]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc64le: Remove test for GCC 6.2
[thirdparty/glibc.git] / ChangeLog
1 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
4 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
5
6 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
7
8 * nptl/pthread_mutex_trylock.c: Fix comment.
9
10 2019-02-19 Carlos O'Donell <carlos@redhat.com>
11
12 * nptl/pthread_tryjoin.c: Fix comment.
13
14 2019-02-18 Joseph Myers <joseph@codesourcery.com>
15
16 [BZ #24231]
17 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
18 after R_SPARC_H34 case.
19
20 2019-02-18 Florian Weimer <fweimer@redhat.com>
21
22 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
23 (getanswer): Do not call Dprintf.
24 (res_gethostbyname2_context): Likewise.
25 (res_gethostbyaddr_context): Likewise.
26
27 2019-02-18 Florian Weimer <fweimer@redhat.com>
28
29 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
30 declaration.
31 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
32 Remove definitions.
33 * libio/stdfiles.c: Update comment.
34 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
35 set _IO_stdin, _IO_stdout, _IO_stderr.
36 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
37 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
38 inline function.
39 (_IO_deallocate_file): New inline function.
40 * libio/iolibio.h (_IO_vprintf): Remove definition.
41 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
42 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
43 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
44 _IO_legacy_file.
45 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
46 __builtin_expect. Use _IO_legacy_file.
47
48 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
49
50 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
51 Initialize ctid with a known value and remove update of ctid
52 after clone.
53 (wait_tid): Adjust arguments and call futex_wait with ctid_val
54 as assumed current value of ctid_ptr.
55
56 2019-02-15 Florian Weimer <fweimer@redhat.com>
57
58 Check that non-sysdeps headers have wrapper headers.
59 * scripts/check-wrapper-headers.py: New file.
60 * Makefile (tests-special): Add check-wrapper-headers.out.
61 (check-wrapper-headers.out): New target.
62 * Rules (tests-special): Add check-wrapper-headers.out.
63 (check-wrapper-headers.out): New target.
64
65 2019-02-15 Florian Weimer <fweimer@redhat.com>
66
67 Add missing header wrappers under include/.
68 * include/ar.h: New file.
69 * include/bits/mqueue2.h: Likewise.
70 * include/bits/stdio.h: Likewise.
71 * include/bits/stdio2.h: Likewise.
72 * include/fstab.h: Likewise.
73 * include/fts.h: Likewise.
74 * include/lastlog.h: Likewise.
75 * include/netinet/icmp6.h: Likewise.
76 * include/netinet/igmp.h: Likewise.
77 * include/netinet/ip6.h: Likewise.
78 * include/re_comp.h: Likewise.
79 * include/regexp.h: Likewise.
80 * include/rpcsvc/bootparam.h: Likewise.
81 * include/rpcsvc/yp_prot.h: Likewise.
82 * include/sys/random.h: Likewise.
83 * include/sys/stropts.h: Likewise.
84 * include/sys/ttychars.h: Likewise.
85 * include/sys/vfs.h: Likewise.
86 * include/wait.h: Likewise.
87
88 2019-02-15 Florian Weimer <fweimer@redhat.com>
89
90 * nptl_db/proc_service.h: Move to ...
91 * sysdeps/nptl/proc_service.h: ... here.
92 * nptl_db/thread_db.h: Move to ...
93 * sysdeps/nptl/thread_db.h: ... here.
94 * nptl/descr.h: Include <thread_db.h>.
95
96 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
97
98 * io/Makefile (tests): Add tst-lockf.
99 * io/lockf.c (lockf): Use __fcntl and only define for
100 !__OFF_T_MATCHES_OFF64_T.
101 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
102 __OFF_T_MATCHES_OFF64_T case.
103 * io/tst-lockf.c: New file.
104 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
105 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
106 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
107 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
108 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
109 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
110 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
111 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
112 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
113
114 2019-02-15 Florian Weimer <fweimer@redhat.com>
115
116 [BZ #24211]
117 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
118 pd->result after the thread descriptor has been freed.
119
120 2019-02-15 Joseph Myers <joseph@codesourcery.com>
121
122 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
123 from function return type.
124
125 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
126
127 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * scripts/test_printers_common.py: Set TERM to a known harmless
130 value.
131
132 2019-02-14 Joseph Myers <joseph@codesourcery.com>
133
134 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
135 (xdr_u_int): Likewise.
136 (xdr_enum): Likewise.
137 (xdr_bytes): Reword fall-through comment.
138 (xdr_string): Likewise.
139
140 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
141
142 [BZ #2421]
143 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
144 (tests): Add tst-join8 tst-join9.
145 * nptl/lll_timedwait_tid.c: Remove file.
146 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
147 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
148 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
149 * nptl/pthread_join_common.c (timedwait_tid): New function.
150 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
151 is set.
152 * nptl/tst-join5.c (thread_join): New function.
153 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
154 check.
155 * nptl/tst-join8.c: New file.
156 * nptl/tst-join9.c: Likewise.
157 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
158 lll_futex_timed_wait_cancel): Add generic macros.
159 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
160 Remove definitions.
161 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
162 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
163 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
164 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
165 Remove function.
166 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
167 Likewise.
168 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
169 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
170 (lll_futex_timed_wait_cancel): New macro.
171
172 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
173
174 * benchtests/Makefile: Add malloc-simple benchmark.
175 * benchtests/bench-malloc-simple.c: New benchmark.
176
177 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
178
179 * benchtests/bench-memmove.c (do_one_test): Remove unused
180 ORIG_SRC.
181 (do_test): Adjust.
182 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
183 ORIG_SRC.
184 (do_test): Adjust.
185
186 2019-01-13 Jim Wilson <jimw@sifive.com>
187
188 [BZ #24040]
189 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
190 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
191 (func): New.
192 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
193 call func directly.
194 * nptl/Makefile (tests): Add tst-unwind-thread.
195 (CFLAGS-tst-unwind-thread.c): Define.
196 * nptl/tst-unwind-thread.c: New file.
197 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
198 as undefined.
199
200 2019-02-13 Joseph Myers <joseph@codesourcery.com>
201
202 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
203 comment wording.
204 * nis/nis_call.c (__do_niscall3): Likewise.
205
206 * catgets/gencat.c (normalize_line): Use braces around empty
207 'else' body.
208 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
209 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
210 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
211 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
212 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
213 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
214 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
215 definition.
216
217 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
218 execlp returns.
219
220 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
221
222 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
223 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
224 * benchtests/bench-strchr.c (stupid_strchr): Remove.
225 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
226 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
227 * benchtests/bench-strlen.c (builtin_strlen): Remove.
228 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
229 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
230 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
231 * benchtests/bench-strspn.c (stupid_strspn): Remove.
232 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
233 * benchtests/bench-bcopy.c: Delete file.
234 * benchtests/bench-bzero.c: Likewise.
235 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
236 (simple_memccpy): Remove.
237 (generic_memccpy): Add function.
238 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
239 * benchtests/bench-memmove.c (simple_bcopy): Remove.
240 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
241 (generic_mempcpy): Add new function.
242 * benchtests/bench-memset.c (simple_bzero): Remove.
243 (builtin_bzero): Remove.
244 (builtin_memset): Remove.
245 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
246 (generic_rawmemchr): Add new function.
247
248 2019-02-12 Florian Weimer <fweimer@redhat.com>
249
250 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
251
252 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
253
254 [BZ #24122]
255 * elf/Makefile (tests): Add tst-audit13.
256 (modules-names): Add tst-audit13mod1.
257 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
258 rule.
259 * elf/tst-audit13.c: New file.
260 * elf/tst-audit13mod1.c: Likewise.
261
262 2019-02-12 Florian Weimer <fweimer@redhat.com>
263
264 [BZ #24122]
265 * elf/rtld.c (unload_audit_module): New function.
266 (report_audit_module_load_error): Likewise.
267 (load_audit_module): Likewise. Extracted from dl_main. Call
268 _dl_close if the laversion symbol cannot be found. Use early
269 returns for error handling. Add malloc error check. Check for a
270 zero return value from la_version. Remove spurious comment about
271 static TLS initialization. Remove useless casts.
272 (notify_audit_modules_of_loaded_object): New function. Extracted
273 from dl_main.
274 (load_audit_module): Likewise.
275 (dl_main): Call load_audit_modules.
276
277 2019-02-12 Joseph Myers <joseph@codesourcery.com>
278
279 * elf/dl-exception.c (_dl_exception_create_format): Add
280 fall-through comments.
281 * elf/ldconfig.c (parse_conf_include): Likewise.
282 * elf/rtld.c (print_statistics): Likewise.
283 * locale/programs/charmap.c (parse_charmap): Likewise.
284 * misc/mntent_r.c (__getmntent_r): Likewise.
285 * posix/wordexp.c (parse_arith): Likewise.
286 (parse_backtick): Likewise.
287 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
288 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
289 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
290
291 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
292
293 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
294 Use float instead of double.
295
296 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
297
298 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
299
300 2019-02-08 Joseph Myers <joseph@codesourcery.com>
301
302 * sysdeps/powerpc/bits/mathinline.h: Remove.
303
304 2019-02-08 Florian Weimer <fweimer@redhat.com>
305
306 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
307 * math/bits/math-finite.h: Move to ...
308 * bits/math-finite.h: ... here.
309
310 2019-02-08 Florian Weimer <fweimer@redhat.com>
311
312 * sysdeps/generic/bits/unistd_ext.h: Move to ...
313 * bits/unistd_ext.h: here.
314
315 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
316
317 [BZ #21915]
318 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
319 * nss/tst-nss-files-hosts-long.c: New file.
320 * nss/tst-nss-files-hosts-long.root: New directory.
321 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
322 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
323
324 2019-02-08 Florian Weimer <fweimer@redhat.com>
325
326 * include/bits/unistd_ext.h: Remove file.
327 * posix/bits/unistd_ext.h: Move to ...
328 * sysdeps/generic/bits/unistd_ext.h: ... here.
329
330 2019-02-08 Florian Weimer <fweimer@redhat.com>
331
332 * include/bits/unistd_ext.h: New file.
333
334 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
335
336 * time/tst-strftime2.c: Use array_length macros instead of magic
337 numbers.
338
339 2019-02-08 Florian Weimer <fweimer@redhat.com>
340
341 [BZ #24161]
342 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
343 argument.
344 * nptl/register-atfork.c (__run_fork_handlers): Only perform
345 locking if the new do_locking argument is true.
346 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
347 __run_fork_handlers.
348
349 2019-02-08 Florian Weimer <fweimer@redhat.com>
350
351 [BZ #6399]
352 Linux: Add gettid system call wrapper.
353 * posix/Makefile (headers): Add bits/unistd_ext.h.
354 * posix/bits/unistd_ext.h: New file.
355 * posix/unistd.h: Include it.
356 * manual/process.texi (Process Identification): Document gettid.
357 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
358 tst-gettid, tst-gettid-kill.
359 (tst-gettid): Link with $(shared-thread-library).
360 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
361 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
362 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
363 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
364 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
365 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
366 Add gettid.
367 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
368 Likewise.
369 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
370 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
371 Likewise.
372 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
373 Likewise.
374 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
375 Likewise.
376 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
377 Likewise.
378 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
379 Likewise.
380 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
381 Likewise.
382 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
383 Likewise.
384 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
385 (GLIBC_2.30): Likewise.
386 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
387 (GLIBC_2.30): Likewise.
388 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
389 (GLIBC_2.30): Likewise.
390 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
391 (GLIBC_2.30): Likewise.
392 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
393 Likewise.
394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
395 (GLIBC_2.30): Likewise.
396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
397 (GLIBC_2.30): Likewise.
398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
399 (GLIBC_2.30): Likewise.
400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
401 (GLIBC_2.30): Likewise.
402 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
403 Likewise.
404 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
405 Likewise.
406 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
407 Likewise.
408 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
409 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
410 Likewise.
411 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
412 Likewise.
413 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
414 Likewise.
415 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
416 Likewise.
417 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
418
419 2019-02-07 Florian Weimer <fweimer@redhat.com>
420
421 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
422 compatibility symbols.
423
424 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
425
426 [BZ #24180]
427 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
428 Add compiler barriers and comments.
429
430 2019-02-07 Florian Weimer <fweimer@redhat.com>
431
432 * include/array_length.h (array_length): Do not use a statement
433 expression and _Static_assert, so that array_length can be used at
434 file scope and as a constant expression.
435
436 2019-02-07 Florian Weimer <fweimer@redhat.com>
437
438 * support/xdlfcn.h (xdlmopen): Declare.
439 * support/xdlmopen.c: New file.
440 * support/Makefile (libsupport-routines): Add xdlmopen.
441
442 2019-02-06 Joseph Myers <joseph@codesourcery.com>
443
444 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
445 before return type, without separate inline.
446 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
447 * elf/dl-tunables.h (tunable_is_name): Likewise.
448 * malloc/malloc.c (do_set_trim_threshold): Likewise.
449 (do_set_top_pad): Likewise.
450 (do_set_mmap_threshold): Likewise.
451 (do_set_mmaps_max): Likewise.
452 (do_set_mallopt_check): Likewise.
453 (do_set_perturb_byte): Likewise.
454 (do_set_arena_test): Likewise.
455 (do_set_arena_max): Likewise.
456 (do_set_tcache_max): Likewise.
457 (do_set_tcache_count): Likewise.
458 (do_set_tcache_unsorted_limit): Likewise.
459 * nis/nis_subr.c (count_dots): Likewise.
460 * nptl/allocatestack.c (advise_stack_range): Likewise.
461 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
462 (do_sin): Likewise.
463 (reduce_sincos): Likewise.
464 (do_sincos): Likewise.
465 * sysdeps/unix/sysv/linux/x86/elision-conf.c
466 (do_set_elision_enable): Likewise.
467 (TUNABLE_CALLBACK_FNDECL): Likewise.
468
469 2019-02-06 Florian Weimer <fweimer@redhat.com>
470
471 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
472 (xdlsym): Use dlerror to detect a NULL symbol.
473
474 2019-02-06 Florian Weimer <fweimer@redhat.com>
475
476 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
477 <stap-probe.h>.
478 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
479
480 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
481
482 * libio/tst-bz24153.c (wide): Use wide char format specifier.
483
484 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
485
486 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
487 __wmemcmp and weak alias to wmemcmp.
488
489 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
490
491 [BZ #23403]
492 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
493 TLS_TCB_AT_TP tls variant.
494 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
495 Add alignment checks.
496 * support/Makefile (libsupport-routines): Add xposix_memalign and
497 xpthread_setstack.
498 * support/support.h: Add xposix_memalign.
499 * support/xthread.h: Add xpthread_attr_setstack.
500 * support/xposix_memalign.c: New File.
501 * support/xpthread_attr_setstack.c: Likewise.
502
503 2019-02-05 Florian Weimer <fweimer@redhat.com>
504
505 [BZ #24164]
506 arm: Use "nr" constraint for Systemtap probes, to avoid the
507 compiler using memory operands for constants, due to the "o"
508 alternative in the default "nor" constraint.
509 * include/stap-probe.h [USE_STAP_PROBE]: Include
510 <stap-probe-machine.h>
511 * sysdeps/generic/stap-probe-machine.h: New file.
512 * sysdeps/arm/stap-probe-machine.h: Likewise.
513
514 2019-02-04 Joseph Myers <joseph@codesourcery.com>
515
516 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
517 with 0, not tcache->entries[tc_idx].
518
519 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
520 once.
521
522 2019-02-04 Andreas Schwab <schwab@suse.de>
523
524 [BZ #16976]
525 [BZ #17396]
526 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
527 looking up collating elements match against (wide) character
528 sequence instead of name. Correct alignment adjustment.
529 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
530 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
531 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
532 (LOCALES): Add cs_CZ.ISO-8859-2.
533 * posix/tst-fnmatch4.c: New file.
534 * posix/tst-fnmatch5.c: New file.
535 * include/wchar.h (__wmemcmp): Declare.
536 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
537 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
538 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
539 * sysdeps/s390/wmemcmp.c: Likewise.
540
541 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
542
543 [BZ #24155]
544 CVE-2019-7309
545 * NEWS: Updated for CVE-2019-7309.
546 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
547 upper 32 bits of RDX register for x32. Use unsigned Jcc
548 instructions, instead of signed.
549 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
550 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
551
552 2019-02-04 Florian Weimer <fweimer@redhat.com>
553
554 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
555 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
556 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
557 Likewise.
558 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
559 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
560 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
561 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
562 Likewise.
563 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
564 Likewise.
565 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
566 Likewise.
567 (posix_spawn_file_actions_addopen): Likewise.
568 (posix_spawn_file_actions_addclose): Likewise.
569 (posix_spawn_file_actions_adddup2): Likewise.
570 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
571 qualifiers.
572 (posix_spawn_file_actions_addfchdir_np): Likewise.
573
574 2019-02-04 David Newall <glibc@davidnewall.com>
575
576 elf: Implement --preload option for the dynamic linker.
577 * elf/rtld.c (preloadarg): New variable.
578 (handle_preload_list): Pass through “where” argument to
579 do_preload.
580 (dl_main): Handle "--preload" and add second call to
581 handle_preload_list.
582 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
583 (tst-rtld-preload-OBJS): Set variable.
584 (tst-rtld-preload.out): New target.
585 * elf/tst-rtld-preload.sh: New file.
586
587 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
588
589 * Makefile (testrun.sh): Exit in case of incorrect argument.
590
591 2019-02-04 Florian Weimer <fweimer@redhat.com>
592
593 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
594 alignment gaps.
595
596 2019-02-03 Florian Weimer <fweimer@redhat.com>
597
598 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
599 implicit overflow checks.
600
601 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
602
603 * stdlib/isomac.c: Include <unistd.h>.
604
605 2019-02-03 Florian Weimer <fweimer@redhat.com>
606
607 * include/time.h (__tzfile_default): Use int, not long int, for
608 the GMT offsets.
609 * time/tzfile.c (struct ttinfo): Change type of the offset member
610 to int.
611 (__tzfile_read): Remove useless cast.
612 (__tzfile_default): Adjust prototype.
613 * time/tzset.c (tz_rule): Change type of the offset member to int.
614 (parse_offset): Change the type of the sign variable to int.
615
616 2019-02-03 Florian Weimer <fweimer@redhat.com>
617
618 [BZ #24153]
619 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
620 * libio/getchar.c (getchar): Likewise.
621 * libio/getchar_u.c (getchar_unlocked): Likewise.
622 * libio/getwchar.c (getwchar): Likewise.
623 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
624 * libio/iogets.c (_IO_gets): Likewise.
625 * libio/vscanf.c (_IO_vscanf): Likewise.
626 * libio/vwscanf.c (__vwscanf): Likewise.
627 * libio/tst-bz24153.c: New file.
628 * libio/Makefile (tests): Add it.
629
630 2019-02-02 Florian Weimer <fweimer@redhat.com>
631
632 [BZ #14829]
633 * manual/resource.texi (Basic Scheduling Functions): Add
634 portability note. Change process to task throughout the section.
635 Remove incorrect comment about sched_yield as it affects
636 tasks/threads, not entire processes.
637 * sysdeps/unix/sysv/linux/bits/posix_opt.h
638 (_POSIX_PRIORITY_SCHEDULING): Update comment.
639
640 2019-02-01 Joseph Myers <joseph@codesourcery.com>
641
642 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
643 * configure: Regenerated.
644 * manual/install.texi (Tools for Compilation): Update minimum GCC
645 version.
646 * INSTALL: Regenerated.
647
648 2019-02-01 Florian Weimer <fweimer@redhat.com>
649
650 * support/support_test_compare_string.c
651 (support_test_compare_string): Use "string" in error message.
652 * support/tst-test_compare_string.c (do_test): Adjust.
653
654 2019-02-01 Florian Weimer <fweimer@redhat.com>
655
656 * support/support_format_address_family.c
657 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
658
659 2019-02-01 Florian Weimer <fweimer@redhat.com>
660
661 * manual/socket.texi (Internet Address Formats): Clarify the byte
662 order of struct sockaddr_in, struct sockaddr_in6. Document
663 sin6_flowinfo and sin6_scope_id.
664
665 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
666
667 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
668 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
669 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
670 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
671 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
672 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
673
674 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
675
676 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
677 [!MEMCHR](MEMCHR): Set to __memchr.
678 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
679 Add memchr_generic and memchr_nosimd.
680 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
681 (__libc_ifunc_impl_list): Add memchr ifuncs.
682 * sysdeps/aarch64/multiarch/memchr.c: New file.
683 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
684 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
685
686 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
687
688 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
689 Add memset_emag.
690 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
691 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
692 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
693 Add IS_EMAG check for ifunc dispatch.
694 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
695 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
696
697 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
698
699 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
700 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
701 Add emag.
702 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
703 New macro.
704
705 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
706
707 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
708
709 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
710
711 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
712 syscall-template file.
713
714 2019-01-31 Carlos O'Donell <carlos@redhat.com>
715 Torvald Riegel <triegel@redhat.com>
716 Rik Prohaska <prohaska7@gmail.com>
717
718 [BZ# 23844]
719 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
720 tst-rwlock-trywrlock-stall.
721 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
722 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
723 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
724 Set __wrphase_fute to 1 only if we started the write phase.
725 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
726 * nptl/tst-rwlock-trywrlock-stall.c: New file.
727 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
728 * support/xpthread_rwlock_destroy.c: New file.
729 * support/xthread.h: Declare xpthread_rwlock_destroy.
730
731 2019-02-01 Joseph Myers <joseph@codesourcery.com>
732
733 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
734 version to 4.0.2.
735
736 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
737
738 [BZ #24051]
739 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
740 * libio/fileops.c (_IO_new_file_underflow): Likewise
741 * libio/wfileops.c (_IO_wfile_underflow): Likewise
742 * libio/putchar.c (putchar): Likewise.
743 * libio/putchar_u.c (putchar_unlocked): Likewise.
744 * libio/putwchar.c (putchar): Likewise.
745 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
746 * libio/tst-bz24051.c: New test.
747 * libio/Makefile (tests): Add tst-bz24051
748
749 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
750
751 regex: fix read overrun [BZ #24114]
752 Problem found by AddressSanitizer, reported by Hongxu Chen in:
753 https://debbugs.gnu.org/34140
754 * posix/regexec.c (proceed_next_node):
755 Do not read past end of input buffer.
756
757 2019-01-31 Florian Weimer <fweimer@redhat.com>
758
759 [BZ #24059]
760 * nss/nss_files/files-alias.c (get_next_alias): Handle
761 continuation line without newline at the end.
762 * nss/tst-nss-files-alias-truncated.c: New file.
763 * nss/Makefile [$(build-shared)] (tests): Add
764 tst-nss-files-alias-truncated.
765 (tst-nss-files-alias-truncated): Link with libnss_files.so.
766 * support/namespace.h (struct support_chroot_configuration): Add
767 aliases member.
768 (struct support_chroot): Add path_aliases member.
769 * support/support_chroot.c (support_chroot_create): Handle
770 aliases.
771 (support_chroot_free): Free path_aliases.
772
773 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
774
775 * version.h (RELEASE): Set to "development".
776 (VERSION): Set to "2.29.9000".
777 * NEWS: Add section for 2.30.
778
779 * version.h (RELEASE): Set to "stable".
780 (VERSION): Set to "2.29".
781 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
782
783 * NEWS: Add the list of bugs fixed in 2.29.
784 * manual/contrib.texi: Update contributors list with some more
785 names.
786 * manual/install.texi: Update latest versions of packages
787 tested.
788 * INSTALL: Regenerated.
789
790 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
791
792 * po/be.po: Update translations.
793 * po/bg.po: Likewise.
794 * po/ca.po: Likewise.
795 * po/cs.po: Likewise.
796 * po/da.po: Likewise.
797 * po/de.po: Likewise.
798 * po/el.po: Likewise.
799 * po/eo.po: Likewise.
800 * po/es.po: Likewise.
801 * po/fi.po: Likewise.
802 * po/fr.po: Likewise.
803 * po/gl.po: Likewise.
804 * po/hr.po: Likewise.
805 * po/hu.po: Likewise.
806 * po/ia.po: Likewise.
807 * po/id.po: Likewise.
808 * po/it.po: Likewise.
809 * po/ja.po: Likewise.
810 * po/ko.po: Likewise.
811 * po/lt.po: Likewise.
812 * po/nb.po: Likewise.
813 * po/nl.po: Likewise.
814 * po/pl.po: Likewise.
815 * po/pt_BR.po: Likewise.
816 * po/ru.po: Likewise.
817 * po/rw.po: Likewise.
818 * po/sk.po: Likewise.
819 * po/sl.po: Likewise.
820 * po/sv.po: Likewise.
821 * po/tr.po: Likewise.
822 * po/uk.po: Likewise.
823 * po/vi.po: Likewise.
824 * po/zh_CN.po: Likewise.
825 * po/zh_TW.po: Likewise.
826
827 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
828
829 [BZ #24130]
830 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
831 of $f3 register on $y_is_neg path.
832
833 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
834
835 [BZ #24110]
836 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
837 sigaltstack.ss_flags.
838
839 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
840
841 [BZ #23758]
842 * manual/time.texi (strftime): Document "%Ey".
843 * time/strftime_l.c (__strftime_internal): Set the default width
844 padding with zero of "%Ey" to 2.
845
846 [BZ #24096]
847 * manual/time.texi (strftime): Document "%EC" and "%EY".
848 * time/Makefile (tests): Add tst-strftime2.
849 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
850 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
851 override padding for "%Ey".
852 If an optional flag ('_' or '-') is specified to "%EY", interpret the
853 "%Ey" in the subformat as if decorated with that flag.
854 * time/tst-strftime2.c: New file.
855
856 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
857
858 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
859 are not defined.
860
861 [BZ #24122]
862 * elf/Makefile (tests): Add tst-audit13.
863 (modules-names): Add tst-audit13mod1.
864 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
865 rule.
866 * elf/rtld.c (dl_main): Handle invalid audit module version.
867 * elf/tst-audit13.c: New file.
868 * elf/tst-audit13mod1.c: Likewise.
869
870 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
871
872 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
873 returned by __hurd_at_flags.
874 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
875 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
876 directly instead of __hurd_file_name_lookup.
877
878 2019-01-21 Joseph Myers <joseph@codesourcery.com>
879
880 * scripts/build-many-glibcs.py (Context.checkout): Default
881 binutils version to 2.32 branch.
882
883 2019-01-21 Florian Weimer <fweimer@redhat.com>
884
885 [BZ #20018]
886 CVE-2016-10739
887 resolv: Reject trailing characters in host names
888 * include/arpa/inet.h (__inet_aton_exact): Declare.
889 (inet_aton): Remove hidden prototype. No longer used internally.
890 * nscd/gai.c (__inet_aton): Do not define.
891 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
892 * nss/digits_dots.c (__inet_aton): Likewise.
893 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
894 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
895 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
896 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
897 (tst-resolv-trailing): Likewise.
898 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
899 libc.
900 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
901 Make static. Add endp parameter.
902 (__inet_aton_exact): New function.
903 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
904 (__inet_addr): Call inet_aton_end.
905 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
906 not just IPv6. Call __inet_aton_exact.
907 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
908 (tests): Make const. Add additional test cases with trailing
909 characters.
910 (do_test): Use array_length.
911 * resolv/tst-inet_aton_exact.c: New file.
912 * resolv/tst-resolv-trailing.c: Likewise.
913 * resolv/tst-resolv-nondecimal.c: Likewise.
914 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
915
916 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
917
918 [BZ# 24097]
919 CVE-2019-6488
920 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
921 Clear the upper 32 bits of RSI register.
922 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
923 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
924 and tst-size_t-wcsnlen.
925 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
926 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
927
928 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
929
930 [BZ# 24097]
931 CVE-2019-6488
932 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
933 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
934 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
935 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
936 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
937
938 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
939
940 [BZ# 24097]
941 CVE-2019-6488
942 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
943 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
944 * sysdeps/x86_64/strcmp.S: Likewise.
945 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
946 tst-size_t-strncmp and tst-size_t-wcsncmp.
947 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
948 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
949 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
950
951 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
952
953 [BZ# 24097]
954 CVE-2019-6488
955 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
956 RDX_LP for length. Clear the upper 32 bits of RDX register.
957 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
958 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
959 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
960 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
961
962 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
963
964 [BZ# 24097]
965 CVE-2019-6488
966 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
967 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
968 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
969 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
970
971 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
972
973 [BZ# 24097]
974 CVE-2019-6488
975 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
976 length. Clear the upper 32 bits of RDX register.
977 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
978 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
979 Likewise.
980 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
981 Likewise.
982 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
983 tst-size_t-wmemchr.
984 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
985
986 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
987
988 [BZ# 24097]
989 CVE-2019-6488
990 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
991 length. Clear the upper 32 bits of RDX register.
992 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
993 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
994 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
995 tst-size_t-wmemcmp.
996 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
997 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
998
999 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 [BZ# 24097]
1002 CVE-2019-6488
1003 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1004 upper 32 bits of RDX register.
1005 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1006 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1007 tst-size_t-wmemchr.
1008 * sysdeps/x86_64/x32/test-size_t.h: New file.
1009 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1010 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1011
1012 2019-01-18 Florian Weimer <fweimer@redhat.com>
1013
1014 [BZ #24112]
1015 resolv: Do not send queries for non-host-names in nss_dns.
1016 * resolv/nss_dns/dns-host.c (check_name): New function.
1017 (_nss_dns_gethostbyname2_r): Use it.
1018 (_nss_dns_gethostbyname_r): Likewise.
1019 (_nss_dns_gethostbyname4_r): Likewise.
1020
1021 2019-01-21 Florian Weimer <fweimer@redhat.com>
1022
1023 * resolv/inet_addr.c: Reformat to GNU style.
1024 (__inet_addr, __inet_aton): Update comment.
1025
1026 2019-01-18 Florian Weimer <fweimer@redhat.com>
1027
1028 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1029 ("malloc: Use current (C11-style) atomics for fastbin access").
1030 This commit introduces a substantial performance regression on
1031 POWER and Aarch64.
1032 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1033 (REMOVE_FB): Define.
1034 (_int_malloc): Use it and reindent.
1035 (_int_free): Use CAS loop with
1036 catomic_compare_and_exchange_val_rel.
1037 (malloc_consolidate): Use atomic_exchange_acq.
1038
1039
1040 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1041
1042 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1043 -Wl,-z,now.
1044 (LDFLAGS-tst-minsigstksz-2): Likewise.
1045 (LDFLAGS-tst-minsigstksz-3): Likewise.
1046 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1047 (LDFLAGS-tst-minsigstksz-4): Likewise.
1048
1049 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1050
1051 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1052 than "alternate".
1053
1054 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1055
1056 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1057
1058 2019-01-16 Zack Weinberg <zackw@panix.com>
1059
1060 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1061 (xget_sigstack_location): New test support functions.
1062 * support/xsigstack.c: New file, implementing them.
1063 * support/tst-xsigstack.c: New test for them.
1064 * support/Makefile: Update.
1065
1066 * signal/tst-minsigstksz-1.c
1067 * signal/tst-minsigstksz-2.c
1068 * signal/tst-minsigstksz-3.c
1069 * signal/tst-minsigstksz-3a.c
1070 * signal/tst-minsigstksz-4.c: New tests.
1071 * signal/Makefile: Run them.
1072
1073 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1074
1075 * po/libc.pot: Regenerate.
1076
1077 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1078
1079 * math/libm-test-fma.inc (fma_test_data): Set
1080 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1081
1082 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1083
1084 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1085 (do_test): Changed __vector __int128_t to __vector unsigned int.
1086
1087 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1088
1089 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1090 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1091 stpcpy-avx2 and stpncpy-avx2.
1092 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1093 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1094 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1095 and __stpncpy_avx2.
1096 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1097 ifunc-strcpy.h}: rename header for a more generic name.
1098 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1099 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1100 AVX unaligned load is fast and vzeroupper is preferred.
1101 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1102 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1103 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1104 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1105 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1106 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1107
1108 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1109
1110 * argp/argp-help.c: Fix typo in comment.
1111 * misc/sys/cdefs.h: Likewise.
1112 * posix/regexec.c (sift_states_iter_mb): Likewise.
1113 * socket/sockatmark.c: Likewise.
1114 * socket/sys/socket.h: Likewise.
1115 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1116 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1117 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1118 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1119 * sysdeps/unix/sockatmark.c: Likewise.
1120 * time/strptime_l.c: Likewise.
1121
1122 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1123
1124 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1125 missing space after the cast of "_NL_CURRENT".
1126
1127 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1128
1129 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1130 ifdef to fix read of VSCR.
1131 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1132 tst-ucontext-ppc64-vscr.c to test list.
1133 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1134
1135 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1136
1137 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1138 fall-through.
1139
1140 2019-01-09 Jim Wilson <jimw@sifive.com>
1141
1142 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1143
1144 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1145
1146 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1147 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1148 __memcpy_falkor for ares.
1149 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1150 Add new define.
1151 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1152 Add ares cpu.
1153
1154 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1155
1156 [BZ #24066]
1157 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1158 4_FP_W_TYPEs are used for IEEE quad precision.
1159 * soft-fp/extendhftf2.c: Likewise.
1160 * soft-fp/extendsftf2.c: Likewise.
1161 * soft-fp/extendxftf2.c: Likewise.
1162 * soft-fp/trunctfdf2.c: Likewise.
1163 * soft-fp/trunctfhf2.c: Likewise.
1164 * soft-fp/trunctfsf2.c: Likewise.
1165 * soft-fp/trunctfxf2.c: Likewise.
1166 * sysdeps/alpha/ots_cvttx.c: Likewise.
1167 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1168 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1169 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1170 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1171 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1172 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1173 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1174 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1175 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1176 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1177 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1178 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1179 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1180 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1181 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1182 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1183 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1184
1185 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1186
1187 [BZ #24024]
1188 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1189 code with -fmath-errno.
1190 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1191 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1192 * string/test-strerror-errno.c: New file.
1193
1194 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1195
1196 [BZ #24046]
1197 * localedata/locales/en_US (date_fmt): Add, set to
1198 "%a %d %b %Y %r %Z".
1199
1200 2019-01-07 Florian Weimer <fweimer@redhat.com>
1201
1202 [BZ #24063]
1203 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1204 instead of @var{errno}.
1205 (Parsing of Integers): Likewise.
1206 (Parsing of Floats): Likewise.
1207 * manual/filesys.texi (Working with Directory Trees): Likewise.
1208 (Temporary Files): Likewise.
1209 * manual/job.texi (Terminal Access Functions): Likewise.
1210 * manual/llio.texi (Synchronizing I/O): Likewise.
1211 * manual/math.texi (SVID Random): Likewise.
1212 * manual/message.texi (The catgets Functions): Likewise.
1213 (Translation with gettext): Likewise.
1214 (Locating gettext catalog): Likewise.
1215 (Charset conversion in gettext): Likewise.
1216 * manual/nss.texi (NSS Module Function Internals): Likewise.
1217 * manual/search.texi (Hash Search Function): Likewise.
1218 * manual/setjmp.texi (System V contexts): Likewise.
1219 * manual/time.texi (Sleeping): Likewise.
1220 * manual/users.texi (Lookup User): Likewise.
1221 (Lookup Group): Likewise.
1222
1223 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1224
1225 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1226 fix typo.
1227
1228 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1229
1230 [BZ #19444]
1231 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1232 __builtin_unreachable for default case in switch.
1233 (__ieee754_yn): Likewise.
1234 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1235 (__ieee754_ynl): Likewise.
1236 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1237 (__ieee754_ynl): Likewise.
1238 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1239 (__ieee754_ynl): Likewise.
1240
1241 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1242
1243 * manual/maint.texi: Use @{ and @}.
1244
1245 2019-01-04 Florian Weimer <fweimer@redhat.com>
1246
1247 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1248 function.
1249 (do_in_chroot_1): Call it.
1250 (run_chroot_tests):
1251 Improve error reporting in case it is not possible to create a
1252 collision for the PTY name required by the test.
1253
1254 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1255
1256 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1257 lll_wait_tid with timeout.
1258 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1259 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1260 futex_reltimed_wait_cancelable for cancelabla mode.
1261 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1262 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1263 macros.
1264 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1265 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1266 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1267 SYSCALL_CANCEL_NCS): New macro.
1268 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1269 (lll_timedwait_tid): Remove macro.
1270 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1271 Likewise.
1272 (lll_timedwait_tid): Likewise.
1273 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1274 Likewise.
1275 (lll_timedwait_tid): Likewise.
1276 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1277 Likewise.
1278 (lll_timedwait_tid): Likewise.
1279 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1280 Use INTERNAL_SYSCALL_CANCEL.
1281 * sysdeps/unix/sysv/linux/futex-internal.h
1282 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1283 instead of __pthread_{enable,disable}_asynccancel.
1284 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1285 (lll_futex_wait_cancel): New macro.
1286
1287 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1288 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1289
1290 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1291 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1292
1293 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1294 in backtrace analysis.
1295 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1296 side-effects.
1297 (tf_send): Likewise.
1298
1299 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1300 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1301 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1302 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1303 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1304 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1305 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1306 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1307 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1308 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1309 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1310 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1311 Likewise.
1312 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1313 tst-cancel-wrappers.sh.
1314 (generated): Remove tst-cancel-wrappers.out.
1315 (tst-cancel-wrappers.out): Remove rule.
1316 * nptl/tst-cancel-wrappers.sh: Remove file.
1317
1318 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1319
1320 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1321 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1322 Update.
1323
1324 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1325
1326 [BZ #23640]
1327 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1328 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1329 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1330 close-on-exec reset for adddup2 file action.
1331 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1332
1333 2019-01-03 Zack Weinberg <zackw@panix.com>
1334
1335 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1336 parameter. Only use deprecated scanf when __USE_GNU is defined
1337 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1338 than 201103L, whichever is relevant for the language being compiled.
1339
1340 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1341 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1342 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1343 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1344 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1345
1346 * libio/iovsscanf.c
1347 * libio/fwscanf.c
1348 * libio/iovswscanf.c
1349 * libio/swscanf.c
1350 * libio/vscanf.c
1351 * libio/vwscanf.c
1352 * libio/wscanf.c
1353 * stdio-common/fscanf.c
1354 * stdio-common/scanf.c
1355 * stdio-common/vfscanf.c
1356 * stdio-common/vfwscanf.c
1357 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1358 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1359 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1360 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1361 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1362 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1363 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1364 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1365 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1366 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1367 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1368 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1369 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1370 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1371 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1372
1373 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1374 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1375 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1376 not sscanf.
1377 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1378 with a preprocessor macro.
1379
1380 * stdio-common/bug21.c, stdio-common/scanf14.c:
1381 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1382 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1383 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1384 to xscanf, xfscanf, xsscanf.
1385
1386 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1387 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1388 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1389 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1390 xfscanf, xsscanf.
1391 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1392 override feature selection macros or provide definitions of u_char etc.
1393 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1394 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1395 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1396 with -std=gnu89.
1397
1398 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1399
1400 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1401 bits/termios-misc.h.
1402 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1403 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1404 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1405 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1406 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1407 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1408
1409 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1410 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1411 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1412 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1413 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1414 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1415 termios-misc.h.
1416 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1417 (sysdep_headers): Add termios-misc.h.
1418
1419 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1420 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1421 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1422
1423 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1424 termios-tcflow.h.
1425 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1426 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1427 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1428 TCSAFLUSH): Move to termios-tcflow.h.
1429 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1430 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1431 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1432 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1433
1434 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1435 termios-c_lflag.h.
1436 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1437 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1438 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1439 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1440 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1441 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1442 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1443 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1444 Likewise.
1445 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1446 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1447 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1448 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1449
1450 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1451 termios-c_cflag.h.
1452 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1453 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1454 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1455 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1456 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1457 termios-c_cflag.h.
1458 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1459 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1460 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1461 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1462
1463 [BZ #23783]
1464 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1465 termios-baud.h.
1466 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1467 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1468 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1469 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1470 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1471 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1472 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1473 __MAX_BAUD): Move to termios-baud.h.
1474 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1475 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1476 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1477 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1478 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1479
1480 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1481 termios-c_oflag.h.
1482 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1483 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1484 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1485 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1486 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1487 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1488 termios-c_oflag.h.
1489 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1490 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1491 FFR1): Likewise.
1492 [USE_MISC] (XTABS): Likewise.
1493 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1494 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1495 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1496 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1497
1498 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1499 termios-c_iflag.h.
1500 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1501 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1502 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1503 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1504 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1505 IUTF8): Move to termios-c_iflag.h.
1506 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1507 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1508 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1509 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1510
1511 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1512 termios-cc.h.
1513 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1514 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1515 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1516 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1517 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1518 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1519 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1520 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1521 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1522 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1523 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1525
1526 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1527 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1528 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1529 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1530 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1531 termios-struct.h.
1532 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1533 termios-struct.h.
1534 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1535 Likewise.
1536 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1537 Likewise.
1538 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1539 Likewise.
1540 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1541 Likewise.
1542 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1543 _HAVE_C_OSPEED): Define.
1544 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1545 _HAVE_C_OSPEED): Likewise.
1546 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1547 _HAVE_C_OSPEED): Likewise.
1548 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1549 (cfsetospeed): Check for define value instead of existence.
1550 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1551 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1552 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1553 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1554 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1555
1556 [BZ #17783]
1557 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1558 Define.
1559 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1560 (TIOCSER_TEMT): Likewise.
1561 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1562 (TEOCSER_TEMT): Likewise.
1563
1564 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1565
1566 [BZ #24011]
1567 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1568
1569 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1570
1571 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1572
1573 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1574
1575 * sysdeps/htl/pt-barrierattr-setpshared.c
1576 (pthread_barrierattr_setpshared): Add stub warning.
1577 * sysdeps/htl/pt-condattr-setpshared.c
1578 (pthread_condattr_setpshared): Likewise.
1579 * sysdeps/htl/pt-mutexattr-setpshared.c
1580 (pthread_mutexattr_setpshared): Likewise.
1581 * sysdeps/htl/pt-rwlockattr-setpshared.c
1582 (pthread_rwlockattr_setpshared): Likewise.
1583 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1584 (pthread_mutexattr_setpshared): Likewise.
1585
1586 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1587
1588 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1589 constants to match with Linux 4.20.
1590
1591 * sysdeps/mips/mips32/libm-test-ulps: Update.
1592 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1593
1594 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1595
1596 [BZ #24034]
1597 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1598 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1599 than __typeof (...) for the a_ptr variable.
1600
1601 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1602
1603 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1604 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1605 * libio/Makefile (tests): Add tst-sprintf-ub and
1606 tst-sprintf-chk-ub.
1607 (CFLAGS-tst-sprintf-ub.c): New variable.
1608 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1609 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1610 destination buffer and check for overflows in fortified mode.
1611 * libio/libioP.h (PRINTF_CHK): New macro.
1612 * libio/tst-sprintf-chk-ub.c: New file.
1613 * libio/tst-sprintf-ub.c: Likewise.
1614
1615 2019-01-02 Florian Weimer <fweimer@redhat.com>
1616
1617 [BZ #24018]
1618 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1619 failure.
1620
1621 2019-01-02 Florian Weimer <fweimer@redhat.com>
1622
1623 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1624
1625 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1626
1627 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1628 macro.
1629
1630 * sysdeps/unix/sysv/linux/netpacket/packet.h
1631 (PACKET_IGNORE_OUTGOING): New macro.
1632
1633 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1634 macro.
1635
1636 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1637 version to 4.20.
1638 (riscv_flush_icache): New syscall.
1639
1640 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1641 trailing whitespace removed.
1642 * scripts/config.guess: Update to version 2019-01-01.
1643 * scripts/config.sub: Update to version 2019-01-01.
1644 * scripts/move-if-change: Update from gnulib.
1645
1646 * NEWS: Update copyright dates.
1647 * catgets/gencat.c (print_version): Likewise.
1648 * csu/version.c (banner): Likewise.
1649 * debug/catchsegv.sh: Likewise.
1650 * debug/pcprofiledump.c (print_version): Likewise.
1651 * debug/xtrace.sh (do_version): Likewise.
1652 * elf/ldconfig.c (print_version): Likewise.
1653 * elf/ldd.bash.in: Likewise.
1654 * elf/pldd.c (print_version): Likewise.
1655 * elf/sotruss.sh: Likewise.
1656 * elf/sprof.c (print_version): Likewise.
1657 * iconv/iconv_prog.c (print_version): Likewise.
1658 * iconv/iconvconfig.c (print_version): Likewise.
1659 * locale/programs/locale.c (print_version): Likewise.
1660 * locale/programs/localedef.c (print_version): Likewise.
1661 * login/programs/pt_chown.c (print_version): Likewise.
1662 * malloc/memusage.sh (do_version): Likewise.
1663 * malloc/memusagestat.c (print_version): Likewise.
1664 * malloc/mtrace.pl: Likewise.
1665 * manual/libc.texinfo: Likewise.
1666 * nptl/version.c (banner): Likewise.
1667 * nscd/nscd.c (print_version): Likewise.
1668 * nss/getent.c (print_version): Likewise.
1669 * nss/makedb.c (print_version): Likewise.
1670 * posix/getconf.c (main): Likewise.
1671 * scripts/test-installation.pl: Likewise.
1672 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1673
1674 * All files with FSF copyright notices: Update copyright dates
1675 using scripts/update-copyrights.
1676 * locale/programs/charmap-kw.h: Regenerated.
1677 * locale/programs/locfile-kw.h: Likewise.
1678
1679 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1680
1681 * timezone/zdump.c: Update from tzcode 2018i.
1682 * timezone/zic.c: Likewise.
1683
1684 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1685
1686 regex: improve Gnulib port to AIX
1687 From the glibc point of view, this removes duplicate macro
1688 definitions and is obviously safe.
1689 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1690 * posix/regex_internal.h:
1691 (__attribute__, __attribute_warn_unused_result__):
1692 Remove; already defined elsewhere.
1693
1694 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1695
1696 [BZ #24027]
1697 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1698 copying operation. (ncopies had the wrong type, resulting in an
1699 integer wraparound and too few elements being copied.)
1700
1701 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1702
1703 [BZ #24022]
1704 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1705 <asm/syscalls.h> exists with __has_include__ before including it.
1706
1707 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1708
1709 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1710 version to 4.20.
1711
1712 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1713
1714 * hurd/lookup-retry: Include <unistd.h>.
1715 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1716 Release it on return. Handle "pid" magical lookup retry.
1717
1718 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1719
1720 [BZ #10496]
1721 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1722 (t_fmt_ampm): Likewise.
1723 * localedata/locales/aa_ER (t_fmt): Likewise.
1724 (t_fmt_ampm): Likewise.
1725 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1726 (t_fmt_ampm): Likewise.
1727 * localedata/locales/aa_ET (t_fmt): Likewise.
1728 (t_fmt_ampm): Likewise.
1729 * localedata/locales/am_ET (t_fmt): Likewise.
1730 (t_fmt_ampm): Likewise.
1731 * localedata/locales/byn_ER (t_fmt): Likewise.
1732 (t_fmt_ampm): Likewise.
1733 * localedata/locales/om_ET (t_fmt): Likewise.
1734 (t_fmt_ampm): Likewise.
1735 * localedata/locales/sid_ET (t_fmt): Likewise.
1736 (t_fmt_ampm): Likewise.
1737 * localedata/locales/so_DJ (t_fmt): Likewise.
1738 (t_fmt_ampm): Likewise.
1739 * localedata/locales/so_ET (t_fmt): Likewise.
1740 (t_fmt_ampm): Likewise.
1741 * localedata/locales/so_SO (t_fmt): Likewise.
1742 (t_fmt_ampm): Likewise.
1743 * localedata/locales/ti_ER (t_fmt): Likewise.
1744 (t_fmt_ampm): Likewise.
1745 * localedata/locales/ti_ET (t_fmt): Likewise.
1746 (t_fmt_ampm): Likewise.
1747 * localedata/locales/tig_ER (t_fmt): Likewise.
1748 (t_fmt_ampm): Likewise.
1749 * localedata/locales/wal_ET (t_fmt): Likewise.
1750 (t_fmt_ampm): Likewise.
1751
1752 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1753 * localedata/locales/ar_IN (t_fmt): Likewise.
1754 * localedata/locales/bhb_IN (t_fmt): Likewise.
1755 * localedata/locales/bho_IN (t_fmt): Likewise.
1756 * localedata/locales/bi_VU (t_fmt): Likewise.
1757 * localedata/locales/bn_BD (t_fmt): Likewise.
1758 * localedata/locales/bn_IN (t_fmt): Likewise.
1759 * localedata/locales/brx_IN (t_fmt): Likewise.
1760 * localedata/locales/doi_IN (t_fmt): Likewise.
1761 * localedata/locales/en_HK (t_fmt): Likewise.
1762 (t_fmt_ampm): Likewise.
1763 * localedata/locales/en_IN (t_fmt): Likewise.
1764 * localedata/locales/en_PH (t_fmt): Likewise.
1765 * localedata/locales/gu_IN (t_fmt): Likewise.
1766 * localedata/locales/hi_IN (t_fmt): Likewise.
1767 * localedata/locales/hif_FJ (t_fmt): Likewise.
1768 * localedata/locales/hne_IN (t_fmt): Likewise.
1769 * localedata/locales/kn_IN (t_fmt): Likewise.
1770 * localedata/locales/kok_IN (t_fmt): Likewise.
1771 * localedata/locales/ks_IN (t_fmt): Likewise.
1772 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1773 * localedata/locales/mag_IN (t_fmt): Likewise.
1774 * localedata/locales/mai_IN (t_fmt): Likewise.
1775 * localedata/locales/mjw_IN (t_fmt): Likewise.
1776 * localedata/locales/ml_IN (t_fmt): Likewise.
1777 * localedata/locales/mni_IN (t_fmt): Likewise.
1778 * localedata/locales/mr_IN (t_fmt): Likewise.
1779 * localedata/locales/ms_MY (t_fmt): Likewise.
1780 * localedata/locales/pa_IN (t_fmt): Likewise.
1781 * localedata/locales/raj_IN (t_fmt): Likewise.
1782 * localedata/locales/sa_IN (t_fmt): Likewise.
1783 * localedata/locales/sat_IN (t_fmt): Likewise.
1784 * localedata/locales/sd_IN (t_fmt): Likewise.
1785 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1786 * localedata/locales/tcy_IN (t_fmt): Likewise.
1787 * localedata/locales/the_NP (t_fmt): Likewise.
1788 * localedata/locales/to_TO (t_fmt): Likewise.
1789 * localedata/locales/ur_IN (t_fmt): Likewise.
1790
1791 * localedata/locales/hif_FJ (d_t_fmt): Set to
1792 "%A %d %b %Y %I:%M:%S %p".
1793 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1794
1795 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1796 * localedata/locales/ar_BH (t_fmt): Likewise.
1797 * localedata/locales/ar_DZ (t_fmt): Likewise.
1798 * localedata/locales/ar_EG (t_fmt): Likewise.
1799 * localedata/locales/ar_IQ (t_fmt): Likewise.
1800 * localedata/locales/ar_JO (t_fmt): Likewise.
1801 * localedata/locales/ar_KW (t_fmt): Likewise.
1802 * localedata/locales/ar_LB (t_fmt): Likewise.
1803 * localedata/locales/ar_LY (t_fmt): Likewise.
1804 * localedata/locales/ar_OM (t_fmt): Likewise.
1805 * localedata/locales/ar_QA (t_fmt): Likewise.
1806 * localedata/locales/ar_SD (t_fmt): Likewise.
1807 * localedata/locales/ar_SS (t_fmt): Likewise.
1808 * localedata/locales/ar_SY (t_fmt): Likewise.
1809 * localedata/locales/ar_TN (t_fmt): Likewise.
1810 * localedata/locales/ar_YE (t_fmt): Likewise.
1811
1812 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1813 (t_fmt_ampm): Likewise.
1814 * localedata/locales/gez_ET (t_fmt): Likewise.
1815 (t_fmt_ampm): Likewise.
1816
1817 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1818 (t_fmt_ampm): Likewise.
1819 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1820
1821 * localedata/locales/zh_HK (t_fmt):
1822 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1823
1824 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1825 because this locale does not use the 12-hour clock.
1826 (t_fmt): Set to "%Z %H:%M:%S".
1827 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1828
1829 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1830 because this locale does not use the 12-hour clock.
1831 (t_fmt): Set to "%H:%M:%S %Z".
1832 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1833
1834 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1835 because this locale does not use the 12-hour clock.
1836 (t_fmt): Set to "%T".
1837 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1838 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1839
1840 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1841 because this locale does not use the 12-hour clock.
1842 (t_fmt): Set to "%H:%M:%S %Z".
1843 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1844
1845 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1846 because this locale does not use the 12-hour clock.
1847 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1848 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1849
1850 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1851
1852 [BZ #10496]
1853 [BZ #23724]
1854 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1855 (t_fmt_ampm): Likewise.
1856 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1857 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1858 (d_fmt): Set to "%-d.%-m.%y".
1859
1860 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1861
1862 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1863 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1864 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1865 Likewise.
1866 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1867 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1868 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1869 function.
1870 * support/blob_repeat.c (check_mul_overflow_size_t,
1871 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1872
1873 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1874
1875 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1876
1877 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1878
1879 regex: simplify Gnulib port
1880 This simplifies the code, by removing stuff intended for porting
1881 to Gnulib but no longer needed there.
1882 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1883 uses of libc_hidden_def, weak_alias.
1884 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1885 _Restrict_ except for public-facing headers.
1886 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1887 Remove; already defined elsewhere.
1888 * posix/regex.c, posix/regex_internal.h:
1889 Use __GNUC_PREREQ instead of rolling our own.
1890 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1891
1892 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1893
1894 * benchtests/bench-strlen.c (generic_strlen): New function.
1895 (memchr_strlen): New function.
1896
1897 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1898
1899 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1900 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1901 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1902
1903 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1906
1907 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1908
1909 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1910 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1911 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1912 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1913 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1914 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1915 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1916
1917 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1918
1919 [BZ #24023]
1920 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1921 PLT reference in libc.so.
1922 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1923 _Q_lltoq and _Q_qtod PLT references in libc.so.
1924
1925 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1926
1927 * benchtests/bench-memchr.c: Cleanup defines.
1928 * benchtests/bench-memcmp.c: Likewise.
1929 * benchtests/bench-memset.c: Likewise.
1930 * benchtests/bench-memset-large.c: Likewise.
1931 * benchtests/bench-memset-walk.c: Likewise.
1932 * benchtests/bench-stpcpy.c: Likewise.
1933 * benchtests/bench-stpncpy.c: Likewise.
1934 * benchtests/bench-strcat.c: Likewise.
1935 * benchtests/bench-strchr.c: Likewise.
1936 * benchtests/bench-strcmp.c: Likewise.
1937 * benchtests/bench-strcpy.c: Likewise.
1938 * benchtests/bench-strcspn.c: Likewise.
1939 * benchtests/bench-string.h: Likewise.
1940 * benchtests/bench-strlen.c: Likewise.
1941 * benchtests/bench-strncat.c: Likewise.
1942 * benchtests/bench-strncmp.c: Likewise.
1943 * benchtests/bench-strncpy.c: Likewise.
1944 * benchtests/bench-strnlen.c: Likewise.
1945 * benchtests/bench-strpbrk.c: Likewise.
1946 * benchtests/bench-strrchr.c: Likewise.
1947 * benchtests/bench-strspn.c: Likewise.
1948
1949 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1950
1951 * stdlib/longlong.h: Update from GCC.
1952
1953 [BZ #23993]
1954 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1955 * configure: Regenerated.
1956 * manual/install.texi (Tools for Compilation): Update minimum GCC
1957 version.
1958 * INSTALL: Regenerated.
1959
1960 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1961
1962 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1963
1964 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1965
1966 * malloc/malloc.c (mremap_chunk): Additional checks.
1967
1968 2018-12-21 Mao Han <han_mao@c-sky.com>
1969
1970 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1971 * scripts/build-many-glibcs.py: Add C-SKY targets.
1972 * sysdeps/csky/Implies: New file.
1973 * sysdeps/csky/Makefile: Likewise.
1974 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1975 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1976 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1977 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1978 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1979 * sysdeps/csky/abiv2/memmove.S: Likewise.
1980 * sysdeps/csky/abiv2/memset.S: Likewise.
1981 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1982 * sysdeps/csky/abiv2/start.S: Likewise.
1983 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1984 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1985 * sysdeps/csky/abiv2/strlen.S: Likewise.
1986 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1987 * sysdeps/csky/abort-instr.h: Likewise.
1988 * sysdeps/csky/atomic-machine.h: Likewise.
1989 * sysdeps/csky/bits/endian.h: Likewise.
1990 * sysdeps/csky/bits/fenv.h: Likewise.
1991 * sysdeps/csky/bits/link.h: Likewise.
1992 * sysdeps/csky/bits/setjmp.h: Likewise.
1993 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1994 * sysdeps/csky/bsd-setjmp.S: Likewise.
1995 * sysdeps/csky/configure: Likewise.
1996 * sysdeps/csky/configure.ac: Likewise.
1997 * sysdeps/csky/dl-machine.h: Likewise.
1998 * sysdeps/csky/dl-procinfo.c: Likewise.
1999 * sysdeps/csky/dl-procinfo.h: Likewise.
2000 * sysdeps/csky/dl-sysdep.h: Likewise.
2001 * sysdeps/csky/dl-tls.h: Likewise.
2002 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2003 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2004 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2005 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2006 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2007 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2008 * sysdeps/csky/fpu/fegetround.c: Likewise.
2009 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2010 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2011 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2012 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2013 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2014 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2015 * sysdeps/csky/fpu/fesetround.c: Likewise.
2016 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2017 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2018 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2019 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2020 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2021 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2022 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2023 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2024 * sysdeps/csky/fpu_control.h: Likewise.
2025 * sysdeps/csky/gccframe.h: Likewise.
2026 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2027 * sysdeps/csky/ldsodefs.h: Likewise.
2028 * sysdeps/csky/libc-tls.c: Likewise.
2029 * sysdeps/csky/linkmap.h: Likewise.
2030 * sysdeps/csky/machine-gmon.h: Likewise.
2031 * sysdeps/csky/memusage.h: Likewise.
2032 * sysdeps/csky/nofpu/Implies: Likewise.
2033 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2034 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2035 * sysdeps/csky/nptl/Makefile: Likewise.
2036 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2037 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2038 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2039 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2040 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2041 * sysdeps/csky/nptl/tls.h: Likewise.
2042 * sysdeps/csky/preconfigure: Likewise.
2043 * sysdeps/csky/sfp-machine.h: Likewise.
2044 * sysdeps/csky/sotruss-lib.c: Likewise.
2045 * sysdeps/csky/stackinfo.h: Likewise.
2046 * sysdeps/csky/sysdep.h: Likewise.
2047 * sysdeps/csky/tininess.h: Likewise.
2048 * sysdeps/csky/tst-audit.h: Likewise.
2049 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2050 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2051 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2052 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2053 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2054 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2067 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2068 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2069 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2070 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2071 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2072 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2073 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2074 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2075 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2076 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2077 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2078 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2079 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2080 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2081 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2082 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2083 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2084 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2085 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2086 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2087 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2088 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2089 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2090 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2091 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2092 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2093
2094 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2095
2096 * include/time.h (__difftime64): Add.
2097 * time/difftime.c (subtract): convert to 64-bit time.
2098 * time/difftime.c (__difftime64): Add.
2099 * time/difftime.c (__difftime): Wrap around __difftime64.
2100
2101 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2102
2103 * manual/examples/add.c: Remove redundant "if not".
2104 * manual/examples/argp-ex1.c: Likewise.
2105 * manual/examples/argp-ex2.c: Likewise.
2106 * manual/examples/argp-ex3.c: Likewise.
2107 * manual/examples/argp-ex4.c: Likewise.
2108 * manual/examples/atexit.c: Likewise.
2109 * manual/examples/db.c: Likewise.
2110 * manual/examples/dir.c: Likewise.
2111 * manual/examples/dir2.c: Likewise.
2112 * manual/examples/execinfo.c: Likewise.
2113 * manual/examples/filecli.c: Likewise.
2114 * manual/examples/filesrv.c: Likewise.
2115 * manual/examples/fmtmsgexpl.c: Likewise.
2116 * manual/examples/genpass.c: Likewise.
2117 * manual/examples/inetcli.c: Likewise.
2118 * manual/examples/inetsrv.c: Likewise.
2119 * manual/examples/isockad.c: Likewise.
2120 * manual/examples/longopt.c: Likewise.
2121 * manual/examples/memopen.c: Likewise.
2122 * manual/examples/memstrm.c: Likewise.
2123 * manual/examples/mkdirent.c: Likewise.
2124 * manual/examples/mkfsock.c: Likewise.
2125 * manual/examples/mkisock.c: Likewise.
2126 * manual/examples/mygetpass.c: Likewise.
2127 * manual/examples/pipe.c: Likewise.
2128 * manual/examples/popen.c: Likewise.
2129 * manual/examples/rprintf.c: Likewise.
2130 * manual/examples/search.c: Likewise.
2131 * manual/examples/select.c: Likewise.
2132 * manual/examples/setjmp.c: Likewise.
2133 * manual/examples/sigh1.c: Likewise.
2134 * manual/examples/sigusr.c: Likewise.
2135 * manual/examples/stpcpy.c: Likewise.
2136 * manual/examples/strdupa.c: Likewise.
2137 * manual/examples/strftim.c: Likewise.
2138 * manual/examples/subopt.c: Likewise.
2139 * manual/examples/swapcontext.c: Likewise.
2140 * manual/examples/termios.c: Likewise.
2141 * manual/examples/testopt.c: Likewise.
2142 * manual/examples/testpass.c: Likewise.
2143 * manual/examples/timeval_subtract.c: Likewise.
2144
2145 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2146
2147 * sysdeps/x86/fpu/math_private.h: New file.
2148 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2149
2150 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2151 definition.
2152 (cosh): Likewise.
2153 (tanh): Likewise.
2154
2155 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2156
2157 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2158 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2159 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2160 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2161 fields.
2162 (_dl_show_auxv): Give a special treatment to
2163 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2164 and AT_L3_CACHEGEOMETRY.
2165 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2166 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2167 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2168 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2169
2170 2018-12-19 Andreas Schwab <schwab@suse.de>
2171
2172 * nscd/connections.c (check_use): Don't abort on invalid len.
2173
2174 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2175
2176 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2177 values in the 64bit value cases.
2178
2179 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2180
2181 * include/time.h
2182 (__ctime64_r): Add.
2183 * time/ctime_r.c
2184 (__ctime64_r): Add.
2185 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2186
2187 * include/time.h
2188 (__ctime64): Add.
2189 * time/gmtime.c
2190 (__ctime64): Add.
2191 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2192
2193 * include/time.h
2194 (__gmtime64_r): Add.
2195 * time/gmtime.c
2196 (__gmtime64_r): Add.
2197 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2198
2199 * include/time.h
2200 (__gmtime64): Add.
2201 * time/gmtime.c
2202 (__gmtime64): Add.
2203 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2204
2205 * include/time.h
2206 (__localtime64_r): Add.
2207 * time/localtime.c
2208 (__localtime64_r): Add.
2209 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2210
2211 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2212
2213 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2214 kernel_sigction definition.
2215
2216 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2217
2218 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2219
2220 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2221 __syscall_rt_sigaction.
2222 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2223 (kernel_sigaction): Use Linux generic defintion.
2224 (STUB): Define.
2225 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2226 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2227 (__syscall_rt_sigaction): Remove implementation.
2228 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2229 hidden.
2230 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2231 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2232 INTERNAL_SYSCALL): Remove definitions.
2233 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2234 action and signal set size.
2235 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2236 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2237
2238 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2239 James Clarke <jrtc27@jrtc27.com>
2240
2241 [BZ #23967]
2242 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2243 Define if SA_RESTORER is defined.
2244 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2245 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2246 already defined.
2247 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2248 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2249 definitions.
2250 (HAS_SA_RESTORER): Define.
2251 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2252 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2253 (HAS_SA_RESTORER): Define.
2254 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2255 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2256 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2257 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2258 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2259
2260 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2261
2262 * sysdeps/unix/sysv/linux/kernel-features.h
2263 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2264 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2265 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2266 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2267 (__ASSUME_ST_INO_64_BIT): Likewise.
2268 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2269 <kernel-features.h>.
2270 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2271 Remove conditional code.
2272 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2273 <kernel-features.h>.
2274 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2275 Remove conditional code.
2276 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2277 <kernel-features.h>.
2278 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2279 Remove conditional code.
2280 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2281 <kernel-features.h>.
2282 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2283 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2284
2285 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2286
2287 * sysdeps/s390/multiarch/ifunc-resolve.h
2288 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2289 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2290 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2291 Delete macro definition.
2292 (s390_libc_ifunc_init): Rename to
2293 s390_libc_ifunc_expr_stfle_init.
2294 * sysdeps/s390/bzero: Use
2295 s390_libc_ifunc_expr_stfle_init instead of
2296 s390_libc_ifunc_init.
2297 * sysdeps/s390/memcmp.c: Likewise.
2298 * sysdeps/s390/memcpy.c: Likewise.
2299 * sysdeps/s390/mempcpy.c: Likewise.
2300 * sysdeps/s390/memset.c: Likewise.
2301
2302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2303
2304 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2305 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2306
2307 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2308
2309 * sysdeps/s390/multiarch/Makefile
2310 (sysdep_routines): Remove wmemcmp variants.
2311 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2312 * sysdeps/s390/multiarch/ifunc-impl-list.c
2313 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2314 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2315 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2316 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2317 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2318 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2319 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2320 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2321
2322 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2323
2324 * sysdeps/s390/multiarch/Makefile
2325 (sysdep_routines): Remove wmemset variants.
2326 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2327 * sysdeps/s390/multiarch/ifunc-impl-list.c
2328 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2329 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2330 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2331 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2332 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2333 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2334 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2335 * sysdeps/s390/ifunc-wmemset.h: New file.
2336
2337 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2338
2339 * sysdeps/s390/multiarch/Makefile
2340 (sysdep_routines): Remove wmemchr variants.
2341 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2342 * sysdeps/s390/multiarch/ifunc-impl-list.c
2343 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2344 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2345 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2346 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2347 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2348 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2349 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2350 * sysdeps/s390/ifunc-wmemchr.h: New file.
2351
2352 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2353
2354 * sysdeps/s390/multiarch/Makefile
2355 (sysdep_routines): Remove wcscspn variants.
2356 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2357 * sysdeps/s390/multiarch/ifunc-impl-list.c
2358 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2359 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2360 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2361 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2362 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2363 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2364 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2365 * sysdeps/s390/ifunc-wcscspn.h: New file.
2366
2367 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2368
2369 * sysdeps/s390/multiarch/Makefile
2370 (sysdep_routines): Remove wcspbrk variants.
2371 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2372 * sysdeps/s390/multiarch/ifunc-impl-list.c
2373 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2374 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2375 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2376 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2377 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2378 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2379 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2380 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2381
2382 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2383
2384 * sysdeps/s390/multiarch/Makefile
2385 (sysdep_routines): Remove wcsspn variants.
2386 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2387 * sysdeps/s390/multiarch/ifunc-impl-list.c
2388 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2389 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2390 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2391 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2392 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2393 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2394 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2395 * sysdeps/s390/ifunc-wcsspn.h: New file.
2396
2397 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2398
2399 * sysdeps/s390/multiarch/Makefile
2400 (sysdep_routines): Remove wcsrchr variants.
2401 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2402 * sysdeps/s390/multiarch/ifunc-impl-list.c
2403 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2404 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2405 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2406 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2407 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2408 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2409 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2410 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2411
2412 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2413
2414 * sysdeps/s390/multiarch/Makefile
2415 (sysdep_routines): Remove wcschrnul variants.
2416 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2417 * sysdeps/s390/multiarch/ifunc-impl-list.c
2418 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2419 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2420 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2421 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2422 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2423 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2424 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2425 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2426
2427 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2428
2429 * sysdeps/s390/multiarch/Makefile
2430 (sysdep_routines): Remove wcschr variants.
2431 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2432 * sysdeps/s390/multiarch/ifunc-impl-list.c
2433 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2434 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2435 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2436 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2437 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2438 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2439 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2440 * sysdeps/s390/ifunc-wcschr.h: New file.
2441
2442 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2443
2444 * sysdeps/s390/multiarch/Makefile
2445 (sysdep_routines): Remove wcsncmp variants.
2446 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2447 * sysdeps/s390/multiarch/ifunc-impl-list.c
2448 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2449 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2450 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2451 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2452 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2453 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2454 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2455 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2456
2457 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2458
2459 * sysdeps/s390/multiarch/Makefile
2460 (sysdep_routines): Remove wcscmp variants.
2461 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2462 * sysdeps/s390/multiarch/ifunc-impl-list.c
2463 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2464 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2465 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2466 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2467 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2468 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2469 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2470 * sysdeps/s390/ifunc-wcscmp.h: New file.
2471
2472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2473
2474 * sysdeps/s390/multiarch/Makefile
2475 (sysdep_routines): Remove wcsncat variants.
2476 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2477 * sysdeps/s390/multiarch/ifunc-impl-list.c
2478 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2479 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2480 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2481 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2482 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2483 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2484 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2485 * sysdeps/s390/ifunc-wcsncat.h: New file.
2486
2487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2488
2489 * sysdeps/s390/multiarch/Makefile
2490 (sysdep_routines): Remove wcscat variants.
2491 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2492 * sysdeps/s390/multiarch/ifunc-impl-list.c
2493 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2494 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2495 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2496 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2497 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2498 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2499 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2500 * sysdeps/s390/ifunc-wcscat.h: New file.
2501
2502 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2503
2504 * sysdeps/s390/multiarch/Makefile
2505 (sysdep_routines): Remove wcpncpy variants.
2506 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2507 * sysdeps/s390/multiarch/ifunc-impl-list.c
2508 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2509 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2510 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2511 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2512 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2513 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2514 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2515 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2516
2517 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2518
2519 * sysdeps/s390/multiarch/Makefile
2520 (sysdep_routines): Remove wcsncpy variants.
2521 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2522 * sysdeps/s390/multiarch/ifunc-impl-list.c
2523 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2524 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2525 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2527 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2528 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2529 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2530 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2531
2532 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2533
2534 * sysdeps/s390/multiarch/Makefile
2535 (sysdep_routines): Remove wcpcpy variants.
2536 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2537 * sysdeps/s390/multiarch/ifunc-impl-list.c
2538 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2539 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2540 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2541 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2542 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2543 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2544 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2545 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2546
2547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2548
2549 * sysdeps/s390/multiarch/Makefile
2550 (sysdep_routines): Remove wcscpy variants.
2551 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2552 * sysdeps/s390/multiarch/ifunc-impl-list.c
2553 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2554 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2555 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2556 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2557 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2558 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2559 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2560 * sysdeps/s390/ifunc-wcscpy.h: New file.
2561
2562 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2563
2564 * sysdeps/s390/multiarch/Makefile
2565 (sysdep_routines): Remove wcsnlen variants.
2566 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2567 * sysdeps/s390/multiarch/ifunc-impl-list.c
2568 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2569 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2570 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2571 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2572 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2573 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2574 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2575 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2576
2577 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2578
2579 * sysdeps/s390/multiarch/Makefile
2580 (sysdep_routines): Remove wcslen variants.
2581 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2582 * sysdeps/s390/multiarch/ifunc-impl-list.c
2583 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2584 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2585 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2586 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2587 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2588 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2589 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2590 * sysdeps/s390/ifunc-wcslen.h: New file.
2591
2592 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2593
2594 * sysdeps/s390/multiarch/Makefile
2595 (sysdep_routines): Remove memrchr variants.
2596 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2597 * sysdeps/s390/multiarch/ifunc-impl-list.c
2598 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2599 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2600 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2601 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2602 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2603 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2604 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2605 * sysdeps/s390/ifunc-memrchr.h: New file.
2606
2607 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2608
2609 * sysdeps/s390/multiarch/Makefile
2610 (sysdep_routines): Remove memccpy variants.
2611 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2612 * sysdeps/s390/multiarch/ifunc-impl-list.c
2613 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2614 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2615 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2616 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2617 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2618 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2619 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2620 * sysdeps/s390/ifunc-memccpy.h: New file.
2621
2622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2623
2624 * sysdeps/s390/multiarch/Makefile
2625 (sysdep_routines): Remove rawmemchr variants.
2626 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2627 * sysdeps/s390/multiarch/ifunc-impl-list.c
2628 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2629 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2630 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2631 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2632 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2633 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2634 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2635 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2636
2637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2638
2639 * sysdeps/s390/multiarch/Makefile
2640 (sysdep_routines): Remove memchr variants.
2641 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2642 * sysdeps/s390/multiarch/ifunc-impl-list.c
2643 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2644 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2645 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2646 * sysdeps/s390/multiarch/memchr.c: Move to ...
2647 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2648 * sysdeps/s390/ifunc-memchr.h: New file.
2649 * sysdeps/s390/s390-64/memchr.S: Move to ...
2650 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2651 for 31/64bit and ifunc handling.
2652 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2653 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2654 * sysdeps/s390/s390-32/memchr.S: Likewise.
2655
2656 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2657
2658 * sysdeps/s390/multiarch/Makefile
2659 (sysdep_routines): Remove strcspn variants.
2660 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2661 * sysdeps/s390/multiarch/ifunc-impl-list.c
2662 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2663 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2664 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2665 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2666 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2667 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2668 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2669 * sysdeps/s390/ifunc-strcspn.h: New file.
2670
2671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2672
2673 * sysdeps/s390/multiarch/Makefile
2674 (sysdep_routines): Remove strpbrk variants.
2675 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2676 * sysdeps/s390/multiarch/ifunc-impl-list.c
2677 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2678 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2679 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2680 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2681 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2682 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2683 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2684 * sysdeps/s390/ifunc-strpbrk.h: New file.
2685
2686 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2687
2688 * sysdeps/s390/multiarch/Makefile
2689 (sysdep_routines): Remove strspn variants.
2690 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2691 * sysdeps/s390/multiarch/ifunc-impl-list.c
2692 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2693 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2694 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2695 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2696 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2697 * sysdeps/s390/multiarch/strspn.c: Move to ...
2698 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2699 * sysdeps/s390/ifunc-strspn.h: New file.
2700
2701 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2702
2703 * sysdeps/s390/multiarch/Makefile
2704 (sysdep_routines): Remove strrchr variants.
2705 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2706 * sysdeps/s390/multiarch/ifunc-impl-list.c
2707 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2708 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2709 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2710 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2711 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2712 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2713 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2714 * sysdeps/s390/ifunc-strrchr.h: New file.
2715
2716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2717
2718 * sysdeps/s390/multiarch/Makefile
2719 (sysdep_routines): Remove strchrnul variants.
2720 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2721 * sysdeps/s390/multiarch/ifunc-impl-list.c
2722 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2723 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2724 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2725 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2726 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2727 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2728 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2729 * sysdeps/s390/ifunc-strchrnul.h: New file.
2730
2731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2732
2733 * sysdeps/s390/multiarch/Makefile
2734 (sysdep_routines): Remove strchr variants.
2735 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2736 * sysdeps/s390/multiarch/ifunc-impl-list.c
2737 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2738 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2739 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2740 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2741 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2742 * sysdeps/s390/multiarch/strchr.c: Move to ...
2743 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2744 * sysdeps/s390/ifunc-strchr.h: New file.
2745
2746 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2747
2748 * sysdeps/s390/multiarch/Makefile
2749 (sysdep_routines): Remove strncmp variants.
2750 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2751 * sysdeps/s390/multiarch/ifunc-impl-list.c
2752 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2753 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2754 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2755 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2756 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2757 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2758 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2759 * sysdeps/s390/ifunc-strncmp.h: New file.
2760
2761 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2762
2763 * sysdeps/s390/multiarch/Makefile
2764 (sysdep_routines): Remove strcmp variants.
2765 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2766 * sysdeps/s390/multiarch/ifunc-impl-list.c
2767 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2768 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2769 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2770 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2771 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2772 * sysdeps/s390/ifunc-strcmp.h: New file.
2773 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2774 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2775 for 31/64bit and ifunc handling.
2776 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2777 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2778 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2779
2780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2781
2782 * sysdeps/s390/multiarch/Makefile
2783 (sysdep_routines): Remove strncat variants.
2784 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2785 * sysdeps/s390/multiarch/ifunc-impl-list.c
2786 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2787 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2788 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2789 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2790 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2791 * sysdeps/s390/multiarch/strncat.c: Move to ...
2792 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2793 * sysdeps/s390/ifunc-strncat.h: New file.
2794
2795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2796
2797 * sysdeps/s390/multiarch/Makefile
2798 (sysdep_routines): Remove strcat variants.
2799 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2800 * sysdeps/s390/multiarch/ifunc-impl-list.c
2801 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2802 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2803 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2804 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2805 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2806 * sysdeps/s390/multiarch/strcat.c: Move to ...
2807 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2808 * sysdeps/s390/ifunc-strcat.h: New file.
2809
2810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2811
2812 * sysdeps/s390/multiarch/Makefile
2813 (sysdep_routines): Remove stpncpy variants.
2814 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2815 * sysdeps/s390/multiarch/ifunc-impl-list.c
2816 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2817 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2818 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2819 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2820 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2821 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2822 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2823 * sysdeps/s390/ifunc-stpncpy.h: New file.
2824
2825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2826
2827 * sysdeps/s390/multiarch/Makefile
2828 (sysdep_routines): Remove strncpy variants.
2829 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2830 * sysdeps/s390/multiarch/ifunc-impl-list.c
2831 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2832 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2833 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2834 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2835 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2836 * sysdeps/s390/ifunc-strncpy.h: New file.
2837 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2838 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2839 and adjust ifunc handling.
2840 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2841 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2842 and adjust ifunc handling.
2843 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2844 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2845
2846 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2847
2848 * sysdeps/s390/multiarch/Makefile
2849 (sysdep_routines): Remove stpcpy variants.
2850 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2851 * sysdeps/s390/multiarch/ifunc-impl-list.c
2852 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2853 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2854 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2855 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2856 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2857 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2858 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2859 * sysdeps/s390/ifunc-stpcpy.h: New file.
2860
2861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2862
2863 * sysdeps/s390/multiarch/Makefile
2864 (sysdep_routines): Remove strcpy variants.
2865 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2866 * sysdeps/s390/multiarch/ifunc-impl-list.c
2867 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2868 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2869 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2870 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2871 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2872 * sysdeps/s390/ifunc-strcpy.h: New file.
2873 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2874 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2875 for 31/64bit and ifunc handling.
2876 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2877 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2878 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2879
2880 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2881
2882 * sysdeps/s390/multiarch/Makefile
2883 (sysdep_routines): Remove strnlen variants.
2884 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2885 * sysdeps/s390/multiarch/ifunc-impl-list.c
2886 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2887 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2888 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2889 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2890 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2891 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2892 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2893 * sysdeps/s390/ifunc-strnlen.h: New file.
2894
2895 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2896
2897 * sysdeps/s390/multiarch/Makefile
2898 (sysdep_routines): Remove strlen variants.
2899 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2900 * sysdeps/s390/multiarch/ifunc-impl-list.c
2901 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2902 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2903 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2904 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2905 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2906 * sysdeps/s390/multiarch/strlen.c: Move to ...
2907 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2908 * sysdeps/s390/ifunc-strlen.h: New file.
2909
2910 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2911
2912 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2913 * sysdeps/s390/multiarch/ifunc-impl-list.c
2914 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2915 * sysdeps/s390/ifunc-memmem.h: New file.
2916 * sysdeps/s390/memmem.c: Likewise.
2917 * sysdeps/s390/memmem-c.c: Likewise.
2918 * sysdeps/s390/memmem-vx.c: Likewise.
2919
2920 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2921
2922 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2923 * sysdeps/s390/multiarch/ifunc-impl-list.c
2924 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2925 * sysdeps/s390/ifunc-strstr.h: New file.
2926 * sysdeps/s390/strstr.c: Likewise.
2927 * sysdeps/s390/strstr-c.c: Likewise.
2928 * sysdeps/s390/strstr-vx.c: Likewise.
2929
2930 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2931
2932 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2933 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2934 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2935 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2936 New defines.
2937 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2938 * sysdeps/s390/memmove-c.c: New file.
2939 * sysdeps/s390/memmove.c: Likewise.
2940 * sysdeps/s390/multiarch/ifunc-impl-list.c
2941 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2942
2943 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2944
2945 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2946 * sysdeps/s390/configure.ac: Add check for z13 support.
2947 * sysdeps/s390/configure: Regenerated.
2948
2949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * sysdeps/s390/memcopy.h: New file.
2952
2953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2954
2955 * sysdeps/s390/s390-32/bcopy.S: Remove.
2956 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2957
2958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2959
2960 * sysdeps/s390/ifunc-memcpy.h: New File.
2961 * sysdeps/s390/memcpy.S: Move to ...
2962 * sysdeps/s390/memcpy-z900.S ... here.
2963 Move implementations from memcpy-s390x.s to here.
2964 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2965 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2966 Remove memcpy/mempcpy variants.
2967 * sysdeps/s390/Makefile (sysdep_routines):
2968 Add memcpy/mempcpy variants.
2969 * sysdeps/s390/multiarch/ifunc-impl-list.c
2970 (__libc_ifunc_impl_list): Adjust ifunc variants for
2971 memcpy and mempcpy.
2972 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2973 to ...
2974 * sysdeps/s390/memcpy.c: ... here.
2975 Adjust ifunc variants for memcpy.
2976 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2977 * sysdeps/s390/mempcpy.c: ... here.
2978 Adjust ifunc variants for mempcpy.
2979 * sysdeps/s390/mempcpy.S: Delete file.
2980
2981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2982
2983 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2984 * sysdeps/s390/memcpy.S: ... here.
2985 Adjust to be usable for 31/64bit.
2986 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2987 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2988 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2989 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2990 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2991 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2992 Adjust to be usable for 31/64bit.
2993 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2994 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2995 * sysdeps/s390/multiarch/memcpy.c: ... here.
2996 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2997
2998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2999
3000 * sysdeps/s390/ifunc-memcmp.h: New File.
3001 * sysdeps/s390/memcmp.S: Move to ...
3002 * sysdeps/s390/memcmp-z900.S ... here.
3003 Move implementations from memcmp-s390x.s to here.
3004 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3005 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3006 Remove memcmp variants.
3007 * sysdeps/s390/Makefile (sysdep_routines):
3008 Add memcmp variants.
3009 * sysdeps/s390/multiarch/ifunc-impl-list.c
3010 (__libc_ifunc_impl_list): Adjust ifunc variants for
3011 memcmp.
3012 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3013 to ...
3014 * sysdeps/s390/memcmp.c: ... here.
3015 Adjust ifunc variants for memcmp.
3016
3017 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3018
3019 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3020 * sysdeps/s390/memcmp.S: ... here.
3021 Adjust to be usable for 31/64bit.
3022 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3023 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3024 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3025 Remove memcmp.
3026 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3027 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3028 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3029 Adjust to be usable for 31/64bit.
3030 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3031 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3032 * sysdeps/s390/multiarch/memcmp.c: ... here.
3033 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3034
3035 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3036
3037 * sysdeps/s390/s390-32/bzero.S: Delete file.
3038 * sysdeps/s390/s390-64/bzero.S: Likewise.
3039 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3040 * sysdeps/s390/bzero.c: New file.
3041 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3042 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3043 * sysdeps/s390/multiarch/ifunc-impl-list.c
3044 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3045
3046 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3047
3048 * sysdeps/s390/ifunc-memset.h: New File.
3049 * sysdeps/s390/memset.S: Move to ...
3050 * sysdeps/s390/memset-z900.S ... here.
3051 Move implementations from memset-s390x.s to here.
3052 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3053 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3054 Remove memset variants.
3055 * sysdeps/s390/Makefile (sysdep_routines):
3056 Add memset variants.
3057 * sysdeps/s390/multiarch/ifunc-impl-list.c
3058 (__libc_ifunc_impl_list): Adjust ifunc variants for
3059 memset.
3060 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3061 to ...
3062 * sysdeps/s390/memset.c: ... here.
3063 Adjust ifunc variants for memset.
3064
3065 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3066
3067 * sysdeps/s390/s390-64/memset.S: Move to ...
3068 * sysdeps/s390/memset.S: ... here.
3069 Adjust to be usable for 31/64bit.
3070 * sysdeps/s390/s390-32/memset.S: Delete File.
3071 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3072 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3073 Remove memset.
3074 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3075 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3076 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3077 Adjust to be usable for 31/64bit.
3078 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3079 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3080 * sysdeps/s390/multiarch/memset.c: ... here.
3081 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3082
3083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3084
3085 * sysdeps/s390/multiarch/ifunc-resolve.h
3086 (s390_libc_ifunc_init, s390_libc_ifunc,
3087 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3088
3089 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3090
3091 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3092 * sysdeps/s390/configure.ac: Add check for z10 support.
3093 * sysdeps/s390/configure: Regenerated.
3094
3095 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3096
3097 * sysdeps/i386/atomic-machine.h: Merged with ...
3098 * sysdeps/x86_64/atomic-machine.h: To ...
3099 * sysdeps/x86/atomic-machine.h: This. New file.
3100
3101 2018-12-18 Florian Weimer <fweimer@redhat.com>
3102
3103 Rewrite locale/gen-translit.pl in Python.
3104 * locale/Makefile (generated): Add C-translit.h.
3105 (before-compile): Add $(objpfx)C-translit.h.
3106 (C-translit.h): Move to $(objpfx). Create target directory.
3107 Build using Python script.
3108 * locale/gen-translit.py: New file.
3109 * locale/gen-translit.pl: Remove file.
3110 * locale/C-translit.h.in: Change comment character to '#' for
3111 easier parsing without a C preprocessor.
3112 * locale/C-translit.h: Remove generated file.
3113 * manual/install.texi (Tools for Compilation): Do not mention
3114 C-translit.h.
3115 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3116 Remove locale/C-translit.h.
3117 * scripts/update-copyrights: Likewise.
3118 * INSTALL: Regenerate.
3119
3120 2018-12-18 Florian Weimer <fweimer@redhat.com>
3121
3122 [BZ #23995]
3123 * localedata/locales/bi_VU: Remove executable bit from file.
3124
3125 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3126
3127 * include/time.h
3128 (__localtime64): Add.
3129 * manual/maint.texi: Document Y2038 symbol handling.
3130 * time/localtime.c
3131 (__localtime64): Add.
3132 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3133
3134 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3135
3136 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3137 Do not clobber r12.
3138
3139 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3140 to allow extra macros from first or second sources.
3141 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3142 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3143 (tests-special): Add $(objpfx)tst-mman-consts.out.
3144 ($(objpfx)tst-mman-consts.out): New makefile target.
3145
3146 2018-12-17 Mao Han <han_mao@c-sky.com>
3147
3148 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3149 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3150 without stat64 system call support.
3151 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3152 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3153 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3154 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3155 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3156 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3157 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3158 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3159 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3160 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3161 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3162
3163 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3164
3165 regex: fix storage-exhaustion error
3166 [BZ #18040]
3167 * posix/regexec.c (get_subexp):
3168 Do not continue if storage is exhausted.
3169
3170 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3171
3172 regex: fix heap-use-after-free error
3173 [BZ #18040]
3174 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3175 https://debbugs.gnu.org/32592
3176 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3177 call extend_buffers which reallocates the re_string_t internal buffer.
3178 Local variable 'buf' was not updated in such case, resulting in
3179 use-after-free.
3180 * posix/regexec.c (get_subexp): Update 'buf' after call to
3181 get_subexp_sub.
3182
3183 2018-12-15 Florian Weimer <fweimer@redhat.com>
3184
3185 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3186 (minimum_stride_size): Use it.
3187 (support_blob_repeat_allocate): Likewise.
3188
3189 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3190
3191 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3192 definition.
3193 (acosh): Likewise.
3194 (atanh): Likewise.
3195
3196 2018-12-14 Florian Weimer <fweimer@redhat.com>
3197
3198 * manual/process.texi (Process Creation Concepts): Remove
3199 documentation of process (ID) lifetime. List more process
3200 creation functions. Reference Process Identification section.
3201 (Process Identification): Add information about process ID
3202 lifetime. Describe Linux thread/task IDs.
3203 * manual/signal.texi (Signaling Another Process): Mention that the
3204 signal is always sent to the process.
3205
3206 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3207
3208 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3209 and tst-ldbl-efgcvt.
3210 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3211 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3212 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3213 (fcvt_tests, output_error, output_r_error, do_test): Use the
3214 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3215 select the type of floating-point variables and arguments; to
3216 produce extra tests for double and conversion specifiers for
3217 printf; and to set the names of called functions.
3218 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3219 in tst-efgcvt-template.c.
3220 * misc/tst-ldbl-efgcvt.c: Likewise.
3221
3222 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3223
3224 * nss/Makefile (tst-nss-test3.out): New rule.
3225
3226 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3227
3228 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3229 clobber sp.
3230
3231 2018-12-13 fanjinke <fanjinke@hygon.cn>
3232
3233 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3234 "HygonGenuine".
3235
3236 2018-12-13 Andreas Schwab <schwab@suse.de>
3237
3238 [BZ #23861]
3239 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3240 (__pthread_rwlock_rdlock_full): Update expected value for
3241 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3242 * nptl/tst-rwlock-pwn.c: New file.
3243 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3244
3245 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3246
3247 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3248 definition.
3249
3250 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3251
3252 * benchtests/scripts/compare_bench.py (do_compare): write to
3253 stderr in casestat is not present.
3254 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3255 stderr in case timings field is not present. Also string showing
3256 the output filename goes into the stderr.
3257
3258 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3259
3260 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3261 and ZeroDivisorError exceptions.
3262 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3263 argument to loop through user provided statistics.
3264 * benchtests/scripts/compare_bench.py (main): Include the --stats
3265 argument.
3266
3267 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3268
3269 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3270 instead of return.
3271
3272 2018-12-12 Florian Weimer <fweimer@redhat.com>
3273
3274 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3275 clause to copyright header.
3276
3277 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3278
3279 [BZ #23614]
3280 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3281 registers saved in the stack frame.
3282 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3283 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3284
3285 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3286
3287 * include/bits/monetary-ldbl.h: New file.
3288 * include/bits/printf-ldbl.h: Likewise.
3289 * include/bits/stdio-ldbl.h: Likewise.
3290 * include/bits/stdlib-ldbl.h: Likewise.
3291 * include/bits/syslog-ldbl.h: Likewise.
3292 * include/bits/wchar-ldbl.h: Likewise.
3293
3294 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3295
3296 * libio/libio.h: Remove redirection for _IO_vfprintf.
3297
3298 2018-12-11 Andreas Schwab <schwab@suse.de>
3299
3300 * Makerules: Remove all references to abilist-pattern.
3301 (update-all-abi): Simplify find expression.
3302
3303 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3304
3305 [BZ #23961]
3306 * math/auto-libm-test-in: Add new test case.
3307 * math/auto-libm-test-out-pow: Regenerated.
3308 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3309
3310 2018-12-10 DJ Delorie <dj@redhat.com>
3311
3312 [BZ #23948]
3313 * support/test-container.c: Move postclean step to before we
3314 change namespaces.
3315
3316 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3317
3318 * scripts/gen-as-const.py (main): Handle --python option.
3319 * scripts/gen-py-const.awk: Remove.
3320 * Makerules (py-const-script): Use gen-as-const.py.
3321 ($(py-const)): Likewise.
3322 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3323 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3324 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3325 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3326 ~PTHREAD_MUTEX_NO_ELISION_NP.
3327 * manual/README.pretty-printers: Update reference to
3328 gen-py-const.awk.
3329
3330 * scripts/glibcextract.py: New file.
3331 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3332 or tempfile. Import glibcexctract.
3333 (compute_c_consts): Remove. Moved to glibcextract.py.
3334 (gen_test): Update reference to compute_c_consts.
3335 (main): Likewise.
3336 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3337 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3338 * sysdeps/unix/sysv/linux/Makefile
3339 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3340 Redirect stderr as well as stdout.
3341
3342 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3343
3344 [BZ #19767]
3345 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3346 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3347 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3348 ALWAYS_USE_VSYSCALL.
3349 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3350 ALWAYS_USE_VSYSCALL.
3351 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3352 ALWAYS_USE_VSYSCALL.
3353
3354 2018-12-10 Florian Weimer <fweimer@redhat.com>
3355
3356 [BZ #23972]
3357 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3358 offset instead of count for clarity. Fix typo in comment.
3359 (__old_getdents64): Keep track of previous offset. Use it to call
3360 handle_overflow.
3361 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3362 that d_off is never zero.
3363
3364 2018-12-10 Andreas Schwab <schwab@suse.de>
3365
3366 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3367 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3369 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3370 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3371
3372 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3373
3374 * timezone/private.h: Update from tzcode 2018g.
3375 * timezone/tzfile.h: Likewise.
3376 * timezone/tzselect.ksh: Likewise.
3377 * timezone/zdump.c: Likewise.
3378 * timezone/zic.c: Likewise.
3379
3380 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3381
3382 [BZ #23490]
3383 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3384 (do_test): Adjust buffer size and fix format.
3385
3386 2018-12-07 DJ Delorie <dj@redhat.com>
3387
3388 [BZ #23907]
3389 * malloc/tst-tcfree3.c: New.
3390 * malloc/Makefile: Add it.
3391
3392 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3393
3394 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3395
3396 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3397
3398 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3399 used as a mask for the mode argument of __vfscanf_internal and
3400 __vfwscanf_internal.
3401 * stdio-common/vfscanf-internal.c
3402 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3403 (__strtof128_internal): Define to __wcstof128_internal.
3404 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3405 __strtof128_internal or __wcstof128_internal when the format of
3406 long double is the same as _Float128.
3407
3408 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3409
3410 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3411 * posix/confstr.c (confstr): Rename to __confstr.
3412 (__confstr): Add hidden def.
3413 (confstr): Add weak alias for __confstr.
3414 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3415 confstr.
3416
3417 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3418
3419 * NEWS: Mention getcpu.
3420 * include/sched.h (__getcpu): New libc_hidden_proto.
3421 * manual/resource.texi: Document getcpu.
3422 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3423 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3424 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3425 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3426 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3427 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3428 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3429 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3430 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3431 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3432 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3433 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3434 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3437 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3438 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3440 Likewise.
3441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3442 Likewise.
3443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3444 Likewise.
3445 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3446 Likewise.
3447 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3448 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3449 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3450 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3452 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3453 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3454 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3455 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3456 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3457 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3458 Also check getcpu.
3459
3460 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3461
3462 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3463 functions.
3464 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3465
3466 2018-12-07 Florian Weimer <fweimer@redhat.com>
3467
3468 [BZ #17405]
3469 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3470 * posix/Versions (GLIBC_2.29): Export
3471 posix_spawn_file_actions_addfchdir_np.
3472 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3473 * posix/spawn_faction_destroy.c
3474 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3475 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3476 and the field action.fchdir_action.
3477 * posix/tst-spawn-chdir.c (add_chdir): New function.
3478 (do_test): Add do_fchdir loop. Call add_chdir.
3479 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3480 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3481 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3482 posix_spawn_file_actions_addfchdir_np.
3483 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3484 Likewise.
3485 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3486 Likewise.
3487 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3488 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3489 Likewise.
3490 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3491 Likewise.
3492 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3493 Likewise.
3494 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3495 Likewise.
3496 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3497 Likewise.
3498 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3499 Likewise.
3500 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3501 (GLIBC_2.29): Likewise.
3502 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3503 (GLIBC_2.29): Likewise.
3504 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3505 (GLIBC_2.29): Likewise.
3506 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3507 (GLIBC_2.29): Likewise.
3508 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3509 Likewise.
3510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3511 (GLIBC_2.29): Likewise.
3512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3513 (GLIBC_2.29): Likewise.
3514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3515 (GLIBC_2.29): Likewise.
3516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3517 (GLIBC_2.29): Likewise.
3518 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3519 Likewise.
3520 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3521 Likewise.
3522 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3523 Likewise.
3524 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3525 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3526 Likewise.
3527 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3528 Likewise.
3529 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3530 Likewise.
3531 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3532 Likewise.
3533
3534 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3535
3536 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3537 trailing whitespace removed.
3538 * scripts/config.guess: Update to version 2018-11-28.
3539 * scripts/config.sub: Update to version 2018-11-28.
3540 * scripts/install-sh: Update to version 2018-03-11.20.
3541 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3542 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3543
3544 2018-12-07 Florian Weimer <fweimer@redhat.com>
3545
3546 [BZ #23927]
3547 CVE-2018-19591
3548 * inet/tst-if_index-long.c: New file.
3549 * inet/Makefile (tests): Add tst-if_index-long.
3550
3551 2018-12-07 Florian Weimer <fweimer@redhat.com>
3552
3553 * support/check.h (support_record_failure_is_failed): Declare.
3554 * support/descriptors.h: New file.
3555 * support/support_descriptors.c: Likewise.
3556 * support/tst-support_descriptors.c: Likewise.
3557 * support/support_record_failure.c
3558 (support_record_failure_is_failed): New function.
3559 * support/Makefile (libsupport-routines): Add support_descriptors.
3560 (tests): Add tst-support_descriptors.
3561
3562 2018-12-05 Zack Weinberg <zackw@panix.com>
3563 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3564
3565 * stdio-common/vfprintf-internal.c
3566 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3567 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3568 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3569 and __no_long_double.
3570 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3571 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3572 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3573 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3574 and __nldbl_*syslog* functions.
3575 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3576 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3577 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3578 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3579 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3580 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3581 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3582 (__nldbl_vwprintf, __nldbl_wprintf):
3583 Directly call the appropriate __v*printf_internal routine, passing
3584 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3585 variable names.
3586 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3587 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3588 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3589 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3590 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3591 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3592 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3593 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3594 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3595 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3596 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3597 (__nldbl_syslog, __nldbl_vsyslog):
3598 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3599 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3600 appropriate.
3601 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3602 appropriate.
3603
3604 2018-12-05 Zack Weinberg <zackw@panix.com>
3605 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3606
3607 [BZ #11319]
3608 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3609 Moved here from debug/vsprintf_chk.c.
3610 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3611 and completion logic for the strfile to match exactly what
3612 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3613 _IO_str_init_static_internal instead of maxlen-1.
3614 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3615 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3616 __vsprintf_internal.
3617
3618 * debug/vsprintf_chk.c (__vsprintf_chk)
3619 * debug/sprintf_chk.c (__sprintf_chk):
3620 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3621 'flags' argument is positive, and slen as maxlen. No need to lock
3622 the FILE and/or construct a temporary FILE. Minimize and normalize
3623 header inclusions and variable names. Do not libc_hidden_def anything.
3624
3625 * debug/asprintf_chk.c (__asprintf_chk)
3626 * debug/dprintf_chk.c (__dprintf_chk)
3627 * debug/fprintf_chk.c (__fprintf_chk)
3628 * debug/fwprintf_chk.c (__fwprintf_chk)
3629 * debug/printf_chk.c (__printf_chk)
3630 * debug/snprintf_chk.c (__snprintf_chk)
3631 * debug/swprintf_chk.c (__swprintf_chk)
3632 * debug/vasprintf_chk.c (__vasprintf_chk)
3633 * debug/vdprintf_chk.c (__vdprintf_chk)
3634 * debug/vfprintf_chk.c (__vfprintf_chk)
3635 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3636 * debug/vprintf_chk.c (__vprintf_chk)
3637 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3638 * debug/vswprintf_chk.c (__vswprintf_chk)
3639 * debug/vwprintf_chk.c (__vwprintf_chk)
3640 * debug/wprintf_chk.c (__wprintf_chk):
3641 Directly call the corresponding vxxprintf_internal function, passing
3642 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3643 the FILE and/or construct a temporary FILE. Minimize and normalize
3644 header inclusions and variable names. Do not libc_hidden_def anything.
3645
3646 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3647 __obstack_vprintf_internal.
3648 (__obstack_vprintf_chk): Convert into a wrapper that calls
3649 __obstack_vprintf_internal (these two functions already had the
3650 same code) and move to new file...
3651 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3652 file.
3653 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3654 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3655 * debug/Makefile (routines): Add vobprintf_chk.
3656
3657 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3658 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3659 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3660 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3661 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3662 (__nldbl___obstack_vfprintf_chk):
3663 Directly call the corresponding vxxprintf_internal function,
3664 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3665 duplicate comparison of slen with 0 or maxlen from the corresponding
3666 non-__nldbl function.
3667
3668 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3669 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3670 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3671 Remove libc_hidden_proto.
3672
3673 * stdio-common/vfprintf-internal.c
3674 (__vfprintf_internal, __vfwprintf_internal):
3675 Do not check _IO_FLAGS2_FORTIFY.
3676 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3677 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3678 a comment explaining why it has the maxlen argument.
3679 (_IO_acquire_lock_clear_flags2_fct): Remove.
3680 (_IO_acquire_lock_clear_flags2): Remove.
3681 (_IO_release_lock): Remove conditional statement which will
3682 now never execute.
3683 (_IO_acquire_lock): Remove variable which is now unused.
3684 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3685 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3686
3687 * stdio-common/Makefile (tests): Add tst-bz11319 and
3688 tst-bz11319-fortify2.
3689 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3690 * stdio-common/tst-bz11319-fortify2.c: New file.
3691 * stdio-common/tst-bz11319.c: Likewise.
3692
3693 2018-12-05 Zack Weinberg <zackw@panix.com>
3694 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3695
3696 * misc/syslog.c: Include libioP.h, not iolibio.h.
3697 (__vsyslog_internal): New function with the former body of
3698 __vsyslog_chk; takes mode_flags argument same as
3699 __v*printf_internal. Call __vfprintf_internal directly.
3700
3701 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3702 Remove libc_hidden_def.
3703 (__syslog, __syslog_chk): Use __vsyslog_internal.
3704 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3705
3706 * include/sys/syslog.h: Add multiple inclusion guard.
3707 Add prototype for __vsyslog_internal.
3708 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3709
3710 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3711 Use __vsyslog_internal.
3712
3713 2018-12-05 Zack Weinberg <zackw@panix.com>
3714 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3715
3716 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3717 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3718 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3719 New functions.
3720 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3721 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3722
3723 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3724 Include wctype.h here if COMPILE_WPRINTF is defined.
3725 Define __vfprintf_internal or __vfwprintf_internal, depending
3726 on COMPILE_WPRINTF.
3727 Temporarily, on entry to this function, update mode_flags
3728 according to the environmental settings corresponding to
3729 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3730 Throughout, check mode_flags instead of __ldbl_is_dbl and
3731 _IO_FLAGS2_FORTIFY on the destination FILE.
3732 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3733 Include vfprintf-internal.c. Don't include wctype.h.
3734 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3735 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3736 and vfprintf.
3737 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3738 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3739 and vfwprintf.
3740 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3741
3742 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3743 and add mode_flags argument; use __vfprintf_internal.
3744 (__vdprintf): New function. Alias vdprintf to this.
3745 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3746 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3747 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3748 (__obstack_printf): Use __obstack_printf_internal.
3749 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3750 public aliases __vsnprintf and vsnprintf.
3751 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3752 called internally.
3753 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3754 public aliases _IO_vsprintf and vsprintf.
3755 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3756 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3757 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3758 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3759 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3760
3761 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3762 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3763 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3764 * stdio-common/printf.c: Use __vfprintf_internal.
3765
3766 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3767 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3768 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3769
3770 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3771 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3772 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3773 __vfwprintf_internal.
3774
3775 * libio/libio.h: Remove libc_hidden_proto and declaration for
3776 _IO_vfprintf.
3777 Remove declaration of _IO_vfwprintf.
3778 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3779 _IO_vsprintf.
3780 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3781 _IO_obstack_printf.
3782 * include/stdio.h: Add prototype for __vasprintf.
3783 (__vsnprintf): Remove declaration, because there are no more
3784 internal calls.
3785 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3786 declaration, because there are no more internal calls.
3787
3788 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3789 __vsnprintf_internal, instead of _IO_vsnprintf.
3790 * argp/argp-help.c (__argp_error, __argp_failure): Use
3791 __vasprintf_internal, instead of _IO_vasprintf.
3792 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3793 redefine, because there are no more internal calls.
3794
3795 2018-12-05 Zack Weinberg <zackw@panix.com>
3796 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3797
3798 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3799 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3800 Include libio/strfile.h instead of libioP.h.
3801 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3802 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3803 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3804 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3805 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3806 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3807 necessary. Do not set __no_long_double. Normalize variable names.
3808 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3809 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3810 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3811 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3812 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3813 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3814 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3815 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3816 Do not set __no_long_double. Normalize variable names.
3817
3818 2018-12-05 Zack Weinberg <zackw@panix.com>
3819 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3820
3821 * stdio-common/isoc99_scanf.c
3822 * stdio-common/isoc99_fscanf.c
3823 * stdio-common/isoc99_sscanf.c
3824 * stdio-common/isoc99_vscanf.c
3825 * stdio-common/isoc99_vfscanf.c
3826 * stdio-common/isoc99_vsscanf.c
3827 * wcsmbs/isoc99_wscanf.c
3828 * wcsmbs/isoc99_fwscanf.c
3829 * wcsmbs/isoc99_swscanf.c
3830 * wcsmbs/isoc99_vwscanf.c
3831 * wcsmbs/isoc99_vfwscanf.c
3832 * wcsmbs/isoc99_vswscanf.c:
3833 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3834 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3835 No need to lock and unlock the FILE passed to that function.
3836
3837 * stdio-common/vfscanf-internal.c
3838 (__vfscanf_internal, __vfwscanf_internal):
3839 Don't look at _IO_FLAGS2_SCANF_STD.
3840 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3841 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3842 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3843
3844 2018-12-05 Zack Weinberg <zackw@panix.com>
3845 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3846
3847 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3848 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3849 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3850 * libio/strfile.h: Add multiple inclusion guard.
3851 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3852
3853 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3854 consistency with the other version of this file.
3855 (ldbl_compat_symbol): New macro.
3856 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3857 New macro.
3858
3859 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3860 Define __vfscanf_internal or __vfwscanf_internal, depending on
3861 COMPILE_WSCANF; don't define any other public symbols.
3862 Remove errval and code to set errp.
3863 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3864 as the mode_flags argument.
3865 (encode_error, conv_error, input_error): Don't set errval.
3866 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3867 Include vfscanf-internal.c.
3868 * stdio-common/vfscanf.c: New file defining the public entry
3869 point vfscanf, which calls __vfscanf_internal.
3870 * stdio-common/vfwscanf.c: New file defining the public entry
3871 point vfwscanf, which calls __vfwscanf_internal.
3872
3873 * stdio-common/iovfscanf.c: New file.
3874 * stdio-common/iovfwscanf.c: Likewise.
3875
3876 * stdio-common/Makefile (routines): Add vfscanf-internal,
3877 vfwscanf-internal, iovfscanf, iovfwscanf.
3878 * stdio-common/Versions: Mention GLIBC_2.29, so that
3879 it can be used in SHLIB_COMPAT expressions.
3880 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3881 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3882 Call __vfscanf_internal, instead of _IO_vfscanf.
3883 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3884 _IO_vfscanf.
3885 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3886 _IO_vfwscanf.
3887
3888 * libio/iovsscanf.c: Clean up includes, when possible. Use
3889 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3890 __vfscanf_internal or __vfwscanf_internal directly.
3891 * libio/iovswscanf.c: Likewise.
3892 * libio/swscanf.c: Likewise.
3893 * libio/vscanf.c: Likewise.
3894 * libio/vwscanf.c: Likewise.
3895 * libio/wscanf.c: Likewise.
3896 * stdio-common/isoc99_fscanf.c: Likewise.
3897 * stdio-common/isoc99_scanf.c: Likewise.
3898 * stdio-common/isoc99_sscanf.c: Likewise.
3899 * stdio-common/isoc99_vfscanf.c: Likewise.
3900 * stdio-common/isoc99_vscanf.c: Likewise.
3901 * stdio-common/isoc99_vsscanf.c: Likewise.
3902 * stdio-common/scanf.c: Likewise.
3903 * stdio-common/sscanf.c: Likewise.
3904 * wcsmbs/isoc99_fwscanf.c: Likewise.
3905 * wcsmbs/isoc99_swscanf.c: Likewise.
3906 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3907 * wcsmbs/isoc99_vswscanf.c: Likewise.
3908 * wcsmbs/isoc99_vwscanf.c: Likewise.
3909 * wcsmbs/isoc99_wscanf.c: Likewise.
3910
3911 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3912
3913 * include/time.h
3914 (__tz_compute): Replace time_t with __time64_t.
3915 (__tz_convert): Replace time_t* with __time64_t.
3916 (__offtime): Replace time_t* with __time64_t.
3917 * time/gmtime.c
3918 (__gmtime_r): Adjust call to __tz_convert.
3919 (gmtime): Likewise.
3920 * time/localtime.c
3921 (__localtime_r): Likewise.
3922 (localtime): Likewise.
3923 * time/offtime.c: Replace time_t with __time64_t.
3924 * time/tzset.c: Likewise.
3925
3926 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3927
3928 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3929 dynamic linker unless [$(run-built-tests) = yes].
3930
3931 2018-12-03 DJ Delorie <dj@delorie.com>
3932
3933 * support/test-container.c (check_for_unshare_hints): New.
3934 (main): Call it if unshare fails. Add support for "su" scriptlet
3935 command.
3936
3937 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3938
3939 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3940 'START' to indicate that start text should be output.
3941 (gen_test): Likewise.
3942 (main): Generate 'START' for first symbol or '--' line, or at end
3943 of input if not previously generated.
3944
3945 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3946
3947 [BZ #19767]
3948 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3949 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3950 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3951 ALWAYS_USE_VSYSCALL.
3952
3953 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3954
3955 [BZ #23913]
3956 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3957 new_argv by one.
3958
3959 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3960
3961 [BZ #23923]
3962 * locale/programs/localedef.c: Declare boolean hard_links default true.
3963 (options): Add --no-hard-links option.
3964 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3965 * locale/programs/localedef.h: Declare prototype for hard_links.
3966 * locale/programs/locfile.c (write_locale_data): Don't use hard
3967 links if hard_links is false.
3968
3969 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3970
3971 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3972 cpu_features_basic.
3973 (__cache_sysconf): Likewise.
3974 (init_cacheinfo): Likewise.
3975 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3976 populate COMMON_CPUID_INDEX_80000007 and
3977 COMMON_CPUID_INDEX_80000008.
3978 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3979 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3980 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3981 (init_cpu_features): Use _Static_assert on
3982 index_arch_Fast_Unaligned_Load.
3983 __get_cpuid_registers and __get_arch_feature. Updated for
3984 cpu_features_basic. Set stepping in cpu_features.
3985 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3986 (FEATURE_INDEX_2): New.
3987 (FEATURE_INDEX_MAX): Changed to enum.
3988 (COMMON_CPUID_INDEX_D_ECX_1): New.
3989 (COMMON_CPUID_INDEX_80000007): Likewise.
3990 (COMMON_CPUID_INDEX_80000008): Likewise.
3991 (cpuid_registers): Likewise.
3992 (cpu_features_basic): Likewise.
3993 (CPU_FEATURE_USABLE): Likewise.
3994 (bit_arch_XXX_Usable): Likewise.
3995 (cpu_features): Use cpuid_registers and cpu_features_basic.
3996 (bit_arch_XXX): Reweritten.
3997 (bit_cpu_XXX): Likewise.
3998 (index_cpu_XXX): Likewise.
3999 (reg_XXX): Likewise.
4000 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4001 <support/check.h>.
4002 (CHECK_CPU_FEATURE): New.
4003 (CHECK_CPU_FEATURE_USABLE): Likewise.
4004 (cpu_kinds): Likewise.
4005 (do_test): Print vendor, family, model and stepping. Check
4006 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4007 (TEST_FUNCTION): Removed.
4008 Include <support/test-driver.c> instead of
4009 "../../test-skeleton.c".
4010 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4011 Check POPCNT instead of POPCOUNT.
4012 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4013
4014 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4015
4016 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4017 there is no element in `consts'.
4018
4019 2018-12-01 Florian Weimer <fweimer@redhat.com>
4020
4021 * support/support_capture_subprocess.c
4022 (support_capture_subprocess): Check that pipe descriptors have
4023 expected values. Close original pipe descriptors in subprocess.
4024
4025 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4026
4027 [BZ #23032]
4028 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4029 attr with __pthread_default_barrierattr.
4030 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4031 attr with __pthread_default_condattr.
4032 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4033 attr with __pthread_default_mutexattr.
4034 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4035 attr with __pthread_default_rwlockattr.
4036
4037 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4038
4039 * manual/tunables.texi (POSIX Thread Tunables): New node.
4040 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4041 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4042 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4043 __pthread_tunables_init.
4044 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4045 (max_adaptive_count): Define.
4046 * nptl/pthread_mutex_conf.c: New file.
4047 * nptl/pthread_mutex_conf.h: New file.
4048 * sysdeps/generic/adaptive_spin_count.h: New file.
4049 * sysdeps/nptl/dl-tunables.list: New file.
4050 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4051 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4052 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4053 Likewise.
4054
4055 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4056
4057 [BZ #20544]
4058 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4059 * stdlib/on_exit.c (__on_exit): Likewise.
4060 * stdlib/Makefile (tests): Add tst-bz20544.
4061 * stdlib/tst-bz20544.c: New test.
4062
4063 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4064
4065 [BZ #19767]
4066 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4067 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4068 New.
4069
4070 2018-11-30 Florian Weimer <fweimer@redhat.com>
4071
4072 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4073 Extend error logging.
4074 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4075 symbol.
4076
4077 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4078
4079 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4080 __sigismember instead of sigismember.
4081 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4082 cancel_handler): New definitions.
4083 (do_system): Use posix_spawn instead of fork and execl and remove
4084 reentracy code.
4085 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4086 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4087 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4088 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4089 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4090 * sysdeps/unix/sysv/linux/system.c: Likewise.
4091
4092 [BZ #22834]
4093 [BZ #17490]
4094 * NEWS: Add new semantic for atfork with popen and system.
4095 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4096 fork and execl.
4097
4098 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4099
4100 [BZ #23690]
4101 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4102 modification order when accessing reloc_result->addr.
4103 * include/link.h (reloc_result): Add field init.
4104 * nptl/Makefile (tests): Add tst-audit-threads.
4105 (modules-names): Add tst-audit-threads-mod1 and
4106 tst-audit-threads-mod2.
4107 Add rules to build tst-audit-threads.
4108 * nptl/tst-audit-threads-mod1.c: New file.
4109 * nptl/tst-audit-threads-mod2.c: Likewise.
4110 * nptl/tst-audit-threads.c: Likewise.
4111 * nptl/tst-audit-threads.h: Likewise.
4112
4113 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4114
4115 * scripts/gen-as-const.py: New file.
4116 * scripts/gen-as-const.awk: Remove.
4117 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4118 gen-as-const.py.
4119 ($(objpfx)test-as-const-%.c): Likewise.
4120
4121 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4122
4123 * elf/dl-exception.c: Include <_itoa.h>.
4124
4125 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4126
4127 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4128 returned by __f_setlk.
4129
4130 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4131 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4132
4133 * elf/Makefile (tests-internal): Add tst-create_format1.
4134 * elf/dl-exception.c (_dl_exception_create_format): Support
4135 %x, %lx and %zx.
4136 * elf/tst-create_format1.c: New file.
4137
4138 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4139
4140 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4141 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4142 gnulib.)
4143 * argp/argp-help.c (__argp_failure): Likewise.
4144
4145 2018-11-29 Mao Han <han_mao@c-sky.com>
4146
4147 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4148 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4149 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4150 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4151 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4152 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4153 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4154 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4155 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4156 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4157 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4158 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4159 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4160 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4161 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4162 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4163 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4164 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4165 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4166 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4167 (R_CKCORE_TLS_TPOFF32): New defines.
4168
4169 2018-11-29 Florian Weimer <fweimer@redhat.com>
4170
4171 * posix/Makefile (before-compile): Remove testcases.h and
4172 ptestcases.h.
4173 (generated): Add testcases.h and ptestcases.h.
4174 (testcases.h, ptestcases.h): Move to $(objpfx).
4175 (runtests.o): Add dependency on testcases.h.
4176 (runptests.o): Add dependency on ptestcases.h.
4177 * posix/testcases.h, posix/ptestcases.h: Remove files.
4178 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4179 not touch posix/testcases.h and posix/ptestcases.h.
4180
4181 2018-11-28 Florian Weimer <fweimer@redhat.com>
4182
4183 support: Add signal support to support_capture_subprocess_check.
4184 * support/capture_subprocess.h (support_capture_subprocess_check):
4185 Adjust comment and rename parameter.
4186 * support/support_capture_subprocess_check.c
4187 (print_actual_status): New function.
4188 (support_capture_subprocess_check): Support negative
4189 status_or_signal. Call print_actual_status.
4190 * support/tst-support_capture_subprocess.c (do_test): Call
4191 support_capture_subprocess_check.
4192 * libio/tst-vtables-common.c (termination_status)
4193 (init_termination_status): Remove.
4194 (check_for_termination): Adjust support_capture_subprocess_check
4195 call.
4196 (do_test): Remove call to init_termination_status.
4197
4198 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4199
4200 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4201 source directory instead of a copy.
4202 (CommandList.create_copy_dir): Remove.
4203
4204 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4205
4206 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4207
4208 2018-11-28 Florian Weimer <fweimer@redhat.com>
4209
4210 * support/support.h (support_quote_string): Do not use str
4211 parameter name.
4212
4213 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4214
4215 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4216 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4217
4218 2018-11-27 Florian Weimer <fweimer@redhat.com>
4219
4220 * support/support.h (support_quote_string): Declare.
4221 * support/support_quote_string.c: New file.
4222 * support/tst-support_quote_string.c: Likewise.
4223 * support/Makefile (libsupport-routines): Add
4224 support_quote_string.
4225 (tests): Add tst-support_quote_string.
4226
4227 2018-11-27 Florian Weimer <fweimer@redhat.com>
4228
4229 [BZ #23927]
4230 CVE-2018-19591
4231 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4232 descriptor leak in case of ENODEV error.
4233
4234 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4235
4236 [BZ #19767]
4237 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4238 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4239 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4240
4241 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4242
4243 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4244 Error for unknown lines.
4245
4246 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4247
4248 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4249 Touch additional files.
4250
4251 2018-11-26 Florian Weimer <fweimer@redhat.com>
4252
4253 [BZ #23907]
4254 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4255 double-frees.
4256
4257 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4258
4259 [BZ #19767]
4260 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4261 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4262 SHARED. Include sysdep.h.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4264 ALWAYS_USE_VSYSCALL.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4266 ALWAYS_USE_VSYSCALL.
4267
4268 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4269
4270 [BZ #19767]
4271 * nptl/Makefile (tests-static): Add tst-cond11-static.
4272 (tests): Likewise.
4273 * nptl/tst-cond11-static.c: New File.
4274 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4275 tst-affinity-static.
4276 (tests): Likewise.
4277 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4278 instead of SHARED.
4279 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4280 (USE_VSYSCALL): Likewise.
4281 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4282 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4283 instead of SHARED.
4284 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4285 SHARED.
4286 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4287 New.
4288
4289 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4290
4291 [BZ #23915]
4292 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4293 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4294 Undefine.
4295
4296 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4297
4298 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4299 (tst-cet-legacy-1a-ARGS): New.
4300 ($(objpfx)tst-cet-legacy-1a): New target.
4301 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4302
4303 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4304
4305 * conform/conformtest.py (CompileSubTest.__init__): Set
4306 self.run_early to False.
4307 (ExecuteSubTest.__init__): Likewise.
4308 (HeaderTests.run): Try running all non-optional, non-XFAILed
4309 compilation tests in a single execution of the compiler.
4310
4311 * conform/conformtest.py (CompileSubTest): New class.
4312 (ExecuteSubTest): Likewise.
4313 (ElementTest.run): Rename to gen_subtests. Append tests to
4314 self.subtests instead of running them.
4315 (ConstantTest.run): Likewise.
4316 (SymbolTest.run): Likewise.
4317 (TypeTest.run): Likewise.
4318 (TagTest.run): Likewise.
4319 (FunctionTest.run): Likewise.
4320 (VariableTest.run): Likewise.
4321 (MacroFunctionTest.run): Likewise.
4322 (MacroStrTest.run): Likewise.
4323 (HeaderTests.handle_test_line): Generate subtests for tests.
4324 (HeaderTests.run): Run subtests for tests.
4325
4326 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4327
4328 * math/Versions (GLIBC_2.29): Add pow.
4329 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4330 symbol.
4331 * math/w_pow.c: New file.
4332 * sysdeps/i386/fpu/w_pow.c: New file.
4333 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4334 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4335 and add necessary aliases.
4336 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4337 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4338 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4362 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4363 __pow.
4364 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4365 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4366 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4367
4368 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4369
4370 * math/Versions (GLIBC_2.29): Add log2.
4371 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4372 symbol.
4373 * math/w_log2.c: New file.
4374 * sysdeps/i386/fpu/w_log2.c: New file.
4375 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4376 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4377 and add necessary aliases.
4378 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4379 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4380 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4397 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4401 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4402 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4403 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4404
4405 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4406
4407 * math/Versions (GLIBC_2.29): Add log.
4408 * math/w_log_compat.c (__log_compat): Change to versioned compat
4409 symbol.
4410 * math/w_log.c: New file.
4411 * sysdeps/i386/fpu/w_log.c: New file.
4412 * sysdeps/ia64/fpu/e_log.S: Update.
4413 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4414 and add necessary aliases.
4415 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4416 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4417 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4428 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4429 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4434 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4435 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4436 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4437 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4438 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4439 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4440 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4441 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4442 __log.
4443 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4444 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4445 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4446 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4447
4448 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4449
4450 * math/Versions (GLIBC_2.29): Add exp and exp2.
4451 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4452 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4453 * math/w_exp_compat.c (__exp_compat): Likewise.
4454 * math/w_exp.c: New file.
4455 * math/w_exp2.c: New file.
4456 * sysdeps/i386/fpu/w_exp.c: New file.
4457 * sysdeps/i386/fpu/w_exp2.c: New file.
4458 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4459 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4460 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4461 and add necessary aliases.
4462 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4463 and add necessary aliases.
4464 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4465 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4466 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4467 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4468 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4469 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4470 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4471 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4472 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4473 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4474 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4475 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4476 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4477 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4478 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4479 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4480 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4481 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4484 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4485 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4486 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4487 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4488 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4489 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4490 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4491 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4492 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4493 (__ieee754_exp): Rename to __exp.
4494 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4495 (__ieee754_exp): Rename to __exp.
4496 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4497 (__ieee754_exp): Rename to __exp.
4498 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4499 __exp.
4500 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4501
4502 2018-11-20 DJ Delorie <dj@redhat.com>
4503
4504 * malloc/malloc.c (tcache_entry): Add key field.
4505 (tcache_put): Set it.
4506 (tcache_get): Likewise.
4507 (_int_free): Check for double free in tcache.
4508 * malloc/tst-tcfree1.c: New.
4509 * malloc/tst-tcfree2.c: New.
4510 * malloc/Makefile: Run the new tests.
4511 * manual/probes.texi: Document memory_tcache_double_free probe.
4512
4513 * dlfcn/dlerror.c (check_free): Prevent double frees.
4514
4515 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4516
4517 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4518
4519 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4520
4521 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4522 in tests. Use names for format arguments.
4523 (ConstantTest.run): Likewise.
4524 (SymbolTest.run): Likewise.
4525 (TypeTest.run): Likewise.
4526 (TagTest.run): Likewise.
4527 (FunctionTest.run): Likewise.
4528 (VariableTest.run): Likewise.
4529 (MacroFunctionTest.run): Likewise.
4530 (MacroStrTest.run): Likewise.
4531 (HeaderTests.__init__): Set self.num_tests.
4532 (HeaderTests.handle_test_line): Set test.num. Increment
4533 self.num_tests.
4534
4535 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4536
4537 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4538 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4539 SEEK_SET.
4540
4541 2018-11-19 Mao Han <han_mao@c-sky.com>
4542
4543 * scripts/config.guess: Update to version 2018-08-29.
4544 * scripts/config.sub: Update to version 2018-08-29.
4545
4546 2018-11-19 Florian Weimer <fweimer@redhat.com>
4547
4548 support: Print timestamps in timeout handler.
4549 * support/support_test_main.c (print_timestamp): New function.
4550 (signal_handler): Use it to print the termination time and the
4551 time of the last write to standard output.
4552
4553 2018-11-16 Zack Weinberg <zackw@panix.com>
4554 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4555
4556 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4557 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4558 argument.
4559 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4560 and add flags argument. Check flags instead of __ldbl_is_dbl when
4561 deciding whether to set is_long_double.
4562 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4563 passing zero for flags argument.
4564 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4565
4566 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4567 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4568 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4569 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4570 variable names. Remove libc_hidden_def/libc_hidden_proto from
4571 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4572 longer called from within the library.
4573 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4574 for __nldbl___vstrfmon_l, declare it explicitly.
4575
4576 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4577
4578 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4579
4580 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4581 macros
4582 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4583 F_SETLK64, F_SETLKW64, respectively.
4584 * sysdeps/mach/hurd/f_setlk.c: New file.
4585 * sysdeps/mach/hurd/f_setlk.h: New file.
4586 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4587 f_setlk.
4588 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4589 (__libc_fcntl): Move non-flock operations to...
4590 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4591 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4592
4593 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4594
4595 mktime: DEBUG_MKTIME cleanup
4596 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4597 And it’s no longer needed now that glibc and Gnulib both have
4598 their own testing mechanisms for mktime.
4599 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4600
4601 mktime: fix non-EOVERFLOW errno handling
4602 [BZ#23789]
4603 mktime was not properly reporting failures when the underlying
4604 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4605 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4606 The problem could happen on non-glibc platforms, with Gnulib.
4607 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4608 (tm_diff): ... this simpler function, which does not change errno.
4609 All callers changed to deal with errno themselves.
4610 (ranged_convert, __mktime_internal): Return failure immediately if
4611 the underlying function reports any failure other than EOVERFLOW.
4612 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4613 gap code fails.
4614
4615 mktime: fix bug with Y2038 DST transition
4616 [BZ#23789]
4617 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4618 mishandle a DST transition that jumps over the Y2038 boundary.
4619 No such DST transitions are known so this is only a theoretical
4620 bug, but we might as well do things right.
4621
4622 mktime: make more room for overflow
4623 [BZ#23789]
4624 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4625 This is so that we can add tm_diff results to a previous guess,
4626 which will be useful in a later patch.
4627
4628 mktime: simplify offset guess
4629 [BZ#23789]
4630 * time/mktime.c (__mktime_internal): Omit excess precision.
4631
4632 mktime: new test for mktime failure
4633 [BZ#23789]
4634 Based on a test suggested by Albert Aribaud in:
4635 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4636 * time/Makefile (tests): Add bug-mktime4.
4637 * time/bug-mktime4.c: New file.
4638
4639 mktime: fix EOVERFLOW bug
4640 [BZ#23789]
4641 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4642 Include libc-config.h, not config.h, for __set_errno.
4643 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4644
4645 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4646
4647 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4648 __attribute_copy__ to copy attributes from name. Drop static qualifier
4649 to avoid warnings about leaf attribute not having effect on static
4650 functions.
4651
4652 2018-11-13 Florian Weimer <fweimer@redhat.com>
4653
4654 * malloc/malloc.c (fastbin_push_entry): New function.
4655 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4656 (REMOVE_FB): Remove macro.
4657 (_int_malloc): Use fastbin_pop_entry and reindent.
4658 (_int_free): Use fastbin_push_entry.
4659 (malloc_consolidate): Use atomic_exchange_acquire.
4660
4661 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4662
4663 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4664 alias attribute, not with strong_alias.
4665
4666 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4667 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4668 with additional parameter thread.
4669 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4670 in terms of __hidden_ver2.
4671 (hidden_tls_def): New macro.
4672 (libc_hidden_tls_def): Likewise.
4673 (rtld_hidden_tls_def): Likewise.
4674 (libm_hidden_tls_def): Likewise.
4675 (libmvec_hidden_tls_def): Likewise.
4676 (libresolv_hidden_tls_def): Likewise.
4677 (librt_hidden_tls_def): Likewise.
4678 (libdl_hidden_tls_def): Likewise.
4679 (libnss_files_hidden_tls_def): Likewise.
4680 (libnsl_hidden_tls_def): Likewise.
4681 (libnss_nisplus_hidden_tls_def): Likewise.
4682 (libutil_hidden_tls_def): Likewise.
4683 (libutil_hidden_tls_def): Likweise.
4684 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4685 libc_hidden_tls_def.
4686 (__sim_disabled_exceptions_thread): Likewise.
4687 (__sim_round_mode_thread): Likewise.
4688
4689 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4690 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4691 copy attributes from name.
4692
4693 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4694
4695 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4696 Use __attribute_copy__ to copy attributes from name.
4697
4698 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4699 with __hidden_ver1 call.
4700 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4701 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4702 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4703 (__cosf): Do not declare here.
4704 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4705 (__sincosf): Do not declare here.
4706 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4707 (__sinf): Do not declare here.
4708
4709 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4710 (__BIG_ENDIAN): Likewise.
4711 (__BYTE_ORDER): Likewise.
4712 (strong_alias): Likewise.
4713 (_strong_alias): Likewise.
4714
4715 2018-11-12 Florian Weimer <fweimer@redhat.com>
4716
4717 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4718 function. Move after the definition of in_smallbin_range. Do not
4719 use __builtin_expect for paths that lead to a noreturn function.
4720 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4721 because it is unclear whether this is in fact an unlikely
4722 condition.
4723 (_int_malloc, _int_free): Adjust.
4724 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4725 variables.
4726 * malloc/arena.c (heap_trim): Likewise.
4727
4728 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4729
4730 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4731 it, free it if needed.
4732 (reauthenticate): Test and use ccwdir.
4733 (child_init_port): In non-resetids case, test and use ccwdir.
4734 (child_chdir): New nested function to set ccwdir.
4735 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4736 * hurd/hurd/port.h (_hurd_port_move): New function.
4737 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4738 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4739 * hurd/Versions (_hurd_port_move): Export function.
4740 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4741 symbol.
4742 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4743 of dtablesize for allocating dtable_cloexec.
4744
4745 2018-11-09 Martin Sebor <msebor@redhat.com>
4746
4747 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4748 it's already defined.
4749 (_strong_alias): Use __attribute_copy__.
4750 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4751 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4752 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4753 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4754 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4755 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4756 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4757 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4758 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4759 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4760 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4761 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4762 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4763 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4764 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4765 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4766 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4767 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4768 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4769
4770 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4771
4772 * misc/tst-efgcvt.c: Include support/check.h and
4773 support/test-driver.c. Do not include test-skeleton.c.
4774 (error_count): Remove.
4775 (output_error): Replace increments to error_count with calls to
4776 support_record_failure.
4777 (output_r_error): Likewise.
4778 (special): Likewise.
4779 (do_test): Unconditionally return zero.
4780 (TEST_FUNCTION): Remove.
4781
4782 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4783
4784 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4785 not $(@D)/scratch.
4786 ($(linknamespace-header-tests)): Likewise.
4787
4788 * conform/conformtest.py: New file.
4789 * conform/conformtest.pl: Remove.
4790 * conform/GlibcConform.pm: Likewise.
4791 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4792 (KEYWORDS_C99): Likewise.
4793 (KEYWORDS): Likewise.
4794 * conform/Makefile ($(conformtest-header-tests)): Use
4795 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4796 option. Use --header instead of --headers.
4797 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4798 function entries.
4799 * conform/data/spawn.h-data: Likewise.
4800 * conform/data/fcntl.h-data (openat): Add space after function
4801 name.
4802 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4803 (wcscasecmp_l): Likewise.
4804 * conform/data/termios.h-data (c_cc): Add space after element
4805 name.
4806
4807 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4808
4809 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4810 instead of manually comparing and reporting mismatching strings.
4811 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4812 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4813
4814 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4815
4816 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4817 __ASSUME_SOCKETCALL.
4818 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4819 (__ASSUME_SOCKETCALL): Remove.
4820 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4821 (__ASSUME_SOCKETCALL): Likewise.
4822 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4823 (__ASSUME_SOCKETCALL): Likewise.
4824 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4825 (__ASSUME_SOCKETCALL): Likewise.
4826 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4827 (__ASSUME_SOCKETCALL): Likewise.
4828 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4829 (__ASSUME_SOCKETCALL): Likewise.
4830 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4831 (__ASSUME_SOCKETCALL): Likewise.
4832
4833 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4834
4835 [BZ #23509]
4836 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4837 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4838 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4839 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4840 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4841 lc_unknown.
4842
4843 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4844
4845 [BZ #17630]
4846 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4847
4848 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4849
4850 [BZ #23867]
4851 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4852 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4853 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4854 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4855
4856 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4857
4858 * support/support_test_compare_string.c
4859 (support_test_compare_string): Fix printf format.
4860
4861 2018-11-07 Florian Weimer <fweimer@redhat.com>
4862
4863 Implement TEST_COMPARE_STRING.
4864 * support/check.h (TEST_COMPARE_STRING): Define.
4865 (support_test_compare_string): Declare.
4866 * support/Makefile (libsupport-routines): Add
4867 support_test_compare_string.
4868 (tests): Add tst-test_compare_string.
4869 * support/support_test_compare_string.c: New file.
4870 * support/tst-test_compare_string.c: Likewise.
4871
4872 2018-11-07 Andreas Schwab <schwab@suse.de>
4873
4874 [BZ #23864]
4875 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4876 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4877 Undef.
4878
4879 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4880
4881 [BZ #23862]
4882 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4883 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4884 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4885 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4886 Likewise.
4887
4888 2018-11-06 Florian Weimer <fweimer@redhat.com>
4889
4890 [BZ #17405]
4891 * posix/Makefile (routines): Add spawn_faction_addchdir.
4892 (tests): Add tst-spawn-chdir.
4893 * posix/Versions (GLIBC_2.29): Add
4894 posix_spawn_file_actions_addchdir_np.
4895 * posix/spawn_faction_addchdir.c: New file.
4896 * posix/spawn_faction_destroy.c
4897 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4898 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4899 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4900 chdir_action.
4901 * posix/tst-spawn-chdir.c: New file.
4902 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4903 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4904 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4905 posix_spawn_file_actions_addchdir_np.
4906 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4907 Likewise.
4908 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4909 Likewise.
4910 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4911 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4912 Likewise.
4913 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4914 Likewise.
4915 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4916 Likewise.
4917 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4918 Likewise.
4919 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4920 Likewise.
4921 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4922 Likewise.
4923 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4924 (GLIBC_2.29): Likewise.
4925 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4926 (GLIBC_2.29): Likewise.
4927 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4928 (GLIBC_2.29): Likewise.
4929 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4930 (GLIBC_2.29): Likewise.
4931 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4932 Likewise.
4933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4934 (GLIBC_2.29): Likewise.
4935 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4936 (GLIBC_2.29): Likewise.
4937 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4938 (GLIBC_2.29): Likewise.
4939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4940 (GLIBC_2.29): Likewise.
4941 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4942 Likewise.
4943 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4944 Likewise.
4945 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4946 Likewise.
4947 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4948 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4949 Likewise.
4950 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4951 Likewise.
4952 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4953 Likewise.
4954 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4955 Likewise.
4956
4957 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4958
4959 * misc/Makefile (tests): Add tst-ldbl-error.
4960 * misc/tst-ldbl-error.c: New file.
4961
4962 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4963
4964 * misc/Makefile (tests): Add tst-ldbl-warn.
4965 * misc/tst-ldbl-warn.c: New file.
4966
4967 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4968
4969 * argp/Makefile (tests): Add tst-ldbl-argp.
4970 * argp/tst-ldbl-argp.c: New file.
4971
4972 2018-11-05 Arjun Shankar <arjun@redhat.com>
4973
4974 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4975 __gconv_path_elem and call __gconv_get_path unconditionally.
4976
4977 2018-11-05 Andreas Schwab <schwab@suse.de>
4978
4979 [BZ #22927]
4980 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4981 creating the first helper thread failed.
4982
4983 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4984
4985 * sysdeps/mach/hurd/msync.c: New file.
4986
4987 2018-11-02 Florian Weimer <fweimer@redhat.com>
4988
4989 * support/shell-container.c (copy_func): Call
4990 support_copy_file_range instead of copy_file_range to support
4991 cross-device copies.
4992
4993 2018-11-02 Florian Weimer <fweimer@redhat.com>
4994
4995 * support/test-container.c: Include <libc-pointer-arith.h> for
4996 ALIGN_UP.
4997
4998 2018-11-01 Zong Li <zong@andestech.com>
4999
5000 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5001 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5002 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5003 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5004
5005 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5006 variable to avoid overlap arguments.
5007
5008 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5009
5010 * posix/bug-regex22.c (main): Use puts with distinct error
5011 messages for unexpected success of re_compile_pattern, not printf
5012 with NULL argument to %s.
5013
5014 * stdio-common/bug22.c: Include <libc-diag.h>.
5015 (do_test): Disable -Wformat-overflow= warnings around fprintf
5016 calls outputting more than INT_MAX characters.
5017 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5018 around printf call with NULL %s argument.
5019
5020 [BZ #23848]
5021 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5022 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5023 Undefine.
5024 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5025 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5026 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5027 (__ASSUME_SENDTO_SYSCALL): Likewise.
5028 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5029 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5030 [!__arch64__].
5031 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5032 (__ASSUME_CONNECT_SYSCALL): Likewise.
5033 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5034 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5035 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5036 Define.
5037 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5038 Likewise.
5039 [__LINUX_KERNEL_VERSION >= 0x040400]
5040 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5041 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5042 Remove.
5043 (listen): Likewise.
5044 (setsockopt): Likewise.
5045
5046 2018-11-01 Fredrik Noring <noring@nocrew.org>
5047
5048 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5049 with the ISA override.
5050
5051 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5052
5053 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5054 #endif.
5055
5056 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5057
5058 * manual/errno.texi (EIEIO): Document how translators should
5059 translate the error message.
5060 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5061 printing trailing whitespaces refused by git.
5062 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5063 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5064 * hurd/Makefile (user-interfaces): Add pci.
5065
5066 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5067
5068 * conform/linknamespace.py: New file.
5069 * conform/linknamespace.pl: Remove file.
5070 * conform/Makefile ($(linknamespace-header-tests)): Use
5071 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5072 option.
5073
5074 2018-10-30 Florian Weimer <fweimer@redhat.com>
5075
5076 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5077 memory leaks.
5078
5079 2018-10-30 Florian Weimer <fweimer@redhat.com>
5080
5081 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5082
5083 2018-10-30 Florian Weimer <fweimer@redhat.com>
5084
5085 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5086 support_blob_repeat.
5087
5088 2018-10-30 Florian Weimer <fweimer@redhat.com>
5089
5090 Avoid spurious test failures in stdlib/test-bz22786.
5091 * support/Makefile (libsupport-routines): Add blob_repeat.
5092 (tests): Add tst-support_blob_repeat.
5093 * support/blob_repeat.h: New file.
5094 * support/blob_repeat.c: Likewise.
5095 * support/tst-support_blob_repeat.c: Likewise.
5096 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5097 support_blob_repeat_allocate.
5098
5099 2018-10-30 Andreas Schwab <schwab@suse.de>
5100
5101 [BZ #23125]
5102 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5103 Don't use tail call.
5104 * elf/tst-unwind-main.c: New file.
5105 * elf/Makefile (tests): Add tst-unwind-main.
5106 (CFLAGS-tst-unwind-main.c): Define.
5107
5108 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5109
5110 [BZ #23791]
5111 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5112 n_cs_precedes to 0.
5113 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5114
5115 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5116
5117 * conform/glibcconform.py: Do not import shutil.
5118 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5119 of mkdtemp.
5120
5121 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5122 critic_missing for versions before 3.4.
5123 * configure: Regenerated.
5124 * manual/install.texi (Tools for Compilation): Document
5125 requirement for Python to build glibc.
5126 * INSTALL: Regenerated.
5127 * Rules [PYTHON]: Make code unconditional.
5128 * benchtests/Makefile [PYTHON]: Likewise.
5129 * conform/Makefile [PYTHON]: Likewise.
5130 * manual/Makefile [PYTHON]: Likewise.
5131 * math/Makefile [PYTHON]: Likewise.
5132
5133 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5134
5135 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5136 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5137 answer to interrupt_operation, return EIEIO instead of EINTR.
5138 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5139 _hurd_intr_rpc_msg_about_to global point to start of controlled
5140 assembly snippet. Make it check canceled flag.
5141 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5142 the _hurd_intr_rpc_msg_about_to point.
5143 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5144 issue, remove cancel flag check.
5145
5146 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5147
5148 * scripts/build-many-glibcs.py: Remove compatibility for missing
5149 os.cpu_count and re.fullmatch.
5150
5151 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5152
5153 [BZ #23822]
5154 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5155 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5156 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5157
5158 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5159
5160 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5161 macro.
5162
5163 2018-10-25 Florian Weimer <fweimer@redhat.com>
5164
5165 [BZ #23562]
5166 [BZ #23821]
5167 XFAIL siginfo_t si_band conform test on sparc64.
5168 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5169 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5170 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5171 (conformtest-xfail-conds): Add sparc64-linux.
5172 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5173 sparc64.
5174 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5175
5176 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5177
5178 * elf/elf.h (NT_MIPS_DSP): New macro.
5179 (NT_MIPS_FP_MODE): Likewise.
5180
5181 2018-10-25 Zong Li <zong@andestech.com>
5182
5183 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5184 name by adding the file extension (.so).
5185
5186 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5187
5188 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5189 (test-xfail-ISO11/threads.h/linknamespace,
5190 test-xfail-ISO11/threads.h/conform): Add.
5191
5192 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5193
5194 * math/gen-libm-test.py: Import os.
5195 (ALL_FLOATS_MANUAL): New constant.
5196 (ALL_FLOATS_SUFFIX): Likewise.
5197 (Ulps.all_functions): New function.
5198 (real_all_ulps): Likewise.
5199 (generate_err_table_sub): Likewise.
5200 (generate_err_table): Likewise.
5201 (main): Handle -s and -m options.
5202 * manual/libm-err-tab.pl: Remove.
5203 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5204 instead of libm-err-tab.pl.
5205 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5206 != no].
5207 * manual/install.texi (Tools for Compilation): Document
5208 requirement for Python to build manual.
5209 * INSTALL: Regenerated.
5210
5211 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5212
5213 * bits/time64.h: New file.
5214 * include/time.h: Replace internal_time_t with __time64_t.
5215 * posix/bits/types (__time64_t): Add.
5216 * stdlib/Makefile: Add bits/time64.h to includes.
5217 * time/tzfile.c: Replace internal_time_t with __time64_t.
5218
5219 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5220
5221 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5222 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5223 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5224 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5225 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5226 prototype.
5227 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5228 * posix/spawn_faction_addclose.c
5229 (__posix_spawn_file_actions_addclose): Add hidden definition.
5230 * posix/spawn_faction_adddup2.c
5231 (__posix_spawn_file_actions_adddup2): Likewise.
5232 * posix/spawn_faction_destroy.c
5233 (__posix_spawn_file_actions_destroy): Likewise.
5234 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5235 Likewise.
5236 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5237 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5238 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5239 Likewise.
5240 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5241 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5242 Likewise.
5243
5244 2018-10-24 Andreas Schwab <schwab@suse.de>
5245
5246 [BZ #18093]
5247 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5248 format cache.
5249 * elf/cache.c (print_cache): Likewise.
5250
5251 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5252
5253 * bits/timesize.h: New file.
5254 * stdlib/Makefile (headers): Add bits/timesize.h.
5255 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5256 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5257 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5258 (__SEM_PAD_AFTER_TIME): Likewise.
5259 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5260 (__SHM_PAD_AFTER_TIME): Likewise.
5261 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5262 (__MSQ_PAD_BEFORE_TIME): Likewise.
5263 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5264 (__SEM_PAD_BEFORE_TIME): Likewise.
5265 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5266 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5267 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5268 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5269 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5270 (__MSQ_PAD_BEFORE_TIME): Likewise.
5271 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5272 (__SEM_PAD_BEFORE_TIME): Likewise.
5273 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5274 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5275 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5276 (__MSQ_PAD_BEFORE_TIME): Likewise.
5277 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5278 (__SEM_PAD_BEFORE_TIME): Likewise.
5279 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5280 (__SHM_PAD_BEFORE_TIME): Likewise.
5281 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5282 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5283 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5284
5285 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5286
5287 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5288 USE_RDTSCP is defined.
5289 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5290 USE_RDTSCP is defined.
5291
5292 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5293
5294 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5295 defined.
5296
5297 [BZ #23709]
5298 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5299 independently of other flags.
5300
5301 2018-10-23 Florian Weimer <fweimer@redhat.com>
5302
5303 * time/tst-mktime2.c (N_STRINGS): Remove.
5304 (set_timezone): New function.
5305 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5306 (mktime_test1): Report localtime failure and check errno value.
5307 Use TEST_COMPARE.
5308 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5309 (do_test): Remove alarm call. Use set_timezone and array_length.
5310
5311 2018-10-23 Andreas Schwab <schwab@suse.de>
5312
5313 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5314 (__start_context): Use END instead of PSEUDO_END.
5315
5316 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5317
5318 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5319 version to 4.19.
5320
5321 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5322 version to 4.19.
5323
5324 [BZ #23793]
5325 * wcsmbs/c32rtomb.c: New file.
5326 * wcsmbs/mbrtoc32.c: Likewise.
5327 * wcsmbs/tst-c32-state.c: Likewise.
5328 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5329 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5330 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5331 (tests): Add tst-c32-state.
5332 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5333 $(gen-locales).
5334
5335 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5336
5337 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5338 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5339
5340 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5341
5342 [BZ #23794]
5343 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5344 pair and return 0 in that case, and use saved character to
5345 interpret following character.
5346 * wcsmbs/tst-c16-surrogate.c: New file.
5347 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5348 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5349 Depend on $(gen-locales)
5350
5351 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5352
5353 [BZ #23562]
5354 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5355 (struct siginfo_t): Use correct type for si_band.
5356
5357 2018-10-19 Florian Weimer <fweimer@redhat.com>
5358
5359 [BZ #23689]
5360 * resource/bits/types/struct_rusage.h (struct rusage): Update
5361 comment on struct. Remove extraneous field comment.
5362
5363 2018-10-18 David S. Miller <davem@davemloft.net>
5364
5365 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5366 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5367 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5368 sysdep_routines in subdir elf.
5369 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5370 version for __vdso_clock_gettime.
5371 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5372 Define.
5373 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5374 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5375
5376 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5377
5378 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5379
5380 * sysdeps/i386/init-arch.h: Removed.
5381 * sysdeps/i386/i586/init-arch.h: Likewise.
5382 * sysdeps/i386/i686/init-arch.h: Likewise.
5383 * sysdeps/i386/i686/hp-timing.h: Likewise.
5384 * sysdeps/x86_64/hp-timing.h: Likewise.
5385 * sysdeps/i386/isa.h: New file.
5386 * sysdeps/i386/i586/isa.h: Likewise.
5387 * sysdeps/i386/i686/isa.h: Likewise.
5388 * sysdeps/x86_64/isa.h: Likewise.
5389 * sysdeps/x86/hp-timing.h: New file.
5390 * sysdeps/x86/init-arch.h: Include <isa.h>.
5391
5392 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5393
5394 * math/libm-test-pow.inc (pow_test_data): Do not allow
5395 divide-by-zero exception for pow(+/- 0, -Inf).
5396
5397 2018-10-17 Zack Weinberg <zackw@panix.com>
5398
5399 * manual/job.texi (Job Control is Optional): Remove node, as
5400 job control has not been optional in quite some time.
5401 (Job Control): Mention briefly that systems older than
5402 POSIX.1-2001 might not support job control.
5403 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5404 defined on systems conforming to POSIX.1-2001.
5405
5406 2018-10-17 Arjun Shankar <arjun@redhat.com>
5407
5408 [BZ #22062]
5409 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5410 indentation.
5411 * (__gconv_read_conf): Mark function static.
5412 * (once): New static variable.
5413 * (__gconv_load_conf): New function.
5414 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5415 * iconv/gconv_db.c (once): Remove static variable.
5416 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5417 __gconv_read_conf.
5418 * (__gconv_find_transform): Likewise.
5419 * iconv/tst-iconv-mt.c: New test.
5420 * iconv/Makefile: Add tst-iconv_mt.
5421
5422 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5423
5424 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5425 bits/shm-pad.h.
5426 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5427 (shmatt_t): Define as __syscall_ulong_t.
5428 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5429 and [__SHM_PAD_AFTER_TIME].
5430 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5431 Define shm_segsz and associated padding based on
5432 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5433 Use __syscall_ulong_t instead of unsigned long int.
5434 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5435 unsigned long int.
5436 [__USE_MISC] (struct shm_info): Likewise.
5437 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5438 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5439 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5440 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5441 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5442 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5443 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5444 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5445 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5446 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5447 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5448
5449 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5450 bits/shmlba.h.
5451 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5452 (SHMLBA): Remove macro.
5453 (__getpagesize): Remove function declaration.
5454 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5455 <bits/shmlba.h>.
5456 (SHMLBA): Remove macro.
5457 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5458 <bits/shmlba.h>.
5459 (SHMLBA): Remove macro.
5460 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5461 <bits/shmlba.h>.
5462 (SHMLBA): Remove macro.
5463 (__getpagesize): Remove function declaration.
5464 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5465 <bits/shmlba.h>.
5466 (SHMLBA): Remove macro.
5467 (__getshmlba): Remove function declaration.
5468 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5469 (SHMLBA): Remove macro.
5470 (__getpagesize): Remove function declaration.
5471 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5472 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5473 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5474 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5475 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5476 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5477 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5478 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5479 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5480 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5481
5482 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5483
5484 [BZ #23275]
5485 * nptl/tst-mutex10.c: New File.
5486 * nptl/Makefile (tests): Add tst-mutex10.
5487 (tst-mutex10-ENV): New variable.
5488 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5489 Ensure that elision path is used if elision is available.
5490 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5491 Likewise.
5492 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5493 Likewise.
5494 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5495 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5496 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5497 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5498 Likewise.
5499 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5500 (__pthread_mutex_cond_lock_adjust): Likewise.
5501 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5502 Likewise.
5503 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5504 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5505 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5506 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5507 Add comments.
5508 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5509 Use atomic_load_relaxed and atomic_store_relaxed.
5510 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5511 Use atomic_store_relaxed.
5512
5513 2018-10-17 Andreas Schwab <schwab@suse.de>
5514
5515 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5516 * crypt/badsalttest.c (TIMEOUT): Likewise.
5517 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5518 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5519 * io/test-lfs.c (TIMEOUT): Likewise.
5520 * libio/tst-atime.c (TIMEOUT): Likewise.
5521 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5522 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5523 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5524 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5525 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5526 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5527 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5528 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5529 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5530 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5531 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5532 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5533 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5534 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5535 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5536 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5537 * nptl/tst-once2.c (TIMEOUT): Likewise.
5538 * nptl/tst-once3.c (TIMEOUT): Likewise.
5539 * nptl/tst-once4.c (TIMEOUT): Likewise.
5540 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5541 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5542 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5543 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5544 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5545 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5546 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5547 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5548 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5549 * posix/tst-chmod.c (TIMEOUT): Likewise.
5550 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5551 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5552 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5553 * posix/tst-regex2.c (TIMEOUT): Likewise.
5554 * posix/tst-waitid.c (TIMEOUT): Likewise.
5555 * rt/tst-aio.c (TIMEOUT): Likewise.
5556 * rt/tst-aio10.c (TIMEOUT): Likewise.
5557 * rt/tst-aio4.c (TIMEOUT): Likewise.
5558 * rt/tst-aio5.c (TIMEOUT): Likewise.
5559 * rt/tst-aio6.c (TIMEOUT): Likewise.
5560 * rt/tst-aio64.c (TIMEOUT): Likewise.
5561 * rt/tst-aio7.c (TIMEOUT): Likewise.
5562 * rt/tst-aio9.c (TIMEOUT): Likewise.
5563 * rt/tst-clock.c (TIMEOUT): Likewise.
5564 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5565 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5566 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5567 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5568 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5569 * rt/tst-timer4.c (TIMEOUT): Likewise.
5570 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5571 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5572 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5573 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5574 * time/tst-ftime.c (TIMEOUT): Likewise.
5575 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5576
5577 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5578
5579 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5580 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5581 for thunderX2.
5582
5583 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5584
5585 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5586 bits/sem-pad.h.
5587 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5588 instead of <bits/wordsize.h>.
5589 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5590 and [__SEM_PAD_AFTER_TIME].
5591 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5592 __syscall_ulong_t instead of unsigned long int.
5593 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5594 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5595 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5596 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5597 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5598 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5599 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5600 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5601 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5602 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5603 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5604
5605 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5606
5607 regex: simplify by using intprops.h
5608 [BZ#23744]
5609 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5610 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5611 intprops.h defines them.
5612
5613 regex: __builtin_expect → __glibc_unlikely
5614 [BZ#23744]
5615 This refactoring was prompted by a problem when the regex code is
5616 used as part of Gnulib and when the builder’s compiler does not grok
5617 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5618 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5619 Although this refactoring does not fix the problem directly,
5620 we might as well have Gawk use the now-preferred glibc style for when
5621 __builtin_expect is unavailable.
5622 * posix/regex_internal.h (BE): Remove.
5623 All uses replaced by __glibc_unlikely or __glibc_likely.
5624
5625 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5626
5627 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5628 bits/msq-pad.h.
5629 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5630 instead of <bits/wordsize.h>.
5631 (msgqnum_t): Define as __syscall_ulong_t.
5632 (msglen_t): Likewise.
5633 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5634 and [__MSQ_PAD_AFTER_TIME].
5635 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5636 __syscall_ulong_t instead of unsigned long int.
5637 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5638 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5639 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5640 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5641 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5642 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5643 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5644 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5645 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5646 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5647 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5648
5649 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5650
5651 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5652 (struct shmid_ds): Condition padding after time fields on
5653 [__WORDSIZE == 32].
5654 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5655 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5656 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5657
5658 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5659 (struct semid_ds): Condition padding after time fields on
5660 [__WORDSIZE == 32].
5661 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5662 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5663 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5664 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5665
5666 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5667 (struct msqid_ds): Condition padding after time fields on
5668 [__WORDSIZE == 32].
5669 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5670 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5671 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5672 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5673
5674 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5675
5676 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5677
5678 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5679
5680 * libio/tst-readline.c (TIMEOUT): Define.
5681
5682 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5683
5684 mktime fix for Gnulib + coreutils
5685 [BZ#23745]
5686 This fix affects only Gnulib. Problem discovered when
5687 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5688 * time/mktime.c:
5689 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5690 Do not define since it is not used. Defining an unused static
5691 function prompts a warning from GCC when Coreutils is configured
5692 with --enable-gcc-warnings.
5693
5694 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5695
5696 * benchtests/scripts/compare_bench.py (main): set float type on
5697 threshold argument.
5698
5699 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5700
5701 [BZ #23740]
5702 * localedata/locales/kl_GL (mon): Update, the relative case.
5703 (alt_mon): Add, fill with month names in the nominative case.
5704 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5705 (d_fmt): Set to "%b %d %Y".
5706
5707 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5708
5709 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5710 <bits/mman-linux.h>.
5711 (PROT_READ): Don't define here.
5712 (PROT_WRITE): Likewise.
5713 (PROT_EXEC): Likewise.
5714 (PROT_NONE): Likewise.
5715 (PROT_GROWSDOWN): Likewise.
5716 (PROT_GROWSUP): Likewise.
5717 (MAP_SHARED): Likewise.
5718 (MAP_PRIVATE): Likewise.
5719 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5720 [__USE_MISC] (MAP_FILE): Likewise.
5721 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5722 [__USE_MISC] (MAP_ANON): Likewise.
5723 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5724 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5725 (MCL_CURRENT): Likewise.
5726 (MCL_FUTURE): Likewise.
5727 (MCL_ONFAULT): Likewise.
5728 [__USE_MISC] (MADV_NORMAL): Likewise.
5729 [__USE_MISC] (MADV_RANDOM): Likewise.
5730 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5731 [__USE_MISC] (MADV_WILLNEED): Likewise.
5732 [__USE_MISC] (MADV_DONTNEED): Likewise.
5733 [__USE_MISC] (MADV_FREE): Likewise.
5734 [__USE_MISC] (MADV_REMOVE): Likewise.
5735 [__USE_MISC] (MADV_DONTFORK): Likewise.
5736 [__USE_MISC] (MADV_DOFORK): Likewise.
5737 [__USE_MISC] (MADV_HWPOISON): Likewise.
5738 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5739 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5740 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5741 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5742 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5743 (__MAP_ANONYMOUS): New macro.
5744 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5745 <bits/mman-linux.h> inclusion.
5746 (MAP_FIXED): Likewise.
5747 (MS_SYNC): Likewise.
5748 (MS_ASYNC): Likewise.
5749 (MS_INVALIDATE): Likewise.
5750 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5751 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5752 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5753 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5754 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5755 [__USE_MISC] (MADV_DODUMP): Likewise.
5756 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5757 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5758
5759 [BZ #23735]
5760 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5761 Define.
5762 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5763 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5764 Add test-nldbl-redirect.
5765 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5766 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5767 $(objpfx)libnldbl_nonshared.a.
5768
5769 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5770
5771 * support/support.h (support_objdir_elf_ldso): New variable.
5772 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5773 * support/Makefile (CFLAGS-support_paths.c): Add definition
5774 for OBJDIR_ELF_LDSO_PATH.
5775 * support/test-container.c (main): Search for the ld.so
5776 which is also used by the testsuite.
5777
5778 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5779
5780 [BZ #20209]
5781 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5782 should be "sap" rather than "sab".
5783 (day): Fix spelling of Sunday, should be "sapaat" rather than
5784 "sabaat".
5785
5786 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5787
5788 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5789
5790 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5791
5792 [BZ #19444]
5793 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5794 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5795 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5796
5797 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5798
5799 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5800
5801 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5802
5803 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5804 Add -mrtm.
5805 (CFLAGS-elision-unlock.c): Likewise.
5806 (CFLAGS-elision-timed.c): Likewise.
5807 (CFLAGS-elision-trylock.c): Likewise.
5808 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5809
5810 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5811
5812 [BZ #21037]
5813 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5814 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5815 new fd_to_filename interface.
5816 * libio/freopen64.c (freopen64): Likewise.
5817 * libio/tst-memstream.h: New file.
5818 * libio/tst-memstream4.c: Likewise.
5819 * libio/tst-wmemstream4.c: Likewise.
5820 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5821 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5822 and remove internal dynamic allocation.
5823
5824 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5825
5826 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5827 (MREMAP_MAYMOVE): Do not define here.
5828 [__USE_GNU] (MREMAP_FIXED): Likewise.
5829 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5830 (MREMAP_MAYMOVE): Define here instead.
5831 [__USE_GNU] (MREMAP_FIXED): Likewise.
5832 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5833 (MREMAP_MAYMOVE): Remove.
5834 [__USE_GNU] (MREMAP_FIXED): Likewise.
5835
5836 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5837
5838 * math/fromfp.h: Do not include <math_private.h>.
5839 * math/s_cacosh_template.c: Likewise.
5840 * math/s_casin_template.c: Likewise.
5841 * math/s_casinh_template.c: Likewise.
5842 * math/s_ccos_template.c: Likewise.
5843 * math/s_cproj_template.c: Likewise.
5844 * math/s_fdim_template.c: Likewise.
5845 * math/s_fmaxmag_template.c: Likewise.
5846 * math/s_fminmag_template.c: Likewise.
5847 * math/s_iseqsig_template.c: Likewise.
5848 * math/s_ldexp_template.c: Likewise.
5849 * math/s_nextdown_template.c: Likewise.
5850 * math/w_log1p_template.c: Likewise.
5851 * math/w_scalbln_template.c: Likewise.
5852 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5853 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5854 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5855 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5856 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5857 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5858 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5859 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5860 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5861 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5862 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5863 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5864 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5865 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5866 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5867 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5868 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5869 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5870 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5871 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5872 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5873 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5874 * sysdeps/ieee754/k_standardf.c: Likewise.
5875 * sysdeps/ieee754/k_standardl.c: Likewise.
5876 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5877 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5878 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5879 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5880 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5881 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5882 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5883 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5884 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5885 * sysdeps/ieee754/s_signgam.c: Likewise.
5886 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5887 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5888 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5889 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5890 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5891 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5892 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5893 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5894 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5895 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5896 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5897 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5898 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5899 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5900 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5901 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5902 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5903 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5904 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5905 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5906 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5907 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5908 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5909 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5910 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5911 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5912 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5913 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5914 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5915 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5916 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5917 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5918 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5919 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5920 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5921 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5922 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5923 <math_private.h>.
5924 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5925
5926 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5927
5928 [BZ #23716]
5929 * sysdeps/i386/dl-cet.c: Removed.
5930 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5931 prototype.
5932 (_dl_runtime_profile_shstk): Likewise.
5933 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5934 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5935
5936 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5937
5938 [BZ #23579]
5939 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5940 do_test_with_invalid_iov): New tests.
5941 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5942 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5943 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5944 errno is ENOSYS.
5945 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5946 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5947 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5948
5949 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5950
5951 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5952 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5953 (MATH_REDIRECT_BINARY_ARGS): New macro.
5954 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5955 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5956 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5957 header inclusion.
5958 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5959 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5960 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5961 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5962 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5963 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5964 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5965 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5966 Likewise.
5967 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5968 Likewise.
5969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5971 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5972 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5974 Likewise.
5975 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5976 Likewise.
5977 * sysdeps/generic/math_private_calls.h
5978 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5979 Do not declare and define as an inline function.
5980 * math/divtc3.c (__divtc3): Use copysign functions instead of
5981 __copysign variants.
5982 * math/multc3.c (__multc3): Likewise.
5983 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5984 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5985 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5986 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5987 Likewise.
5988 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5989 (__ieee754_yn): Likewise.
5990 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5991 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5992 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5993 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5994 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5995 (__sin): Likewise.
5996 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5997 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5998 Likewise.
5999 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6000 Likewise.
6001 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6002 Likewise.
6003 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6004 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6005 Likewise.
6006 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6007 (__ieee754_ynf): Likewise.
6008 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6009 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6010 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6011 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6012 Likewise.
6013 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6014 (__ieee754_ynl): Likewise.
6015 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6016 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6017 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6018 Likewise.
6019 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6020 (__ieee754_ynl): Likewise.
6021 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6022 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6023 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6024 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6025 Likewise.
6026 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6027 (__ieee754_ynl)
6028 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6029 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6030 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6031 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6032 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6033
6034 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6035 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6036 using MATH_REDIRECT.
6037 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6038 header inclusion.
6039 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6040 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6041 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6042 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6043 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6044 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6045 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6047 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6050 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6051 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6052 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6053 (round): Redirect to __round.
6054 (__roundl): Call round instead of __round.
6055 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6056 Remove macro.
6057 [_ARCH_PWR5X] (__roundf): Likewise.
6058 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6059 functions instead of __round variants.
6060 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6061 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6062 Likewise.
6063 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6064 Likewise.
6065 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6066 Likewise.
6067 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6068 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6069 __lroundl.
6070 (__ieee754_expl): Call roundl instead of __roundl.
6071
6072 2018-09-27 Andreas Schwab <schwab@suse.de>
6073
6074 [BZ #23717]
6075 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6076 (do_test): Make st1 static.
6077
6078 2018-09-26 Andreas Schwab <schwab@suse.de>
6079
6080 [BZ #23707]
6081 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6082 * elf/Makefile (tests): Add tst-unwind-ctor.
6083 (modules-names): Add tst-unwind-ctor-lib.
6084 ($(objpfx)tst-unwind-ctor): Depend on
6085 $(objpfx)tst-unwind-ctor-lib.so.
6086
6087 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6088
6089 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6090 file. Most contents moved from ....
6091 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6092 and include <bits/mman-map-flags-generic.h>.
6093 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6094 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6095 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6096 <bits/mman-map-flags-generic.h>.
6097 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6098 macros defined in <bits/mman-map-flags-generic.h>.
6099 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6100 <bits/mman-map-flags-generic.h>.
6101 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6102 defined in <bits/mman-map-flags-generic.h>.
6103
6104 2018-09-26 Andreas Schwab <schwab@suse.de>
6105
6106 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6107 output.
6108
6109 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6110 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6111 Fangrui Song <maskray@google.com>
6112
6113 [BZ #20480]
6114 * config.make.in (have-textrel_ifunc): New define.
6115 * configure.ac: Add check if linker supports textrel relocation with
6116 ifunc.
6117 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6118 tst-ifunc-textrel.
6119 (CFLAGS-tst-ifunc-textrel.c): New rule.
6120 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6121 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6122 * elf/tst-ifunc-textrel.c: New file.
6123
6124 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6125
6126 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6127 <bits/procfs-prregset.h>.
6128 (prgregset_t): Define using __prgregset_t.
6129 (prfpregset_t): Define using __prfpregset_t.
6130 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6131 (sysdep_headers): Add bits/procfs-prregset.h.
6132 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6133 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6134 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6135 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6136
6137 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6138 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6139 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6140 pr_uid and pr_gid.
6141 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6142 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6143 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6144 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6145 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6146 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6147 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6148 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6149 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6150 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6151 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6152 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6153 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6154 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6155 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6156 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6157 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6158 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6159 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6160 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6161 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6162 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6163 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6164 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6165
6166 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6167 AArch64 version. Include <bits/procfs.h>.
6168 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6169 (sysdep_headers): Add bits/procfs.h.
6170 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6171 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6172 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6173 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6174 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6175 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6176 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6177 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6178 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6179 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6180 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6181 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6182 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6183 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6184 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6185 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6186 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6187
6188 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6189
6190 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6191 Use libsupport.
6192
6193 2018-09-25 Arjun Shankar <arjun@redhat.com>
6194
6195 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6196 (__gconv_max_path_elem_len): Likewise.
6197 (__gconv_nmodules): Likewise.
6198 (__gconv_get_path): Likewise.
6199 (path_elem): Move to ...
6200 * iconv/gconv_conf.c: ... here.
6201 (__gconv_get_path): Mark function static.
6202 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6203 * iconv/gconv_open.c: ... here.
6204
6205 2018-09-24 Andreas Schwab <schwab@suse.de>
6206
6207 * scripts/haveversions.awk: New file.
6208 * Makerules ($(common-objpfx)Versions.def)
6209 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6210 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6211 Move rules ...
6212 * Makeconfig ($(common-objpfx)Versions.def)
6213 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6214 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6215 ... here.
6216 ($(common-objpfx)Versions.mk): New rule. Include it.
6217 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6218 Emit error if build-obsolete-nsl = yes.
6219 * manual/install.texi (Configuring and compiling): Describe
6220 --enable-obsolete-nsl as unavaiable after version 2.28.
6221 * INSTALL: Regenerate.
6222
6223 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6224
6225 * NEWS: Add note about new TLE support on powerpc64le.
6226 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6227 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6228 __ununsed1.
6229 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6230 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6231 * sysdeps/powerpc/powerpc32/sysdep.h,
6232 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6233 ABORT_TRANSACTION): Remove macros.
6234 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6235 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6236 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6238 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6239 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6240 usage.
6241 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6242
6243 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6244
6245 [BZ #10425]
6246 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6247 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6248 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6249 which is the same as in it_IT.
6250 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6251 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6252
6253 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6254
6255 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6256 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6257 using MATH_REDIRECT.
6258 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6259 header inclusion.
6260 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6261 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6262 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6263 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6264 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6265 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6267 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6268 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6270 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6271 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6272 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6273 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6274 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6275 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6276 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6277 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6278 (ceil): Redirect to __ceil.
6279 (floor): Redirect to __floor.
6280 (trunc): Redirect to __trunc.
6281 (__truncl): Call trunc instead of __trunc.
6282 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6283 Remove macro.
6284 [_ARCH_PWR5X] (__truncf): Likewise.
6285 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6286 trunc functions instead of __trunc variants.
6287 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6288 Likewise.
6289 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6290 Likewise.
6291 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6292 Likewise.
6293 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6294 Likewise.
6295
6296 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6297 [__i586__ || __pentium__].
6298 [__i486__]: Handle explicitly.
6299 (HAS_CPUID): Define to 1 if above macros are undefined.
6300 (HAS_I586): Likewise.
6301 (HAS_I686): Likewise.
6302
6303 2018-09-20 Florian Weimer <fweimer@redhat.com>
6304
6305 * misc/tst-gethostid.c: New file.
6306 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6307 (tst-gethostid): Link with -ldl.
6308
6309 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6310
6311 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6312 value from gethostbyname_r.
6313
6314 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6315
6316 * stdlib/tst-setcontext9.c (f1): Rename to...
6317 (f1a): ... this.
6318 (f1b): New function implementing lower half of f1 in alternate stack.
6319
6320 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6321
6322 Fix mktime localtime offset confusion
6323 [BZ #23603]
6324 * include/time.h (__mktime_internal): The localtime offset is now
6325 of type long int instead of time_t. This is the longstanding type
6326 in glibc, and it is more than enough to represent difference
6327 between localtime and gmtime even if it is 32 bits and time_t is
6328 64. Changing it now will let us avoid an unnecessary change when
6329 time_t is widened to 64 bits on 32-bit platforms.
6330 * time/mktime-internal.h (mktime_offset_t): Now long int.
6331
6332 Merge mktime, timegm from upstream Gnulib
6333 [BZ #23603][BZ #16346]
6334 This fixes some obscure problems with integer overflow.
6335 Although it looks scary, it is almost all a byte-for-byte copy
6336 from Gnulib, and the Gnulib code has been tested reasonably well.
6337 * include/intprops.h: New file, copied from Gnulib.
6338 * include/verify.h, time/mktime-internal.h:
6339 New tiny files, simplified from Gnulib.
6340 * time/mktime.c: Copy from Gnulib. This has the following changes:
6341 Do not include config.h if DEBUG_MKTIME is nonzero.
6342 Include stdbool.h, intprops.h, verify.h.
6343 Include string.h only if needed.
6344 Include stdlib.h on MS-Windows.
6345 Include mktime-internal.h.
6346 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6347 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6348 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6349 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6350 simplify later conditionals; default the others to zero. Use
6351 these conditionals to express only the code needed on the current
6352 platform. In uses of these conditionals, explicitly spell out how
6353 _LIBC affects things, so it’s easier to review from a glibc
6354 viewpoint.
6355 (WRAPV): Remove; no longer needed now that we have
6356 systematic overflow checking.
6357 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6358 compartmentalize tzset issues. Move system-dependent tzsettish
6359 code here from mktime.
6360 (verify): Remove; now done by verify.h. All uses changed.
6361 (long_int): Use a more-conservative definition, to avoid
6362 integer overflow.
6363 (SHR): Remove, replacing with ...
6364 (shr): New function, which means we needn’t worry about side
6365 effects in args, and conversion analysis is simpler.
6366 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6367 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6368 (time_t_avg, time_t_add_ok): Remove.
6369 (mktime_min, mktime_max): New constants.
6370 (leapyear, isdst_differ): Use bool for booleans.
6371 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6372 Use long_int, not time_t, for mktime differences.
6373 (long_int_avg): New function, replacing time_t_avg.
6374 INT_ADD_WRAPV replaces time_t_add_ok.
6375 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6376 All uses changed.
6377 (convert_time): New function.
6378 (ranged_convert): Use it.
6379 (__mktime_internal): Last arg now points to mktime_offset_t, not
6380 time_t. All uses changed. This is a no-op on glibc, where
6381 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6382 offset guess. Directly check for integer overflow instead of
6383 using a heuristic that works only 99.9...% of the time.
6384 Access *OFFSET only once, to avoid an unlikely race if the
6385 compiler delays a load and if this cascades into a signed integer
6386 overflow.
6387 (mktime): Move tzsettish code to my_tzset, and move
6388 localtime_offset to within mktime so that it doesn’t
6389 need a separate ifdef.
6390 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6391 instead of localtime.
6392 * time/timegm.c: Copy from Gnulib. This has the following changes:
6393 Include mktime-internal.h.
6394 [!_LIBC]: Include config.h and time.h. Do not include
6395 timegm.h or time_r.h. Make __mktime_internal a macro,
6396 and include mktime-internal.h to get its declaration.
6397 (timegm): Temporary is now mktime_offset_t, not time_t.
6398 This affects only Gnulib.
6399
6400 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6401
6402 [BZ #23637]
6403 * string/test-strstr.c (pr23637): New function.
6404 (test_main): Add tests with longer needles.
6405 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6406 * string/strstr.c (AVAILABLE): Likewise.
6407
6408 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6409
6410 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6411
6412 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6413
6414 * NEWS: Mention pow improvements.
6415 * math/Makefile (type-double-routines): Add e_pow_log_data.
6416 * sysdeps/generic/math_private.h (__exp1): Remove.
6417 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6418 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6419 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6420 contraction.
6421 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6422 (exp_inline): Remove.
6423 (__ieee754_exp): Only single double input is handled.
6424 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6425 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6426 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6427 (__pow_log_data): Define.
6428 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6429 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6430 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6431 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6432 contraction.
6433 (CFLAGS-e_pow-fma4.c): Likewise.
6434
6435 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6436
6437 Simplify tzfile fstat failure code
6438 [BZ #21716]
6439 * time/tzfile.c (__tzfile_read): Simplify slightly.
6440
6441 Fix tzfile low-memory assertion failure
6442 [BZ #21716]
6443 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6444 when registering time zone abbreviations.
6445
6446 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6447
6448 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6449 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6450 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6451 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6452 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6453 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6454 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6455 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6456 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6457
6458 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6459 __ceil.
6460 (__ceill): Call ceil instead of __ceil.
6461 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6462 __floor.
6463 (__floorl): Call floor instead of __floor.
6464
6465 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6466
6467 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6468 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6469 using MATH_REDIRECT.
6470 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6471 header inclusion.
6472 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6473 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6474 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6475 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6476 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6477 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6478 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6479 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6480 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6481 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6484 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6485 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6486 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6487 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6488 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6489 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6490 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6491 Remove macro.
6492 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6493 functions instead of __ceil variants.
6494 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6495 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6496 Likewise.
6497 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6498 Likewise.
6499 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6500 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6501 Likewise.
6502 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6503 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6504
6505 [BZ #21286]
6506 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6507 constant.
6508 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6509 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6510 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6511 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6512 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6513 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6514 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6515 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6516 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6517 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6518 (ILL_BADIADDR): Remove constant.
6519 (TRAP_BRANCH): Likewise.
6520 (TRAP_HWBKPT): Likewise.
6521
6522 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6523
6524 [BZ #23656]
6525 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6526 Remove [_MIPS_SIM = _ABIN32] conditional case.
6527 (struct elf_prpsinfo): Likewise.
6528
6529 [BZ #23649]
6530 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6531 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6532 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6533 Likewise.
6534 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6535 elf_prpsinfo): Likewise.
6536 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6537 elf_prpsinfo): Likewise.
6538 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6539 Likewise.
6540
6541 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6542 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6543 using MATH_REDIRECT.
6544 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6545 header inclusion.
6546 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6547 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6548 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6549 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6550 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6551 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6552 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6553 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6554 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6555 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6556 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6557 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6558 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6559 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6560 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6561 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6562 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6563 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6564 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6567 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6568 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6569 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6570 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6571 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6572 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6573 __rint variants.
6574 * math/e_scalbf.c (invalid_fn): Likewise.
6575 * math/e_scalbl.c (invalid_fn): Likewise.
6576 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6577 Likewise.
6578 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6579 Likewise.
6580 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6581 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6582 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6583 Likewise.
6584 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6585 Likewise.
6586 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6587 Likewise.
6588 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6589 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6590
6591 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6592 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6593 New macro.
6594 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6595 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6596 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6597 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6598 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6599 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6600 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6601 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6602 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6603 && !NO_MATH_REDIRECT] (floor): Likewise.
6604 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6605 header inclusion.
6606 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6607 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6608 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6609 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6610 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6611 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6612 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6613 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6616 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6618 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6619 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6620 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6621 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6622 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6623 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6624 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6625 Remove macro.
6626 [_ARCH_PWR5X] (__floorf): Likewise.
6627 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6628 inline function.
6629 [__SSE4_1__] (__floorf): Likewise.
6630 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6631 instead of __floor variants.
6632 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6633 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6634 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6635 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6636 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6637 * math/w_tgamma_compat.c (__tgamma): Likewise.
6638 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6639 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6640 * math/w_tgammal_compat.c (__tgammal): Likewise.
6641 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6642 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6643 Likewise.
6644 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6645 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6646 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6647 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6648 Likewise.
6649 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6650 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6651 Likewise.
6652 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6653 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6654 Likewise.
6655 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6656 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6657 Likewise.
6658 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6659 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6660 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6661 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6662 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6663 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6664
6665 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6666
6667 * elf/Makefile (modules-names-tests): New variable.
6668
6669 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6670
6671 * NEWS: Mention log2 improvements.
6672 * math/Makefile (type-double-routines): Add e_log2_data.
6673 * sysdeps/i386/fpu/e_log2_data.c: New file.
6674 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6675 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6676 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6677 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6678 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6679 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6680
6681 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6682
6683 * NEWS: Mention log improvement.
6684 * math/Makefile (type-double-routines): Add e_log_data.
6685 * sysdeps/i386/fpu/e_log_data.c: New file.
6686 * sysdeps/ia64/fpu/e_log_data.c: New file.
6687 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6688 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6689 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6690 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6691 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6692 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6693
6694 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6695 Xuepeng Guo <xuepeng.guo@intel.com>
6696
6697 [BZ #23606]
6698 * sysdeps/i386/start.S: Include <sysdep.h>
6699 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6700 enabled. Add cfi_undefined (eip).
6701
6702 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6703
6704 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6705 (MOVQ): Likewise.
6706 (EXTRACT_WORDS64): Likewise.
6707 (INSERT_WORDS64): Likewise.
6708 (GET_FLOAT_WORD): Likewise.
6709 (SET_FLOAT_WORD): Likewise.
6710
6711 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6712 argument.
6713 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6714 build, but not for second build if --full-gcc. Use
6715 --enable-languages=all for second build if --full-gcc.
6716 (get_parser): Add --full-gcc option.
6717 (main): Update call to Context.
6718
6719 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6720
6721 [BZ #10797]
6722 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6723 Single Quotation Mark).
6724 (thousands_sep): Likewise.
6725 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6726 * localedata/locales/it_IT (thousands_sep): Use ".".
6727 (grouping): Use "3;3".
6728
6729 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6730
6731 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6732 x86_64 and i686 configs using --enable-obsolete-rpc
6733 --enable-obsolete-nsl.
6734
6735 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6736
6737 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6738
6739 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6740
6741 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6742 Increment size of new_argv by one.
6743
6744 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6745
6746 [BZ #17426]
6747 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6748 * localedata/locales/ar_IN (d_fmt): Likewise.
6749 * localedata/locales/bhb_IN (d_fmt): Likewise.
6750 * localedata/locales/bho_IN (d_fmt): Likewise.
6751 * localedata/locales/bn_BD (d_fmt): Likewise.
6752 * localedata/locales/bn_IN (d_fmt): Likewise.
6753 * localedata/locales/doi_IN (d_fmt): Likewise.
6754 * localedata/locales/gu_IN (d_fmt): Likewise.
6755 * localedata/locales/hi_IN (d_fmt): Likewise.
6756 * localedata/locales/hne_IN (d_fmt): Likewise.
6757 * localedata/locales/kn_IN (d_fmt): Likewise.
6758 * localedata/locales/mag_IN (d_fmt): Likewise.
6759 * localedata/locales/mai_IN (d_fmt): Likewise.
6760 * localedata/locales/mjw_IN (d_fmt): Likewise.
6761 * localedata/locales/ml_IN (d_fmt): Likewise.
6762 * localedata/locales/mni_IN (d_fmt): Likewise.
6763 * localedata/locales/mr_IN (d_fmt): Likewise.
6764 * localedata/locales/pa_IN (d_fmt): Likewise.
6765 * localedata/locales/raj_IN (d_fmt): Likewise.
6766 * localedata/locales/sat_IN (d_fmt): Likewise.
6767 * localedata/locales/sd_IN (d_fmt): Likewise.
6768 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6769 * localedata/locales/ta_IN (d_fmt): Likewise.
6770 * localedata/locales/ta_LK (d_fmt): Likewise.
6771 * localedata/locales/tcy_IN (d_fmt): Likewise.
6772 * localedata/locales/ur_IN (d_fmt): Likewise.
6773
6774 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6775 * localedata/locales/ks_IN (d_fmt): Likewise.
6776 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6777
6778 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6779 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6780 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6781 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6782
6783 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6784
6785 * NEWS: Mention exp and exp2 improvements.
6786 * math/Makefile (libm-support): Remove t_exp.
6787 (type-double-routines): Add math_err and e_exp_data.
6788 * sysdeps/aarch64/libm-test-ulps: Update.
6789 * sysdeps/arm/libm-test-ulps: Update.
6790 * sysdeps/i386/fpu/e_exp_data.c: New file.
6791 * sysdeps/i386/fpu/math_err.c: New file.
6792 * sysdeps/i386/fpu/t_exp.c: Remove.
6793 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6794 * sysdeps/ia64/fpu/math_err.c: New file.
6795 * sysdeps/ia64/fpu/t_exp.c: Remove.
6796 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6797 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6798 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6799 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6800 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6801 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6802 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6803 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6804 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6805 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6806 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6807 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6808 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6809 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6810 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6811 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6812
6813 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6814
6815 * sysdeps/alpha/fpu/math_private.h: Remove.
6816
6817 * sysdeps/generic/math_private.h
6818 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6819 Move this inline function ....
6820 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6821 * include/math.h [!_ISOMAC]: To here....
6822
6823 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6824
6825 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6826 code ....
6827 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6828 * include/fenv.h [!_ISOMAC]: ... to here.
6829 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6830 (feraiseexcept): Likewise.
6831 * math/fromfp.h: Do not include <fenv_private.h>.
6832 * math/s_cexp_template.c: Likewise.
6833 * math/s_csin_template.c: Likewise.
6834 * math/s_csinh_template.c: Likewise.
6835 * math/s_ctan_template.c: Likewise.
6836 * math/s_ctanh_template.c: Likewise.
6837 * math/s_iseqsig_template.c: Likewise.
6838 * math/w_acos_compat.c: Likewise.
6839 * math/w_acosf_compat.c: Likewise.
6840 * math/w_acosl_compat.c: Likewise.
6841 * math/w_asin_compat.c: Likewise.
6842 * math/w_asinf_compat.c: Likewise.
6843 * math/w_asinl_compat.c: Likewise.
6844 * math/w_j0_compat.c: Likewise.
6845 * math/w_j0f_compat.c: Likewise.
6846 * math/w_j0l_compat.c: Likewise.
6847 * math/w_j1_compat.c: Likewise.
6848 * math/w_j1f_compat.c: Likewise.
6849 * math/w_j1l_compat.c: Likewise.
6850 * math/w_jn_compat.c: Likewise.
6851 * math/w_jnf_compat.c: Likewise.
6852 * math/w_log10_compat.c: Likewise.
6853 * math/w_log10f_compat.c: Likewise.
6854 * math/w_log10l_compat.c: Likewise.
6855 * math/w_log2_compat.c: Likewise.
6856 * math/w_log2f_compat.c: Likewise.
6857 * math/w_log2l_compat.c: Likewise.
6858 * math/w_log_compat.c: Likewise.
6859 * math/w_logf_compat.c: Likewise.
6860 * math/w_logl_compat.c: Likewise.
6861 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6862 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6863 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6864 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6865 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6866 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6867 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6868 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6869 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6870 * sysdeps/ieee754/k_standardl.c: Likewise.
6871 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6872 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6873 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6874 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6875 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6879 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6883 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6884 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6885 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6886 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6887 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6888 * math/w_ilogb_template.c: Include <fenv.h> instead of
6889 <fenv_private.h>.
6890 * math/w_llogb_template.c: Likewise.
6891 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6892 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6893
6894 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6895
6896 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6897 * math/fromfp.h: Include <fenv_private.h>.
6898 * math/math-narrow.h: Likewise.
6899 * math/s_cexp_template.c: Likewise.
6900 * math/s_csin_template.c: Likewise.
6901 * math/s_csinh_template.c: Likewise.
6902 * math/s_ctan_template.c: Likewise.
6903 * math/s_ctanh_template.c: Likewise.
6904 * math/s_iseqsig_template.c: Likewise.
6905 * math/w_acos_compat.c: Likewise.
6906 * math/w_acosf_compat.c: Likewise.
6907 * math/w_acosl_compat.c: Likewise.
6908 * math/w_asin_compat.c: Likewise.
6909 * math/w_asinf_compat.c: Likewise.
6910 * math/w_asinl_compat.c: Likewise.
6911 * math/w_ilogb_template.c: Likewise.
6912 * math/w_j0_compat.c: Likewise.
6913 * math/w_j0f_compat.c: Likewise.
6914 * math/w_j0l_compat.c: Likewise.
6915 * math/w_j1_compat.c: Likewise.
6916 * math/w_j1f_compat.c: Likewise.
6917 * math/w_j1l_compat.c: Likewise.
6918 * math/w_jn_compat.c: Likewise.
6919 * math/w_jnf_compat.c: Likewise.
6920 * math/w_llogb_template.c: Likewise.
6921 * math/w_log10_compat.c: Likewise.
6922 * math/w_log10f_compat.c: Likewise.
6923 * math/w_log10l_compat.c: Likewise.
6924 * math/w_log2_compat.c: Likewise.
6925 * math/w_log2f_compat.c: Likewise.
6926 * math/w_log2l_compat.c: Likewise.
6927 * math/w_log_compat.c: Likewise.
6928 * math/w_logf_compat.c: Likewise.
6929 * math/w_logl_compat.c: Likewise.
6930 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6931 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6932 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6933 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6934 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6935 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6937 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6939 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6940 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6941 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6942 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6943 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6944 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6945 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6946 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6947 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6948 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6949 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6950 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6951 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6952 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6953 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6954 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6955 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6956 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6957 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6958 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6959 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6960 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6961 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6962 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6963 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6964 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6965 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6966 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6967 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6968 * sysdeps/ieee754/k_standardl.c: Likewise.
6969 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6970 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6971 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6974 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6975 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6976 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6977 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6978 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6980 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6981 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6982 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6983 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6984 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6985 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6986 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6987 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6988 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6989 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6990 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6991 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6992 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6993 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6994 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6995 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6996 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6997 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6998 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6999 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7000 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7001 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7002 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7003 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7004 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7005 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7006 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7007 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7008 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7009 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7010 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7011 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7012 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7013 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7014 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7015 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7016 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7017 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7018 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7019 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7020 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7021 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7022 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7023 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7024 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7025 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7026 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7027 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7028 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7029 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7030 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7031 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7032 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7033 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7034 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7035 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7036 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7037 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7038 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7039 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7040
7041 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7042
7043 [BZ #20271]
7044 * include/stdio.h (__libc_fatal): Mention newline in comment.
7045 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7046 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7047 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7048 * nss/nsswitch.c (__nss_next2): Likewise.
7049 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7050 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7051 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7052 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7053 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7054 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7055 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7056 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7057 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7058 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7059 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7060 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7061 (__netlink_assert_response): Likewise.
7062
7063 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7064
7065 * conform/glibcconform.py: New file.
7066 * conform/list-header-symbols.py: Likewise.
7067 * conform/list-header-symbols.pl: Remove.
7068 * conform/Makefile (tests-special): Only add linknamespace tests
7069 if [PYTHON].
7070 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7071
7072 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7073
7074 [BZ #23597]
7075 * support/Makefile (libsupport-routines): Add
7076 support_copy_file_range and xcopy_file_range.
7077 * support/support.h: Include <sys/types.h>.
7078 (support_copy_file_range): New prototype.
7079 * support/support_copy_file_range.c: New file. Copied and
7080 modified from io/copy_file_range-compat.c.
7081 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7082 instead of copy_file_range.
7083 * support/xcopy_file_range.c: New file.
7084 * support/xunistd.h (xcopy_file_range): New prototype.
7085
7086 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7087
7088 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7089 xpthread_create and xpthread_join.
7090
7091 2018-08-30 Florian Weimer <fweimer@redhat.com>
7092
7093 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7094
7095 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7096
7097 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7098 if malloc fails.
7099
7100 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7101
7102 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7103 and minus_oflow as non-finite.
7104
7105 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7106
7107 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7108 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7109 moved to fenv_private.h except for ...
7110 (TOINT_INTRINSICS): Kept in math_private.h.
7111 (roundtoint): Likewise.
7112 (converttoint): Likewise.
7113 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7114 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7115 * sysdeps/arm/math_private.h: Remove.
7116 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7117 ....
7118 * sysdeps/generic/math_private.h: ... this file. Include
7119 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7120 Include <fenv_private.h>. Remove functions and macros moved to
7121 fenv_private.h.
7122 * sysdeps/i386/fpu/math_private.h: Remove.
7123 * sysdeps/mips/math_private.h: Move to ....
7124 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7125 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7126 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7127 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7128 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7129 * sysdeps/powerpc/fpu/math_private.h: Do not include
7130 <fenv_private.h>.
7131 * sysdeps/riscv/rvf/math_private.h: Move to ....
7132 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7133 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7134 <fenv_private.h>.
7135 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7136 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7137 * sysdeps/sparc/fpu/math_private.h: Remove.
7138 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7139 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7140 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7141 <fenv_private.h>.
7142 * sysdeps/x86_64/fpu/math_private.h: Do not include
7143 <sysdeps/i386/fpu/fenv_private.h>.
7144
7145 2018-08-28 Florian Weimer <fweimer@redhat.com>
7146
7147 [BZ #23578]
7148 * posix/tst-regcomp-truncated.c: New file.
7149 * posix/Makefile (tests): Add it.
7150 (tst-regcomp-truncated.out): Depend on generated locales.
7151
7152 2018-08-28 Florian Weimer <fweimer@redhat.com>
7153
7154 * support/test-container.c (main): Treat unshare failure with
7155 EPERM as an unsupported test.
7156
7157 2018-08-28 Florian Weimer <fweimer@redhat.com>
7158
7159 [BZ #23520]
7160 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7161 * nscd/netgroupcache.c
7162 (addgetnetgrentX): Add tofreep parameter. Do not free
7163 heap-allocated buffer.
7164 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7165 (addgetnetgrentX_ignore): New function.
7166 (addgetnetgrent): Call it.
7167 (readdgetnetgrent): Likewise.
7168
7169 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7170
7171 * string/memmem.c: Use memcmp for first match.
7172
7173 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7174
7175 [BZ #17426]
7176 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7177
7178 2018-08-27 DJ Delorie <dj@redhat.com>
7179
7180 * support/Makefile (others): Don't list programs explicitly as a
7181 dependency of "others".
7182
7183 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7184
7185 * sysdeps/generic/math-tests-trap-force.h: New file.
7186 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7187 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7188 * sysdeps/powerpc/math-tests.h: Remove file.
7189 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7190
7191 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7192 Torvald Riegel <triegel@redhat.com>
7193
7194 [BZ #23538]
7195 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7196 Update r to include the set wake-request flag if waiters are
7197 remaining after spinning.
7198
7199 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7200
7201 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7202
7203 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7204
7205 [BZ #23578]
7206 regex: fix uninitialized memory access
7207 I introduced this bug into gnulib in commit
7208 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7209 eventually it was merged into glibc. The bug was found by
7210 project-repo <bugs@feusi.co> and reported here:
7211 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7212 Diagnosis and draft fix reported by Assaf Gordon here:
7213 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7214 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7215 * posix/regex_internal.c (build_wcs_upper_buffer):
7216 Fix bug when mbrtowc returns 0.
7217
7218 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7219
7220 * po/be.po: Update translation.
7221
7222 2018-08-24 DJ Delorie <dj@delorie.com>
7223
7224 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7225 $(libunwind).
7226
7227 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7228
7229 [BZ #23400]
7230 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7231 create temporary files in source tree.
7232
7233 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7234
7235 * sysdeps/generic/math-tests-trap.h: New file.
7236 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7237 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7238 * sysdeps/aarch64/math-tests.h: Remove file.
7239 * sysdeps/arm/math-tests.h: Likewise.
7240 * sysdeps/riscv/math-tests.h: Likewise.
7241 * sysdeps/aarch64/math-tests-trap.h: New file.
7242 * sysdeps/arm/math-tests-trap.h: Likewise.
7243 * sysdeps/riscv/math-tests-trap.h: Likewise.
7244
7245 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7246
7247 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7248 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7249 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7250 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7251 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7252 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7253 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7254 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7255 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7256 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7257 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7258 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7259 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7260 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7261 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7262 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7263 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7264 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7265
7266 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7267
7268 * sysdeps/generic/math-tests-exceptions.h: New file.
7269 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7270 (EXCEPTION_TESTS_float): Do not define here.
7271 (EXCEPTION_TESTS_double): Likewise.
7272 (EXCEPTION_TESTS_long_double): Likewise.
7273 (EXCEPTION_TESTS_float128): Likewise.
7274 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7275 Likewise.
7276 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7277 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7278 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7279 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7280 * sysdeps/mips/math-tests.h: Likewise.
7281 * sysdeps/nios2/math-tests.h: Likewise.
7282 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7283 (EXCEPTION_TESTS_float): Do not define here.
7284 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7285 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7286 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7287
7288 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7289
7290 * NEWS: Move optimized sinf entry to 2.29.
7291
7292 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7293
7294 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7295
7296 2018-08-22 DJ Delorie <dj@redhat.com>
7297
7298 * Makefile (testroot.pristine): New rules to initialize the
7299 test-in-container "testroot".
7300 * Makerules (all-testsuite): Add tests-container.
7301 * Rules (tests-expected): Add tests-container.
7302 (binaries-all-tests): Likewise.
7303 (tests-container): New, run these tests in the testroot container.
7304 * support/Makefile (others): Add *-container, support_paths.c,
7305 xmkdirp, and links-dso-program.
7306 * support/links-dso-program-c.c: New.
7307 * support/links-dso-program.cc: New.
7308 * support/test-container.c: New.
7309 * support/shell-container.c: New.
7310 * support/echo-container.c: New.
7311 * support/true-container.c: New.
7312 * support/xmkdirp.c: New.
7313 * support/xsymlink.c: New.
7314 * support/support_paths.c: New.
7315 * support/support.h: Add support paths prototypes.
7316 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7317
7318 * nss/tst-nss-test3.c: Convert to test-in-container.
7319 * nss/tst-nss-test3.root/: New.
7320
7321 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7322
7323 regex: port Gnulib code to z/OS POSIX environment
7324 Problem reported by Arnold Robbins in:
7325 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7326 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7327 Undef.
7328
7329 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7330
7331 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7332 (ROUNDING_TESTS_double): Remove.
7333 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7334 (ROUNDING_TESTS_double): Remove.
7335 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7336 (ROUNDING_TESTS_double): Remove.
7337 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7338 (ROUNDING_TESTS_float): Remove.
7339 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7340 (ROUNDING_TESTS_float): Remove.
7341 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7342 (ROUNDING_TESTS_float): Remove.
7343 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7344 !TEST_MATHVEC here.
7345 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7346 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7347
7348 * sysdeps/generic/math-tests-rounding.h: New file.
7349 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7350 (ROUNDING_TESTS_float): Do not define here.
7351 (ROUNDING_TESTS_double): Likewise.
7352 (ROUNDING_TESTS_long_double): Likewise.
7353 (ROUNDING_TESTS_float128): Likewise.
7354 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7355 (ROUNDING_TESTS_double): Undefine before defining.
7356 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7357 (ROUNDING_TESTS_double): Undefine before defining.
7358 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7359 (ROUNDING_TESTS_double): Undefine before defining.
7360 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7361 (ROUNDING_TESTS_float): Undefine before defining.
7362 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7363 (ROUNDING_TESTS_float): Undefine before defining.
7364 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7365 (ROUNDING_TESTS_float): Undefine before defining.
7366 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7367 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7368 not define here.
7369 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7370 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7371 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7372 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7373 (ROUNDING_TESTS_float): Do not define here.
7374 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7375 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7376 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7377 (ROUNDING_TESTS_float): Likewise.
7378 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7379 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7380 * sysdeps/mips/math-tests.h [__mips_soft_float]
7381 (ROUNDING_TESTS_float): Likewise.
7382 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7383 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7384 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7385 (ROUNDING_TESTS_double): Likewise.
7386 (ROUNDING_TESTS_long_double): Likewise.
7387
7388 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7389
7390 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7391 (PF_XDP): New macro.
7392 (AF_XDP): New macro.
7393 (SOL_XDP): New macro.
7394
7395 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7396
7397 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7398 (TCP_INQ): Likewise.
7399 (TCP_CM_INQ): Likewise.
7400 (TCP_REPAIR_ON): Likewise.
7401 (TCP_REPAIR_OFF): Likewise.
7402 (TCP_REPAIR_OFF_NO_WP): Likewise.
7403 (struct tcp_zerocopy_receive): New type.
7404
7405 2018-08-21 Florian Weimer <fweimer@redhat.com>
7406
7407 * support/support.h (support_descriptor_supports_holes): Declare.
7408 * support/Makefile (libsupport-routines): Add
7409 support_descriptor_supports_holes.
7410 * support/support_descriptor_supports_holes.c: New file.
7411 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7412 and stop testing if holes are not supported.
7413 * io/test-lfs.c (do_prepare): Likewise.
7414 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7415 Likewise.
7416 * timezone/tst-tzset.c (create_tz_file): Likewise.
7417 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7418 variable.
7419 (do_prepare): Set it.
7420 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7421
7422 2018-08-21 Florian Weimer <fweimer@redhat.com>
7423
7424 [BZ #17248]
7425 * Makeconfig (+cflags): Do not sort (and deduplicate).
7426
7427 2018-08-21 Florian Weimer <fweimer@redhat.com>
7428
7429 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7430 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7431
7432 2018-08-20 Florian Weimer <fweimer@redhat.com>
7433
7434 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7435 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7436
7437 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7438
7439 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7440 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7441 and ssi_arch members.
7442
7443 * elf/elf.c (NT_VMCOREDD): New macro.
7444 (AT_MINSIGSTKSZ): Likewise.
7445
7446 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7447
7448 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7449 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7450 s_cosf-ppc64 and s_cosf-power8.
7451 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7452 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7453 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7454 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7459 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7460 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7461 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7462 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7463
7464 2018-08-17 Florian Weimer <fweimer@redhat.com>
7465
7466 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7467
7468 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7469
7470 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7471
7472 2018-08-16 Florian Weimer <fweimer@redhat.com>
7473
7474 * configure.ac: Add --with-nonshared-cflags option.
7475 * config.make.in (extra-nonshared-cflags): Set variable.
7476 * Makeconfig (CFLAGS-.oS): Use it.
7477 * manual/install.texi (Configuring and compiling): Document
7478 --with-nonshared-cflags.
7479 * configure: Regenerate.
7480 * INSTALL: Likewise.
7481
7482 2018-08-16 Florian Weimer <fweimer@redhat.com>
7483
7484 * Makeconfig (ASFLAGS): Always append required assembler flags.
7485
7486 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7487
7488 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7489 (malloc_consolidate): Likewise.
7490
7491 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7492
7493 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7494
7495 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7496
7497 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7498 every strlen call.
7499
7500 * benchtests/bench-strlen.c: Print performance numbers in json.
7501
7502 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7503
7504 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7505 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7506 only for little endian.
7507 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7508 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7509 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7510 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7511 Add check for little endian.
7512 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7513 (__strcmp_power9): Add check for little endian.
7514 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7515 Add check for little endian.
7516 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7517 (__strncmp_power9): Add check for little endian.
7518 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7519 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7520 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7521 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7522 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7523
7524 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7525
7526 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7527 [!STRLEN](STRLEN): Set to __strlen.
7528 * sysdeps/aarch64/multiarch/strlen.c: New file.
7529 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7530 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7531 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7532 (__libc_ifunc_impl_list): Add strlen.
7533 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7534 strlen_generic and strlen_asimd.
7535
7536 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7537
7538 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7539 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7540 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7541
7542 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7543
7544 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7545
7546 2018-08-14 Florian Weimer <fweimer@redhat.com>
7547
7548 [BZ #23519]
7549 * include/stdio.h (__vfxprintf): Declare.
7550 * stdio-common/fxprintf.c (__vfxprintf): New function.
7551 (__fxprintf): Call it.
7552 * misc/err.c (convert_and_print): Remove function.
7553 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7554 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7555 * misc/Makefile (tests): Add tst-warn-wide.
7556 * misc/tst-warn-wide.c: New file.
7557
7558 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7559 Szabolcs Nagy <szabolcs.nagy@arm.com>
7560
7561 * NEWS: Mention sinf, cosf, sincosf.
7562 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7563 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7564 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7565 constants rather than including generic sincosf.h.
7566 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7567 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7568 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7569 (reduced_cos): Remove.
7570 (sinf_poly): New function.
7571 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7572
7573 2018-08-14 Florian Weimer <fweimer@redhat.com>
7574
7575 [BZ #23521]
7576 [BZ #23522]
7577 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7578 processing, bail out if no room, and close the stream before
7579 returning ERANGE.
7580 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7581 (tst-nss-files-alias-leak): Link with libdl.
7582 (tst-nss-files-alias-leak.out): Depend on nss_files.
7583
7584 * nss/tst-nss-files-alias-leak.c: New file.
7585
7586 2018-08-14 Florian Weimer <fweimer@redhat.com>
7587
7588 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7589 server_user, stat_user.
7590
7591 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7592
7593 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7594 version to 4.18.
7595 (io_pgetevents): New syscall.
7596 (rseq): Likewise.
7597
7598 * manual/install.texi (Configuring and compiling): Do not list
7599 tools used for testing pretty printers here.
7600 (Tools for Compilation): List Python, PExpect and GDB here.
7601 Update descriptions of uses of Perl and Python.
7602 * INSTALL: Regenerate.
7603
7604 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7605 version to 4.18.
7606
7607 2018-08-13 Florian Weimer <fweimer@redhat.com>
7608
7609 * misc/error.c (error): Add missing va_end call.
7610 (error_at_line): Likewise.
7611
7612 2018-08-13 Florian Weimer <fweimer@redhat.com>
7613
7614 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7615
7616 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7617
7618 * benchtests/scripts/benchout.schema.json (properties): Add
7619 new properties.
7620
7621 * benchtests/bench-skeleton.c (main): Add duration and
7622 iterations attributes.
7623
7624 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7625
7626 regex: Gnulib unibyte RRI uses bytes not chars
7627 Adjust the non-glibc code to agree with what Gawk needs for
7628 rational range interpretation (RRI) for regular expression ranges.
7629 In unibyte locales, Gawk wants ranges to use the underlying byte
7630 rather than the character code point. This change does not affect
7631 glibc proper.
7632 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7633 In unibyte locales, use the byte value rather than
7634 running it through btowc.
7635
7636 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7637
7638 * sysdeps/generic/math-tests-snan.h: New file.
7639 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7640 (SNAN_TESTS_float): Do not define here.
7641 (SNAN_TESTS_double): Likewise.
7642 (SNAN_TESTS_long_double): Likewise.
7643 (SNAN_TESTS_float128): Likewise.
7644 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7645 * sysdeps/i386/fpu/math-tests.h: Remove file.
7646 * sysdeps/ia64/math-tests-snan.h: New file.
7647 * sysdeps/ia64/math-tests.h: Remove file.
7648 * sysdeps/x86/math-tests.h: Likewise.
7649 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7650
7651 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7652 Szabolcs Nagy <szabolcs.nagy@arm.com>
7653
7654 * math/Makefile: Add s_sincosf_data.c.
7655 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7656 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7657 (sincosf_poly): Likewise.
7658 (reduce_small): Likewise.
7659 (reduce_large): Likewise.
7660 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7661 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7662 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7663 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7664
7665 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7666 Szabolcs Nagy <szabolcs.nagy@arm.com>
7667
7668 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7669 (converttoint): Use lround.
7670 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7671 document the semantics when TOINT_INTRINSICS is set.
7672 (converttoint): Likewise.
7673 (TOINT_RINT): Remove.
7674 (TOINT_SHIFT): Remove.
7675 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7676 path.
7677
7678 2018-08-10 Florian Weimer <fweimer@redhat.com>
7679
7680 [BZ #23497]
7681 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7682 function.
7683 (__old_getdents64): Use getdents64. Convert entries without
7684 moving them.
7685 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7686 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7687 tst-readdir64-compat.
7688
7689 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7690
7691 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7692 Fix unwind.
7693
7694 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7695
7696 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7697 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7698 code to s390x-mcount.h and #include it.
7699 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7700 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7701 (__fentry__): Add.
7702
7703 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7704
7705 * stdlib/Versions: Remove __fentry__.
7706 * sysdeps/i386/Versions: Add __fentry__.
7707 * sysdeps/x86_64/Versions: Add __fentry__.
7708
7709 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7710
7711 * sysdeps/s390/Makefile: Register the new tests.
7712 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7713 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7714 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7715 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7716 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7717 * sysdeps/s390/tst-dl-runtime.c: New file.
7718
7719 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7720
7721 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7722 Do not clobber R0.
7723
7724 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7725
7726 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7727 Do not clobber R0.
7728
7729 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7730
7731 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7732 Do not clobber R0.
7733
7734 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7735
7736 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7737 Do not clobber R0.
7738
7739 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7740
7741 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7742 Use symbolic offsets for stack variables.
7743
7744 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7745
7746 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7747 Use symbolic offsets for stack variables.
7748
7749 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7750
7751 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7752 Use symbolic offsets for stack variables.
7753
7754 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7755
7756 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7757 Use symbolic offsets for stack variables.
7758
7759 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7760
7761 * math/gen-libm-test.py: New file.
7762 * math/gen-libm-test.pl: Remove.
7763 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7764 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7765 gen-libm-test.pl.
7766 ($(libm-test-c-noauto-obj)): Likewise.
7767 ($(libm-test-c-auto-obj)): Likewise.
7768 ($(libm-test-c-narrow-obj)): Likewise.
7769 (regen-ulps): Likewise.
7770 * math/README.libm-test: Update references to gen-libm-test.pl.
7771 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7772 referencing gen-libm-test.pl.
7773 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7774 * math/libm-test-support.c: Likewise.
7775 * math/libm-test-support.h: Likewise.
7776 * sysdeps/generic/libm-test-ulps: Likewise.
7777
7778 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7779
7780 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7781 Fix value.
7782
7783 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7784
7785 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7786 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7787
7788 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7789
7790 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7791 symbols.
7792 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7793 __pthread_setspecific): Add hidden proto.
7794 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7795 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7796
7797 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7798
7799 * benchtests/bench-string.h (buf1_size, buf2_size): New
7800 variables.
7801 (init_sizes): New function.
7802 (test_init): Use it.
7803 (alloc_buf, exit_error): New functions.
7804 (alloc_bufs): Use ALLOC_BUF.
7805 (realloc_bufs): Remove.
7806 * benchtests/bench-memcmp.c (do_test): Adjust.
7807 * benchtests/bench-memset-large.c (do_test): Likewise.
7808 * benchtests/bench-memset-walk.c (do_test): Likewise.
7809 * benchtests/bench-memset.c (do_test): Likewise.
7810 * benchtests/bench-strncmp.c (do_test): Likewise.
7811
7812 2018-08-06 Andreas Schwab <schwab@suse.de>
7813
7814 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7815 of CONST_THREAD_AREA.
7816
7817 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7818
7819 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7820 (STATE_SAVE_MASK): Likewise.
7821 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7822 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7823 (STATE_SAVE_MASK): Likewise.
7824 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7825 instead of <cpu-features.h>.
7826
7827 2018-08-03 DJ Delorie <dj@redhat.com>
7828
7829 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7830 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7831
7832 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7833
7834 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7835
7836 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7837 after TEST_* calls.
7838 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7839 * math/libm-test-logb.inc (logb_test_data): Likewise.
7840
7841 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7842
7843 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7844 * string/strstr.c (AVAILABLE): Likewise.
7845
7846 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7847
7848 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7849 <init-arch.h>.
7850 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7851 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7852 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7853
7854 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7855
7856 * po/be.po: Update translation.
7857
7858 * po/be.po: Update translation.
7859
7860 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7861
7862 * sysdeps/x86/cpu-features-offsets.sym
7863 (rtld_global_ro_offsetof): Removed.
7864 (CPU_FEATURES_SIZE): Likewise.
7865 (CPUID_OFFSET): Likewise.
7866 (CPUID_SIZE): Likewise.
7867 (CPUID_EAX_OFFSET): Likewise.
7868 (CPUID_EBX_OFFSET): Likewise.
7869 (CPUID_ECX_OFFSET): Likewise.
7870 (CPUID_EDX_OFFSET): Likewise.
7871 (FAMILY_OFFSET): Likewise.
7872 (MODEL_OFFSET): Likewise.
7873 (FEATURE_OFFSET): Likewise.
7874 (FEATURE_SIZ): Likewise.
7875 (COMMON_CPUID_INDEX_1): Likewise.
7876 (COMMON_CPUID_INDEX_7): Likewise.
7877 (FEATURE_INDEX_1): Likewise.
7878 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7879
7880 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7881
7882 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7883 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7884 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7885 (install-locales): Depend on install-locale-archive.
7886 (install-locale-archive): Define.
7887 (install-locale-files): Define.
7888 (build-one-locale): Define macro.
7889 * manual/install.texi (Running make install): Document.
7890 * manual/INSTALL: Regenerate.
7891
7892 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7893
7894 * benchtests/scripts/compare_strings.py: Import traceback.
7895 (parse_file): Pretty-print error.
7896
7897 * NEWS: Mention the change.
7898 * elf/dl-tunables.list: Rename tune namespace to cpu.
7899 * sysdeps/powerpc/dl-tunables.list: Likewise.
7900 * sysdeps/x86/dl-tunables.list: Likewise.
7901 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7902 cpu.name.
7903 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7904 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7905 * manual/README.tunables: Likewise.
7906 * manual/tunables.texi: Likewise.
7907 * sysdeps/powerpc/cpu-features.c: Likewise.
7908 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7909 (init_cpu_features): Likewise.
7910 * sysdeps/x86/cpu-features.c: Likewise.
7911 * sysdeps/x86/cpu-features.h: Likewise.
7912 * sysdeps/x86/cpu-tunables.c: Likewise.
7913 * sysdeps/x86_64/Makefile: Likewise.
7914 * sysdeps/x86/dl-cet.c: Likewise.
7915
7916 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7917
7918 [BZ #23479]
7919 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7920 [__mips_hard_float].
7921 (FE_UNDERFLOW): Likewise.
7922 (FE_OVERFLOW): Likewise.
7923 (FE_DIVBYZERO): Likewise.
7924 (FE_INVALID): Likewise.
7925 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7926 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7927 (FE_UPWARD): Likewise.
7928 (FE_DOWNWARD): Likewise.
7929 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7930 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7931 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7932 [__mips_hard_float].
7933 (FP_ROUNDMODE): Likewise.
7934 (FP_RND_NEAREST): Likewise.
7935 (FP_RND_ZERO): Likewise.
7936 (FP_RND_PINF): Likewise.
7937 (FP_RND_MINF): Likewise.
7938 (FP_EX_INVALID): Likewise.
7939 (FP_EX_OVERFLOW): Likewise.
7940 (FP_EX_UNDERFLOW): Likewise.
7941 (FP_EX_DIVZERO): Likewise.
7942 (FP_EX_INEXACT): Likewise.
7943 (FP_INIT_ROUNDMODE): Likewise.
7944 * sysdeps/mips/nofpu/fesetenv.c: New file.
7945 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7946
7947 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7948
7949 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7950 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7951 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7952 conditional on [FE_UPWARD].
7953
7954 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7955
7956 regex: fix memory leak in Gnulib
7957 Problem and fix reported by Assaf Gordon in:
7958 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7959 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7960 range_ends members too, as they are defined in 'struct
7961 re_charset_t' even if not _LIBC. This affects only Gnulib.
7962
7963 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7964
7965 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7966 ...
7967 (get_common_indices): This.
7968 (init_cpu_features): Updated.
7969
7970 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7971
7972 * sysdeps/generic/math-tests-snan-payload.h: New file.
7973 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7974 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7975 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7976 * sysdeps/generic/math-tests.h: Include
7977 <math-tests-snan-payload.h>.
7978 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7979 * sysdeps/hppa/math-tests.h: Remove file.
7980 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7981 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7982 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7983 Likewise.
7984
7985 * sysdeps/generic/math-tests-snan-cast.h: New file.
7986 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7987 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7988 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7989 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7990
7991 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7992
7993 * version.h (RELEASE): Set to "development".
7994 (VERSION): Set to "2.28.9000".
7995 * NEWS (2.29): New section.
7996
7997 * version.h (RELEASE): Set to "stable".
7998 (VERSION): Set to "2.28".
7999 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8000 * NEWS: Add the list of bugs fixed in 2.28.
8001
8002 * po/ca.po: Update to latest version.
8003 * po/cs.po: Likewise
8004 * po/da.po: Likewise
8005 * po/el.po: Likewise
8006 * po/eo.po: Likewise
8007 * po/es.po: Likewise
8008 * po/fi.po: Likewise
8009 * po/fr.po: Likewise
8010 * po/gl.po: Likewise
8011 * po/hu.po: Likewise
8012 * po/ia.po: Likewise
8013 * po/id.po: Likewise
8014 * po/it.po: Likewise
8015 * po/ja.po: Likewise
8016 * po/ko.po: Likewise
8017 * po/lt.po: Likewise
8018 * po/nb.po: Likewise
8019 * po/nl.po: Likewise
8020 * po/pt_BR.po: Likewise
8021 * po/ru.po: Likewise
8022 * po/rw.po: Likewise
8023 * po/sk.po: Likewise
8024 * po/sl.po: Likewise
8025 * po/tr.po: Likewise
8026 * po/zh_CN.po: Likewise
8027 * po/zh_TW.po: Likewise
8028
8029 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8030
8031 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8032 initialization...
8033 (init): ... before initializing libpthread.
8034
8035 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8036 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8037 (__mach_setup_tls): ... new function.
8038 (mach_setup_tls): New alias.
8039 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8040 __mach_setup_thread.
8041 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8042 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8043 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8044 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8045
8046 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8047
8048 * manual/install.texi: Update versions.
8049 * INSTALL: Regenerate.
8050
8051 * manual/contrib.texi (Contributors): Update contributions.
8052
8053 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8054
8055 * po/be.po: Update translations.
8056
8057 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8058
8059 * sysdeps/sh/libm-test-ulps: Update.
8060
8061 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8062
8063 * po/bg.po: Update translations.
8064 * po/de.po: Likewise.
8065 * po/hr.po: Likewise.
8066 * po/pt_BR.po: Likewise.
8067 * po/sv.po: Likewise.
8068 * po/vi.po: Likewise.
8069
8070 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8071
8072 [BZ #23467]
8073 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8074 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8075 (CFLAGS-tst-cet-property-1.o): New.
8076 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8077 ($(objpfx)tst-cet-property-2): Likewise.
8078 ($(objpfx)tst-cet-property-2.out): Likewise.
8079 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8080 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8081 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8082 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8083 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8084
8085 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8086
8087 [BZ #23458]
8088 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8089
8090 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8091
8092 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8093 __sbrk): Do not set attribute_hidden.
8094 * sysdeps/mach/hurd/not-errno.h: New file.
8095 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8096 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8097
8098 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8099
8100 * po/uk.po: Update translations.
8101 * po/cs.po: Likewise.
8102 * po/pl.po: Likewise.
8103
8104 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8105
8106 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8107 parse beyond the note end.
8108
8109 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8110
8111 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8112 kernel does not support OFD locks.
8113 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8114
8115 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8116
8117 * sysdeps/mach/hurd/Versions (libc): Make __access and
8118 __access_noerrno external so they can override the ld symbols.
8119 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8120 __writev, __open64, __access_noerrno extern so they can be overrided.
8121 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8122 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8123
8124 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8125
8126 * po/libc.pot: Regenerate.
8127
8128 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8129
8130 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8131
8132 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8133
8134 [BZ #23459]
8135 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8136 function.
8137 (init_cpu_features): Call get_extended_indices for both Intel
8138 and AMD CPUs.
8139 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8140 Remove "for AMD" comment.
8141
8142 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8143
8144 [BZ # 23456]
8145 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8146 COMMON_CPUID_INDEX_80000001.
8147
8148 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8149
8150 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8151 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8152
8153 2018-07-26 Florian Weimer <fweimer@redhat.com>
8154
8155 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8156 aliases for symbols not in the implementation namespace.
8157
8158 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8159
8160 [BZ #23393]
8161 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8162 lowercase in LATIN script.
8163 * localedata/Makefile (test-input): Add en_US.UTF-8.
8164 * localedata/en_US.UTF-8.in: New file.
8165 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8166 and restore old tests.
8167 * posix/tst-regexloc.c (do_test): Add back range expression test.
8168
8169 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8170
8171 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8172
8173 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8174
8175 * nptl/threads.h: Move to ...
8176 * sysdeps/nptl/threads.h: ... here.
8177 * sysdeps/hurd/stdc-predef.h: New file.
8178
8179 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8180
8181 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8182 tst-cet-setcontext-1 if CET is enabled.
8183 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8184 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8185
8186 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8187
8188 * include/threads.h: Move to ...
8189 * sysdeps/nptl/threads.h: ... here.
8190 * sysdeps/htl/threads.h: New file.
8191 * conform/Makefile (linknamespace-libs-ISO11): Use
8192 static-thread-library instead of linking libpthread.
8193 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8194
8195 2018-07-25 Florian Weimer <fweimer@redhat.com>
8196
8197 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8198 nanoseconds into seconds.
8199 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8200 (do_test): Likewise.
8201 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8202 (do_test): Likewise. Avoid nanosecond overflow and spurious
8203 timeouts due to system load.
8204 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8205 (child_wait): Increment it.
8206 (do_test): Wait as long as necessary until all expected threads
8207 have arrived.
8208
8209 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8210 H.J. Lu <hongjiu.lu@intel.com>
8211
8212 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8213 __ssp.
8214 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8215 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8216 (__push___start_context): New.
8217 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8218 <asm/prctl.h>.
8219 (__getcontext): Record the current shadow stack base. Save the
8220 caller's shadow stack pointer and base.
8221 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8222 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8223 (__push___start_context): New prototype.
8224 (__makecontext): Call __push___start_context to allocate a new
8225 shadow stack, push __start_context onto the new stack as well
8226 as the new shadow stack.
8227 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8228 <asm/prctl.h>.
8229 (__setcontext): Restore the target shadow stack.
8230 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8231 <asm/prctl.h>.
8232 (__swapcontext): Record the current shadow stack base. Save
8233 the caller's shadow stack pointer and base. Restore the target
8234 shadow stack.
8235 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8236 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8237 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8238
8239 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8240
8241 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8242 tst-setcontext8 and tst-setcontext9.
8243 * stdlib/tst-setcontext6.c: New file.
8244 * stdlib/tst-setcontext7.c: Likewise.
8245 * stdlib/tst-setcontext8.c: Likewise.
8246 * stdlib/tst-setcontext9.c: Likewise.
8247
8248 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8249
8250 * stdlib/Makefile ((tests): Add tst-setcontext5.
8251 * stdlib/tst-setcontext5.c: New file.
8252
8253 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8254
8255 * stdlib/Makefile (tests): Add tst-setcontext4.
8256 * stdlib/tst-setcontext4.c: New file.
8257
8258 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8259
8260 * stdlib/Makefile (tests): Add tst-swapcontext1.
8261 * stdlib/tst-swapcontext1.c: New test.
8262
8263 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8264
8265 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8266 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8267 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8268 and tst-cet-legacy-4c.
8269 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8270 and tst-cet-legacy-mod-4.
8271 (CFLAGS-tst-cet-legacy-2.c): New.
8272 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8273 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8274 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8275 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8276 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8277 ($(objpfx)tst-cet-legacy-1): Likewise.
8278 ($(objpfx)tst-cet-legacy-2): Likewise.
8279 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8280 ($(objpfx)tst-cet-legacy-2a): Likewise.
8281 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8282 ($(objpfx)tst-cet-legacy-4): Likewise.
8283 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8284 ($(objpfx)tst-cet-legacy-4a): Likewise.
8285 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8286 (tst-cet-legacy-4a-ENV): Likewise.
8287 ($(objpfx)tst-cet-legacy-4b): Likewise.
8288 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8289 (tst-cet-legacy-4b-ENV): Likewise.
8290 ($(objpfx)tst-cet-legacy-4c): Likewise.
8291 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8292 (tst-cet-legacy-4c-ENV): Likewise.
8293 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8294 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8295 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8296 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8297 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8298 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8299 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8300 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8301 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8302 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8303 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8304
8305 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8306
8307 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8308 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8309 with ssp_base.
8310 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8311 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8312 with ssp_base.
8313
8314 2018-07-25 Andreas Schwab <schwab@suse.de>
8315
8316 [BZ #23442]
8317 * locale/weightwc.h (findidx): Handle the case where usrc is a
8318 prefix of cp but one character too short.
8319
8320 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8321
8322 * NEWS: Add ISO C threads addition.
8323
8324 2018-07-24 Florian Weimer <fweimer@redhat.com>
8325
8326 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8327 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8328 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8329 4.13.
8330
8331 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8332
8333 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8334 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8335 <sys/prctl.h> and <asm/prctl.h>.
8336 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8337 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8338 and <asm/prctl.h>.
8339 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8340 ARCH_CET_LEGACY_BITMAP.
8341 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8342 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8343 * sysdeps/x86/libc-start.c: Include <startup.h>.
8344
8345 2018-07-24 Florian Weimer <fweimer@redhat.com>
8346
8347 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8348 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8349
8350 2018-07-24 Rical Jasan <rj@2c3t.io>
8351 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8352 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8353
8354 [BZ #14092]
8355 * manual/debug.texi: Update adjacent chapter name.
8356 * manual/probes.texi: Likewise.
8357 * manual/threads.texi (ISO C Threads): New section.
8358 (POSIX Threads): Convert to a section.
8359
8360 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8361 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8362
8363 [BZ# 14092]
8364 * nptl/Makefile (tests): Add new test files.
8365 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8366 * nptl/tst-cnd-basic.c: Likewise.
8367 * nptl/tst-cnd-broadcast.c: Likewise.
8368 * nptl/tst-cnd-timedwait.c: Likewise.
8369 * nptl/tst-mtx-basic.c: Likewise.
8370 * nptl/tst-mtx-recursive.c: Likewise.
8371 * nptl/tst-mtx-timedlock.c: Likewise.
8372 * nptl/tst-mtx-trylock.c: Likewise.
8373 * nptl/tst-thrd-basic.c: Likewise.
8374 * nptl/tst-thrd-detach.c: Likewise.
8375 * nptl/tst-thrd-sleep.c: Likewise.
8376 * nptl/tst-tss-basic.c: Likewise.
8377
8378 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8379
8380 [BZ #14092]
8381 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8382 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8383 symbols.
8384 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8388 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8389 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8390 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8391 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8392 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8393 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8394 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8395 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8397 Likewise.
8398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8399 Likewise.
8400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8401 Likewise.
8402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8403 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8404 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8405 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8406 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8407 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8408 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8409 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8410 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8411 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8412 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8413 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8414 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8415 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8416 Likewise.
8417 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8418 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8419 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8420 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8421 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8422 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8423 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8424 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8425 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8426 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8427 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8428 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8429 ikewise.
8430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8432 Likewise.
8433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8434 Likewise.
8435 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8436 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8437 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8438 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8439 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8440 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8441 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8442 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8443
8444 [BZ #14092]
8445 * conform/data/threads.h-data (thread_local): New macro.
8446 (TSS_DTOR_ITERATIONS): Likewise.
8447 (tss_t): New type.
8448 (tss_dtor_t): Likewise.
8449 (tss_create): New function.
8450 (tss_get): Likewise.
8451 (tss_set): Likewise.
8452 (tss_delete): Likewise.
8453 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8454 tss_get, and tss_set objects.
8455 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8456 * nptl/tss_create.c: New file.
8457 * nptl/tss_delete.c: Likewise.
8458 * nptl/tss_get.c: Likewise.
8459 * nptl/tss_set.c: Likewise.
8460 * sysdeps/nptl/threads.h (thread_local): New define.
8461 (TSS_DTOR_ITERATIONS): Likewise.
8462 (tss_t): New typedef.
8463 (tss_dtor_t): Likewise.
8464 (tss_create): New prototype.
8465 (tss_get): Likewise.
8466 (tss_set): Likewise.
8467 (tss_delete): Likewise.
8468
8469 [BZ #14092]
8470 * conform/data/threads.h-data (cnd_t): New type.
8471 (cnd_init): New function.
8472 (cnd_signal): Likewise.
8473 (cnd_broadcast): Likewise.
8474 (cnd_wait): Likewise.
8475 (cnd_timedwait): Likewise.
8476 (cnd_destroy): Likewise.
8477 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8478 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8479 object.
8480 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8481 * nptl/cnd_broadcast.c: New file.
8482 * nptl/cnd_destroy.c: Likewise.
8483 * nptl/cnd_init.c: Likewise.
8484 * nptl/cnd_signal.c: Likewise.
8485 * nptl/cnd_timedwait.c: Likewise.
8486 * nptl/cnd_wait.c: Likewise.
8487 * sysdeps/nptl/threads.h (cnd_t): New type.
8488 (cnd_init): New prototype.
8489 (cnd_signa): Likewise.
8490 (cnd_broadcast): Likewise.
8491 (cnd_wait): Likewise.
8492 (cnd_timedwait): Likewise.
8493 (cnd_destroy): Likewise.
8494
8495 [BZ #14092]
8496 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8497 (once_flag): New type.
8498 (call_once): New function.
8499 * nptl/Makefile (libpthread-routines): Add call_once object.
8500 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8501 * nptl/call_once.c: New file.
8502 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8503 (once_flag): New type.
8504 (call_once): New prototype.
8505
8506 [BZ #14092]
8507 * conform/data/threads.h-data (mtx_plain): New constant.
8508 (mtx_recursive): Likewise.
8509 (mtx_timed): Likewise.
8510 (mtx_t): New type.
8511 (mtx_init): New function.
8512 (mtx_lock): Likewise.
8513 (mtx_timedlock): Likewise.
8514 (mtx_trylock): Likewise.
8515 (mtx_unlock): Likewise.
8516 (mtx_destroy): Likewise.
8517 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8518 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8519 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8520 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8521 * nptl/mtx_destroy.c: New file.
8522 * nptl/mtx_init.c: Likewise.
8523 * nptl/mtx_lock.c: Likewise.
8524 * nptl/mtx_timedlock.c: Likewise.
8525 * nptl/mtx_trylock.c: Likewise.
8526 * nptl/mtx_unlock.c: Likewise.
8527 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8528 (mtx_recursive): Likewise.
8529 (mtx_timed): Likewise.
8530 (mtx_t): New type.
8531 (mtx_init): New prototype.
8532 (mtx_lock): Likewise.
8533 (mtx_timedlock): Likewise.
8534 (mtx_trylock): Likewise.
8535 (mtx_unlock): Likewise.
8536 (mtx_destroy): Likewise.
8537
8538 [BZ #14092]
8539 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8540 (linknamespace-libs-ISO11): Add libpthread.a.
8541 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8542 functions.
8543 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8544 * nptl/Makefile (headers): Add threads.h.
8545 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8546 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8547 thrd_yield.
8548 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8549 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8550 thrd_join, thrd_sleep, and thrd_yield symbols.
8551 * nptl/descr.h (struct pthread): Add c11 field.
8552 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8553 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8554 routine with expected function prototype.
8555 (__pthread_create_2_1): Add C11 threads check based on attribute
8556 value.
8557 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8558 * nptl/thrd_create.c: New file.
8559 * nptl/thrd_current.c: Likewise.
8560 * nptl/thrd_detach.c: Likewise.
8561 * nptl/thrd_equal.c: Likewise.
8562 * nptl/thrd_exit.c: Likewise.
8563 * nptl/thrd_join.c: Likewise.
8564 * nptl/thrd_priv.h: Likewise.
8565 * nptl/thrd_sleep.c: Likewise.
8566 * nptl/thrd_yield.c: Likewise.
8567 * include/threads.h: Likewise.
8568
8569 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8570
8571 * bits/indirect-return.h: New file.
8572 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8573 * sysdeps/x86/bits/indirect-return.h: Likewise.
8574 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8575 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8576 (swapcontext): Add __INDIRECT_RETURN.
8577 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8578 (prepare_test_buffer): Use it.
8579
8580 2018-07-24 Andreas Schwab <schwab@suse.de>
8581
8582 [BZ #23448]
8583 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8584 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8585
8586 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8587
8588 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8589 Redefine if shadow stack is enabled.
8590 (SYSCALL_ERROR_LABEL): Likewise.
8591 (__vfork): Pop shadow stack and jump back to to caller directly
8592 when shadow stack is in use.
8593 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8594 Redefine if shadow stack is enabled.
8595 (SYSCALL_ERROR_LABEL): Likewise.
8596 (__vfork): Pop shadow stack and jump back to to caller directly
8597 when shadow stack is in use.
8598
8599 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8600
8601 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8602 enabled.
8603 (foo): Likewise.
8604 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8605 (foo): Likewise.
8606
8607 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8608
8609 * scripts/build-many-glibcs.py (Context.checkout): Default
8610 binutils version to 2.31 branch.
8611
8612 2018-07-20 Zong Li <zong@andestech.com>
8613
8614 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8615 URL of gcc's tarball.
8616
8617 2018-07-20 Florian Weimer <fweimer@redhat.com>
8618
8619 [BZ #23396]
8620 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8621 not compare an extra byte after the end of the weights.
8622
8623 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8624
8625 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8626 to 1.
8627 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8628 hidden prototypes.
8629 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8630 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8631 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8632 list of libraries whose stack executability is expected.
8633 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8634 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8635 variable.
8636 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8637 libc.so libpthread.so.
8638
8639 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8640
8641 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8642 SOCK_NONBLOCK.
8643 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8644 and SOCK_NONBLOCK.
8645 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8646 implement __pipe2.
8647 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8648
8649 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8650
8651 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8652 library to improve command line parsing.
8653 (__main__): make schema file as optional parameter (--schema),
8654 defaulting to benchtests/scripts/benchout.schema.json.
8655 (main): move out of the parsing stuff to __main_  and leave it
8656 only as caller of main comparison functions.
8657
8658 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8659
8660 * NEWS: Add a note for Intel CET status.
8661 * manual/install.texi: Likewise.
8662 * INSTALL: Regenerated.
8663
8664 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8665
8666 [BZ #23140]
8667 * localedata/locales/oc_FR (mon): Rename to...
8668 (alt_mon): This, then update October (typo fix).
8669 (mon): New content (genitive case, month names preceded by
8670 "de" or "d’").
8671
8672 [BZ #23422]
8673 * localedata/locales/oc_FR (abday): Update all items.
8674 (day): Update Wednesday and Saturday (typo fixes).
8675 (abmon): Update all items, except May.
8676 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8677 (LC_IDENTIFICATION): Bump the revision number and date.
8678 Keep the "category" entries in alphabetic order.
8679 (LC_ADDRESS): Remove no longer needed comment.
8680 (LC_COLLATE): Use “copy "ca_ES"”.
8681 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8682 "name_mrs".
8683
8684 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8685
8686 * grp/tst_fgetgrent.c: Include <unistd.h>.
8687 (main): Use mkstemp instead of tmpnam.
8688 * io/test-utime.c (main): Likewise.
8689 * posix/annexc.c (macrofile): Change to modifiable array.
8690 (main): Remove macrofile here.
8691 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8692 macrofile here.
8693 (check_header): Do not remove macrofile here.
8694 * posix/bug-getopt1.c: Include <stdlib.h>.
8695 (do_test): Use mkstemp instead of tmpnam.
8696 * posix/bug-getopt2.c: Include <stdlib.h>.
8697 (do_test): Use mkstemp instead of tmpnam.
8698 * posix/bug-getopt3.c: Include <stdlib.h>.
8699 (do_test): Use mkstemp instead of tmpnam.
8700 * posix/bug-getopt4.c: Include <stdlib.h>.
8701 (do_test): Use mkstemp instead of tmpnam.
8702 * posix/bug-getopt5.c: Include <stdlib.h>.
8703 (do_test): Use mkstemp instead of tmpnam.
8704 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8705 (main): Use mkstemp instead of tmpnam.
8706 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8707 (main): Use mkstemp instead of tmpnam.
8708 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8709 (main): use mkstemp instead of tmpnam.
8710 * stdlib/isomac.c (macrofile): Change to modifiable array.
8711 (main): Remove macrofile here.
8712 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8713 macrofile here.
8714 (check_header): Do not remove macrofile here.
8715
8716 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8717
8718 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8719 glibc.tune.x86_shstk.
8720
8721 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8722
8723 * NEWS: Mention --enable-cet.
8724 * manual/install.texi: Document --enable-cet.
8725 * INSTALL: Regenerated.
8726
8727 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8728
8729 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8730 Add _CET_NOTRACK before indirect jump to jump table.
8731
8732 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8733
8734 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8735 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8736 to jump table.
8737
8738 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8739
8740 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8741 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8742 to jump table.
8743
8744 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8745
8746 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8747 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8748 to jump table.
8749
8750 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8753 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8754 to jump table.
8755
8756 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8757
8758 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8759 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8760 to jump table.
8761 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8762
8763 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8764
8765 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8766 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8767 to jump table.
8768
8769 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8770
8771 * sysdeps/i386/i686/multiarch/memset-sse2.S
8772 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8773 to jump table.
8774
8775 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8776
8777 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8778 indirect jump to jump table.
8779
8780 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8781
8782 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8783 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8784 to jump table.
8785 (MEMCPY): Likewise.
8786
8787 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8788
8789 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8790 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8791 to jump table.
8792 (MEMCPY): Likewise.
8793
8794 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8795
8796 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8797 _CET_NOTRACK before indirect jump to jump table.
8798
8799 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8800
8801 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8802 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8803 to jump table.
8804
8805 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8806
8807 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8808 indirect jump to jump table.
8809
8810 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8811
8812 [BZ #22241]
8813 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8814 (LOCALES): Likewise.
8815 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8816 * localedata/locales/sah_RU: New file.
8817 * localedata/sah_RU.UTF-8.in: New file.
8818
8819 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8822 "sysdep.h".
8823 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8824 _CET_ENDBR to indirect jump targets and adjust jump destination
8825 for _CET_ENDBR.
8826 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8827 "sysdep.h".
8828 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8829 _CET_ENDBR to indirect jump targets and adjust jump destination
8830 for _CET_ENDBR.
8831 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8832 "sysdep.h".
8833 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8834 _CET_ENDBR to indirect jump targets and adjust jump destination
8835 for _CET_ENDBR.
8836
8837 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8838
8839 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8840 _CET_ENDBR.
8841
8842 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8843
8844 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8845 _CET_ENDBR.
8846 (_dl_tlsdesc_undefweak): Likewise.
8847 (_dl_tlsdesc_dynamic): Likewise.
8848 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8849 (_dl_tlsdesc_resolve_rel): Likewise.
8850 (_dl_tlsdesc_resolve_rela): Likewise.
8851 (_dl_tlsdesc_resolve_hold): Likewise.
8852 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8853 (_dl_tlsdesc_undefweak): Likewise.
8854 (_dl_tlsdesc_dynamic): Likewise.
8855 (_dl_tlsdesc_resolve_rela): Likewise.
8856 (_dl_tlsdesc_resolve_hold): Likewise.
8857
8858 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8859
8860 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8861 (_fini): Likewise.
8862 * sysdeps/x86_64/crti.S (_init): Likewise.
8863 (_fini): Likewise.
8864
8865 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8866
8867 [BZ #23140]
8868 * localedata/locales/os_RU (mon): Rename to...
8869 (alt_mon): This.
8870 (mon): Import from CLDR (genitive case).
8871
8872 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8873
8874 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8875 cet-tunables.h> when CET is enabled.
8876
8877 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8878
8879 [BZ #21598]
8880 * configure.ac: Add --enable-cet.
8881 * configure: Regenerated.
8882 * elf/Makefille (all-built-dso): Add a comment.
8883 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8884 Include <dl-prop.h>.
8885 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8886 segment.
8887 * elf/dl-open.c: Include <dl-prop.h>.
8888 (dl_open_worker): Call _dl_open_check.
8889 * elf/rtld.c: Include <dl-prop.h>.
8890 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8891 _rtld_main_check.
8892 * sysdeps/generic/dl-prop.h: New file.
8893 * sysdeps/i386/dl-cet.c: Likewise.
8894 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8895 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8896 * sysdeps/x86/cet-tunables.h: Likewise.
8897 * sysdeps/x86/check-cet.awk: Likewise.
8898 * sysdeps/x86/configure: Likewise.
8899 * sysdeps/x86/configure.ac: Likewise.
8900 * sysdeps/x86/dl-cet.c: Likewise.
8901 * sysdeps/x86/dl-procruntime.c: Likewise.
8902 * sysdeps/x86/dl-prop.h: Likewise.
8903 * sysdeps/x86/libc-start.h: Likewise.
8904 * sysdeps/x86/link_map.h: Likewise.
8905 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8906 _CET_ENDBR.
8907 (_dl_runtime_profile): Likewise.
8908 (_dl_runtime_resolve_shstk): New.
8909 (_dl_runtime_profile_shstk): Likewise.
8910 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8911 if CET is enabled.
8912 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8913 (CFLAGS-.os): Likewise.
8914 (CFLAGS-.op): Likewise.
8915 (CFLAGS-.oS): Likewise.
8916 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8917 is enabled.
8918 (tests-special): Add $(objpfx)check-cet.out.
8919 (cet-built-dso): New.
8920 (+$(cet-built-dso:=.note)): Likewise.
8921 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8922 ($(objpfx)check-cet.out): New.
8923 (generated): Add check-cet.out.
8924 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8925 <cet-tunables.h>.
8926 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8927 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8928 (init_cpu_features): Call get_cet_status to check CET status
8929 and update dl_x86_feature_1 with CET status. Call
8930 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8931 (set_x86_shstk). Disable and lock CET in libc.a.
8932 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8933 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8934 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8935 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8936 (_CET_ENDBR): Define if not defined.
8937 (ENTRY): Add _CET_ENDBR.
8938 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8939 x86_shstk.
8940 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8941 _CET_ENDBR.
8942 (_dl_runtime_profile): Likewise.
8943
8944 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8945
8946 [BZ #21895]
8947 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8948 restore r2 on longjmp.
8949 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8950 test list.
8951 Added rules to build test tst-setjmp-bug21895-static.
8952 Added module setjmp-bug21895 and rules to build a shared object from it.
8953 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8954 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8955
8956 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8957
8958 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8959 * benchtests/bench-strstr.c: Likewise.
8960 * string/memmem.c (FASTSEARCH): Define.
8961 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8962 Add support for FASTSEARCH.
8963 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8964 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8965 (FASTSEARCH): Define.
8966 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8967 * string/test-strstr.c: Likewise.
8968
8969 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8970
8971 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8972 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8973
8974 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8975 H.J. Lu <hongjiu.lu@intel.com>
8976
8977 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8978 (__longjmp): Restore shadow stack pointer if shadow stack is
8979 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8980 isn't defined for __longjmp_cancel.
8981 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8982 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8983 and SHADOW_STACK_POINTER_OFFSET is defined.
8984 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8985 (setjmp): Save shadow stack pointer if shadow stack is enabled
8986 and SHADOW_STACK_POINTER_OFFSET is defined.
8987 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8988 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8989 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8990 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8991 <jmp_buf-ssp.h>.
8992 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8993 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8994 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8995 Remove jmp_buf-ssp.sym.
8996 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8997 <jmp_buf-ssp.h>.
8998 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8999 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9000 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9001 jmp_buf-ssp.sym.
9002 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9003 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9004 (__longjmp): Restore shadow stack pointer if shadow stack is
9005 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9006 isn't defined for __longjmp_cancel.
9007 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9008 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9009 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9010
9011 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9012
9013 [BZ #22563]
9014 * nptl/pthread_create.c: Include <tls-setup.h>.
9015 (__pthread_create_2_1): Call tls_setup_tcbhead.
9016 * sysdeps/generic/tls-setup.h: New file.
9017 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9018 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9019 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9020 Likewise.
9021 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9022 to feature_1.
9023 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9024 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9025 (X86_FEATURE_1_SHSTK): Likewise.
9026 (CET_ENABLED): Likewise.
9027 (IBT_ENABLED): Likewise.
9028 (SHSTK_ENABLED): Likewise.
9029
9030 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9031
9032 [BZ #23208]
9033 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9034 (LOCALES): Likewise.
9035 * localedata/dsb_DE.UTF-8.in: New file.
9036 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9037
9038 2018-07-12 Florian Weimer <fweimer@redhat.com>
9039
9040 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9041 __mprotect, not mprotect.
9042
9043 2018-07-11 Florian Weimer <fweimer@redhat.com>
9044
9045 * io/Makefile (headers): Add bits/statx.h.
9046
9047 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9048
9049 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9050 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9051 and headers.
9052 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9053 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9054 for utf8_gen.py
9055
9056 2018-07-10 Florian Weimer <fweimer@redhat.com>
9057
9058 * io/Makefile (routines): Add statx.
9059 (tests-internal): Add tst-statx.
9060 * io/Versions (GLIBC_2.28): Export statx.
9061 * io/bits/statx.h: New file.
9062 * io/sys/stat.h [__USE_GNU]: Include it.
9063 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9064 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9065 Define.
9066 * io/statx.c: New file.
9067 * io/statx_generic.: Likewise.
9068 * io/tst-statx.: Likewise.
9069 * include/bits/statx.h: Likewise.
9070 * sysdeps/unix/sysv/linux/kernel-features.h
9071 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9072 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9073 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9074 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9075 Undefine.
9076 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9077 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9078 * sysdeps/unix/sysv/linux/statx.c: New file.
9079 * manual/filesys.texi: Note that statx is undocumented.
9080 * sysdeps/**/libc*.abilist: Update.
9081
9082 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9083
9084 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9085 a kernel issue which lead to test failure in some cases.
9086
9087 2018-07-10 Florian Weimer <fweimer@redhat.com>
9088
9089 [BZ #23036]
9090 * posix/regexec.c (check_node_accept_bytes): When comparing
9091 weights, do not compare an extra byte after the end of the
9092 weights.
9093
9094 2018-07-10 Florian Weimer <fweimer@redhat.com>
9095
9096 * libio/readline.c: Fix copyright year.
9097 * libio/tst-readline.c Likewise.
9098 * nss/tst-nss-files-hosts-getent.c: Likewise.
9099
9100 2018-07-06 Florian Weimer <fweimer@redhat.com>
9101
9102 [BZ #18991]
9103 * nss/nss_files/files-XXX.c (internal_getent): Use
9104 __libc_readline_unlocked. Seek back to the start of the line if
9105 parsing failes with ERANGE.
9106 (get_contents_ret, get_contents): Remove.
9107 * nss/tst-nss-files-hosts-getent.c: New file.
9108 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9109 (tst-nss-files-hosts-getent): Link with -ldl.
9110
9111 2018-07-06 Florian Weimer <fweimer@redhat.com>
9112
9113 * include/stdio.h (__libc_readline_unlocked): Declare.
9114 (__ftello64, __fseeko64): Declare aliases.
9115 * libio/readline.c: New file.
9116 * libio/tst-readline.c: Likewise.
9117 (routines): Add readline.
9118 (tests-internal): Add tst-readlime.
9119 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9120 __libc_readline_unlocked.
9121 * libio/fseeko.c (__fseeko): Rename from fseeko.
9122 (fseeko): Add alias.
9123 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9124 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9125 (fseeko64): Add alias.
9126 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9127 * libio/ftello64.c (__ftello64): Rename from ftello64.
9128 (ftello64): Add alias.
9129
9130 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9131
9132 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9133 HWCAP_ATOMICS.
9134
9135 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9136
9137 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9138 Use dl_hwcap without masking.
9139 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9140 Remove HWCAP_CPUID.
9141
9142 2018-07-06 Florian Weimer <fweimer@redhat.com>
9143
9144 * conform/conformtest.pl (checknamespace): Escape literal braces
9145 in regular expressions.
9146
9147 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9148
9149 * sysdeps/x86/cpu-features.c (get_common_indeces):
9150 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9151 * sysdeps/x86/cpu-features.c (init_cpu_features):
9152 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9153
9154 2018-07-05 Florian Weimer <fweimer@redhat.com>
9155
9156 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9157 protector.
9158 (CFLAGS-elf-init.oS): Likewise.
9159
9160 2018-07-05 Florian Weimer <fweimer@redhat.com>
9161 Carlos O'Donell <carlos@redhat.com>
9162
9163 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9164 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9165 with stack protector enabled because there is no risk of infinite
9166 recursion.
9167
9168 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9169
9170 [BZ #19818]
9171 [BZ #23307]
9172 * libc-abis (ABSOLUTE): New ABI.
9173 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9174 * NEWS: Mention the new ABI.
9175
9176 2018-07-05 Florian Weimer <fweimer@redhat.com>
9177
9178 [BZ # 17662]
9179 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9180 (RENAME_WHITEOUT): Define.
9181 [__USE_GNU] (renameat2): Declare.
9182 * stdio-common/Makefile (routines): Add renameat2.
9183 (tests): Add tst-renameat2.
9184 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9185 * stdio-common/renameat2.c: New file.
9186 * stdio-common/tst-renameat2.c: Likewise.
9187 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9188 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9189 undocumented.
9190 * sysdeps/unix/sysv/linux/kernel-features.h
9191 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9192 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9193 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9194 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9195 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9196 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9197 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9198 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9199 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9200 * include/stdio.h (__renameat): Add alias for renameat.
9201 * stdio-common/renameat.c (__renameat): Rename from renameat.
9202 Add hidden definition and alias.
9203 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9204 * sysdeps/mach/hurd/renameat.c: Likewise.
9205 * sysdeps/**/libc*.abilist: Add renameat2.
9206
9207 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9208
9209 * posix/bug-regex33.c: Fix build after regex sync.
9210
9211 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9212
9213 [BZ #23164]
9214 * localedata/tst-langinfo-setlocale.c: New file.
9215 * localedata/tst-langinfo-setlocale-static.c: New file.
9216 * localedata/tst-langinfo-newlocale.c: New file.
9217 * localedata/tst-langinfo-newlocale-static.c: New file.
9218 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9219 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9220 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9221 (tests-static): Remove tst-langinfo-static. Add
9222 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9223 (tests-special): Remove $(objpfx)tst-langinfo.out,
9224 $(objpfx)tst-langinfo-static.out. Add
9225 $(objpfx)tst-langinfo-setlocale.out,
9226 $(objpfx)tst-langinfo-newlocale.out,
9227 $(objpfx)tst-langinfo-setlocale-static.out,
9228 $(objpfx)tst-langinfo-newlocale-static.out.
9229 ($(objpfx)tst-langinfo.out): Remove.
9230 ($(objpfx)tst-langinfo-static.out): Remove.
9231 ($(objpfx)tst-langinfo-newlocale.out): New target.
9232 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9233 (test-xfail-tst-langinfo-newlocale-static): Add.
9234 ($(objpfx)tst-langinfo-setlocale.out): New target.
9235 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9236 * localedata/tst-langinfo.c: Call test_locale.
9237 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9238 data.
9239
9240 2018-07-04 Florian Weimer <fweimer@redhat.com>
9241
9242 testrun.sh: Implement --tool=strace, --tool=valgrind
9243 * Makefile (testrun-script): Define variable.
9244 (testrun.sh): Use variable.
9245 * manual/install.texi (Tools for Compilation): make 4.0 or later
9246 is required.
9247 * configure.ac: Check for make 4.0 or later.
9248 * INSTALL: Regenerate.
9249 * configure: Likewise.
9250
9251 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9252
9253 [BZ #23233]
9254 [BZ #21163]
9255 [BZ #18986]
9256 [BZ #13762]
9257 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9258 * posix/PCRE.tests: Remove invalid test.
9259 * posix/bug-regex28.c: Fix expected values for used syntax.
9260 * posix/bug-regex37.c: New file.
9261 * posix/bug-regex38.c: Likewise.
9262 * posix/regcomp.c: Sync with gnulib.
9263 * posix/regex.c: Likewise.
9264 * posix/regex.h: Likewise.
9265 * posix/regex_internal.c: Likewise.
9266 * posix/regex_internal.h: Likewise.
9267 * posix/regexec.c: Likewise.
9268
9269 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9270
9271 [BZ #23308]
9272 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9273 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9274 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9275 * localedata/unicode-gen/PropList.txt: likewise.
9276 * localedata/unicode-gen/UnicodeData.txt: likewise.
9277 * localedata/charmaps/UTF-8: Regenerate.
9278 * localedata/locales/i18n_ctype: likewise.
9279 * localedata/locales/tr_TR: likewise.
9280 * localedata/locales/translit_circle: likewise.
9281 * localedata/locales/translit_cjk_compat: likewise.
9282 * localedata/locales/translit_combining: likewise.
9283 * localedata/locales/translit_compat: likewise.
9284 * localedata/locales/translit_font: likewise.
9285 * localedata/locales/translit_fraction: likewise.
9286
9287 2018-07-03 Florian Weimer <fweimer@redhat.com>
9288
9289 [BZ #23363]
9290 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9291 * stdio-common/tst-printf.sh: Adjust expected output.
9292 * LICENSES: Update.
9293
9294 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9295
9296 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9297 symbol.
9298
9299 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9300
9301 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9302 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9303 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9304 * stdio-common/tst-printfsz-islongdouble.c: New file.
9305 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9306 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9307 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9308 [subdir == stdio-common] (tests-internal): Add
9309 test-printf-size-ieee128, and test-printf-size-ibm128.
9310 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9311 (CFLAGS-test-printf-size-ibm128.c): New variables.
9312 [subdir == stdio-common] (tests-special): Add
9313 $(objpfx)test-printf-size-ieee128.out and
9314 $(objpfx)test-printf-size-ibm128.out.
9315 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9316 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9317 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9318 __printf_sizeieee128.
9319 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9320 New file.
9321 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9322 Likewise.
9323 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9324 Likewise.
9325
9326 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9327
9328 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9329 (exp2f_inline): Likewise.
9330 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9331 (__math_uflowf): Likewise.
9332 (__math_may_uflowf): Likewise.
9333 (__math_divzerof): Likewise.
9334 (__math_invalidf): Likewise.
9335 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9336 (__math_oflowf): Likewise.
9337 (__math_uflowf): Likewise.
9338 (__math_may_uflowf): Likewise.
9339 (__math_divzerof): Likewise.
9340 (__math_invalidf): Likewise.
9341
9342 2018-06-29 DJ Delorie <dj@redhat.com>
9343 Carlos O'Donell <carlos@redhat.com>
9344
9345 [BZ #23329]
9346 * include/libc-symbols.h: Comment the freeres framework.
9347 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9348 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9349 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9350 * dlfcn/dlerror.c: Include libc-symbols.h
9351 (__dlerror_main_freeres): New function.
9352 * dlfcn/dlfreeres.c: New file.
9353 * dlfcn/sdlfreeres.c: New file.
9354 * include/dlfcn.h: Declare __dlerror_main_freeres.
9355 * malloc/set-freeres.c: Declare __libdl_freeres, and
9356 __libpthread_freeres.
9357 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9358 the releavant libraries are loaded.
9359 * malloc/thread-freeres.c: Add comments.
9360 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9361 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9362 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9363 (__free_stacks): Rename to...
9364 (free_stacks): ...this. Mark static.
9365 (queue_stack): Call free_stacks.
9366 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9367 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9368 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9369 ptr_freeres element from struct.
9370 (pthread_functions): Remove .ptr_freeres from struct initializer.
9371 [SHARED] (nptl_freeres): Remove.
9372 * nptl/nptlfreeres.c: New file.
9373 * nptl/pthreadP.h
9374 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9375 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9376 attribute_hidden.
9377 (__free_stacks): Rename to...
9378 (__nptl_stacks_freeres): ...this.
9379 (__shm_directory_freeres): Declare.
9380 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9381 (__nptl_unwind_freeres): ...this.
9382 * resolv/res-close.c: Add comment.
9383 * resolv/resolv_conf.c: Include libc-symbols.h.
9384 * string/strerror_l.c: Include libc-symbols.h.
9385 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9386 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9387 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9388 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9389
9390 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9391
9392 * stdlib/tst-strfmon_l.c: Add tests for long double.
9393
9394 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9395
9396 [BZ #23208]
9397 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9398 * localedata/locales/dsb_DE: New file.
9399
9400 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9401
9402 [BZ #23140]
9403 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9404 genitive case).
9405 (alt_mon): New entry, import from CLDR (nominative case).
9406
9407 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9408
9409 [BZ #22996]
9410 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9411
9412 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9413
9414 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9415 Use vector registers.
9416
9417 * sysdeps/aarch64/multiarch/memmove_falkor.S
9418 (__memcpy_falkor): Use vector registers.
9419
9420 2018-06-29 Martin Sebor <msebor@redhat.com>
9421
9422 * manual/stdio.texi (Customizing Printf): Mention interaction
9423 with GCC built-ins.
9424
9425 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9426
9427 [BZ #23307]
9428 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9429 `st_value' is 0 if `st_shndx' is SHN_ABS.
9430 * elf/tst-absolute-zero.c: New file.
9431 * elf/tst-absolute-zero-lib.c: New file.
9432 * elf/tst-absolute-zero-lib.lds: New file.
9433 * elf/Makefile (tests): Add `tst-absolute-zero'.
9434 (modules-names): Add `tst-absolute-zero-lib'.
9435 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9436 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9437 ($(objpfx)tst-absolute-zero: New dependency.
9438
9439 2018-06-29 Zack Weinberg <zackw@panix.com>
9440
9441 * configure.ac: New command-line option --disable-crypt.
9442 Force --disable-nss-crypt when --disable-crypt is given, with a
9443 warning if it was explicitly enabled.
9444 * configure: Regenerate.
9445 * config.make.in: New boolean substitution variable $(build-crypt).
9446 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9447 when $(build-crypt).
9448 * manual/install.texi: Document --disable-crypt.
9449 * INSTALL: Regenerate.
9450
9451 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9452 which is never set.
9453 * conform/Makefile: Only include libcrypt.a in
9454 linknamespace-libs-xsi and linknamespace-libs-XPG4
9455 when $(build-crypt).
9456 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9457 USE_CRYPT to 1 when $(build-crypt).
9458 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9459 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9460 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9461
9462 2018-06-29 Zack Weinberg <zackw@panix.com>
9463
9464 * crypt/crypt.h, posix/unistd.h: Update comments and
9465 prototypes for crypt and crypt_r.
9466
9467 * manual/crypt.texi (Cryptographic Functions): New initial
9468 exposition.
9469 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9470 (Unpredictable Bytes): Improve initial exposition. Clarify error
9471 behavior of getentropy and getrandom.
9472 * manual/examples/genpass.c: Generate a salt using getentropy
9473 instead of the current time. Use hash $5$ (SHA-2-256).
9474 * manual/examples/testpass.c: Demonstrate validation against
9475 hashes generated with three different one-way functions.
9476
9477 * manual/intro.texi: crypt.texi does not need an overview
9478 anymore.
9479
9480 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9481 * manual/terminal.texi: Consistently refer to "passphrases"
9482 * instead of "passwords", and to the "user database" instead
9483 * of the "password database".
9484 * manual/users.texi: Similarly. Add notes about how actual
9485 passphrase hashes are now stored in the shadow database.
9486 Remove 20-year-old junk todo note.
9487
9488 2018-06-29 Zack Weinberg <zackw@panix.com>
9489
9490 * manual/crypt.texi: Use a normal top-level @node declaration.
9491 Move most of the introductory text to the 'crypt' section.
9492 Move the example programs below the @deftypefun for 'crypt_r'.
9493 Move the 'getpass' section...
9494 * manual/terminal.texi: ...here.
9495
9496 2018-06-29 Zack Weinberg <zackw@panix.com>
9497 Florian Weimer <fweimer@redhat.com>
9498
9499 * posix/unistd.h: Do not declare encrypt.
9500 (_XOPEN_CRYPT): Remove macro definition.
9501 (crypt): Declare only for _USE_MISC.
9502 * stdlib/stdlib.h: Do not declare setkey.
9503 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9504 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9505
9506 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9507 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9508 into compat symbols. Don't define initial_perm if it's not
9509 going to be used.
9510 * crypt/cert.c: Link explicitly with the expected versions for
9511 setkey and encrypt. If they are not available at all, mark
9512 the test as unsupported.
9513
9514 * sunrpc/des_crypt.c: Unconditionally block linkage with
9515 cbc_crypt and ecb_crypt for new binaries.
9516 * sunrpc/des_soft.c: Unconditionally block linkage with
9517 des_setparity for new binaries.
9518
9519 * manual/crypt.texi: Remove the entire "DES Encryption"
9520 section. Also remove the paragraph talking about FIPS 140-2
9521 from the introduction.
9522 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9523 of libgcrypt for "real" encryption, not DES.
9524 * manual/conf.texi (Constants for Sysconf): Mention that
9525 _XOPEN_CRYPT is no longer impelemented.
9526
9527 * conform/data/unistd.h-data: Remove crypt function declaration.
9528
9529 2018-06-29 Florian Weimer <fweimer@redhat.com>
9530
9531 [BZ #23351]
9532 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9533 (disallow_malloc_check): Remove variable.
9534 (__malloc_check_init): Adjust.
9535 (malloc_set_state): Update comment.
9536 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9537 declarations.
9538
9539 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9540
9541 [BZ #23140]
9542 * localedata/locales/ast_ES (mon): Rename to...
9543 (alt_mon): This.
9544 (mon): Import from CLDR (genitive case).
9545
9546 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9547 Jakub Sitnicki <jkbs@redhat.com>
9548
9549 [BZ #21812]
9550 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9551 on NLM_F_DUMP_INTR.
9552
9553 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9554
9555 * manual/llio.texi: Remove spurious space.
9556
9557 2018-06-28 Florian Weimer <fweimer@redhat.com>
9558
9559 [BZ #23349]
9560 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9561 _STRUCT_TIMESPEC.
9562
9563 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9564
9565 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9566 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9567 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9568 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9569 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9570 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9571 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9572
9573 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9574
9575 [BZ #23266]
9576 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9577 Copy and null-terminate entries that are not terminated, in
9578 addition to empty ones.
9579
9580 2018-06-27 Florian Weimer <fweimer@redhat.com>
9581
9582 [BZ #18023]
9583 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9584 (extend_alloca_account): Remove.
9585 * manual/stdio.texi (Variable Arguments Output): Update comment.
9586
9587 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9588
9589 * nptl/sockperf.c: Remove file.
9590
9591 2018-06-27 Florian Weimer <fweimer@redhat.com>
9592
9593 [BZ #18023]
9594 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9595 scratch_buffer instead of extend_alloca.
9596
9597 2018-06-27 Florian Weimer <fweimer@redhat.com>
9598
9599 [BZ #18023]
9600 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9601 scratch_buffer instead of extend_alloca. Update comments.
9602
9603 2018-06-27 Florian Weimer <fweimer@redhat.com>
9604
9605 [BZ #18023]
9606 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9607 instead of extend_alloca.
9608
9609 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9610
9611 [BZ #13888]
9612 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9613 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9614 /tmp.
9615 * scripts/test-installation.pl: Put temporary files in build
9616 directory, not /tmp.
9617 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9618 (CFLAGS-bug4.c): Likewise.
9619 (CFLAGS-bug5.c): Likewise.
9620 (CFLAGS-test-fseek.c): Likewise.
9621 (CFLAGS-test-popen.c): Likewise.
9622 (CFLAGS-test_rdwr.c): Likewise.
9623 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9624 /tmp.
9625 * stdio-common/bug4.c (main): Likewise.
9626 * stdio-common/bug5.c (main): Likewise.
9627 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9628 * stdio-common/test-popen.c (do_test): Likewise.
9629 * stdio-common/test_rdwr.c (main): Likewise.
9630
9631 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9632
9633 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9634 (sem_open): Set sem.newsem.pad to zero for valgrind.
9635
9636 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9637
9638 [BZ #20251]
9639 * NEWS: Mention fcntl64 addition.
9640 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9641 * login/utmp_file.c: Likewise.
9642 * sysdeps/posix/fdopendir.c: Likewise.
9643 * sysdeps/posix/opendir.c: Likewise.
9644 * sysdeps/unix/pt-fcntl.c: Likewise.
9645 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9646 __fcntl64_nocancel_adjusted): New prototype.
9647 (__fcntl_nocancel_adjusted): Remove prototype.
9648 * io/Makefile (routines): Add fcntl64.
9649 (CFLAGS-fcntl64.c): New rule.
9650 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9651 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9652 * io/fcntl.h (fcntl64): Add prototype and redirect if
9653 __USE_FILE_OFFSET64 is defined.
9654 * io/fcntl64.c: New file.
9655 * manual/llio.text: Add a note for which commands fcntl acts a
9656 cancellation point.
9657 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9658 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9659 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9660 New symbols.
9661 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9662 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9663 non-LFS case.
9664 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9665 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9666 to __fcntl64_nocancel.
9667 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9668 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9669 to __fcntl64_nocancel.
9670 * sysdeps/generic/not-cancel.h: Likewise.
9671 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9672 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9673 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9674 (fcntl64): New symbol.
9675 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9676 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9677 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9678 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9679 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9680 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9681 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9682 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9683 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9684 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9685 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9686 fcntl64): Likewise.
9687 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9688 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9689 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9690 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9691 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9692 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9693 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9694 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9695 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9697 Likewise.
9698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9699 Likewise.
9700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9701 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9702 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9703
9704 2018-06-26 Florian Weimer <fweimer@redhat.com>
9705
9706 Run thread shutdown functions in an explicit order.
9707 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9708 definition.
9709 (__libc_thread_freeres): Call thread shutdown functions
9710 explicitly.
9711 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9712 * include/string.h (__strerror_thread_freeres): Declare.
9713 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9714 arena_thread_freeres. No longer static. Remove thread shutdown
9715 hook registration.
9716 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9717 Declare.
9718 * resolv/res-close.c (__res_thread_freeres): Renamed from
9719 res_thread_freeres. No longer static. Remove thread shutdown
9720 hook registration.
9721 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9722 * resolv/resolv_conf.c (freeres): Remove incorrect section
9723 attribute and use libc_freeres_fn.
9724 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9725 strerror_thread_freeres. No longer static. Remove thread
9726 shutdown hook registration.
9727 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9728 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9729 shutdown hook registration.
9730 * Makerules (shlib.lds): Do not provide section boundary symbols
9731 for __libc_thread_subfreeres.
9732 * manual/memory.texi (Basic Allocation): Update comment.
9733
9734 2018-06-26 Florian Weimer <fweimer@redhat.com>
9735
9736 Remove always-defined _RPC_THREAD_SAFE_ macro.
9737 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9738 Do not define _RPC_THREAD_SAFE_.
9739 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9740 conditional.
9741 * sunrpc/clnt_perr.c: Likewise.
9742 * sunrpc/clnt_raw.c: Likewise.
9743 * sunrpc/clnt_simp.c: Likewise.
9744 * sunrpc/key_call.c: Likewise.
9745 * sunrpc/rpc_common.c: Likewise.
9746 * sunrpc/rpc_main.c: Likewise.
9747 * sunrpc/rpc_thread.c: Likewise.
9748 * sunrpc/svc.c: Likewise.
9749 * sunrpc/svc_raw.c: Likewise.
9750 * sunrpc/svc_simple.c: Likewise.
9751 * sumrpc/svcauth_des.c: Likewise.
9752
9753 2018-06-26 Florian Weimer <fweimer@redhat.com>
9754
9755 * libio/Makefile (tests-internal): Add tst-vtables,
9756 tst-vtables-interposed.
9757 * libio/tst-vtables.c: New file.
9758 * libio/tst-vtables-common.c: Likewise.
9759 * libio/tst-vtables-interposed.c: Likewise.
9760
9761 2018-06-26 Florian Weimer <fweimer@redhat.com>
9762
9763 * support/support_test_main.c (support_test_main): Only call
9764 setvbuf if not disables.
9765 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9766 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9767
9768 2018-06-26 Florian Weimer <fweimer@redhat.com>
9769
9770 [BZ #23313]
9771 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9772
9773 2018-06-25 Florian Weimer <fweimer@redhat.com>
9774
9775 [BZ #18023]
9776 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9777 Use struct scratch_buffer instead of extend_alloca.
9778
9779 2018-06-25 Florian Weimer <fweimer@redhat.com>
9780
9781 [BZ #18023]
9782 * nss/getent.c (initgroups_keys): Use dynarray instead of
9783 extend_alloca.
9784
9785 2018-06-25 Florian Weimer <fweimer@redhat.com>
9786
9787 [BZ #18023]
9788 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9789 Use struct scratch_buffer instead of extend_alloca.
9790
9791 2018-06-25 Florian Weimer <fweimer@redhat.com>
9792
9793 [BZ #18023]
9794 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9795 back to malloc directly, without stack allocations.
9796
9797 2018-06-25 Florian Weimer <fweimer@redhat.com>
9798
9799 [BZ #18023]
9800 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9801 of extend_alloca.
9802
9803 2018-06-25 Florian Weimer <fweimer@redhat.com>
9804
9805 [BZ #18023]
9806 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9807 of extend_alloca.
9808 * nscd/hstcache.c (addhstbyX): Likewise.
9809 * nscd/pwdcache.c (addpwbyX): Likewise.
9810 * nscd/servicescache.c (addservbyX): Likewise.
9811
9812 2018-06-25 Florian Weimer <fweimer@redhat.com>
9813
9814 [BZ #18023]
9815 * nscd/connections.c (read_cmdline): New function.
9816 (restart): Use it. Update comment.
9817
9818 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9819
9820 [BZ #23140]
9821 * localedata/locales/csb_PL (mon): Rename to...
9822 (alt_mon): This.
9823 (abmon): Rename to...
9824 (ab_alt_mon): This.
9825 (mon): Add with proper genitive forms, copy from Wikipedia.
9826 (abmon): Likewise.
9827
9828 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9829
9830 [BZ #19485]
9831 * localedata/locales/csb_PL (mon): Fix typos:
9832 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9833 (yesstr): Add, value is "jo".
9834 (nostr): Add, value is "nié".
9835
9836 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9837
9838 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9839 all log1p and significand functions on m680x0.
9840 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9841 of s_significand.c..
9842 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9843 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9844 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9845 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9846 s_log1p.c and include it..
9847
9848 2018-06-21 Vincent Chen <vincentc@andestech.com>
9849
9850 * elf/elf.h (R_NDS32_NONE): New define.
9851 (R_NDS32_32_RELA): Likewise.
9852 (R_NDS32_COPY): Likewise.
9853 (R_NDS32_GLOB_DAT): Likewise.
9854 (R_NDS32_JUMP_SLOT): Likewise.
9855 (R_NDS32_RELATIVE): Likewise.
9856 (R_NDS32_TLS_TPOFF): Likewise.
9857 (R_NDS32_TLS_DESC): Likewise.
9858
9859 2018-06-21 Mark Wielaard <mark@klomp.org>
9860
9861 * elf/elf.h (R_BPF_MAP_FD): Removed.
9862 (R_BPF_64_64, R_BPF_64_32): New.
9863
9864 2018-06-21 Florian Weimer <fweimer@redhat.com>
9865
9866 [BZ #23253]
9867 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9868 Renamed from libc_feholdsetround_ctx.
9869 (default_libc_feresetround_ctx): Renamed from
9870 libc_feresetround_ctx.
9871 (default_libc_feholdsetround_noex_ctx): Renamed from
9872 libc_feholdsetround_noex_ctx.
9873 (default_libc_feresetround_noex_ctx): Renamed from
9874 libc_feresetround_noex_ctx.
9875 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9876 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9877 forwardning to the old implementations under the new names.
9878 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9879 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9880 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9881 (libc_feresetround_ctx): Forward to default implements for i386
9882 and MATH_SET_BOTH_ROUNDING_MODES.
9883 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9884 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9885
9886 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9887
9888 * string/tst-cmp.c: Include <libc-diag.h>.
9889 (strncmp_max): Disable -Wstringop-overflow= around call to
9890 strncmp.
9891 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9892 strncasecmp.
9893
9894 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9895 (main): Disable -Wunused-value around call to strpbrk.
9896 * string/bug-strspn1.c: Include <libc-diag.h>.
9897 (main): Disable -Wunused-value around call to strspn.
9898
9899 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9900 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9901
9902 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9903 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9904
9905 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9906
9907 * math/Makefile (libm-calls): Move s_significandF to...
9908 (gen-libm-calls): ... here.
9909 * math/s_significand_template.c: New file.
9910 * math/s_significand.c: Removed.
9911 * math/s_significandf.c: Removed.
9912 * math/s_significandl.c: Removed.
9913 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9914 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9915
9916 * math/e_exp2_template.c (declare_mgen_finite_alias,
9917 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9918 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9919 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9920
9921 2018-06-20 Florian Weimer <fweimer@redhat.com>
9922
9923 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9924
9925 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9926
9927 [BZ #23280]
9928 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9929 floating-point number to strtod functions rather than possibly
9930 negating result of those functions.
9931 * stdio-common/tst-scanf-round.c: New file.
9932 * stdio-common/Makefile (tests): Add tst-scanf-round.
9933 ($(objpfx)tst-scanf-round): Depend on $(libm).
9934
9935 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9936
9937 * sysdeps/mach/hurd/localplt.data: Move to...
9938 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9939 R_386_GLOB_DAT like on Linux i386.
9940
9941 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9942
9943 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9944 (SHM_STAT_ANY): New macro.
9945 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9946 (SHM_STAT_ANY): Likewise.
9947 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9948 (SHM_STAT_ANY): Likewise.
9949 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9950 (SHM_STAT_ANY): Likewise.
9951 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9952 (SHM_STAT_ANY): Likewise.
9953 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9954 (SHM_STAT_ANY): Likewise.
9955 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9956 (SHM_STAT_ANY): Likewise.
9957 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9958 (SHM_STAT_ANY): Likewise.
9959 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9960 (SHM_STAT_ANY): Likewise.
9961 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9962 (SHM_STAT_ANY): Likewise.
9963 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9964 (SHM_STAT_ANY): Likewise.
9965 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9966 (SHM_STAT_ANY): Likewise.
9967
9968 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9969 (SEM_STAT_ANY): New macro.
9970 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9971 (SEM_STAT_ANY): Likewise.
9972 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9973 (SEM_STAT_ANY): Likewise.
9974 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9975 (SEM_STAT_ANY): Likewise.
9976 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9977 (SEM_STAT_ANY): Likewise.
9978 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9979 (SEM_STAT_ANY): Likewise.
9980 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9981 (SEM_STAT_ANY): Likewise.
9982 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9983 (SEM_STAT_ANY): Likewise.
9984 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9985 (SEM_STAT_ANY): Likewise.
9986 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9987 (SEM_STAT_ANY): Likewise.
9988
9989 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9990 (MSG_STAT_ANY): New macro.
9991 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9992 (MSG_STAT_ANY): Likewise.
9993 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9994 (MSG_STAT_ANY): Likewise.
9995 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9996 (MSG_STAT_ANY): Likewise.
9997 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9998 (MSG_STAT_ANY): Likewise.
9999 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10000 (MSG_STAT_ANY): Likewise.
10001 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10002 (MSG_STAT_ANY): Likewise.
10003 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10004 (MSG_STAT_ANY): Likewise.
10005 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10006 (MSG_STAT_ANY): Likewise.
10007 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10008 (MSG_STAT_ANY): Likewise.
10009
10010 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10011 (MAP_TYPE): Change value to 0x2b.
10012
10013 2018-06-18 Florian Weimer <fweimer@redhat.com>
10014
10015 [BZ #15722]
10016 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10017 socket with SOCK_CLOEXEC.
10018
10019 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10020
10021 [BZ #23303]
10022 * sysdeps/powerpc/powerpc64/le/Makefile
10023 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10024 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10025 (gnulib-tests): Also add $(f128-loader-link) for
10026 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10027
10028 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10029
10030 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10031 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10032 of sendfile.
10033 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10034 (sendfile64): New strong alias.
10035 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10036 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10037 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10038 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10039 attribute.
10040 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10041 ___pthread_get_cleanup_stack.
10042 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10043 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10044 * mach/shortcut.awk: Make syscall stubs include
10045 <mach-shortcuts-hidden.h> and add hidden definition.
10046 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10047 (__mach_msg): Add hidden prototype.
10048 * mach/msg.c: Include <mach.h>.
10049 (__mach_msg): Add hidden definition.
10050 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10051 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10052 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10053 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10054 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10055 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10056 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10057 prototype and definition.
10058 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10059 hidden target for _hurd_self_sigstate.
10060
10061 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10062
10063 [BZ #23007]
10064 * stdlib/tst-strtod-nan-sign-main.c: New file.
10065 * stdlib/tst-strtod-nan-sign.c: Likewise.
10066 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10067 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10068 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10069 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10070 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10071
10072 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10073
10074 [BZ #23007]
10075 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10076 appropriate sign.
10077
10078 2018-06-14 Florian Weimer <fweimer@redhat.com>
10079
10080 [BZ #23290]
10081 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10082 that the result stays within the ISO-8859-1 range.
10083 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10084 characters are defined in IBM273.
10085
10086 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10087
10088 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10089 __mach_task_self): Remove attribute_hidden.
10090
10091 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10092
10093 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10094 ignore -Wrestrict for one test.
10095
10096 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10097 Szabolcs Nagy <szabolcs.nagy@arm.com>
10098
10099 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10100
10101 2018-06-14 Florian Weimer <fweimer@redhat.com>
10102
10103 * scripts/update-abilist.sh: Accept empty list of files to patch.
10104
10105 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10106
10107 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10108 test-xfail-check-abi-libmachuser): Add.
10109 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10110 __libc_read and __libc_write to __read and __write.
10111 * sysdeps/hurd/include/hurd/port.h: New file.
10112 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10113 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10114 __thread_switch, __evc_wait): Move declarations to...
10115 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10116 attribute_hidden.
10117 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10118 use PLT to call _hurd_self_sigstate.
10119
10120 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10121
10122 [BZ #23279]
10123 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10124 MAX_EXP as overflowing.
10125 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10126 overflow flag.
10127 (round_str): Output also whether result overflows in each rounding
10128 mode.
10129 * stdlib/tst-strtod-round-data: Add more tests.
10130 * stdlib/tst-strtod-round-data.h: Regenerated.
10131 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10132 (TEST): Handle extra arguments for overflow flags.
10133 (struct test_overflow): New type.
10134 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10135 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10136 (test_in_one_mode): Take argument with overflow information.
10137 (do_test): Update calls to test_in_one_mode.
10138
10139 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10140
10141 * elf/dl-load (_dl_dst_substitute): Correct comment.
10142 (_dl_dst_count): Likewise.
10143
10144 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10145 lll_futex_timed_wait.
10146
10147 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10148
10149 [BZ #23277]
10150 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10151 attribute.
10152 * math/test-nan-const.c: New file.
10153 * math/Makefile (tests): Add test-nan-const.
10154 (CFLAGS-test-nan-const.c): New variable.
10155
10156 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10157
10158 * benchtests/scripts/compare_strings.py (process_results): Add
10159 funcs argument. Compare only functions which are selected.
10160 (main): Check if base function is among selected functions.
10161 Pass selected functions to process_results.
10162 (__main__): Add -f/--functions argument.
10163
10164 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10165 Hongbo Zhang <hongbo.zhang@linaro.org>
10166
10167 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10168 __memcpy_falkor for phecda core.
10169 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10170 __memmove_falkor for phecda core.
10171 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10172 __memset_falkor for phecda core.
10173 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10174 for phecda core.
10175 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10176 macro to identify phecda core.
10177
10178 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10179 Andreas Schwab <schwab@suse.de>
10180 Dmitry V. Levin <ldv@altlinux.org>
10181 Florian Weimer <fweimer@redhat.com>
10182
10183 [BZ #23102]
10184 [BZ #21942]
10185 [BZ #18018]
10186 [BZ #23259]
10187 CVE-2011-0536
10188 * elf/dl-dst.h: Remove DL_DST_COUNT.
10189 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10190 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10191 (is_dst): Comment. Support ELF gABI.
10192 (_dl_dst_count): Comment. Simplify and count DSTs.
10193 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10194 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10195 locals.
10196
10197 2018-06-12 Zack Weinberg <zackw@panix.com>
10198
10199 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10200 * sysdeps/unix/sysv/linux/dl-sysdep.c
10201 Include not-cancel.h. Use __close_nocancel instead of __close,
10202 __open64_nocancel instead of __open, __read_nocancel instead of
10203 __libc_read, and __write_nocancel instead of __libc_write.
10204
10205 * csu/check_fds.c (check_one_fd)
10206 * sysdeps/posix/fdopendir.c (__fdopendir)
10207 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10208 instead of __fcntl and/or __libc_fcntl.
10209
10210 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10211 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10212 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10213 Use __open64_nocancel instead of __open_nocancel.
10214
10215 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10216 hidden_proto declarations to the end and issue them if either
10217 IS_IN(libc) or IS_IN(rtld).
10218 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10219 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10220 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10221 read_nocancel, waitpid_nocancel, write_nocancel.
10222
10223 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10224 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10225 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10226
10227 * nptl/pt-fcntl.c: New file.
10228 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10229 (libpthread-routines): Add pt-fcntl.
10230 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10231 (__libc_fcntl): Remove attribute_hidden.
10232 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10233 __fcntl_nocancel_adjusted, not fcntl_common.
10234 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10235 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10236 to fcntl_nocancel.c.
10237 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10240 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10241
10242 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10243 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10244 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10245 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10246 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10247 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10248 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10249 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10250 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10251 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10252 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10253 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10254 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10255 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10256 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10257 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10258 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10259 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10260 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10261 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10262
10263 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10264 libpthread-routines.
10265 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10266 defines nothing.
10267
10268 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10269 __libc_read, and __write instead of __libc_write. Define
10270 __open64 in addition to __open.
10271
10272 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10273
10274 [BZ #23250]
10275 [BZ #10686]
10276 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10277 to _private_tm[3] and add __glibc_reserved2.
10278 Add _Static_assert of offset of __private_ss == 0x30.
10279 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10280 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10281
10282 2018-06-12 Florian Weimer <fweimer@redhat.com>
10283
10284 x86: Make strncmp usable from rtld.
10285 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10286 __strncmp_ia32 if in libc (and not in rtld).
10287 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10288 strncmp if not in libc (and not to __strncmp_sse2).
10289
10290 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10291
10292 [BZ #23140]
10293 * localedata/locales/gd_GB (mon): Rename to...
10294 (alt_mon): This.
10295 (mon): Import from CLDR (genitive case).
10296 * localedata/locales/hsb_DE (mon): Rename to...
10297 (alt_mon): This.
10298 (mon): Import from CLDR (genitive case).
10299 * localedata/locales/wa_BE (mon): Rename to...
10300 (alt_mon): This.
10301 (mon): Add, fill with the proper genitive forms, but CLDR data
10302 is incomplete; completed according to the comments in this file.
10303 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10304
10305 * localedata/locales/wa_BE (country_name): Reword
10306 "Beljike" -> "Beldjike".
10307
10308 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10309
10310 [BZ #23272]
10311 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10312 cases of non-finite arguments.
10313 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10314
10315 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10316
10317 [BZ #23174]
10318 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10319
10320 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10321
10322 [BZ #23264]
10323 * include/unistd.h (__execvpex): New prototype.
10324 * posix/Makefile (tests): Add tst-spawn4.
10325 (tests-internal): Add tst-spawn4-compat.
10326 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10327 * posix/tst-spawn4-compat.c: New file.
10328 * posix/tst-spawn4.c: Likewise.
10329 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10330 binaries as shell scripts.
10331 * sysdeps/posix/spawni.c (__spawni): Likewise.
10332
10333 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10334
10335 [BZ #23145]
10336 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10337 ($(all-built-dso:=.dynsym): New target.
10338 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10339 ($(objpfx)check-initfini.out): New target.
10340 (generated): Add check-initfini.out.
10341 * scripts/check-initfini.awk: New file.
10342 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10343 (_fini): Likewise.
10344 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10345 (_fini): Likewise.
10346 * sysdeps/arm/crti.S (_init): Mark as hidden.
10347 (_fini): Likewise.
10348 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10349 (_fini): Likewise.
10350 * sysdeps/i386/crti.S (_init): Mark as hidden.
10351 (_fini): Likewise.
10352 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10353 (_fini): Likewise.
10354 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10355 (_fini): Likewise.
10356 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10357 (_fini): Likewise.
10358 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10359 (_fini): Likewise.
10360 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10361 (_fini): Likewise.
10362 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10363 (_fini): Likewise.
10364 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10365 (_fini): Likewise.
10366 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10367 (_fini): Likewise.
10368 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10369 (_fini): Likewise.
10370 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10371 (_fini): Likewise.
10372 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10373 (_fini): Likewise.
10374 * sysdeps/sh/crti.S (_init): Mark as hidden.
10375 (_fini): Likewise.
10376 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10377 (_fini): Likewise.
10378 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10379 (_fini): Likewise.
10380
10381 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10382
10383 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10384 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10385 and TF redirection to KFtype and KF only when the default
10386 long double type is not the IEEE 128-bit floating point type.
10387
10388 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10389
10390 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10391 macro.
10392 (HWCAP_USCAT): Likewise.
10393 (HWCAP_ILRCPC): Likewise.
10394 (HWCAP_FLAGM): Likewise.
10395 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10396 Increase to 28.
10397 (_dl_aarch64_cap_flags): Add new flag names.
10398
10399 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10400 (MAP_FIXED_NOREPLACE): New macro.
10401 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10402 (MAP_FIXED_NOREPLACE): Likewise.
10403 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10404 (MAP_FIXED_NOREPLACE): Likewise.
10405 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10406 (MAP_FIXED_NOREPLACE): Likewise.
10407 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10408 (MAP_FIXED_NOREPLACE): Likewise.
10409 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10410 (MAP_FIXED_NOREPLACE): Likewise.
10411 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10412 (MAP_FIXED_NOREPLACE): Likewise.
10413 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10414 (MAP_FIXED_NOREPLACE): Likewise.
10415 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10416 (MAP_FIXED_NOREPLACE): Likewise.
10417 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10418 (MAP_FIXED_NOREPLACE): Likewise.
10419 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10420 (MAP_FIXED_NOREPLACE): Likewise.
10421 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10422 (MAP_FIXED_NOREPLACE): Likewise.
10423 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10424 (MAP_FIXED_NOREPLACE): Likewise.
10425 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10426 (MAP_FIXED_NOREPLACE): Likewise.
10427 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10428 (MAP_FIXED_NOREPLACE): Likewise.
10429
10430 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10431 version to 4.17.
10432
10433 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10434
10435 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10436 version to 4.17
10437
10438 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10439
10440 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10441 int.
10442 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10443
10444 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10445
10446 * benchtests/scripts/compare_string.py: (process_results) Catch
10447 exception in non-existent base_func and catch exception in
10448 non-existent attribute.
10449 (parse_file) Catch exception if input file does not exist.
10450
10451 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10452
10453 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10454 options to avoid diff calculation and omit header, respectively.
10455 (main): process --no-diff and --no-header
10456
10457 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10458 H.J. Lu <hongjiu.lu@intel.com>
10459
10460 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10461 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10462 wcsncmp-sse2.
10463 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10464 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10465 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10466 and __wcsncmp_sse2.
10467 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10468 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10469 AVX unaligned load is fast and vzeroupper is preferred.
10470 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10471 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10472 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10473 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10474 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10475 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10476 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10477 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10478 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10479 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10480 is undefined.
10481
10482 2018-06-01 Florian Weimer <fweimer@redhat.com>
10483
10484 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10485 configuring with --disable-multi-arch, building with
10486 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10487 Haswell-era CPU.
10488
10489 2018-06-01 Florian Weimer <fweimer@redhat.com>
10490
10491 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10492 results from building with “-march=x86-64 -mtune=generic
10493 -mfpmath=sse” and running on a Haswell-era CPU.
10494
10495 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10496
10497 [BZ #18473]
10498 * soft-fp/sqrttf2.c: Remove file.
10499 * soft-fp/sqrtdf2.c: Move to ....
10500 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10501 <shlib-compat.h>.
10502 (__sqrtdf2): Make conditional on
10503 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10504 symbol.
10505 * soft-fp/sqrtsf2.c: Move to ....
10506 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10507 <shlib-compat.h>.
10508 (__sqrtsf2): Make conditional on
10509 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10510 symbol.
10511 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10512 (gcc-double-routines): Remove sqrtdf2.
10513 (gcc-quad-routines): Remove sqrttf2.
10514 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10515 Do not filter out sqrtsf2 and sqrtdf2.
10516 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10517 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10518
10519 2018-06-01 Florian Weimer <fweimer@redhat.com>
10520
10521 * sysdeps/generic/libcidn.abilist: Remove file.
10522
10523 2018-06-01 Florian Weimer <fweimer@redhat.com>
10524
10525 [BZ #23236]
10526 * libio/strfile.h (struct _IO_str_fields): Rename members to
10527 discourage their use and add comment.
10528 (_IO_STR_DYNAMIC): Remove unused macro.
10529 * libio/strops.c (_IO_str_init_static_internal): Do not use
10530 callback pointers. Call malloc and free.
10531 (_IO_str_overflow): Do not use callback pointers. Call malloc
10532 and free.
10533 (enlarge_userbuf): Likewise.
10534 (_IO_str_finish): Call free.
10535 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10536 _allocate_buffer_unused.
10537 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10538 and free.
10539 (enlarge_userbuf): Likewise.
10540 (_IO_wstr_finish): Call free.
10541 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10542 _allocate_buffer_unused, _free_buffer_unused.
10543 * libio/memstream.c (__open_memstream): Likewise.
10544 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10545 * libio/wmemstream.c (open_wmemstream): Likewise.
10546
10547 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10548
10549 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10550 AMD Ryzen 7 1800X.
10551
10552 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10553
10554 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10555 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10556 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10557 New file.
10558 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10559 Likewise.
10560 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10561
10562 2018-05-29 Florian Weimer <fweimer@redhat.com>
10563
10564 * support/Makefile (libsupport-routines): Add
10565 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10566 xpthread_barrierattr_setpshared.
10567 * support/xpthread_barrierattr_destroy.c: New file.
10568 * support/xpthread_barrierattr_init.c: Likewise.
10569 * support/xpthread_barrierattr_setpshared.c: Likewise.
10570
10571 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10572
10573 [BZ #23206]
10574 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10575 _r_debug and update DT_DEBUG for debugger.
10576
10577 2018-05-29 Florian Weimer <fweimer@redhat.com>
10578
10579 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10580 (tst-strtod5i.out): Likewise.
10581
10582 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10583
10584 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10585 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10586 (sparc64-quad-routines): New variable. Moved from ....
10587 [$(subdir) = soft-fp] (sysdep_routines): Add
10588 $(sparc64-quad-routines). Moved from ....
10589 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10590 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10591 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10592 moved from ....
10593 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10594 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10595 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10596 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10597 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10598 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10599 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10600 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10601 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10602 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10603 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10604 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10605 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10606 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10607 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10608 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10609 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10610 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10611 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10612 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10613 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10614 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10615 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10616 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10617 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10618 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10619 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10620 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10621 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10622 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10623 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10624 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10625 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10626 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10627 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10628 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10629 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10630 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10631 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10632 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10633 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10634 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10635 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10636 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10637 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10638 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10639 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10640 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10641 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10642 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10643 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10644 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10645 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10646 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10647 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10648 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10649 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10650 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10651
10652 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10653 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10654 (sparc32-quad-routines): New variable. Moved from ....
10655 [$(subdir) = soft-fp] (sysdep_routines): Add
10656 $(sparc32-quad-routines). Moved from ....
10657 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10658 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10659 moved from ....
10660 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10661 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10662 * sysdeps/sparc/sparc32/q_add.c: ... here.
10663 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10664 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10665 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10666 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10667 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10668 * sysdeps/sparc/sparc32/q_div.c: ... here.
10669 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10670 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10671 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10672 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10673 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10674 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10675 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10676 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10677 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10678 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10679 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10680 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10681 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10682 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10683 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10684 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10685 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10686 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10687 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10688 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10689 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10690 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10691 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10692 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10693 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10694 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10695 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10696 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10697 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10698 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10699 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10700 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10701 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10702 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10703 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10704 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10705 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10706 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10707 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10708 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10709 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10710 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10711 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10712 * sysdeps/sparc/sparc32/q_util.c: ... here.
10713 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10714 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10715 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10716 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10717
10718 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10719 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10720
10721 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10722 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10723 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10724 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10725
10726 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10727
10728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10729 powerpc/soft-fp.
10730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10731 Likewise.
10732 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10733 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10734
10735 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10736
10737 [BZ #23171]
10738 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10739 double version.
10740
10741 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10742
10743 * sysdeps/sh/Implies: Remove sh/soft-fp.
10744 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10745 * sysdeps/sh/sfp-machine.h: ... here.
10746
10747 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10748
10749 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10750 (__mempcpy_erms): Skip zero length.
10751 (__memmove_erms): Likewise.
10752 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10753 (__memset_erms): Likewise.
10754
10755 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10756
10757 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10758 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10759 Add functions moved from ....
10760 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10761 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10762 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10763 from ....
10764 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10765 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10766 * sysdeps/alpha/e_sqrtl.c: ... here.
10767 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10768 * sysdeps/alpha/local-soft-fp.h: ... here.
10769 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10770 * sysdeps/alpha/ots_add.c: ... here.
10771 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10772 * sysdeps/alpha/ots_cmp.c: ... here.
10773 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10774 * sysdeps/alpha/ots_cmpe.c: ... here.
10775 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10776 * sysdeps/alpha/ots_cvtqux.c: ... here.
10777 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10778 * sysdeps/alpha/ots_cvtqx.c: ... here.
10779 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10780 * sysdeps/alpha/ots_cvttx.c: ... here.
10781 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10782 * sysdeps/alpha/ots_cvtxq.c: ... here.
10783 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10784 * sysdeps/alpha/ots_cvtxt.c: ... here.
10785 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10786 * sysdeps/alpha/ots_div.c: ... here.
10787 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10788 * sysdeps/alpha/ots_mul.c: ... here.
10789 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10790 * sysdeps/alpha/ots_nintxq.c: ... here.
10791 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10792 * sysdeps/alpha/ots_sub.c: ... here.
10793 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10794 * sysdeps/alpha/sfp-machine.h: ... here.
10795
10796 2018-05-23 Florian Weimer <fweimer@redhat.com>
10797
10798 [BZ #19728]
10799 [BZ #19729]
10800 [BZ #22247]
10801 CVE-2016-6261
10802 CVE-2016-6263
10803 CVE-2017-14062
10804 Switch to extern IDNA implementation (libidn2).
10805 * libidn: Remove subdirectory.
10806 * LICENSES: Do not mention licensing conditions for the removed
10807 libidn code.
10808 * config.h.in (HAVE_LIBIDN): Remove.
10809 * include/dlfcn.h (__libc_dlopen): Update comment.
10810 * include/idna.h: Remove file.
10811 * inet/Makefile (routines): Add idna.
10812 (tests-static, tests-internal): Add tst-idna_name_classify.
10813 (LOCALES): Generate locales for tests.
10814 (tst-idna_name_classify.out): Depend on generated locales.
10815 * inet/idna_name_classify.c: New file.
10816 * inet/tst-idna_name_classify.c: Likewise.
10817 * inet/net-internal.h (__idna_to_dns_encoding)
10818 (__idna_from_dns_encoding): Declare.
10819 * inet/net-internal.h (enum idna_name_classification): Define.
10820 (__idna_name_classify): Declare.
10821 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10822 __idna_from_dns_encoding.
10823 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10824 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10825 name as a fallback in case of encoding errors.
10826 (getnameinfo): Use DEPRECATED_NI_IDN.
10827 * inet/idna.c: New file.
10828 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10829 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10830 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10831 (modules-names): Add tst-no-libidn2.
10832 (extra-test-objs): Add tst-no-libidn2.os.
10833 (LDFLAGS-tst-no-libidn2.so): Set soname.
10834 (LOCALES): Set, and generate locales.
10835 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10836 (tst-resolv-ai_idn-latin1): Likewise.
10837 (tst-resolv-ai_idn-nolibidn2): Likewise.
10838 (tst-resolv-ai_idn.out): Depend on locales.
10839 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10840 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10841 tst-no-libidn2.so.
10842 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10843 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10844 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10845 * resolv/tst-resolv-ai_idn.c: New file.
10846 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10847 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10848 * resolv/tst-no-libidn2.c: Likewise.
10849 * support/support_format_addrinfo.c (format_ai_flags): Do not
10850 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10851 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10852 (gaih_inet): Call __idna_to_dns_encoding and
10853 __idna_from_dns_encoding, and use the original (punycode) name if
10854 __idna_from_dns_encoding fails due to an encoding error.
10855 (getaddrinfo): Use DEPRECATED_AI_IDN.
10856 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10857 * sysdeps/unix/inet/configure: Remove file.
10858 * sysdeps/unix/inet/configure.ac: Likewise.
10859
10860 2018-05-23 Florian Weimer <fweimer@redhat.com>
10861
10862 Implement allocate_once.
10863 * include/allocate_once.h: New file.
10864 * misc/allocate_once.c: Likewise.
10865 * misc/tst-allocate_once.c: Likewise.
10866 * misc/Makefile (routines): Add allocate_once.
10867 (tests-internal): Add tst-allocate_once.
10868 (generated): Add tst-allocate_once.mtrace,
10869 tst-allocate_once-mem.out.
10870 (tests-special): Add tst-allocate_once-mem.out.
10871 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10872 (tst-allocate_once-mem.out): Call mtrace.
10873 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10874
10875 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10876
10877 [BZ #23196]
10878 * string/test-memcpy.c (do_test1): New function.
10879 (test_main): Call it.
10880
10881 2018-05-23 Andreas Schwab <schwab@suse.de>
10882
10883 [BZ #23196]
10884 CVE-2018-11237
10885 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10886 (L(preloop_large)): Save initial destination pointer in %r11 and
10887 use it instead of %rax after the loop.
10888 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10889
10890 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10891
10892 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10893 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10894 -I../soft-fp. Moved from ....
10895 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10896 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10897 * sysdeps/aarch64/e_sqrtl.c: ... here.
10898 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10899 * sysdeps/aarch64/sfp-machine.h: ... here.
10900
10901 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10902 -Wmaybe-uninitialized around access to fq[0].
10903 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10904 Likewise.
10905
10906 [BZ #18471]
10907 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10908 aliases for non-libc case of versioned symbols.
10909 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10910 (llseek): Define as compat symbol if
10911 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10912 with link warning.
10913 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10914 Make into a compat symbol, disabled for minimum symbol version
10915 GLIBC_2.28 and later.
10916 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10917
10918 2018-05-22 Florian Weimer <fweimer@redhat.com>
10919
10920 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10921 not add -mpreferred-stack-boundary=4.
10922 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10923 (stack-align-test-flags): Likewise.
10924 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10925 Likewise.
10926 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10927 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10928 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10929 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10930 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10931 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10932 (CFLAGS-tst-align2.c): Likewise.
10933
10934 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10937 (index_arch_Prefer_FSRM): Likewise.
10938 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10939 Also check Prefer_FSRM.
10940 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10941 Also return OPTIMIZE (erms) for Prefer_FSRM.
10942
10943 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10944
10945 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10946 (index_cpu_FSRM): Likewise.
10947 (reg_FSRM): Likewise.
10948
10949 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10950
10951 * math/gen-tgmath-tests.py: Import sys.
10952 (Tests.__init__): Initialize macros_seen.
10953 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10954 if requested to do so for this macro.
10955 (Tests.add_all_tests): Take argument for macro for which to
10956 generate tests.
10957 (Tests.check_macro_list): New function.
10958 (main): Handle check-list argument and argument specifying macro
10959 for which to generate tests.
10960 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10961 [PYTHON] (tgmath3-macro-tests): Likewise.
10962 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10963 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10964 not test-tgmath3.c.
10965 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10966 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10967 to CFLAGS.
10968 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10969 [PYTHON] ($(foreach
10970 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10971 rule.
10972 [PYTHON] (tests-special): Add
10973 $(objpfx)test-tgmath3-macro-list.out.
10974 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10975
10976 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10977 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10978 later.
10979
10980 [BZ #22639]
10981 * time/tzset.c (SECSPERDAY): Cast to time_t.
10982 * time/tst-y2039.c: New file.
10983 * time/Makefile (tests): Add tst-y2039.
10984
10985 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10986
10987 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10988 (PREFETCH_ONE_SET): Remove duplicate line.
10989
10990 2018-05-17 Florian Weimer <fweimer@redhat.com>
10991
10992 * sysdeps/generic/math-type-macros-double.h: Include
10993 <math-nan-payload-double.h> after <libm-alias-double.h>.
10994 * sysdeps/generic/math-type-macros-float.h: Include
10995 <math-nan-payload-float.h> after <libm-alias-float.h>.
10996 * sysdeps/generic/math-type-macros-float128.h: Include
10997 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10998 * sysdeps/generic/math-type-macros-ldouble.h: Include
10999 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11000
11001 2018-05-17 Andreas Schwab <schwab@suse.de>
11002
11003 * resolv/res_send.c (__res_context_send): Don't set errno when
11004 returing error after malloc failure.
11005
11006 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11007
11008 * nptl/allocatestack.c (allocate_stack): Remove the
11009 !__ASSUME_PRIVATE_FUTEX paths.
11010 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11011 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11012 Likewise.
11013 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11014 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11015 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11016 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11017 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11018 !__ASSUME_PRIVATE_FUTEX path.
11019 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11020 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11021 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11022 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11023 !__ASSUME_PRIVATE_FUTEX macros.
11024 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11025 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11026 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11027 * sysdeps/unix/sysv/linux/kernel-features.h
11028 (__ASSUME_PRIVATE_FUTEX): Removed.
11029
11030 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11031
11032 * math/Makefile (libm-narrow-fns): Add div.
11033 (libm-test-funcs-narrow): Likewise.
11034 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11035 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11036 * math/gen-auto-libm-tests.c (test_functions): Add div.
11037 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11038 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11039 (NARROW_DIV_TRIVIAL): Likewise.
11040 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11041 macro.
11042 (__ddivl): Likewise.
11043 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11044 ddiv.
11045 (CFLAGS-nldbl-ddiv.c): New variable.
11046 (CFLAGS-nldbl-fdiv.c): Likewise.
11047 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11048 __nldbl_ddivl.
11049 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11050 prototype.
11051 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11052 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11053 * math/auto-libm-test-in: Add tests of div.
11054 * math/auto-libm-test-out-narrow-div: New generated file.
11055 * math/libm-test-narrow-div.inc: New file.
11056 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11057 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11058 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11059 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11060 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11061 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11062 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11063 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11064 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11065 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11066 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11067 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11068 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11069 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11070 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11071 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11072 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11073 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11074 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11075 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11092 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11093 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11094 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11095 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11096 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11100
11101 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11102
11103 [BZ #23178]
11104 * nscd/nscd-client.h (sendfileall): Remove prototype.
11105 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11106 (handle_request): Use writeall instead of sendfileall.
11107 * nscd/aicache.c (addhstaiX): Likewise.
11108 * nscd/grpcache.c (cache_addgr): Likewise.
11109 * nscd/hstcache.c (cache_addhst): Likewise.
11110 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11111 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11112 * nscd/pwdcache.c (cache_addpw): Likewise.
11113 * nscd/servicescache.c (cache_addserv): Likewise.
11114 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11115 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11116 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11117 Remove define.
11118
11119 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11120
11121 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11122 Include <string/strncat.c>.
11123 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11124 alias.
11125 (__GI___strncat): New hidden alias.
11126
11127 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11128
11129 * sysdeps/mips/mips32/libm-test-ulps: Update.
11130 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11131
11132 2018-05-16 Florian Weimer <fweimer@redhat.com>
11133
11134 * support/Makefile (libsupport-routines): Add support_quote_blob,
11135 support_test_compare_blob.
11136 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11137 * support/check.h (TEST_COMPARE_BLOB): Define.
11138 (support_test_compare_blob): Declare.
11139 * support/support.h (support_quote_blob): Declare.
11140 * support/support_quote_blob.c: New file.
11141 * support/support_test_compare_blob.c: Likewise.
11142 * support/tst-support_quote_blob.c: Likewise.
11143 * support/tst-test_compare_blob.c: Likewise.
11144
11145 2018-05-16 Florian Weimer <fweimer@redhat.com>
11146
11147 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11148 of <strtod_nan_double.h>.
11149 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11150 instead of SET_MANTISSA.
11151 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11152 of include <strtod_nan_float.h>.
11153 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11154 instead of <strtod_nan_ldouble.h>.
11155 * stdlib/strtod_nan_double.h: Move to ...
11156 * sysdeps/generic/math-nan-payload-double.h: ... here.
11157 (FLOAT): Remove definition.
11158 (SET_MANTISSA): Rename to ...
11159 (SET_NAN_PAYLOAD): ... this.
11160 * stdlib/strtod_nan_float.h: Move to ...
11161 * sysdeps/generic/math-nan-payload-float.h: ... here.
11162 (FLOAT): Remove definition.
11163 (SET_MANTISSA): Rename to ...
11164 (SET_NAN_PAYLOAD): ... this.
11165 * sysdeps/generic/math-type-macros-double.h: Include
11166 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11167 instead of <math-svid-compat.h>.
11168 * sysdeps/generic/math-type-macros-float.h: Include
11169 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11170 instead of <math-svid-compat.h>.
11171 * sysdeps/generic/math-type-macros-float128.h: Include
11172 <math-nan-payload-float128.h>.
11173 * sysdeps/generic/math-type-macros-ldouble.h: Include
11174 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11175 instead of <math-svid-compat.h>.
11176 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11177 check for definition.
11178 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11179 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11180 Include <ieee754_float128.h>.
11181 (FLOAT): Remove definition.
11182 (SET_MANTISSA): Rename to ...
11183 (SET_NAN_PAYLOAD): ... this.
11184 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11185 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11186 Do not include <float128_private.h>.
11187 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11188 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11189 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11190 (FLOAT): Remove definition.
11191 (SET_MANTISSA): Rename to ...
11192 (SET_NAN_PAYLOAD): ... this.
11193 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11194 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11195 (FLOAT): Remove definition.
11196 (SET_MANTISSA): Rename to ...
11197 (SET_NAN_PAYLOAD): ... this.
11198 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11199 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11200 (FLOAT): Remove definition.
11201 (SET_MANTISSA): Rename to ...
11202 (SET_NAN_PAYLOAD): ... this.
11203 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11204 of "../stdlib/strtod_nan_double.h".
11205 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11206 of "../stdlib/strtod_nan_float.h".
11207 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11208 instead of "../stdlib/strtod_nan_ldouble.h".
11209 * manual/arith.texi (Parsing of Floats): Adjust comment.
11210
11211 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11212
11213 * math/Makefile (libm-narrow-fns): Add mul.
11214 (libm-test-funcs-narrow): Likewise.
11215 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11216 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11217 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11218 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11219 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11220 (NARROW_MUL_TRIVIAL): Likewise.
11221 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11222 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11223 macro.
11224 (__dmull): Likewise.
11225 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11226 dmul.
11227 (CFLAGS-nldbl-dmul.c): New variable.
11228 (CFLAGS-nldbl-fmul.c): Likewise.
11229 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11230 __nldbl_dmull.
11231 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11232 prototype.
11233 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11234 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11235 * math/auto-libm-test-in: Add tests of mul.
11236 * math/auto-libm-test-out-narrow-mul: New generated file.
11237 * math/libm-test-narrow-mul.inc: New file.
11238 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11239 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11240 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11241 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11242 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11243 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11244 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11245 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11246 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11247 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11248 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11249 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11250 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11251 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11252 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11253 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11254 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11255 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11256 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11257 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11258 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11259 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11260 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11261 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11262 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11263 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11264 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11265 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11266 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11267 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11268 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11269 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11270 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11271 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11273 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11274 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11275 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11276 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11277 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11278 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11279 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11280 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11281 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11282
11283 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11284
11285 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11286 with *%eax in call.
11287
11288 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11289
11290 * sysdeps/i386/ldsodefs.h: Removed.
11291 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11292 * sysdeps/x86/ldsodefs.h: This.
11293 (La_i86_regs): New.
11294 (La_i86_retval): Likewise.
11295 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11296 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11297
11298 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11299
11300 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11301 unnecessary testl.
11302
11303 2018-05-13 Alan Modra <amodra@gmail.com>
11304
11305 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11306 R_PARISC_TLS_DTPOFF32 reloc addend.
11307
11308 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11309
11310 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11311 * math/math.h: Restrict the prototype definition for the functions
11312 issignaling(_Float128) and iszero(_Float128); and template
11313 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11314 __HAVE_FLOAT128_UNLIKE_LDBL.
11315 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11316 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11317 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11318 __f128() constants; define the type _Float128 as long double;
11319 and reuse long double in __CFLOAT128.
11320
11321 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11322
11323 * sysdeps/generic/math_private.h: Do not include
11324 <math-barriers.h>.
11325 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11326 <math_private.h>.
11327 * math/fromfp.h: Include <math-barriers.h>.
11328 * math/math-narrow.h: Likewise.
11329 * math/s_nextafter.c: Likewise.
11330 * math/s_nexttowardf.c: Likewise.
11331 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11332 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11333 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11334 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11335 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11336 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11337 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11338 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11339 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11340 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11341 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11342 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11343 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11344 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11345 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11346 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11347 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11348 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11349 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11350 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11351 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11352 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11353 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11354 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11355 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11356 * sysdeps/ieee754/k_standardl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11362 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11369 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11370 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11371 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11372 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11373 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11374 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11375 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11376 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11377 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11378 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11379
11380 2018-05-11 Florian Weimer <fweimer@redhat.com>
11381
11382 Use 64-bit epoch values in the time zone file parser.
11383 * include/time.h (internal_time_t): Define.
11384 (__tzfile_compute): Use it.
11385 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11386 member.
11387 (transitions): Switch to internal_time_t.
11388 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11389 types.
11390 (__tzfile_compute): Use internal_time_t for timer argument. Check
11391 for truncation before calling __offtime.
11392
11393 2018-05-11 Florian Weimer <fweimer@redhat.com>
11394
11395 [BZ #23166]
11396 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11397 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11398 Likewise.
11399 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11400 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11401 export without --enable-obsolete-rpc.
11402 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11403 symbol. This should not have been exported, ever.
11404
11405 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11406
11407 [BZ #23152]
11408 * localedata/locales/gd_GB (abmon): Fix typo in May:
11409 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11410
11411 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11412
11413 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11414 Use multiple registers to copy data in loop tail.
11415
11416 * sysdeps/aarch64/multiarch/memmove_falkor.S
11417 (__memmove_falkor): Use multiple registers to move data in
11418 loop tail.
11419
11420 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11421
11422 * math/math-underflow.h: New file.
11423 * sysdeps/generic/math_private.h: Do not include <float.h>.
11424 (fabs_tg): Remove macro. Moved to math-underflow.h.
11425 (min_of_type_f): Likewise.
11426 (min_of_type_): Likewise.
11427 (min_of_type_l): Likewise.
11428 (min_of_type_f128): Likewise.
11429 (min_of_type): Likewise.
11430 (math_check_force_underflow): Likewise.
11431 (math_check_force_underflow_nonneg): Likewise.
11432 (math_check_force_underflow_complex): Likewise.
11433 * math/e_exp2_template.c: Include <math-underflow.h>.
11434 * math/k_casinh_template.c: Likewise.
11435 * math/s_catan_template.c: Likewise.
11436 * math/s_catanh_template.c: Likewise.
11437 * math/s_ccosh_template.c: Likewise.
11438 * math/s_cexp_template.c: Likewise.
11439 * math/s_clog10_template.c: Likewise.
11440 * math/s_clog_template.c: Likewise.
11441 * math/s_csin_template.c: Likewise.
11442 * math/s_csinh_template.c: Likewise.
11443 * math/s_csqrt_template.c: Likewise.
11444 * math/s_ctan_template.c: Likewise.
11445 * math/s_ctanh_template.c: Likewise.
11446 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11447 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11448 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11449 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11450 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11451 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11452 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11453 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11454 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11455 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11456 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11457 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11458 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11459 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11460 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11461 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11462 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11463 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11464 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11465 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11466 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11467 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11468 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11469 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11470 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11471 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11472 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11473 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11474 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11475 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11476 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11477 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11478 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11479 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11480 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11481 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11482 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11488 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11490 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11491 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11493 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11495 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11497 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11498 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11499 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11500 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11501 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11504 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11505 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11506 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11507 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11508 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11509 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11510 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11511 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11512 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11513 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11514 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11515 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11516 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11517 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11518 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11519 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11520 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11521 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11522 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11523 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11524 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11525 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11526 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11527 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11528 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11529 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11530
11531 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11532
11533 * sysdeps/generic/math-barriers.h: New file.
11534 * sysdeps/generic/math_private.h [!math_opt_barrier]
11535 (math_opt_barrier): Move to math-barriers.h.
11536 [!math_opt_barrier] (math_force_eval): Likewise.
11537 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11538 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11539 math-barriers.h.
11540 (math_force_eval): Likewise.
11541 * sysdeps/alpha/fpu/math-barriers.h: New file.
11542 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11543 math-barriers.h.
11544 (math_force_eval): Likewise.
11545 * sysdeps/x86/fpu/math-barriers.h: New file.
11546 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11547 math-barriers.h.
11548 (math_force_eval): Likewise.
11549 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11550 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11551 multiple-include guard for rename.
11552 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11553 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11554 math-barriers.h.
11555 (math_force_eval): Likewise.
11556
11557 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11558
11559 [BZ #22786]
11560 CVE-2018-11236
11561 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11562 computation.
11563 * stdlib/Makefile (test-bz22786): New test.
11564 * stdlib/test-bz22786.c: New test.
11565
11566 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11567
11568 * include/math-narrow-eval.h: New file. Contents moved from ....
11569 * sysdeps/generic/math_private.h: ... here.
11570 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11571 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11572 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11573 * stdlib/strtod_l.c: Likewise.
11574 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11575 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11576 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11577 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11578 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11579 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11580 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11581 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11582 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11583 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11584 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11585 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11586 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11587 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11588 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11589 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11590 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11591 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11592 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11593 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11594 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11595 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11596 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11597 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11598 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11599 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11600 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11601 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11602 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11603
11604 2018-05-08 Andreas Schwab <schwab@suse.de>
11605
11606 * sysdeps/nptl/internaltypes.h: Fix comment.
11607
11608 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11609
11610 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11611 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11612 hidden.
11613
11614 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11615
11616 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11617 of I into loop header.
11618 * benchtests/bench-memmove-walk.c
11619 (test_main): Likewise.
11620
11621 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11622
11623 Revert:
11624 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11625 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11626
11627 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11628
11629 [BZ #20419]
11630 * elf/dl-load.c (open_verify): Fix stack overflow.
11631 * elf/Makefile (tst-big-note): New test.
11632 * elf/tst-big-note-lib.S: New.
11633 * elf/tst-big-note.c: New.
11634
11635 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11636
11637 * scripts/abilist.awk: Ignore absolute symbols.
11638 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11639 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11640 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11641 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11642 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11643 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11644 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11645 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11646 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11647 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11648 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11649 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11730 Likewise.
11731 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11744 Likewise.
11745 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11772 Likewise.
11773 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11793 Likewise.
11794 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11826 Likewise.
11827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11832 Likewise.
11833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11834 Likewise.
11835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11837 Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11840 Likewise.
11841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11842 Likewise.
11843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11846 Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11848 Likewise.
11849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11850 Likewise.
11851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11855 Likewise.
11856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11862 Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11865 Likewise.
11866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11867 Likewise.
11868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11869 Likewise.
11870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11871 Likewise.
11872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11875 Likewise.
11876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11877 Likewise.
11878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11879 Likewise.
11880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11883 Likewise.
11884 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11898 Likewise.
11899 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11911 Likewise.
11912 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11937 Likewise.
11938 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11951 Likewise.
11952 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11990
11991 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11992
11993 [BZ #23137]
11994 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11995 Use atomic_load_acquire to load __tid.
11996
11997 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11998
11999 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12000 Restore the pointer into %rdx, after syscall and use %rdx,
12001 instead of %rsi, to restore context.
12002
12003 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12004
12005 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12006 Pop the pointer into %rdx after syscall and use %rdx, instead
12007 of %rsi, to restore context.
12008
12009 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12010
12011 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12012 handlers after setjmp.
12013 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12014 defined.
12015 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12016 <libc-pointer-arith.h>.
12017 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12018 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12019 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12020 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12021 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12022 * sysdeps/x86/__longjmp_cancel.S: New file.
12023 * sysdeps/x86/longjmp.c: Likewise.
12024 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12025
12026 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12027
12028 * NEWS: Add ustat.h deprecation entry.
12029 * bits/ustat.h: Remove file.
12030 * misc/sys/ustat.h: Likewise.
12031 * misc/ustat.h: Likewise.
12032 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12033 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12034 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12035 compatibility mode.
12036 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12037 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12038 generic Linux implementation.
12039
12040 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12041
12042 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12043 * math/w_expl_compat.c: Likewise.
12044 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12045
12046 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12047
12048 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12049
12050 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12051
12052 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12053 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12054 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12055 Remove.
12056 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12057 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12058 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12059 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12060 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12061 and SYSCALL_LL64.
12062
12063 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12064
12065 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12066
12067 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12068 * math/w_asin_template.c: Likewise.
12069 * math/w_atanh_template.c: Likewise.
12070
12071 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12072
12073 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12074 to powerpc/powerpc64/be for big-endian.
12075 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12076 little-endian.
12077
12078 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12079 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12110
12111 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12112 adjusted to imply powerpc64 and older processors on powerpc64/be.
12113 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12136 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12138 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12139 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12140 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12141 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12142 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12143 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12144
12145 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12146 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12147 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12148 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12149
12150 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12151 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12152 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12153 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12154
12155 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12156 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12157 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12158 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12159 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12160 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12161 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12162 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12163 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12164 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12165 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12166
12167 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12168 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12169 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12170 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12171 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12172 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12173 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12174 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12175 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12176 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12178
12179 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12180 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12182 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12183 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12184 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12185 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12186 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12187 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12188 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12189 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12190 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12191
12192 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12193 and adjusted to imply olders processors.
12194 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12195 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12196 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12197 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12198 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12199 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12200 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12201 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12202 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12203 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12204 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12205
12206 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12207 powerpc64/le.
12208 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12210
12211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12212 powerpc64le.
12213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12215
12216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12217 powerpc64/be.
12218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12221
12222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12223 powerpc64 and adjusted.
12224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12227 Likewise.
12228
12229 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12230
12231 * sysdeps/tile: Remove.
12232 * sysdeps/unix/sysv/linux/tile: Likewise.
12233 * README (tilegx-*-linux-gnu): Remove from list of supported
12234 configurations.
12235 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12236 contribution of support for generic Linux kernel syscall
12237 interface.
12238 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12239 tilegx configurations.
12240 (Config.install_linux_headers): Do not handle tile.
12241 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12242 in comment.
12243 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12244 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12245 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12246 conditional undefine and redefine.
12247 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12248 in comment.
12249 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12250 conditional undefine and redefine.
12251
12252 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12253
12254 * signal/tst-sigaction.c: New file to test BZ #23069.
12255 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12256
12257 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12258
12259 [BZ #22766]
12260 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12261 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12262 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12263 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12264
12265 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12266
12267 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12268 _DIRENT_MATCHES_DIRENT64 is not defined.
12269 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12270 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12271 is defined.
12272 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12273 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12274
12275 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12276
12277 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12278 version to GCC 8 branch.
12279
12280 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12281
12282 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12283 (check_no_hidden): Use type of original function when declaring
12284 alias.
12285
12286 * sysdeps/unix/sysv/linux/sys/ptrace.h
12287 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12288 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12289 (struct __ptrace_seccomp_metadata): New type.
12290 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12291 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12292 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12293 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12294 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12295 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12296 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12297 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12298 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12299 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12300 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12301 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12302 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12303 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12304 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12305 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12306
12307 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12308
12309 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12310 defined.
12311 * dirent/versionsort.c (versionsort): Likewise.
12312 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12313 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12314 * dirent/versionsort64.c (versionsort64): Likewise.
12315 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12316 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12317 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12318 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12319 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12320 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12321 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12322 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12323 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12324 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12327 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12328 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12329
12330 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12331
12332 * elf/elf.h (NT_PPC_PKEY): New macro.
12333
12334 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12335
12336 [BZ #23094]
12337 * localedata/locales/hr_HR: fix thousands_sep and
12338 mon_thousands_sep
12339
12340 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12341
12342 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12343 (XTABS): Define to TAB3.
12344
12345 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12346
12347 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12348
12349 * dirent/scandir-tail-common.c: New file.
12350 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12351 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12352 * dirent/scandir.c: Use scandir-tail-common.c.
12353 * dirent/scandirat.c: Likewise.
12354 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12355 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12356 if _DIRENT_MATCHES_DIRENT64 is defined.
12357 * dirent/scandirat64.c (scandirat64): Likewise.
12358 * include/dirent.h (__scandir_tail): Only define iff
12359 _DIRENT_MATCHES_DIRENT64 is not defined.
12360 (__scandir64_tail): Define regardless.
12361 (__scandirat, scandirat64): Remove libc_hidden_proto.
12362 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12363 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12365 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12366 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12367 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12368 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12369
12370 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12371
12372 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12373 New macro.
12374 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12375 Increase to 24.
12376 (_dl_aarch64_cap_flags): Add asimdfhm.
12377
12378 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12379
12380 * sysdeps/nios2/libm-test-ulps: Update.
12381
12382 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12383
12384 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12385 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12386
12387 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12388 requirements.
12389 (_DIRENT_MATCHES_DIRENT64): Undef
12390 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12391 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12392 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12393 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12394 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12395 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12396 use getdents64 syscalls as base.
12397 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12398 symbol if required.
12399 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12400 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12401 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12402 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12403 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12404 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12405 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12406 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12407 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12408 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12409 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12410
12411 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12412
12413 * scripts/test_printers_common.py (init_test): Disable lock elision.
12414
12415 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12416
12417 * math/test-tgmath.c (count_double, count_float,
12418 count_ldouble, count_cdouble, count_cfloat,
12419 count_cldouble): Use volatile int.
12420
12421 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12422
12423 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12424 (conformtest-xfail-conds): Add i386-gnu.
12425 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12426 i386-gnu.
12427 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12428 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12429 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12430 msqid_ds.msg_lrpid): Likewise.
12431 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12432 Likewise.
12433 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12434 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12435 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12436 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12437 unsigned int.
12438 (struct statvfs64): Likewise.
12439 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12440 Likewise.
12441 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12442 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12443 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12444 instead of wait_queue.
12445 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12446 instead of vm_area_struct.
12447 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12448 struct sched_param definition to it.
12449 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12450 * bits/types/struct_sched_param.h: New file.
12451 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12452 <bits/types/struct_sched_param.h> instead of <sched.h>.
12453 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12454 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12455 generic version but include <bits/pthreadtypes.h> to make struct
12456 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12457 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12458 non-compliant.
12459 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12460 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12461 [__USE_XOPEN] (OFDEL): New macro.
12462 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12463 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12464 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12465 prototypes.
12466 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12467 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12468 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12469 non-compliant.
12470 * sysdeps/i386/sys/ucontext.h: Likewise.
12471 * sysdeps/m68k/sys/ucontext.h: Likewise.
12472 * sysdeps/mips/sys/ucontext.h: Likewise.
12473 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12474 * sysdeps/mach/hurd/i386/Makefile
12475 (test-xfail-POSIX/fcntl.h/conform): Add.
12476 (test-xfail-POSIX/signal.h/conform): Add.
12477 (test-xfail-POSIX/semaphore.h/conform): Add.
12478 (test-xfail-POSIX/regex.h/conform): Add.
12479 (test-xfail-POSIX/aio.h/conform): Add.
12480 (test-xfail-POSIX/mqueue.h/conform): Add.
12481 (test-xfail-POSIX/sys/types.h/conform): Add.
12482 (test-xfail-UNIX98/fcntl.h/conform): Add.
12483 (test-xfail-UNIX98/netdb.h/conform): Add.
12484 (test-xfail-UNIX98/signal.h/conform): Add.
12485 (test-xfail-UNIX98/semaphore.h/conform): Add.
12486 (test-xfail-UNIX98/regex.h/conform): Add.
12487 (test-xfail-UNIX98/aio.h/conform): Add.
12488 (test-xfail-UNIX98/ftw.h/conform): Add.
12489 (test-xfail-UNIX98/mqueue.h/conform): Add.
12490 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12491 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12492 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12493 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12494 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12495 (test-xfail-UNIX98/sys/types.h/conform): Add.
12496 (test-xfail-UNIX98/stdlib.h/conform): Add.
12497 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12498 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12499 (test-xfail-POSIX2008/netdb.h/conform): Add.
12500 (test-xfail-POSIX2008/signal.h/conform): Add.
12501 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12502 (test-xfail-POSIX2008/regex.h/conform): Add.
12503 (test-xfail-POSIX2008/aio.h/conform): Add.
12504 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12505 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12506 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12507 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12508 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12509 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12510 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12511 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12512 (test-xfail-XOPEN2K/signal.h/conform): Add.
12513 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12514 (test-xfail-XOPEN2K/regex.h/conform): Add.
12515 (test-xfail-XOPEN2K/aio.h/conform): Add.
12516 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12517 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12518 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12519 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12520 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12521 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12522 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12523 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12524 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12525 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12526 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12527 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12528 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12529 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12530 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12531 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12532 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12533 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12534 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12535 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12536 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12537 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12538 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12539 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12540 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12541 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12542 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12543 i386-gnu.
12544 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12545 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12546
12547 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12548
12549 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12550 --enable-obsolete for powerpc-linux-gnuspe.
12551
12552 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12553
12554 * conform/data/sys/un.h-data: Allow sun_ prefix.
12555 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12556 prototypes.
12557 * sysdeps/mach/include/mach.h: Likewise.
12558 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12559 * sysdeps/mach/include/mach_error.h: Likewise.
12560
12561 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12562
12563 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12564 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12565 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12566 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12567
12568 2018-04-16 Andreas Schwab <schwab@suse.de>
12569
12570 [BZ #19527]
12571 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12572
12573 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12574
12575 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12576 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12577
12578 2018-04-12 DJ Delorie <dj@redhat.com>
12579
12580 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12581 version to 4.16.
12582
12583 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12584
12585 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12586 (struct kernel_sigaction): Use the same definition on 31bit as is used
12587 on 64bit.
12588
12589 2018-04-09 Florian Weimer <fweimer@redhat.com>
12590
12591 [BZ #23037]
12592 * resolv/res_send.c (send_dg): Use designated initializers instead
12593 of assignment to zero-initialize other fields of struct mmsghdr.
12594
12595 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12596
12597 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12598 __READDIR_ALIAS): Undefine after usage.
12599 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12600 __READDIR_R_ALIAS): Likewise.
12601 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12602 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12603 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12604 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12605 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12606 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12607 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12608 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12609 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12610 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12611 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12612 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12613 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12614 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12615 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12616 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12617 * sysdeps/unix/sysv/linux/readdir.c: New file.
12618 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12619 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12620 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12621
12622 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12623
12624 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12625
12626 * manual/charset.texi (Converting a Character): Fix typo.
12627
12628 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12629
12630 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12631
12632 * sysdeps/arm/libm-test-ulps: Update.
12633
12634 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12635 as base implementation.
12636 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12637 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12638 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12639 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12640 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12641 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12642 remove unrequired definitions and update comments.
12643 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12644 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12645 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12646 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12647 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12648 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12649 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12650 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12651 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12652 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12653 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12654 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12655 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12656 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12657 and RESET_SA_RESTORER hooks.
12658
12659 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12660
12661 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12662
12663 2018-04-05 Florian Weimer <fweimer@redhat.com>
12664
12665 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12666 integer overflow, memory leak on error, and indeterminate errno
12667 value. Add a null wide character to terminate the result string.
12668 * manual/charset.texi (Converting a Character): Mention embedded
12669 null bytes in the mbrtowc input string. Explain what happens in
12670 the -2 result case. Do not claim that mbrtowc is simple or
12671 obvious to use. Adjust the description of the code example. Use
12672 @code, not @var, for concrete variables.
12673
12674 2018-04-05 Florian Weimer <fweimer@redhat.com>
12675
12676 * manual/examples/mbstouwcs.c: New file.
12677 * manual/charset.texi (Converting a Character): Include it.
12678
12679 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12680
12681 * include/dirent.h (dirfd): Add hidden proto.
12682 * dirent/dirfd.c (dirfd): Add hidden def.
12683 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12684 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12685
12686 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12687
12688 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12689 sin, cos and sincos to 1 ULP.
12690
12691 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12692
12693 [BZ #19818]
12694 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12695 symbols.
12696 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12697 * elf/tst-absolute-sym.c: New file.
12698 * elf/tst-absolute-sym-lib.c: New file.
12699 * elf/tst-absolute-sym-lib.lds: New file.
12700 * elf/Makefile (tests): Add `tst-absolute-sym'.
12701 (modules-names): Add `tst-absolute-sym-lib'.
12702 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12703 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12704 ($(objpfx)tst-absolute-sym): New dependency.
12705
12706 [BZ #19818]
12707 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12708 parameter.
12709 (SYMBOL_ADDRESS): New macro.
12710 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12711 SYMBOL_ADDRESS for symbol address calculation.
12712 * elf/dl-runtime.c (_dl_fixup): Likewise.
12713 (_dl_profile_fixup): Likewise.
12714 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12715 * elf/rtld.c (dl_main): Likewise.
12716 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12717 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12718 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12719 (elf_machine_rela): Likewise.
12720 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12721 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12722 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12723 (elf_machine_rela): Likewise.
12724 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12725 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12726 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12727 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12728 Likewise.
12729 (elf_machine_reloc): Likewise.
12730 (elf_machine_got_rel): Likewise.
12731 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12732 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12733 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12734 Likewise.
12735 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12736 Likewise.
12737 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12738 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12739 Likewise.
12740 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12741 Likewise.
12742 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12743 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12744 Likewise.
12745 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12746 Likewise.
12747 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12748 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12749
12750 2018-04-04 Zack Weinberg <zackw@panix.com>
12751
12752 * sysdeps/generic/internal-signals.h: Include signal.h,
12753 sigsetops.h, and stdbool.h.
12754 (__libc_signal_block_all): Actually block all signals.
12755 (__libc_signal_block_app): Likewise.
12756 (__libc_signal_restore_set): Actually restore the signal mask.
12757
12758 2018-04-04 Florian Weimer <fweimer@redhat.com>
12759
12760 inet: Actually build and run tst-deadline.
12761 * inet/Makefile (tests-internal): Add tst-deadline and do not
12762 overwrite the variable.
12763 (tests-static-internal): Remove variable.
12764
12765 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12766
12767 [BZ #22947]
12768 * bits/uio-ext.h (RWF_APPEND): New.
12769 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12770 * manual/llio.texi: Document RWF_APPEND.
12771 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12772 (RWF_SUPPORTED): Add RWF_APPEND.
12773
12774 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12775
12776 [BZ #22391]
12777 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12778 check for internal nptl signals.
12779 * nptl/sigaction.c (__sigaction): Likewise.
12780 * signal/sigaddset.c (sigaddset): Likewise.
12781 * signal/sigdelset.c (sigdelset): Likewise.
12782 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12783 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12784 value.
12785 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12786 to filter out internal nptl signals.
12787 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12788 also check realtime signals using standard macros.
12789 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12790 __is_internal_signal, __libc_signal_block_all,
12791 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12792 * sysdeps/nptl/sigfillset.c: Remove file.
12793 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12794 Change return to bool.
12795 (__clear_internal_signals): Remove SIGTIMER clean since it is
12796 equal to SIGCANEL on Linux.
12797 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12798 signal set was constructed using standard functions.
12799
12800 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12801
12802 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12803 ifname is too long.
12804 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12805 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12806 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12807 hidden def.
12808 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12809 * signal/sigaddset.c: Include <sigsetopts.h>.
12810 * signal/sigdelset.c: Likewise.
12811
12812 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12813
12814 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12815 (__cos): Likewise.
12816 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12817 logic as sin and cos.
12818
12819 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12820
12821 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12822 inputs. Return correct sign.
12823 (do_sincos): Remove small input check before do_sin, let do_sin set
12824 the sign.
12825 (__sin): Likewise.
12826 (__cos): Likewise.
12827
12828 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12829
12830 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12831 (do_cos_slow): Likewise.
12832 (do_sin_slow): Likewise.
12833 (reduce_and_compute): Likewise.
12834 (slow): Likewise.
12835 (slow1): Likewise.
12836 (slow2): Likewise.
12837 (sloww): Likewise.
12838 (sloww1): Likewise.
12839 (sloww2): Likewise.
12840 (bslow): Likewise.
12841 (bslow1): Likewise.
12842 (bslow2): Likewise.
12843 (cslow2): Likewise.
12844
12845 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12846
12847 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12848 (do_cos): Remove corp parameter and calculations.
12849 (do_sin): Likewise.
12850 (do_sincos): Remove cor variable.
12851 (__sin): Use do_sincos for huge inputs.
12852 (__cos): Likewise.
12853 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12854 (reduce_and_compute_sincos): Remove unused function.
12855
12856 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12857
12858 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12859 reduce_sincos, improve accuracy to 136 bits.
12860 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12861 (__sin): Use improved reduction and simplified do_sincos calculation.
12862 (__cos): Likewise.
12863 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12864
12865 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12866
12867 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12868 (do_sincos_2): Likewise.
12869 (__sin): Remove middle range reduction case.
12870 (__cos): Likewise.
12871 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12872 reduction case.
12873
12874 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12875
12876 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12877 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12878 inputs.
12879 (__cos): Likewise.
12880 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12881
12882 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12883
12884 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12885 version to 4.16
12886
12887 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12888
12889 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12890 Remove definitions.
12891 (opendir_oflags): Use O_DIRECTORY regardless.
12892 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12893 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12894
12895 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12896
12897 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12898 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12899 macros.
12900 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12901 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12902 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12903 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12904 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12905 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12906
12907 * htl/Makefile: Bump licence to LGPL 2.1+.
12908 * htl/alloca_cutoff.c: Likewise.
12909 * htl/cthreads-compat.c: Likewise.
12910 * htl/lockfile.c: Likewise.
12911 * htl/pt-alloc.c: Likewise.
12912 * htl/pt-cancel.c: Likewise.
12913 * htl/pt-cleanup.c: Likewise.
12914 * htl/pt-create.c: Likewise.
12915 * htl/pt-dealloc.c: Likewise.
12916 * htl/pt-detach.c: Likewise.
12917 * htl/pt-exit.c: Likewise.
12918 * htl/pt-getattr.c: Likewise.
12919 * htl/pt-initialize.c: Likewise.
12920 * htl/pt-internal.h: Likewise.
12921 * htl/pt-join.c: Likewise.
12922 * htl/pt-self.c: Likewise.
12923 * htl/pt-setcancelstate.c: Likewise.
12924 * htl/pt-setcanceltype.c: Likewise.
12925 * htl/pt-sigmask.c: Likewise.
12926 * htl/pt-spin-inlines.c: Likewise.
12927 * htl/pt-testcancel.c: Likewise.
12928 * htl/pt-yield.c: Likewise.
12929 * htl/tests/test-1.c: Likewise.
12930 * htl/tests/test-10.c: Likewise.
12931 * htl/tests/test-11.c: Likewise.
12932 * htl/tests/test-12.c: Likewise.
12933 * htl/tests/test-13.c: Likewise.
12934 * htl/tests/test-14.c: Likewise.
12935 * htl/tests/test-15.c: Likewise.
12936 * htl/tests/test-16.c: Likewise.
12937 * htl/tests/test-17.c: Likewise.
12938 * htl/tests/test-2.c: Likewise.
12939 * htl/tests/test-3.c: Likewise.
12940 * htl/tests/test-4.c: Likewise.
12941 * htl/tests/test-5.c: Likewise.
12942 * htl/tests/test-6.c: Likewise.
12943 * htl/tests/test-7.c: Likewise.
12944 * htl/tests/test-8.c: Likewise.
12945 * htl/tests/test-9.c: Likewise.
12946 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12947 * sysdeps/htl/bits/cancelation.h: Likewise.
12948 * sysdeps/htl/bits/pthread-np.h: Likewise.
12949 * sysdeps/htl/bits/pthread.h: Likewise.
12950 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12951 * sysdeps/htl/bits/semaphore.h: Likewise.
12952 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12953 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12954 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12955 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12956 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12957 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12958 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12959 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12960 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12961 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12962 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12963 * sysdeps/htl/old_pt-atfork.c: Likewise.
12964 * sysdeps/htl/pt-atfork.c: Likewise.
12965 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12966 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12967 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12968 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12969 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12970 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12971 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12972 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12973 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12974 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12975 * sysdeps/htl/pt-attr-init.c: Likewise.
12976 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12977 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12978 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12979 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12980 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12981 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12982 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12983 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12984 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12985 * sysdeps/htl/pt-attr.c: Likewise.
12986 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12987 * sysdeps/htl/pt-barrier-init.c: Likewise.
12988 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12989 * sysdeps/htl/pt-barrier.c: Likewise.
12990 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12991 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12992 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12993 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12994 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12995 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12996 * sysdeps/htl/pt-cond-init.c: Likewise.
12997 * sysdeps/htl/pt-cond-signal.c: Likewise.
12998 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12999 * sysdeps/htl/pt-cond-wait.c: Likewise.
13000 * sysdeps/htl/pt-cond.c: Likewise.
13001 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13002 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13003 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13004 * sysdeps/htl/pt-condattr-init.c: Likewise.
13005 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13006 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13007 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13008 * sysdeps/htl/pt-equal.c: Likewise.
13009 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13010 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13011 * sysdeps/htl/pt-getschedparam.c: Likewise.
13012 * sysdeps/htl/pt-getspecific.c: Likewise.
13013 * sysdeps/htl/pt-init-specific.c: Likewise.
13014 * sysdeps/htl/pt-key-create.c: Likewise.
13015 * sysdeps/htl/pt-key-delete.c: Likewise.
13016 * sysdeps/htl/pt-key.h: Likewise.
13017 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13018 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13019 * sysdeps/htl/pt-mutex-init.c: Likewise.
13020 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13021 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13022 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13023 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13024 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13025 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13026 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13027 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13028 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13029 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13030 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13031 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13032 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13033 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13034 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13035 * sysdeps/htl/pt-mutexattr.c: Likewise.
13036 * sysdeps/htl/pt-once.c: Likewise.
13037 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13038 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13039 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13040 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13041 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13042 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13043 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13044 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13045 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13046 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13047 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13048 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13049 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13050 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13051 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13052 * sysdeps/htl/pt-setschedparam.c: Likewise.
13053 * sysdeps/htl/pt-setschedprio.c: Likewise.
13054 * sysdeps/htl/pt-setspecific.c: Likewise.
13055 * sysdeps/htl/pt-spin.c: Likewise.
13056 * sysdeps/htl/pt-startup.c: Likewise.
13057 * sysdeps/htl/pthread.h: Likewise.
13058 * sysdeps/htl/sem-close.c: Likewise.
13059 * sysdeps/htl/sem-destroy.c: Likewise.
13060 * sysdeps/htl/sem-getvalue.c: Likewise.
13061 * sysdeps/htl/sem-init.c: Likewise.
13062 * sysdeps/htl/sem-open.c: Likewise.
13063 * sysdeps/htl/sem-post.c: Likewise.
13064 * sysdeps/htl/sem-timedwait.c: Likewise.
13065 * sysdeps/htl/sem-trywait.c: Likewise.
13066 * sysdeps/htl/sem-unlink.c: Likewise.
13067 * sysdeps/htl/sem-wait.c: Likewise.
13068 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13069 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13070 * sysdeps/mach/htl/pt-block.c: Likewise.
13071 * sysdeps/mach/htl/pt-spin.c: Likewise.
13072 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13073 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13074 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13075 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13076 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13077 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13078 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13079 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13080 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13081 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13082 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13083 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13084 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13085 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13087 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13088 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13089 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13090 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13091 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13092 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13093 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13094 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13095 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13096 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13097 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13098 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13099 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13100 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13101 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13102 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13103 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13104 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13105 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13106 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13107 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13108 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13109 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13110 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13111 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13112 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13113 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13114 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13115
13116 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13117 * README: Remove the mention of out-of-tree patches needed for
13118 GNU/Hurd.
13119
13120 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13121 (UTIME_NOW, UTIME_OMIT): Define macros.
13122
13123 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13124 instead of pthread_detach.
13125 (__cthread_fork): Call __pthread_create instead of pthread_create.
13126 (__cthread_keycreate): Call __pthread_key_create instead of
13127 pthread_key_create.
13128 (__cthread_getspecific): Call __pthread_getspecific instead of
13129 pthread_getspecific.
13130 (__cthread_setspecific): Call __pthread_setspecific instead of
13131 pthread_setspecific.
13132 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13133 __pthread_mutex_unlock instead of pthread_mutex_lock and
13134 pthread_mutex_unlock.
13135 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13136 ___pthread_get_cleanup_stack.
13137 (__pthread_get_cleanup_stack): New strong alias.
13138 * htl/pt-create.c: Include <pthreadP.h>.
13139 (entry_point): Call __pthread_exit instead of pthread_exit.
13140 (pthread_create): Rename to __pthread_create.
13141 (pthread_create): New strong alias.
13142 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13143 (pthread_detach): New strong alias.
13144 (__pthread_detach): Call __pthread_cond_broadcast instead of
13145 pthread_cond_broadcast.
13146 * htl/pt-exit.c: Include <pthreadP.h>.
13147 (__pthread_exit): Call __pthread_setcancelstate and
13148 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13149 __pthread_get_cleanup_stack.
13150 * htl/pt-testcancel.c: Include <pthreadP.h>.
13151 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13152 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13153 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13154 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13155 pthread_attr_getstacksize.
13156 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13157 Rename to __pthread_attr_getstackaddr.
13158 (pthread_attr_getstackaddr): New strong alias.
13159 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13160 Rename to __pthread_attr_getstacksize.
13161 (pthread_attr_getstacksize): New strong alias.
13162 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13163 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13164 (pthread_attr_setstack): New strong alias.
13165 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13166 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13167 pthread_attr_getstacksize, pthread_attr_setstacksize and
13168 pthread_attr_setstackaddr.
13169 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13170 Rename to __pthread_attr_setstackaddr.
13171 (pthread_attr_setstackaddr): New strong alias.
13172 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13173 Rename to __pthread_attr_setstacksize.
13174 (pthread_attr_setstacksize): New strong alias.
13175 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13176 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13177 pthread_exit.
13178 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13179 (__pthread_key_create): New hidden def.
13180 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13181 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13182 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13183 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13184 __pthread_setspecific, __pthread_setcancelstate,
13185 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13186 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13187 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13188 declarations.
13189 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13190 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13191 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13192 (pthread_attr_setstackaddr): New strong alias.
13193 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13194 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13195 (pthread_attr_setstacksize): New strong alias.
13196 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13197 (call_exit): Call __pthread_exit instead of pthread_exit.
13198 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13199 (_pthread_mutex_init): New hidden definition.
13200 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13201 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13202 instead of pthread_attr_init and pthread_attr_setstack.
13203
13204 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13205 __vm_deallocate instead of vm_allocate and vm_deallocate.
13206 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13207 setenv.
13208 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13209 of geteuid.
13210 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13211 strdup.
13212 * hurd/siginfo.c: Include <libioP.h>.
13213 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13214 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13215 munmap.
13216 * mach/devstream.c: Include <libioP.h>.
13217 (dealloc_ref): Call __mach_port_deallocate instead of
13218 mach_port_deallocate.
13219 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13220 Call __mach_port_deallocate instead of mach_port_deallocate.
13221 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13222 pathconf.
13223 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13224 munmap.
13225 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13226 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13227 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13228 of munmap.
13229 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13230 of close.
13231 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13232 instead of sysconf.
13233 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13234 __clock_gettime instead of clock_gettime.
13235 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13236 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13237 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13238 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13239 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13240 tcgetattr.
13241 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13242 __clock_gettime and __nanosleep instead of clock_gettime and
13243 nanosleep.
13244 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13245 __hurd_catch_signal.
13246 (hurd_catch_signal): New strong alias.
13247 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13248 __hurd_catch_signal instead of hurd_catch_signal.
13249 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13250 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13251 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13252 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13253 (_hurd_thread_sigstate): Add hidden def.
13254 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13255 mutex_unlock.
13256 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13257 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13258 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13259 __hurd_file_name_path_lookup.
13260 (hurd_file_name_path_lookup): New strong alias.
13261 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13262 hurd_file_name_path_lookup.
13263 * mach/errstring.c (mach_error_type): Add hidden def.
13264 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13265 * mach/mutex-init.c (__mutex_init): Add hidden def.
13266 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13267 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13268 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13269 * sysdeps/mach/hurd/getcwd.c
13270 (_hurd_canonicalize_directory_name_internal): Rename to
13271 __hurd_canonicalize_directory_name_internal.
13272 (_hurd_canonicalize_directory_name_internal): New strong alias.
13273 (__canonicalize_directory_name_internal, __getcwd): Call
13274 __hurd_canonicalize_directory_name_internal instead of
13275 _hurd_canonicalize_directory_name_internal.
13276 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13277 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13278 hidden defs.
13279 * sysdeps/hurd/include/hurd.h: New file.
13280 * sysdeps/hurd/include/hurd/fd.h: New file.
13281 * sysdeps/hurd/include/hurd/signal.h: New file.
13282 * sysdeps/mach/include/lock-intern.h: New file.
13283 * sysdeps/mach/include/mach.h: New file.
13284 * sysdeps/mach/include/mach/mig_support.h: New file.
13285 * sysdeps/mach/include/mach_error.h: New file.
13286 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13287 prototype.
13288 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13289 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13290 _HEADER_H_HIDDEN_DEF macro.
13291 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13292 _hurd_fd_error_signal): Add hidden prototype.
13293 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13294 hidden def.
13295 * libio/iolibio.h (_IO_puts): New hidden prototype.
13296 * libio/ioputs.c (_IO_puts): New hidden def.
13297 * sysdeps/mach/hurd/localplt.data: New file.
13298
13299 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13300 Amos Jeffries <squid3@treenet.co.nz>
13301 David Michael <fedora.dm0@gmail.com>
13302 Marco Gerards <marco@gnu.org>
13303 Marcus Brinkmann <marcus@gnu.org>
13304 Neal H. Walfield <neal@gnu.org>
13305 Pino Toscano <toscano.pino@tiscali.it>
13306 Richard Braun <rbraun@sceen.net>
13307 Roland McGrath <roland@gnu.org>
13308 Samuel Thibault <samuel.thibault@ens-lyon.org>
13309 Thomas DiModica <ricinwich@yahoo.com>
13310 Thomas Schwinge <tschwinge@gnu.org>
13311
13312 * htl: New directory.
13313 * sysdeps/htl: New directory.
13314 * sysdeps/hurd/htl: New directory.
13315 * sysdeps/i386/htl: New directory.
13316 * sysdeps/mach/htl: New directory.
13317 * sysdeps/mach/hurd/htl: New directory.
13318 * sysdeps/mach/hurd/i386/htl: New directory.
13319 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13320 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13321 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13322
13323 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13324
13325 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13326 signals in thread created for runing timers.
13327
13328 2018-04-01 Florian Weimer <fweimer@redhat.com>
13329
13330 * support/support_format_addrinfo.c (support_format_addrinfo):
13331 Include unknown error number in formatted result.
13332
13333 2018-03-29 Florian Weimer <fweimer@redhat.com>
13334
13335 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13336 capture SIGBUS.
13337
13338 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13339
13340 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13341 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13342 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13343 (__ASSUME_CLONE_BACKWARDS): Define.
13344
13345 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13346
13347 [BZ #23024]
13348 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13349 early when linux sentinel value is set.
13350
13351 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13352
13353 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13354
13355 2018-03-27 Andreas Schwab <schwab@suse.de>
13356
13357 [BZ #23005]
13358 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13359 allocation of private copy of nsaddr_list fails.
13360
13361 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13362
13363 [BZ #16552]
13364 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13365 * sysdeps/unix/sysv/linux/umount.c: ... here.
13366 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13367 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13368 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13369 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13371 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13372 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13373
13374 2018-03-26 Andreas Schwab <schwab@suse.de>
13375
13376 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13377 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13378 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13379 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13380 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13381 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13382 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13383 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13384 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13385 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13386 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13387 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13388 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13389 (R_RISCV_NUM): Define.
13390
13391 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13392
13393 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13394 TLS declaration of errno.
13395 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13396 __libc_setup_tls.
13397 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13398 (ARCH_SETUP_TLS): Likewise.
13399 * sysdeps/mach/hurd/libc-start.h: New file copied from
13400 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13401 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13402 instead of __libc_setup_tls.
13403 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13404 __libc_setup_tls before initializing libpthread and running _hurd_init
13405 which starts the signal thread.
13406 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13407 Declare function.
13408 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13409
13410 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13411
13412 [BZ #22998]
13413 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13414 after it is defined.
13415
13416 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13417 Max Horn <max@quendi.de>
13418
13419 [BZ #22644]
13420 CVE-2017-18269
13421 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13422 branch conditions.
13423 * string/test-memmove.c (do_test2): New testcase.
13424
13425 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13426
13427 * sysdeps/generic/frame.h: Remove file.
13428 * sysdeps/arm/frame.h: Likewise.
13429 * sysdeps/hppa/frame.h: Likewise.
13430 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13431 macro.
13432 (GET_FRAME): Likewise.
13433 (GET_STACK): Likewise.
13434 (CALL_SIGHANDLER): Likewise.
13435 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13436 Likewise.
13437 (GET_FRAME): Likewise.
13438 (GET_STACK): Likewise.
13439 (CALL_SIGHANDLER): Likewise.
13440 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13441 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13442 (GET_FRAME): Likewise.
13443 (GET_STACK): Likewise.
13444 (CALL_SIGHANDLER): Likewise.
13445 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13446 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13447 (GET_FRAME): Likewise.
13448 (GET_STACK): Likewise.
13449 (ADVANCE_STACK_FRAME): Likewise.
13450 (CALL_SIGHANDLER): Likewise.
13451 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13452 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13453 (GET_FRAME): Likewise.
13454 (GET_STACK): Likewise.
13455 (CALL_SIGHANDLER): Likewise.
13456 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13457 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13458 (GET_FRAME): Likewise.
13459 (GET_STACK): Likewise.
13460 (CALL_SIGHANDLER): Likewise.
13461 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13462 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13463 (GET_FRAME): Likewise.
13464 (GET_STACK): Likewise.
13465 (CALL_SIGHANDLER): Likewise.
13466 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13467 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13468 (GET_FRAME): Likewise.
13469 (GET_STACK): Likewise.
13470 (CALL_SIGHANDLER): Likewise.
13471 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13472 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13473 (GET_FRAME): Likewise.
13474 (GET_STACK): Likewise.
13475 (CALL_SIGHANDLER): Likewise.
13476 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13477 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13478 (GET_FRAME): Likewise.
13479 (GET_STACK): Likewise.
13480 (CALL_SIGHANDLER): Likewise.
13481 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13482 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13483 (GET_FRAME): Likewise.
13484 (GET_STACK): Likewise.
13485 (CALL_SIGHANDLER): Likewise.
13486 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13487 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13488 (GET_FRAME): Likewise.
13489 (GET_STACK): Likewise.
13490 (CALL_SIGHANDLER): Likewise.
13491 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13492 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13493 (GET_FRAME): Likewise.
13494 (GET_STACK): Likewise.
13495 (CALL_SIGHANDLER): Likewise.
13496 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13497 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13498 (FIRST_FRAME_POINTER): Likewise.
13499 (ADVANCE_STACK_FRAME): Likewise.
13500 (GET_STACK): Likewise.
13501 (GET_FRAME): Likewise.
13502 (CALL_SIGHANDLER): Likewise.
13503 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13504 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13505 (ADVANCE_STACK_FRAME): Likewise.
13506 (GET_STACK): Likewise.
13507 (GET_FRAME): Likewise.
13508 (CALL_SIGHANDLER): Likewise.
13509 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13510 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13511 (GET_FRAME): Likewise.
13512 (GET_STACK): Likewise.
13513 (CALL_SIGHANDLER): Likewise.
13514 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13515 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13516 (GET_FRAME): Likewise.
13517 (GET_STACK): Likewise.
13518 (CALL_SIGHANDLER): Likewise.
13519
13520 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13521
13522 * sysdeps/x86_64/backtrace.c: Move to ....
13523 * debug/backtrace.c: ... here.
13524 * sysdeps/aarch64/backtrace.c: Remove file.
13525 * sysdeps/alpha/backtrace.c: Likewise.
13526 * sysdeps/hppa/backtrace.c: Likewise.
13527 * sysdeps/ia64/backtrace.c: Likewise.
13528 * sysdeps/mips/backtrace.c: Likewise.
13529 * sysdeps/nios2/backtrace.c: Likewise.
13530 * sysdeps/riscv/backtrace.c: Likewise.
13531 * sysdeps/sh/backtrace.c: Likewise.
13532 * sysdeps/tile/backtrace.c: Likewise.
13533
13534 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13535
13536 [BZ #22987]
13537 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13538 function.
13539 (fdimf): Likewise.
13540 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13541
13542 [BZ #17343]
13543 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13544 possibly overflowing computations.
13545
13546 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13547
13548 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13549 values from Linux-specific section now that it is in the GNU section.
13550 * sysdeps/gnu/errlist.c: Regenerate.
13551
13552 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13553
13554 * math/Makefile (libm-narrow-fns): Add sub.
13555 (libm-test-funcs-narrow): Likewise.
13556 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13557 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13558 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13559 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13560 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13561 (NARROW_SUB_TRIVIAL): Likewise.
13562 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13563 macro.
13564 (__dsubl): Likewise.
13565 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13566 dsub.
13567 (CFLAGS-nldbl-dsub.c): New variable.
13568 (CFLAGS-nldbl-fsub.c): Likewise.
13569 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13570 __nldbl_dsubl.
13571 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13572 prototype.
13573 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13574 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13575 * math/auto-libm-test-in: Add tests of sub.
13576 * math/auto-libm-test-out-narrow-sub: New generated file.
13577 * math/libm-test-narrow-sub.inc: New file.
13578 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13579 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13580 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13581 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13582 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13583 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13584 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13585 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13586 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13587 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13588 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13589 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13590 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13591 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13592 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13593 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13594 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13595 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13596 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13597 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13601 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13602 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13607 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13608 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13609 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13614 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13615 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13616 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13617 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13618 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13619 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13620 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13621 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13622 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13623 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13624
13625 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13626
13627 [BZ #20079]
13628 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13629
13630 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13631
13632 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13633
13634 2018-03-18 Richard Braun <rbraun@sceen.net>
13635
13636 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13637 thread reference.
13638
13639 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13640
13641 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13642 (__libc_cleanup_fct): Define function.
13643 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13644 __libc_cleanup_end): Rewrite implementation using
13645 __attribute__ ((__cleanup__)).
13646 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13647 * hurd/Makefile (routines): Add hurdlock.
13648 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13649 interface.
13650 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13651 * hurd/hurdpid.c: Include <lowlevellock.h>
13652 (_S_msg_proc_newids): Use lll_wait to synchronize.
13653 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13654 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13655 * mach/Makefile (lock-headers): Remove machine-lock.h.
13656 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13657 <machine-lock.h>.
13658 (__spin_lock_t): New type.
13659 (__SPIN_LOCK_INITIALIZER): New macro.
13660 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13661 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13662 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13663 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13664 (__mutex_init): Initialize with lll.
13665 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13666 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13667 needing lll.
13668 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13669 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13670 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13671 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13672 (__setpgid): Use lll for synchronization.
13673 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13674 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13675 instead of <cthreads.h>.
13676 (_IO_lock_inexpensive): New macro
13677 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13678 (__libc_lock_self0): New declaration.
13679 (__libc_lock_owner_self): New macro.
13680 (__libc_key_t): Remove type.
13681 (_LIBC_LOCK_INITIALIZER): New macro.
13682 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13683 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13684 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13685 __libc_lock_define_initialized_recursive,
13686 __rtld_lock_define_initialized_recursive,
13687 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13688 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13689 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13690 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13691 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13692 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13693 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13694 New macros.
13695 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13696 * hurd/hurdlock.c: New file.
13697 * hurd/hurdlock.h: New file.
13698 * mach/lowlevellock.h: New file
13699
13700 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13701
13702 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13703 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13704 when opening a symlink with O_NOFOLLOW.
13705 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13706 path when flags contains O_NOFOLLOW.
13707 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13708 if flags contains O_DIRECTORY and the result is a directory.
13709 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13710 oneself when the pointer given in D is nul (as set by ext2fs).
13711 * sysdeps/mach/hurd/mlockall.c: New file.
13712 * sysdeps/mach/hurd/munlockall.c: New file.
13713
13714 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13715
13716 * hurd/hurdsig.c: Include <pthread.h>.
13717 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13718 get the signal thread stack layout.
13719 * hurd/Makefile (headers): Remove threadvar.h.
13720 (inline-headers): Remove threadvar.h.
13721 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13722 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13723 __hurd_threadvar_max, __hurd_errno_location.
13724 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13725 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13726 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13727 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13728 unless TLS is not initialized yet, in which case we do not need a
13729 critical section yet anyway.
13730 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13731 <machine-sp.h>.
13732 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13733 declarations.
13734 (__hurd_threadvar_index): Remove enum.
13735 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13736 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13737 inlines.
13738 (__hurd_reply_port0): New variable declaration.
13739 (__hurd_local_reply_port): New macro.
13740 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13741 (interrupted_reply_port_location): Add thread_t parameter. Use it
13742 with THREAD_TCB to access thread-local variables.
13743 (_hurdsig_abort_rpcs): Pass ss->thread to
13744 interrupted_reply_port_location.
13745 (_hurd_internal_post_signal): Likewise.
13746 (_hurdsig_init): Use presence of cthread_fork instead of
13747 __hurd_threadvar_stack_mask to start signal thread by hand.
13748 Remove signal thread threadvar initialization.
13749 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13750 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13751 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13752 of threadvar.
13753 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13754 __libc_lock_self0.
13755 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13756 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13757 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13758 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13759 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13760 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13761 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13762 define variables.
13763 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13764 <hurd/threadvar.h>.
13765 [IS_IN(rtld)] (rtld_errno): New variable.
13766 [IS_IN(rtld)] (__errno_location): New weak function.
13767 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13768 * sysdeps/mach/hurd/errno.c: Remove file.
13769 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13770 (__fork): Remove THREADVAR_SPACE macro and its use.
13771 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13772 variable.
13773 (init): Do not initialize threadvar.
13774 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13775 symbol.
13776 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13777 __hurd_local_reply_port instead of threadvar.
13778 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13779 _hurd_sigstate fields.
13780 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13781 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13782 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13783 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13784 instead of threadvar.
13785 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13786 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13787 (use_threadvar, global_reply_port): Remove variables.
13788 (__hurd_reply_port0): New variable.
13789 (__mig_get_reply_port): Use __hurd_local_reply_port and
13790 __hurd_reply_port0 instead of threadvar.
13791 (__mig_dealloc_reply_port): Likewise.
13792 (__mig_init): Do not initialize threadvar.
13793 * sysdeps/mach/hurd/profil.c: Fix comment.
13794 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13795 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13796 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13797 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13798 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13799 __cthread_setspecific.
13800 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13801 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13802 __cthread_t instead of cthread_fork, cthread_detach,
13803 pthread_getattr_np, pthread_attr_getstack.
13804 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13805 __cthread_keycreate.
13806 (cthread_getspecific): Rename to __cthread_getspecific.
13807 (cthread_setspecific): Rename to __cthread_setspecific.
13808 (__libc_getspecific): Use __cthread_getspecific instead of
13809 cthread_getspecific.
13810 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13811 __cthread_keycreate instead of cthread_keycreate.
13812 (__libc_setspecific): Use __cthread_setspecific instead of
13813 cthread_setspecific.
13814 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13815 Likewise.
13816 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13817 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13818 testing whether it is defined.
13819
13820 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13821
13822 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13823 Define macro.
13824 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13825 * sysdeps/mach/i386/thread_state.h
13826 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13827 i386_THREAD_STATE.
13828 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13829 i386_THREAD_STATE.
13830 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13831
13832 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13833 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13834
13835 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13836 macros.
13837 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13838 descriptor instead of creating a new one.
13839 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13840
13841 * mach/setup-thread.c: Include <ldsodefs.h>.
13842 (__mach_setup_thread): Call _dl_allocate_tls, pass
13843 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13844 MACHINE_THREAD_STATE_FLAVOR, before getting
13845 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13846 MACHINE_THREAD_STATE_FLAVOR with the result.
13847 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13848 MACHINE_THREAD_STATE_FIX_NEW.
13849 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13850 too. Add original thread parameter.
13851
13852 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13853
13854 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13855 Remove inline function.
13856
13857 * sysdeps/i386/fpu/libm-test-ulps: Update.
13858 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13859
13860 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13861
13862 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13863 commit.
13864
13865 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13866
13867 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13868 (__sincos_code): Remove define and undefine.
13869 [__FAST_MATH__] (__sincos): Remove inline function.
13870 [__FAST_MATH__] (__sincosf): Remove inline function.
13871 [__FAST_MATH__] (__sincosl): Remove inline function.
13872 (__atan2l): Remove inline functions.
13873 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13874 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13875 function.
13876 (floor): Remove inline function.
13877 (ceil): Likewise.
13878 [__FAST_MATH__] (__ldexp_code): Remove macro.
13879 [__FAST_MATH__] (ldexp): Remove inline function.
13880 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13881 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13882 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13883 [__USE_ISOC99] (__lrint_code): Remove macro.
13884 [__USE_ISOC99] (__llrint_code): Likewise.
13885 [__USE_ISOC99] (lrintf): Remove inline function.
13886 [__USE_ISOC99] (lrint): Likewise.
13887 [__USE_ISOC99] (lrintl): Likewise.
13888 [__USE_ISOC99] (llrint): Likewise.
13889 [__USE_ISOC99] (llrintf): Likewise.
13890 [__USE_ISOC99] (llrintl): Likewise.
13891
13892 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13893
13894 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13895 (__ieee754_sqrtf): Remove.
13896 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13897 (__ieee754_sqrtf): Remove.
13898 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13899 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13900 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13901 (__ieee754_sqrtf): Remove.
13902 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13903 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13904 (sqrtf): Remove.
13905 (sqrtl): Remove.
13906 (__ieee754_sqrt): Remove.
13907 (__ieee754_sqrtf): Remove.
13908 (__ieee754_sqrtl): Remove.
13909 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13910 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13911 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13912 (__ieee754_sqrtf): Remove.
13913 (__ieee754_sqrtl): Remove.
13914
13915 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13916
13917 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13918 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13919 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13920 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13921 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13922 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13923 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13924 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13925 Likewise.
13926 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13927 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13928 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13929 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13930 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13931 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13932 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13933 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13934 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13935 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13936 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13937 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13938 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13939 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13940 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13941 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13942 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13943 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13944 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13945 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13946 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13947 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13948 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13949 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13950 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13951 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13952 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13953 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13954 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13955 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13956 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13957 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13958 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13959 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13960 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13961 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13962 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13963 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13964 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13965 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13966
13967 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13968
13969 * include/math.h (sqrt): Declare with asm redirect.
13970 (sqrtf): Likewise.
13971 (sqrtl): Likewise.
13972 (sqrtf128): Likewise.
13973 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13974 nonlib and libnldbl with -fmath-errno.
13975 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13976 * math/w_sqrt_template.c: Likewise.
13977 * math/w_sqrtf_compat.c: Likewise.
13978 * math/w_sqrtl_compat.c: Likewise.
13979 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13980 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13981 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13982 complex.h.
13983
13984 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13985
13986 * benchtests/Makefile: Define _ISOMAC.
13987 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13988 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13989 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13990 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13991 * benchtests/bench-timing.h: Define attribute_hidden.
13992
13993 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13994
13995 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13996 mov + lsr.
13997
13998 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13999
14000 [BZ #22963]
14001 * localedata/locales/cs_CZ (mon): Rename to...
14002 (alt_mon): This.
14003 (mon): Import from CLDR (genitive case).
14004
14005 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14006
14007 [BZ #22937]
14008 * localedata/locales/el_CY (abmon): Rename to...
14009 (ab_alt_mon): This.
14010 (abmon): Import from CLDR (abbreviated genitive case).
14011 * localedata/locales/el_GR (abmon): Rename to...
14012 (ab_alt_mon): This.
14013 (abmon): Import from CLDR (abbreviated genitive case).
14014
14015 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14016
14017 [BZ #22932]
14018 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14019
14020 2018-03-15 Robert Buj <robert.buj@gmail.com>
14021
14022 [BZ #22848]
14023 * localedata/locales/ca_ES (abmon): Rename to...
14024 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14025 (mon): Rename to...
14026 (alt_mon): This.
14027 (abmon): Import from CLDR (genitive case, month names preceded by
14028 "de" or "d’").
14029 (mon): Likewise.
14030 (abday): Synchronize with CLDR.
14031 (d_t_fmt): Likewise.
14032 (d_fmt): Likewise.
14033 (am_pm): Likewise.
14034
14035 (LC_TIME): Improve indentation.
14036 (LC_TELEPHONE): Likewise.
14037 (LC_NAME): Likewise.
14038 (LC_ADDRESS): Likewise.
14039
14040 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14041
14042 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14043 (lrintf): Remove definitions used only with old GCC.
14044 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14045 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14046 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14047 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14048 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14049 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14050 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14051 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14052 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14053 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14054 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14055 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14056 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14057 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14058 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14059 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14060 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14061 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14062 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14063 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14064 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14065 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14066 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14067 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14068 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14069 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14070 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14071 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14072
14073 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14074
14075 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14076 instruction to unbreak builds with binutils 2.26 and older.
14077
14078 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14079
14080 * sysdeps/aarch64/strncmp.S (count): New macro.
14081 (strncmp): Store misaligned length in SRC1 in COUNT.
14082 (mutual_align): Adjust.
14083 (misaligned8): Load dword at a time when it is safe.
14084
14085 2018-03-12 Zack Weinberg <zackw@panix.com>
14086
14087 [BZ #1190]
14088 [BZ #19476]
14089 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14090 if the _IO_EOF_SEEN bit is already set; update commentary.
14091 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14092 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14093
14094 * support/support_openpty.c, support/tty.h: New files.
14095 * support/Makefile (libsupport-routines): Add support_openpty.
14096
14097 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14098 New test cases.
14099 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14100 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14101
14102 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14103
14104 * po/pt_BR.po: Update translations.
14105
14106 2018-03-12 David Michael <fedora.dm0@gmail.com>
14107
14108 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14109 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14110 get a port to the startup server.
14111
14112 2018-03-11 Zack Weinberg <zackw@panix.com>
14113
14114 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14115 before nldbl-compat.h.
14116
14117 2018-03-10 Zack Weinberg <zackw@panix.com>
14118
14119 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14120 math.h or math_private.h.
14121
14122 * sysdeps/alpha/fpu/s_isnan.c
14123 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14124 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14125 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14126 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14127 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14128 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14129 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14130 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14131 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14133 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14134 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14135 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14136 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14137 Include math_private.h.
14138
14139 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14140 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14141 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14142 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14143 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14144 * sysdeps/powerpc/power7/fpu/s_logb.c:
14145 Include math.h and math_private.h.
14146
14147 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14148 uses of $at in .set noat / .set at.
14149
14150 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14151
14152 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14153 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14154 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14155 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14156 Likewise.
14157
14158 2018-03-09 Florian Weimer <fweimer@redhat.com>
14159
14160 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14161 in comment.
14162
14163 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14164
14165 [BZ #22919]
14166 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14167 Add nop before __startcontext, add explaining comments.
14168
14169 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14170
14171 [BZ #22926]
14172 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14173 empty for __SPE__.
14174 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14175 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14176 Do not build hardware transactional code for __SPE__.
14177 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14178 (__lll_trylock_elision): Likewise.
14179 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14180 (__lll_unlock_elision): Likewise.
14181
14182 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14183 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14184 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14185 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14186 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14187 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14188 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14189 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14190 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14191 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14192 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14193 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14194 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14195 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14196 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14197 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14198 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14199 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14200 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14201 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14202 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14203 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14204 (__ASSUME_CLONE_BACKWARDS): Define.
14205 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14206 __clone2 if __NR_clone2 is defined.
14207 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14208 (__ASSUME_CLONE_BACKWARDS): Likewise.
14209 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14210 (__ASSUME_CLONE_BACKWARDS): Likewise.
14211 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14212 (__ASSUME_CLONE2): Likewise.
14213 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14214 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14215 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14216 variants and the define architecture can use.
14217 (__ASSUME_CLONE_DEFAULT): Define as default.
14218 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14219 (__ASSUME_CLONE_BACKWARDS): Likewise.
14220 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14221 (__ASSUME_CLONE_BACKWARDS): Likewise.
14222 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14223 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14224
14225 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14226
14227 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14228
14229 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14230 time.
14231
14232 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14233 (do_test_limit): Likewise.
14234
14235 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14236 for every implementation.
14237 (do_test): Likewise.
14238
14239 * benchtests/bench-strncmp.c: Convert output to json.
14240
14241 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14242
14243 * io/futimens.c: Add missing start-of-file descriptive comment.
14244 * io/utime.c: Likewise.
14245 * misc/futimesat.c: Likewise.
14246 * misc/utimes.c: Likewise.
14247 * sysdeps/mach/hurd/futimesat.c: Likewise.
14248 * sysdeps/mach/hurd/utimes.c: Likewise.
14249 * sysdeps/posix/utime.c: Likewise.
14250 * sysdeps/posix/utimes.c: Likewise.
14251 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14252 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14253 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14254 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14255
14256 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14257
14258 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14259 hurd_futimes.
14260 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14261 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14262 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14263 (__futimens): Move implementation to...
14264 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14265 utime_tvalue_from_tspec): ... new helper functions.
14266 (hurd_futimens): New function.
14267 * sysdeps/mach/hurd/futimesat.c: New file.
14268 * sysdeps/mach/hurd/utimensat.c: New file.
14269
14270 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14271
14272 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14273 UTIME_OMIT): New macros.
14274 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14275 before reverting to converting time spec to time value and calling
14276 __file_utimes.
14277 * sysdeps/mach/hurd/utime-helper.c: New file.
14278 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14279 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14280 reverting to utime_tvalue_from_tval and __file_utimes.
14281 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14282 (__lutimes): Just call hurd_futimens after lookup.
14283 * sysdeps/mach/hurd/utimes.c: Likewise.
14284
14285 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14286
14287 * bits/sigaction.h: Add include guard.
14288 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14289 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14290 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14291 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14292 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14293 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14294 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14295 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14296 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14297
14298 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14299
14300 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14301 -Wmaybe-uninitialized for -Os.
14302 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14303 this disabling.
14304
14305 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14306
14307 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14308 __INO_T_MATCHES_INO64_T is defined.
14309 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14310 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14311 of definition.
14312 * dirent/alphasort64.c: Likewise.
14313 * dirent/scandir.c: Likewise.
14314 * dirent/scandir64-tail.c: Likewise.
14315 * dirent/scandir64.c: Likewise.
14316 * dirent/scandirat.c: Likewise.
14317 * dirent/scandirat64.c: Likewise.
14318 * dirent/versionsort.c: Likewise.
14319 * dirent/versionsort64.c: Likewise.
14320 * include/dirent.h: Likewise.
14321
14322 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14323 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14324 for socketpair endpoint.
14325 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14326 WRITE_BUFFER_SIZE as buffer size for sending socket.
14327 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14328 issue on system where send is implemented with sendto syscall.
14329 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14330 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14331 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14332 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14333
14334 [BZ #21269]
14335 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14336 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14337 sa_restorer for vDSO case.
14338 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14339
14340 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14341
14342 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14343 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14344 * hurd/hurd/ioctl.h: Include <mach/port.h>
14345 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14346 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14347 <mach/mach_types.h> and <mach/message.h>.
14348 (headers): Move mach/param.h to bits/mach/param.h.
14349 * sysdeps/mach/i386/mach/param.h: Move file to ...
14350 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14351 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14352 of <mach/param.h>.
14353 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14354 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14355 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14356 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14357 trivial, for C++ conformity.
14358 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14359 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14360 Process mig output through $(migheadersed).
14361 * hurd/Makefile (migheadersed): Define variable.
14362 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14363 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14364 headers.
14365 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14366 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14367 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14368 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14369 <bits/types/sigset_t.h>.
14370 [!defined __USE_GNU]: Do not #error out.
14371 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14372 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14373 Include <stddef.h> and <bits/types/sigset_t.h>
14374 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14375 instead of sighandler_t.
14376 * stdlib/errno.h (error_t): Move definition to...
14377 * bits/types/error_t.h: ... new header.
14378 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14379 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14380 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14381 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14382 * hurd/hurd.h: Include <bits/types/error_t.h>
14383 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14384 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14385 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14386 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14387 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14388 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14389 * sysdeps/mach/hurd/futimens.c: New file.
14390
14391 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14392
14393 [BZ #22918]
14394 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14395 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14396 * nscd/gai.c (__nss_hosts_database): Readd definition.
14397 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14398 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14399 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14400
14401 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14402
14403 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14404 (ifunc_one): Likewise.
14405
14406 2018-03-01 DJ Delorie <dj@delorie.com>
14407
14408 [BZ #22342]
14409 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14410 key value.
14411
14412 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14413
14414 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14415 `match_pid' parameter.
14416 (td_ta_thr_iter): Update accordingly.
14417
14418 2018-03-01 Florian Weimer <fweimer@redhat.com>
14419
14420 * nptl/Makefile (install-lib-ldscripts): Remove.
14421 (install): Remove rule.
14422 ($(inst_libdir)/libpthread.so): Likewise.
14423
14424 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14425
14426 [BZ #22896]
14427 * localedata/locales/an_ES: update month and day names,
14428 improve d_fmt, improve postal_fmt, add country_post,
14429 add country_isbn
14430
14431 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14432
14433 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14434 Ukrainian instead of Bulgarian.
14435
14436 2018-03-01 Florian Weimer <fweimer@redhat.com>
14437
14438 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14439 reference.
14440
14441 2018-03-01 Florian Weimer <fweimer@redhat.com>
14442
14443 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14444 * nptl/Makefile (routines): Add pthread_atfork.
14445 (static-only-routines): Set to pthread_atfork.
14446 (libpthread-routines): Remove pthread_atfork.
14447 (libpthread-static-only-routines): Remove.
14448 (install): Update comment.
14449 (libpthread.so): Do not install libpthread_nonshared.a.
14450 (tests): Do not link with libpthread_nonshared.a.
14451 (generated): Remove libpthread_nonshared.a.
14452 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14453 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14454 with libpthread_nonshared.a.
14455
14456 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14457
14458 [BZ #22902]
14459 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14460 (libc_feholdexcept_setroundf128): New macro.
14461 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14462
14463 [BZ #15105]
14464 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14465 libc_hidden_def.
14466 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14467 * include/inttypes.h: New file.
14468
14469 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14470
14471 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14472 -Os in two more places.
14473
14474 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14475
14476 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14477 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14478 be sorted correctly at the moment because of a bug.
14479
14480 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14481
14482 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14483 treat ñ as a primary different character, sync the collation
14484 for Spanish with CLDR.
14485 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14486 * localedata/Makefile: Add new test files.
14487 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14488 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14489 collation order.
14490 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14491 * localedata/am_ET.UTF-8.in: New test file.
14492 * localedata/az_AZ.UTF-8.in: Likewise.
14493 * localedata/be_BY.UTF-8.in: Likewise.
14494 * localedata/ber_DZ.UTF-8.in: Likewise.
14495 * localedata/ber_MA.UTF-8.in: Likewise.
14496 * localedata/bg_BG.UTF-8.in: Likewise.
14497 * localedata/br_FR.UTF-8.in: Likewise.
14498 * localedata/cmn_TW.UTF-8.in: Likewise.
14499 * localedata/crh_UA.UTF-8.in: Likewise.
14500 * localedata/csb_PL.UTF-8.in: Likewise.
14501 * localedata/cv_RU.UTF-8.in: Likewise.
14502 * localedata/cy_GB.UTF-8.in: Likewise.
14503 * localedata/dz_BT.UTF-8.in: Likewise.
14504 * localedata/eo.UTF-8.in: Likewise.
14505 * localedata/es_ES.UTF-8.in: Likewise.
14506 * localedata/fa_IR.UTF-8.in: Likewise.
14507 * localedata/fi_FI.UTF-8.in: Likewise.
14508 * localedata/fil_PH.UTF-8.in: Likewise.
14509 * localedata/fur_IT.UTF-8.in: Likewise.
14510 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14511 * localedata/ha_NG.UTF-8.in: Likewise.
14512 * localedata/ig_NG.UTF-8.in: Likewise.
14513 * localedata/ik_CA.UTF-8.in: Likewise.
14514 * localedata/kk_KZ.UTF-8.in: Likewise.
14515 * localedata/ku_TR.UTF-8.in: Likewise.
14516 * localedata/ky_KG.UTF-8.in: Likewise.
14517 * localedata/ln_CD.UTF-8.in: Likewise.
14518 * localedata/mi_NZ.UTF-8.in: Likewise.
14519 * localedata/ml_IN.UTF-8.in: Likewise.
14520 * localedata/mn_MN.UTF-8.in: Likewise.
14521 * localedata/mr_IN.UTF-8.in: Likewise.
14522 * localedata/mt_MT.UTF-8.in: Likewise.
14523 * localedata/nb_NO.UTF-8.in: Likewise.
14524 * localedata/om_KE.UTF-8.in: Likewise.
14525 * localedata/os_RU.UTF-8.in: Likewise.
14526 * localedata/ps_AF.UTF-8.in: Likewise.
14527 * localedata/ro_RO.UTF-8.in: Likewise.
14528 * localedata/ru_RU.UTF-8.in: Likewise.
14529 * localedata/sc_IT.UTF-8.in: Likewise.
14530 * localedata/se_NO.UTF-8.in: Likewise.
14531 * localedata/sq_AL.UTF-8.in: Likewise.
14532 * localedata/sv_SE.UTF-8.in: Likewise.
14533 * localedata/szl_PL.UTF-8.in: Likewise.
14534 * localedata/tg_TJ.UTF-8.in: Likewise.
14535 * localedata/tk_TM.UTF-8.in: Likewise.
14536 * localedata/tt_RU.UTF-8.in: Likewise.
14537 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14538 * localedata/ug_CN.UTF-8.in: Likewise.
14539 * localedata/uz_UZ.UTF-8.in: Likewise.
14540 * localedata/vi_VN.UTF-8.in: Likewise.
14541 * localedata/yi_US.UTF-8.in: Likewise.
14542 * localedata/yo_NG.UTF-8.in: Likewise.
14543 * localedata/zh_CN.UTF-8.in: Likewise.
14544 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14545 file and fix bugs in the collation.
14546 * localedata/locales/az_AZ: Likewise.
14547 * localedata/locales/be_BY: Likewise.
14548 * localedata/locales/ber_DZ: Likewise.
14549 * localedata/locales/ber_MA: Likewise.
14550 * localedata/locales/bg_BG: Likewise.
14551 * localedata/locales/br_FR: Likewise.
14552 * localedata/locales/br_FR@euro: Likewise.
14553 * localedata/locales/ca_ES: Likewise.
14554 * localedata/locales/cns11643_stroke: Likewise.
14555 * localedata/locales/crh_UA: Likewise.
14556 * localedata/locales/cs_CZ: Likewise.
14557 * localedata/locales/csb_PL: Likewise.
14558 * localedata/locales/cv_RU: Likewise.
14559 * localedata/locales/cy_GB: Likewise.
14560 * localedata/locales/da_DK: Likewise.
14561 * localedata/locales/dz_BT: Likewise.
14562 * localedata/locales/en_CA: Likewise.
14563 * localedata/locales/eo: Likewise.
14564 * localedata/locales/es_CU: Likewise.
14565 * localedata/locales/es_EC: Likewise.
14566 * localedata/locales/es_ES: Likewise.
14567 * localedata/locales/es_US: Likewise.
14568 * localedata/locales/et_EE: Likewise.
14569 * localedata/locales/fa_IR: Likewise.
14570 * localedata/locales/fi_FI: Likewise.
14571 * localedata/locales/fil_PH: Likewise.
14572 * localedata/locales/fur_IT: Likewise.
14573 * localedata/locales/gez_ER@abegede: Likewise.
14574 * localedata/locales/ha_NG: Likewise.
14575 * localedata/locales/hr_HR: Likewise.
14576 * localedata/locales/hsb_DE: Likewise.
14577 * localedata/locales/hu_HU: Likewise.
14578 * localedata/locales/ig_NG: Likewise.
14579 * localedata/locales/ik_CA: Likewise.
14580 * localedata/locales/is_IS: Likewise.
14581 * localedata/locales/iso14651_t1_pinyin: Likewise.
14582 * localedata/locales/kk_KZ: Likewise.
14583 * localedata/locales/ku_TR: Likewise.
14584 * localedata/locales/ky_KG: Likewise.
14585 * localedata/locales/ln_CD: Likewise.
14586 * localedata/locales/lt_LT: Likewise.
14587 * localedata/locales/lv_LV: Likewise.
14588 * localedata/locales/mi_NZ: Likewise.
14589 * localedata/locales/ml_IN: Likewise.
14590 * localedata/locales/mn_MN: Likewise.
14591 * localedata/locales/mr_IN: Likewise.
14592 * localedata/locales/mt_MT: Likewise.
14593 * localedata/locales/nb_NO: Likewise.
14594 * localedata/locales/om_KE: Likewise.
14595 * localedata/locales/os_RU: Likewise.
14596 * localedata/locales/pl_PL: Likewise.
14597 * localedata/locales/ps_AF: Likewise.
14598 * localedata/locales/ro_RO: Likewise.
14599 * localedata/locales/ru_RU: Likewise.
14600 * localedata/locales/ru_UA: Likewise.
14601 * localedata/locales/sc_IT: Likewise.
14602 * localedata/locales/se_NO: Likewise.
14603 * localedata/locales/si_LK: Likewise.
14604 * localedata/locales/sq_AL: Likewise.
14605 * localedata/locales/sv_FI: Likewise.
14606 * localedata/locales/sv_FI@euro: Likewise.
14607 * localedata/locales/sv_SE: Likewise.
14608 * localedata/locales/szl_PL: Likewise.
14609 * localedata/locales/tg_TJ: Likewise.
14610 * localedata/locales/ti_ER: Likewise.
14611 * localedata/locales/tk_TM: Likewise.
14612 * localedata/locales/tl_PH: Likewise.
14613 * localedata/locales/tr_TR: Likewise.
14614 * localedata/locales/tt_RU: Likewise.
14615 * localedata/locales/tt_RU@iqtelif: Likewise.
14616 * localedata/locales/ug_CN: Likewise.
14617 * localedata/locales/uk_UA: Likewise.
14618 * localedata/locales/uz_UZ: Likewise.
14619 * localedata/locales/uz_UZ@cyrillic: Likewise.
14620 * localedata/locales/vi_VN: Likewise.
14621 * localedata/locales/yi_US: Likewise.
14622 * localedata/locales/yo_NG: Likewise.
14623
14624 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14625
14626 * gen-locales.mk: Make test files which contain @ modifiers in their
14627 name work.
14628 * localedata/gen-locale.sh: Likewise.
14629
14630 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14631
14632 * posix/tst-fnmatch.input: Fix results for range expressions
14633 for non C locales.
14634 * posix/tst-regexloc.c: Do not use a range expression for
14635 de_DE.ISO-8859-1 locale.
14636
14637 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14638
14639 * posix/bug-regex5.c: Fix test case because with the new
14640 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14641 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14642 file.
14643
14644 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14645
14646 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14647 downloaded from ISO, the collation order of @-. and space has changed.
14648 Therefore, this test file needed to be adapted.
14649 * localedata/fr_CA.UTF-8.in: Likewise.
14650 * localedata/fr_FR.UTF-8.in: Likewise.
14651 * localedata/uk_UA.UTF-8.in: Likewise.
14652
14653 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14654
14655 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14656 order of ȥ in the new iso14651_t1_common file.
14657 * localedata/pl_PL.UTF-8.in: Likewise.
14658
14659 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14660
14661 * localedata/locales/iso14651_t1_common: Add sections for various
14662 scripts to the iso14651_t1_common file.
14663
14664 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14665
14666 * localedata/locales/iso14651_t1_common: Use the code point of a
14667 character in the fourth collation level instead of IGNORE for all
14668 entries which have IGNORE on all 4 levels.
14669
14670 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14671
14672 * localedata/locales/iso14651_t1_common: Add some convenient collation
14673 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14674 rules similar to those in CLDR.
14675
14676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14677
14678 * localedata/locales/iso14651_t1_common: The new version of this
14679 file downloaded from ISO contained several syntax errors which
14680 are fixed by this patch.
14681
14682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14683
14684 * localedata/locales/iso14651_t1_common: replace all <U.....>
14685 with <U000.....> because glibc understands only 4 digit or 8 digit
14686
14687 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14688
14689 * localedata/locales/iso14651_t1_common: Necessary changes
14690 to make the file downloaded from ISO usable by glibc.
14691
14692 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14693
14694 [BZ #14095]
14695 * localedata/locales/iso14651_t1_common: Update file to
14696 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14697
14698 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14699
14700 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14701 of <nptl/pthreadP.h>
14702 (thread_attr_compare): Move function to...
14703 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14704 * sysdeps/nptl/timer_routines.h: ... new header.
14705 * sysdeps/mach/hurd/gai_misc.h: New file.
14706
14707 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14708
14709 * string/strcoll_l.c: Include <libc-diag.h>.
14710 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14711 declarations of seq1 and seq2.
14712
14713 [BZ #15105]
14714 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14715 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14716
14717 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14718
14719 [BZ #22433]
14720 [BZ #22807]
14721 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14722 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14723 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14724 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14725 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14726 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14727
14728 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14729
14730 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14731 macros used in __ptrace_request.
14732
14733 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14734
14735 [BZ #22792]
14736 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14737 to $(CC).
14738 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14739 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14740 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14741 <tcb-offsets.h>.
14742
14743 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14744
14745 [BZ #15105]
14746 * ctype/ctype.c (tolower): Use libc_hidden_def.
14747 (toupper): Likewise.
14748 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14749 [!_ISOMAC] (toupper): Likewise.
14750
14751 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14752
14753 * localedata/Makefile: Remove --quiet argument when
14754 installing locales
14755
14756 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14757
14758 [BZ #17438]
14759 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14760 in d_fmt.
14761 * localedata/locales/pt_PT (LC_TIME): likewise
14762
14763 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14764
14765 [BZ #22646]
14766 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14767 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14768 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14769
14770 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14771
14772 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14773
14774 * nptl/Makefile (routines): Remove unregister-atfork.
14775 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14776 (fork_handler_alloc): Remove function.
14777 (fork_handlers, fork_handler_init): New variables.
14778 (__fork_lock): Rename to atfork_lock.
14779 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14780 to use a dynamic array to add/remove atfork handlers.
14781 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14782 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14783 Remove declaration.
14784 (fork_handler): Remove next, refcntr, and need_signal member.
14785 (__run_fork_handler_type): New enum.
14786 (__run_fork_handlers): New prototype.
14787 * nptl/register-atfork.c: Remove file.
14788 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14789
14790 * sysdeps/nptl/nptl-signals.h: Move to ...
14791 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14792 comments.
14793 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14794 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14795 unnecessary check for SIGTIMER.
14796 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14797 remove unnecessary removal of SIGTIMER.
14798 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14799 include-signals.h rename.
14800 * nptl/pthreadP.h: Likewise.
14801 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14802 __is_internal_signal instead of __nptl_is_internal_signal.
14803
14804 2018-02-22 Andrew Waterman <andrew@sifive.com>
14805
14806 [BZ # 22884]
14807 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14808 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14809 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14810 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14811
14812 2018-02-22 DJ Delorie <dj@delorie.com>
14813
14814 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14815
14816 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14817
14818 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14819 do_misaligned, not misaligned8.
14820
14821 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14822
14823 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14824 Add memcpy_thunderx2.
14825 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14826 Increment to 4.
14827 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14828 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14829 and IS_THUNDERX2PA checks.
14830 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14831 Use macro to set name appropriately.
14832 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14833 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14834 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14835 New macro.
14836 (IS_THUNDERX2): New macro.
14837
14838 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14839
14840 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14841
14842 2018-02-21 Zack Weinberg <zackw@panix.com>
14843
14844 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14845 Define here, unconditionally.
14846 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14847 * libio/libioP.h: Remove #if 0 blocks.
14848 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14849 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14850 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14851
14852 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14853 Assume weak_alias is always defined.
14854
14855 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14856 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14857 Remove #if 0 and #ifdef TODO blocks.
14858 Assume text_set_element is always defined.
14859
14860 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14861 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14862 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14863
14864 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14865 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14866 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14867 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14868 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14869 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14870 Reformat bit flags for _flags field to make occupancy clearer.
14871 Update commentary.
14872 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14873 Keep definitions consistent with those in libio/libio.h.
14874
14875 * libio/libio.h (_IO_file_flags): Remove macro.
14876 All uses changed to _flags.
14877
14878 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14879 (__HAVE_COLUMN, _IO_BE): Don't define.
14880 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14881 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14882 * libio/libioP.h (EOF): Don't define.
14883 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14884 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14885 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14886 testing _IO_UNIFIED_JUMPTABLES.
14887
14888 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14889 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14890 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14891 (_IO_size_t): Delete; all uses changed to size_t.
14892 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14893 (_IO_off_t): Delete; all uses changed to off_t.
14894 (_IO_off64_t): Delete; all uses changed to off64_t.
14895 (_IO_pid_t): Delete; all uses changed to pid_t.
14896 (_IO_uid_t): Delete; all uses changed to uid_t.
14897 (_IO_wint_t): Delete; all uses changed to wint_t.
14898 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14899 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14900 (_IO_cookie_io_functions_t): Delete; all uses changed to
14901 cookie_io_functions_t.
14902 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14903 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14904 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14905 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14906
14907 * libio/iofopncook.c: Remove unnecessary forward declarations.
14908 * libio/iolibio.h: Correct outdated commentary.
14909 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14910 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14911 Remove unnecessary casts.
14912 * stdio-common/getline.c: Use _IO_getdelim directly.
14913 Don't redefine ssize_t.
14914 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14915 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14916 Remove outdated comments.
14917 * stdio-common/vfscanf.c: Don't redefine va_list.
14918
14919 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14920 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14921 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14922 which are always true, and __cplusplus, which is always false.
14923
14924 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14925
14926 [BZ #15105]
14927 [BZ #19463]
14928 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14929 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14930 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14931 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14932 libc_hidden_proto.
14933 [!_ISOMAC] (putc_unlocked): Likewise.
14934 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14935 define inline if [__USE_EXTERN_INLINES].
14936 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14937 putc_unlocked.
14938
14939 [BZ #15105]
14940 [BZ #19463]
14941 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14942 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14943 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14944 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14945 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14946 getc_unlocked.
14947 * time/tzfile.c (__tzfile_read): Likewise.
14948
14949 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14950
14951 [BZ #22517]
14952 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14953
14954 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14955
14956 * io/fcntl.h: Fix a typo in a comment.
14957
14958 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14959
14960 [BZ #22862]
14961 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14962 define _DEFAULT_SOURCE.
14963 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14964
14965 2018-02-21 Florian Weimer <fweimer@redhat.com>
14966
14967 [BZ #20890]
14968 * elf/cache.c (save_cache): Call fsync on temporary file before
14969 renaming it.
14970 (save_aux_cache): Call fdatasync on temporary file before renaming
14971 it.
14972
14973 2018-02-21 Florian Weimer <fweimer@redhat.com>
14974
14975 [BZ #22787]
14976 * include/caller.h: Remove file.
14977 * elf/dl-caller.c: Likewise.
14978 * elf/Makefile (dl-routines): Remove dl-caller.
14979 (shared-only-routines): Do not add dl-caller.
14980 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14981 __check_caller.
14982 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14983 member.
14984 (dl_open_worker): Do not call __check_caller.
14985 (_dl_open): Do not set caller_dl_open member.
14986 * elf/rtld.c (_rtld_global_ro): Do not initialize
14987 _dl_check_caller member.
14988 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14989 _dl_check_caller member.
14990 (_dl_check_caller): Remove declaration.
14991 * sysdeps/unix/sysv/linux/dl-execstack.c
14992 (_dl_make_stack_executable): Do not call __check_caller.
14993
14994 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14995
14996 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14997 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14998
14999 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15000
15001 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15002 description.
15003
15004 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15005
15006 [BZ #16335]
15007 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15008 of 199606L, 200112L, and 200809L.
15009 (_XOPEN_SOURCE): Document special values of 600 and 700.
15010 (_ISOC11_SOURCE): Document macro.
15011 (_ATFILE_SOURCE): Likewise.
15012 (_FORTIFY_SOURCE): Likewise.
15013
15014 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15015
15016 [BZ #15105]
15017 [BZ #19463]
15018 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15019 and define as weak alias of __ferror_unlocked. Use
15020 libc_hidden_weak.
15021 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15022 libc_hidden_proto.
15023 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15024 function if [__USE_EXTERN_INLINES].
15025 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15026 ferror_unlocked.
15027
15028 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15029
15030 [BZ #6889]
15031 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15032
15033 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15034
15035 [BZ #22818]
15036 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15037 the GLIBC_2.1 version.
15038
15039 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15040
15041 [BZ #21508]
15042 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15043 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15044 intl/tst-gettext-de.po from po/de.po by removing the
15045 POT-Creation-Date line.
15046 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15047 ../po/de.po.
15048 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15049 ../po/de.po.
15050
15051 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15052
15053 * mach/Makefile (headers): Add mach/param.h.
15054 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15055 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15056 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15057 (__ptsname_r): Move implementation to...
15058 (__ptsname_internal): ... new function. Add filling the STP
15059 structure.
15060
15061 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15062
15063 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15064 idouble to 1 ULP.
15065
15066 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15067
15068 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15069 syntax.
15070
15071 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15072
15073 * nptl/Makefile (tst-mutex8-ENV): Delete.
15074 * nptl/tst-mutex8.c (check_type):
15075 Add runtime check if mutex will be elided.
15076
15077 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15078
15079 [BZ #20980]
15080 [BZ #21234]
15081 * manual/install.texi (Configuring and compiling): Describe
15082 passing CC and CFLAGS on configure command line, not as
15083 environment variables. Use @code markup on those variables.
15084 Specify what options go in CC and what go in CFLAGS. Note the
15085 requirement to compile with optimization.
15086 * INSTALL: Regenerated.
15087
15088 [BZ #18124]
15089 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15090 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15091 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15092 __sigprocmask instead of sigprocmask.
15093 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15094 Likewise.
15095 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15096 __sigsetjmp and sigprocmask.
15097
15098 [BZ #15105]
15099 * include/argz.h (argz_next): Use libc_hidden_proto.
15100 (__argz_next): Likewise.
15101 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15102 (argz_next): Use libc_hidden_weak.
15103
15104 [BZ #15105]
15105 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15106 libc_hidden_proto.
15107 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15108 libc_hidden_def.
15109
15110 [BZ #15105]
15111 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15112 libc_hidden_proto.
15113 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15114
15115 [BZ #15105]
15116 [BZ #19463]
15117 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15118 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15119 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15120 (__feof_unlocked): New declaration, and inline function if
15121 [__USE_EXTERN_INLINES].
15122 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15123 instead of feof_unlocked.
15124 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15125 * nss/nsswitch.c (nss_parse_file): Likewise.
15126 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15127 Likewise.
15128 * time/getdate.c (__getdate_r): Likewise.
15129 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15130 Define as macro to call __feof_unlocked.
15131
15132 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15133
15134 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15135
15136 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15137
15138 * math/Makefile: Remove mpexp.c and mplog.c
15139 * sysdeps/i386/fpu/mpexp.c: Delete file.
15140 * sysdeps/i386/fpu/mplog.c: Likewise.
15141 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15142 * sysdeps/ia64/fpu/mplog.c: Likewise.
15143 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15144 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15145 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15146 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15147 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15148 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15149 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15150 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15151 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15152 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15153 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15154 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15155 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15156 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15157 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15158 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15159
15160 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15161
15162 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15163
15164 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15165
15166 * sysdeps/sh/libm-test-ulps: Update.
15167
15168 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15169
15170 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15171 idouble to 1 ULP.
15172
15173 2018-02-12 Zack Weinberg <zackw@panix.com>
15174
15175 [BZ #19239]
15176 * posix/sys/types.h: Don't include sys/sysmacros.h.
15177 * misc/sys/sysmacros.h: Remove the conditional deprecation
15178 warnings for the macros defined by this header.
15179
15180 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15181
15182 * manual/probes.texi: Remove slowexp probes.
15183 * math/Makefile: Remove slowexp.
15184 * sysdeps/generic/math_private.h (__slowexp): Remove.
15185 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15186 document error bounds.
15187 * sysdeps/i386/fpu/slowexp.c: Remove.
15188 * sysdeps/ia64/fpu/slowexp.c: Remove.
15189 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15190 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15191 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15192 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15193 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15194 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15195 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15196 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15197 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15198 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15199 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15200
15201 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15202
15203 [BZ #13932]
15204 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15205 * benchtests/pow-inputs: Update comment for slow path cases.
15206 * manual/probes.texi (slowpow_p10): Delete removed probe.
15207 (slowpow_p10): Likewise.
15208 * math/Makefile: Remove halfulp.c and slowpow.c.
15209 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15210 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15211 (__halfulp): Remove.
15212 (__slowpow): Remove.
15213 * sysdeps/i386/fpu/halfulp.c: Delete file.
15214 * sysdeps/i386/fpu/slowpow.c: Likewise.
15215 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15216 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15217 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15218 improve comments and add error analysis.
15219 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15220 (power1): Remove function:
15221 (log1): Remove error argument, add error analysis.
15222 (my_log2): Remove function.
15223 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15224 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15225 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15226 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15227 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15228 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15229 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15230 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15231 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15232 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15233 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15234 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15235 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15236 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15237
15238 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15239
15240 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15241 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15242
15243 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15244
15245 [BZ #22433]
15246 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15247 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15248 and PTRACE_SETHBPREGS.
15249
15250 2018-02-10 Zack Weinberg <zackw@panix.com>
15251
15252 [BZ #22830]
15253 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15254 correctly.
15255 * malloc/tst-malloc-stats-cancellation.c: New test case.
15256 * malloc/Makefile: Add new test case.
15257
15258 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15259
15260 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15261
15262 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15263
15264 * math/Makefile (libm-narrow-fns): Add add.
15265 (libm-test-funcs-narrow): Likewise.
15266 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15267 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15268 * math/gen-auto-libm-tests.c (test_functions): Add add.
15269 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15270 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15271 (NARROW_ADD_TRIVIAL): Likewise.
15272 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15273 macro.
15274 (__daddl): Likewise.
15275 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15276 dadd.
15277 (CFLAGS-nldbl-dadd.c): New variable.
15278 (CFLAGS-nldbl-fadd.c): Likewise.
15279 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15280 __nldbl_daddl.
15281 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15282 prototype.
15283 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15284 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15285 * math/auto-libm-test-in: Add tests of add.
15286 * math/auto-libm-test-out-narrow-add: New generated file.
15287 * math/libm-test-narrow-add.inc: New file.
15288 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15289 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15290 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15291 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15292 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15293 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15294 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15295 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15296 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15297 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15298 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15299 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15300 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15301 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15302 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15303 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15304 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15305 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15306 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15307 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15308 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15309 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15310 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15311 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15312 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15313 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15315 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15316 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15317 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15318 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15319 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15324 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15325 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15326 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15327 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15328 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15329 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15330 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15331 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15332 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15333 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15334
15335 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15336 (f128-pairs): New variable.
15337 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15338 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15339 to CFLAGS.
15340 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15341 Also make tests add $(f128-loader-link) to gnulib-tests.
15342
15343 2018-02-09 DJ Delorie <dj@redhat.com>
15344
15345 [BZ #22827]
15346 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15347 64-bit ELF type for 64-bit ELF objects.
15348
15349 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15350
15351 * math/libm-test-driver.c (snan_tests_arg): New variable.
15352 * math/libm-test-support.h (snan_tests_arg): New declaration.
15353 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15354
15355 * math/Makefile (test-type-pairs): New variable.
15356 (test-type-pairs-f64xf128-yes): Likewise.
15357 (tests): Add test-narrow-macros.
15358 (libm-test-funcs-narrow): New variable.
15359 (libm-test-c-narrow): Likewise.
15360 (generated): Add $(libm-test-c-narrow).
15361 (libm-tests-base-narrow): New variable.
15362 (libm-tests-narrow): Likewise.
15363 (libm-tests): Add $(libm-tests-narrow).
15364 (libm-tests-for-type): Handle $(libm-tests-narrow).
15365 (libm-test-c-narrow-obj): New variable.
15366 ($(libm-test-c-narrow-obj)): New rule.
15367 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15368 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15369 $(o-iterator) to set dependencies and CFLAGS.
15370 * math/gen-auto-libm-tests.c: Document use for narrowing
15371 functions.
15372 (output_for_one_input_case): Take argument NARROW.
15373 (generate_output): Likewise. Update call to
15374 output_for_one_input_case.
15375 (main): Take --narrow option. Update call to generate_output.
15376 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15377 (apply_lit): Update call to _apply_lit.
15378 (apply_arglit): New function.
15379 (parse_args): Handle "a" arguments.
15380 (parse_auto_input): Handle format names using ":".
15381 * math/README.libm-test: Document "a" parameter type.
15382 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15383 (ARG_TYPE_TRUE_MIN): Likewise.
15384 (ARG_TYPE_MAX): Likwise.
15385 (ARG_MIN_EXP): Likewise.
15386 (ARG_MAX_EXP): Likewise.
15387 (ARG_MANT_DIG): Likewise.
15388 (TEST_COND_arg_ibm128): Likewise.
15389 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15390 (TEST_COND_arg_fmt): New macro.
15391 (init_max_error): Update prototype.
15392 * math/libm-test-support.c (test_ibm128): New variable.
15393 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15394 instead of using [TEST_COND_ibm128] conditional.
15395 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15396 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15397 [TEST_NARROW] (TEST_MSG): New definition.
15398 (arg_plus_zero): New macro.
15399 (arg_minus_zero): Likewise.
15400 (arg_plus_infty): Likewise.
15401 (arg_minus_infty): Likewise.
15402 (arg_qnan_value_pl): Likewise.
15403 (arg_qnan_value): Likewise.
15404 (arg_snan_value_pl): Likewise.
15405 (arg_snan_value): Likewise.
15406 (arg_max_value): Likewise.
15407 (arg_min_value): Likewise.
15408 (arg_min_subnorm_value): Likewise.
15409 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15410 (RUN_TEST_LOOP_aa_f): New macro.
15411 (TEST_SUFF): New macro.
15412 (TEST_SUFF_STR): Likewise.
15413 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15414 (TEST_COND_any_ibm128): New macro.
15415 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15416 this_func. Update call to init_max_error.
15417 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15418 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15419 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15420 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15421 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15422 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15423 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15424 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15425 * math/test-math-vector.h (TEST_NARROW): Likewise.
15426 * math/test-arg-double.h: New file.
15427 * math/test-arg-float128.h: Likewise.
15428 * math/test-arg-float32x.h: Likewise.
15429 * math/test-arg-float64.h: Likewise.
15430 * math/test-arg-float64x.h: Likewise.
15431 * math/test-arg-ldouble.h: Likewise.
15432 * math/test-math-narrow.h: Likewise.
15433 * math/test-narrow-macros.c: Likewise.
15434 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15435 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15436 test-narrow-macros-ldbl-64.
15437 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15438
15439 * math/bits/mathcalls-narrow.h: New file.
15440 * include/bits/mathcalls-narrow.h: Likewise.
15441 * math/math-narrow.h: Likewise.
15442 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15443 (__MATHCALL_NARROW_ARGS_2): Likewise.
15444 (__MATHCALL_NARROW_ARGS_3): Likewise.
15445 (__MATHCALL_NARROW_NORMAL): Likewise.
15446 (__MATHCALL_NARROW_REDIR): Likewise.
15447 (__MATHCALL_NARROW): Likewise.
15448 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15449 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15450 defined.
15451 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15452 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15453 (libm-narrow-fns): New variable.
15454 (libm-narrow-types-basic): Likewise.
15455 (libm-narrow-types-ldouble-yes): Likewise.
15456 (libm-narrow-types-float128-yes): Likewise.
15457 (libm-narrow-types-float128-alias-yes): Likewise.
15458 (libm-narrow-types): Likewise.
15459 (libm-routines): Add narrowing functions.
15460 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15461 (libc_feholdexcept_setroundf128): New macro.
15462 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15463 * sysdeps/ieee754/float128/float128_private.h: Include
15464 <math/math-narrow.h>.
15465 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15466 Undefine and redefine.
15467 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15468 (libm_alias_float_ldouble): Undefine and redefine.
15469 (libm_alias_double_ldouble): Likewise.
15470
15471 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15472
15473 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15474
15475 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15476 FPCR/FPSR.
15477
15478 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15479
15480 * manual/creature.texi: Convert references to gcc.info to gcc.
15481 * manual/stdio.texi: Likewise.
15482 * manual/string.texi: Likewise.
15483
15484 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15485
15486 [BZ #17979]
15487 * posix/bits/types.h (__int_least8_t): New typedef.
15488 (__uint_least8_t): Likewise.
15489 (__int_least16_t): Likewise.
15490 (__uint_least16_t): Likewise.
15491 (__int_least32_t): Likewise.
15492 (__uint_least32_t): Likewise.
15493 (__int_least64_t): Likewise.
15494 (__uint_least64_t): Likewise.
15495 * sysdeps/generic/stdint.h (int_least8_t): Define using
15496 __int_least8_t.
15497 (int_least16_t): Define using __int_least16_t.
15498 (int_least32_t): Define using __int_least32_t.
15499 (int_least64_t): Define using __int_least64_t.
15500 (uint_least8_t): Define using __uint_least8_t.
15501 (uint_least16_t): Define using __uint_least16_t.
15502 (uint_least32_t): Define using __uint_least32_t.
15503 (uint_least64_t): Define using __uint_least64_t.
15504 * wcsmbs/uchar.h: Include <bits/types.h>.
15505 (char16_t): Define using __uint_least16_t conditional only on
15506 [!__USE_ISOCXX11].
15507 (char32_t): Define using __uint_least32_t conditional only on
15508 [!__USE_ISOCXX11].
15509 * wcsmbs/test-char-types.c: New file.
15510 * wcsmbs/Makefile (tests): Add test-char-types.
15511
15512 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15513 version to 4.0.1.
15514
15515 2018-02-07 Zack Weinberg <zackw@panix.com>
15516
15517 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15518 Delete all contents except for definitions of _G_HAVE_MMAP and
15519 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15520 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15521 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15522 change as above.
15523
15524 * libio/libio.h: Don't include bits/_G_config.h here.
15525 Include stddef.h with __need_wchar_t defined. Include
15526 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15527 Define _IO_iconv_t here, directly.
15528 Don't define _IO_HAVE_ST_BLKSIZE.
15529 * libio/libioP.h: Include _G_config.h here. Move include of
15530 shlib-compat.h up with rest of includes. Simplify conditionals
15531 controlling definition of _IO_JUMPS_OFFSET.
15532
15533 * csu/init.c: Remove always-true #if around entire file.
15534 Don't include stdio.h. Set _IO_stdin_used to hardwired
15535 constant 0x20001, and update commentary.
15536 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15537 Replace all uses of _G_va_list with __gnuc_va_list.
15538 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15539 instead of #if _IO_HAVE_ST_BLKSIZE.
15540 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15541 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15542 not #ifdef.
15543
15544 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15545 multiple-include guard to match.
15546 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15547 into this file.
15548 Remove preprocessor conditionals that are always true and/or
15549 redundant to other preprocessor conditionals in the same nest.
15550 Include shlib-compat.h unconditionally.
15551 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15552 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15553 defined after including stdio.h.
15554 Use __BEGIN_DECLS/__END_DECLS.
15555
15556 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15557 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15558 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15559
15560 2018-02-07 Zack Weinberg <zackw@panix.com>
15561
15562 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15563 New single-type headers split from _G_config.h.
15564 * libio/bits/types/cookie_io_functions_t.h
15565 * libio/bits/types/struct_FILE.h
15566 New single-type headers split from libio.h.
15567
15568 * libio/Makefile: Install the above new headers. Don't install
15569 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15570 bits/libio-ldbl.h.
15571 * libio/_G_config.h, libio/libio.h: Delete file.
15572
15573 * libio/bits/libio.h: Remove improper-inclusion guard.
15574 Include stdio.h and don't repeat anything that it does.
15575 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15576 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15577 __io_read_fn as cookie_read_function_t,
15578 __io_write_fn as cookie_write_function_t,
15579 __io_seek_fn as cookie_seek_function_t,
15580 __io_close_fn as cookie_close_function_t,
15581 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15582 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15583 here, in the "compatibility defines" section. Remove an #if 0
15584 block. Use the "body" macros from bits/types/struct_FILE.h to
15585 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15586 and _IO_ferror_unlocked.
15587 Move prototypes of __uflow and __overflow...
15588
15589 * libio/stdio.h: ...here. Don't include bits/libio.h.
15590 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15591 directly from stdarg.h. Include bits/types/__fpos_t.h,
15592 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15593 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15594 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15595 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15596 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15597 __ssize_t, not _IO_ssize_t. Unconditionally define
15598 BUFSIZ as 8192 and EOF as (-1).
15599
15600 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15601 macros from bits/types/struct_FILE.h instead of _IO_* macros
15602 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15603 instead of _IO_ssize_t.
15604 * libio/bits/stdio2.h: Similarly.
15605
15606 * libio/iolibio.h: Add multiple-include guard.
15607 Include bits/libio.h after stdio.h.
15608 * libio/libioP.h: Add multiple-include guard.
15609 Include stdio.h and bits/libio.h before iolibio.h.
15610
15611 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15612 * include/bits/types/cookie_io_functions_t.h
15613 * include/bits/types/struct_FILE.h: New wrappers.
15614
15615 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15616 Get definitions of _G_fpos_t and _G_fpos64_t from
15617 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15618 respectively. Remove improper-inclusion guards.
15619
15620 * conform/data/stdio.h-data: Update expectations of va_list.
15621 * scripts/check-installed-headers.sh: Remove special case for
15622 libio.h and _G_config.h.
15623
15624 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15625
15626 [BZ #15105]
15627 [BZ #19463]
15628 * include/sys/sysmacros.h [!_ISOMAC]
15629 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15630 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15631 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15632 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15633 libc_hidden_proto.
15634 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15635 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15636 Likewise.
15637 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15638 Undefine and redefine to add use __gnu_dev_ prefix.
15639 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15640 Likewise.
15641 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15642 and define as hidden inline function.
15643 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15644 Likewise.
15645 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15646 Likewise.
15647 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15648 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15649 (gnu_dev_minor): Likewise.
15650 (gnu_dev_makedev): Likewise.
15651 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15652 makedev.
15653 * posix/wordexp.c (exec_comm_child): Likewise.
15654 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15655 instead of minor and __gnu_dev_major instead of major.
15656 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15657 __gnu_dev_major instead of major.
15658 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15659 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15660 instead of gnu_dev_minor.
15661 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15662 (SLAVE_P): Likewise.
15663 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15664 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15665 instead of major.
15666
15667 [BZ #21313]
15668 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15669 in another place.
15670 * locale/weightwc.h (findidx): Likewise.
15671
15672 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15673
15674 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15675 (slowlog_inexact): Likewise
15676 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15677 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15678
15679 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15680
15681 [BZ #22797]
15682 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15683 missing second underscore to parameter name.
15684
15685 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15686
15687 [BZ #14508]
15688 [BZ #15512]
15689 [BZ #17082]
15690 [BZ #20530]
15691 * bits/byteswap.h: Update file comment. Do not include
15692 <bits/byteswap-16.h>.
15693 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15694 constant.
15695 (__bswap_16): Define as inline function.
15696 (__bswap_constant_32): Reformat definition.
15697 (__bswap_32): Always define as inline function, not macro, using
15698 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15699 otherwise __bswap_constant_32.
15700 (__bswap_constant_64): Reformat definition. Do not use
15701 __extension__ here.
15702 (__bswap_64): Always define as inline function, not macro. Use
15703 __extension__ on function definition. Use __builtin_bswap64 if
15704 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15705 * string/test-endian-file-scope.c: New file.
15706 * string/test-endian-sign-conversion.c: Likewise.
15707 * string/Makefile (headers): Remove bits/byteswap-16.h.
15708 (tests): Add test-endian-file-scope and
15709 test-endian-sign-conversion.
15710 (CFLAGS-test-endian-sign-conversion.c): New variable.
15711 * bits/byteswap-16.h: Remove file.
15712 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15713 * sysdeps/ia64/bits/byteswap.h: Likewise.
15714 * sysdeps/m68k/bits/byteswap.h: Likewise.
15715 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15716 * sysdeps/s390/bits/byteswap.h: Likewise.
15717 * sysdeps/tile/bits/byteswap.h: Likewise.
15718 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15719 * sysdeps/x86/bits/byteswap.h: Likewise.
15720
15721 [BZ #17721]
15722 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15723 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15724 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15725 199901L] (__restrict): Define to restrict.
15726
15727 [BZ #19667]
15728 * string/testcopy.c: Include <support/support.h>. Do not include
15729 <malloc.h>. Use <support/test-driver.c>.
15730 (main): Rename to do_test. Make static. Use xmalloc instead of
15731 malloc.
15732
15733 [BZ #13575]
15734 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15735 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15736 (SSIZE_MAX): Define to INT_MAX.
15737 * posix/test-ssize-max.c: New file.
15738 * posix/Makefile (tests): Add test-ssize-max.
15739
15740 [BZ #19668]
15741 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15742 <support/support.h>. Do not include <malloc.h>.
15743 (query_auxv): Use xmalloc instead of malloc.
15744
15745 [BZ #14553]
15746 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15747 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15748 instead of loff_t.
15749
15750 2018-02-06 Florian Weimer <fweimer@redhat.com>
15751
15752 [BZ #18023]
15753 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15754 Use scratch_buffer instead of extend_alloca.
15755
15756 2018-02-06 Zack Weinberg <zackw@panix.com>
15757
15758 * libio/stdio.h: Don't define getc or putc as macros.
15759 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15760 not _IO_getc and _IO_putc.
15761
15762 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15763 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15764
15765 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15766
15767 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15768 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15769
15770 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15771
15772 [BZ #14890]
15773 * elf/elf.h (NT_PRFPREG): New macro.
15774 (NT_S390_VXRS_LOW): Likewise.
15775 (NT_S390_VXRS_HIGH): Likewise.
15776 (NT_S390_GS_CB): Likewise.
15777 (NT_S390_GS_BC): Likewise.
15778 (NT_S390_RI_CB): Likewise.
15779
15780 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15781 (MAP_SYNC): New macro.
15782 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15783 Likewise.
15784 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15785 (MAP_SYNC): Likewise.
15786 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15787 (MAP_SYNC): Likewise.
15788 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15789 (MAP_SYNC): Likewise.
15790 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15791 (MAP_SYNC): Likewise.
15792 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15793 (MAP_SYNC): Likewise.
15794 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15795 (MAP_SYNC): Likewise.
15796 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15797 Likewise.
15798 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15799 Likewise.
15800
15801 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15802 (MAP_SHARED_VALIDATE): New macro.
15803 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15804 (MAP_SHARED_VALIDATE): Likewise.
15805
15806 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15807
15808 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15809 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15810 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15811
15812 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15813
15814 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15815 (DT_NUM): Updated to 35.
15816
15817 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15818
15819 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15820 __builtin_expect with __glibc_likely and __glibc_unlikely.
15821 (elf_machine_rela): Likewise.
15822 (elf_machine_lazy_rel): Likewise.
15823
15824 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15825
15826 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15827 __builtin_expect with __glibc_likely and __glibc_unlikely.
15828 (elf_machine_lazy_rel): Likewise.
15829
15830 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15831
15832 [BZ #22638]
15833 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15834 SHARED.
15835 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15836
15837 2018-02-05 Andreas Schwab <schwab@suse.de>
15838
15839 [BZ #22761]
15840 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15841 string.
15842
15843 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15844
15845 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15846 not check against PTHREAD_STACK_MIN.
15847
15848 2018-02-02 Sean McKean <smckean83@gmail.com>
15849
15850 [BZ #22735]
15851 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15852
15853 2018-02-02 Florian Weimer <fweimer@redhat.com>
15854
15855 [BZ #22753]
15856 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15857 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15858 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15859 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15860 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15861 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15862 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15863 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15864 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15865 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15866 * misc/tst-preadvwritev2.c (do_test): Call it.
15867 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15868
15869 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15870
15871 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15872
15873 * benchtests/bench-memcmp.c: Print json instead of plain text.
15874
15875 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15876 every test run.
15877
15878 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15879
15880 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15881 version to 4.15.
15882 (s390_sthyi): New syscall.
15883
15884 * sysdeps/generic/ldbl-classify-compat.h: New file.
15885 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15886 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15887 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15888 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15889 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15890 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15891 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15892 <ldbl-classify-compat.h>.
15893 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15894 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15895 <ldbl-classify-compat.h>.
15896 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15897 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15898 <ldbl-classify-compat.h>.
15899 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15900 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15901 <ldbl-classify-compat.h>.
15902 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15903 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15904 <ldbl-classify-compat.h>.
15905 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15906 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15907 <ldbl-classify-compat.h>.
15908 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15909 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15910 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15911 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15912 * sysdeps/microblaze/math_private.h: Likewise.
15913 * sysdeps/nios2/math_private.h: Likewise.
15914 * sysdeps/sh/math_private.h: Likewise.
15915
15916 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15917 * sysdeps/m68k/coldfire/math_private.h: ... here.
15918 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15919 * sysdeps/tile/math_private.h: Likewise.
15920 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15921 Remove macro.
15922 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15923 Likewise.
15924
15925 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15926 Remove macro.
15927 (libc_fetestexcept): Likewise.
15928 (libc_feupdateenv_test): Likewise.
15929 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15930 (libc_fetestexcept): Likewise.
15931 (libc_feupdateenv_test): Likewise.
15932 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15933 (libc_fetestexcept): Likewise.
15934 (libc_feupdateenv_test): Likewise.
15935 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15936 (libc_fetestexcept): Likewise.
15937 (libc_feupdateenv_test): Likewise.
15938
15939 * sysdeps/generic/math_private.h
15940 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15941 New inline function.
15942 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15943 Likewise.
15944
15945 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15946 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15947 * sysdeps/generic/math_private.h
15948 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15949 inline function.
15950 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15951 Likewise.
15952 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15953 Likewise.
15954 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15955 Likewise.
15956 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15957 Likewise.
15958 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15959 Likewise.
15960 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15961 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15962 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15963 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15964 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15965 (__fegetenv): Likewise.
15966 (fesetenv): Likewise.
15967 (__fesetenv): Likewise.
15968 (feupdateenv): Likewise.
15969 (__feupdateenv): Likewise.
15970 (fegetround): Likewise.
15971 (__fegetround): Likewise.
15972 (fesetround): Likewise.
15973 (__fesetround): Likewise.
15974
15975 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15976 (feraiseexcept): New macro.
15977 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15978 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15979 Remove macro.
15980 (__feraiseexcept): Likewise.
15981 (feclearexcept): Likewise.
15982 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15983 (__feraiseexcept): Likewise.
15984 (feclearexcept): Likewise.
15985 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15986 (__feraiseexcept): Likewise.
15987 (feclearexcept): Likewise.
15988 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15989 (__feraiseexcept): Likewise.
15990 (feclearexcept): Likewise.
15991 (fetestexcept): Likewise.
15992
15993 * sysdeps/m68k/coldfire/math-tests.h: New file.
15994
15995 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15996 * sysdeps/m68k/bits/fenv.h: ... here.
15997 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15998 not define.
15999 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16000 Likewise.
16001 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16002 Likewise.
16003 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16004 Likewise.
16005 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16006 Likewise.
16007 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16008 Define to 0.
16009 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16010 (__FE_UNDEFINED): New enum constant.
16011 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16012 Do not define.
16013 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16014 Likewise.
16015 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16016 Likewise.
16017 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16018 to match generic bits/fenv.h.
16019 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16020 Do not define.
16021
16022 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16023 packed on bits.
16024 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16025 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16026 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16027 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16028
16029 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16030 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16031 Joseph Myers <joseph@codesourcery.com>
16032
16033 [BZ #21314]
16034 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16035 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16036 computation using c.
16037 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16038 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16039 computation using c.
16040
16041 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16042
16043 * version.h (RELEASE): Set to "development".
16044 (VERSION): Set to "2.27.9000".
16045 * NEWS (2.28): New section.
16046
16047 * version.h (RELEASE): Set to "stable".
16048 (VERSION): Set to "2.27".
16049 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16050
16051 * NEWS: Add the list of bugs fixed in 2.27.
16052
16053 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16054
16055 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16056 against PTHREAD_STACK_MIN.
16057
16058 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16059
16060 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16061 New entries.
16062 (Rafal Luzynski, Andreas Schwab): Update.
16063
16064 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16065
16066 [BZ #10871]
16067 * NEWS: List the languages which actually use the alternative
16068 months feature in this release. Also explain that "alt_mon" and
16069 "ab_alt_mon" are optional.
16070
16071 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16072
16073 [BZ #22765]
16074 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16075
16076 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16077
16078 * manual/install.texi (Tools for Compilation): Update the newest
16079 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16080 * INSTALL: Regenerated.
16081
16082 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16083
16084 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16085 instead of __builtin_expect.
16086
16087 2018-01-30 Florian Weimer <fweimer@redhat.com>
16088
16089 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16090 data.
16091 * nss/tst-nss-getpwent.c (do_test): Likewise.
16092
16093 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16094
16095 [BZ #10871]
16096 * localedata/locales/hr_HR (mon): Rename to...
16097 (alt_mon): This.
16098 (mon): Import from CLDR (genitive case).
16099 (d_t_fmt): Update the comment.
16100
16101 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16102
16103 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16104 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16105 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16106
16107 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16108
16109 * mach/Versions: Fix version when __mach_host_self_ was added.
16110 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16111 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16112 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16113 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16114 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16115 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16116 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16117 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16118 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16119 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16120 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16121 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16122 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16123 || to respect codestyle.
16124 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16125 (do_test_bz20181): Rename accordingly.
16126 * malloc/malloc.c: Include <assert.h>.
16127 (assert): Do not define.
16128 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16129 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16130 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16131 * sysdeps/mach/hurd/hp-timing.h: New file.
16132 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16133
16134 2018-01-29 Darius Rad <darius@bluespec.com>
16135
16136 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16137
16138 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16139
16140 * sysdeps/init_array/crti.S (.section .init_array): Add
16141 PREINIT_FUNCTION when defined.
16142 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16143 * config.h.in: Regenerate.
16144 * manual/platform.texi: Add RISC-V documenation for
16145 __riscv_flush_icache.
16146 * sysdeps/riscv/__longjmp.S: New file.
16147 * sysdeps/riscv/backtrace.c: Likewise.
16148 * sysdeps/riscv/bits/endian.h: Likewise.
16149 * sysdeps/riscv/bits/setjmp.h: Likewise.
16150 * sysdeps/riscv/bits/wordsize.h: Likewise.
16151 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16152 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16153 * sysdeps/riscv/dl-trampoline.S: Likewise.
16154 * sysdeps/riscv/gccframe.h: Likewise.
16155 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16156 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16157 * sysdeps/riscv/machine-gmon.h: Likewise.
16158 * sysdeps/riscv/memusage.h: Likewise.
16159 * sysdeps/riscv/setjmp.S: Likewise.
16160 * sysdeps/riscv/sys/asm.h: Likewise.
16161 * sysdeps/riscv/tls-macros.h: Likewise.
16162 * sysdeps/riscv/dl-tls.h: New file.
16163 * sysdeps/riscv/libc-tls.c: Likewise.
16164 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16165 * sysdeps/riscv/nptl/tls.h: Likewise.
16166 * sysdeps/riscv/stackinfo.h: Likewise.
16167 * sysdeps/riscv/bits/fenv.h: New file.
16168 * sysdeps/riscv/e_sqrtl.c: Likewise.
16169 * sysdeps/riscv/fpu_control.h: Likewise.
16170 * sysdeps/riscv/math-tests.h: Likewise.
16171 * sysdeps/riscv/nofpu/Implies: Likewise.
16172 * sysdeps/riscv/sfp-machine.h: Likewise.
16173 * sysdeps/riscv/tininess.h: Likewise.
16174 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16175 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16176 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16177 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16178 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16179 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16180 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16181 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16182 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16183 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16184 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16185 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16186 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16187 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16188 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16189 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16190 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16191 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16192 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16193 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16194 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16195 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16196 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16197 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16198 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16199 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16200 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16201 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16202 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16203 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16204 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16205 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16206 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16207 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16208 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16209 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16210 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16211 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16212 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16213 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16214 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16215 * sysdeps/riscv/rvf/math_private.h: Likewise.
16216 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16217 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16218 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16219 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16220 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16221 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16222 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16223 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16224 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16225 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16226 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16227 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16228 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16229 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16230 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16231 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16232 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16233 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16234 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16236 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16237 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16240 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16242 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16245 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16246 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16247 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16249 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16251 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16252 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16253 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16254 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16258 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16259 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16260 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16261 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16262 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16263 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16264 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16265 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16266 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16267 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16268 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16269 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16270 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16271 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16272 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16273 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16275 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16276 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16277 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16278 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16279 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16280 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16281 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16282 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16283 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16284 * sysdeps/riscv/Implies: New file.
16285 * sysdeps/riscv/Makefile: Likewise.
16286 * sysdeps/riscv/configure: Likewise.
16287 * sysdeps/riscv/configure.ac: Likewise.
16288 * sysdeps/riscv/nptl/Makefile: Likewise.
16289 * sysdeps/riscv/preconfigure: Likewise.
16290 * sysdeps/riscv/rv64/Implies-after: Likewise.
16291 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16292 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16293 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16294 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16295 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16296 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16297 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16298 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16299 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16300 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16301 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16302 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16303 (Config): Likewise.
16304
16305 2018-01-29 Florian Weimer <fweimer@redhat.com>
16306
16307 [BZ #22701]
16308 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16309 libnsl_hidden_proto.
16310 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16311 libnsl_hidden_proto.
16312 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16313 * nis/Makefile (libnsl-routines): Add nss-default only for
16314 build-obsolete-nsl.
16315 * nis/nis_defaults.c (__nis_default_ttl): Add
16316 libnsl_hidden_nolink_def.
16317 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16318 declaration.
16319 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16320 * nis/ypclnt.c (yp_maplist): Likewise.
16321
16322 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16323
16324 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16325 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16326
16327 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16328
16329 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16330 clean -dxfq for git updates when replacing sources.
16331
16332 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16333 --disable-libcilkrts unconditionally, not just for the final GCC
16334 build for Hurd.
16335
16336 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16337 version to 4.15.
16338
16339 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16340
16341 [BZ #10871]
16342 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16343 case).
16344
16345 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16346
16347 [BZ #10871]
16348 * localedata/locales/be_BY (mon): Rename to...
16349 (alt_mon): This, then synchronize with CLDR (nominative case).
16350 (abmon): Rename to...
16351 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16352 (mon): Import from CLDR (genitive case).
16353 (abmon): Likewise.
16354 * localedata/locales/be_BY@latin (mon): Rename to...
16355 (alt_mon): This.
16356 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16357
16358 * localedata/locales/be_BY@latin (lang_name): Reworded to
16359 "biełaruskaja mova".
16360
16361 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16362
16363 [BZ #10871]
16364 * localedata/locales/el_CY (mon): Renamed to...
16365 (alt_mon): This.
16366 (mon): Import from CLDR (genitive case).
16367 * localedata/locales/el_GR: Likewise.
16368
16369 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16370
16371 [BZ #10871]
16372 * localedata/locales/ru_RU (mon): Rename to...
16373 (alt_mon): This.
16374 (abmon): Rename to...
16375 (ab_alt_mon): This.
16376 (mon): Import from CLDR (genitive case).
16377 (abmon): Copy from the old content except the 5th month which is
16378 now in the genitive case, even when abbreviated.
16379 * localedata/locales/ru_UA: Likewise.
16380 * time/tst-strptime.c (day_tests): Add an actual example of
16381 a difference between %b and %Ob in Russian.
16382
16383 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16384
16385 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16386 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16387 a `c' variable.
16388 * resolv/res-close.c: Include <stdlib.h>.
16389 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16390 <sys/wait.h>, <time.h>, <sys/uio.h>.
16391 (NOT_CANCEL_H): Add inclusion guard.
16392 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16393 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16394 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16395 return 0.
16396 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16397 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16398 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16399 instead of void *.
16400 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16401 timer_ptr2id to cast struct timer_node * to void *.
16402 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16403 --disable-libcilkrts to gcc configure.
16404 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16405 and make them the default for now.
16406 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16407 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16408 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16409 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16410 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16411 MACH_IPC_COMPAT.
16412 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16413 __task_terminate would ever return successfully.
16414 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16415 to global scope.
16416 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16417 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16418 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16419 critical section to make code simpler and avoid warning.
16420 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16421 critical section to make code simpler and avoid warning.
16422 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16423 const char * instead of char *.
16424 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16425 __hurd_file_name_split, hurd_file_name_split,
16426 __hurd_directory_name_split, hurd_directory_name_split,
16427 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16428 hurd_file_name_path_lookup): Make lookup function parameter take a
16429 const char *name instead of char *name.
16430 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16431 __hurd_directory_name_split): Likewise.
16432 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16433 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16434 * sysdeps/mach/hurd/check_native.c: New file.
16435 * sysdeps/mach/hurd/check_pf.c: New file.
16436 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16437 (__freeifaddrs): Define macro to freeifaddrs.
16438 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16439 * sysdeps/mach/libmachuser.abilist: New file.
16440 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16441 (do_test_bz20181): Rename accordingly.
16442 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16443 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16444 <sys/mount.h>.
16445 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16446 version only if __USE_EXTERN_INLINES is defined.
16447 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16448 __hurd_sockfail): Likewise.
16449 (_hurd_fd_get): Always declare functions, and provide inline versions
16450 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16451 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16452 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16453 _hurd_port_set): Always declare functions, and provide inline versions
16454 only if __USE_EXTERN_INLINES and _LIBC are defined and
16455 IS_IN(libc).
16456 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16457 _hurd_critical_section_unlock): Likewise.
16458 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16459 * __hurd_threadvar_location): Likewise.
16460 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16461 _hurd_userlink_clear): Likewise.
16462 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16463 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16464 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16465 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16466 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16467 __spin_lock_locked): Likewise.
16468 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16469 __spin_lock_locked): Likewise.
16470 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16471 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16472 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16473 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16474 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16475 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16476 _POSIX_NO_TRUNC): Define to 0.
16477 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16478 check size against PTHREAD_STACK_MIN.
16479 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16480 IS_IN(libpthread)]: Include <sigsetops.h>.
16481 * mach/Makefile (user-interfaces): Add mach/gnumach.
16482 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16483 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16484 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16485 instead of invalid -1.
16486 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16487 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16488 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16489 <net/ppp_defs.h>.
16490
16491 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16492
16493 * hurd/fcntl-internal.h: New file.
16494
16495 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16496
16497 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16498
16499 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16500
16501 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16502
16503 [BZ #22701]
16504 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16505 Build only shared objects.
16506
16507 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16508
16509 * README: Update for hppa.
16510
16511 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16512
16513 * sysdeps/sparc/fpu/libm-test-ulps: Update
16514 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16515
16516 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16517
16518 Revert:
16519
16520 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16521
16522 [BZ #22563]
16523 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16524 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16525 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16526 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16527 to feature_1.
16528
16529 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16530
16531 [BZ #22563]
16532 * bits/types/__cancel_jmp_buf_tag.h: New file.
16533 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16534 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16535 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16536 * nptl/Makefile (headers): Add
16537 bits/types/__cancel_jmp_buf_tag.h.
16538 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16539 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16540 * sysdeps/nptl/pthread.h: Include
16541 <bits/types/__cancel_jmp_buf_tag.h>.
16542 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16543 __cancel_jmp_buf.
16544 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16545
16546 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16547
16548 [BZ #10871]
16549 * localedata/locales/uk_UA (mon): Renamed to...
16550 (alt_mon): This.
16551 (alt_digits): "0" removed and then renamed to...
16552 (mon): This.
16553 (date_fmt): Definition changed not to use the alternative
16554 digits hack.
16555
16556 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16557
16558 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16559 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16560 * elf/elf.h (EF_RISCV_RVC): New define.
16561 (EF_RISCV_FLOAT_ABI): Likewise.
16562 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16563 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16564 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16565 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16566 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16567 define.
16568 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16569
16570 2018-01-25 Andreas Schwab <schwab@suse.de>
16571
16572 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16573 single quotes.
16574 * sysdeps/gnu/configure: Regenerate.
16575 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16576 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16578 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16579 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16580 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16581 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16582 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16583
16584 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16585
16586 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16587 URL, and run autoconf, make it the default for now.
16588
16589 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16590
16591 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16592 soft-float ColdFire configuration.
16593
16594 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16595 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16596 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16597
16598 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16599 MicroBlaze file.
16600
16601 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16602 ....
16603 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16604 ... here.
16605 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16606 New file.
16607
16608 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16609 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16610 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16611 file.
16612
16613 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16614
16615 [BZ #22742]
16616 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16617 Rename to __reserved and add comment.
16618 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16619 Rename to __reserved.
16620
16621 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16622
16623 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16624 i686-gnu configurations.
16625 (Context.run_builds): Include mig, gnumach and hurd in components
16626 considered.
16627 (Context.checkout): Add mig, gnumach and hurd to components.
16628 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16629 hurd.
16630 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16631 (Config.build): Install gnumach headers, build mig and install
16632 hurd headers for 'gnu' OS.
16633 (Config.install_gnumach_headers): New function.
16634 (Config.install_hurd_headers): Likewise.
16635 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16636 when building for 'gnu' OS.
16637
16638 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16639
16640 * manual/tunables.texi (Hardware Capability Tunables): Fix
16641 spelling.
16642
16643 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16644
16645 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16646 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16647 (ALTMON_11, ALTMON_12): Improve documentation.
16648 * manual/time.texi (strftime): Likewise.
16649
16650 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16651
16652 [BZ #10871]
16653 * localedata/locales/pl_PL: Alternative month names added,
16654 primary month names are genitive now.
16655 * time/tst-strptime.c (day_tests): Actually use a genitive case
16656 of a month name in Polish language.
16657
16658 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16659
16660 [BZ #10871]
16661 * manual/locale.texi: Document ALTMON_1..12 constants for
16662 nl_langinfo. Specify when to use ALTMON instead of MON.
16663 * manual/time.texi (strftime, strptime): Document GNU extension
16664 permitting O modifier with %B and %b. Specify when to use
16665 %OB instead of %B.
16666
16667 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16668
16669 [BZ #10871]
16670 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16671 names, define them as the same as abbreviated month names explicitly.
16672 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16673 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16674 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16675 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16676 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16677 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16678 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16679 _NL_WABALTMON_12): New enum constants.
16680 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16681 wab_alt_mon, and ab_alt_mon_defined members.
16682 (time_output): Output ab_alt_mon and wab_alt_mon members.
16683 (time_read): Read them, initialize them as copies of abmon and wabmon
16684 respectively if they are missing, initialize ab_alt_mon_defined.
16685 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16686 * locale/programs/locfile-kw.h: Regenerate.
16687 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16688 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16689 and ru_RU.UTF-8.
16690 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16691 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16692 (__strftime_internal): Handle %Ob and %Oh formats.
16693 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16694 (__strptime_internal): Handle %Ob and %Oh formats.
16695 * time/tst-strptime.c (day_tests): Add more tests to parse different
16696 forms of month names including the new %Ob format specifier.
16697
16698 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16699
16700 [BZ #10871]
16701 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16702 define them as the same as primary full month names explicitly.
16703 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16704 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16705 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16706 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16707 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16708 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16709 _NL_WALTMON_12): New enum constants.
16710 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16711 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16712 macros.
16713 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16714 walt_mon, and alt_mon_defined members.
16715 (time_output): Output alt_mon and walt_mon members.
16716 (time_read): Read them, initialize them as copies of mon and wmon
16717 respectively if they are missing, initialize alt_mon_defined.
16718 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16719 * locale/programs/locfile-kw.h: Regenerate.
16720 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16721 * localedata/tst-langinfo.c (map): Add tests for the new constants
16722 ALTMON_1 .. ALTMON_12.
16723 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16724 and pl_PL.UTF-8.
16725 * time/strftime_l.c (f_altmonth): New macro.
16726 (__strftime_internal): Handle %OB format.
16727 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16728 (__strptime_internal): Handle %OB format.
16729 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16730 of month names including the new %OB format specifier.
16731
16732 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16733
16734 [BZ #22685]
16735 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16736 from ABORT_TRANSACTION.
16737 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16738 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16739 ABORT_TRANSACTION_IMPL): Likewise.
16740 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16741 Linux code, but remove the code that aborts transactions.
16742
16743 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16744
16745 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16746
16747 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16748
16749 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16750 in date: "2004-14-09" should be "2004-09-14".
16751 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16752 "2003-15-09" should be "2003-09-15".
16753
16754 2018-01-18 Arjun Shankar <arjun@redhat.com>
16755
16756 [BZ #22343]
16757 [BZ #22774]
16758 CVE-2018-6485
16759 CVE-2018-6551
16760 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16761 after padding.
16762 (_int_memalign): check for integer overflow before calling
16763 _int_malloc.
16764 * malloc/tst-malloc-too-large.c: New test.
16765 * malloc/Makefile: Add tst-malloc-too-large.
16766
16767 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16768
16769 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16770 in date: "2017-24-07" should be "2017-07-24".
16771 * localedata/locales/mai_IN: Likewise.
16772 * localedata/locales/mai_NP: Likewise.
16773
16774 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16775
16776 * po/ru.po: Update translations.
16777
16778 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16779
16780 [BZ #22719]
16781 * sysdeps/hppa/backtrace.c: New file.
16782
16783 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16784
16785 [BZ #22715]
16786 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16787 align La_x86_64_retval to VEC_SIZE.
16788
16789 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16790
16791 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16792 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16793
16794 2018-01-16 Florian Weimer <fweimer@redhat.com>
16795
16796 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16797 Move tst-thread-exit-clobber ...
16798 [$(CXX)] (tests-unsupported): ... to here.
16799
16800 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16801
16802 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16803 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16804 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16805 (_dl_aarch64_cap_flags): Update.
16806 (_DL_HWCAP_COUNT): Update.
16807
16808 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16809
16810 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16811 (_DL_HWCAP_LAST): Remove.
16812 (_DL_HWCAP_COUNT): Move to ...
16813 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16814 (_DL_HWCAP_COUNT): ... here.
16815
16816 2018-01-16 Florian Weimer <fweimer@redhat.com>
16817
16818 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16819 mode with GNU extensions.
16820
16821 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16822
16823 * elf/elf.h (NT_ARM_SVE): Define.
16824
16825 2018-01-15 Florian Weimer <fweimer@redhat.com>
16826
16827 [BZ #22636]
16828 * nptl/tst-minstack-throw.cc: New file.
16829 * nptl/Makefile (tests): Add tst-minstack-throw.
16830 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16831 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16832
16833 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16834
16835 * scripts/build-many-glibcs.py (Context.checkout): Default
16836 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16837 version to 1.1.0.
16838
16839 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16840
16841 [BZ #22707]
16842 * elf/elf.h (DF_1_STUB): Define.
16843 (DF_1_PIE): Define.
16844
16845 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16846
16847 [BZ #22697]
16848 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16849 Do not add 0.5 to integer or out-of-range arguments.
16850
16851 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16852
16853 * po/bg.po: Update translations.
16854 * po/cs.po: Likewise.
16855 * po/de.po: Likewise.
16856 * po/ko.po: Likewise.
16857 * po/pl.po: Likewise.
16858 * po/sv.po: Likewise.
16859 * po/uk.po: Likewise.
16860 * po/vi.po: Likewise.
16861
16862 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16863
16864 * aarch64/start.S (_start): Use __wrap_main.
16865 (__wrap_main): New local symbol.
16866
16867 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16868
16869 [BZ #22679]
16870 CVE-2018-1000001
16871 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16872 generic_getcwd if the path returned by getcwd syscall is not absolute.
16873 * io/tst-getcwd-abspath.c: New test.
16874 * io/Makefile (tests): Add tst-getcwd-abspath.
16875
16876 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16877
16878 * malloc/malloc.c (malloc_consolidate): Add size check.
16879
16880 2018-01-12 Florian Weimer <fweimer@redhat.com>
16881
16882 * support/write_message.c (write_message): Preserve errno.
16883 * support/check.c (print_failure): Likewise.
16884 * support/support_test_verify_impl.c (support_test_verify_impl):
16885 Likewise.
16886 * support/support_test_compare_failure.c
16887 (support_test_compare_failure): Likewise.
16888
16889 2018-01-12 Florian Weimer <fweimer@redhat.com>
16890
16891 [BZ #22701]
16892 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16893 Prevent installation of libnsl.so.
16894 (libnsl-inhibit-o): Do not build (or install) static libraries.
16895
16896 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16897
16898 [BZ #22657]
16899 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16900 before the day number which may produce a double space.
16901 (date_fmt): Likewise.
16902
16903 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16904
16905 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16906 instead of fegetenv.
16907
16908 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16909
16910 [BZ #22702]
16911 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16912 comment to say exceptions are discarded.
16913 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16914 __fegetenv.
16915 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16916 be enabled.
16917
16918 2018-01-11 Florian Weimer <fweimer@redhat.com>
16919
16920 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16921 and error message.
16922
16923 2018-01-11 Florian Weimer <fweimer@redhat.com>
16924
16925 [BZ #22636]
16926 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16927 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16928
16929 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16930
16931 [BZ #22693]
16932 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16933 negative arguments in test for NaN or infinity argument.
16934
16935 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16936
16937 * po/libc.pot: Regenerate.
16938
16939 2018-01-10 Florian Weimer <fweimer@redhat.com>
16940
16941 [BZ #22636]
16942 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16943 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16944
16945 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16946
16947 * hurd/hurd/fd.h: Include <fcntl.h>
16948 (__hurd_at_flags): New function.
16949 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16950 with call to __hurd_at_flags.
16951 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16952 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16953 __faccessat
16954 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16955 (__access_noerrno): Use __faccessat_common instead of access_common.
16956 (__access): Likewise.
16957 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16958 with a call to __faccessat.
16959 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16960 (__faccessat_common): ... this. Move implementation of __access into it when
16961 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16962 reauthenticate_cwdir_at helper to implement AT mechanism.
16963 (__faccessat_noerrno): New function, just calls __faccessat_common.
16964 (__faccessat): New function, just calls __faccessat_common.
16965 (faccessat): Define weak alias.
16966
16967 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16968
16969 [BZ #22691]
16970 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16971 (CFLAGS-s_fmaxmagl.c): New variable.
16972 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16973
16974 [BZ #22690]
16975 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16976 long int for arguments of possibly overflowing addition or
16977 subtraction.
16978 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16979
16980 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16981
16982 [BZ #22688]
16983 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16984 (CFLAGS-e_remainderl.c): New variable.
16985
16986 [BZ #22687]
16987 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16988 variable.
16989 (CFLAGS-s_cacoshl.c): Likewise.
16990 (CFLAGS-s_casinhl.c): Likewise.
16991 (CFLAGS-s_catanl.c): Likewise.
16992 (CFLAGS-s_catanhl.c): Likewise.
16993 (CFLAGS-s_cexpl.c): Likewise.
16994 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16995 (CFLAGS-s_csinhl.c): Likewise.
16996 (CFLAGS-s_clogl.c): Likewise.
16997 (CFLAGS-s_clog10l.c): Likewise.
16998 (CFLAGS-s_csinl.c): Likewise.
16999 (CFLAGS-s_csqrtl.c): Likewise.
17000
17001 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17002 2017-01-09 Svante Signell <svante.signell@gmail.com>
17003
17004 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17005 (_hurd_exec_paths): New function.
17006 * hurd/hurd.h (_hurd_exec): Deprecate function.
17007 (_hurd_exec_paths): Declare function.
17008 * hurd/Versions: Export _hurd_exec_paths.
17009 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17010 (__execve): Use __getcwd to build absolute path, and use
17011 _hurd_exec_paths instead of _hurd_exec.
17012 * sysdeps/mach/hurd/spawni.c: Likewise.
17013 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17014 _hurd_exec.
17015
17016 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17017
17018 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17019 test instead of failing in case of ENOENT returned by posix_openpt.
17020
17021 2018-01-08 Florian Weimer <fweimer@redhat.com>
17022
17023 resolv: Support binary labels in test framework.
17024 * support/resolv_test.c (struct to_be_freed): Remove.
17025 (struct compressed_name): New.
17026 (allocate_compressed_name, ascii_tolower)
17027 (compare_compressed_name): New functions.
17028 (struct resolv_response_builder): Update type of
17029 compression_offsets for use with tsearch. Rempve to_be_freed.
17030 (response_push_pointer_to_free): Remove function.
17031 (resolv_response_add_name): Rewrite using struct compressed_name
17032 and tsearch instead of hsearch_r.
17033 (response_builder_allocate): Remove initialization of
17034 compression_offsets.
17035 (response_builder_free): Update for removal of to_be_freed. Use
17036 tdestroy instead of hdestroy_r.
17037 * resolv/Makefile (tests): Add tst-resolv-binary.
17038 (tst-resolv-binary): Link with -lresolv -lpthread.
17039
17040 2018-01-08 Florian Weimer <fweimer@redhat.com>
17041
17042 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17043 time. Pass positive flag instead of negative flag to
17044 support_test_compare_failure.
17045 (support_test_compare_failure): Change negative parameter to
17046 positive.
17047 * support/support_test_compare_failure.c (report)
17048 (support_test_compare_failure): Likewise.
17049 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17050 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17051
17052 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17053
17054 [BZ #22637]
17055 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17056 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17057 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17058 stacksize.
17059 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17060
17061 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17062
17063 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17064 Add s_sincosf-sse2 and s_sincosf-fma.
17065 (CFLAGS-s_sincosf-fma.c): New.
17066 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17067 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17068 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17069 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17070 __sincosf is defined.
17071
17072 2018-01-08 Florian Weimer <fweimer@redhat.com>
17073
17074 * nptl/tst-thread-exit-clobber.cc: New file.
17075 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17076 C++11 mode.
17077 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17078 (tests): Add tst-thread-exit-clobber.
17079 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17080
17081 2018-01-08 Florian Weimer <fweimer@redhat.com>
17082
17083 * support/check.h (support_static_assert): Define.
17084 (TEST_COMPARE): Use it.
17085
17086 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17087
17088 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17089 [!__RLIM_T_MATCHES_RLIM64_T]
17090 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17091 __getrlimit64. Add libc_hidden_weak.
17092
17093 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17094
17095 * elf/elf.h (R_RISCV_NONE): New define.
17096 (R_RISCV_32): Likewise.
17097 (R_RISCV_64): Likewise.
17098 (R_RISCV_RELATIVE): Likewise.
17099 (R_RISCV_COPY): Likewise.
17100 (R_RISCV_JUMP_SLOT): Likewise.
17101 (R_RISCV_TLS_DTPMOD32): Likewise.
17102 (R_RISCV_TLS_DTPMOD64): Likewise.
17103 (R_RISCV_TLS_DTPREL32): Likewise.
17104 (R_RISCV_TLS_DTPREL64): Likewise.
17105 (R_RISCV_TLS_TPREL32): Likewise.
17106 (R_RISCV_TLS_TPREL64): Likewise.
17107 * Makerules (make-link-multidir): Make directories before linking into
17108 them.
17109 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17110 define.
17111 (VDSO_HASH_LINUX_4_15): Likewise.
17112 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17113 in subdirectories of lib.
17114 * nptl/Makefile (/librt.so): Always depend on
17115 "$(shared-thread-library)".
17116
17117 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17118
17119 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17120 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17121 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17122 (___tls_get_addr).
17123 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17124 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17125 "-O2 -march=i686".
17126 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17127 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17128 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17129 * sysdeps/gnu/glob-lstat-compat.c: New file.
17130 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17131 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17132
17133 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17134
17135 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17136 Reserve 16 chars to reloc_addr before calling _itoa_word.
17137
17138 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17139
17140 [BZ #22678]
17141 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17142 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17143
17144 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17145 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17146
17147 * resource/tst-getrlimit.c: Add copyright header.
17148
17149 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17150 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17151
17152 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17153 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17154 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17155 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17156 instead.
17157 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17158 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17159 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17160 RLIM64_INFINITY): Fix values to match the kernel ones.
17161 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17162 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17163 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17164 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17165 getrlimit64@@GLIBC_2_27.
17166 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17167 and setrlimit64.
17168 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17169 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17170 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17171 setrlimit, getrlimit64 and setrlimit64.
17172
17173 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17174
17175 [BZ #22648]
17176 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17177 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17178
17179 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17180
17181 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17182 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17183 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17184
17185 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17186
17187 [BZ #15479]
17188 [BZ #22666]
17189 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17190 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17191
17192 [BZ #15479]
17193 [BZ #22665]
17194 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17195 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17196 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17197 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17198
17199 2018-01-04 Florian Weimer <fweimer@redhat.com>
17200
17201 [BZ #22667]
17202 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17203 Align the stack before calling exit.
17204 * stdlib/tst-makecontext-align.c: New file.
17205 * stdlib/Makefile (tests): Add tst-makecontext-align.
17206
17207 2018-01-04 Florian Weimer <fweimer@redhat.com>
17208
17209 Add support for calling dlvsym from libc.so.
17210 * include/dlfcn.h (__libc_dlvsym): Declare.
17211 * elf/Makefile (tests-static-internal): Add
17212 tst-libc_dlvsym-static.
17213 (tests-internal): Add tst-libc_dlvsym.
17214 (modules-names): Add tst-libc_dlvsym-dso.
17215 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17216 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17217 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17218 object tst-libc_dlvsym-dso.so needs to be built before running
17219 these tests.
17220 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17221 * elf/Versions: Export __libc_dlvsym.
17222 * elf/dl-libc.c (struct do_dlvsym_args): New.
17223 (do_dlvsym, __libc_dlvsym): New functions.
17224 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17225 (_dl_open_hook2): New variable.
17226 (__libc_register_dl_open_hook): Set it.
17227 * elf/tst-libc_dlvsym-dso.c: New file.
17228 * elf/tst-libc_dlvsym-static.c: Likewise.
17229 * elf/tst-libc_dlvsym.c: Likewise.
17230 * elf/tst-libc_dlvsym.h: Likewise.
17231
17232 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17233
17234 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17235 include <sys/mount.h>.
17236
17237 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17238
17239 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17240 Add __NO_MATH_ERRNO__ check.
17241
17242 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17243
17244 * sysdeps/mips/mips32/libm-test-ulps: Update.
17245 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17246
17247 2018-01-02 Florian Weimer <fweimer@redhat.com>
17248
17249 * misc/tst-pselect.c: Add copyright header.
17250
17251 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17252
17253 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17254 comment.
17255 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17256 comment.
17257 (settrlimit): Rename into setrlimit.
17258 (__sttrlimit): Rename into __setrlimit.
17259
17260 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17261 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17262 never defined in that case.
17263
17264 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17265
17266 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17267
17268 * sysdeps/arm/libm-test-ulps: Update.
17269
17270 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17271 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17272
17273 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17274
17275 * NEWS: Add cosf and sincosf to list of optimized functions.
17276
17277 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17278
17279 [BZ #22660]
17280 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17281 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17282 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17283 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17284
17285 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17286
17287 [BZ #22433]
17288 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17289
17290 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17291 making a copy of it.
17292
17293 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17294
17295 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17296 trailing whitespace removed.
17297 * scripts/config.guess: Update to version 2018-01-01.
17298 * scripts/config.sub: Update to version 2018-01-01.
17299 * scripts/move-if-change: Update from gnulib.
17300
17301 * NEWS: Update copyright dates.
17302 * catgets/gencat.c (print_version): Likewise.
17303 * csu/version.c (banner): Likewise.
17304 * debug/catchsegv.sh: Likewise.
17305 * debug/pcprofiledump.c (print_version): Likewise.
17306 * debug/xtrace.sh (do_version): Likewise.
17307 * elf/ldconfig.c (print_version): Likewise.
17308 * elf/ldd.bash.in: Likewise.
17309 * elf/pldd.c (print_version): Likewise.
17310 * elf/sotruss.sh: Likewise.
17311 * elf/sprof.c (print_version): Likewise.
17312 * iconv/iconv_prog.c (print_version): Likewise.
17313 * iconv/iconvconfig.c (print_version): Likewise.
17314 * locale/programs/locale.c (print_version): Likewise.
17315 * locale/programs/localedef.c (print_version): Likewise.
17316 * login/programs/pt_chown.c (print_version): Likewise.
17317 * malloc/memusage.sh (do_version): Likewise.
17318 * malloc/memusagestat.c (print_version): Likewise.
17319 * malloc/mtrace.pl: Likewise.
17320 * manual/libc.texinfo: Likewise.
17321 * nptl/version.c (banner): Likewise.
17322 * nscd/nscd.c (print_version): Likewise.
17323 * nss/getent.c (print_version): Likewise.
17324 * nss/makedb.c (print_version): Likewise.
17325 * posix/getconf.c (main): Likewise.
17326 * scripts/test-installation.pl: Likewise.
17327 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17328
17329 * All files with FSF copyright notices: Update copyright dates
17330 using scripts/update-copyrights.
17331 * locale/programs/charmap-kw.h: Regenerated.
17332 * locale/programs/locfile-kw.h: Likewise.
17333
17334 2017-12-31 Zack Weinberg <zackw@panix.com>
17335
17336 * libio/bits/libio-ldbl.h: Correct check for improper
17337 inclusion. Add own multiple include guard.
17338
17339 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17340 Dmitry V. Levin <ldv@altlinux.org>
17341
17342 [BZ #22625]
17343 CVE-2017-16997
17344 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17345 string token expansion. Check for NULL pointer or empty string possibly
17346 returned by expand_dynamic_string_token.
17347 (decompose_rpath): Check for empty path after dynamic string
17348 token expansion.
17349
17350 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17351
17352 [BZ #22433]
17353 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17354
17355 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17356 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17357 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17358 and PTRACE_SYSCALL.
17359 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17360 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17361 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17362 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17363 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17364 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17365
17366 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17367 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17368 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17369 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17370 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17371 bits/ptrace-shared.h.
17372 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17373 <bits/ptrace-shared.h>.
17374 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17375 __ptrace_peeksiginfo_flags, ptrace): Remove.
17376 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17377 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17378 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17379 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17380 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17381
17382 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17383
17384 [BZ #17804]
17385 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17386 end of the loop. Improve comments.
17387
17388 2017-12-29 Zack Weinberg <zackw@panix.com>
17389
17390 [BZ #22615]
17391 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17392 might be set on success.
17393
17394 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17395
17396 [BZ #22611]
17397 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17398 is unchanged on success.
17399
17400 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17401
17402 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17403 updated.
17404 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17405 expand_dynamic_string_token): Likewise.
17406 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17407 is_path argument.
17408
17409 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17410 contains ':'.
17411
17412 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17413 is set and name contains ':', and all code depending on these checks.
17414
17415 2017-12-24 Zack Weinberg <zackw@panix.com>
17416
17417 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17418 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17419 respectively.
17420 * libio/libio.h: Rename the original version of this file to
17421 libio/bits/libio.h. Error out if not included by stdio.h or the
17422 stub libio.h.
17423 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17424 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17425 if not included by bits/libio.h or the stub _G_config.h.
17426 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17427 sysdeps/unix/sysv/linux/bits. Error out if not included by
17428 bits/libio.h or the stub _G_config.h.
17429 * libio/stdio.h: Include bits/libio.h, not libio.h.
17430 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17431 well as libio.h and _G_config.h.
17432
17433 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17434 * libio/strfile.h, stdio-common/vfscanf.c
17435 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17436 Include stdio.h, not _G_config.h nor libio.h.
17437 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17438 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17439
17440 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17441
17442 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17443
17444 [BZ #22347]
17445 * stdlib/getrandom.c (getrandom): Fix comment.
17446 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17447
17448 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17449
17450 [BZ #21161]
17451 * manual/arith.texi (strtoul): Fix a typo.
17452
17453 [BZ #22596]
17454 * manual/arith.texi (finite): Fix the description of the return
17455 value.
17456
17457 2017-12-22 Eric Blake <ebb9@byu.net>
17458
17459 Avoid gcc warnings on cygwin
17460 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17461 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17462 Avoid unused variable.
17463
17464 2017-12-22 Florian Weimer <fweimer@redhat.com>
17465
17466 * io/Makefile (routines): Add copy_file_range.
17467 (tests): Add tst-copy_file_range.
17468 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17469 * io/Versions (GLIBC_2.27): Export copy_file_range.
17470 * io/copy_file_range-compat.c: New file.
17471 * io/copy_file_range.c: Likewise.
17472 * io/tst-copy_file_range-compat.c: Likewise.
17473 * io/tst-copy_file_range.c: Likewise.
17474 * manual/llio.texi (Copying File Data): New section.
17475 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17476 * support/Makefile (libsupport-routines): Add support-xfstat,
17477 xftruncate, xlseek.
17478 * support/support-xfstat.c: New file.
17479 * support/xftruncate.c: Likewise.
17480 * support/xlseek.c: Likewise.
17481 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17482 * sysdeps/unix/sysv/linux/**.abilist: Update.
17483 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17484
17485 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17486
17487 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17488 disable-multi-arch variant to aarch64-linux-gnu.
17489
17490 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17491
17492 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17493 trailing whitespace removed.
17494 * scripts/config.guess: Update to version 2017-12-17.
17495 * scripts/config.sub: Update to version 2017-11-23.
17496 * scripts/install-sh: Update to version 2017-09-23.17.
17497 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17498
17499 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17500
17501 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17502 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17503 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17504 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17505 * sysdeps/tile/crtn.S: Likewise.
17506 * sysdeps/tile/dl-start.S (_start): Likewise.
17507 * sysdeps/tile/dl-trampoline.S: Likewise.
17508 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17509 * sysdeps/tile/start.S (_start): Likewise.
17510 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17511 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17512 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17513 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17514 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17515 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17516 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17517
17518 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17519 comment.
17520 * sysdeps/tile/preconfigure: Remove tilegx folder.
17521 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17522 * sysdeps/tile/Implies: ... here.
17523 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17524 * sysdeps/tile/Makefile: ... here.
17525 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17526 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17527 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17528 * sysdeps/tile/bits/wordsize.h: ... here.
17529 * sysdeps/tile/tilegx/*: Move to ...
17530 * sysdeps/tile/*: ... here.
17531 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17532 * sysdeps/tile/tilegx32/Implies: ... here.
17533 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17534 * sysdeps/tile/tilegx64/Implies: ... here.
17535 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17536 to ...
17537 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17538 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17539 * sysdeps/unix/sysv/linux/tile/*: ... here.
17540 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17541 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17542 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17543 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17544
17545 * README: Remove tilepro-*-linux-gnu from supported architecture.
17546 * scripts/build-many-glibcs.py: Likewise.
17547 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17548 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17549 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17550 elf_machine_matches_host, elf_machine_dynamic,
17551 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17552 howto, elf_machine_rela): Likewise.
17553 * sysdeps/tile/dl-start.S (_start): Likewise.
17554 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17555 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17556 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17557 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17558 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17559 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17560 Likewise.
17561 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17562 * sysdeps/tile/preconfigure: Likewise.
17563 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17564 POINTER_CHK_GUARD): Likewise.
17565 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17566 * sysdeps/tile/start.S (_start): Likewise.
17567 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17568 Likewise.
17569 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17570 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17571 CMOVNEZ): Remove.
17572 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17573 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17574 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17575 Likewise.
17576 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17577 * sysdeps/tile/tilepro/Implies: Remove file.
17578 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17579 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17580 * sysdeps/tile/tilepro/memchr.c: Likewise.
17581 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17582 * sysdeps/tile/tilepro/memset.c: Likewise.
17583 * sysdeps/tile/tilepro/memusage.h: Likewise.
17584 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17585 * sysdeps/tile/tilepro/strchr.c: Likewise.
17586 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17587 * sysdeps/tile/tilepro/strlen.c: Likewise.
17588 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17589 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17590 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17591 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17592 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17594 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17595 Likewise.
17596 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17608 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17609 tilepro mention in comment.
17610
17611 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17612 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17613 * nptl/pthread_join_common.c: New file: common function used on
17614 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17615 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17616 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17617 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17618 (cleanup): Move definition to pthread_join_common.c.
17619 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17620 Remove superflous checks.
17621 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17622 Likewise.
17623
17624 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17625
17626 * sysdeps/aarch64/libm-test-ulps: Update.
17627
17628 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17629
17630 * sysdeps/aarch64/memset.S (MEMSET): Define.
17631
17632 2017-12-20 Florian Weimer <fweimer@redhat.com>
17633
17634 [BZ #22635]
17635 nptl: Provide full implementation of pthread_self in libc.so.
17636 * nptl/Makefile (routines): Add pthread_self.
17637 (libpthread-routines): Replace pthread_self with
17638 compat-pthread_self.
17639 * nptl/forward.c (pthread_self): Remove.
17640 * nptl/nptl-init.c (pthread_functions): Do not initialize
17641 ptr_pthread_self.
17642 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17643 * nptl/compat-pthread_self.c: New file.
17644 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17645 Remove ptr_pthread_self.
17646
17647 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17648
17649 * posix/regcomp.c: Fix spelling in comments.
17650 * posix/regex.h: Likewise.
17651 * posix/regex_internal.c: Likewise.
17652 * posix/regexec.c: Likewise.
17653
17654 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17655
17656 [BZ #22377]
17657 * math/Makefile [C++] (tests): Add test for iseqsig.
17658 * math/math.h [C++] (iseqsig): New implementation, which does
17659 not rely on __MATH_TG/__builtin_types_compatible_p.
17660 * math/test-math-iseqsig.cc: New file.
17661 * sysdeps/powerpc/powerpc64le/Makefile
17662 (CFLAGS-test-math-iseqsig.cc): New variable.
17663
17664 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17665
17666 * elf/dl-load.c (is_trusted_path): Remove.
17667 (fillin_rpath): Remove check_trusted argument and its use,
17668 all callers changed.
17669
17670 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17671
17672 [BZ #22630]
17673 * Makeconfig (link-pie-before-libc): Replace -pie with
17674 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17675 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17676 (tst-dlopen-aout-no-pie): New.
17677 (LDFLAGS-tst-prelink): Removed.
17678 (tst-prelink-no-pie): New.
17679 (LDFLAGS-tst-main1): Removed.
17680 (tst-main1-no-pie): New.
17681 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17682 (tst-gmon-no-pie): New.
17683
17684 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17685
17686 * manual/install.texi: Document that --enable-static-pie
17687 implies PIE.
17688 * INSTALL: Regenerated.
17689
17690 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17691
17692 [BZ #21309]
17693 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17694 unsigned.
17695
17696 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17697
17698 Revert:
17699
17700 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17701
17702 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17703
17704 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17705
17706 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17707 <errno.h>. Include "eexp.tbl".
17708 (half): New constant.
17709 (one): Likewise.
17710 (__ieee754_exp): Rewrite.
17711 (__slowexp): Remove prototype.
17712 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17713 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17714 * sysdeps/i386/fpu/slowexp.c: Likewise.
17715 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17716 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17717 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17718 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17719 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17720 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17721 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17722 comment.
17723 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17724 (CPPFLAGS-slowexp.c): Remove variable.
17725 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17726 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17727 (CFLAGS-slowexp-fma.c): Remove variable.
17728 (CFLAGS-slowexp-fma4.c): Likewise.
17729 (CFLAGS-slowexp-avx.c): Likewise.
17730 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17731 define as macro.
17732 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17733 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17734 * math/Makefile (type-double-routines): Remove slowexp.
17735 * manual/probes.texi (slowexp_p6): Remove.
17736 (slowexp_p32): Likewise.
17737
17738 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17739
17740 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17741 arithmetic.
17742
17743 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17744
17745 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17746
17747 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17748
17749 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17750
17751 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17752 <errno.h>. Include "eexp.tbl".
17753 (half): New constant.
17754 (one): Likewise.
17755 (__ieee754_exp): Rewrite.
17756 (__slowexp): Remove prototype.
17757 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17758 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17759 * sysdeps/i386/fpu/slowexp.c: Likewise.
17760 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17761 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17762 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17763 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17764 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17765 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17766 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17767 comment.
17768 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17769 (CPPFLAGS-slowexp.c): Remove variable.
17770 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17771 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17772 (CFLAGS-slowexp-fma.c): Remove variable.
17773 (CFLAGS-slowexp-fma4.c): Likewise.
17774 (CFLAGS-slowexp-avx.c): Likewise.
17775 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17776 define as macro.
17777 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17778 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17779 * math/Makefile (type-double-routines): Remove slowexp.
17780 * manual/probes.texi (slowexp_p6): Remove.
17781 (slowexp_p32): Likewise.
17782
17783 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17784 James Clarke <jrtc27@jrtc27.com>
17785
17786 [BZ #22603]
17787 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17788 addition.
17789
17790 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17791
17792 [BZ #22605]
17793 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17794 code.
17795
17796 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17797
17798 [BZ #22563]
17799 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17800 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17801 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17802 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17803 to feature_1.
17804
17805 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17806
17807 [BZ #22563]
17808 * bits/types/__cancel_jmp_buf_tag.h: New file.
17809 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17810 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17811 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17812 * nptl/Makefile (headers): Add
17813 bits/types/__cancel_jmp_buf_tag.h.
17814 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17815 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17816 * sysdeps/nptl/pthread.h: Include
17817 <bits/types/__cancel_jmp_buf_tag.h>.
17818 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17819 __cancel_jmp_buf.
17820 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17821
17822 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17823
17824 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17825 --enable-static-pie variants to x86_64, x32 and i686.
17826
17827 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17828
17829 [BZ #22631]
17830 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17831 argument for attrubutes. All callers changed.
17832 (__inline_mathop1): Likewise. All callers changed.
17833 (__inline_mathop): Likewise. All callers changed.
17834 [__USE_MISC] (scalbn): Use __inline_forward instead of
17835 __inline_forward_c.
17836 [__USE_ISOC99] (scalbln): Likewise.
17837 [__USE_ISOC99] (nearbyint): Likewise.
17838 [__USE_ISOC99] (lrint): Likewise.
17839 [__USE_MISC] (scalbnf): Likewise.
17840 [__USE_ISOC99] (scalblnf): Likewise.
17841 [__USE_ISOC99] (nearbyintf): Likewise.
17842 [__USE_ISOC99] (lrintf): Likewise.
17843 [__USE_MISC] (scalbnl): Likewise.
17844 [__USE_ISOC99] (scalblnl): Likewise.
17845 [__USE_ISOC99] (nearbyintl): Likewise.
17846 [__USE_ISOC99] (lrintl): Likewise.
17847 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17848 __inline_mathop and __m81_defun changed.
17849
17850 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17851 CPU or FPU for ARM hard-float configurations.
17852
17853 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17854
17855 * nptl/tst-attr3.c: Include <libc-diag.h>.
17856 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17857
17858 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17859
17860 * string/tester.c (test_strncat): Also disable -Warray-bounds
17861 warnings for two tests.
17862
17863 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17864
17865 [BZ #22614]
17866 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17867 $(cc-pie-default) == yes.
17868 * config.make.in (cc-pie-default): New.
17869 * configure.ac (libc_cv_pie_default): Renamed to ...
17870 (libc_cv_cc_pie_default): This.
17871 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17872 * configure: Regenerated.
17873
17874 2017-12-18 Florian Weimer <fweimer@redhat.com>
17875
17876 [BZ #20204]
17877 ld.so: Harden dl-libc/libdl hooks.
17878 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17879 (rtld_active): New function.
17880 * dlfcn/dladdr.c (__dladdr): Call it.
17881 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17882 * dlfcn/dlclose.c (__dlcose): Likewise.
17883 * dlfcn/dlerror.c (__dlerror): Likewise.
17884 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17885 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17886 * dlfcn/dlopen.c (__dlopen): Likewise.
17887 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17888 * dlfcn/dlsym.c (__dlsym): Likewise.
17889 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17890 * libio/vtables.c (_IO_vtable_check): Likewise.
17891 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17892 (__libc_dlclose): Likewise.
17893 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17894 assignment.
17895
17896 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17897
17898 [BZ #22446]
17899 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17900 buffers for readlink input and output.
17901
17902 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17903
17904 [BZ #22624]
17905 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17906 inhibit_stack_protector.
17907
17908 [BZ #22624]
17909 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17910 inhibit_stack_protector.
17911
17912 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17913
17914 [BZ #22627]
17915 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17916 code and invocation.
17917
17918 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17919
17920 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17921
17922 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17923
17924 [BZ #22505]
17925 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17926
17927 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17928
17929 * sysdeps/s390/fpu/libm-test-ulps: Update.
17930
17931 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17932
17933 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17934
17935 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17936
17937 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17938 constants to s_sincosf.h file.
17939 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17940 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17941 implementation.
17942 * sysdeps/ieee754/flt-32/s_sincosf.h:
17943 New file.
17944
17945 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17946
17947 [BZ #14681]
17948 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17949 before mtrace.
17950
17951 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17952
17953 [BZ #19574]
17954 * INSTALL: Regenerated.
17955 * Makeconfig (real-static-start-installed-name): New.
17956 (pic-default): Updated for --enable-static-pie.
17957 (pie-default): New for --enable-static-pie.
17958 (default-pie-ldflag): Likewise.
17959 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17960 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17961 Replace $(static-start-installed-name) with
17962 $(real-static-start-installed-name).
17963 (+prectorT): Updated for --enable-static-pie.
17964 (+postctorT): Likewise.
17965 (CFLAGS-.o): Add $(pie-default).
17966 (CFLAGS-.op): Likewise.
17967 * NEWS: Mention --enable-static-pie.
17968 * config.h.in (ENABLE_STATIC_PIE): New.
17969 * configure.ac (--enable-static-pie): New configure option.
17970 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17971 (have-static-pie): Likewise.
17972 Enable static PIE if linker supports --no-dynamic-linker.
17973 (ENABLE_STATIC_PIE): New AC_DEFINE.
17974 (enable-static-pie): New LIBC_CONFIG_VAR.
17975 * configure: Regenerated.
17976 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17977 gr$(start-installed-name) for --enable-static-pie.
17978 (extra-objs): Likewise.
17979 (install-lib): Likewise.
17980 (extra-objs): Add static-reloc.o and static-reloc.os
17981 ($(objpfx)$(start-installed-name)): Also depend on
17982 $(objpfx)static-reloc.o.
17983 ($(objpfx)r$(start-installed-name)): New.
17984 ($(objpfx)g$(start-installed-name)): Also depend on
17985 $(objpfx)static-reloc.os.
17986 ($(objpfx)gr$(start-installed-name)): New.
17987 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17988 in libc.a.
17989 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17990 initimage.
17991 * csu/static-reloc.c: New file.
17992 * elf/Makefile (routines): Add dl-reloc-static-pie.
17993 (elide-routines.os): Likewise.
17994 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17995 (tst-tls1-static-non-pie-no-pie): New.
17996 * elf/dl-reloc-static-pie.c: New file.
17997 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17998 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17999 STATIC_PIE_BOOTSTRAP.
18000 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18001 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18002 (tests-static): Likewise.
18003 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18004 (tst-gmon-static-no-pie): New.
18005 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18006 (CRT-tst-gmon-static-pie): Likewise.
18007 (tst-gmon-static-pie-ENV): Likewise.
18008 (tests-special): Likewise.
18009 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18010 (clean-tst-gmon-static-pie-data): Likewise.
18011 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18012 * gmon/tst-gmon-static-pie.c: New file.
18013 * manual/install.texi: Document --enable-static-pie.
18014 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18015 (_dl_get_dl_main_map): Likewise.
18016 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18017 * sysdeps/x86_64/configure.ac: Likewise.
18018 * sysdeps/i386/configure: Regenerated.
18019 * sysdeps/x86_64/configure: Likewise.
18020 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18021 (ASFLAGS-.op): Likewise.
18022
18023 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18024
18025 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18026 * posix/tst-mmap-offset.c (fname): Use /tmp.
18027 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18028
18029 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18030
18031 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18032
18033 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18034
18035 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18036 errno.
18037
18038 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18039
18040 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18041 --with-float=hard for arm-linux-gnueabihf configurations.
18042
18043 [BZ #14121]
18044 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18045 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18046 ($(mo-installed)): Use $(objpfx)%.mo.
18047 (realclean): Remove rule.
18048
18049 * po/Makefile (linguas): Remove rule and dependencies.
18050 (linguas.mo): Likewise.
18051 (.PHONY): Do not depend on linguas and linguas.mo.
18052 (podir): Remove variable.
18053 (pofiles): Likewise.
18054 [$(pofiles)] (%.po): Remove rule.
18055
18056 * sysdeps/sparc/sparc32/Makefile
18057 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18058 start-of-line whitespace in argument of echo.
18059 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18060 with whitespace. Generate __wrap_.udiv alias.
18061 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18062 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18063 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18064 * sysdeps/sparc/sparc32/urem.S: Likewise.
18065
18066 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18067
18068 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18069 for aligned inputs.
18070
18071 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18072
18073 * benchtests/bench-strcmp.c: Print output in JSON format.
18074
18075 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18076
18077 2017-12-14 Florian Weimer <fweimer@redhat.com>
18078
18079 [BZ #22607]
18080 CVE-2017-1000409
18081 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18082 the expanded path string.
18083
18084 2017-12-14 Florian Weimer <fweimer@redhat.com>
18085
18086 [BZ #22606]
18087 CVE-2017-1000408
18088 * elf/dl-load.c (system_dirs): Update comment.
18089 (nsystem_dirs_len): Use array_length.
18090 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18091
18092 2017-12-14 Florian Weimer <fweimer@redhat.com>
18093
18094 Simplify compiling most of support/ outside of glibc.
18095 * support/check_addrinfo.c: Include <string.h>.
18096 * support/check_dns_packet.c: Likewise.
18097 * support/check_hostent.c: Likewise.
18098 * support/support_can_chroot.c: Include <support/xunistd.h>.
18099 * support/support_format_addrinfo.c: Include <stdlib.h>
18100 * support/support_format_dns_packet.c: Include <stdbool.h>.
18101 * support/support_format_hostent.c: Include <stdlib.h>.
18102 * support/support_format_netent.c: Likewise.
18103 * support/support_write_string.c: Include <support/xunistd.h>.
18104 * support/xdlfcn.c: Include <stddef.h>.
18105
18106 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18107
18108 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18109
18110 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18111 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18112
18113 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18114 (sysdeps_routines): Add memset-niagara7.
18115 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18116 Likewise.
18117 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18118 file.
18119 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18120 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18121 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18122 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18123 Add niagara7 option.
18124 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18125 memset.
18126
18127 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18128 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18129 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18130 Likewise.
18131 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18132 New file.
18133 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18134 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18135 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18136 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18137 and __memmove_niagara7.
18138 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18139 Add niagara7 option.
18140 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18141 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18142 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18143 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18144 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18145
18146 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18147
18148 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18149 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18150 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18151 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18152
18153 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18154 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18155 _dl_sparc_cap_flags array.
18156 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18157
18158 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18159
18160 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18161 time whenever possible.
18162
18163 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18164
18165 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18166 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18167
18168 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18169
18170 * soft-fp/fmadf4.c: Move to ....
18171 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18172 * soft-fp/fmasf4.c: Move to ....
18173 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18174 * soft-fp/fmatf4.c: Move to ....
18175 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18176 * sysdeps/ieee754/soft-fp/Makefile: New file.
18177 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18178 * sysdeps/arm/preconfigure: Regenerated.
18179 * sysdeps/arm/nofpu/Implies: New file.
18180 * sysdeps/arm/s_fma.c: Remove file.
18181 * sysdeps/arm/s_fmaf.c: Likewise.
18182 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18183 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18184 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18185 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18186 * sysdeps/microblaze/s_fma.c: Remove file.
18187 * sysdeps/microblaze/s_fmaf.c: Likewise.
18188 * sysdeps/mips/mips32/nofpu/Implies: New file.
18189 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18190 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18191 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18192 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18193 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18194 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18195 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18196 implementation.
18197 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18198 * sysdeps/nios2/s_fma.c: Remove file.
18199 * sysdeps/nios2/s_fmaf.c: Likewise.
18200 * sysdeps/sh/nofpu/Implies: New file.
18201 * sysdeps/sh/s_fma.c: Remove file.
18202 * sysdeps/sh/s_fmaf.c: Likewise.
18203 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18204 * sysdeps/tile/s_fma.c: Remove file.
18205 * sysdeps/tile/s_fmaf.c: Likewise.
18206
18207 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18208
18209 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18210 Add s_cosf-sse2 and s_cosf-fma.
18211 (CFLAGS-s_cosf-fma.c): New.
18212 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18213 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18214 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18215
18216 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18217
18218 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18219
18220 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18221
18222 * libio/Makefile (tests): Add tst-bz22415.
18223 (tst-bz22415-ENV): New rule.
18224 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18225 (tests-special): Add tst-bz22415-mem.out.
18226 ($(objpfx)tst-bz22415-mem.out): New rule.
18227 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18228 in case of a successful seek operation.
18229 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18230 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18231 buffer is required.
18232 * libio/tst-bz22415.c: New test.
18233
18234 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18235
18236 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18237
18238 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18239 __IPC_64 to 0 to avoid IPC_64 being set.
18240
18241 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18242
18243 [BZ #22593]
18244 * math/bits/mathcalls.h (nextafter): Remove const.
18245 (nexttoward): Likewise.
18246
18247 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18248
18249 * configure.ac (--with-fp): Remove configure option.
18250 (with_fp_cond): New variable.
18251 (libc_cv_with_fp): New configure test. Use this variable instead
18252 of with_fp.
18253 * configure: Regenerated.
18254 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18255 * manual/install.texi (Configuring and compiling): Remove
18256 --without-fp.
18257 * INSTALL: Regenerated.
18258 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18259 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18260 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18261 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18262 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18263 use --without-fp to configure glibc.
18264
18265 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18266
18267 * manual/locale.texi (nl_langinfo): Fix a typo.
18268
18269 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18270
18271 [BZ #22588]
18272 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18273
18274 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18275
18276 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18277 (CFLAGS-argp-parse.c): Likewise.
18278 (CFLAGS-argp-fmtstream.c): Likewise.
18279 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18280 (CPPFLAGS-sha512-crypt.c): Likewise.
18281 (CPPFLAGS-md5-crypt.c): Likewise.
18282 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18283 (CFLAGS-stack_chk_fail_local.c): Likewise.
18284 (CFLAGS-backtrace.c): Likewise.
18285 (CFLAGS-sprintf_chk.c): Likewise.
18286 (CFLAGS-snprintf_chk.c): Likewise.
18287 (CFLAGS-vsprintf_chk.c): Likewise.
18288 (CFLAGS-vsnprintf_chk.c): Likewise.
18289 (CFLAGS-asprintf_chk.c): Likewise.
18290 (CFLAGS-vasprintf_chk.c): Likewise.
18291 (CFLAGS-obprintf_chk.c): Likewise.
18292 (CFLAGS-dprintf_chk.c): Likewise.
18293 (CFLAGS-vdprintf_chk.c): Likewise.
18294 (CFLAGS-printf_chk.c): Likewise.
18295 (CFLAGS-fprintf_chk.c): Likewise.
18296 (CFLAGS-vprintf_chk.c): Likewise.
18297 (CFLAGS-vfprintf_chk.c): Likewise.
18298 (CFLAGS-gets_chk.c): Likewise.
18299 (CFLAGS-fgets_chk.c): Likewise.
18300 (CFLAGS-fgets_u_chk.c): Likewise.
18301 (CFLAGS-fread_chk.c): Likewise.
18302 (CFLAGS-fread_u_chk.c): Likewise.
18303 (CFLAGS-swprintf_chk.c): Likewise.
18304 (CFLAGS-vswprintf_chk.c): Likewise.
18305 (CFLAGS-wprintf_chk.c): Likewise.
18306 (CFLAGS-fwprintf_chk.c): Likewise.
18307 (CFLAGS-vwprintf_chk.c): Likewise.
18308 (CFLAGS-vfwprintf_chk.c): Likewise.
18309 (CFLAGS-fgetws_chk.c): Likewise.
18310 (CFLAGS-fgetws_u_chk.c): Likewise.
18311 (CFLAGS-read_chk.c): Likewise.
18312 (CFLAGS-pread_chk.c): Likewise.
18313 (CFLAGS-pread64_chk.c): Likewise.
18314 (CFLAGS-recv_chk.c): Likewise.
18315 (CFLAGS-recvfrom_chk.c): Likewise.
18316 (CFLAGS-tst-longjmp_chk.c): Likewise.
18317 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18318 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18319 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18320 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18321 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18322 (CFLAGS-tst-chk1.c): Likewise.
18323 (CFLAGS-tst-chk2.c): Likewise.
18324 (CFLAGS-tst-chk3.c): Likewise.
18325 (CFLAGS-tst-chk4.cc): Likewise.
18326 (CFLAGS-tst-chk5.cc): Likewise.
18327 (CFLAGS-tst-chk6.cc): Likewise.
18328 (CFLAGS-tst-lfschk1.c): Likewise.
18329 (CFLAGS-tst-lfschk2.c): Likewise.
18330 (CFLAGS-tst-lfschk3.c): Likewise.
18331 (CFLAGS-tst-lfschk4.cc): Likewise.
18332 (CFLAGS-tst-lfschk5.cc): Likewise.
18333 (CFLAGS-tst-lfschk6.cc): Likewise.
18334 (CFLAGS-tst-ssp-1.c): Likewise.
18335 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18336 (CFLAGS-scandir64.c): Likewise.
18337 (CFLAGS-scandir-tail.c): Likewise.
18338 (CFLAGS-scandir64-tail.c): Likewise.
18339 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18340 (CFLAGS-dl-tunables.c): Likewise.
18341 (CFLAGS-dl-runtime.c): Likewise.
18342 (CFLAGS-dl-lookup.c): Likewise.
18343 (CFLAGS-dl-iterate-phdr.c): Likewise.
18344 (CFLAGS-vismain.c): Likewise.
18345 (CFLAGS-tst-linkall-static.c): Likewise.
18346 (CFLAGS-tst-linkall-static.c): Likewise.
18347 (CPPFLAGS-dl-load.c): Likewise.
18348 (CFLAGS-ldconfig.c): Likewise.
18349 (CFLAGS-dl-cache.c): Likewise.
18350 (CFLAGS-cache.c): Likewise.
18351 (CFLAGS-rtld.c): Likewise.
18352 (CFLAGS-multiload.c): Likewise.
18353 (CFLAGS-filtmod1.c): Likewise.
18354 (CFLAGS-tst-align.c): Likewise.
18355 (CFLAGS-tst-align2.c): Likewise.
18356 (CFLAGS-tst-alignmod.c): Likewise.
18357 (CFLAGS-tst-alignmod2.c): Likewise.
18358 (CPPFLAGS-tst-execstack.c): Likewise.
18359 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18360 (CFLAGS-tst-latepthreadmod.c): Likewise.
18361 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18362 (CFLAGS-getgrnam_r.c): Likewise.
18363 (CFLAGS-getgrent_r.c): Likewise.
18364 (CFLAGS-getgrent.c): Likewise.
18365 (CFLAGS-fgetgrent.c): Likewise.
18366 (CFLAGS-fgetgrent_r.c): Likewise.
18367 (CFLAGS-putgrent.c): Likewise.
18368 (CFLAGS-initgroups.c): Likewise.
18369 (CFLAGS-getgrgid.c): Likewise.
18370 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18371 (CFLAGS-getsgent.c): Likewise.
18372 (CFLAGS-fgetsgent.c): Likewise.
18373 (CFLAGS-fgetsgent_r.c): Likewise.
18374 (CFLAGS-putsgent.c): Likewise.
18375 (CFLAGS-getsgnam.c): Likewise.
18376 (CFLAGS-getsgnam_r.c): Likewise.
18377 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18378 (CFLAGS-iconv_charmap.c): Likewise.
18379 (CFLAGS-dummy-repertoire.c): Likewise.
18380 (CFLAGS-charmap.c): Likewise.
18381 (CFLAGS-linereader.c): Likewise.
18382 (CFLAGS-simple-hash.c): Likewise.
18383 (CFLAGS-gconv_conf.c): Likewise.
18384 (CFLAGS-iconvconfig.c): Likewise.
18385 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18386 (CFLAGS-gethstbyad.c): Likewise.
18387 (CFLAGS-gethstbynm_r.c): Likewise.
18388 (CFLAGS-gethstbynm.c): Likewise.
18389 (CFLAGS-gethstbynm2_r.c): Likewise.
18390 (CFLAGS-gethstbynm2.c): Likewise.
18391 (CFLAGS-gethstent_r.c): Likewise.
18392 (CFLAGS-gethstent.c): Likewise.
18393 (CFLAGS-rcmd.c): Likewise.
18394 (CFLAGS-getnetbynm_r.c): Likewise.
18395 (CFLAGS-getnetbynm.c): Likewise.
18396 (CFLAGS-getnetbyad_r.c): Likewise.
18397 (CFLAGS-getnetbyad.c): Likewise.
18398 (CFLAGS-getnetent_r.c): Likewise.
18399 (CFLAGS-getnetent.c): Likewise.
18400 (CFLAGS-getaliasent_r.c): Likewise.
18401 (CFLAGS-getaliasent.c): Likewise.
18402 (CFLAGS-getrpcent_r.c): Likewise.
18403 (CFLAGS-getrpcent.c): Likewise.
18404 (CFLAGS-getservent_r.c): Likewise.
18405 (CFLAGS-getservent.c): Likewise.
18406 (CFLAGS-getprtent_r.c): Likewise.
18407 (CFLAGS-getprtent.c): Likewise.
18408 (CFLAGS-either_ntoh.c): Likewise.
18409 (CFLAGS-either_hton.c): Likewise.
18410 (CFLAGS-getnetgrent.c): Likewise.
18411 (CFLAGS-getnetgrent_r.c): Likewise.
18412 (CFLAGS-tst-checks-posix.c): Likewise.
18413 (CFLAGS-tst-sockaddr.c): Likewise.
18414 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18415 (CFLAGS-tst-translit.c): Likewise.
18416 (CFLAGS-tst-gettext2.c): Likewise.
18417 (CFLAGS-tst-codeset.c): Likewise.
18418 (CFLAGS-tst-gettext3.c): Likewise.
18419 (CFLAGS-tst-gettext4.c): Likewise.
18420 (CFLAGS-tst-gettext5.c): Likewise.
18421 (CFLAGS-tst-gettext6.c): Likewise.
18422 * io/Makefile (CFLAGS-open.c): Likewise.
18423 (CFLAGS-open64.c): Likewise.
18424 (CFLAGS-creat.c): Likewise.
18425 (CFLAGS-creat64.c): Likewise.
18426 (CFLAGS-fcntl.c): Likewise.
18427 (CFLAGS-poll.c): Likewise.
18428 (CFLAGS-ppoll.c): Likewise.
18429 (CFLAGS-lockf.c): Likewise.
18430 (CFLAGS-statfs.c): Likewise.
18431 (CFLAGS-fstatfs.c): Likewise.
18432 (CFLAGS-statvfs.c): Likewise.
18433 (CFLAGS-fstatvfs.c): Likewise.
18434 (CFLAGS-fts.c): Likewise.
18435 (CFLAGS-fts64.c): Likewise.
18436 (CFLAGS-ftw.c): Likewise.
18437 (CFLAGS-ftw64.c): Likewise.
18438 (CFLAGS-lockf.c): Likewise.
18439 (CFLAGS-posix_fallocate.c): Likewise.
18440 (CFLAGS-posix_fallocate64.c): Likewise.
18441 (CFLAGS-fallocate.c): Likewise.
18442 (CFLAGS-fallocate64.c): Likewise.
18443 (CFLAGS-read.c): Likewise.
18444 (CFLAGS-write.c): Likewise.
18445 (CFLAGS-test-stat.c): Likewise.
18446 (CFLAGS-test-lfs.c): Likewise.
18447 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18448 (CFLAGS-fputc.c): Likewise.
18449 (CFLAGS-fputwc.c): Likewise.
18450 (CFLAGS-freopen64.c): Likewise.
18451 (CFLAGS-freopen.c): Likewise.
18452 (CFLAGS-fseek.c): Likewise.
18453 (CFLAGS-fseeko64.c): Likewise.
18454 (CFLAGS-fseeko.c): Likewise.
18455 (CFLAGS-ftello64.c): Likewise.
18456 (CFLAGS-ftello.c): Likewise.
18457 (CFLAGS-fwide.c): Likewise.
18458 (CFLAGS-genops.c): Likewise.
18459 (CFLAGS-getc.c): Likewise.
18460 (CFLAGS-getchar.c): Likewise.
18461 (CFLAGS-getwc.c): Likewise.
18462 (CFLAGS-getwchar.c): Likewise.
18463 (CFLAGS-iofclose.c): Likewise.
18464 (CFLAGS-iofflush.c): Likewise.
18465 (CFLAGS-iofgetpos64.c): Likewise.
18466 (CFLAGS-iofgetpos.c): Likewise.
18467 (CFLAGS-iofgets.c): Likewise.
18468 (CFLAGS-iofgetws.c): Likewise.
18469 (CFLAGS-iofputs.c): Likewise.
18470 (CFLAGS-iofputws.c): Likewise.
18471 (CFLAGS-iofread.c): Likewise.
18472 (CFLAGS-iofsetpos64.c): Likewise.
18473 (CFLAGS-iofsetpos.c): Likewise.
18474 (CFLAGS-ioftell.c): Likewise.
18475 (CFLAGS-iofwrite.c): Likewise.
18476 (CFLAGS-iogetdelim.c): Likewise.
18477 (CFLAGS-iogetline.c): Likewise.
18478 (CFLAGS-iogets.c): Likewise.
18479 (CFLAGS-iogetwline.c): Likewise.
18480 (CFLAGS-ioputs.c): Likewise.
18481 (CFLAGS-ioseekoff.c): Likewise.
18482 (CFLAGS-ioseekpos.c): Likewise.
18483 (CFLAGS-iosetbuffer.c): Likewise.
18484 (CFLAGS-iosetvbuf.c): Likewise.
18485 (CFLAGS-ioungetc.c): Likewise.
18486 (CFLAGS-ioungetwc.c): Likewise.
18487 (CFLAGS-oldfileops.c): Likewise.
18488 (CFLAGS-oldiofclose.c): Likewise.
18489 (CFLAGS-oldiofgetpos64.c): Likewise.
18490 (CFLAGS-oldiofgetpos.c): Likewise.
18491 (CFLAGS-oldiofsetpos64.c): Likewise.
18492 (CFLAGS-oldiofsetpos.c): Likewise.
18493 (CFLAGS-peekc.c): Likewise.
18494 (CFLAGS-putc.c): Likewise.
18495 (CFLAGS-putchar.c): Likewise.
18496 (CFLAGS-putwc.c): Likewise.
18497 (CFLAGS-putwchar.c): Likewise.
18498 (CFLAGS-rewind.c): Likewise.
18499 (CFLAGS-wfileops.c): Likewise.
18500 (CFLAGS-wgenops.c): Likewise.
18501 (CFLAGS-oldiofopen.c): Likewise.
18502 (CFLAGS-iofopen.c): Likewise.
18503 (CFLAGS-iofopen64.c): Likewise.
18504 (CFLAGS-oldtmpfile.c): Likewise.
18505 (CFLAGS-tst_putwc.c): Likewise.
18506 * locale/Makefile (CFLAGS-md5.c): Likewise.
18507 (CFLAGS-charmap.c): Likewise.
18508 (CFLAGS-locfile.c): Likewise.
18509 (CFLAGS-charmap-dir.c): Likewise.
18510 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18511 (CFLAGS-getpt.c): Likewise.
18512 (CFLAGS-pt_chown.c): Likewise.
18513 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18514 (CFLAGS-obstack.c): Likewise.
18515 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18516 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18517 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18518 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18519 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18520 (CFLAGS-test-tgmath.c): Likewise.
18521 (CFLAGS-test-tgmath2.c): Likewise.
18522 (CFLAGS-test-tgmath-ret.c): Likewise.
18523 (CFLAGS-test-powl.c): Likewise.
18524 (CFLAGS-test-snan.c): Likewise.
18525 (CFLAGS-test-signgam-finite.c): Likewise.
18526 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18527 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18528 (CFLAGS-test-signgam-uchar.c): Likewise.
18529 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18530 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18531 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18532 (CFLAGS-test-signgam-uint.c): Likewise.
18533 (CFLAGS-test-signgam-uint-init.c): Likewise.
18534 (CFLAGS-test-signgam-uint-static.c): Likewise.
18535 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18536 (CFLAGS-test-signgam-ullong.c): Likewise.
18537 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18538 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18539 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18540 (CFLAGS-test-math-cxx11.cc): Likewise.
18541 (CFLAGS-test-math-isinff.cc): Likewise.
18542 (CFLAGS-test-math-iszero.cc): Likewise.
18543 (CFLAGS-test-math-issignaling.cc): Likewise.
18544 (CFLAGS-test-math-iscanonical.cc): Likewise.
18545 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18546 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18547 (CFLAGS-test-flt-eval-method.c): Likewise.
18548 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18549 (CFLAGS-test-finite-macros.c): Likewise.
18550 * misc/Makefile (CFLAGS-select.c): Likewise.
18551 (CFLAGS-tsearch.c): Likewise.
18552 (CFLAGS-lsearch.c): Likewise.
18553 (CFLAGS-pselect.c): Likewise.
18554 (CFLAGS-readv.c): Likewise.
18555 (CFLAGS-writev.c): Likewise.
18556 (CFLAGS-preadv.c): Likewise.
18557 (CFLAGS-preadv64.c): Likewise.
18558 (CFLAGS-pwritev.c): Likewise.
18559 (CFLAGS-pwritev64.c): Likewise.
18560 (CFLAGS-preadv2.c): Likewise.
18561 (CFLAGS-preadv64v2.c): Likewise.
18562 (CFLAGS-pwritev2.c): Likewise.
18563 (CFLAGS-pwritev64v2.c): Likewise.
18564 (CFLAGS-usleep.c): Likewise.
18565 (CFLAGS-syslog.c): Likewise.
18566 (CFLAGS-error.c): Likewise.
18567 (CFLAGS-getpass.c): Likewise.
18568 (CFLAGS-mkstemp.c): Likewise.
18569 (CFLAGS-mkstemp64.c): Likewise.
18570 (CFLAGS-getsysstats.c): Likewise.
18571 (CFLAGS-getusershell.c): Likewise.
18572 (CFLAGS-err.c): Likewise.
18573 (CFLAGS-tst-tsearch.c): Likewise.
18574 (CFLAGS-msync.c): Likewise.
18575 (CFLAGS-fdatasync.c): Likewise.
18576 (CFLAGS-fsync.c): Likewise.
18577 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18578 (CFLAGS-unwind.c): Likewise.
18579 (CFLAGS-unwind-forcedunwind.c): Likewise.
18580 (CFLAGS-pthread_cancel.c): Likewise.
18581 (CFLAGS-pthread_setcancelstate.c): Likewise.
18582 (CFLAGS-pthread_setcanceltype.c): Likewise.
18583 (CFLAGS-cancellation.c): Likewise.
18584 (CFLAGS-libc-cancellation.c): Likewise.
18585 (CFLAGS-pthread_exit.c): Likewise.
18586 (CFLAGS-forward.c): Likewise.
18587 (CFLAGS-pthread_testcancel.c): Likewise.
18588 (CFLAGS-pthread_join.c): Likewise.
18589 (CFLAGS-pthread_timedjoin.c): Likewise.
18590 (CFLAGS-pthread_once.c): Likewise.
18591 (CFLAGS-pthread_cond_wait.c): Likewise.
18592 (CFLAGS-sem_wait.c): Likewise.
18593 (CFLAGS-sem_timedwait.c): Likewise.
18594 (CFLAGS-fcntl.c): Likewise.
18595 (CFLAGS-lockf.c): Likewise.
18596 (CFLAGS-pread.c): Likewise.
18597 (CFLAGS-pread64.c): Likewise.
18598 (CFLAGS-pwrite.c): Likewise.
18599 (CFLAGS-pwrite64.c): Likewise.
18600 (CFLAGS-wait.c): Likewise.
18601 (CFLAGS-waitpid.c): Likewise.
18602 (CFLAGS-sigwait.c): Likewise.
18603 (CFLAGS-msgrcv.c): Likewise.
18604 (CFLAGS-msgsnd.c): Likewise.
18605 (CFLAGS-tcdrain.c): Likewise.
18606 (CFLAGS-open.c): Likewise.
18607 (CFLAGS-open64.c): Likewise.
18608 (CFLAGS-pause.c): Likewise.
18609 (CFLAGS-recv.c): Likewise.
18610 (CFLAGS-send.c): Likewise.
18611 (CFLAGS-accept.c): Likewise.
18612 (CFLAGS-sendto.c): Likewise.
18613 (CFLAGS-connect.c): Likewise.
18614 (CFLAGS-recvfrom.c): Likewise.
18615 (CFLAGS-recvmsg.c): Likewise.
18616 (CFLAGS-sendmsg.c): Likewise.
18617 (CFLAGS-close.c): Likewise.
18618 (CFLAGS-read.c): Likewise.
18619 (CFLAGS-write.c): Likewise.
18620 (CFLAGS-nanosleep.c): Likewise.
18621 (CFLAGS-sigsuspend.c): Likewise.
18622 (CFLAGS-msync.c): Likewise.
18623 (CFLAGS-fdatasync.c): Likewise.
18624 (CFLAGS-fsync.c): Likewise.
18625 (CFLAGS-pt-system.c): Likewise.
18626 (CFLAGS-tst-cleanup2.c): Likewise.
18627 (CFLAGS-tst-cleanupx2.c): Likewise.
18628 (CFLAGS-flockfile.c): Likewise.
18629 (CFLAGS-ftrylockfile.c): Likewise.
18630 (CFLAGS-funlockfile.c): Likewise.
18631 (CFLAGS-tst-initializers1.c): Likewise.
18632 (CFLAGS-tst-initializers1-c89.c): Likewise.
18633 (CFLAGS-tst-initializers1-c99.c): Likewise.
18634 (CFLAGS-tst-initializers1-c11.c): Likewise.
18635 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18636 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18637 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18638 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18639 (CFLAGS-nscd_getgr_r.c): Likewise.
18640 (CFLAGS-nscd_gethst_r.c): Likewise.
18641 (CFLAGS-nscd_getai.c): Likewise.
18642 (CFLAGS-nscd_initgroups.c): Likewise.
18643 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18644 (CFLAGS-pause.c): Likewise.
18645 (CFLAGS-pread.c): Likewise.
18646 (CFLAGS-pread64.c): Likewise.
18647 (CFLAGS-pwrite.c): Likewise.
18648 (CFLAGS-pwrite64.c): Likewise.
18649 (CFLAGS-sleep.c): Likewise.
18650 (CFLAGS-wait.c): Likewise.
18651 (CFLAGS-waitid.c): Likewise.
18652 (CFLAGS-waitpid.c): Likewise.
18653 (CFLAGS-getopt.c): Likewise.
18654 (CFLAGS-wordexp.c): Likewise.
18655 (CFLAGS-sysconf.c): Likewise.
18656 (CFLAGS-pathconf.c): Likewise.
18657 (CFLAGS-fpathconf.c): Likewise.
18658 (CFLAGS-spawn.c): Likewise.
18659 (CFLAGS-spawnp.c): Likewise.
18660 (CFLAGS-spawni.c): Likewise.
18661 (CFLAGS-glob.c): Likewise.
18662 (CFLAGS-glob64.c): Likewise.
18663 (CFLAGS-getconf.c): Likewise.
18664 (CFLAGS-nanosleep.c): Likewise.
18665 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18666 (CFLAGS-getpwent.c): Likewise.
18667 (CFLAGS-getpw.c): Likewise.
18668 (CFLAGS-fgetpwent_r.c): Likewise.
18669 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18670 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18671 (CFLAGS-mq_timedreceive.c): Likewise.
18672 (CFLAGS-mq_timedsend.c): Likewise.
18673 (CFLAGS-clock_nanosleep.c): Likewise.
18674 (CFLAGS-librt-cancellation.c): Likewise.
18675 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18676 (CFLAGS-getspent.c): Likewise.
18677 (CFLAGS-fgetspent.c): Likewise.
18678 (CFLAGS-fgetspent_r.c): Likewise.
18679 (CFLAGS-putspent.c): Likewise.
18680 (CFLAGS-getspnam.c): Likewise.
18681 (CFLAGS-getspnam_r.c): Likewise.
18682 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18683 (CFLAGS-sigsuspend.c): Likewise.
18684 (CFLAGS-sigtimedwait.c): Likewise.
18685 (CFLAGS-sigwait.c): Likewise.
18686 (CFLAGS-sigwaitinfo.c): Likewise.
18687 (CFLAGS-sigreturn.c): Likewise.
18688 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18689 (CFLAGS-vfwprintf.c): Likewise.
18690 (CFLAGS-tmpfile.c): Likewise.
18691 (CFLAGS-tmpfile64.c): Likewise.
18692 (CFLAGS-tempname.c): Likewise.
18693 (CFLAGS-psignal.c): Likewise.
18694 (CFLAGS-vprintf.c): Likewise.
18695 (CFLAGS-cuserid.c): Likewise.
18696 (CFLAGS-errlist.c): Likewise.
18697 (CFLAGS-siglist.c): Likewise.
18698 (CFLAGS-scanf15.c): Likewise.
18699 (CFLAGS-scanf17.c): Likewise.
18700 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18701 (CFLAGS-msort.c): Likewise.
18702 (CFLAGS-qsort.c): Likewise.
18703 (CFLAGS-system.c): Likewise.
18704 (CFLAGS-fmtmsg.c): Likewise.
18705 (CFLAGS-strfmon.c): Likewise.
18706 (CFLAGS-strfmon_l.c): Likewise.
18707 (CFLAGS-strfromd.c): Likewise.
18708 (CFLAGS-strfromf.c): Likewise.
18709 (CFLAGS-strfroml.c): Likewise.
18710 (CFLAGS-tst-bsearch.c): Likewise.
18711 (CFLAGS-tst-qsort.c): Likewise.
18712 (CFLAGS-tst-makecontext2.c): Likewise.
18713 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18714 (CFLAGS-xnlm_prot.c): Likewise.
18715 (CFLAGS-xrstat.c): Likewise.
18716 (CFLAGS-xyppasswd.c): Likewise.
18717 (CFLAGS-xklm_prot.c): Likewise.
18718 (CFLAGS-xrex.c): Likewise.
18719 (CFLAGS-xsm_inter.c): Likewise.
18720 (CFLAGS-xmount.c): Likewise.
18721 (CFLAGS-xrusers.c): Likewise.
18722 (CFLAGS-xspray.c): Likewise.
18723 (CFLAGS-xnfs_prot.c): Likewise.
18724 (CFLAGS-xrquota.c): Likewise.
18725 (CFLAGS-xkey_prot.c): Likewise.
18726 (CFLAGS-auth_unix.c): Likewise.
18727 (CFLAGS-key_call.c): Likewise.
18728 (CFLAGS-pmap_rmt.c): Likewise.
18729 (CFLAGS-clnt_perr.c): Likewise.
18730 (CFLAGS-openchild.c): Likewise.
18731 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18732 (CFLAGS-msgsnd.c): Likewise.
18733 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18734 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18735 (CFLAGS-tzset.c): Likewise.
18736 (CFLAGS-getdate.c): Likewise.
18737 (CFLAGS-test_time.c): Likewise.
18738 (CPPFLAGS-tst-tzname.c): Likewise.
18739 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18740 (CFLAGS-zic.c): Likewise.
18741 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18742 (CFLAGS-wcswidth.c): Likewise.
18743 (CFLAGS-wcstol.c): Likewise.
18744 (CFLAGS-wcstoul.c): Likewise.
18745 (CFLAGS-wcstoll.c): Likewise.
18746 (CFLAGS-wcstoull.c): Likewise.
18747 (CFLAGS-wcstod.c): Likewise.
18748 (CFLAGS-wcstold.c): Likewise.
18749 (CFLAGS-wcstof128.c): Likewise.
18750 (CFLAGS-wcstof.c): Likewise.
18751 (CFLAGS-wcstol_l.c): Likewise.
18752 (CFLAGS-wcstoul_l.c): Likewise.
18753 (CFLAGS-wcstoll_l.c): Likewise.
18754 (CFLAGS-wcstoull_l.c): Likewise.
18755 (CFLAGS-wcstod_l.c): Likewise.
18756 (CFLAGS-wcstold_l.c): Likewise.
18757 (CFLAGS-wcstof128_l.c): Likewise.
18758 (CFLAGS-wcstof_l.c): Likewise.
18759 (CPPFLAGS-tst-wchar-h.c): Likewise.
18760 (CPPFLAGS-wcstold_l.c): Likewise.
18761
18762 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18763
18764 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18765
18766 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18767 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18768
18769 * manual/tunables.texi (Hardware Capability Tunables): Document
18770 glibc.tune.cached_memopt.
18771 * sysdeps/powerpc/cpu-features.c: New file.
18772 * sysdeps/powerpc/cpu-features.h: New file.
18773 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18774 _dl_powerpc_cpu_features.
18775 * sysdeps/powerpc/dl-tunables.list: New file.
18776 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18777 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18778 (INIT_ARCH): Initialize use_aligned_memopt.
18779 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18780 IS_IN(rtld))]: Restrict dl_platform_init availability and
18781 initialize CPU features used by tunables.
18782 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18783 Add memcpy-power8-cached.
18784 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18785 __memcpy_power8_cached.
18786 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18787 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18788 New file.
18789
18790 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18791
18792 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18793 (CFLAGS-noinl-tester.c): Likewise.
18794 (CFLAGS-tst-strlen.c): Likewise.
18795 (CFLAGS-stratcliff.c): Likewise.
18796 (CFLAGS-test-ffs.c): Likewise.
18797 (CFLAGS-tst-inlcall.c): Likewise.
18798 (CFLAGS-tst-xbzero-opt.c): Likewise.
18799 (CFLAGS-memcpy.c): Likewise.
18800 (CFLAGS-wordcopy.c): Likewise.
18801
18802 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18803
18804 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18805 Store r15 on stack and add cfi rule.
18806 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18807 Likewise.
18808
18809 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18810
18811 [BZ #22577]
18812 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18813 call.
18814
18815 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18816
18817 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18818 Add s_sinf-sse2 and s_sinf-fma.
18819 (CFLAGS-s_sinf-fma.c): New.
18820 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18821 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18822 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18823
18824 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18825
18826 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18827
18828 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18829
18830 [BZ #22568]
18831 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18832 part of result to imaginary part of argument if it is zero and the
18833 real part of the argument is not finite.
18834 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18835 of result to real part of argument if it is zero and the imaginary
18836 part of the argument is not finite.
18837
18838 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18839
18840 [BZ #22524]
18841 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18842 and to the list of locales to be built for testing.
18843 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18844 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18845 and build the collation rules upon that.
18846
18847 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18848
18849 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18850 * manual/math.texi (Mathematics): Document support for _Float32.
18851 * math/Makefile (test-types): Add float32.
18852 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18853 * stdlib/Versions (GLIBC_2.27): Likewise.
18854 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18855 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18856 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18857 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18858 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18859 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18868 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18870 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18871 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18872 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18873 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18874 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18875 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18876 Likewise.
18877 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18878 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18879 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18880 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18881 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18883 Likewise.
18884 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18885 Likewise.
18886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18887 Likewise.
18888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18889 Likewise.
18890
18891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18892 Likewise.
18893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18894 Likewise.
18895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18896 Likewise.
18897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18898 Likewise.
18899 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18905 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18910 Likewise.
18911 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18912 Likewise.
18913 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18914 Likewise.
18915 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18916 Likewise.
18917 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18918 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18919 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18920 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18921 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18922 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18923 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18924 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18925
18926 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18927
18928 * stdlib/strtof.c: Include <bits/floatn.h>
18929 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18930 and later undefine as macro. Define as weak alias if
18931 [!USE_WIDE_CHAR].
18932 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18933 and later undefine as macro. Define as weak alias if
18934 [USE_WIDE_CHAR].
18935 * stdlib/strtof_l.c: Include <bits/floatn.h>
18936 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18937 and later undefine as macro. Define as weak alias if
18938 [!USE_WIDE_CHAR].
18939 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18940 and later undefine as macro. Define as weak alias if
18941 [USE_WIDE_CHAR].
18942
18943 * stdlib/strfromf.c: Include <bits/floatn.h>.
18944 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18945 and later undefine as macro and define as weak alias.
18946
18947 * math/test-float32.h: New file.
18948
18949 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18950 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18951 (libm_alias_float_other_r): Create f32 alias.
18952 (libm_alias_float_r): Use semicolon before call to
18953 libm_alias_float_other_r.
18954
18955 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18956 second argument to libm_alias_float_other.
18957 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18958 second argument to libm_alias_float_other.
18959 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18960 argument to libm_alias_float_other.
18961
18962 [BZ #22561]
18963 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18964 real part of result for argument 0 + i * NaN.
18965 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18966 results for tests of 0 + i * NaN.
18967
18968 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18969
18970 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18971
18972 2017-12-06 David S. Miller <davem@davemloft.net>
18973
18974 * sysdeps/sparc/fpu/libm-test-ulps: Update
18975 exp_{downward,towardzero,upward} ulps.
18976
18977 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18978
18979 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18980 variables static.
18981
18982 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18983 (Y0_2D): Likewise.
18984 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18985 (Y0_2D): Likewise.
18986 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18987 (Y0_2D): Likewise.
18988 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18989 (Y0_2D): Likewise.
18990
18991 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18992
18993 [BZ #22515]
18994 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18995 and to the list of locales to be built for testing.
18996 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18997 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18998 and build the collation rules upon that.
18999
19000 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19001
19002 * NEWS: Add sinf to list of optimized functions.
19003
19004 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19005
19006 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19007 (__HAVE_FLOAT32X): Likewise.
19008 * manual/math.texi (Mathematics): Document support for _Float64
19009 and _Float32x.
19010 * math/Makefile (test-types): Add float64 and float32x.
19011 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19012 functions.
19013 * stdlib/Versions (GLIBC_2.27): Likewise.
19014 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19015 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19016 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19017 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19018 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19019 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19020 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19021 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19022 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19024 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19025 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19026 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19027 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19028 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19029 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19030 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19031 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19032 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19034 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19035 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19036 Likewise.
19037 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19038 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19039 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19040 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19041 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19043 Likewise.
19044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19045 Likewise.
19046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19047 Likewise.
19048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19049 Likewise.
19050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19051 Likewise.
19052 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19053 Likewise.
19054 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19055 Likewise.
19056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19057 Likewise.
19058 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19059 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19060 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19061 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19062 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19063 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19064 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19065 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19066 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19067 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19068 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19069 Likewise.
19070 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19071 Likewise.
19072 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19073 Likewise.
19074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19075 Likewise.
19076 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19077 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19078 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19079 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19080 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19081 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19082 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19083 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19084
19085 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19086
19087 * bits/floatn-common.h: Include <bits/long-double.h>.
19088 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19089 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19090 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19091 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19092 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19093 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19094 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19095 (__builtin_huge_valf64): Use __builtin_huge_vall.
19096 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19097 (__builtin_inff64): Use __builtin_infl.
19098 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19099 (__builtin_nanf64): Use __builtin_nanl.
19100 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19101 (__builtin_nansf64): Use __builtin_nansl.
19102
19103 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19104 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19105 Carlos O'Donnell <carlos@redhat.com>
19106
19107 * elf/dl-tunables.list: Add elision parameters.
19108 * manual/tunables.texi: Add entries about elision tunable.
19109 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19110 Add callback functions to dynamically enable/disable elision.
19111 Add multiple callbacks functions to set elision parameters.
19112 Deleted __libc_enable_secure check.
19113 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19114 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19115 * configure: Regenerated.
19116 * configure.ac: Option enable_lock_elision was deleted.
19117 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19118 * config.make.in: Remove references to enable_lock_elision.
19119 * manual/install.texi: Elision configure option was removed.
19120 * INSTALL: Regenerated to remove enable_lock_elision.
19121 * nptl/Makefile:
19122 Disable elision so it can verify error case for destroying a mutex.
19123 * sysdeps/powerpc/nptl/elide.h:
19124 Cleanup ENABLE_LOCK_ELISION check.
19125 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19126 * sysdeps/s390/configure: Regenerated.
19127 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19128 * nptl/tst-mutex8.c:
19129 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19130 * sysdeps/powerpc/powerpc32/sysdep.h:
19131 Deleted all ENABLE_LOCK_ELISION checks.
19132 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19133 * sysdeps/powerpc/sysdep.h: Likewise.
19134 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19135 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19136 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19137 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19138 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19139 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19140 enable-lock-elision.
19141
19142 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19143
19144 * stdlib/strtod.c: Include <bits/floatn.h>.
19145 (BUILD_DOUBLE): New macro.
19146 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19147 (strtof64): Define and later undefine as macro. Define as weak
19148 alias if [!USE_WIDE_CHAR].
19149 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19150 (wcstof64): Define and later undefine as macro. Define as weak
19151 alias if [USE_WIDE_CHAR].
19152 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19153 (strtof32x): Define and later undefine as macro. Define as weak
19154 alias if [!USE_WIDE_CHAR].
19155 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19156 (wcstof32x): Define and later undefine as macro. Define as weak
19157 alias if [USE_WIDE_CHAR].
19158 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19159 (BUILD_DOUBLE): New macro.
19160 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19161 (strtof64_l): Define and later undefine as macro. Define as weak
19162 alias if [!USE_WIDE_CHAR].
19163 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19164 (wcstof64_l): Define and later undefine as macro. Define as weak
19165 alias if [USE_WIDE_CHAR].
19166 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19167 (strtof32x_l): Define and later undefine as macro. Define as weak
19168 alias if [!USE_WIDE_CHAR].
19169 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19170 (wcstof32x_l): Define and later undefine as macro. Define as weak
19171 alias if [USE_WIDE_CHAR].
19172
19173 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19174
19175 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19176 (reduced): Use ones as double instead of integer.
19177
19178 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19179
19180 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19181
19182 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19183
19184 * stdlib/strfromd.c: Include <bits/floatn.h>.
19185 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19186 and later undefine as macro and define as weak alias.
19187 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19188 Likewise.
19189
19190 * math/test-float32x.h: New file.
19191 * math/test-float64.h: Likewise.
19192
19193 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19194 (libm_alias_double_other_r_f64): New macro.
19195 (libm_alias_double_other_r_f32x): Likewise.
19196 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19197 libm_alias_double_other_r_f32x.
19198 (libm_alias_double_r): Use semicolon before call to
19199 libm_alias_double_other_r.
19200 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19201 <bits/floatn.h>.
19202 (libm_alias_double_other_r_f64): New macro.
19203 (libm_alias_double_other_r_f32x): Likewise.
19204 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19205 libm_alias_double_other_r_f32x.
19206
19207 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19208
19209 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19210 int.
19211 (SINF_FUNC): Likewise. Replace floor with simple casts.
19212
19213 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19214
19215 [BZ #22517]
19216 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19217 and to the list of locales to be built for testing.
19218 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19219 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19220 and build the collation rules upon that.
19221
19222 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19223
19224 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19225 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19226 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19227 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19228 instead of __insn__xxx.
19229 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19230 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19231 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19232 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19233 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19234 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19235
19236 2017-12-05 Florian Weimer <fweimer@redhat.com>
19237
19238 Linux: Implement interfaces for memory protection keys
19239 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19240 xsignal, xsysconf.
19241 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19242 * support/xunistd.h (xsysconf): Declare.
19243 * support/xraise.c: New file.
19244 * support/xsigaction.c: Likewise.
19245 * support/xsignal.c: Likewise.
19246 * support/xsysconf.c: Likewise.
19247 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19248 pkey_set, pkey_get, pkey_mprotect.
19249 [misc] (tests): Add tst-pkey.
19250 (tst-pkey): Link with -lpthread.
19251 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19252 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19253 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19254 (PKEY_DISABLE_WRITE): Define.
19255 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19256 Declare.
19257 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19258 (SEGV_PKUERR): Add.
19259 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19260 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19261 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19262 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19263 Add.
19264 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19265 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19266 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19267 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19268 * sysdeps/unix/sysv/linux/**.abilist: Update.
19269
19270 2017-12-05 Florian Weimer <fweimer@redhat.com>
19271
19272 * support/tst-test_compare.c (subprocess): Use long long instead
19273 of long argument for consistent type width across 32-bit and
19274 64-bit architectures.
19275 (do_test): Adjust expected output.
19276
19277 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19278
19279 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19280 (cosf): Define using libm_alias_float.
19281 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19282 (fabsf): Define using libm_alias_float.
19283 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19284 (fmaf): Define using libm_alias_float.
19285 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19286 (rintf): Define using libm_alias_float.
19287 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19288 (sinf): Define using libm_alias_float.
19289 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19290 <libm-alias-float.h>.
19291 (modff): Define using libm_alias_float.
19292 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19293 <libm-alias-float.h>.
19294 (logbf): Define using libm_alias_float.
19295 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19296 <libm-alias-float.h>.
19297 (ceilf): Define using libm_alias_float.
19298 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19299 <libm-alias-float.h>.
19300 (copysignf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19302 <libm-alias-float.h>.
19303 (floorf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19305 <libm-alias-float.h>.
19306 (llrintf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19308 <libm-alias-float.h>.
19309 (llroundf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19311 <libm-alias-float.h>.
19312 (lrintf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19314 <libm-alias-float.h>.
19315 (lroundf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19317 <libm-alias-float.h>.
19318 (nearbyintf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19320 <libm-alias-float.h>.
19321 (rintf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19323 <libm-alias-float.h>.
19324 (roundf): Define using libm_alias_float.
19325 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19326 <libm-alias-float.h>.
19327 (truncf): Define using libm_alias_float.
19328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19329 Include <libm-alias-float.h>.
19330 (ceilf): Define using libm_alias_float.
19331 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19332 Include <libm-alias-float.h>.
19333 (copysignf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19335 Include <libm-alias-float.h>.
19336 (floorf): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19338 Include <libm-alias-float.h>.
19339 (llrintf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19341 Include <libm-alias-float.h>.
19342 (llroundf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19344 Include <libm-alias-float.h>.
19345 (logbf): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19347 Include <libm-alias-float.h>.
19348 (lrintf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19350 Include <libm-alias-float.h>.
19351 (lroundf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19353 Include <libm-alias-float.h>.
19354 (modff): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19356 Include <libm-alias-float.h>.
19357 (roundf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19359 Include <libm-alias-float.h>.
19360 (truncf): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19362 <libm-alias-float.h>.
19363 (llrintf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19365 <libm-alias-float.h>.
19366 (llroundf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19368 <libm-alias-float.h>.
19369 (ceilf): Define using libm_alias_float.
19370 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19371 <libm-alias-float.h>.
19372 (floorf): Define using libm_alias_float.
19373 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19374 <libm-alias-float.h>.
19375 (llroundf): Define using libm_alias_float.
19376 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19377 <libm-alias-float.h>.
19378 (lroundf): Define using libm_alias_float.
19379 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19380 <libm-alias-float.h>.
19381 (roundf): Define using libm_alias_float.
19382 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19383 <libm-alias-float.h>.
19384 (truncf): Define using libm_alias_float.
19385 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19386 <libm-alias-float.h>.
19387 (copysignf): Define using libm_alias_float.
19388 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19389 <libm-alias-float.h>.
19390 (llrintf): Define using libm_alias_float.
19391 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19392 <libm-alias-float.h>.
19393 (llroundf): Define using libm_alias_float.
19394 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19395 <libm-alias-float.h>.
19396 (lrintf): Define using libm_alias_float.
19397 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19398 <libm-alias-float.h>.
19399 (lroundf): Define using libm_alias_float.
19400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19401 <libm-alias-float.h>.
19402 (ceilf): Define using libm_alias_float.
19403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19404 <libm-alias-float.h>.
19405 (copysignf): Define using libm_alias_float.
19406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19407 <libm-alias-float.h>.
19408 (cosf): Define using libm_alias_float.
19409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19410 <libm-alias-float.h>.
19411 (floorf): Define using libm_alias_float.
19412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19413 <libm-alias-float.h>.
19414 (llrintf): Define using libm_alias_float.
19415 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19416 <libm-alias-float.h>.
19417 (llroundf): Define using libm_alias_float.
19418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19419 <libm-alias-float.h>.
19420 (logbf): Define using libm_alias_float.
19421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19422 <libm-alias-float.h>.
19423 (modff): Define using libm_alias_float.
19424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19425 <libm-alias-float.h>.
19426 (roundf): Define using libm_alias_float.
19427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19428 <libm-alias-float.h>.
19429 (sinf): Define using libm_alias_float.
19430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19431 <libm-alias-float.h>.
19432 (truncf): Define using libm_alias_float.
19433 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19434 <libm-alias-float.h>.
19435 (ceilf): Define using libm_alias_float.
19436 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19437 <libm-alias-float.h>.
19438 (copysignf): Define using libm_alias_float.
19439 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19440 <libm-alias-float.h>.
19441 (floorf): Define using libm_alias_float.
19442 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19443 <libm-alias-float.h>.
19444 (llrintf): Define using libm_alias_float.
19445 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19446 <libm-alias-float.h>.
19447 (llroundf): Define using libm_alias_float.
19448 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19449 <libm-alias-float.h>.
19450 (nearbyintf): Define using libm_alias_float.
19451 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19452 <libm-alias-float.h>.
19453 (rintf): Define using libm_alias_float.
19454 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19455 <libm-alias-float.h>.
19456 (roundf): Define using libm_alias_float.
19457 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19458 <libm-alias-float.h>.
19459 (truncf): Define using libm_alias_float.
19460 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19461 <libm-alias-float.h>.
19462 (ceilf): Define using libm_alias_float.
19463 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19464 <libm-alias-float.h>.
19465 (floorf): Define using libm_alias_float.
19466 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19467 <libm-alias-float.h>.
19468 (llroundf): Define using libm_alias_float.
19469 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19470 <libm-alias-float.h>.
19471 (roundf): Define using libm_alias_float.
19472 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19473 <libm-alias-float.h>.
19474 (truncf): Define using libm_alias_float.
19475 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19476 <libm-alias-float.h>.
19477 (copysignf): Define using libm_alias_float.
19478 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19479 <libm-alias-float.h>.
19480 (llrintf): Define using libm_alias_float.
19481 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19482 <libm-alias-float.h>.
19483 (llroundf): Define using libm_alias_float.
19484 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19485 <libm-alias-float.h>.
19486 (cosf): Define using libm_alias_float.
19487 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19488 <libm-alias-float.h>.
19489 (llrintf): Define using libm_alias_float.
19490 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19491 <libm-alias-float.h>.
19492 (llroundf): Define using libm_alias_float.
19493 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19494 <libm-alias-float.h>.
19495 (sinf): Define using libm_alias_float.
19496
19497 2017-12-04 Florian Weimer <fweimer@redhat.com>
19498
19499 * support/check.h (TEST_COMPARE): Define.
19500 (support_test_compare_failure): Declare.
19501 * support/Makefile (libsupport-routines): Add
19502 support_test_compare_failure.
19503 (tests): Add tst-test_compare.
19504 * support /support_test_compare_failure.c: New file.
19505 * support/tst-test_compare.c: Likewise.
19506
19507 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19508
19509 [BZ #22527]
19510 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19511 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19512 available, this rewrite of the collation rules does reproduce
19513 the test file in the same order.
19514
19515 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19516
19517 [BZ #10580]
19518 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19519 digraphs in the month and day names. Using single code points for
19520 digraphs is deprecated. While there are dedicated Unicode
19521 codepoints, for the digraphs, these are included for backwards
19522 compatibility and modern texts use a sequence of Basic Latin
19523 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19524 This makes the month and day names agree exactly with CLDR now,
19525 CLDR does not use the single code points for the digraphs either.
19526
19527 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19528
19529 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19530
19531 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19532
19533 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19534 of floor.
19535
19536 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19537
19538 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19539 Define only for libc.so.
19540
19541 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19542
19543 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19544 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19545 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19546 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19547 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19548
19549 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19550
19551 [BZ #5997]
19552 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19553
19554 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19555
19556 [BZ libc/19170]
19557 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19558 PREINIT_FUNCTION_WEAK is nonzero.
19559 (gmon_initializer): New function. Put procedure label for it in
19560 .init_array section.
19561 (_init): Don't call PREINIT_FUNCTION.
19562 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19563 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19564 value when map argument is null.
19565
19566 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19567 depi instruction from PIC pc-relative sequence.
19568 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19569 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19570 (elf_machine_load_address): Likewise.
19571 (elf_machine_runtime_setup): Likewise.
19572
19573 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19574
19575 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19576 <libm-alias-double.h>.
19577 (logb): Define using libm_alias_double.
19578 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19579 <libm-alias-double.h>.
19580 (copysign): Define using libm_alias_double.
19581 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19582 <libm-alias-double.h>.
19583 (llrint): Define using libm_alias_double.
19584 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19585 <libm-alias-double.h>.
19586 (llround): Define using libm_alias_double.
19587 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19588 <libm-alias-double.h>.
19589 (lrint): Define using libm_alias_double.
19590 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19591 <libm-alias-double.h>.
19592 (lround): Define using libm_alias_double.
19593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19594 Include <libm-alias-double.h>.
19595 (copysign): Define using libm_alias_double.
19596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19597 Include <libm-alias-double.h>.
19598 (llrint): Define using libm_alias_double.
19599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19600 Include <libm-alias-double.h>.
19601 (llround): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19603 <libm-alias-double.h>.
19604 (logb): Define using libm_alias_double.
19605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19606 Include <libm-alias-double.h>.
19607 (lrint): Define using libm_alias_double.
19608 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19609 Include <libm-alias-double.h>.
19610 (lround): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19612 <libm-alias-double.h>.
19613 (llrint): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19615 <libm-alias-double.h>.
19616 (llround): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19618 <libm-alias-double.h>.
19619 (llround): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19621 <libm-alias-double.h>.
19622 (lround): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19624 <libm-alias-double.h>.
19625 (copysign): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19627 <libm-alias-double.h>.
19628 (llrint): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19630 <libm-alias-double.h>.
19631 (llround): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19633 <libm-alias-double.h>.
19634 (lrint): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19636 <libm-alias-double.h>.
19637 (lround): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19639 <libm-alias-double.h>.
19640 (copysign): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19642 <libm-alias-double.h>.
19643 (llrint): Define using libm_alias_double.
19644 (lrint): Likewise.
19645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19646 <libm-alias-double.h>.
19647 (llround): Define using libm_alias_double.
19648 (lround): Likewise.
19649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19650 <libm-alias-double.h>.
19651 (logb): Define using libm_alias_double.
19652 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19653 <libm-alias-double.h>.
19654 (copysign): Define using libm_alias_double.
19655 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19656 <libm-alias-double.h>.
19657 (llrint): Define using libm_alias_double.
19658 (lrint): Likewise.
19659 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19660 <libm-alias-double.h>.
19661 (llround): Define using libm_alias_double.
19662 (lround): Likewise.
19663 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19664 <libm-alias-double.h>.
19665 (llround): Define using libm_alias_double.
19666 (lround): Likewise.
19667 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19668 <libm-alias-double.h>.
19669 (copysign): Define using libm_alias_double.
19670 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19671 <libm-alias-double.h>.
19672 (llrint): Define using libm_alias_double.
19673 (lrint): Likewise.
19674 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19675 <libm-alias-double.h>.
19676 (llround): Define using libm_alias_double.
19677 (lround): Likewise.
19678 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19679 <libm-alias-double.h>.
19680 (llrint): Define using libm_alias_double.
19681 (lrint): Likewise.
19682 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19683 <libm-alias-double.h>.
19684 (llround): Define using libm_alias_double.
19685 (lround): Likewise.
19686
19687 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19688
19689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19690 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19691 compat symbol based on llround.
19692
19693 * sysdeps/powerpc/power7/fpu/s_logb.c
19694 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19695 symbol based on __logb, not on logb.
19696 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19697 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19699 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19700
19701 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19702 (rint): Define using libm_alias_double.
19703 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19704 <libm-alias-double.h>.
19705 (modf): Define using libm_alias_double.
19706 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19707 <libm-alias-double.h>.
19708 (ceil): Define using libm_alias_double.
19709 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19710 <libm-alias-double.h>.
19711 (floor): Define using libm_alias_double.
19712 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19713 <libm-alias-double.h>.
19714 (nearbyint): Define using libm_alias_double.
19715 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19716 <libm-alias-double.h>.
19717 (rint): Define using libm_alias_double.
19718 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19719 <libm-alias-double.h>.
19720 (round): Define using libm_alias_double.
19721 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19722 <libm-alias-double.h>.
19723 (trunc): Define using libm_alias_double.
19724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19725 <libm-alias-double.h>.
19726 (ceil): Define using libm_alias_double.
19727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19728 Include <libm-alias-double.h>.
19729 (floor): Define using libm_alias_double.
19730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19731 <libm-alias-double.h>.
19732 (modf): Define using libm_alias_double.
19733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19734 Include <libm-alias-double.h>.
19735 (round): Define using libm_alias_double.
19736 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19737 Include <libm-alias-double.h>.
19738 (trunc): Define using libm_alias_double.
19739 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19740 <libm-alias-double.h>.
19741 (ceil): Define using libm_alias_double.
19742 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19743 <libm-alias-double.h>.
19744 (floor): Define using libm_alias_double.
19745 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19746 <libm-alias-double.h>.
19747 (round): Define using libm_alias_double.
19748 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19749 <libm-alias-double.h>.
19750 (trunc): Define using libm_alias_double.
19751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19752 <libm-alias-double.h>.
19753 (ceil): Define using libm_alias_double.
19754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19755 <libm-alias-double.h>.
19756 (floor): Define using libm_alias_double.
19757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19758 <libm-alias-double.h>.
19759 (modf): Define using libm_alias_double.
19760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19761 <libm-alias-double.h>.
19762 (round): Define using libm_alias_double.
19763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19764 <libm-alias-double.h>.
19765 (trunc): Define using libm_alias_double.
19766 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19767 <libm-alias-double.h>.
19768 (ceil): Define using libm_alias_double.
19769 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19770 <libm-alias-double.h>.
19771 (floor): Define using libm_alias_double.
19772 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19773 <libm-alias-double.h>.
19774 (nearbyint): Define using libm_alias_double.
19775 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19776 <libm-alias-double.h>.
19777 (rint): Define using libm_alias_double.
19778 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19779 <libm-alias-double.h>.
19780 (round): Define using libm_alias_double.
19781 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19782 <libm-alias-double.h>.
19783 (trunc): Define using libm_alias_double.
19784 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19785 <libm-alias-double.h>.
19786 (ceil): Define using libm_alias_double.
19787 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19788 <libm-alias-double.h>.
19789 (floor): Define using libm_alias_double.
19790 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19791 <libm-alias-double.h>.
19792 (round): Define using libm_alias_double.
19793 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19794 <libm-alias-double.h>.
19795 (trunc): Define using libm_alias_double.
19796
19797 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19798 (fabs): Define using libm_alias_double.
19799 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19800 (fma): Define using libm_alias_double.
19801 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19802 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19803 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19804 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19805
19806 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19807
19808 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19809
19810 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19811 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19812 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19813
19814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19815 due redirect macro.
19816
19817 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19818
19819 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19820
19821 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19822
19823 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19824 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19825 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19826 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19827
19828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19829 (libm-sysdep_routines): Add s_nearbyintf-generic and
19830 s_nearbyint-generic.
19831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19832 New file.
19833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19835 Likewise.
19836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19837 Likewise.
19838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19839 file.
19840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19841 Likewise.
19842
19843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19844 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19846 file.
19847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19849 Likewise.
19850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19853
19854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19855 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19857 file.
19858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19859 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19860 Likewise.
19861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19864
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19866 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19868 file.
19869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19871 Likewise.
19872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19875
19876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19877 (sysdep_calls): New rule.
19878 (sysdep_routines): Use sysdep_calls as base.
19879 (libm-sysdep_routines): Add generic rule for symbols shared with
19880 libc. Add s_copysign-generic and s_copysign-generic objects.
19881 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19882 New file.
19883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19885 Likewise.
19886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19889
19890 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19891
19892 [BZ #22519]
19893 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19894 the list of locales to be built for testing.
19895 * localedata/is_IS.UTF-8.in: New file.
19896 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19897 on iso14651_t1.
19898
19899 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19900
19901 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19902 <libm-alias-float.h>.
19903 (fabsf): Define using libm_alias_float.
19904
19905 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19906
19907 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19908
19909 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19910
19911 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19912 <libm-alias-float.h>.
19913 (fabsf): Define using libm_alias_float.
19914 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19915 <libm-alias-float.h>.
19916 (lrintf): Define using libm_alias_float.
19917 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19918 <libm-alias-float.h>.
19919 (rintf): Define using libm_alias_float.
19920
19921 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19922 <libm-alias-double.h>.
19923 (fabs): Define using libm_alias_double.
19924 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19925 <libm-alias-double.h>.
19926 (lrint): Define using libm_alias_double.
19927 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19928 <libm-alias-double.h>.
19929 (rint): Define using libm_alias_double.
19930
19931 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19932 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19933 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19936 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19937 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19940 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19941 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19944 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19945 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19948 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19949 s_atan_template.c.
19950 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19952 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19953 s_ceil_template.c.
19954 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19955 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19956 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19957 s_cos_template.c.
19958 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19959 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19960 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19961 s_expm1_template.c.
19962 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19963 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19964 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19965 s_fabs_template.c.
19966 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19967 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19968 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19969 s_floor_template.c.
19970 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19971 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19972 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19973 s_frexp_template.c.
19974 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19975 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19976 s_lrint_template.c.
19977 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19978 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19979 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19980 s_modf_template.c.
19981 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19982 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19983 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19984 s_nearbyint_template.c.
19985 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19986 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19987 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19988 s_remquo_template.c.
19989 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19990 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19991 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19992 s_rint_template.c.
19993 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19994 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19995 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19996 s_sin_template.c.
19997 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19998 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19999 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20000 s_sincos_template.c.
20001 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20002 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20003 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20004 s_tan_template.c.
20005 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20006 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20007 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20008 s_tanh_template.c.
20009 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20010 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20011 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20012 s_trunc_template.c.
20013 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20014 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20015 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20016 s_atan.c instead of including s_atan.c.
20017 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20018 s_atanf.c instead of including s_atanf.c.
20019 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20020 s_atanl.c instead of including s_atanl.c.
20021 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20022 instead of s_atan.c.
20023 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20024 instead of s_atanf.c.
20025 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20026 instead of s_atanl.c.
20027
20028 * scripts/update-copyrights: Do not handle intl/plural.c
20029 specially.
20030
20031 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20032
20033 [BZ #22432]
20034 * configure.ac (BISON): Require to be present.
20035 * configure: Regenerated.
20036 * intl/Makefile (generated): Add plural.c.
20037 [$(BISON) != no]: Make code unconditional.
20038 (plural.c): Change rule to $(objpfx)plural.c.
20039 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20040 * intl/plural.c: Remove.
20041 * manual/install.texi (Tools for Compilation): Document bison as
20042 required.
20043 * INSTALL: Regenerated.
20044
20045 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20046
20047 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20048 <libm-alias-double.h>.
20049 (llrint): Define using libm_alias_double.
20050 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20051 <libm-alias-float.h>.
20052 (llrintf): Define using libm_alias_float.
20053 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20054 <libm-alias-ldouble.h>.
20055 (llrintl): Define using libm_alias_ldouble.
20056
20057 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20058 declare_mgen_alias instead of weak_alias.
20059 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20060 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20061 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20062
20063 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20064
20065 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20066 Add add_n-generic.
20067 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20068 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20069 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20070
20071 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20072 Add submul_1-generic.
20073 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20074 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20075 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20076
20077 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20078 Add addmul_1-generic.
20079 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20080 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20081 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20082
20083 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20084 Add sub_n-generic.
20085 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20086 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20087 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20088
20089 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20090 Add mul_1-generic.
20091 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20092 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20093 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20094
20095 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20096
20097 According to CLDR, collation rules for Serbian and Bosnian
20098 should be the same as for Croatian.
20099
20100 [BZ #22534]
20101 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20102 and to the list of locales to be built for testing.
20103 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20104 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20105 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20106 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20107
20108 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20109
20110 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20111 to make test case pass.
20112 * localedata/hr_HR.UTF-8.in: Add more test strings.
20113
20114 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20115
20116 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20117
20118 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20119
20120 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20121 the list of locales to built for testing.
20122 * localedata/hr_HR.UTF-8.in: New file.
20123
20124 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20125
20126 [BZ #10580]
20127 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20128 iso14651_t1.
20129 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20130 CLDR (except use ligatures for the digraphs, CLDR does not use
20131 the ligatures), add first_workday, some fixes in the date and time
20132 formats.
20133 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20134 for Đ and đ.
20135 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20136 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20137 Add int_p_cs_precedes and int_n_cs_precedes.
20138 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20139 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20140 LC_MONETARY now).
20141 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20142 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20143 name_miss.
20144 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20145 and lang_lib. Change postal_fmt.
20146
20147 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20148
20149 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20150 <setjmp.h>.
20151 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20152 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20153 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20154 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20155 * sysdeps/generic/setjmpP.h: New file.
20156 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20157 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20158 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20159 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20160 Add jmp_buf-ssp.sym.
20161 (tests): Add tst-saved_mask-1.
20162
20163 2017-11-30 Arjun Shankar <arjun@redhat.com>
20164
20165 [BZ #22375]
20166 CVE-2017-17426
20167 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20168 instead of request2size.
20169
20170 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20171
20172 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20173 (__lllrint): Remove alias.
20174 (lllrint): Likewise.
20175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20176 (__lllrintf): Likewise.
20177 (lllrintf): Likewise.
20178
20179 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20180 <libm-alias-float.h>.
20181 (copysignf): Define using libm_alias_float.
20182 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20183 <libm-alias-float.h>.
20184 (fabsf): Define using libm_alias_float.
20185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20186 Include <libm-alias-float.h>.
20187 (copysignf): Define using libm_alias_float.
20188 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20189 <libm-alias-float.h>.
20190 (fabsf): Define using libm_alias_float.
20191 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20192 <libm-alias-float.h>.
20193 (fdimf): Define using libm_alias_float.
20194 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20195 <libm-alias-float.h>.
20196 (fmaf): Define using libm_alias_float.
20197 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20198 <libm-alias-float.h>.
20199 (llrintf): Define using libm_alias_float.
20200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20201 Include <libm-alias-float.h>.
20202 (nearbyintf): Define using libm_alias_float.
20203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20204 <libm-alias-float.h>.
20205 (rintf): Define using libm_alias_float.
20206 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20207 <libm-alias-float.h>.
20208 (llrintf): Define using libm_alias_float.
20209 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20210 <libm-alias-float.h>.
20211 (lrintf): Define using libm_alias_float.
20212 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20213 <libm-alias-float.h>.
20214 (nearbyintf): Define using libm_alias_float.
20215 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20216 <libm-alias-float.h>.
20217 (rintf): Define using libm_alias_float.
20218 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20219 <libm-alias-float.h>.
20220 (ceilf): Define using libm_alias_float.
20221 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20222 <libm-alias-float.h>.
20223 (floorf): Define using libm_alias_float.
20224 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20225 <libm-alias-float.h>.
20226 (fmaf): Define using libm_alias_float.
20227 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20228 <libm-alias-float.h>.
20229 (lrintf): Define using libm_alias_float.
20230 (llrintf): Likewise.
20231 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20232 <libm-alias-float.h>.
20233 (nearbyintf): Define using libm_alias_float.
20234 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20235 <libm-alias-float.h>.
20236 (rintf): Define using libm_alias_float.
20237 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20238 <libm-alias-float.h>.
20239 (truncf): Define using libm_alias_float.
20240 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20241 <libm-alias-float.h>.
20242 (copysignf): Define using libm_alias_float.
20243 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20244 <libm-alias-float.h>.
20245 (fabsf): Define using libm_alias_float.
20246 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20247 <libm-alias-float.h>.
20248 (lrintf): Define using libm_alias_float.
20249 (llrintf): Likewise.
20250 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20251 <libm-alias-float.h>.
20252 (nearbyintf): Define using libm_alias_float.
20253 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20254 <libm-alias-float.h>.
20255 (rintf): Define using libm_alias_float.
20256
20257 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20258
20259 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20260 <libm-alias-double.h>.
20261 (copysign): Define using libm_alias_double.
20262 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20263 <libm-alias-double.h>.
20264 (fabs): Define using libm_alias_double.
20265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20266 Include <libm-alias-double.h>.
20267 (copysign): Define using libm_alias_double.
20268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20269 <libm-alias-double.h>.
20270 (fabs): Define using libm_alias_double.
20271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20272 <libm-alias-double.h>.
20273 (fdim): Define using libm_alias_double.
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20275 <libm-alias-double.h>.
20276 (fma): Define using libm_alias_double.
20277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20278 <libm-alias-double.h>.
20279 (llrint): Define using libm_alias_double.
20280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20281 Include <libm-alias-double.h>.
20282 (nearbyint): Define using libm_alias_double.
20283 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20284 <libm-alias-double.h>.
20285 (rint): Define using libm_alias_double.
20286 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20287 <libm-alias-double.h>.
20288 (fabs): Define using libm_alias_double.
20289 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20290 <libm-alias-double.h>.
20291 (llrint): Define using libm_alias_double.
20292 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20293 <libm-alias-double.h>.
20294 (nearbyint): Define using libm_alias_double.
20295 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20296 <libm-alias-double.h>.
20297 (rint): Define using libm_alias_double.
20298 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20299 <libm-alias-double.h>.
20300 (ceil): Define using libm_alias_double.
20301 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20302 <libm-alias-double.h>.
20303 (floor): Define using libm_alias_double.
20304 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20305 <libm-alias-double.h>.
20306 (fma): Define using libm_alias_double.
20307 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20308 <libm-alias-double.h>.
20309 (lrint): Define using libm_alias_double.
20310 (llrint): Likewise.
20311 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20312 <libm-alias-double.h>.
20313 (nearbyint): Define using libm_alias_double.
20314 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20315 <libm-alias-double.h>.
20316 (rint): Define using libm_alias_double.
20317 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20318 <libm-alias-double.h>.
20319 (trunc): Define using libm_alias_double.
20320 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20321 <libm-alias-double.h>.
20322 (copysign): Define using libm_alias_double.
20323 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20324 <libm-alias-double.h>.
20325 (fabs): Define using libm_alias_double.
20326 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20327 <libm-alias-double.h>.
20328 (lrint): Define using libm_alias_double.
20329 (llrint): Likewise.
20330 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20331 <libm-alias-double.h>.
20332 (nearbyint): Define using libm_alias_double.
20333 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20334 <libm-alias-double.h>.
20335 (rint): Define using libm_alias_double.
20336
20337 [BZ #22229]
20338 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20339 <math_ldbl_opt.h>.
20340 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20341
20342 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20343 SPARC --disable-multi-arch glibc variants.
20344
20345 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20346 <libm-alias-float.h>.
20347 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20348 if [SHARED].
20349 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20350 <libm-alias-float.h>.
20351 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20352 if [SHARED].
20353 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20354 <libm-alias-float.h>.
20355 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20356 if [SHARED].
20357 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20358 <libm-alias-float.h>.
20359 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20360 if [SHARED].
20361 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20362 <libm-alias-float.h>.
20363 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20364 if [SHARED].
20365 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20366 <libm-alias-float.h>.
20367 (ceilf): Define using libm_alias_float.
20368 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20369 <libm-alias-float.h>.
20370 (floorf): Define using libm_alias_float.
20371 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20372 <libm-alias-float.h>.
20373 (fmaf): Define using libm_alias_float.
20374 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20375 <libm-alias-float.h>.
20376 (nearbyintf): Define using libm_alias_float.
20377 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20378 <libm-alias-float.h>.
20379 (rintf): Define using libm_alias_float.
20380 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20381 <libm-alias-float.h>.
20382 (truncf): Define using libm_alias_float.
20383 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20384 (copysignf): Define using libm_alias_float.
20385 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20386 (cosf): Define using libm_alias_float.
20387 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20388 (fabsf): Define using libm_alias_float.
20389 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20390 (fmaxf): Define using libm_alias_float.
20391 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20392 (fminf): Define using libm_alias_float.
20393 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20394 (llrintf): Define using libm_alias_float.
20395 [!__ILP32__] (lrintf): Likewise.
20396 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20397 (sincosf): Define using libm_alias_float.
20398 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20399 (sinf): Define using libm_alias_float.
20400 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20401 (lrintf): Define using libm_alias_float.
20402
20403 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20404 <libm-alias-double.h>.
20405 (atan): Define using libm_alias_double.
20406 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20407 <libm-alias-double.h>.
20408 (ceil): Define using libm_alias_double.
20409 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20410 <libm-alias-double.h>.
20411 (floor): Define using libm_alias_double.
20412 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20413 <libm-alias-double.h>.
20414 (fma): Define using libm_alias_double.
20415 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20416 <libm-alias-double.h>.
20417 (nearbyint): Define using libm_alias_double.
20418 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20419 <libm-alias-double.h>.
20420 (rint): Define using libm_alias_double.
20421 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20422 <libm-alias-double.h>.
20423 (sin): Define using libm_alias_double.
20424 (cos): Likewise.
20425 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20426 <libm-alias-double.h>.
20427 (tan): Define using libm_alias_double.
20428 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20429 <libm-alias-double.h>.
20430 (trunc): Define using libm_alias_double.
20431 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20432 (copysign): Define using libm_alias_double.
20433 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20434 (fabs): Define using libm_alias_double.
20435 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20436 (fmax): Define using libm_alias_double.
20437 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20438 (fmin): Define using libm_alias_double.
20439 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20440 (llrint): Define using libm_alias_double.
20441 [!__ILP32__] (lrint): Likewise.
20442 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20443 (lrint): Define using libm_alias_double.
20444
20445 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20446
20447 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20448 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20449 objects.
20450 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20451 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20452 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20453 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20454 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20455 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20456
20457 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20458 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20459 objects.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20462 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20463 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20464 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20465 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20466
20467 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20468 (libm-sysdep_routines): Add s_nearbyint-generic and
20469 s_nearbyintf-generic objects.
20470 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20471 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20472 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20473 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20474 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20475 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20476
20477 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20478 Add s_finitef-generic and s_finite-generic objects.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20482 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20484 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20485
20486 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20487 Add s_isinff-generic and s_isinf-generic objects.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20489 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20491 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20494
20495 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20496 Add s_isnanf-generic and s_isnan-generic objects.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20498 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20499 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20500 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20501 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20502 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20503
20504 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20505 macro.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20507 rule.
20508 (sysdep_routines): Use sysdep_calls as base.
20509 (libm-sysdep_routines): Add generic rule for symbols shared with
20510 libc. Add s_signbit-generic and s_signbitf-generic objects.
20511 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20512 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20513 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20514 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20515 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20516 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20517
20518 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20519
20520 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20521 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20522 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20523 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20524 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20525 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20526 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20527 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20528 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20529 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20530 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20531 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20532 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20533 libm_alias_float_r.
20534 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20535 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20536 (logf): Likewise.
20537 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20538 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20539 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20540 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20541 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20542 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20543 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20544 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20545 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20546 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20547 libm_alias_float.
20548 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20549 (cosf): Likewise.
20550 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20551 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20552 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20553 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20554 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20555 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20556 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20557 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20558 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20559 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20560 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20561 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20562 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20563 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20564 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20565 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20566 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20567 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20568 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20569 libm_alias_float.
20570 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20571 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20572 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20573 * sysdeps/ia64/fpu/w_lgammaf_main.c
20574 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20575 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20576
20577 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20578 Alexandre Oliva <aoliva@redhat.com>
20579
20580 [BZ #17750]
20581 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20582 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20583 accents sorting.
20584 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20585 sorting.
20586 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20587 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20588 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20589 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20590 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20591 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20592 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20593 instead of “ifdef DIACRIT_BACKWARD”.
20594
20595 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20596
20597 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20598 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20599 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20600 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20601 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20602 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20603 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20604 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20605 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20606 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20607 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20608 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20609 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20610 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20611 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20612 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20613 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20614 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20615 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20616 ($(have-as-vis3) == yes): Remove conditional.
20617 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20618 Likewise.
20619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20620 file.
20621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20622 file.
20623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20624 file.
20625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20626 file.
20627 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20628 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20629 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20630 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20631 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20632 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20633 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20634 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20635
20636 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20637
20638 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20639 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20640 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20641 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20642 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20643 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20644 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20645 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20646 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20647 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20648 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20649 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20650 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20651 libm_alias_double_r.
20652 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20653 (log): Likewise.
20654 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20655 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20656 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20657 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20658 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20659 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20660 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20661 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20662 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20663 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20664 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20665 libm_alias_double.
20666 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20667 (cos): Likewise.
20668 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20669 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20670 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20671 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20672 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20673 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20674 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20675 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20676 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20677 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20678 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20679 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20680 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20681 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20682 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20683 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20684 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20685 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20686 libm_alias_double.
20687 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20688 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20689 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20690 * sysdeps/ia64/fpu/w_lgamma_main.c
20691 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20692 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20693
20694 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20695
20696 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20697 address of $global$ into %dp register earlier. Use pc-relative
20698 instruction sequence for PIC case.
20699
20700 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20701
20702 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20703 (asinhf): Define using libm_alias_float.
20704 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20705 (atanf): Define using libm_alias_float.
20706 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20707 (cbrtf): Define using libm_alias_float.
20708 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20709 (ceilf): Define using libm_alias_float.
20710 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20711 (copysignf): Define using libm_alias_float.
20712 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20713 (expm1f): Define using libm_alias_float.
20714 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20715 (fabsf): Define using libm_alias_float.
20716 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20717 (floorf): Define using libm_alias_float.
20718 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20719 (fmaxf): Define using libm_alias_float.
20720 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20721 (fminf): Define using libm_alias_float.
20722 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20723 (frexpf): Define using libm_alias_float.
20724 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20725 (llrintf): Define using libm_alias_float.
20726 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20727 (logbf): Define using libm_alias_float.
20728 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20729 (lrintf): Define using libm_alias_float.
20730 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20731 (nearbyintf): Define using libm_alias_float.
20732 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20733 (remquof): Define using libm_alias_float.
20734 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20735 (rintf): Define using libm_alias_float.
20736 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20737 (truncf): Define using libm_alias_float.
20738 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20739 <libm-alias-float.h>.
20740 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20741 if [SHARED].
20742 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20743 <libm-alias-float.h>.
20744 (expf): Define using libm_alias_float, or libm_alias_float_other
20745 if [SHARED].
20746 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20747 <libm-alias-float.h>.
20748 (log2f): Define using libm_alias_float, or libm_alias_float_other
20749 if [SHARED].
20750 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20751 <libm-alias-float.h>.
20752 (logf): Define using libm_alias_float, or libm_alias_float_other
20753 if [SHARED].
20754 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20755 <libm-alias-float.h>.
20756 (powf): Define using libm_alias_float, or libm_alias_float_other
20757 if [SHARED].
20758 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20759 <libm-alias-float.h>.
20760 (cosf): Define using libm_alias_float.
20761 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20762 <libm-alias-float.h>.
20763 (sincosf): Define using libm_alias_float.
20764 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20765 <libm-alias-float.h>.
20766 (sinf): Define using libm_alias_float.
20767 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20768 (fmaxf): Define using libm_alias_float.
20769 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20770 (fminf): Define using libm_alias_float.
20771 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20772 <libm-alias-float.h>.
20773 (fmaf): Define using libm_alias_float.
20774
20775 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20776 (asinh): Define using libm_alias_double.
20777 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20778 (atan): Define using libm_alias_double.
20779 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20780 (cbrt): Define using libm_alias_double.
20781 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20782 (ceil): Define using libm_alias_double.
20783 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20784 (copysign): Define using libm_alias_double.
20785 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20786 (expm1): Define using libm_alias_double.
20787 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20788 (fabs): Define using libm_alias_double.
20789 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20790 (fdim): Define using libm_alias_double.
20791 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20792 (floor): Define using libm_alias_double.
20793 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20794 (fmax): Define using libm_alias_double.
20795 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20796 (fmin): Define using libm_alias_double.
20797 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20798 (frexp): Define using libm_alias_double.
20799 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20800 (llrint): Define using libm_alias_double.
20801 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20802 (logb): Define using libm_alias_double.
20803 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20804 (lrint): Define using libm_alias_double.
20805 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20806 (nearbyint): Define using libm_alias_double.
20807 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20808 (remquo): Define using libm_alias_double.
20809 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20810 (rint): Define using libm_alias_double.
20811 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20812 (trunc): Define using libm_alias_double.
20813 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20814 (fmax): Define using libm_alias_double.
20815 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20816 (fmin): Define using libm_alias_double.
20817 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20818 (fma): Define using libm_alias_double.
20819
20820 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20821
20822 [BZ #22370]
20823 * elf/dl-hwcaps.c (ROUND): Removed.
20824 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20825 and ELF_NOTE_NEXT_OFFSET.
20826 * elf/dl-load.c (ROUND): Removed.
20827 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20828 * elf/readelflib.c (ROUND): Removed.
20829 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20830 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20831 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20832 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20833
20834 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20835
20836 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20837 [!__fmaf] (fmaf): Define using libm_alias_float.
20838
20839 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20840 [!__fma] (fma): Define using libm_alias_double.
20841 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20842
20843 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20844
20845 [BZ #22336]
20846 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20847 and implement the collation rules for cs from CLDR on top of that.
20848 * Makefile: Add cs_CZ.UTF-8 to test-input.
20849 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20850
20851 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20852
20853 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20854
20855 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20856 Icarus Sparry <icarus.w.sparry@intel.com>
20857
20858 * benchtests/Makefile:Add BENCHSET to allow subsets of
20859 benchmarks to be run.
20860 * benchtests/README: Add documentation for: Running subsets of
20861 benchmarks.
20862
20863 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20864
20865 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20866 range of tests names.
20867
20868 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20869 result from property and remove "max", min" and "mean" from
20870 required properties based on benchtests/bench-skeleton.c.
20871
20872 2017-11-28 Florian Weimer <fweimer@redhat.com>
20873
20874 [BZ #20826]
20875 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20876 due to Internet requirement.
20877 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20878 tst-getaddrinfo5.
20879 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20880
20881 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20882
20883 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20884 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20885 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20886 (sysdep_routines): Add memset-ultra1.
20887 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20888 file.
20889 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20890 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20891 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20892 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20893 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20894 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20895 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20896 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20897
20898 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20899 file.
20900 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20901 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20902 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20903 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20904 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20905 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20906 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20907 macro.
20908 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20909 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20910 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20911 (sysdep_routines): Add memcpy-ultra1.
20912 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20913 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20914
20915 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20916
20917 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20918 (cfloat_versions): Take function argument without trailing 'f'.
20919 Call libm_alias_float_other.
20920 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20921 * sysdeps/alpha/fpu/cargf.c: Likewise.
20922 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20923 * sysdeps/alpha/fpu/conjf.c: Likewise.
20924 * sysdeps/alpha/fpu/crealf.c: Likewise.
20925 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20926 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20927 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20928 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20929 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20930 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20931 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20932 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20933 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20934 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20935 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20936 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20937 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20938 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20939 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20940 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20941 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20942 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20943 (clog10f): Use libm_alias_float_other.
20944 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20945 (ceilf): Define using libm_alias_float.
20946 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20947 (copysignf): Define using libm_alias_float.
20948 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20949 (fabsf): Define using libm_alias_float.
20950 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20951 (floorf): Define using libm_alias_float.
20952 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20953 (fmaxf): Define using libm_alias_float.
20954 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20955 (fminf): Define using libm_alias_float.
20956 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20957 (lrintf): Define using libm_alias_float.
20958 (llrintf): Likewise.
20959 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20960 (lroundf): Define using libm_alias_float.
20961 (llroundf): Likewise.
20962 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20963 (rintf): Define using libm_alias_float.
20964 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20965 (truncf): Define using libm_alias_float.
20966
20967 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20968 (ceilf): Define using libm_alias_float.
20969 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20970 (floorf): Define using libm_alias_float.
20971 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20972 (fmaf): Define using libm_alias_float.
20973 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20974 (fmaxf): Define using libm_alias_float.
20975 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20976 (fminf): Define using libm_alias_float.
20977 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20978 (llrintf): Define using libm_alias_float.
20979 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20980 (llroundf): Define using libm_alias_float.
20981 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20982 (lrintf): Define using libm_alias_float.
20983 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20984 (lroundf): Define using libm_alias_float.
20985 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20986 <libm-alias-float.h>.
20987 (nearbyintf): Define using libm_alias_float.
20988 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20989 (rintf): Define using libm_alias_float.
20990 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20991 (roundf): Define using libm_alias_float.
20992 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20993 (truncf): Define using libm_alias_float.
20994
20995 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20996 (ceil): Define using libm_alias_double.
20997 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20998 (copysign): Define using libm_alias_double.
20999 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21000 (fabs): Define using libm_alias_double.
21001 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21002 (floor): Define using libm_alias_double.
21003 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21004 (fmax): Define using libm_alias_double.
21005 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21006 (fmin): Define using libm_alias_double.
21007 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21008 (lrint): Define using libm_alias_double.
21009 (llrint): Likewise.
21010 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21011 (lround): Define using libm_alias_double.
21012 (llround): Likewise.
21013 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21014 (rint): Define using libm_alias_double.
21015 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21016 (trunc): Define using libm_alias_double.
21017
21018 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21019 (libm_alias_double_r): Add semicolon after weak_alias call.
21020
21021 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21022
21023 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21024 (ceil): Define using libm_alias_double.
21025 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21026 (floor): Define using libm_alias_double.
21027 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21028 (fma): Define using libm_alias_double.
21029 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21030 (fmax): Define using libm_alias_double.
21031 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21032 (fmin): Define using libm_alias_double.
21033 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21034 (llrint): Define using libm_alias_double.
21035 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21036 (llround): Define using libm_alias_double.
21037 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21038 (lrint): Define using libm_alias_double.
21039 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21040 (lround): Define using libm_alias_double.
21041 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21042 (nearbyint): Define using libm_alias_double.
21043 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21044 (rint): Define using libm_alias_double.
21045 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21046 (round): Define using libm_alias_double.
21047 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21048 (trunc): Define using libm_alias_double.
21049
21050 2017-11-27 Florian Weimer <fweimer@redhat.com>
21051
21052 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21053 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21054 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21055 (tests): Add tst-mlock2.
21056 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21057 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21058 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21059 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21060 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21061 for mlock. Document mlock2.
21062
21063 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21064
21065 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21066 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21067 Likewise.
21068 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21069 Likewise.
21070 * sysdeps/x86/Makeconfig: New file.
21071 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21072 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21073 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21074 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21075 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21076 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21077 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21078 Likewise.
21079 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21080 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21081 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21082 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21083 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21084 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21085 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21086 * manual/math.texi (Mathematics): Document support for _Float64x.
21087 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21088 * stdlib/Versions (GLIBC_2.27): Likewise.
21089 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21090 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21091 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21092 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21093 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21094 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21095 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21096 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21097 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21098 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21099 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21100 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21102 Likewise.
21103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21104 Likewise.
21105 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21108 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21109 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21112 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21113 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21114 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21115 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21116 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21117 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21118 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21119
21120 2017-11-27 Andreas Schwab <schwab@suse.de>
21121
21122 * elf/Makefile (dl-routines): Add dl-sort-maps.
21123 * elf/dl-sort-maps.c: New file.
21124 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21125 (_dl_sort_maps): Declare.
21126 * elf/dl-fini.c (_dl_sort_fini): Remove.
21127 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21128 * elf/dl-close.c (_dl_close_worker): Likewise.
21129 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21130 open-coding it.
21131 * elf/dl-open.c (dl_open_worker): Likewise.
21132
21133 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21134
21135 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21136 using libm_alias_float128.
21137 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21138 Likewise.
21139 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21140 Likewise.
21141 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21142 (setpayloadsigf128): Likewise.
21143 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21144 Likewise.
21145 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21146 Likewise.
21147
21148 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21149 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21150 -mfloat128 to CFLAGS.
21151 ($(foreach
21152 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21153 Likewise.
21154 (CFLAGS-libm-test-support-float64x.c): New variable.
21155 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21156 $(f128-loader-link) to gnulib-tests.
21157
21158 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21159 (libm_alias_float128_other_r): If
21160 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21161 alias.
21162 (libm_alias_float128_r): Add semicolon after weak_alias call.
21163 * sysdeps/generic/libm-alias-ldouble.h
21164 (libm_alias_ldouble_other_r_f128): New macro.
21165 (libm_alias_ldouble_other_r_f64x): Likewise.
21166 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21167 and libm_alias_ldouble_other_r_f64x.
21168 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21169 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21170 (libm_alias_ldouble_other_r_f128): New macro.
21171 (libm_alias_ldouble_other_r_f64x): Likewise.
21172 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21173 and libm_alias_ldouble_other_r_f64x.
21174
21175 * stdlib/strfroml.c: Always include <stdlib.h>.
21176 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21177 undefine as macro and define as weak alias.
21178 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21179 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21180 <stdlib.h>.
21181 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21182 Define and later undefine as macro and define as weak alias.
21183
21184 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21185 Define and later undefine as macro. Define as weak alias if
21186 [!USE_WIDE_CHAR].
21187 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21188 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21189 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21190 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21191 Define and later undefine as macro. Define as weak alias if
21192 [!USE_WIDE_CHAR].
21193 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21194 Define and later undefine as macro. Define as weak alias if
21195 [USE_WIDE_CHAR].
21196 * sysdeps/ieee754/float128/strtof128_l.c
21197 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21198 Define and later undefine as macro. Define as weak alias if
21199 [!USE_WIDE_CHAR].
21200 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21201 Define and later undefine as macro. Define as weak alias if
21202 [USE_WIDE_CHAR].
21203 * sysdeps/ieee754/ldbl-128/strtold_l.c
21204 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21205 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21206 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21207 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21208 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21209 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21210 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21211 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21212 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21213 * sysdeps/ieee754/ldbl-96/strtold_l.c
21214 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21215 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21216 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21217 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21218
21219 * math/test-float64x.h: New file.
21220 * math/Makefile (type-float64x-yes): New variable.
21221 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21222
21223 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21224 function-like macro.
21225 (min_of_type_): Likewise.
21226 (min_of_type_l): Likewise.
21227 (min_of_type_f128): Likewise.
21228 (min_of_type): Pass () as last argument of __MATH_TG.
21229
21230 * stdlib/tst-strtod-round-skeleton.c
21231 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21232 headers.
21233
21234 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21235 for combinations of long double with _Float64 and _Float64x.
21236
21237 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21238 (__DECL_SIMD_cosf32): Likewise.
21239 (__DECL_SIMD_cosf64): Likewise.
21240 (__DECL_SIMD_cosf32x): Likewise.
21241 (__DECL_SIMD_cosf64x): Likewise.
21242 (__DECL_SIMD_cosf128x): Likewise.
21243 (__DECL_SIMD_sinf16): Likewise.
21244 (__DECL_SIMD_sinf32): Likewise.
21245 (__DECL_SIMD_sinf64): Likewise.
21246 (__DECL_SIMD_sinf32x): Likewise.
21247 (__DECL_SIMD_sinf64x): Likewise.
21248 (__DECL_SIMD_sinf128x): Likewise.
21249 (__DECL_SIMD_sincosf16): Likewise.
21250 (__DECL_SIMD_sincosf32): Likewise.
21251 (__DECL_SIMD_sincosf64): Likewise.
21252 (__DECL_SIMD_sincosf32x): Likewise.
21253 (__DECL_SIMD_sincosf64x): Likewise.
21254 (__DECL_SIMD_sincosf128x): Likewise.
21255 (__DECL_SIMD_logf16): Likewise.
21256 (__DECL_SIMD_logf32): Likewise.
21257 (__DECL_SIMD_logf64): Likewise.
21258 (__DECL_SIMD_logf32x): Likewise.
21259 (__DECL_SIMD_logf64x): Likewise.
21260 (__DECL_SIMD_logf128x): Likewise.
21261 (__DECL_SIMD_expf16): Likewise.
21262 (__DECL_SIMD_expf32): Likewise.
21263 (__DECL_SIMD_expf64): Likewise.
21264 (__DECL_SIMD_expf32x): Likewise.
21265 (__DECL_SIMD_expf64x): Likewise.
21266 (__DECL_SIMD_expf128x): Likewise.
21267 (__DECL_SIMD_powf16): Likewise.
21268 (__DECL_SIMD_powf32): Likewise.
21269 (__DECL_SIMD_powf64): Likewise.
21270 (__DECL_SIMD_powf32x): Likewise.
21271 (__DECL_SIMD_powf64x): Likewise.
21272 (__DECL_SIMD_powf128x): Likewise.
21273
21274 * stdlib/Versions (libc): Move entries for wcstof128 and
21275 wcstof128_l to ....
21276 * wcsmbs/Versions (libc): ... here.
21277 Include <float128-abi.h>.
21278
21279 2017-11-24 Florian Weimer <fweimer@redhat.com>
21280
21281 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21282 bits/mman-shared.h.
21283 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21284 <bits/mman-shared.h>.
21285 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21286 to ...
21287 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21288 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21289 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21290 <bits/mman-shared.h>.
21291
21292 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21293
21294 [BZ #22457]
21295 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21296 posix_memalign/free.
21297 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21298
21299 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21300
21301 [BZ #22469]
21302 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21303 and implement the collation rules for pl from CLDR on top of that.
21304 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21305 of locales to be built for testing.
21306 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21307
21308 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21309
21310 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21311 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21312 libm_alias_ldouble_other.
21313 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21314 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21315 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21316 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21317 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21318 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21319 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21320 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21321 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21322 libm_alias_ldouble_r.
21323 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21324 libm_alias_ldouble_other.
21325 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21326 (log10l): Likewise.
21327 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21328 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21329 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21330 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21331 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21332 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21333 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21334 (atan2l): Likewise.
21335 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21336 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21337 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21338 libm_alias_ldouble.
21339 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21340 (cosl): Likewise.
21341 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21342 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21343 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21344 (expl): Likewise.
21345 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21346 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21347 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21348 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21349 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21350 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21351 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21352 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21353 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21354 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21355 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21356 libm_alias_ldouble.
21357 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21358 libm_alias_ldouble_other.
21359 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21360 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21361 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21362 libm_alias_ldouble.
21363 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21364 libm_alias_ldouble_other.
21365 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21366 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21367 * sysdeps/ia64/fpu/w_lgammal_main.c
21368 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21369 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21370
21371 2017-11-23 Florian Weimer <fweimer@redhat.com>
21372
21373 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21374 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21375 alike. Remove freeres marker.
21376 * malloc/arena.c (arena_thread_freeres): Call
21377 tcache_thread_shutdown.
21378
21379 2017-11-23 Florian Weimer <fweimer@redhat.com>
21380
21381 [BZ #22459]
21382 Export nscd hash function as __nss_hash.
21383 * include/nss.h (__nss_hash): Declare.
21384 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21385 symbol.
21386 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21387 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21388 of __nscd_hash.
21389 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21390 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21391 * nss/Makefiles (routines): Add nss_hash.
21392 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21393 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21394 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21395 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21396
21397 2017-11-23 Florian Weimer <fweimer@redhat.com>
21398
21399 [BZ #22478]
21400 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21401 Return error code, not -1.
21402 * signal/tst-sigwait-eintr.c: New file.
21403 * signal/Makefile (tests): Add tst-sigwait-eintr.
21404
21405 2017-11-23 Florian Weimer <fweimer@redhat.com>
21406
21407 Linux: Add memfd_create system call wrapper
21408 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21409 tst-memfd_create.
21410 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21411 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21412 [__USE_GNU] (memfd_create): Declare.
21413 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21414 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21415 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21416 * sysdeps/unix/sysv/linux/**.abilist: Update.
21417 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21418
21419 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21420
21421 * localedata/gen-locale.sh: Fix typo in variable name.
21422
21423 * resolv/res_debug.c (p_secstodate): Condition definition on
21424 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21425 directly as __p_secstodate, and as a compat symbol. Do not use
21426 libresolv_hidden_def.
21427 * resolv/resolv.h (p_secstodate): Remove macro and function
21428 declaration.
21429 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21430 using p_secstodate.
21431 * include/resolv.h (__p_secstodate): Do not use
21432 libresolv_hidden_proto.
21433 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21434 (tests-internal): ... here.
21435 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21436 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21437 and declare and use __p_secstodate and use compat_symbol_reference
21438 in that case.
21439 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21440 implementation returning 77.
21441
21442 [BZ #22463]
21443 * resolv/res_debug.c: Include <libc-diag.h>.
21444 (p_secstodate): Assert time_t at least as wide as u_long. On
21445 overflow, use integer seconds since the epoch as output, or use
21446 "<overflow>" as output and set errno to EOVERFLOW if integer
21447 seconds since the epoch would be 14 or more characters.
21448 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21449 for sprintf call.
21450 * resolv/tst-p_secstodate.c: New file.
21451 * resolv/Makefile (tests): Add tst-p_secstodate.
21452 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21453
21454 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21455 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21456 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21457
21458 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21459
21460 * posix/regcomp.c (init_word_char): Add comments.
21461
21462 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21463
21464 [BZ #22447]
21465 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21466 strlen to compute length of ut_user and set trailing NUL byte of
21467 result explicitly.
21468
21469 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21470
21471 [BZ #15537]
21472 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21473 using “copy "iso14651_t1"” and then implementing the
21474 collation rules for lv from CLDR on top of that.
21475 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21476 of locales to be built for testing.
21477 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21478 sorting.
21479
21480 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21481
21482 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21483 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21484 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21485 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21486 [__USE_MISC] (MADV_HWPOISON): New macro.
21487 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21488
21489 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21490
21491 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21492 -Wmissing-braces on GCC 4.9.
21493
21494 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21495
21496 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21497 * sysdeps/s390/s390-32/start.S (_start): Likewise
21498 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21499 (thread_start): Likewise.
21500 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21501 (thread_start): Likewise.
21502 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21503 (__makecontext_ret): Likewise.
21504 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21505 (__makecontext_ret): Likewise.
21506
21507 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21508
21509 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21510 __wcschrnul): Remove attribute_hidden.
21511
21512 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21513
21514 regex: don't assume uint64_t or uint32_t
21515 This avoids -Werror=overflow errors for 32-bit systems in
21516 the 64-bit case. Problem reported by Joseph Myers in:
21517 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21518 Also, when this code is used in Gnulib it ports to platforms
21519 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21520 them, and on some 32-bit compilers there is no uint64_t.
21521 Problem reported by Gianluigi Tiesi in:
21522 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21523 * posix/regcomp.c (init_word_char): Don't assume that the types
21524 uint64_t and uint32_t exist. Adapted from Gnulib patch
21525 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21526 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21527
21528 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21529
21530 * sysdeps/aarch64/memset-reg.h: New file.
21531 * sysdeps/aarch64/memset.S: Use it.
21532 (__memset): Rename to MEMSET macro.
21533 [ZVA_MACRO]: Use zva_macro.
21534 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21535 Add memset_generic and memset_falkor.
21536 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21537 (__libc_ifunc_impl_list): Add memset ifuncs.
21538 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21539 local variable zva_size.
21540 * sysdeps/aarch64/multiarch/memset.c: New file.
21541 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21542 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21543 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21544 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21545 (DCZID_DZP_MASK): New macro.
21546 (DCZID_BS_MASK): Likewise.
21547 (init_cpu_features): Read and set zva_size.
21548 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21549 (struct cpu_features): New member zva_size.
21550
21551 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21552 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21553 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21554
21555 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21556 backwards. Fix timing computation.
21557 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21558 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21559 on memset by N at a time. Fix timing computation.
21560
21561 2017-11-20 Florian Weimer <fweimer@redhat.com>
21562
21563 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21564 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21565
21566 2017-11-19 Florian Weimer <fweimer@redhat.com>
21567
21568 manual: Document mprotect
21569 * manual/memory.texi (Memory Protection): New section.
21570 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21571 documentation of PROT_* flags and reference the Memory Protection
21572 section instead.
21573
21574 2017-11-19 Florian Weimer <fweimer@redhat.com>
21575
21576 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21577 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21578 (Scatter-Gather): ... to here. Remove misleading comment.
21579
21580 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21581
21582 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21583 style.
21584
21585 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21586 when /proc/<pid>/setgroups does not exist.
21587
21588 2017-11-18 Florian Weimer <fweimer@redhat.com>
21589
21590 * sysdeps/unix/sysv/linux/tst-ttyname.c
21591 (become_root_in_mount_ns): Remove.
21592 (do_in_chroot_1): Call support_enter_mount_namespace.
21593 (do_in_chroot_2): Likewise.
21594 (do_test): Call support_become_root early.
21595
21596 2017-11-18 Florian Weimer <fweimer@redhat.com>
21597
21598 * support/namespace.h (support_enter_mount_namespace): Declare.
21599 * support/support_enter_mount_namespace.c: New file.
21600 * support/Makefile (libsupport-routines): Add
21601 support_enter_mount_namespace.
21602
21603 2017-11-18 Florian Weimer <fweimer@redhat.com>
21604
21605 * support/temp_file.c (support_create_temp_directory): Use
21606 test_dir and do not rely on the presence of the XXXXXX suffix.
21607 * support/temp_file.h (support_create_temp_directory): Update
21608 comment.
21609 * support/tst-xreadlink.c (do_test): Adjust.
21610 * support/support_chroot.c (support_chroot_create): Likewise.
21611
21612 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21613
21614 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21615 macro.
21616 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21617 htm-no-suspend.
21618
21619 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21620
21621 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21622 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21623 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21624 (ceill): Define using libm_alias_ldouble.
21625 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21626 <libm-alias-ldouble.h>.
21627 (copysignl): Define using libm_alias_ldouble.
21628 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21629 (fabsl): Define using libm_alias_ldouble.
21630 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21631 (floorl): Define using libm_alias_ldouble.
21632 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21633 (fmaxl): Define using libm_alias_ldouble.
21634 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21635 (fminl): Define using libm_alias_ldouble.
21636 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21637 (llrintl): Define using libm_alias_ldouble.
21638 (lrintl): Likewise.
21639 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21640 <libm-alias-ldouble.h>.
21641 (nearbyintl): Define using libm_alias_ldouble.
21642 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21643 (truncl): Define using libm_alias_ldouble.
21644 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21645 <libm-alias-ldouble.h>.
21646 (lrintl): Define using libm_alias_ldouble.
21647
21648 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21649 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21650 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21651 (asinhl): Define using libm_alias_ldouble.
21652 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21653 (atanl): Define using libm_alias_ldouble.
21654 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21655 (cbrtl): Define using libm_alias_ldouble.
21656 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21657 (ceill): Define using libm_alias_ldouble.
21658 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21659 (copysignl): Define using libm_alias_ldouble.
21660 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21661 (fabsl): Define using libm_alias_ldouble.
21662 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21663 (floorl): Define using libm_alias_ldouble.
21664 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21665 (fmaxl): Define using libm_alias_ldouble.
21666 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21667 (fminl): Define using libm_alias_ldouble.
21668 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21669 (frexpl): Define using libm_alias_ldouble.
21670 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21671 (llrintl): Define using libm_alias_ldouble.
21672 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21673 (logbl): Define using libm_alias_ldouble.
21674 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21675 (lrintl): Define using libm_alias_ldouble.
21676 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21677 (nearbyintl): Define using libm_alias_ldouble.
21678 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21679 (nextafterl): Define using libm_alias_ldouble.
21680 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21681 (remquol): Define using libm_alias_ldouble.
21682 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21683 (rintl): Define using libm_alias_ldouble.
21684 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21685 (truncl): Define using libm_alias_ldouble.
21686 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21687 (fmaxl): Define using libm_alias_ldouble.
21688 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21689 (fminl): Define using libm_alias_ldouble.
21690
21691 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21692 to C syntax instead of availability and properties of types.
21693 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21694 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21695 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21696 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21697 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21698 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21699
21700 2017-11-17 Florian Weimer <fweimer@redhat.com>
21701
21702 support_become_root: Enable file creation in namespaces.
21703 * support/support_become_root.c (setup_mapping): New function.
21704 (support_become_root): Call it.
21705
21706 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21707
21708 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21709 macro.
21710
21711 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21712
21713 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21714 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21715
21716 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21717
21718 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21719
21720 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21721 version to 4.14.
21722
21723 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21724
21725 * INSTALL: Fix botched up regeneration.
21726
21727 * NEWS: Update sourceare link to https.
21728 * configure.ac: Likewise.
21729 * crypt/md5test-giant.c: Likewise.
21730 * dlfcn/bug-atexit1.c: Likewise.
21731 * dlfcn/bug-atexit2.c: Likewise.
21732 * localedata/README: Likewise.
21733 * malloc/tst-mallocfork.c: Likewise.
21734 * manual/install.texi: Likewise.
21735 * nptl/tst-pthread-getattr.c: Likewise.
21736 * stdio-common/tst-fgets.c: Likewise.
21737 * stdio-common/tst-fwrite.c: Likewise.
21738 * sunrpc/Makefile: Likewise.
21739 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21740 * wcsmbs/tst-mbrtowc2.c: Likewise.
21741 * configure: Regenerate.
21742 * INSTALL: Regenerate.
21743
21744 2017-11-15 Martin Sebor <msebor@redhat.com>
21745
21746 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21747 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21748 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21749
21750 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21751
21752 [BZ #22145]
21753 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21754 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21755
21756 [BZ #22145]
21757 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21758 Defer is_pty check until end of the function.
21759 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21760
21761 [BZ #22145]
21762 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21763 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21764 (ttyname): Likewise.
21765 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21766 (__ttyname_r): Likewise.
21767
21768 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21769 int to bool.
21770
21771 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21772
21773 * manual/terminal.texi (Is It a Terminal):
21774 Mention ENODEV for ttyname and ttyname_r.
21775
21776 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21777
21778 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21779 constant and macro.
21780
21781 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21782 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21783 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21784 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21785 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21786 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21787
21788 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21789
21790 * signal/sigrelse.c (sigrelse): Optimize implementation.
21791
21792 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21793 (__sigpause): Rely on __sigsuspend to implement single thread
21794 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21795
21796 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21797
21798 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21799 kernel version to 4.14.
21800
21801 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21802
21803 [BZ #22442]
21804 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21805 Check if ifname is too long.
21806
21807 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21808
21809 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21810
21811 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21812
21813 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21814 was accidentally lost.
21815
21816 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21817
21818 * localedata/locales/az_IR: Add standard copyright header.
21819
21820 2017-11-15 Florian Weimer <fweimer@redhat.com>
21821
21822 [BZ #22439]
21823 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21824 not just the top one. Output a new "subheaps" statistic.
21825
21826 2017-11-15 Florian Weimer <fweimer@redhat.com>
21827
21828 [BZ #22408]
21829 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21830 under the per-arena lock.
21831 * malloc/Makefile (tests): Add tst-malloc_info.
21832 (tst-malloc_info): Link with libpthread.
21833 * malloc/tst-malloc_info.c: New file.
21834
21835 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21836
21837 [BZ #21660]
21838 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21839 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21840 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21841 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21842 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21843 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21844 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21845 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21847 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21849 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21850 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21851 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21852 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21853 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21854 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21855 (__floating_type): Likewise.
21856 (__real_integer_type): Likewise.
21857 (__complex_integer_type): Likewise.
21858 (__expr_is_real): Likewise.
21859 (__tgmath_real_type_sub): Likewise.
21860 (__tgmath_real_type): Likewise.
21861 (__tgmath_complex_type_sub): Likewise.
21862 (__tgmath_complex_type): Likewise.
21863 (__TGMATH_F128): Likewise.
21864 (__TGMATH_CF128): Likewise.
21865 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21866 new macros.
21867 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21868 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21869 Likewise.
21870 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21871 Likewise.
21872 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21873 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21874 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21876 Likewise.
21877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21878 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21879 Likewise.
21880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21881 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21882 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21883 Likewise.
21884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21885 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21886 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21887 (cimag): Likewise.
21888 (creal): Likewise.
21889
21890 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21891
21892 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21893 for stpncpy calls for GCC 8.
21894 (test_strncat): Disable -Wstringop-truncation warning for strncat
21895 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21896 strncat call for GCC 7.
21897 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21898 calls for GCC 8.
21899 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21900 trailing NUL.
21901
21902 * string/bug-strncat1.c: Include <libc-diag.h>.
21903 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21904
21905 2017-11-13 Claude Paroz <claude@2xlibre.net>
21906
21907 [BZ #22387]
21908 * localedata/locales/aa_DJ: Improved readibility by replacing
21909 <Uxxxx> sequences in the ASCII printable range by their ASCII
21910 character equivalents.
21911 * localedata/locales/aa_ER: Likewise.
21912 * localedata/locales/aa_ER@saaho: Likewise.
21913 * localedata/locales/aa_ET: Likewise.
21914 * localedata/locales/af_ZA: Likewise.
21915 * localedata/locales/agr_PE: Likewise.
21916 * localedata/locales/ak_GH: Likewise.
21917 * localedata/locales/am_ET: Likewise.
21918 * localedata/locales/anp_IN: Likewise.
21919 * localedata/locales/ar_AE: Likewise.
21920 * localedata/locales/ar_BH: Likewise.
21921 * localedata/locales/ar_DZ: Likewise.
21922 * localedata/locales/ar_EG: Likewise.
21923 * localedata/locales/ar_IN: Likewise.
21924 * localedata/locales/ar_IQ: Likewise.
21925 * localedata/locales/ar_JO: Likewise.
21926 * localedata/locales/ar_KW: Likewise.
21927 * localedata/locales/ar_LB: Likewise.
21928 * localedata/locales/ar_LY: Likewise.
21929 * localedata/locales/ar_MA: Likewise.
21930 * localedata/locales/ar_OM: Likewise.
21931 * localedata/locales/ar_QA: Likewise.
21932 * localedata/locales/ar_SA: Likewise.
21933 * localedata/locales/ar_SD: Likewise.
21934 * localedata/locales/ar_SS: Likewise.
21935 * localedata/locales/ar_SY: Likewise.
21936 * localedata/locales/ar_TN: Likewise.
21937 * localedata/locales/ar_YE: Likewise.
21938 * localedata/locales/as_IN: Likewise.
21939 * localedata/locales/ast_ES: Likewise.
21940 * localedata/locales/ayc_PE: Likewise.
21941 * localedata/locales/az_AZ: Likewise.
21942 * localedata/locales/az_IR: Likewise.
21943 * localedata/locales/be_BY: Likewise.
21944 * localedata/locales/be_BY@latin: Likewise.
21945 * localedata/locales/bem_ZM: Likewise.
21946 * localedata/locales/ber_DZ: Likewise.
21947 * localedata/locales/ber_MA: Likewise.
21948 * localedata/locales/bg_BG: Likewise.
21949 * localedata/locales/bhb_IN: Likewise.
21950 * localedata/locales/bho_IN: Likewise.
21951 * localedata/locales/bi_VU: Likewise.
21952 * localedata/locales/bn_BD: Likewise.
21953 * localedata/locales/bn_IN: Likewise.
21954 * localedata/locales/bo_CN: Likewise.
21955 * localedata/locales/bo_IN: Likewise.
21956 * localedata/locales/br_FR: Likewise.
21957 * localedata/locales/brx_IN: Likewise.
21958 * localedata/locales/bs_BA: Likewise.
21959 * localedata/locales/byn_ER: Likewise.
21960 * localedata/locales/ca_AD: Likewise.
21961 * localedata/locales/ca_ES: Likewise.
21962 * localedata/locales/ca_FR: Likewise.
21963 * localedata/locales/ca_IT: Likewise.
21964 * localedata/locales/ce_RU: Likewise.
21965 * localedata/locales/chr_US: Likewise.
21966 * localedata/locales/cmn_TW: Likewise.
21967 * localedata/locales/crh_UA: Likewise.
21968 * localedata/locales/cs_CZ: Likewise.
21969 * localedata/locales/csb_PL: Likewise.
21970 * localedata/locales/cv_RU: Likewise.
21971 * localedata/locales/cy_GB: Likewise.
21972 * localedata/locales/da_DK: Likewise.
21973 * localedata/locales/de_AT: Likewise.
21974 * localedata/locales/de_BE: Likewise.
21975 * localedata/locales/de_CH: Likewise.
21976 * localedata/locales/de_DE: Likewise.
21977 * localedata/locales/de_IT: Likewise.
21978 * localedata/locales/de_LI: Likewise.
21979 * localedata/locales/de_LU: Likewise.
21980 * localedata/locales/doi_IN: Likewise.
21981 * localedata/locales/dv_MV: Likewise.
21982 * localedata/locales/dz_BT: Likewise.
21983 * localedata/locales/el_CY: Likewise.
21984 * localedata/locales/el_GR: Likewise.
21985 * localedata/locales/en_AG: Likewise.
21986 * localedata/locales/en_AU: Likewise.
21987 * localedata/locales/en_BW: Likewise.
21988 * localedata/locales/en_CA: Likewise.
21989 * localedata/locales/en_DK: Likewise.
21990 * localedata/locales/en_GB: Likewise.
21991 * localedata/locales/en_HK: Likewise.
21992 * localedata/locales/en_IE: Likewise.
21993 * localedata/locales/en_IL: Likewise.
21994 * localedata/locales/en_IN: Likewise.
21995 * localedata/locales/en_NG: Likewise.
21996 * localedata/locales/en_NZ: Likewise.
21997 * localedata/locales/en_PH: Likewise.
21998 * localedata/locales/en_SG: Likewise.
21999 * localedata/locales/en_US: Likewise.
22000 * localedata/locales/en_ZA: Likewise.
22001 * localedata/locales/en_ZM: Likewise.
22002 * localedata/locales/en_ZW: Likewise.
22003 * localedata/locales/eo: Likewise.
22004 * localedata/locales/es_AR: Likewise.
22005 * localedata/locales/es_BO: Likewise.
22006 * localedata/locales/es_CL: Likewise.
22007 * localedata/locales/es_CO: Likewise.
22008 * localedata/locales/es_CR: Likewise.
22009 * localedata/locales/es_CU: Likewise.
22010 * localedata/locales/es_DO: Likewise.
22011 * localedata/locales/es_EC: Likewise.
22012 * localedata/locales/es_ES: Likewise.
22013 * localedata/locales/es_GT: Likewise.
22014 * localedata/locales/es_HN: Likewise.
22015 * localedata/locales/es_MX: Likewise.
22016 * localedata/locales/es_NI: Likewise.
22017 * localedata/locales/es_PA: Likewise.
22018 * localedata/locales/es_PE: Likewise.
22019 * localedata/locales/es_PR: Likewise.
22020 * localedata/locales/es_PY: Likewise.
22021 * localedata/locales/es_SV: Likewise.
22022 * localedata/locales/es_US: Likewise.
22023 * localedata/locales/es_UY: Likewise.
22024 * localedata/locales/es_VE: Likewise.
22025 * localedata/locales/et_EE: Likewise.
22026 * localedata/locales/eu_ES: Likewise.
22027 * localedata/locales/eu_ES@euro: Likewise.
22028 * localedata/locales/fa_IR: Likewise.
22029 * localedata/locales/ff_SN: Likewise.
22030 * localedata/locales/fi_FI: Likewise.
22031 * localedata/locales/fil_PH: Likewise.
22032 * localedata/locales/fo_FO: Likewise.
22033 * localedata/locales/fr_BE: Likewise.
22034 * localedata/locales/fr_CA: Likewise.
22035 * localedata/locales/fr_CH: Likewise.
22036 * localedata/locales/fr_FR: Likewise.
22037 * localedata/locales/fr_LU: Likewise.
22038 * localedata/locales/fur_IT: Likewise.
22039 * localedata/locales/fy_DE: Likewise.
22040 * localedata/locales/fy_NL: Likewise.
22041 * localedata/locales/ga_IE: Likewise.
22042 * localedata/locales/gd_GB: Likewise.
22043 * localedata/locales/gez_ER: Likewise.
22044 * localedata/locales/gez_ET: Likewise.
22045 * localedata/locales/gl_ES: Likewise.
22046 * localedata/locales/gu_IN: Likewise.
22047 * localedata/locales/gv_GB: Likewise.
22048 * localedata/locales/ha_NG: Likewise.
22049 * localedata/locales/hak_TW: Likewise.
22050 * localedata/locales/he_IL: Likewise.
22051 * localedata/locales/hi_IN: Likewise.
22052 * localedata/locales/hif_FJ: Likewise.
22053 * localedata/locales/hne_IN: Likewise.
22054 * localedata/locales/hr_HR: Likewise.
22055 * localedata/locales/hsb_DE: Likewise.
22056 * localedata/locales/ht_HT: Likewise.
22057 * localedata/locales/hu_HU: Likewise.
22058 * localedata/locales/hy_AM: Likewise.
22059 * localedata/locales/i18n: Likewise.
22060 * localedata/locales/ia_FR: Likewise.
22061 * localedata/locales/id_ID: Likewise.
22062 * localedata/locales/ig_NG: Likewise.
22063 * localedata/locales/ik_CA: Likewise.
22064 * localedata/locales/is_IS: Likewise.
22065 * localedata/locales/it_CH: Likewise.
22066 * localedata/locales/it_IT: Likewise.
22067 * localedata/locales/iu_CA: Likewise.
22068 * localedata/locales/ja_JP: Likewise.
22069 * localedata/locales/ka_GE: Likewise.
22070 * localedata/locales/kk_KZ: Likewise.
22071 * localedata/locales/kl_GL: Likewise.
22072 * localedata/locales/kn_IN: Likewise.
22073 * localedata/locales/ko_KR: Likewise.
22074 * localedata/locales/kok_IN: Likewise.
22075 * localedata/locales/ks_IN: Likewise.
22076 * localedata/locales/ks_IN@devanagari: Likewise.
22077 * localedata/locales/ku_TR: Likewise.
22078 * localedata/locales/kw_GB: Likewise.
22079 * localedata/locales/ky_KG: Likewise.
22080 * localedata/locales/lb_LU: Likewise.
22081 * localedata/locales/lg_UG: Likewise.
22082 * localedata/locales/li_BE: Likewise.
22083 * localedata/locales/li_NL: Likewise.
22084 * localedata/locales/lij_IT: Likewise.
22085 * localedata/locales/ln_CD: Likewise.
22086 * localedata/locales/lo_LA: Likewise.
22087 * localedata/locales/lt_LT: Likewise.
22088 * localedata/locales/lv_LV: Likewise.
22089 * localedata/locales/lzh_TW: Likewise.
22090 * localedata/locales/mag_IN: Likewise.
22091 * localedata/locales/mai_IN: Likewise.
22092 * localedata/locales/mg_MG: Likewise.
22093 * localedata/locales/mhr_RU: Likewise.
22094 * localedata/locales/mi_NZ: Likewise.
22095 * localedata/locales/mk_MK: Likewise.
22096 * localedata/locales/ml_IN: Likewise.
22097 * localedata/locales/mn_MN: Likewise.
22098 * localedata/locales/mni_IN: Likewise.
22099 * localedata/locales/mr_IN: Likewise.
22100 * localedata/locales/ms_MY: Likewise.
22101 * localedata/locales/mt_MT: Likewise.
22102 * localedata/locales/my_MM: Likewise.
22103 * localedata/locales/nan_TW: Likewise.
22104 * localedata/locales/nan_TW@latin: Likewise.
22105 * localedata/locales/nb_NO: Likewise.
22106 * localedata/locales/nds_DE: Likewise.
22107 * localedata/locales/nds_NL: Likewise.
22108 * localedata/locales/ne_NP: Likewise.
22109 * localedata/locales/nhn_MX: Likewise.
22110 * localedata/locales/niu_NU: Likewise.
22111 * localedata/locales/niu_NZ: Likewise.
22112 * localedata/locales/nl_AW: Likewise.
22113 * localedata/locales/nl_BE: Likewise.
22114 * localedata/locales/nl_NL: Likewise.
22115 * localedata/locales/nn_NO: Likewise.
22116 * localedata/locales/nr_ZA: Likewise.
22117 * localedata/locales/nso_ZA: Likewise.
22118 * localedata/locales/oc_FR: Likewise.
22119 * localedata/locales/om_ET: Likewise.
22120 * localedata/locales/om_KE: Likewise.
22121 * localedata/locales/or_IN: Likewise.
22122 * localedata/locales/os_RU: Likewise.
22123 * localedata/locales/pa_IN: Likewise.
22124 * localedata/locales/pa_PK: Likewise.
22125 * localedata/locales/pap_AW: Likewise.
22126 * localedata/locales/pap_CW: Likewise.
22127 * localedata/locales/pl_PL: Likewise.
22128 * localedata/locales/ps_AF: Likewise.
22129 * localedata/locales/pt_BR: Likewise.
22130 * localedata/locales/pt_PT: Likewise.
22131 * localedata/locales/quz_PE: Likewise.
22132 * localedata/locales/raj_IN: Likewise.
22133 * localedata/locales/ro_RO: Likewise.
22134 * localedata/locales/ru_RU: Likewise.
22135 * localedata/locales/ru_UA: Likewise.
22136 * localedata/locales/rw_RW: Likewise.
22137 * localedata/locales/sa_IN: Likewise.
22138 * localedata/locales/sat_IN: Likewise.
22139 * localedata/locales/sc_IT: Likewise.
22140 * localedata/locales/sd_IN: Likewise.
22141 * localedata/locales/sd_IN@devanagari: Likewise.
22142 * localedata/locales/se_NO: Likewise.
22143 * localedata/locales/sgs_LT: Likewise.
22144 * localedata/locales/shs_CA: Likewise.
22145 * localedata/locales/si_LK: Likewise.
22146 * localedata/locales/sid_ET: Likewise.
22147 * localedata/locales/sk_SK: Likewise.
22148 * localedata/locales/sl_SI: Likewise.
22149 * localedata/locales/sm_WS: Likewise.
22150 * localedata/locales/so_DJ: Likewise.
22151 * localedata/locales/so_ET: Likewise.
22152 * localedata/locales/so_KE: Likewise.
22153 * localedata/locales/so_SO: Likewise.
22154 * localedata/locales/sq_AL: Likewise.
22155 * localedata/locales/sq_MK: Likewise.
22156 * localedata/locales/sr_ME: Likewise.
22157 * localedata/locales/sr_RS: Likewise.
22158 * localedata/locales/sr_RS@latin: Likewise.
22159 * localedata/locales/ss_ZA: Likewise.
22160 * localedata/locales/st_ZA: Likewise.
22161 * localedata/locales/sv_FI: Likewise.
22162 * localedata/locales/sv_SE: Likewise.
22163 * localedata/locales/sw_KE: Likewise.
22164 * localedata/locales/sw_TZ: Likewise.
22165 * localedata/locales/szl_PL: Likewise.
22166 * localedata/locales/ta_IN: Likewise.
22167 * localedata/locales/ta_LK: Likewise.
22168 * localedata/locales/tcy_IN: Likewise.
22169 * localedata/locales/te_IN: Likewise.
22170 * localedata/locales/tg_TJ: Likewise.
22171 * localedata/locales/th_TH: Likewise.
22172 * localedata/locales/the_NP: Likewise.
22173 * localedata/locales/ti_ER: Likewise.
22174 * localedata/locales/ti_ET: Likewise.
22175 * localedata/locales/tig_ER: Likewise.
22176 * localedata/locales/tk_TM: Likewise.
22177 * localedata/locales/tl_PH: Likewise.
22178 * localedata/locales/tn_ZA: Likewise.
22179 * localedata/locales/to_TO: Likewise.
22180 * localedata/locales/tpi_PG: Likewise.
22181 * localedata/locales/tr_CY: Likewise.
22182 * localedata/locales/tr_TR: Likewise.
22183 * localedata/locales/ts_ZA: Likewise.
22184 * localedata/locales/tt_RU: Likewise.
22185 * localedata/locales/tt_RU@iqtelif: Likewise.
22186 * localedata/locales/ug_CN: Likewise.
22187 * localedata/locales/uk_UA: Likewise.
22188 * localedata/locales/unm_US: Likewise.
22189 * localedata/locales/ur_IN: Likewise.
22190 * localedata/locales/ur_PK: Likewise.
22191 * localedata/locales/uz_UZ: Likewise.
22192 * localedata/locales/uz_UZ@cyrillic: Likewise.
22193 * localedata/locales/ve_ZA: Likewise.
22194 * localedata/locales/vi_VN: Likewise.
22195 * localedata/locales/wa_BE: Likewise.
22196 * localedata/locales/wae_CH: Likewise.
22197 * localedata/locales/wal_ET: Likewise.
22198 * localedata/locales/wo_SN: Likewise.
22199 * localedata/locales/xh_ZA: Likewise.
22200 * localedata/locales/yi_US: Likewise.
22201 * localedata/locales/yo_NG: Likewise.
22202 * localedata/locales/yue_HK: Likewise.
22203 * localedata/locales/yuw_PG: Likewise.
22204 * localedata/locales/zh_CN: Likewise.
22205 * localedata/locales/zh_HK: Likewise.
22206 * localedata/locales/zh_SG: Likewise.
22207 * localedata/locales/zh_TW: Likewise.
22208 * localedata/locales/zu_ZA: Likewise.
22209
22210 2017-11-13 Florian Weimer <fweimer@redhat.com>
22211
22212 * support/next_to_fault.h, support/next_to_fault.c: New files.
22213 * support/Makefile (libsupport-routines): Add next_to_fault.
22214 * resolv/tst-inet_pton.c (struct next_to_fault)
22215 (next_to_fault_allocate, next_to_fault_free): Remove.
22216 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22217
22218 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22219
22220 * elf/dl-support.c: Include <dl-procruntime.c>.
22221 * include/link.h: Include <link_map.h>.
22222 * sysdeps/generic/dl-procruntime.c: New file.
22223 * sysdeps/generic/link_map.h: Likewise.
22224 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22225 the writable ld.so namespace.
22226
22227 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22228
22229 timezone: pacify GCC -Wstringop-truncation
22230 Problem reported by Martin Sebor in:
22231 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22232 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22233
22234 2017-11-12 Florian Weimer <fweimer@redhat.com>
22235
22236 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22237 tst-xreadlink.
22238 (tests): Add tst-xreadlink.
22239 * support/support.h (xstrndup): Declare.
22240 * support/xunistd.h (xunlink, xreadlink): Declare.
22241 * support/temp_file.h (support_create_temp_directory): Declare.
22242 * support/temp_file.c (support_create_temp_directory): New function.
22243 * support/support_chroot.c (support_chroot_create): Use it.
22244 * support/xreadlink.c: New file.
22245 * support/xstrndup.c: Likewise.
22246 * support/xunlink.c: Likewise.
22247 * support/tst-xreadlink.c: Likewise.
22248
22249 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22250
22251 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22252
22253 2017-11-11 Florian Weimer <fweimer@redhat.com>
22254
22255 [BZ #22409]
22256 [BZ #22412]
22257 * resolv/res_comp.c (printable_string, binary_hnok)
22258 (binary_leading_dash): New functions.
22259 (res_hnok): Reimplement using these functions and ns_name_pton.
22260 (res_ownok): Likewise.
22261 (res_mailok): Reimplement using printable_string, ns_name_pton and
22262 binary_hnok.
22263 (res_dnok): Reimplement using printable_string and ns_name_pton.
22264 * resolv/tst-res_hnok.c (tests): Add additional tests.
22265 (LETTERDIGITS, PRINTABLE): Define.
22266 (do_test): Adjust one_char results.
22267
22268 2017-11-11 Florian Weimer <fweimer@redhat.com>
22269
22270 [BZ #22413]
22271 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22272 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22273
22274 2017-11-11 Florian Weimer <fweimer@redhat.com>
22275
22276 * resolv/tst-ns_name_pton.c: New file.
22277 * resolv/Makefile (tests): Add tst-ns_name_pton.
22278 (tst-ns_name_pton): Link against libresolv.
22279
22280 2017-11-11 Florian Weimer <fweimer@redhat.com>
22281
22282 * resolv/tst-res_hnok.c: New file.
22283 * resolv/Makefile (tests): Add tst-res_hnok.
22284 (tst-res_hnok): Link against libresolv.
22285
22286 2017-11-11 Florian Weimer <fweimer@redhat.com>
22287
22288 * resolv/tst-resolv-network.c: Use test framework instead explicit
22289 main function.
22290
22291 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22292
22293 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22294 <jmp_buf-macros.h>.
22295 [!_ISOMAC] (STR_HELPER): New.
22296 [!_ISOMAC] (STR): Likewise.
22297 [!_ISOMAC] (TEST_SIZE): Likewise.
22298 [!_ISOMAC] (TEST_ALIGN): Likewise.
22299 [!_ISOMAC] (TEST_OFFSET): Likewise.
22300 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22301 field offsets of jmp_buf as well as sigjmp_buf.
22302 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22303 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22304 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22305 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22306 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22307 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22308 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22309 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22310 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22311 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22312 Likewise.
22313 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22314 Likewise.
22315 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22317 Likewise.
22318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22319 Likewise.
22320 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22321 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22322 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22323 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22324 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22325 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22326 Likewise.
22327 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22328 Likewise.
22329 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22330 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22331 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22332
22333 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22334
22335 * include/float.h
22336 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22337 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22338 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22339 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22340 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22341 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22343 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22345 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22347 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22349 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22351 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22353 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22355 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22357 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22359 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22361 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22363 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22365 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22367 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22369 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22371 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22373 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22375 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22377 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22379 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22381 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22383 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22385 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22387 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22389 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22391 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22393 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22395 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22397 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22399 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22401 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22403 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22405 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22407 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22409 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22411 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22413 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22415 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22417 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22419 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22421 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22423 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22424
22425 * stdlib/tst-strtod.h (F16): New macro.
22426 (F32): Likewise.
22427 (F64): Likewise.
22428 (F32X): Likewise.
22429 (F64X): Likewise.
22430 (F128X): Likewise.
22431 (IF_FLOAT16): Likewise.
22432 (IF_FLOAT32): Likewise.
22433 (IF_FLOAT64): Likewise.
22434 (IF_FLOAT32X): Likewise.
22435 (IF_FLOAT64X): Likewise.
22436 (IF_FLOAT128X): Likewise.
22437 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22438 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22439 (STRTOD_TEST_FOREACH): Likewise.
22440 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22441 (CHOOSE_f64): Likewise.
22442 (CHOOSE_f32x): Likewise.
22443 (CHOOSE_f64x): Likewise.
22444
22445 2017-11-07 Andreas Schwab <schwab@suse.de>
22446
22447 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22448
22449 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22450
22451 [BZ #22403]
22452 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22453 to be escaped.
22454 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22455 to be escaped.
22456
22457 2017-11-07 Claude Paroz <claude@2xlibre.net>
22458
22459 [BZ #22403]
22460 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22461 to be escaped.
22462 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22463 to be escaped.
22464 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22465 to be escaped.
22466
22467 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22468
22469 [BZ #22298]
22470 * nptl/allocatestack.c (allocate_stack): Check if
22471 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22472 __PTHREAD_MUTEX_HAVE_PREV is defined.
22473 * nptl/descr.h (pthread): Likewise.
22474 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22475 Likewise.
22476 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22477 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22478 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22479 * sysdeps/nptl/bits/thread-shared-types.h
22480 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22481 defines.
22482 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22483 of __WORDSIZE for internal layout.
22484 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22485 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22486 instead of __WORDSIZE whether to use an union for __spins and __list
22487 fields.
22488 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22489 case.
22490 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22491 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22492 defines.
22493 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22494 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22495 Likewise.
22496 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22497 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22498 Likewise.
22499 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22500 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22501 Likewise.
22502 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22503 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22504 Likewise.
22505 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22506 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22507 Likewise.
22508 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22509 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22510 Likewise.
22511 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22512 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22513 Likewise.
22514 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22515 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22516 Likewise.
22517 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22518 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22519 Likewise.
22520 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22521 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22522 Likewise.
22523 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22524 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22525 Likewise.
22526 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22527 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22528 Likewise.
22529 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22530 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22531 Likewise.
22532 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22533 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22534 Likewise.
22535
22536 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22537 New macros.
22538 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22539 checks for expected input type size.
22540 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22541 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22542 Likewise.
22543 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22544 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22545 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22546 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22547 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22548 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22549 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22550 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22551 superflous runtime assert check.
22552 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22553 Likewise.
22554 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22555 Likewise.
22556 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22557 Likewise.
22558 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22559 Likewise.
22560 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22561 Likewise.
22562 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22563 Likewise.
22564 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22565 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22566 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22567 Likewise.
22568 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22569 Likewise.
22570 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22571 Likewise.
22572 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22573 Likewise.
22574 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22575 Likewise.
22576 * nptl/pthread_attr_setinheritsched.c
22577 (__pthread_attr_setinheritsched): Likewise.
22578 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22579 Likewise.
22580 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22581 Likewise.
22582 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22583 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22584 __old_pthread_attr_setstack): Likewise.
22585 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22586 Likewise.
22587 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22588 Likewise.
22589 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22590 Likewise.
22591 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22592 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22593 Likewise.
22594 * nptl/tst-typesizes.c: Remove file.
22595
22596 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22597 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22598 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22599 checks for internal pthread_mutex_t offsets.
22600 * sysdeps/aarch64/nptl/pthread-offsets.h
22601 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22602 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22603 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22604 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22605 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22606 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22607 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22608 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22609 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22610 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22611 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22612 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22613 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22614 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22615 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22616 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22617 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22618 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22619
22620 2017-11-07 Florian Weimer <fweimer@redhat.com>
22621
22622 * bits/mman-linux.h: Move ...
22623 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22624 comment.
22625 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22626 outdated comment.
22627
22628 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22629
22630 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22631 Redefine STRNLEN as __strnlen_power8.
22632
22633 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22634
22635 * signal/sighold.c (sighold): Optimize implementation.
22636
22637 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22638 __NR_rt_sigqueueinfo.
22639
22640 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22641 __sigtimedwait.
22642 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22643 assume __NR_rt_sigtimedwait.
22644 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22645 and add LIBC_CANCEL_HANDLED for cancellation marking.
22646 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22647
22648 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22649 (sysdeps_routines): Add memchr_noneon.
22650 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22651 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22652 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22653 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22654 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22655 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22656 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22657
22658 * sysdeps/arm/arm-ifunc.h: New file.
22659 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22660 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22661 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22662 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22663 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22664 (__memcpy_neon): Avoid create hidden alias.
22665 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22666 (__memcpy_vfp): Likewise.
22667 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22668 (sysdep_routines): Add memcpy_arm.
22669 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22670
22671 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22672
22673 [BZ #22362]
22674 * Makerules (make-link-multidir): New.
22675 * config.make.in (multidir): New.
22676 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22677 * configure: Regenerated.
22678 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22679 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22680 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22681 New target.
22682
22683 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22684
22685 [BZ #22402]
22686 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22687 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22688
22689 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22690
22691 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22692 to be escaped.
22693
22694 2017-11-04 Florian Weimer <fweimer@redhat.com>
22695
22696 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22697
22698 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22699
22700 * math/math.h [__HAVE_DISTINCT_FLOAT16
22701 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22702 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22703 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22704 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22705 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22706 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22707 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22708 (__MATH_TG_F32): New macro.
22709 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22710 (__MATH_TG_F64X): Likewise.
22711 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22712 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22713
22714 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22715
22716 * po/de.po: Update translations.
22717 * po/ru.po: Likewise.
22718
22719 2017-11-03 Florian Weimer <fweimer@redhat.com>
22720
22721 * manual/filesys.texi (Hard Links): Document linkat.
22722
22723 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22724
22725 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22726 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22727 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22728 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22729 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22730 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22731 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22732 the same as _Float128.
22733 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22734 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22735 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22736
22737 * stdlib/stdlib.h
22738 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22739 Declare.
22740 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22741 Likewise.
22742 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22743 Likewise.
22744 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22745 (strtof32x): Likewise.
22746 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22747 (strtof64x): Likewise.
22748 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22749 (strtof128x): Likewise.
22750 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22751 (strfromf16): Likewise.
22752 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22753 (strfromf32): Likewise.
22754 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22755 (strfromf64): Likewise.
22756 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22757 (strfromf32x): Likewise.
22758 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22759 (strfromf64x): Likewise.
22760 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22761 (strfromf128x): Likewise.
22762 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22763 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22764 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22765 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22766 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22767 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22768
22769 2017-11-03 Richard Henderson <rth@twiddle.net>
22770
22771 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22772
22773 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22774
22775 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22776
22777 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22778
22779 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22780 DT_TLSDESC_GOT initialization.
22781 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22782 (_dl_tlsdesc_resolve_hold): Likewise.
22783 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22784 (_dl_tlsdesc_resolve_hold): Likewise.
22785 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22786 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22787
22788 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22789
22790 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22791
22792 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22793
22794 [BZ #18572]
22795 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22796 non-lazily for R_ARM_TLS_DESC.
22797
22798 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22799
22800 [BZ #17078]
22801 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22802 R_ARM_TLS_DESC case.
22803 (elf_machine_lazy_rel): Remove the prelink check.
22804
22805 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22806
22807 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22808 DT_TLSDESC_GOT initialization.
22809 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22810 (_dl_tlsdesc_resolve_rela): Likewise.
22811 (_dl_tlsdesc_resolve_hold): Likewise.
22812 (_dl_tlsdesc_undefweak): Remove ldar.
22813 (_dl_tlsdesc_dynamic): Likewise.
22814 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22815 (_dl_tlsdesc_resolve_rela): Likewise.
22816 (_dl_tlsdesc_resolve_hold): Likewise.
22817 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22818 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22819 (_dl_tlsdesc_resolve_rela): Likewise.
22820 (_dl_tlsdesc_resolve_hold): Likewise.
22821
22822 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22823
22824 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22825 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22826
22827 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22828
22829 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22830 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22831
22832 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22833
22834 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22835 Declare.
22836 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22837 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22838 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22839 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22840 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22841 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22842 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22843 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22844 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22845 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22846 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22847
22848 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22849
22850 [BZ #22382]
22851 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22852 * localedata/locales/tpi_PG: Add standard header.
22853
22854 2017-11-02 Florian Weimer <fweimer@redhat.com>
22855
22856 test-errno-linux: quotactl can fail with EPERM in containers.
22857 * sysdeps/unix/sysv/linux/test-errno-linux.c
22858 (LIST, LIST_FORWARD): New macros.
22859 (check_error_in_list): New function.
22860 (test_wrp_rv): Accept list of permitted error codes.
22861 (test_wrp_rv2): Remove.
22862 (test_wrp): Call test_wrp_rv with list of error codes.
22863 (test_wrp2): Accept list of error codes.
22864 (do_test): Adjust. Allow EPERM for quotactl.
22865
22866 2017-11-02 Florian Weimer <fweimer@redhat.com>
22867
22868 * stdio-common/bug16.c (do_test): Use array_length.
22869 * stdio-common/errlist.c (_sys_nerr): Likewise.
22870 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22871 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22872 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22873 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22874 (do_test): Use array_length.
22875 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22876 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22877 * stdio-common/tst-printf-round.c (do_test): Likewise.
22878 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22879 (CHECK): Use array_length.
22880 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22881 * stdio-common/tstscanf.c (main): Likewise.
22882 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22883
22884 2017-11-02 Florian Weimer <fweimer@redhat.com>
22885
22886 Add array_length and array_end macros.
22887 * include/array_length.h: New file.
22888
22889 2017-11-02 Florian Weimer <fweimer@redhat.com>
22890
22891 [BZ #22332]
22892 * posix/tst-glob-tilde.c (do_noescape): New variable.
22893 (one_test): Process it.
22894 (do_test): Set do_noescape. Add unescaping test case.
22895
22896 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22897
22898 * math/complex.h
22899 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22900 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22901 with appropriate macros defined and undefined.
22902 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22903 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22904 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22905 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22906 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22907 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22908 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22909 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22910 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22911 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22912
22913 * math/complex.h
22914 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22915 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22916 that for long double. Do not condition define and undefine of
22917 _Mdouble_complex_ on [__CFLOAT128].
22918
22919 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22920
22921 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22922 of <sysdeps/generic/sysdep.h>.
22923 (ALIGNARG): Removed.
22924 (ASM_SIZE_DIRECTIVE): Likewise.
22925 (ENTRY): Likewise.
22926 (END): Likewise.
22927 (ENTRY_CHK): Likewise.
22928 (END_CHK): Likewise.
22929 (syscall_error): Likewise.
22930 (mcount): Likewise.
22931 (PSEUDO_END): Likewise.
22932 (L): Likewise.
22933 (atom_text_section): Likewise.
22934 * sysdeps/x86/sysdep.h: New file.
22935 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22936 of <sysdeps/generic/sysdep.h>.
22937 (ALIGNARG): Removed.
22938 (ASM_SIZE_DIRECTIVE): Likewise.
22939 (ENTRY): Likewise.
22940 (END): Likewise.
22941 (ENTRY_CHK): Likewise.
22942 (END_CHK): Likewise.
22943 (syscall_error): Likewise.
22944 (mcount): Likewise.
22945 (PSEUDO_END): Likewise.
22946 (L): Likewise.
22947 (atom_text_section): Likewise.
22948
22949 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22950
22951 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22952 category of LC_CTYPE set to "i18n:2012".
22953 * localedata/locales/i18n_ctype: Regenerate.
22954
22955 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22956
22957 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22958 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22959 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22960 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22961
22962 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22963 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22964 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22965 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22966
22967 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22968
22969 * math/complex.h
22970 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22971 New macro.
22972 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22973 Likewise.
22974 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22975 Likewise.
22976 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22977 (CMPLXF32X): Likewise.
22978 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22979 (CMPLXF64X): Likewise.
22980 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22981 (CMPLXF128X): Likewise.
22982
22983 * math/math.h
22984 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22985 (__MATH_EVAL_FMT2): Define to add 0.0f.
22986
22987 2017-10-31 Alan Modra <amodra@gmail.com>
22988
22989 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22990 include sysdep.h.
22991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23042 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23060
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23062 include sysdep.h and math_ldbl_opt.h.
23063
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23065 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23090
23091 2017-10-31 Alan Modra <amodra@gmail.com>
23092
23093 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23094 string/strncase_l.c, not string/strncase.c.
23095 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23096 (libc_hidden_def): Redefine.
23097
23098 2017-10-31 Alan Modra <amodra@gmail.com>
23099
23100 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23101 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23102 (__strcasecmp): Don't define.
23103
23104 2017-10-31 Alan Modra <amodra@gmail.com>
23105
23106 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23107 IS_IN (libc).
23108 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23109 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23110 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23111
23112 2017-10-31 Alan Modra <amodra@gmail.com>
23113
23114 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23115 USE_AS_STPNCPY.
23116
23117 2017-10-31 Alan Modra <amodra@gmail.com>
23118
23119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23120 Redefine only when SHARED.
23121
23122 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23123
23124 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23125 Include <bits/math-finite.h> with appropriate macros defined and
23126 undefined.
23127 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23128 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23129 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23130 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23131 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23132
23133 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23134 [!_Mlong_double_] (_Mlong_double_): Likewise.
23135 [!_Mfloat16_] (_Mfloat16_): Likewise.
23136 [!_Mfloat32_] (_Mfloat32_): Likewise.
23137 [!_Mfloat64_] (_Mfloat64_): Likewise.
23138 [!_Mfloat128_] (_Mfloat128_): Likewise.
23139 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23140 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23141 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23142 (_Mdouble_): Define without indirection through those macros.
23143 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23144 [!_Mfloat128_] (_Mfloat128_): Likewise.
23145 [_Mlong_double_] (_Mlong_double_): Likewise.
23146 (_Mdouble_): Define without indirection through those macros.
23147 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23148 not add -D_Mlong_double_=double.
23149 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23150 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23151
23152 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23153
23154 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23155
23156 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23157
23158 * sysdeps/x86/libc-start.c: Reformat.
23159
23160 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23161
23162 [BZ #22353]
23163 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23164 (1): Renamed to ...
23165 (L(Src0)): This.
23166 (L(Src1)): New.
23167 (L(Src2)): Likewise.
23168 (L(1)): Renamed to ...
23169 (L(Src3)): This.
23170
23171 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23172
23173 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23174 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23175 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23176 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23177 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23178 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23179 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23180 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23181 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23182 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23183 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23184 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23185 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23186 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23187 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23188 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23189 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23190 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23191 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23192 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23193 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23194 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23195 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23196 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23197 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23198 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23199 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23200 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23201 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23202 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23203 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23204 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23205 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23206 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23207 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23208 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23209 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23210 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23211 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23212 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23213 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23214 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23215 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23216 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23217 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23218 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23219 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23220 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23221 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23222 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23223 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23224 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23225 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23226 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23227 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23228 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23229 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23230 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23231 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23232 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23233 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23234 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23235 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23236 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23237 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23238 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23239
23240 2017-10-30 Florian Weimer <fweimer@redhat.com>
23241
23242 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23243 always defined.
23244 * io/tst-mkdirat.c (do_test): Likewise.
23245 * io/tst-mkfifoat.c (do_test): Likewise.
23246 * io/tst-mknodat.c (do_test): Likewise.
23247 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23248 * locale/programs/locale.c (select_dirs): Likewise.
23249 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23250 * posix/bug-glob2.c (my_readdir): Likewise.
23251 * posix/tst-dir.c (main): Likewise.
23252 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23253 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23254
23255 2017-10-30 Florian Weimer <fweimer@redhat.com>
23256
23257 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23258 just __USE_GNU.
23259
23260 2017-10-30 Florian Weimer <fweimer@redhat.com>
23261
23262 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23263 Convert to support/test-driver.c.
23264 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23265 New macro parameters.
23266 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23267 * posix/tst-gnuglob.c: New file.
23268 * posix/tst-gnuglob64.c: Likewise.
23269 * posix/Makefile (tests): Add tst-gnuglob64.
23270
23271 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23272
23273 [BZ #19485]
23274 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23275 and use a better translation for March in “mon”.
23276 * localedata/locales/csb_PL: Use more ASCII to improve the
23277 readability of the source.
23278
23279 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23280
23281 [BZ #13953]
23282 * localedata/locales/km_KH: Use ASCII as much
23283 as possible for better readability of the source and
23284 remove useless comments.
23285 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23286 was commented out and apparently wrong anyway because it was
23287 using Lao characters. If Buddhist era should be used
23288 for km_KH, a native speaker should write the correct formaat
23289 for Khmer.
23290 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23291 (According to CLDR, the first weekday for Cambodia is Sunday).
23292 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23293 (These were using Lao characters which must be wrong. If we get
23294 the correct data from a native speaker, we could add it back, until
23295 then it is better not to have name_mr and name_mrs at all than
23296 having it wrong).
23297
23298 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23299
23300 * locale/loadlocale.c: Correct size of
23301 _nl_value_type_LC_<category> arrays.
23302
23303 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23304
23305 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23306 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23307 with appropriate macros defined and undefined.
23308 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23309 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23310 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23311 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23312 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23313
23314 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23315
23316 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23317 "-O2 -march=i586".
23318
23319 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23320
23321 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23322 with lowercase letters to make it agree with CLDR.
23323
23324 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23325
23326 [BZ #15260]
23327 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23328 first letters of yesstr and nostr in yesexpr and noexpr,
23329 not for the full words.
23330 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23331 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23332 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23333 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23334 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23335 first letters of yesstr and nostr in yesexpr and noexpr,
23336 until now only English was matched in yesexpr and noexpr.
23337 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23338 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23339 fil but not for tl. As tl and fil are very similar, using fil
23340 is probably better than using English.
23341
23342 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23343
23344 [BZ #21706]
23345 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23346 in yesstr and nostr.
23347
23348 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23349
23350 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23351 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23352 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23353 Likewise.
23354 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23355 Likewise.
23356 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23357 Likewise.
23358 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23359 Likewise.
23360 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23361 (SNANF128X): Likewise.
23362
23363 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23364 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23365 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23366 (HUGE_VAL_F32): Likewise.
23367 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23368 (HUGE_VAL_F64): Likewise.
23369 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23370 (HUGE_VAL_F32X): Likewise.
23371 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23372 (HUGE_VAL_F64X): Likewise.
23373 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23374 (HUGE_VAL_F128X): Likewise.
23375
23376 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23377
23378 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23379 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23380 for the br_FR locale.
23381
23382 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23383
23384 [BZ #21706]
23385 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23386
23387 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23388
23389 * locale/programs/record-status.h: Define globals, and function
23390 prototypes. Move function bodies...
23391 * locale/programs/record-status.c: ... to here. New file.
23392 * iconv/Makefile (iconv_prog-modules): Add record-status.
23393 * locale/Makefile (lib-modules): Likewise.
23394 * iconv/iconv_prog.c: Remove verbose.
23395 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23396 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23397 record a warning about ASCII compatibility.
23398 * locale/programs/ld-monetary.c (monetary_finish): If
23399 warn_int_curr_symbol is true then record a warning about the symbol
23400 not being in our ISO 4217 list.
23401 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23402 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23403 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23404 (OPT_NO_WARN): Define.
23405 (OPT_WARN): Define.
23406 (options): Add entry for --no-warnings, and --warnings.
23407 (set_warnings): New function to enable/disable warnings.
23408 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23409 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23410 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23411 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23412 Pass flags to generate_locale.
23413 (generate_locale): Accept new flag argument and pass it to localedef
23414 invocation.
23415 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23416 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23417
23418 * localedata/Makefile (test-input-data): Use full file name.
23419 * localedata/da_DK.in: Rename to...
23420 * localedata/da_DK.ISO-8859-1.in: ...this.
23421 * localedata/de_DE.in: Rename to...
23422 * localedata/de_DE.ISO-8859-1.in: ...this.
23423 * localedata/en_US.in: Rename to...
23424 * localedata/en_US.ISO-8859-1.in: ...this.
23425 * localedata/fr_FR.in: Rename to...
23426 * localedata/fr_FR.UTF-8.in: ... this.
23427 * localedata/hr_HR.in: Rename to...
23428 * localedata/hr_HR.ISO-8859-2.in: ...this.
23429 * localedata/hu_HU.in: Rename to...
23430 * localedata/hu_HU.UTF-8.in: ...this.
23431 * localedata/si_LK.in: Rename to...
23432 * localedata/si_LK.UTF-8.in: ...this.
23433 * localedata/sv_SE.in: Rename to...
23434 * localedata/sv_SE.ISO-8859-1.in: ...this.
23435 * localedata/tr_TR.in: Rename to...
23436 * localedata/tr_TR.UTF-8.in: ...this.
23437 * localedata/uk_UA.in: Rename to...
23438 * localedata/uk_UA.UTF-8.in: ...this.
23439 * localedata/sort-test.sh: Test file is locale name with the
23440 suffix.
23441
23442 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23443 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23444 file.
23445 * localedata/locales/i18n_ctype: Regenerate.
23446 * localedata/locales/tr_TR: Likewise.
23447 * localedata/locales/translit_circle: Likewise.
23448 * localedata/locales/translit_cjk_compat: Likewise.
23449 * localedata/locales/translit_combining: Likewise.
23450 * localedata/locales/translit_compat: Likewise.
23451 * localedata/locales/translit_font: Likewise.
23452 * localedata/locales/translit_fraction: Likewise.
23453
23454 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23455
23456 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23457 lxvd2x/stxvd2x with lvx/stvx.
23458 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23459
23460 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23461
23462 * include/alloc_buffer.h: Replace "if if " with "if " in
23463 comments.
23464 * sysdeps/mips/memcpy.S: Likkewise.
23465 * sysdeps/mips/memset.S: Likewise.
23466 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23467 Likewise.
23468 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23469 Likewise.
23470 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23471 Likewise.
23472
23473 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23474
23475 [BZ #15261]
23476 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23477 yesexpr and noexpr.
23478 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23479 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23480 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23481 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23482 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23483 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23484 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23485
23486 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23487
23488 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23489 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23490 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23491 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23492 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23493 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23494 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23495 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23496 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23497 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23498 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23499 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23500
23501 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23502
23503 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23504 as possible for better readability of the source.
23505 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23506 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23507 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23508 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23509 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23510 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23511 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23512 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23513 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23514 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23515 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23516 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23517 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23518 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23519 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23520 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23521 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23522 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23523 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23524 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23525 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23526 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23527 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23528 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23529 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23530 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23531 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23532 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23533 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23534 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23535 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23536 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23537 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23538 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23539 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23540 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23541 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23542 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23543 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23544 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23545 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23546 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23547 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23548 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23549 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23550 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23551 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23552 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23553 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23554 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23555 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23556 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23557 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23558 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23559 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23560 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23561 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23562 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23563 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23564 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23565 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23566 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23567 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23568 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23569 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23570 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23571 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23572 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23573 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23574 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23575 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23576 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23577 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23578 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23579 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23580 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23581 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23582 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23583 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23584 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23585 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23586 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23587 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23588 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23589 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23590 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23591 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23592 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23593 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23594 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23595 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23596 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23597 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23598 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23599 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23600 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23601 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23602 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23603 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23604 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23605 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23606 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23607 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23608 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23609 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23610 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23611 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23612 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23613 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23614 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23615 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23616 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23617 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23618 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23619 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23620 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23621 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23622 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23623 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23624 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23625 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23626 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23627 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23628 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23629 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23630 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23631 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23632 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23633 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23634 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23635 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23636 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23637 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23638 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23639 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23640 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23641 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23642 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23643 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23644 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23645 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23646 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23647 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23648 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23649 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23650 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23651 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23652 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23653 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23654 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23655 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23656 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23657 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23658 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23659 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23660 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23661 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23662 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23663 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23664 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23665 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23666 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23667 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23668 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23669 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23670 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23671 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23672 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23673 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23674 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23675 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23676 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23677 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23678 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23679
23680 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23681
23682 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23683 (Use first letters of yesstr and nostr correctly instead of using
23684 full words).
23685
23686 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23687
23688 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23689 (Use first letters of yesstr and nostr correctly).
23690
23691 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23692
23693 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23694 also check for the first characters of yesstr and nostr.
23695 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23696 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23697
23698 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23699
23700 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23701 also check for Chinese characters.
23702
23703 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23704
23705 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23706 match also for the contents of yesstr and nostr. As the first letter
23707 of yesstr and nostr is equal, checking only for the first letter
23708 is not enough.
23709
23710 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23711
23712 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23713 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23714
23715 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23716
23717 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23718 of main contributor.
23719
23720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23721
23722 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23723 instead of using English.
23724
23725 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23726
23727 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23728 by including the first letters of nostr and yesexpr in the regexp.
23729 Also make it more readable by using ASCII where possible.
23730
23731 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23732
23733 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23734 the first letter of nostr in the regexp. It agrees with CLDR now.
23735 Also make it more readable by using ASCII where possible.
23736
23737 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23738
23739 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23740 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23741 these strings contain a U+17D6 (which somewhat looks like a colon)
23742 instead of a real colon to separate the full words for “yes”
23743 and “no” from the single letter responses.
23744
23745 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23746
23747 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23748 it agree with CLDR (include the first letter of yesstr).
23749 Also make it more readable by using ASCII where possible.
23750
23751 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23752
23753 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23754 and improve yesexpr and noexpr. The yesstr and nostr apparently
23755 came from CLDR. And CLDR has a bug there: these strings contain
23756 a U+0903 (which looks like a colon) instead of a real colon
23757 to separate the full words for “yes” and “no” from the single
23758 letter responses.
23759
23760 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23761
23762 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23763 letters of the full yesstr and nostr in yesexpr and noexpr.
23764
23765 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23766
23767 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23768 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23769 * localedata/locales/an_ES: Make source more readable by using ASCII
23770 where possible.
23771
23772 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23773
23774 [BZ #20952]
23775 * localedata/locales/yuw_PG: New file.
23776 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23777 * locale/iso-639.def: Add Yau (Uruwa).
23778
23779 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23780
23781 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23782
23783 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23784
23785 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23786 (__libc_realloc): Likewise.
23787 (_mid_memalign): Likewise.
23788 (__libc_calloc): Likewise.
23789
23790 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23791
23792 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23793 by adding the generic +1 and -0 as in all other locales.
23794 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23795 day names and make it more readable by using ASCII where possible.
23796
23797 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23798
23799 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23800 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23801
23802 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23803
23804 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23805 WNOHANG in waitpid call.
23806
23807 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23808
23809 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23810 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23811
23812 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23813 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23814 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23815 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23816 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23817 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23818 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23819 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23820 variables.
23821
23822 2017-10-23 Michael Collison <michael.collison@arm.com>
23823
23824 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23825 with __builtin_sqrt.
23826 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23827 with __builtin_sqrtf.
23828 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23829 with __builtin_ceil.
23830 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23831 with __builtin_ceilf.
23832 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23833 with __builtin_floor.
23834 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23835 with __builtin_floorf.
23836 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23837 with __builtin_fma.
23838 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23839 with __builtin_fmaf.
23840 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23841 with __builtin_fmax.
23842 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23843 with __builtin_fmaxf.
23844 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23845 with __builtin_fmin.
23846 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23847 with __builtin_fminf.
23848 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23849 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23850 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23851 with builtin_rint and conversion to int.
23852 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23853 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23854 with builtin_llround.
23855 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23856 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23857 with builtin_rint and conversion to long int.
23858 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23859 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23860 with builtin_lround.
23861 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23862 with builtin_lroundf.
23863 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23864 statements with __builtin_nearbyint.
23865 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23866 statements with __builtin_nearbyintf.
23867 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23868 with __builtin_rint.
23869 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23870 with __builtin_rintf.
23871 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23872 with __builtin_round.
23873 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23874 with __builtin_roundf.
23875 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23876 with __builtin_trunc.
23877 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23878 with __builtin_truncf.
23879 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23880 and s_l[l]round[f].c too.
23881
23882 2017-10-23 Alan Modra <amodra@gmail.com>
23883
23884 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23885 Adjust stack after restoring regs. Add missing LR cfi_restore.
23886
23887 2017-10-23 Alan Modra <amodra@gmail.com>
23888
23889 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23890 Move LR save and frame setup/teardown and LR restore to
23891 immediately around memset call. Provide cfi.
23892
23893 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23894
23895 * sysdeps/i386/fpu/e_powf.S: Removed.
23896 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23897 * sysdeps/i386/fpu/w_powf.c: Likewise.
23898 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23899 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23900 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23901 Add e_powf-sse2.
23902 (CFLAGS-e_powf-sse2.c): New.
23903 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23904 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23905
23906 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23907
23908 * sysdeps/i386/fpu/e_log2f.S: Removed.
23909 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23910 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23911 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23912 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23913 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23914 Add e_log2f-sse2.
23915 (CFLAGS-e_log2f-sse2.c): New.
23916 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23917 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23918
23919 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23920
23921 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23922 Add e_powf-fma.
23923 (CFLAGS-e_powf-fma.c): New.
23924 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23925 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23926
23927 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23928
23929 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23930 Add e_log2f-fma.
23931 (CFLAGS-e_log2f-fma.c): New.
23932 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23933 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23934
23935 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23936
23937 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23938 Add e_logf-fma.
23939 (CFLAGS-e_logf-fma.c): New.
23940 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23941 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23942
23943 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23944
23945 * sysdeps/i386/fpu/e_logf.S: Removed.
23946 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23947 * sysdeps/i386/fpu/w_logf.c: Likewise.
23948 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23949 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23950 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23951 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23952 Add e_logf-sse2.
23953 (CFLAGS-e_logf-sse2.c): New.
23954 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23955 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23956
23957 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23958
23959 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23960 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23961 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23962 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23963 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23964 Add e_exp2f-sse2.
23965 (CFLAGS-e_exp2f-sse2.c): New.
23966 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23967 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23968
23969 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23970
23971 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23972 Add e_exp2f-fma.
23973 (CFLAGS-e_exp2f-fma.c): New.
23974 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23975 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23976
23977 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23978
23979 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23980 * sysdeps/i386/fpu/e_expf.S: Likewise.
23981 * sysdeps/i386/fpu/math_errf.c: Likewise.
23982 * sysdeps/i386/fpu/w_expf.c: Likewise.
23983 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23984 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23985 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23986 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23987 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23988 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23989 Remove e_expf-ia32.
23990 (CFLAGS-e_expf-sse2.c): New.
23991 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23992 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23993
23994 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23995
23996 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23997 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23998 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23999 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24000 e_expf.c.
24001 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24002 New.
24003 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24004 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24005 Renamed to ...
24006 (__redirect_expf): This.
24007 (SYMBOL_NAME): Changed to expf.
24008 (__ieee754_expf): Renamed to ...
24009 (__expf): This.
24010 (__GI___expf): This.
24011 (__ieee754_expf): Add strong_alias.
24012 (__expf_finite): Likewise.
24013 (__expf): New.
24014 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24015
24016 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24017
24018 [BZ #22332]
24019 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24020 unescaping.
24021
24022 2017-10-21 Florian Weimer <fweimer@redhat.com>
24023
24024 * posix/Makefile (tests): Add tst-glob-tilde.
24025 (tests-special): Add tst-glob-tilde-mem.out
24026 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24027 (tst-glob-tilde-mem.out): Add mtrace check.
24028 * posix/tst-glob-tilde.c: New file.
24029
24030 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24031
24032 * bits/floatn-common.h: New file.
24033 * math/Makefile (headers): Add bits/floatn-common.h.
24034 * bits/floatn.h: Include <bits/floatn-common.h>.
24035 * sysdeps/ia64/bits/floatn.h: Likewise.
24036 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24037 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24038 * sysdeps/powerpc/bits/floatn.h: Likewise.
24039 * sysdeps/x86/bits/floatn.h: Likewise.
24040
24041 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24042
24043 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24044 indicates whether compiler emits an warning for alias for
24045 functions with incompatible types.
24046
24047 [BZ #22273]
24048 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24049 the auxiliary process is terminated by a signal before calling _exit
24050 or execve.
24051
24052 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24053
24054 [BZ #21265]
24055 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24056 New.
24057 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24058 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24059 and bit_arch_XSAVEC_Usable if needed.
24060 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24061 and bit_arch_Use_dl_runtime_resolve_opt.
24062 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24063 Removed.
24064 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24065 (bit_arch_Prefer_No_AVX512): Updated.
24066 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24067 (bit_arch_XSAVEC_Usable): New.
24068 (STATE_SAVE_OFFSET): Likewise.
24069 (STATE_SAVE_MASK): Likewise.
24070 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24071 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24072 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24073 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24074 (index_arch_XSAVEC_Usable): New.
24075 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24076 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24077 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24078 is enabled.
24079 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24080 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24081 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24082 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24083 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24084 _dl_runtime_resolve_xsavec.
24085 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24086 Removed.
24087 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24088 instead of VEC_SIZE.
24089 (REGISTER_SAVE_BND0): Removed.
24090 (REGISTER_SAVE_BND1): Likewise.
24091 (REGISTER_SAVE_BND3): Likewise.
24092 (REGISTER_SAVE_RAX): Always defined to 0.
24093 (VMOV): Removed.
24094 (_dl_runtime_resolve_avx): Likewise.
24095 (_dl_runtime_resolve_avx_slow): Likewise.
24096 (_dl_runtime_resolve_avx_opt): Likewise.
24097 (_dl_runtime_resolve_avx512): Likewise.
24098 (_dl_runtime_resolve_avx512_opt): Likewise.
24099 (_dl_runtime_resolve_sse): Likewise.
24100 (_dl_runtime_resolve_sse_vex): Likewise.
24101 (USE_FXSAVE): New.
24102 (_dl_runtime_resolve_fxsave): Likewise.
24103 (USE_XSAVE): Likewise.
24104 (_dl_runtime_resolve_xsave): Likewise.
24105 (USE_XSAVEC): Likewise.
24106 (_dl_runtime_resolve_xsavec): Likewise.
24107 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24108 Removed.
24109 (_dl_runtime_resolve_avx512_opt): Likewise.
24110 (_dl_runtime_resolve_avx): Likewise.
24111 (_dl_runtime_resolve_avx_opt): Likewise.
24112 (_dl_runtime_resolve_sse): Likewise.
24113 (_dl_runtime_resolve_sse_vex): Likewise.
24114 (_dl_runtime_resolve_fxsave): New.
24115 (_dl_runtime_resolve_xsave): Likewise.
24116 (_dl_runtime_resolve_xsavec): Likewise.
24117
24118 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24119
24120 [BZ #22320]
24121 CVE-2017-15670
24122 * posix/glob.c (__glob): Fix one-byte overflow.
24123
24124 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24125
24126 * malloc/malloc.c (sysdep-cancel.h): Add include.
24127
24128 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24129
24130 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24131
24132 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24133
24134 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24135 (tests): Remove $(objpfx)ga_test depdendency.
24136 * resolv/ga_test.c: Remove file.
24137
24138 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24139
24140 [BZ #18812]
24141 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24142 * localedata/locales/kab_DZ: New file.
24143
24144 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24145
24146 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24147 _dl_relocate_static_pie instead of _dl_start to compute load
24148 address in static PIE.
24149
24150 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24151
24152 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24153
24154 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24155
24156 [BZ #13605]
24157 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24158 * localedata/locales/shn_MM: New file.
24159
24160 2017-10-20 Florian Weimer <fweimer@redhat.com>
24161
24162 [BZ #22321]
24163 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24164 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24165 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24166 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24167 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24168 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24169
24170 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24171
24172 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24173
24174 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24175
24176 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24177
24178 [BZ #22322]
24179 * sysdeps/mips/bits/long-double.h: Move to ....
24180 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24181
24182 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24183
24184 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24185
24186 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24187 H.J. Lu <hongjiu.lu@intel.com>
24188
24189 [BZ #22299]
24190 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24191 GLRO(dl_platform) to NULL.
24192 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24193 (modules-names): Add tst-platformmod-1 and
24194 x86_64/tst-platformmod-2.
24195 (CFLAGS-tst-platform-1.c): New.
24196 (CFLAGS-tst-platformmod-1.c): Likewise.
24197 (CFLAGS-tst-platformmod-2.c): Likewise.
24198 (LDFLAGS-tst-platformmod-2.so): Likewise.
24199 ($(objpfx)tst-platform-1): Likewise.
24200 ($(objpfx)tst-platform-1.out): Likewise.
24201 (tst-platform-1-ENV): Likewise.
24202 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24203 * sysdeps/x86_64/tst-platform-1.c: New file.
24204 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24205 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24206
24207 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24208
24209 [BZ #13994]
24210 * locale/iso-639.def: Add Karbi.
24211 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24212 * localedata/locales/mjw_IN: New file.
24213
24214 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24215
24216 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24217 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24218 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24219 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24220 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24221 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24222 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24223 <bits/floatn.h>.
24224 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24225 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24226 * manual/math.texi (Mathematics): Document additional architecture
24227 support for _Float128.
24228 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24229 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24230 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24231 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24232 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24233 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24234 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24235 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24236 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24237 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24238 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24239 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24240 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24241 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24242 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24243
24244 2017-10-18 Renlin Li <renlin.li@arm.com>
24245
24246 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24247 _DYNAMIC symbol to calculate load address.
24248
24249 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24250
24251 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24252 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24253 summary bits.
24254 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24255 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24256
24257 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24258
24259 [BZ #16777]
24260 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24261 and improve readability by using more ASCII.
24262 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24263 and improve readability by using more ASCII.
24264
24265 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24266
24267 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24268 not all targets support atomics on bool.
24269
24270 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24271
24272 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24273 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24274 __f128.
24275 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24276 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24277 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24278 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24279 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24280 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24281
24282 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24283
24284 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24285 defines.
24286
24287 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24288
24289 [BZ #22159]
24290 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24291 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24292 (do_check_remalloced_chunk): Fix build bug.
24293 (do_check_malloc_state): Add assert that checks arena->top.
24294 (malloc_consolidate): Remove initialization.
24295 (int_mallinfo): Remove call to malloc_consolidate.
24296 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24297
24298 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24299
24300 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24301 (have_fastchunks): Remove.
24302 (clear_fastchunks): Remove.
24303 (set_fastchunks): Remove.
24304 (malloc_state): Add have_fastchunks.
24305 (malloc_init_state): Use have_fastchunks.
24306 (do_check_malloc_state): Remove incorrect invariant checks.
24307 (_int_malloc): Use have_fastchunks.
24308 (_int_free): Likewise.
24309 (malloc_consolidate): Likewise.
24310
24311 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24312
24313 * malloc/malloc.c (tcache_put): Inline.
24314 (tcache_get): Inline.
24315
24316 2017-10-17 Jordi Mallach <jordi@gnu.org>
24317
24318 Aurelien Jarno <aurelien@aurel32.net>
24319 [BZ #2522]
24320 * localedata/locales/ca_ES@valencia: New file.
24321 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24322
24323 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24324
24325 [BZ #22296]
24326 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24327 < 6.x
24328
24329 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24330
24331 * scripts/build-many-glibcs.py (Context.add_all_configs):
24332 Add arm-linux-gnueabihf multiarch extra_glibcs.
24333
24334 * sysdeps/generic/ifunc-init.h: New file.
24335 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24336
24337 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24338
24339 [BZ #22019]
24340 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24341 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24342 * stdlib/tst-strfmon_l.c: adapt test case.
24343
24344 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24345
24346 * sysdeps/generic/float128-abi.h: New file.
24347 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24348 non-__prefixed symbols to ....
24349 * math/Versions: ... here. Include <float128-abi.h>.
24350 * stdlib/Versions ... and here. Include <float128-abi.h>
24351
24352 2017-10-16 Florian Weimer <fweimer@redhat.com>
24353
24354 * version.h (VERSION): Switch to ".9000" as the development
24355 version suffix.
24356
24357 2017-10-16 Florian Weimer <fweimer@redhat.com>
24358
24359 [BZ #22050]
24360 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24361 compat_symbol_reference to access non-default version.
24362
24363 2017-10-16 Florian Weimer <fweimer@redhat.com>
24364
24365 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24366
24367 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24368
24369 * include/shlib-compat.h (compat_symbol_reference): Update
24370 comment.
24371
24372 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24373
24374 * math/Makefile (test-types): Add
24375 $(type-float128-$(float128-alias-fcts)).
24376 * math/test-float128.h (TYPE_STR): Define conditional on
24377 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24378 (ULP_IDX): Likewise.
24379 (ULP_I_IDX): Likewise.
24380
24381 * stdlib/strtold.c: Include <bits/floatn.h>
24382 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24383 and later undefine as macro. Define as weak alias if
24384 [!USE_WIDE_CHAR].
24385 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24386 and later undefine as macro. Define as weak alias if
24387 [USE_WIDE_CHAR].
24388 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24389 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24390 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24391 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24392 Define and later undefine as macro. Define as weak alias if
24393 [USE_WIDE_CHAR].
24394 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24395 <bits/floatn.h>.
24396 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24397 Define and later undefine as macro. Define as weak alias if
24398 [!USE_WIDE_CHAR].
24399 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24400 Define and later undefine as macro. Define as weak alias if
24401 [USE_WIDE_CHAR].
24402
24403 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24404
24405 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24406 record_verbose messages.
24407
24408 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24409
24410 [BZ #22052]
24411 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24412 to silence -O3 -Wall warning with GCC 7.
24413
24414 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24415
24416 * Makeconfig (+link-static-before-libc): Use the first of
24417 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24418 * gmon/Makefile (tests): Add tst-gmon-static.
24419 (tests-static): Likewise.
24420 (CFLAGS-tst-gmon-static.c): New.
24421 (CRT-tst-gmon-static): Likewise.
24422 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24423 (tst-gmon-static-ENV): Likewise.
24424 (tests-special): Likewise.
24425 ($(objpfx)tst-gmon-static.out): Likewise.
24426 (clean-tst-gmon-static-data): Likewise.
24427 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24428 * gmon/tst-gmon-static-gprof.sh: New file.
24429 * gmon/tst-gmon-static.c: Likewise.
24430
24431 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24432
24433 [BZ #22295]
24434 * locale/programs/linereader.c (get_string): Don't warn on
24435 non-symbolic character.
24436
24437 [BZ #22294]
24438 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24439 int_curr_symbol.
24440
24441 [BZ #22292]
24442 * locale/programs/record-status.h: New file
24443 * locale/programs/locale.c: Add comment.
24444 * locale/programs/charmap-dir.c: Don't include error.h.
24445 (charmap_opendir): Use record_error.
24446 * locale/programs/charmap.c: Don't include error.h.
24447 (charmap_read): Use record_error, and record_warning.
24448 (parse_charmap): Likewise.
24449 * locale/programs/ld-address.c: Don't include error.h.
24450 (address_finish): Use record_error, and record_warning.
24451 * locale/programs/ld-collate.c: Don't include error.h.
24452 (collate_finish): Use record_error, and record_error_at_line.
24453 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24454 (ctype_class_new): Likewise.
24455 (ctype_map_new): Likewise.
24456 (set_one_default): Likewise.
24457 (set_class_defaults): Likewise.
24458 (translit_flatten): Likewise.
24459 (allocate_arrays): Use record_error, and record_verbose.
24460 * locale/programs/ld-identification.c: Don't include error.h.
24461 (indentation_finish): Use record_error and record_warning.
24462 * locale/programs/ld-measurement.c: Don't include error.h.
24463 (measurement_finish): Use record_error.
24464 * locale/programs/ld-messages.c
24465 (message_finish): Likewise.
24466 * locale/programs/ld-monetary.c
24467 (monetary_finish): Likewise.
24468 * locale/programs/ld-name.c (name_finish): Use record_error
24469 and record_warning.
24470 * locale/programs/ld-numeric.c
24471 (numeric_finish): Use record_error.
24472 * locale/programs/ld-paper.c: Don't include error.h.
24473 (paper_finish): Use record_error.
24474 * locale/programs/ld-telephone.c: Don't include error.h.
24475 (telephone_finish): Use record_error.
24476 * locale/programs/ld-time.c (time_finish): Likewise.
24477 * locale/programs/linereader.h (lr_error): Make inline func.
24478 * locale/programs/localedef.c: Define recorded_warning_count,
24479 and recorded_error_count.
24480 (main): Use record_error. Use recorded_error_count and
24481 recorded_warning_count to issue correct error returns.
24482 (add_to_readlist): Use record_error.
24483 (find_locale): Likewise.
24484 (load_locale): Likewise.
24485 * locale/programs/localedef.h: Remove be_quiet
24486 and WITH_CUR_LOCALE.
24487 * locale/programs/locarchive.c (compare_from_file): Use
24488 record_error.
24489 * locale/programs/locfile.c (write_locale_data): Use
24490 record_error.
24491 * locale/programs/repertoire.c: Dont include error.h.
24492 (repertoire_complain): Use record_error.
24493 * localedata/tst-fmon.sh: Expect failures from localedef.
24494 * localedata/tst-locale.sh: Likewise.
24495 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24496
24497 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24498 (REPORTS): Likewise.
24499 (check): Likewise.
24500 (i18n): Rename to...
24501 (i18n_ctype): ...this.
24502 (i18n-report): Rename to...
24503 (i18n_ctype-report): ...this.
24504 * localedata/locales/i18n_ctype: Regenerate.
24505 * localedata/locales/i18n: copy i18n_ctype.
24506
24507 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24508
24509 * stdlib/strfroml.c: Include <bits/floatn.h>.
24510 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24511 Define before include of <stdlib.h> and undefine afterwards, then
24512 define as weak alias.
24513
24514 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24515 Undefine and restore default definition. Use
24516 libm_alias_ldouble_other.
24517
24518 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24519
24520 [BZ #22153]
24521 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24522 in coredumps.
24523
24524 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24525
24526 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24527 Assign sym_map to be map for local symbols, as TLS relocations
24528 use sym_map to determine whether the symbol is defined and to
24529 extract the TLS information.
24530 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24531 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24532
24533 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24534
24535 [BZ #22189]
24536 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24537 (math_force_eval): Add powerpc version.
24538
24539 [BZ #22142]
24540 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24541 -DBL_MAX.
24542 (do_test): Likewise.
24543 * stdio-common/tst-printf.sh: Likewise.
24544 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24545 ifdef clause in order to set the carry bit right. Replace r0 by
24546 0 without changing the behavior.
24547
24548 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24549
24550 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24551 <libm-alias-ldouble.h>.
24552 (fabsl): Define using libm_alias_ldouble.
24553 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24554 <libm-alias-ldouble.h>.
24555 (fabsl): Define using libm_alias_ldouble.
24556
24557 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24558 Remove conditional code.
24559
24560 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24561 Rename to __clog10_internal_l.
24562 (__clog10_internal_l): Define aliases using
24563 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24564 with __clog10.
24565
24566 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24567
24568 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24569 * benchtests/sincosf-inputs: New file.
24570 * benchtests/cosf-inputs: New file.
24571 * benchtests/sinf-inputs: New file.
24572
24573 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24574
24575 * posix/tst-spawn.c (do_test): Wait for both children.
24576
24577 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24578
24579 [BZ #22284]
24580 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24581 tests-pie): Add tst-gmon-pie.
24582 (CFLAGS-tst-gmon-pie.c): New.
24583 (CRT-tst-gmon-pie): Likewise.
24584 (tst-gmon-pie-ENV): Likewise.
24585 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24586 ($(objpfx)tst-gmon-pie.out): Likewise.
24587 (clean-tst-gmon-pie-data): Likewise.
24588 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24589 * gmon/gmon.c [PIC]: Include <link.h>.
24590 [PIC] (callback): New function.
24591 (write_hist): Add an argument for load address. Subtract load
24592 address from PCs.
24593 (write_call_graph): Likewise.
24594 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24595 it to write_hist and write_call_graph.
24596 * gmon/tst-gmon-pie.c: New file.
24597
24598 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24599
24600 * math/Makefile (test-types-basic): New variable.
24601 (test-types): Likewise.
24602 (libm-test-support): Use $(test-types) instead of $(types).
24603 (libm-tests-base-normal): Likewise.
24604 (libm-tests-base-finite): Likewise.
24605 (libm-tests-base-inline): Likewise.
24606 (generated): Likewise.
24607 ($(objpfx)libm-test-support-$(t).c): Likewise.
24608 (libm-tests-for-type iterator): Likewise.
24609 (libm-test-support iterator): Likewise.
24610 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24611 (ulp_idx): Use ULP_IDX.
24612 * math/test-ldouble.h: Include <float.h>.
24613 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24614 (ULP_IDX): New macro.
24615 (ULP_I_IDX): Likewise.
24616 * math/test-double.h (ULP_IDX): Likewise.
24617 (ULP_I_IDX): Likewise.
24618 * math/test-float.h (ULP_IDX): Likewise.
24619 (ULP_I_IDX): Likewise.
24620 * math/test-float128.h (ULP_IDX): Likewise.
24621 (ULP_I_IDX): Likewise.
24622
24623 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24624
24625 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24626 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24627 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24628 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24629 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24630 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24631 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24632 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24633 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24634 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24635 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24636 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24637 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24638 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24639 (SINGLE_THREAD_BY_GLOBAL): Define.
24640 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24641 Likewise.
24642 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24643 Likewise.
24644 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24645 Likewise.
24646 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24647 Likewise.
24648 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24649 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24650 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24651 Likewise.
24652
24653 2017-10-11 Andreas Schwab <schwab@suse.de>
24654
24655 * nis/Makefile (aux): Remove.
24656 * nscd/Makefile (aux): Add nscd_hash.
24657 (nscd-modules): Likewise.
24658 ($(objpfx)nscd): Don't depend on libnsl.
24659 * nscd/nscd_hash.c: New file.
24660 * nscd/nscd_hash.h: Likewise.
24661 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24662 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24663 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24664 instead of <nis/rpcsvc/nis.h>.
24665 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24666
24667 2017-10-11 Florian Weimer <fweimer@redhat.com>
24668
24669 [BZ #22078]
24670 Avoid large NSS buffers with many addresses, aliases.
24671 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24672 using dynarrays and struct alloc_buffer.
24673 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24674 (tst-nss-files-hosts-multi): Link with -ldl.
24675 * nss/tst-nss-files-hosts-multi.c: New file.
24676
24677 2017-10-11 Florian Weimer <fweimer@redhat.com>
24678
24679 [BZ #18023]
24680 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24681 scratch_buffer. Eliminate gotos.
24682
24683 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24684
24685 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24686 libm_alias_ldouble_other.
24687 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24688 undefine and redefine.
24689 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24690 (exp10l): Do not define here.
24691 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24692 (weak_alias): Undefine and redefine.
24693 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24694 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24695 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24696 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24697
24698 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24699 [!__fma] (fma): Define using libm_alias_double.
24700 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24701 [!__fmaf] (fmaf): Define using libm_alias_float.
24702 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24703 (fmal): Define using libm_alias_ldouble.
24704
24705 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24706
24707 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24708 New macro.
24709 (libm_alias_double_other): Likewise.
24710 (libm_alias_double_r): Use libm_alias_double_other_r.
24711 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24712 New macro.
24713 (libm_alias_float_other): Likewise.
24714 (libm_alias_float_r): Use libm_alias_float_other_r.
24715 * sysdeps/generic/libm-alias-float128.h
24716 (libm_alias_float128_other_r): New macro.
24717 (libm_alias_float128_other): Likewise.
24718 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24719 * sysdeps/generic/libm-alias-ldouble.h
24720 (libm_alias_ldouble_other_r): New macro.
24721 (libm_alias_ldouble_other): Likewise.
24722 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24723 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24724 (libm_alias_double_other_r): New macro.
24725 (libm_alias_double_other): Likewise.
24726 (libm_alias_double_r): Use libm_alias_double_other_r.
24727 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24728 (libm_alias_ldouble_other_r): New macro.
24729 (libm_alias_ldouble_other): Likewise.
24730 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24731 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24732 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24733 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24734 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24735 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24736 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24737 * math/w_exp2f.c: Use libm_alias_float_other.
24738 * math/w_expf.c: Likewise.
24739 * math/w_log2f.c: Likewise.
24740 * math/w_logf.c: Likewise.
24741 * math/w_powf.c: Likewise.
24742 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24743 [!__exp2f]: Use libm_alias_float_other.
24744 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24745 [!__expf]: Use libm_alias_float_other.
24746 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24747 [!__log2f]: Use libm_alias_float_other.
24748 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24749 [!__logf]: Use libm_alias_float_other.
24750 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24751 [!__powf]: Use libm_alias_float_other.
24752
24753 2017-10-10 Florian Weimer <fweimer@redhat.com>
24754
24755 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24756 function.
24757 (_nss_files_gethostbyname3_r): Call it.
24758
24759 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24760
24761 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24762 error. Remove default definition of declare_mgen_alias.
24763 [!declare_mgen_alias_r]: Likewise.
24764 * sysdeps/generic/math-type-macros-double.h
24765 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24766 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24767 (declare_mgen_alias_r): Likewise.
24768 * sysdeps/generic/math-type-macros-float128.h
24769 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24770 * sysdeps/generic/math-type-macros-ldouble.h
24771 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24772 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24773 macro.
24774 (declare_mgen_alias_r_s): Likewise.
24775 (declare_mgen_alias_r): Likewise.
24776 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24777 (lgamma_r): Define using libm_alias_double_r.
24778 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24779 (lgammaf_r): Define using libm_alias_float_r.
24780 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24781 (lgammal_r): Define using libm_alias_ldouble_r.
24782 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24783 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24784
24785 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24786
24787 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24788 extern declaration.
24789
24790 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24791
24792 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24793
24794 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24795
24796 [BZ #21326]
24797 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24798 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24799 * math/Makefile (test-math-cxx11): New test.
24800 * math/test-math-cxx11.cc: New file.
24801
24802 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24803
24804 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24805
24806 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24807 call to allocate the slave pty file descriptor.
24808
24809 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24810
24811 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24812 [!__fma] (fma): Define using libm_alias_double.
24813 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24814 [!__fma] (fma): Define using libm_alias_double.
24815
24816 * sysdeps/ieee754/float128/float128_private.h: Include
24817 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24818 (libm_alias_ldouble_r): Undefine and redefine.
24819 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24820 <libm-alias-ldouble.h>.
24821 (asinhl): Define using libm_alias_ldouble.
24822 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24823 <libm-alias-ldouble.h>.
24824 (atanl): Define using libm_alias_ldouble.
24825 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (cbrtl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24829 <libm-alias-ldouble.h>.
24830 (ceill): Define using libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24832 <libm-alias-ldouble.h>.
24833 (copysignl): Define using libm_alias_ldouble.
24834 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24835 <libm-alias-ldouble.h>.
24836 (cosl): Define using libm_alias_ldouble.
24837 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24838 <libm-alias-ldouble.h>.
24839 (erfl): Define using libm_alias_ldouble.
24840 (erfcl): Likewise.
24841 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24842 <libm-alias-ldouble.h>.
24843 (expm1l): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24845 <libm-alias-ldouble.h>.
24846 (fabsl): Define using libm_alias_ldouble.
24847 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24848 <libm-alias-ldouble.h>.
24849 (floorl): Define using libm_alias_ldouble.
24850 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24851 <libm-alias-ldouble.h>.
24852 (fmal): Define using libm_alias_ldouble.
24853 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24854 <libm-alias-ldouble.h>.
24855 (frexpl): Define using libm_alias_ldouble.
24856 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24857 libm_alias_ldouble.
24858 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24859 <libm-alias-ldouble.h>.
24860 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24861 libm_alias_ldouble.
24862 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24863 <libm-alias-ldouble.h>.
24864 (getpayloadl): Define using libm_alias_ldouble.
24865 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24866 <libm-alias-ldouble.h>.
24867 (llrintl): Define using libm_alias_ldouble.
24868 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24869 <libm-alias-ldouble.h>.
24870 (llroundl): Define using libm_alias_ldouble.
24871 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24872 <libm-alias-ldouble.h>.
24873 (logbl): Define using libm_alias_ldouble.
24874 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24875 <libm-alias-ldouble.h>.
24876 (lrintl): Define using libm_alias_ldouble.
24877 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24878 <libm-alias-ldouble.h>.
24879 (lroundl): Define using libm_alias_ldouble.
24880 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24881 <libm-alias-ldouble.h>.
24882 (modfl): Define using libm_alias_ldouble.
24883 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24884 <libm-alias-ldouble.h>.
24885 (nearbyintl): Define using libm_alias_ldouble.
24886 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (nextafterl): Define using libm_alias_ldouble.
24889 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24890 <libm-alias-ldouble.h>.
24891 (nextupl): Define using libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24893 <libm-alias-ldouble.h>.
24894 (remquol): Define using libm_alias_ldouble.
24895 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24896 <libm-alias-ldouble.h>.
24897 (rintl): Define using libm_alias_ldouble.
24898 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24899 <libm-alias-ldouble.h>.
24900 (roundevenl): Define using libm_alias_ldouble.
24901 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24902 <libm-alias-ldouble.h>.
24903 (roundl): Define using libm_alias_ldouble.
24904 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24905 using libm_alias_ldouble.
24906 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24907 <libm-alias-ldouble.h>.
24908 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24909 Define using libm_alias_ldouble.
24910 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24911 <libm-alias-ldouble.h>.
24912 (sincosl): Define using libm_alias_ldouble.
24913 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24914 <libm-alias-ldouble.h>.
24915 (sinl): Define using libm_alias_ldouble.
24916 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24917 <libm-alias-ldouble.h>.
24918 (tanhl): Define using libm_alias_ldouble.
24919 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24920 <libm-alias-ldouble.h>.
24921 (tanl): Define using libm_alias_ldouble.
24922 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24923 <libm-alias-ldouble.h>.
24924 (totalorderl): Define using libm_alias_ldouble.
24925 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24926 <libm-alias-ldouble.h>.
24927 (totalordermagl): Define using libm_alias_ldouble.
24928 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24929 <libm-alias-ldouble.h>.
24930 (truncl): Define using libm_alias_ldouble.
24931 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24932 libm_alias_ldouble.
24933 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24934 libm_alias_ldouble.
24935 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24936 <libm-alias-ldouble.h>.
24937 (weak_alias): Do not undefine and redefine.
24938 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24939 (copysignl): Define with long_double_symbol only if [IS_IN
24940 (libc)].
24941 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24942 <libm-alias-ldouble.h>.
24943 (weak_alias): Do not undefine and redefine.
24944 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24945 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24946 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24947 <libm-alias-ldouble.h>.
24948 (weak_alias): Do not undefine and redefine.
24949 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24950 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24951 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24952 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24953 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24954 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24955 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24956 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24957 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24958 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24959 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24960 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24961 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24962 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24963 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24964 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24965 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24966 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24967 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24968 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24969 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24970 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24971 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24972 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24973 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24974 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24975
24976 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24977
24978 [BZ #22111]
24979 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24980 (tcache_thread_freeres): Set tcache_shutting_down before
24981 freeing the tcache.
24982 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24983 * malloc/tst-malloc-tcache-leak.c: New file.
24984
24985 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24986
24987 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24988 back to powerpc32 file.
24989 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24990 (memrchr): Add __memrchr_power8 to ifunc list.
24991 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24992 extra bytes for unaligned inputs.
24993
24994 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24995
24996 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24997 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24998 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24999 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25000 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25001
25002 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25003
25004 * sysdeps/arm/libm-test-ulps: Update.
25005
25006 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25007 <libm-alias-ldouble.h>.
25008 (asinhl): Define using libm_alias_ldouble.
25009 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25010 <libm-alias-ldouble.h>.
25011 (cbrtl): Define using libm_alias_ldouble.
25012 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25013 <libm-alias-ldouble.h>.
25014 (copysignl): Define using libm_alias_ldouble.
25015 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25016 <libm-alias-ldouble.h>.
25017 (cosl): Define using libm_alias_ldouble.
25018 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25019 <libm-alias-ldouble.h>.
25020 (erfl): Define using libm_alias_ldouble.
25021 (erfcl): Likewise.
25022 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25023 <libm-alias-ldouble.h>.
25024 (fmal): Define using libm_alias_ldouble.
25025 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25026 <libm-alias-ldouble.h>.
25027 (frexpl): Define using libm_alias_ldouble.
25028 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25029 libm_alias_ldouble.
25030 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25031 <libm-alias-ldouble.h>.
25032 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25033 libm_alias_ldouble.
25034 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25035 <libm-alias-ldouble.h>.
25036 (getpayloadl): Define using libm_alias_ldouble.
25037 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25038 <libm-alias-ldouble.h>.
25039 (llrintl): Define using libm_alias_ldouble.
25040 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25041 <libm-alias-ldouble.h>.
25042 (llroundl): Define using libm_alias_ldouble.
25043 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25044 <libm-alias-ldouble.h>.
25045 (lrintl): Define using libm_alias_ldouble.
25046 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25047 <libm-alias-ldouble.h>.
25048 (lroundl): Define using libm_alias_ldouble.
25049 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25050 <libm-alias-ldouble.h>.
25051 (modfl): Define using libm_alias_ldouble.
25052 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25053 <libm-alias-ldouble.h>.
25054 (nextupl): Define using libm_alias_ldouble.
25055 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25056 <libm-alias-ldouble.h>.
25057 (remquol): Define using libm_alias_ldouble.
25058 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25059 <libm-alias-ldouble.h>.
25060 (roundevenl): Define using libm_alias_ldouble.
25061 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25062 <libm-alias-ldouble.h>.
25063 (roundl): Define using libm_alias_ldouble.
25064 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25065 using libm_alias_ldouble.
25066 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25067 <libm-alias-ldouble.h>.
25068 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25069 <libm-alias-ldouble.h>.
25070 (setpayloadsigl): Define using libm_alias_ldouble.
25071 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25072 <libm-alias-ldouble.h>.
25073 (sincosl): Define using libm_alias_ldouble.
25074 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25075 <libm-alias-ldouble.h>.
25076 (sinl): Define using libm_alias_ldouble.
25077 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25078 <libm-alias-ldouble.h>.
25079 (tanhl): Define using libm_alias_ldouble.
25080 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25081 <libm-alias-ldouble.h>.
25082 (tanl): Define using libm_alias_ldouble.
25083 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25084 <libm-alias-ldouble.h>.
25085 (totalorderl): Define using libm_alias_ldouble.
25086 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25087 <libm-alias-ldouble.h>.
25088 (totalordermagl): Define using libm_alias_ldouble.
25089 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25090 libm_alias_ldouble.
25091 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25092 libm_alias_ldouble.
25093
25094 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25095
25096 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25097 memmove_falkor.
25098 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25099 (__libc_ifunc_impl_list): Likewise.
25100 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25101 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25102
25103 * benchtests/bench-memmove-walk.c: New file.
25104 * benchtests/Makefile (string-benchset): Add it.
25105
25106 * benchtests/bench-memset-walk.c: New file.
25107 * benchtests/Makefile (string-benchset): Add it.
25108
25109 * benchtests/bench-memcpy-walk.c: New file.
25110 * benchtests/Makefile (string-benchset): Add it.
25111
25112 2017-10-05 Florian Weimer <fweimer@redhat.com>
25113
25114 nscd: Eliminate compilation time dependency in the build output.
25115 * nscd/nscd_stat.c (STATDATA_VERSION)
25116 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25117 (STATDATA_VERSION_FULL): New macro definitions.
25118 (compilation): Remove.
25119 (struct statdata): Adjust version member.
25120 (send_stats): Set version from STATDATA_VERSION_FULL.
25121 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25122
25123 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25124
25125 * configure.ac (--enable-add-ons): Remove option.
25126 (machine): Do not mention add-ons in comment.
25127 (LIBC_PRECONFIGURE): Likewise.
25128 (add_ons): Remove variable and sanity checks and logic to locate
25129 add-ons.
25130 (add_ons_automatic): Remove variable.
25131 (configured_add_ons): Likewise.
25132 (add_ons_sfx): Likewise.
25133 (add_ons_pfx): Likewise.
25134 (add_on_subdirs): Likewise.
25135 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25136 consideration of add-ons in Implies handling.
25137 (sysdeps_add_ons): Likewise.
25138 * configure: Regenerated.
25139 * libidn/configure.ac: Remove.
25140 * libidn/configure: Likewise.
25141 * sysdeps/unix/inet/configure.ac: New file.
25142 * sysdeps/unix/inet/configure: New generated file.
25143 * sysdeps/unix/inet/Subdirs: Add libidn.
25144 * Makeconfig (sysdeps-srcdirs): Remove variable.
25145 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25146 ($(common-objpfx)config.status): Do not depend on add-on files.
25147 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25148 comment.
25149 (all-subdirs): Do not include $(add-on-subdirs).
25150 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25151 * config.make.in (add-ons): Remove variable.
25152 (add-on-subdirs): Likewise.
25153 (sysdeps-add-ons): Likewise.
25154 * manual/Makefile (add-chapters): Remove.
25155 ($(objpfx)texis): Do not depend on $(add-chapters).
25156 (nonexamples): Do not handle $(add-chapters).
25157 (examples): Do not handle $(add-ons).
25158 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25159 libc-texinfo.sh.
25160 * manual/install.texi (Installation): Do not mention add-ons.
25161 (--enable-add-ons): Do not document configure option.
25162 * INSTALL: Regenerated.
25163 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25164 * manual/maint.texi (Hierarchy Conventions): Do not mention
25165 add-ons.
25166 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25167 --enable-add-ons.
25168 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25169 add-ons.
25170 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25171 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25172
25173 2017-10-05 Andreas Schwab <schwab@suse.de>
25174
25175 [BZ #15142]
25176 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25177 (_IO_flush_all_lockp): Always lock list_all_lock.
25178 (_IO_flush_all_linebuffered): Likewise.
25179 (_IO_unbuffer_all): Likewise.
25180
25181 2017-10-05 Florian Weimer <fweimer@redhat.com>
25182
25183 [BZ #15436]
25184 Do not flush stdio streams on abort.
25185 * stdlib/abort.c (fflush): Remove macro definition.
25186 (abort): Remove stages related to stdio flushing.
25187
25188 2017-10-05 Florian Weimer <fweimer@redhat.com>
25189
25190 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25191
25192 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25193
25194 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25195
25196 2017-10-05 Florian Weimer <fweimer@redhat.com>
25197
25198 * support/support_format_hostent.c (support_format_hostent): Add
25199 more error information for NETDB_INTERNAL.
25200
25201 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25202
25203 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25204 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25205 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25206 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25207 AC_DEFINE if multi-arch is enabled.
25208 * sysdeps/i386/configure: Regenerated.
25209
25210 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25211
25212 * Makeconfig (+link-static-before-libc): Use
25213 $(DEFAULT-LDFLAGS-$(@F)).
25214 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25215 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25216 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25217
25218 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25219
25220 * elf/Makefile (tests): Add tst-main1.
25221 (modules-names): Add tst-main1mod.
25222 ($(objpfx)tst-main1): New.
25223 (CRT-tst-main1): Likewise.
25224 (LDFLAGS-tst-main1): Likewise.
25225 (LDLIBS-tst-main1): Likewise.
25226 (tst-main1mod.so-no-z-defs): Likewise.
25227 * elf/tst-main1.c: New file.
25228 * elf/tst-main1mod.c: Likewise.
25229
25230 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25231
25232 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25233
25234 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25235
25236 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25237 (fma): Define using libm_alias_double.
25238 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25239 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25240 <math_ldbl_opt.h>.
25241 (fmal): Do not define as compat symbol here.
25242 * sysdeps/alpha/fpu/s_fma.c: New file.
25243
25244 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25245
25246 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25247
25248 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25249
25250 [BZ #22229]
25251 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25252 <math_ldbl_opt.h>
25253 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25254 and libc.
25255 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25256 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25257 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25258 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25260 Include <math_ldbl_opt.h>
25261 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25262 and libc.
25263 (compat_symbol): Undefine and redefine.
25264 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25265 <math_ldbl_opt.h>
25266 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25267 (compat_symbol): Undefine and redefine.
25268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25269 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25270 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25271 GLIBC_2_1 for libm.
25272 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25273 GLIBC_2.0 copysignl symbol.
25274 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25275 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25276
25277 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25278
25279 2017-10-04 Florian Weimer <fweimer@redhat.com>
25280
25281 * scripts/check-local-headers.sh: Ignore nspr4 header file
25282 directory in addition to nspr.
25283
25284 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25285
25286 [BZ #17956]
25287 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25288 * configure: Regenerate.
25289 * crypt/Makefile (nss-cpp-flags): New variable.
25290 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25291 (CPPFLAGS-md5-crypt.c): Use it.
25292 * scripts/check-local-headers.sh: Ignore nspr header file
25293 directory.
25294
25295 2017-10-04 Andreas Schwab <schwab@suse.de>
25296
25297 * nis/Makefile (services): Remove compat.
25298 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25299 ($(objpfx)libnss_compat.so): Remove rule.
25300 * nis/Versions (libnss_compat): Remove.
25301 * nss/Makefile (services): Add compat.
25302 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25303 * nss/Versions (libnss_compat): Define.
25304 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25305 Don't include <rpc/types.h>. Replace bool_t by bool.
25306 * nss/nss_compat/compat-initgroups.c: Likewise.
25307 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25308 instead of <rpcsrv/ypclnt.h>.
25309 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25310 yp_get_default_domain.
25311 * nss/nss_compat/compat-pwd.c: Likewise.
25312 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25313 yp_get_default_domain.
25314 * nss/nss_compat/nisdomain.c: New file.
25315 * nss/nss_compat/nisdomain.h: Likewise.
25316
25317 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25318
25319 [BZ #22244]
25320 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25321 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25322
25323 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25324
25325 [BZ #22243]
25326 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25327 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25328
25329 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25330
25331 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25332 "movl main@GOTOFF(%ebx), %eax".
25333
25334 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25335
25336 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25337 allow undefined _DYNAMIC in PIE libc.a.
25338 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25339 Likewse.
25340
25341 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25342
25343 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25344 check _DYNAMIC.
25345
25346 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25347
25348 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25349 check _DYNAMIC.
25350
25351 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25352
25353 * math/test-math-iscanonical.cc (error): Replace bool with int.
25354
25355 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25356
25357 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25358 (modf): Define using libm_alias_double, only if [!__modf].
25359 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25360 <libm-alias-double.h>.
25361 (modf): Define using libm_alias_double, only if [!__modf].
25362 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25363 compat symbol here.
25364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25365 (weak_alias): Do not undefine and redefine.
25366 (strong_alias): Likewise.
25367 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25368 (weak_alias): Likewise.
25369 (strong_alias): Likewise.
25370
25371 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25372 (logb): Define using libm_alias_double, only if [!__logb].
25373 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25374 <libm-alias-double.h>.
25375 (logb): Define using libm_alias_double, only if [!__logb].
25376 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25378 (weak_alias): Do not undefine and redefine.
25379 (strong_alias): Likewise.
25380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25381 (weak_alias): Likewise.
25382 (strong_alias): Likewise.
25383
25384 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25385
25386 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25387 Check SHARED instead PIC.
25388
25389 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25390
25391 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25392 [!__fmaf] (fmaf): Define using libm_alias_float.
25393
25394 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25395 (frexp): Define using libm_alias_double.
25396 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25397 <libm-alias-double.h>.
25398 (frexp): Define using libm_alias_double.
25399 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25400 compat symbol here.
25401
25402 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25403
25404 [BZ #22235]
25405 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25406 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25407 (CFLAGS-test-math-iscanonical.cc): New variable.
25408 * math/test-math-iscanonical.cc: New file.
25409 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25410 Provide a C++ implementation based on function overloading,
25411 rather than using __MATH_TG, which uses C-only builtins.
25412 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25413 Likewise.
25414 * sysdeps/powerpc/powerpc64le/Makefile
25415 (CFLAGS-test-math-iscanonical.cc): New variable.
25416
25417 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25418
25419 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25420 (ceil): Define using libm_alias_double.
25421 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25422 (floor): Define using libm_alias_double.
25423 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25424 <libm-alias-double.h>.
25425 (llround): Define using libm_alias_double.
25426 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25427 <libm-alias-double.h>.
25428 (lround): Define using libm_alias_double.
25429 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25430 <libm-alias-double.h>.
25431 (nearbyint): Define using libm_alias_double.
25432 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25433 <libm-alias-double.h>.
25434 (remquo): Define using libm_alias_double.
25435 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25436 (rint): Define using libm_alias_double.
25437 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25438 (round): Define using libm_alias_double.
25439 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25440 (trunc): Define using libm_alias_double.
25441 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25442 <libm-alias-double.h>.
25443 (ceil): Define using libm_alias_double.
25444 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25445 <libm-alias-double.h>.
25446 (floor): Define using libm_alias_double.
25447 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25448 <libm-alias-double.h>.
25449 (llround): Define using libm_alias_double.
25450 [_LP64] (lround): Likewise.
25451 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25452 <libm-alias-double.h>.
25453 [!_LP64] (lround): Define using libm_alias_double.
25454 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25455 <libm-alias-double.h>.
25456 (nearbyint): Define using libm_alias_double.
25457 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25458 <libm-alias-double.h>.
25459 (remquo): Define using libm_alias_double.
25460 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25461 <libm-alias-double.h>.
25462 (rint): Define using libm_alias_double.
25463 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25464 <libm-alias-double.h>.
25465 (round): Define using libm_alias_double.
25466 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25467 <libm-alias-double.h>.
25468 (trunc): Define using libm_alias_double.
25469 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25470 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25471 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25472 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25473 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25474 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25475 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25476 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25477 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25478
25479 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25480
25481 * math/w_remainder.c: New file.
25482 * math/w_remainderf.c: New file.
25483 * math/w_remainderl.c: New file.
25484
25485 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25486
25487 * elf/rtld.c (BOOTSTRAP_MAP): New.
25488 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25489 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25490 Likewise.
25491 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25492 Likewise.
25493 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25494 Likewise.
25495
25496 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25497
25498 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25499 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25500 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25501 rtld_hidden_data_ver): Define to empty.
25502 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25503 __assert_perror_fail): Likewise.
25504 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25505 (__rewinddir): Likewise.
25506 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25507 (__profile_frequency): Likewise.
25508 * include/setjmp.h (__sigsetjmp): Likewise.
25509 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25510 __libc_sigaction): Likewise.
25511 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25512 not set hidden attribute.
25513 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25514 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25515 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25516 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25517 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25518 __fxstatat64): Likewise.
25519 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25520 (__uname): Likewise.
25521 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25522 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25523 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25524 (NO_RTLD_HIDDEN): Set.
25525 * sysdeps/mach/hurd/configure: Refresh.
25526 * config.h.in: Refresh.
25527
25528 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25529
25530 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25531 (atan): Define using libm_alias_double.
25532 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25533 (tan): Define using libm_alias_double.
25534 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25535 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25536
25537 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25538 define as weak alias of __atan. Do not define any aliases if
25539 [__atan].
25540 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25541 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25542 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25543 as weak alias of __tan. Do not define any aliases if [__tan].
25544 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25545 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25546 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25547 __atan.
25548 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25549 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25550 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25551 and define as weak alias of __atan.
25552 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25553 __atan.
25554 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25555 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25556 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25557 define as weak alias of __tan.
25558
25559 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25560
25561 * math/w_lgamma.c: New file.
25562 * math/w_lgammaf.c: New file.
25563 * math/w_lgammal.c: New file.
25564
25565 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25566
25567 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25568 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25569 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25570 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25571 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25572 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25573 * sysdeps/i386/fpu/w_log2f.c: New file.
25574 * sysdeps/i386/fpu/w_logf.c: New file.
25575 * sysdeps/i386/fpu/w_powf.c: New file.
25576 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25577 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25578 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25579
25580 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25581 H.J. Lu <hongjiu.lu@intel.com>
25582
25583 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25584 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25585 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25586 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25587 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25588 the new expf code.
25589 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25590 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25591 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25592 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25593 * sysdeps/i386/fpu/w_exp2f.c: New file.
25594 * sysdeps/i386/fpu/w_expf.c: New file.
25595 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25596 * sysdeps/x86_64/fpu/w_expf.c: New file.
25597
25598 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25599
25600 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25601 (log2f): Likewise.
25602 (powf): Likewise.
25603 * math/w_log2f.c: New file.
25604 * math/w_logf.c: New file.
25605 * math/w_powf.c: New file.
25606 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25607 * math/w_logf_compat.c (__logf_compat): Likewise.
25608 * math/w_powf_compat.c (__powf_compat): Likewise.
25609 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25610 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25611 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25612 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25613 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25614 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25615 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25616 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25617 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25618 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25619 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25620 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25621 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25622 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25623 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25625 Likewise.
25626 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25627 Likewise.
25628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25629 Likewise.
25630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25631 Likewise.
25632 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25633 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25634 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25635 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25636 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25637 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25638 Likewise.
25639 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25640 Likewise.
25641 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25642 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25643 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25644
25645 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25646
25647 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25648 (sysdep_routines): Add memrchr_power8.
25649 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25650 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25651 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25652 New file.
25653 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25654 (memrchr): Add __memrchr_power8 to ifunc list.
25655 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25656
25657 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25658
25659 [BZ #18822]
25660 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25661 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25662 libc_hidden_def.
25663 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25664 (__posix_fallocate64_l64): Likewise.
25665
25666 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25667
25668 [BZ #18822]
25669 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25670 (__sched_setaffinity_new): Add libc_hidden_proto and
25671 libc_hidden_def.
25672
25673 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25674
25675 [BZ #18822]
25676 * include/glob.h (__glob64): Add libc_hidden_proto.
25677 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25678 libc_hidden_def.
25679
25680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25681
25682 [BZ #18822]
25683 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25684 attribute_hidden.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25695 libc_hidden_def.
25696
25697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 [BZ #18822]
25700 * csu/version.c (__libc_print_version): Add attribute_hidden.
25701
25702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 [BZ #18822]
25705 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25706
25707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25708
25709 [BZ #18822]
25710 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25711
25712 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25713
25714 [BZ #18822]
25715 * nscd/nscd_helper.c (__nis_hash): New prototype.
25716
25717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25718
25719 [BZ #18822]
25720 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25721 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25722 libc_hidden_def.
25723 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25724 * termios/tcgetattr.c (__tcgetattr): Likewise.
25725
25726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25727
25728 [BZ #18822]
25729 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25730 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25731 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25732 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25733 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25734
25735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25736
25737 [BZ #18822]
25738 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25739
25740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25741
25742 [BZ #18822]
25743 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25744 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25745
25746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25747
25748 [BZ #18822]
25749 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25750
25751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25752
25753 [BZ #18822]
25754 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25755 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25756
25757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25758
25759 [BZ #18822]
25760 * include/ifreq.h: New file.
25761 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25762 (__ifreq): Likewise.
25763 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25764 (__ifreq): Likewise.
25765
25766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25767
25768 [BZ #18822]
25769 * include/idna.h: New file.
25770 * inet/getnameinfo.c: Include <idna.h> instead of
25771 <libidn/idna.h>.
25772 (__idna_to_unicode_lzlz): Removed.
25773 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25774 <libidn/idna.h>.
25775 (__idna_to_ascii_lz): Removed.
25776 (__idna_to_unicode_lzlz): Likewise.
25777
25778 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25779
25780 [BZ #18822]
25781 * include/plural-exp.h: New file.
25782 * intl/plural-exp.c: Include <plural-exp.h> instead of
25783 "plural-exp.h".
25784
25785 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25786
25787 [BZ #18822]
25788 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25789 "getsourcefilter.h".
25790 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25791 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25792 "getsourcefilter.h".
25793 (__get_sol): Removed.
25794
25795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25796
25797 [BZ #18822]
25798 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25799 to ...
25800 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25801
25802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25803
25804 [BZ #18822]
25805 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25806 attribute_hidden.
25807
25808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 [BZ #18822]
25811 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25812
25813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25814
25815 [BZ #18822]
25816 * include/search.h (__tdestroy): Add libc_hidden_proto.
25817 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25818
25819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25820
25821 [BZ #18822]
25822 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25823
25824 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25825
25826 [BZ #18822]
25827 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25828 attribute_hidden.
25829
25830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 [BZ #18822]
25833 * include/signal.h (__kill): Add libc_hidden_proto.
25834 (__sigblock): Likewise.
25835 (__sigprocmask): Likewise.
25836 (__sigaltstack): Likewise.
25837 * signal/kill.c (__kill): Add libc_hidden_def.
25838 * signal/sigblock.c (__sigblock): Likewise.
25839 * signal/sigprocmask.c (__sigprocmask): Likewise.
25840 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25841 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25842 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25843 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25844 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25845 Likewise.
25846 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25847 Likewise.
25848 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25849 (__sigprocmask): Likewise.
25850 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25851 Likewise.
25852 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25853 (__sigprocmask): Likewise.
25854 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25855 Likewise.
25856
25857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25858
25859 [BZ #18822]
25860 * include/string.h (__strsep): Add libc_hidden_proto.
25861 * string/strsep.c (__strsep): Add libc_hidden_def.
25862
25863 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25864
25865 [BZ #18822]
25866 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25867 attribute_hidden.
25868 (__spawni): Likewise.
25869
25870 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25871
25872 [BZ #18822]
25873 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25874 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25875 libc_hidden_def.
25876
25877 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25878
25879 [BZ #18822]
25880 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25881
25882 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25883
25884 [BZ #18822]
25885 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25886 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25887 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25888 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25889 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25890 Likewise.
25891 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25892 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25893
25894 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25895
25896 [BZ #18822]
25897 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25898 (__dcigettext): Likewise.
25899
25900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25901
25902 [BZ #18822]
25903 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25904 libc_hidden_proto.
25905 (__get_nprocs): Likewise.
25906 (__get_phys_pages): Likewise.
25907 (__get_avphys_pages): Likewise.
25908 (__get_child_max): Add attribute_hidden.
25909 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25910 (__get_nprocs): Likewise.
25911 (__get_phys_pages): Likewise.
25912 (__get_avphys_pages): Likewise.
25913 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25914 libc_hidden_def.
25915 (__get_nprocs): Likewise.
25916 (__get_phys_pages): Likewise.
25917 (__get_avphys_pages): Likewise.
25918 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25919 libc_hidden_def.
25920 (__get_nprocs_conf): Likewise.
25921 (__get_phys_pages): Likewise.
25922 (__get_avphys_pages): Likewise.
25923
25924 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 [BZ #18822]
25927 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25928 attribute_hidden.
25929 (__netlink_close): Likewise.
25930 (__netlink_free_handle): Likewise.
25931 (__netlink_request): Likewise.
25932
25933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25934
25935 [BZ #18822]
25936 * include/rpc/rpc.h (__rpc_thread_variables): Add
25937 attribute_hidden.
25938 (__rpc_thread_svc_cleanup): Likewise.
25939 (__rpc_thread_clnt_cleanup): Likewise.
25940 (__rpc_thread_key_cleanup): Likewise.
25941
25942 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25943
25944 [BZ #18822]
25945 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25946 (__writev): Likewise.
25947 * misc/readv.c (__readv): Add libc_hidden_def.
25948 * misc/writev.c (__writev): Likewise.
25949 * sysdeps/posix/readv.c (__readv): Likewise.
25950 * sysdeps/posix/writev.c (__writev): Likewise.
25951 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25952 (__readv): Likewise.
25953 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25954 (__writev): Likewise.
25955
25956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25957
25958 [BZ #18822]
25959 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25960 (__regcomp): Add libc_hidden_proto.
25961 (__regexec): Likewise.
25962 (__regfree): Likewise.
25963 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25964 (__regfree): Likewise.
25965 * posix/regexec.c (__regexec): Likewise.
25966
25967 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25968
25969 [BZ #18822]
25970 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25971 (__getutent): Likewise.
25972 (__getutid): Likewise.
25973 (__getutline): Likewise.
25974 (__pututline): Likewise.
25975 (__getutent_r): Likewise.
25976 (__getutid_r): Likewise.
25977 (__getutline_r): Likewise.
25978 (__utmpname): Add attribute_hidden.
25979 (__setutent): Likewise.
25980 (__endutent): Likewise.
25981 * login/getutent.c (__getutent): Add libc_hidden_def.
25982 * login/getutent_r.c (__getutent_r): Likewise.
25983 (__pututline): Likewise.
25984 * login/getutid.c (__getutid): Likewise.
25985 * login/getutid_r.c (__getutid_r): Likewise.
25986 * login/getutline.c (__getutline): Likewise.
25987 * login/getutline_r.c (__getutline_r): Likewise.
25988 * login/updwtmp.c (__updwtmp): Likewise.
25989
25990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25991
25992 [BZ #18822]
25993 * include/dirent.h (__opendir): Always add attribute_hidden.
25994 (__fdopendir): Likewise.
25995 (__closedir): Likewise.
25996 (__readdir): Likewise.
25997 (__readdir64): Add libc_hidden_proto.
25998 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25999 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26000 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26001 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26002 New alias.
26003
26004 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26005
26006 [BZ #18822]
26007 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26008 * include/netdb.h (__gethostbyaddr_r): Likewise.
26009 (__gethostbyname_r): Likewise.
26010 (__gethostbyname2_r): Likewise.
26011 (__getnetbyaddr_r): Likewise.
26012 (__getnetbyname_r): Likewise.
26013 (__getservbyname_r): Likewise.
26014 (__getservbyport_r): Likewise.
26015 (__getprotobyname_r): Likewise.
26016 (__getprotobynumber_r): Likewise.
26017 (__getnetgrent_r): Likewise.
26018 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26019 (__getrpcbynumber_r): Likewise.
26020 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26021
26022 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26023
26024 [BZ #18822]
26025 * include/stdio.h (__fcloseall): Add attribute_hidden.
26026 (__getline): Likewise.
26027 (__path_search): Likewise.
26028 (__gen_tempname): Likewise.
26029 (__libc_message): Likewise.
26030 (__flockfile): Likewise.
26031 (__funlockfile): Likewise.
26032 (__fxprintf): Likewise.
26033 (__fxprintf_nocancel): Likewise.
26034
26035 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26036
26037 [BZ #18822]
26038 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26039 (__sgetsgent_r): Likewise.
26040
26041 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26042
26043 [BZ #18822]
26044 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26045 (__statfs64): Likewise.
26046 (__fstatfs64): Likewise.
26047 * include/sys/statvfs.h (__statvfs64): Likewise.
26048 (__fstatvfs64): Likewise.
26049 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26050 (__statfs_filesize_max): Likewise.
26051 (__statfs_symlinks): Likewise.
26052 (__statfs_chown_restricted): Likewise.
26053
26054 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26055
26056 [BZ #18822]
26057 * include/time.h (__tzstring): Add attribute_hidden.
26058 (__tzfile_read): Likewise.
26059 (__tzfile_compute): Likewise.
26060 (__tzfile_default): Likewise.
26061 (__tzset_parse_tz): Likewise.
26062 (__offtime): Likewise.
26063 (__asctime_r): Likewise.
26064 (__tzset): Likewise.
26065 (__tz_convert): Likewise.
26066 (__getdate_r): Likewise.
26067 (__getclktck): Likewise.
26068
26069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26070
26071 [BZ #18822]
26072 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26073 (__nscd_unmap): Likewise.
26074 (__nscd_cache_search): Likewise.
26075 (__nscd_get_nl_timestamp): Likewise.
26076 (__nscd_getpwnam_r): Likewise.
26077 (__nscd_getpwuid_r): Likewise.
26078 (__nscd_getgrnam_r): Likewise.
26079 (__nscd_getgrgid_r): Likewise.
26080 (__nscd_gethostbyname_r): Likewise.
26081 (__nscd_gethostbyname2_r): Likewise.
26082 (__nscd_gethostbyaddr_r): Likewise.
26083 (__nscd_getai): Likewise.
26084 (__nscd_getgrouplist): Likewise.
26085 (__nscd_getservbyname_r): Likewise.
26086 (__nscd_getservbyport_r): Likewise.
26087 (__nscd_innetgr): Likewise.
26088 (__nscd_setnetgrent): Likewise.
26089
26090 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 [BZ #18822]
26093 * include/gmp.h: Declare internal functions only if _ISOMAC is
26094 undefined.
26095 (__mpn_extract_double): Add attribute_hidden.
26096 (__mpn_extract_long_double): Likewise.
26097 (__mpn_extract_float128): Likewise.
26098 (__mpn_construct_float): Likewise.
26099 (__mpn_construct_double): Likewise.
26100 (__mpn_construct_long_double): Likewise.
26101 (__mpn_construct_float128): Likewise.
26102 (mpn_add_1): Likewise.
26103 (mpn_addmul_1): Likewise.
26104 (mpn_add_n): Likewise.
26105 (mpn_cmp): Likewise.
26106 (mpn_divrem): Likewise.
26107 (mpn_lshift): Likewise.
26108 (mpn_mul): Likewise.
26109 (mpn_mul_1): Likewise.
26110 (mpn_rshift): Likewise.
26111 (mpn_sub_1): Likewise.
26112 (mpn_submul_1): Likewise.
26113 (mpn_sub_n): Likewise.
26114
26115 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26116
26117 [BZ #18822]
26118 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26119 (__wcscat): Likewise.
26120 (__btowc): Likewise.
26121 (__wcrtomb): Likewise.
26122 (__mbsrtowcs): Likewise.
26123 (__wcsrtombs): Likewise.
26124 (__mbsnrtowcs): Likewise.
26125 (__wcsnrtombs): Likewise.
26126 (__wcsncpy): Likewise.
26127 (__wcpncpy): Likewise.
26128 (__wmemcpy): Likewise.
26129 (__wmempcpy): Likewise.
26130 (__wmemmove): Likewise.
26131 (__wcschrnul): Likewise.
26132 (__vfwscanf): Likewise.
26133 (__vswprintf): Likewise.
26134 (__fwprintf): Likewise.
26135 (__vfwprintf): Likewise.
26136
26137 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26138
26139 [BZ #18822]
26140 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26141 (__getgrgid_r): Likewise.
26142 (__getgrnam_r): Likewise.
26143 * include/pwd.h (__getpwuid_r): Likewise.
26144 (__getpwnam_r): Likewise.
26145 (__fgetpwent_r): Likewise.
26146 * include/shadow.h (__getspnam_r): Likewise.
26147 (__sgetspent_r): Likewise.
26148 (__fgetspent_r): Likewise.
26149
26150 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26151
26152 [BZ #18822]
26153 * include/unistd.h (__access): Add attribute_hidden.
26154 (__lseek64): Likewise.
26155 (__libc_pread64): Likewise.
26156 (__pipe2): Likewise.
26157 (__sleep): Likewise.
26158 (__chdir): Likewise.
26159 (__fchdir): Likewise.
26160 (__getcwd): Likewise.
26161 (__rmdir): Likewise.
26162 (__execvpe): Likewise.
26163 (__execve): Likewise.
26164 (__setsid): Likewise.
26165 (__getuid): Likewise.
26166 (__geteuid): Likewise.
26167 (__getgid): Likewise.
26168 (__getegid): Likewise.
26169 (__getgroups): Likewise.
26170 (__group_member): Likewise.
26171 (__ttyname_r): Likewise.
26172 (__isatty): Likewise.
26173 (__readlink): Likewise.
26174 (__unlink): Likewise.
26175 (__gethostname): Likewise.
26176 (__profil): Likewise.
26177 (__getdtablesize): Likewise.
26178 (__brk): Likewise.
26179 (__ftruncate): Likewise.
26180 (__ftruncate64): Likewise.
26181
26182 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26183
26184 [BZ #18822]
26185 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26186 * argp/argp-fs-xinl.c: Likewise.
26187 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26188 * argp/argp-parse.c: Include <argp.h>.
26189 * argp/argp-xinl.c: Likewise.
26190 * include/argp-fmtstream.h: New file.
26191 * include/argp.h (__argp_error): Add attribute_hidden.
26192 (__argp_failure): Likewise.
26193 (__argp_input): Likewise.
26194 (__argp_state_help): Likewise.
26195
26196 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26197
26198 [BZ #18822]
26199 * include/wchar.h (____wcstof_l_internal): New prototype.
26200 (____wcstod_l_internal): Likewise.
26201 (____wcstold_l_internal): Likewise.
26202 (____wcstol_l_internal): Likewise.
26203 (____wcstoul_l_internal): Likewise.
26204 (____wcstoll_l_internal): Likewise.
26205 (____wcstoull_l_internal): Likewise.
26206 (____wcstof128_l_internal): Likewise.
26207 * sysdeps/ieee754/float128/wcstof128.c
26208 (____wcstof128_l_internal): Removed.
26209 * sysdeps/ieee754/float128/wcstof128_l.c
26210 (____wcstof128_l_internal): Likewise.
26211 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26212 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26213 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26214 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26215 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26216 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26217 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26218 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26219 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26220 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26221
26222 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26223
26224 [BZ #18822]
26225 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26226 instead of <sys/statvfs.h>.
26227 (__internal_statvfs): Removed.
26228 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26229 instead of <sys/statvfs.h>.
26230 (__internal_statvfs64): Removed.
26231 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26232 "internal_statvfs.h" instead of <sys/statvfs.h>.
26233 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26234 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26235 instead of <sys/statvfs.h>.
26236 (__internal_statvfs): Removed.
26237 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26238 instead of <sys/statvfs.h>.
26239 (__internal_statvfs64): Removed.
26240
26241 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26242
26243 [BZ #18822]
26244 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26245 (__gconv_close): Likewise.
26246 (__gconv): Likewise.
26247 (__gconv_find_transform): Likewise.
26248 (__gconv_lookup_cache): Likewise.
26249 (__gconv_compare_alias_cache): Likewise.
26250 (__gconv_load_cache): Likewise.
26251 (__gconv_get_path): Likewise.
26252 (__gconv_close_transform): Likewise.
26253 (__gconv_release_cache): Likewise.
26254 (__gconv_find_shlib): Likewise.
26255 (__gconv_release_shlib): Likewise.
26256 (__gconv_get_builtin_trans): Likewise.
26257 (__gconv_compare_alias): Likewise.
26258 * include/dlfcn.h (_dlerror_run): Likewise.
26259 * include/stdio.h (__fortify_fail_abort): Likewise.
26260 * include/time.h (__tz_compute): Likewise.
26261 (__strptime_internal): Likewise.
26262 * intl/gettextP.h (_nl_find_domain): Likewise.
26263 (_nl_load_domain): Likewise.
26264 (_nl_find_msg): Likewise.
26265 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26266 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26267 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26268 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26269 (__gai_find_request): Likewise.
26270 (__gai_remove_request): Likewise.
26271 (__gai_notify): Likewise.
26272 (__gai_notify_only): Likewise.
26273 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26274 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26275 (_dl_non_dynamic_init): Likewise.
26276 (_dl_aux_init): Likewise.
26277 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26278 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26279 Likewise.
26280 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26281 (__wcsmbs_clone_conv): Likewise.
26282 (__wcsmbs_named_conv): Likewise.
26283
26284 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26285
26286 [BZ #18822]
26287 * include/stdlib.h (__random): Add attribute_hidden.
26288 (__random_r): Likewise.
26289 (__srandom_r): Likewise.
26290 (__initstate_r): Likewise.
26291 (__setstate_r): Likewise.
26292 (__erand48_r): Likewise.
26293 (__nrand48_r): Likewise.
26294 (__jrand48_r): Likewise.
26295 (__srand48_r): Likewise.
26296 (__seed48_r): Likewise.
26297 (__lcong48_r): Likewise.
26298 (__drand48_iterate): Likewise.
26299 (__setenv): Likewise.
26300 (__unsetenv): Likewise.
26301 (__clearenv): Likewise.
26302 (__ptsname_r): Likewise.
26303 (__posix_openpt): Likewise.
26304 (__add_to_environ): Likewise.
26305 (__realpath): Add libc_hidden_proto.
26306 (__ecvt_r): Likewise.
26307 (__fcvt_r): Likewise.
26308 (__qecvt_r): Likewise.
26309 (__qfcvt_r): Likewise.
26310 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26311 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26312
26313 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26314
26315 [BZ #18822]
26316 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26317 * include/time.h (__mktime_internal): Likewise.
26318 * libio/iolibio.h (__fopen_internal): Likewise.
26319
26320 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26321
26322 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26323 pointer in frame.
26324 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26325 Correct offset used to restore PIC register.
26326
26327 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26328
26329 [BZ libc/22165]
26330 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26331 code to load address of __getcontext_ret when generating PIC code.
26332
26333 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26334
26335 * elf/Makefile (tests-static-internal): Add
26336 tst-tls1-static-non-pie.
26337 (LDFLAGS-tst-tls1-static-non-pie): New.
26338 * elf/tst-tls1-static-non-pie.c: New file.
26339
26340 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26341
26342 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26343 (asinh): Define using libm_alias_double.
26344 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26345 (cbrt): Define using libm_alias_double.
26346 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26347 <libm-alias-double.h>.
26348 (copysign): Define using libm_alias_double.
26349 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26350 (erf): Define using libm_alias_double.
26351 (erfc): Likewise.
26352 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26353 (expm1): Define using libm_alias_double.
26354 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26355 (fabs): Define using libm_alias_double.
26356 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26357 libm_alias_double.
26358 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26359 <libm-alias-double.h>.
26360 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26361 libm_alias_double.
26362 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26363 <libm-alias-double.h>.
26364 (getpayload): Define using libm_alias_double.
26365 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26366 <libm-alias-double.h>.
26367 (llrint): Define using libm_alias_double.
26368 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26369 (lrint): Define using libm_alias_double.
26370 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26371 <libm-alias-double.h>.
26372 (nextup): Define using libm_alias_double.
26373 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26374 <libm-alias-double.h>.
26375 (roundeven): Define using libm_alias_double.
26376 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26377 libm_alias_double.
26378 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26379 <libm-alias-double.h>.
26380 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26381 using libm_alias_double.
26382 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26383 (cos): Define using libm_alias_double.
26384 (sin): Likewise.
26385 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26386 <libm-alias-double.h>.
26387 (sincos): Define using libm_alias_double.
26388 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26389 (tanh): Define using libm_alias_double.
26390 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26391 <libm-alias-double.h>.
26392 (totalorder): Define using libm_alias_double.
26393 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26394 <libm-alias-double.h>.
26395 (totalordermag): Define using libm_alias_double.
26396 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26397 libm_alias_double.
26398 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26399 libm_alias_double.
26400 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26401 <libm-alias-double.h>.
26402 (getpayload): Define using libm_alias_double.
26403 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26404 <libm-alias-double.h>.
26405 (roundeven): Define using libm_alias_double.
26406 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26407 <libm-alias-double.h>.
26408 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26409 <libm-alias-double.h>.
26410 (totalorder): Define using libm_alias_double.
26411 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26412 <libm-alias-double.h>.
26413 (totalordermag): Define using libm_alias_double.
26414 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26415 libc compat symbol here.
26416 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26417 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26418 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26419 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26420 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26421 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26422 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26423 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26424 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26425 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26426
26427 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26428
26429 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26430 _dl_relocate_static_pie instead of _dl_start to compute load
26431 address in static PIE. Return 0 if _DYNAMIC is undefined for
26432 static executable.
26433
26434 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26435
26436 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26437 _DYNAMIC is undefined for static executable.
26438
26439 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26440
26441 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26442
26443 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26444
26445 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26446
26447 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26448
26449 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26450 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26451 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26452 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26453 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26454 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26455 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26456 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26457 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26458 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26459 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26460 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26461 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26462 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26463 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26464 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26465 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26466
26467 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26468
26469 * math/bits/cmathcalls.h (cimag): Remove inline.
26470 (creal): Remove inline.
26471 (conj): Remove inline.
26472
26473 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26474
26475 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26476 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26477 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26478 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26479 (issignalingf_inline): Likewise.
26480 (POWF_LOG2_TABLE_BITS): Likewise.
26481 (POWF_LOG2_POLY_ORDER): Likewise.
26482 (POWF_SCALE_BITS): Likewise.
26483 (POWF_SCALE): Likewise.
26484 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26485 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26486 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26487
26488 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26489
26490 * math/Makefile (type-float-routines): Add e_log2f_data.
26491 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26492 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26493 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26494 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26495 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26496 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26497 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26498
26499 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26500
26501 * math/Makefile (type-float-routines): Add e_logf_data.
26502 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26503 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26504 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26505 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26506 * sysdeps/i386/fpu/e_logf_data.c: New file.
26507 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26508 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26509
26510 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26511
26512 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26513 undefined _DYNAMIC in PIE libc.a.
26514 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26515 Likewse.
26516
26517 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26518
26519 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26520 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26521 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26522 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26523 (__signbit): Remove.
26524 (__signbitl): Remove.
26525 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26526 (__signbit): Remove.
26527 (__signbitl): Remove.
26528 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26529 (__signbit): Remove.
26530 (__signbitl): Remove.
26531 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26532 (__signbit): Remove.
26533 (__signbitl): Remove.
26534 * sysdeps/tile/bits/mathinline.h: Delete file.
26535 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26536 (__signbit): Remove.
26537 (__signbitl): Remove.
26538
26539 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26540
26541 * math/math.h: Improve handling of C99 isgreater macros.
26542 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26543 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26544 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26545 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26546 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26547
26548 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26549
26550 * sysdeps/aarch64/libm-test-ulps: Update.
26551
26552 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26553
26554 [BZ #22225]
26555 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26556 math_opt_barrier on argument when doing arithmetic on it.
26557 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26558 Likewise. Use math_force_eval not math_opt_barrier after
26559 arithmetic.
26560 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26561 math_opt_barrier on argument when doing arithmetic on it.
26562 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26563 Likewise.
26564
26565 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26566
26567 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26568 libc_hidden_def.
26569 (__freeifaddrs): Likewise.
26570
26571 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26572
26573 * include/dirent.h (__dirfd): New declaration.
26574 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26575 alias.
26576 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26577 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26578 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26579 * include/unistd.h (__revoke): New declaration.
26580 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26581 alias.
26582 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26583 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26584 revoke.
26585 * include/dirent.h (__seekdir): New declaration.
26586 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26587 redefine as weak alias.
26588 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26589 of seekdir.
26590 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26591 and use libc_hidden_def on them.
26592 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26593 them.
26594 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26595 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26596 instead of getifaddrs and freeifaddrs.
26597
26598 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26599
26600 [BZ #18822]
26601 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26602 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26603 (__dso_handle): Remove declaration.
26604 * dlfcn/tstatexit.c (__dso_handle): Removed.
26605 (main): Don't check __dso_handle.
26606 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26607 (main): Don't check __dso_handle.
26608 * include/dso_handle.h: New file.
26609 * malloc/mtrace.c: Include <dso_handle.h>.
26610 (mtrace): Pass __dso_handle directly.
26611 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26612 (__dso_handle): Remove declaration.
26613 (__pthread_atfork): Pass __dso_handle directly.
26614 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26615 (__dso_handle): Removed.
26616 * posix/wordexp-test.c: Include <dso_handle.h>.
26617 (__dso_handle): Remove declaration.
26618 (__app_register_atfork): Pass __dso_handle directly.
26619 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26620 (__dso_handle): Remove declaration.
26621 (at_quick_exit): Pass __dso_handle directly.
26622 * stdlib/atexit.c: Include <dso_handle.h>.
26623 (__dso_handle): Remove declaration.
26624 (atexit): Pass __dso_handle directly.
26625 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26626 (__dso_handle): Removed.
26627
26628 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26629
26630 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26631 using VDSO.
26632
26633 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26634
26635 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26636 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26637 values to correct default value for given type.
26638
26639 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26640
26641 [BZ #22101]
26642 * elf/Makefile (tests): Add tst-debug1.
26643 ($(objpfx)tst-debug1): New.
26644 ($(objpfx)tst-debug1.out): Likewise.
26645 ($(objpfx)tst-debug1mod1.so): Likewise.
26646 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26647 with p_filesz == 0.
26648 * elf/tst-debug1.c: New file.
26649
26650 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26651
26652 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26653 Define using __ifunc.
26654
26655 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26656
26657 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26658 exp2f() values.
26659
26660 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26661
26662 [BZ #22156]
26663 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26664
26665 2017-09-26 Florian Weimer <fweimer@redhat.com>
26666
26667 * resolv/Makefile (tests-internal): Fix typo in comment.
26668
26669 2017-09-26 Florian Weimer <fweimer@redhat.com>
26670
26671 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26672
26673 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26674
26675 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26676 Use an union instead of a max_align_t array for __space,
26677 so that __space is the same size on all platforms.
26678 * malloc/scratch_buffer_grow_preserve.c
26679 (__libc_scratch_buffer_grow_preserve): Likewise.
26680
26681 [BZ #22183]
26682 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26683 version to 2.
26684 * posix/Makefile (routines): Add glob-lstat-compat and
26685 glob64-lstat-compat.
26686 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26687 * posix/glob-lstat-compat.c: New file.
26688 * posix/glob64-lstat-compat.c: Likewise.
26689 * posix/tst-glob_lstat_compat.c: Likewise.
26690 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26691 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26692 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26693 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26694 Likewise.
26695 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26696 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26697 * posix/glob.c (glob_lstat): New function.
26698 (glob): Rename to __glob and add versioned symbol to 2.27.
26699 (glob_in_dir): Use glob_lstat.
26700 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26701 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26703 2.27.
26704 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26705 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26706 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26707 gl_lstat on glob call.
26708 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26709 and glob64 symbols.
26710 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26711 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26712 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26714 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26715 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26723 Likewise.
26724 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26728 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26729 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26730 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26731 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26732 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26733 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26734 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26735 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26736
26737 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26738
26739 * configure.ac (AS): Require binutils 2.25 or later.
26740 * configure: Regenerated.
26741
26742 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26743
26744 [BZ #22207]
26745 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26746 VM size.
26747
26748 2017-09-25 DJ Delorie <dj@redhat.com>
26749
26750 [BZ #22161]
26751 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26752 resetting timeout.
26753
26754 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26755
26756 * sysdeps/ieee754/dbl-64/sincos32.h
26757 [SINCCOS32_H]: Remove define.
26758 [SINCOS32_H]: Define.
26759
26760 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26761
26762 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26763 (exp2f): Likewise.
26764 * math/w_exp2f.c: New file.
26765 * math/w_expf.c: New file.
26766 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26767 * math/w_expf_compat.c (__expf_compat): Likewise.
26768 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26769 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26770 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26771 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26772 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26773 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26774 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26775 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26776 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26777 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26778 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26779 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26780 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26781 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26783 Likewise.
26784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26785 Likewise.
26786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26787 Likewise.
26788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26789 Likewise.
26790 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26791 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26792 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26793 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26794 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26795 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26796 Likewise.
26797 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26798 Likewise.
26799 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26800 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26801 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26802
26803 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26804
26805 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26806 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26807 (roundtoint, converttoint): Likewise.
26808 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26809 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26810 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26811 * sysdeps/ieee754/flt-32/math_config.h: New file.
26812 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26813 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26814 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26815 * sysdeps/i386/fpu/math_errf.c: New file.
26816 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26817 * sysdeps/ia64/fpu/math_errf.c: New file.
26818 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26819 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26820
26821 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26822
26823 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26824 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26825 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26826 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26827 to make sure that these symbols are defined.
26828 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26829 of <limits.h>
26830 (__need_NULL): Do not define.
26831 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26832 alignment.
26833 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26834 CMGROUP_MAX, cmsgcred): Do not define.
26835 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26836 NULL.
26837 * bits/socket.h: Likewise.
26838 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26839 __gettimeofday instead of gettimeofday.
26840 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26841 instead of settimeofday.
26842
26843 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26844
26845 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26846 (asinhf): Define using libm_alias_float.
26847 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26848 (atanf): Define using libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26850 (cbrtf): Define using libm_alias_float.
26851 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26852 (ceilf): Define using libm_alias_float.
26853 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26854 <libm-alias-float.h>.
26855 (copysignf): Define using libm_alias_float.
26856 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26857 (cosf): Define using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26859 (erff): Define using libm_alias_float.
26860 (erfcf): Likewise.
26861 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26862 (expm1f): Define using libm_alias_float.
26863 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26864 (fabsf): Define using libm_alias_float.
26865 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26866 (floorf): Define using libm_alias_float.
26867 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26868 (frexpf): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26870 libm_alias_float.
26871 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26872 <libm-alias-float.h>.
26873 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26874 libm_alias_float.
26875 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26876 <libm-alias-float.h>.
26877 (getpayloadf): Define using libm_alias_float.
26878 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26879 <libm-alias-float.h>.
26880 (llrintf): Define using libm_alias_float.
26881 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26882 <libm-alias-float.h>.
26883 (llroundf): Define using libm_alias_float.
26884 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26885 (logbf): Define using libm_alias_float.
26886 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26887 (lrintf): Define using libm_alias_float.
26888 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26889 (lroundf): Define using libm_alias_float.
26890 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26891 (modff): Define using libm_alias_float.
26892 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26893 <libm-alias-float.h>.
26894 (nearbyintf): Define using libm_alias_float.
26895 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26896 <libm-alias-float.h>.
26897 (nextafterf): Define using libm_alias_float.
26898 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26899 <libm-alias-float.h>.
26900 (nextupf): Define using libm_alias_float.
26901 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26902 <libm-alias-float.h>.
26903 (remquof): Define using libm_alias_float.
26904 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26905 (rintf): Define using libm_alias_float.
26906 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26907 <libm-alias-float.h>.
26908 (roundevenf): Define using libm_alias_float.
26909 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26910 (roundf): Define using libm_alias_float.
26911 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26912 using libm_alias_float.
26913 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26914 <libm-alias-float.h>.
26915 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26916 Define using libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26918 <libm-alias-float.h>.
26919 (sincosf): Define using libm_alias_float.
26920 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26921 (sinf): Define using libm_alias_float.
26922 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26923 (tanf): Define using libm_alias_float.
26924 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26925 (tanhf): Define using libm_alias_float.
26926 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26927 <libm-alias-float.h>.
26928 (totalorderf): Define using libm_alias_float.
26929 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26930 <libm-alias-float.h>.
26931 (totalordermagf): Define using libm_alias_float.
26932 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26933 (truncf): Define using libm_alias_float.
26934 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26935 libm_alias_float.
26936 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26937 libm_alias_float.
26938
26939 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26940
26941 [BZ #22146]
26942 math/math.h: Let fpclassify use the builtin in C++ mode, even
26943 when optimazing for size.
26944
26945 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26946
26947 * csu/Makefile (generated): Do not add version-info.h.
26948 (before-compile): Likewise.
26949 (all-Banner-files): Remove variable.
26950 ($(objpfx)version-info.h): Remove rule.
26951 * csu/version.c (banner): Do not include "version-info.h".
26952 * libidn/Banner: Remove.
26953 * manual/contrib.texi (Simon Josefsson): New entry.
26954
26955 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26956
26957 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26958 Remove conditionals on LDBL_MANT_DIG.
26959 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26960 (__ieee754_lgammal_r): Likewise.
26961
26962 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26963
26964 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26965 _Float128 and L().
26966 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26967 _Float128 and L(). Replace _Float128 with long double and L(x)
26968 with xL, throughout the file.
26969 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26970 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26971 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26972 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26973
26974 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26975
26976 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26977 sysdeps/ieee754/ldbl-128ibm.
26978 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26979 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26980 of including it. Keep _Float128 and L() intact. These will be
26981 reviewed by a separate patch.
26982 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26983 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26984 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26985 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26986
26987 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26988
26989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26990 (__finitef128): Define to __redirect___finitef128.
26991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26992 (__isinff128): Define to __redirect___isinff128.
26993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26994 (__isnanf128): Define to __redirect___isnanf128.
26995
26996 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26997
26998 * sysdeps/powerpc/powerpc64le/Makefile
26999 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27000 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27001
27002 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27003 Carlos O'Donell <carlos@redhat.com>
27004
27005 [BZ #22180]
27006 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27007 * stdlib/test-dlclose-exit-race.c: New file.
27008 * stdlib/test-dlclose-exit-race-helper.c: New file.
27009 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27010
27011 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27012
27013 * crypt/Banner: Remove file.
27014 * nptl/Banner: Likewise.
27015 * resolv/Banner: Likewise.
27016 * soft-fp/Banner: Likewise.
27017 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27018 ($(objpfx)version.d): Remove dependency on banner.h.
27019 ($(objpfx)version.os): Likewise.
27020 * nptl/version.c (banner): Do not include banner.h.
27021 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27022 Jelinek and BIND code.
27023
27024 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27025 Carlos O'Donell <carlos@redhat.com>
27026
27027 * support/xdlfcn.h: New file.
27028 * support/xdlfcn.c: New file.
27029 * support/Makefile (libsupport-routines): Add xdlfcn.
27030 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27031
27032 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27033
27034 [BZ #20142]
27035 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27036 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27037 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27038 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27039 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27040 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27041 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27042 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27043
27044 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27045 Ricky Zhou <rickyz@google.com>
27046 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27047
27048 [BZ #14333]
27049 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27050 Remove atomics.
27051 (__new_exitfn): Fail registration when we finished at_exit processing.
27052 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27053 * stdlib/on_exit.c (__on_exit): Likewise.
27054 * stdlib/exit.c (__exit_funcs_done): New variable.
27055 (__run_exit_handlers): Use __exit_funcs_lock.
27056 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27057 declarations.
27058 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27059 (test-cxa_atexit-race, test-on_exit-race): New tests.
27060 * stdlib/test-atexit-race-common.c: New file.
27061 * stdlib/test-atexit-race.c: New file.
27062 * stdlib/test-at_quick_exit-race.c: New file.
27063 * stdlib/test-cxa_atexit-race.c: New file.
27064 * stdlib/test-on_exit-race.c: New file.
27065
27066 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27067
27068 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27069 * benchtests/exp2f-inputs: Copy of expf-inputs.
27070 * benchtests/log2f-inputs: Copy of logf-inputs.
27071
27072 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27073
27074 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27075 Explicitly take address of first element of array arguments in
27076 call to INLINE_SYSCALL.
27077
27078 2017-09-19 Andreas Schwab <schwab@suse.de>
27079
27080 [BZ #22134]
27081 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27082 execveat first.
27083 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27084 unimplemented.
27085 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27086 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27087 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27088 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27089 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27090 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27091 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27092 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27093 * posix/Makefile (tests): Add tst-fexecve.
27094 * posix/tst-fexecve.c: New file.
27095
27096 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27097
27098 * benchtests/Makefile: Add logf benchmark.
27099 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27100
27101 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27102
27103 * benchtests/Makefile: Add expf benchmark.
27104 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27105
27106 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27107
27108 * csu/Makefile: Add -funwind-tables to libc-start.c.
27109 * debug/Makefile: Add -funwind-tables to backtrace.c.
27110 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27111 * sysdeps/arm/Makefile: Likewise.
27112 * sysdeps/i386/Makefile: Likewise.
27113 * sysdeps/m68k/Makefile: Likewise.
27114 * sysdeps/mips/Makefile: Likewise.
27115 * sysdeps/nios2/Makefile: Likewise.
27116 * sysdeps/sh/Makefile: Likewise.
27117 * sysdeps/sparc/Makefile: Likewise.
27118
27119 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27120
27121 * benchtests/Makefile (bench-math): Add trunc and truncf.
27122 (CFLAGS-bench-trunc.c): New variable.
27123 (CFLAGS-bench-truncf.c): Likewise.
27124 * benchtests/trunc-inputs: New file.
27125 * benchtests/truncf-inputs: Likewise.
27126
27127 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27128
27129 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27130
27131 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27132
27133 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27134 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27135 redefine.
27136 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27137 (exp10l): Define as weak alias.
27138 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27139 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27140 and redefine.
27141 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27142 (remainderl): Define as weak alias.
27143
27144 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27145 (fmal): Define using libm_alias_ldouble.
27146 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27147 (acoshl): Define using libm_alias_ldouble.
27148 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27149 (acosl): Define using libm_alias_ldouble.
27150 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27151 (asinl): Define using libm_alias_ldouble.
27152 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27153 (atan2l): Define using libm_alias_ldouble.
27154 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27155 (atanhl): Define using libm_alias_ldouble.
27156 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27157 (coshl): Define using libm_alias_ldouble.
27158 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27159 (exp10l): Define using libm_alias_ldouble.
27160 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27161 (exp2l): Define using libm_alias_ldouble.
27162 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27163 (expl): Define using libm_alias_ldouble.
27164 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27165 (fmodl): Define using libm_alias_ldouble.
27166 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27167 (hypotl): Define using libm_alias_ldouble.
27168 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27169 (j0l): Define using libm_alias_ldouble.
27170 (y0l): Likewise.
27171 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27172 (j1l): Define using libm_alias_ldouble.
27173 (y1l): Likewise.
27174 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27175 (jnl): Define using libm_alias_ldouble.
27176 (ynl): Likewise.
27177 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27178 (log10l): Define using libm_alias_ldouble.
27179 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27180 (log2l): Define using libm_alias_ldouble.
27181 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27182 (logl): Define using libm_alias_ldouble.
27183 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27184 (powl): Define using libm_alias_ldouble.
27185 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27186 (remainderl): Define using libm_alias_ldouble.
27187 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27188 (sinhl): Define using libm_alias_ldouble.
27189 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27190 (sqrtl): Define using libm_alias_ldouble.
27191 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27192 (tgammal): Define using libm_alias_ldouble.
27193 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27194 (exp10l): Do not use long_double_symbol here.
27195 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27196 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27197 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27198 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27199 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27200 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27201 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27202 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27203 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27204 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27205 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27206 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27207 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27208 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27209 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27210 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27211 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27212 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27213 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27214 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27215 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27216 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27217
27218 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27219
27220 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27221 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27222
27223 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27224
27225 * io/read.c (read): Add libc_hidden_weak.
27226 * sysdeps/mach/hurd/read.c (read): Likewise.
27227 * io/write.c (write): Likewise.
27228 * sysdeps/mach/hurd/write.c (write): Likewise.
27229 * io/pread64.c (__pread64): Likewise.
27230 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27231 * posix/pread64.c (__pread64): Add libc_hidden_def.
27232
27233 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27234
27235 * benchtests/scripts/compare_strings.py: New option -g.
27236 (draw_graph): Print a message that a graph is being generated.
27237 (process_results): Generate graph only if -g is passed.
27238 (main): Process option -g.
27239
27240 * benchtests/scripts/compare_strings.py (process_results):
27241 Better spacing for output.
27242
27243 * benchtests/scripts/compare_strings.py: Use argparse.
27244 * benchtests/README: Document existence of compare_strings.py.
27245
27246 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27247
27248 * math/s_fma.c: Include <libm-alias-double.h>.
27249 (fma): Define using libm_alias_double.
27250 * math/s_nextafter.c: Include <libm-alias-double.h>.
27251 (nextafter): Define using libm_alias_double.
27252 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27253 (acos): Define using libm_alias_double.
27254 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27255 (aocsh): Define using libm_alias_double.
27256 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27257 (asin): Define using libm_alias_double.
27258 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27259 (atan2): Define using libm_alias_double.
27260 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27261 (atanh): Define using libm_alias_double.
27262 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27263 (cosh): Define using libm_alias_double.
27264 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27265 (exp10): Define using libm_alias_double.
27266 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27267 (exp2): Define using libm_alias_double.
27268 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27269 (exp): Define using libm_alias_double.
27270 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27271 (fmod): Define using libm_alias_double.
27272 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27273 (hypot): Define using libm_alias_double.
27274 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27275 (j0): Define using libm_alias_double.
27276 (y0): Likewise.
27277 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27278 (j1): Define using libm_alias_double.
27279 (y1): Likewise.
27280 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27281 (jn): Define using libm_alias_double.
27282 (yn): Likewise.
27283 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27284 (log10): Define using libm_alias_double.
27285 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27286 (log2): Define using libm_alias_double.
27287 * math/w_log_compat.c: Include <libm-alias-double.h>.
27288 (log): Define using libm_alias_double.
27289 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27290 (pow): Define using libm_alias_double.
27291 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27292 (remainder): Define using libm_alias_double.
27293 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27294 (sinh): Define using libm_alias_double.
27295 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27296 (sqrt): Define using libm_alias_double.
27297 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27298 (tgamma): Define using libm_alias_double.
27299 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27300 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27301 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27302 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27303 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27304 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27305 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27306 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27307 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27308 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27309 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27310 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27311 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27312 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27313 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27314 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27315 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27316 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27317 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27318 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27319 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27320 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27321 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27322 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27323 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27324
27325 * math/e_acoshl.c: Remove.
27326 * math/e_acosl.c: Likewise.
27327 * math/e_asinl.c: Likewise.
27328 * math/e_atan2l.c: Likewise.
27329 * math/e_atanhl.c: Likewise.
27330 * math/e_coshl.c: Likewise.
27331 * math/e_expl.c: Likewise.
27332 * math/e_fmodl.c: Likewise.
27333 * math/e_gammal_r.c: Likewise.
27334 * math/e_hypotl.c: Likewise.
27335 * math/e_j0l.c: Likewise.
27336 * math/e_j1l.c: Likewise.
27337 * math/e_jnl.c: Likewise.
27338 * math/e_lgammal_r.c: Likewise.
27339 * math/e_log10l.c: Likewise.
27340 * math/e_log2l.c: Likewise.
27341 * math/e_logl.c: Likewise.
27342 * math/e_powl.c: Likewise.
27343 * math/e_rem_pio2l.c: Likewise.
27344 * math/e_sinhl.c: Likewise.
27345 * math/e_sqrtf128.c: Likewise.
27346 * math/e_sqrtl.c: Likewise.
27347 * math/k_cosl.c: Likewise.
27348 * math/k_sinl.c: Likewise.
27349 * math/k_tanl.c: Likewise.
27350 * math/s_asinhl.c: Likewise.
27351 * math/s_atanl.c: Likewise.
27352 * math/s_cbrtl.c: Likewise.
27353 * math/s_erfl.c: Likewise.
27354 * math/s_expm1l.c: Likewise.
27355 * math/s_log1pl.c: Likewise.
27356 * math/s_tanhl.c: Likewise.
27357
27358 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27359
27360 [BZ #21745]
27361 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27362 [$(subdir) = math] (sysdep_calls): New variable. Has the
27363 previous contents of sysdep_routines, but re-sorted..
27364 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27365 sysdep_calls.
27366 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27367 defined in sysdep_calls and replace by the respective m_* names.
27368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27369 (compat_symbol): Undefine to avoid duplicated compat symbols in
27370 libc.
27371
27372 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27373
27374 * math/s_fmaf.c: Include <libm-alias-float.h>.
27375 (fmaf): Define using libm_alias_float.
27376 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27377 (acosf): Define using libm_alias_float.
27378 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27379 (acoshf): Define using libm_alias_float.
27380 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27381 (asinf): Define using libm_alias_float.
27382 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27383 (atan2f): Define using libm_alias_float.
27384 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27385 (atanhf): Define using libm_alias_float.
27386 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27387 (coshf): Define using libm_alias_float.
27388 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27389 (exp10f): Define using libm_alias_float.
27390 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27391 (fmodf): Define using libm_alias_float.
27392 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27393 (hypotf): Define using libm_alias_float.
27394 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27395 (j0f): Define using libm_alias_float.
27396 (y0f): Likewise.
27397 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27398 (j1f): Define using libm_alias_float.
27399 (y1f): Likewise.
27400 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27401 (jnf): Define using libm_alias_float.
27402 (ynf): Likewise.
27403 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27404 (log10f): Define using libm_alias_float.
27405 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27406 (log2f): Define using libm_alias_float.
27407 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27408 (logf): Define using libm_alias_float.
27409 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27410 (powf): Define using libm_alias_float.
27411 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27412 (remainderf): Define using libm_alias_float.
27413 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27414 (sinhf): Define using libm_alias_float.
27415 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27416 (sqrtf): Define using libm_alias_float.
27417 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27418 (tgammaf): Define using libm_alias_float.
27419
27420 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27421
27422 * include/math.h (roundeven): Change hidden_proto call to
27423 __roundeven.
27424 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27425 alias.
27426 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27427 (y0): Rename to __y0 and define as weak alias.
27428 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27429 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27430 alias.
27431 (y0f): Rename to __y0f and define as weak alias.
27432 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27433 alias.
27434 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27435 (y1): Rename to __y1 and define as weak alias.
27436 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27437 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27438 alias.
27439 (y1f): Rename to __y1f and define as weak alias.
27440 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27441 alias.
27442 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27443 (yn): Rename to __yn and define as weak alias.
27444 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27445 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27446 alias.
27447 (ynf): Rename to __ynf and define as weak alias.
27448 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27449 (fromfp): Define as weak alias.
27450 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27451 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27452 (fromfpx): Define as weak alias.
27453 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27454 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27455 __getpayload and define as weak alias.
27456 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27457 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27458 __roundeven and define as weak alias.
27459 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27460 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27461 __setpayload.
27462 (setpayload): Define as weak alias.
27463 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27464 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27465 __setpayloadsig.
27466 (setpayloadsig): Define as weak alias.
27467 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27468 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27469 __totalorder and define as weak alias.
27470 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27471 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27472 to __totalordermag and define as weak alias.
27473 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27474 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27475 (ufromfp): Define as weak alias.
27476 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27477 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27478 __ufromfpx.
27479 (ufromfpx): Define as weak alias.
27480 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27481 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27482 Rename to __getpayload and define as weak alias.
27483 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27484 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27485 Rename to __roundeven and define as weak alias.
27486 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27487 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27488 Rename to __totalorder and define as weak alias.
27489 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27490 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27491 (totalordermag): Rename to __totalordermag and define as weak
27492 alias.
27493 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27494 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27495 macro.
27496 (__roundevenl): Likewise.
27497 (__totalorderl): Likewise.
27498 (__totalordermagl): Likewise
27499 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27500 __fromfpf128.
27501 (fromfpf128): Define as weak alias.
27502 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27503 __fromfpxf128.
27504 (fromfpxf128): Define as weak alias.
27505 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27506 __setpayloadf128.
27507 (setpayloadf128): Define as weak alias.
27508 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27509 __setpayloadsigf128.
27510 (setpayloadsigf128): Define as weak alias.
27511 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27512 __ufromfpf128.
27513 (ufromfpf128): Define as weak alias.
27514 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27515 __ufromfpxf128.
27516 (ufromfpxf128): Define as weak alias.
27517 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27518 (fromfpf): Define as weak alias.
27519 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27520 __fromfpxf.
27521 (fromfpxf): Define as weak alias.
27522 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27523 __getpayloadf and define as weak alias.
27524 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27525 __roundevenf and define as weak alias.
27526 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27527 __setpayloadf.
27528 (setpayloadf): Define as weak alias.
27529 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27530 __setpayloadsigf.
27531 (setpayloadsigf): Define as weak alias.
27532 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27533 __totalorderf and define as weak alias.
27534 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27535 Rename to __totalordermagf and define as weak alias.
27536 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27537 __ufromfpf.
27538 (ufromfpf): Define as weak alias.
27539 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27540 __ufromfpxf.
27541 (ufromfpxf): Define as weak alias.
27542 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27543 __fromfpl.
27544 (fromfpl): Define as weak alias.
27545 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27546 __fromfpxl.
27547 (fromfpxl): Define as weak alias.
27548 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27549 to __getpayloadl and define as weak alias.
27550 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27551 __roundevenl and define as weak alias.
27552 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27553 __setpayloadl.
27554 (setpayloadl): Define as weak alias.
27555 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27556 __setpayloadsigl.
27557 (setpayloadsigl): Define as weak alias.
27558 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27559 to __totalorderl and define as weak alias.
27560 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27561 Rename to __totalordermagl and define as weak alias.
27562 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27563 __ufromfpl.
27564 (ufromfpl): Define as weak alias.
27565 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27566 __ufromfpxl.
27567 (ufromfpxl): Define as weak alias.
27568 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27569 __fromfpl.
27570 (fromfpl): Define as weak alias.
27571 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27572 __fromfpxl.
27573 (fromfpxl): Define as weak alias.
27574 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27575 Rename to __getpayloadl and define as weak alias.
27576 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27577 to __roundevenl and define as weak alias. Call __roundeven
27578 instead of roundeven.
27579 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27580 __setpayloadl.
27581 (setpayloadl): Define as weak alias.
27582 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27583 __setpayloadsigl.
27584 (setpayloadsigl): Define as weak alias.
27585 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27586 Rename to __totalorderl and define as weak alias.
27587 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27588 Rename to __totalordermagl and define as weak alias.
27589 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27590 __ufromfpl.
27591 (ufromfpl): Define as weak alias.
27592 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27593 __ufromfpxl.
27594 (ufromfpxl): Define as weak alias.
27595 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27596 __fromfpl.
27597 (fromfpl): Define as weak alias.
27598 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27599 __fromfpxl.
27600 (fromfpxl): Define as weak alias.
27601 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27602 __getpayloadl and define as weak alias.
27603 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27604 __roundevenl and define as weak alias.
27605 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27606 __setpayloadl.
27607 (setpayloadl): Define as weak alias.
27608 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27609 __setpayloadsigl.
27610 (setpayloadsigl): Define as weak alias.
27611 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27612 __totalorderl and define as weak alias.
27613 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27614 Rename to __totalordermagl and define as weak alias.
27615 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27616 __ufromfpl.
27617 (ufromfpl): Define as weak alias.
27618 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27619 __ufromfpxl.
27620 (ufromfpxl): Define as weak alias.
27621
27622 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27623
27624 * benchtests/bench-string.h (realloc_bufs): New function.
27625 (test_init): Call it.
27626 * benchtests/bench-memset-large.c (do_test): Likewise.
27627 * benchtests/bench-memset.c (do_test): Likewise.
27628
27629 * benchtests/bench-memset-large.c: Print output in JSON
27630 format.
27631 * benchtests/bench-memset.c: Likewise.
27632
27633 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27634
27635 [BZ #21084]
27636 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27637 * iconvdata/Makefile: Add IBM858.
27638 * iconvdata/gconv-modules: Likewise.
27639 * iconvdata/tst-tables.sh: Likewise.
27640 * iconvdata/ibm858.c: New file.
27641 * localedata/charmaps/IBM858: Likewise.
27642
27643 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27644
27645 [BZ #22023]
27646 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27647 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27648
27649 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27650
27651 [BZ #22112]
27652 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27653 and add tel_int_fmt.
27654
27655 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27656
27657 * sysdeps/generic/libm-alias-float128.h: New file.
27658 * sysdeps/generic/math-type-macros-float128.h: Include
27659 <libm-alias-float128.h>.
27660 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27661
27662 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27663
27664 * sysdeps/generic/libm-alias-ldouble.h: New file.
27665 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27666 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27667 * sysdeps/generic/math-type-macros-ldouble.h: Include
27668 <libm-alias-ldouble.h>.
27669 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27670 libm_alias_ldouble.
27671
27672 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27673
27674 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27675 * math/w_exp_compat.c: ... here.
27676 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27677 * math/w_expf_compat.c: ... here.
27678 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27679 * math/w_expl_compat.c: ... here.
27680 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27681 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27682 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27683 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27684
27685 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27686
27687 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27688 redefine.
27689 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27690 macro.
27691 (ldexpl): Only define as compat symbol for libc, not libm.
27692 (scalbnl): Define as compat symbol for libc here.
27693 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27694 define for [IS_IN (libc)].
27695 (__ldexpl_2): Remove alias.
27696 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27697 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27698 name in long_double_symbol call.
27699 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27700 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27701 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27702 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27703 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27704 Remove macro.
27705 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27706 Define as compat symbol.
27707
27708 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27709
27710 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27711 * sysdeps/unix/sysv/linux/alpha/Makefile
27712 [$(subdir) = csu] (sysdep_routines): Remove rule.
27713
27714 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27715
27716 * sysdeps/generic/libm-alias-double.h: New file.
27717 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27718 * sysdeps/generic/math-type-macros-double.h: Include
27719 <libm-alias-double.h>.
27720 [declare_mgen_alias] (declare_mgen_alias): Define to use
27721 libm_alias_double.
27722 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27723 (M_LIBM_NEED_COMPAT): Remove macro.
27724 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27725 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27726 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27727 code.
27728 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27729 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27730 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27731 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27732 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27733 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27734 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27735 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27736 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27737 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27738 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27739 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27740 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27741 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27742 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27743 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27744 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27745 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27746 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27747 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27748 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27749 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27750 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27751 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27752 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27753 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27754 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27755 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27756 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27757 macro.
27758 (declare_mgen_alias): New macro.
27759 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27760 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27762 (M_LIBM_NEED_COMPAT): Remove macro.
27763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27764 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27765 <first-versions.h>.
27766 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27767 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27768
27769 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27770
27771 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27772 (declare_mgen_alias_2): Remove.
27773 * sysdeps/generic/math-type-macros-double.h
27774 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27775 Likewise.
27776 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27777 alias.
27778 (ldexp): Define with declare_mgen_alias.
27779 (scalbn): Likewise.
27780
27781 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27782
27783 * grp/initgroups.c: Include config.h.
27784 (DEFAULT_CONFIG): New macro.
27785 (internal_getgrouplist): Use DEFAULT_CONFIG.
27786 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27787 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27788 (DEFAULT_DEFCONFIG): New macro.
27789 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27790 * nss/grp-lookup.c: Include config.h
27791 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27792 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27793 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27794 * manual/nss.texi: Update default values section.
27795
27796 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27797
27798 [BZ #21967]
27799 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27800 New.
27801 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27802 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27803 Handle MathVec_Prefer_No_AVX512.
27804 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27805 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27806 is set.
27807
27808 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27809
27810 * posix/sched_primax.c (__sched_get_priority_max): Add
27811 libc_hidden_def.
27812 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27813 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27814 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27815 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27816 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27817 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27818 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27819 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27820 Add aliases.
27821
27822 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27823
27824 * sysdeps/generic/libm-alias-float.h: New file.
27825 * sysdeps/generic/math-type-macros-float.h: Include
27826 <libm-alias-float.h>.
27827 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27828
27829 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27830
27831 [BZ #22093]
27832 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27833 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27834 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27835 (HWCAP_IMPORTANT): Likewise.
27836 (HWCAP_X86_64): New enum.
27837 (HWCAP_X86_AVX512_1): Updated.
27838 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27839 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27840 (modules-names): Add x86_64/tst-x86_64mod-1.
27841 (LDFLAGS-tst-x86_64mod-1.so): New.
27842 ($(objpfx)tst-x86_64-1): Likewise.
27843 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27844 (tst-x86_64-1-clean): Likewise.
27845 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27846 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27847
27848 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27849
27850 * po/sv.po: Update translations.
27851 * po/fr.po: Likewise.
27852
27853 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27854
27855 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27856 seconds.
27857 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27858 seconds.
27859 * elf/rtld-Rules: Fix $(error) use.
27860
27861 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27862
27863 [BZ #14925]
27864 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27865 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27866 * localedata/locales/bn_BD: “Bengali” was still used in some
27867 comments. Change it to “Bangla”.
27868
27869 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27870
27871 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27872
27873 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27874
27875 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27876 thunderx2t99p1 to list of cpu names.
27877 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27878 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27879
27880 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27881
27882 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27883 Use strcmp instead of tunable_is_name.
27884
27885 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27886
27887 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27888 (F_GET_RW_HINT): New macro.
27889 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27890 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27891 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27892 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27893 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27894 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27895 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27896 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27897 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27898
27899 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27900 (F_ADD_SEALS): New macro.
27901 [__USE_GNU] (F_GET_SEALS): Likewise.
27902 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27903 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27904 [__USE_GNU] (F_SEAL_GROW): Likewise.
27905 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27906
27907 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27908
27909 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27910 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27911 * posix/glob_internal.h (__glob_pattern_type):
27912 * posix/glob.c (glob):
27913 * posix/glob_pattern_p.c (__glob_pattern_p):
27914 Use them.
27915
27916 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27917 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27918 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27919 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27920 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27922 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27923 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27924 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27925 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27926 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27927 * sysdeps/wordsize-64/glob.c: Likewise.
27928 * sysdeps/wordsize-64/glob64.c: Likewise.
27929 * sysdeps/wordsize-64/globfree.c: Likewise.
27930 * sysdeps/wordsize-64/globfree64.c: Likewise.
27931 * sysdeps/unix/sysv/linux/glob.c: New file.
27932 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27933 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27934 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27935 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27936 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27937 adds !GLOB_NO_OLD_VERSION as an extra condition.
27938 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27939 using relative path instead of absolute one.
27940 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27941 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27942 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27943 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27944 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27945 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27946
27947 [BZ #1062]
27948 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27949 (glob): Use the same scratch buffer for both getlogin_r and
27950 getpwnam_r. Don’t require preallocation of the login name. This
27951 simplifies storage allocation, and corrects the handling of
27952 long login names.
27953
27954 [BZ #1062]
27955 * posix/glob.c (glob): Port recent patches to platforms
27956 lacking getpwnam_r.
27957 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27958 returns an error number rather than setting errno.
27959
27960 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27961 instead of GCC extension.
27962 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27963 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27964 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27965
27966 [BZ #866]
27967 [BZ #1062]
27968 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27969 * posix/bug-glob1.c: Remove file.
27970 * posix/tst-glob_symlinks.c: New file.
27971 * posix/glob.c (__lstat64): New macro.
27972 (is_dir): New function.
27973 (glob, glob_in_dir): Match symlinks even if they are dangling.
27974 (link_stat, link_exists_p): Remove. All uses removed.
27975
27976 [BZ #1062]
27977 [BZ #19971]
27978 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27979 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27980 All uses removed.
27981
27982 [BZ #1062]
27983 CVE-2017-15671
27984 * posix/Makefile (routines): Add globfree, globfree64, and
27985 glob_pattern_p.
27986 * posix/flexmember.h: New file.
27987 * posix/glob_internal.h: Likewise.
27988 * posix/glob_pattern_p.c: Likewise.
27989 * posix/globfree.c: Likewise.
27990 * posix/globfree64.c: Likewise.
27991 * sysdeps/gnu/globfree64.c: Likewise.
27992 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27993 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27994 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27995 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27996 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27997 * sysdeps/wordsize-64/globfree.c: Likewise.
27998 * sysdeps/wordsize-64/globfree64.c: Likewise.
27999 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28000 [NDEBUG): Remove comments.
28001 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28002 (dirent_type): New type. Use uint_fast8_t not
28003 uint8_t, as C99 does not require uint8_t.
28004 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28005 (struct readdir_result): Use dirent_type. Do not define skip_entry
28006 unless it is needed; this saves a byte on platforms lacking d_ino.
28007 (readdir_result_type, readdir_result_skip_entry):
28008 New functions, replacing ...
28009 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28010 these functions, which were removed. This makes the callers
28011 easier to read. All callers changed.
28012 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28013 (size_add_wrapv, glob_use_alloca): New static functions.
28014 (glob, glob_in_dir): Check for size_t overflow in several places,
28015 and fix some size_t checks that were not quite right.
28016 Remove old code using SHELL since Bash no longer
28017 uses this.
28018 (glob, prefix_array): Separate MS code better.
28019 (glob_in_dir): Remove old Amiga and VMS code.
28020 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28021 separate files.
28022 (glob_in_dir): Do not rely on undefined behavior in accessing
28023 struct members beyond their bounds. Use a flexible array member
28024 instead
28025 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28026 0/1. Caller changed.
28027 (glob): Fix memory leaks.
28028 * posix/glob64 (globfree64): Move to separate file.
28029 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28030 (globfree64): Remove hidden alias.
28031 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28032 oldglob.
28033 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28034 separate file.
28035 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28036 define.
28037 Move compat code to separate file.
28038 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28039 separate file.
28040
28041 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28042
28043 * resolv/tst-resolv-qtypes.c (domain): Changed to
28044 "const char domain[] =".
28045
28046 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28047
28048 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28049 version to 3.1.6.
28050
28051 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28052 (TCP_MD5SIG_EXT): Likewise.
28053 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28054 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28055 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28056
28057 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28058
28059 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28060
28061 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28062
28063 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28064
28065 [BZ #22100]
28066 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28067
28068 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28069
28070 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28071 before assuming that the file is empty. Avoid testing buffer content
28072 when nread == 0.
28073
28074 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28075
28076 [BZ #18858]
28077 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28078 Remove define.
28079 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28080 Likewise.
28081 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28082 Likewise.
28083 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28084 Likewise.
28085 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28086 Likewise.
28087 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28088 Likewise.
28089 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28090 Likewise.
28091
28092 2017-09-06 Florian Weimer <fweimer@redhat.com>
28093
28094 * malloc/dynarray_emplace_enlarge.c
28095 (__libc_dynarray_emplace_enlarge): Add missing else.
28096
28097 2017-09-06 Florian Weimer <fweimer@redhat.com>
28098
28099 [BZ #22096]
28100 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28101 case of failure to obtain the global conf object.
28102
28103 2017-09-06 Florian Weimer <fweimer@redhat.com>
28104
28105 [BZ #22095]
28106 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28107 dynarray allocation failure.
28108
28109 2017-09-06 Florian Weimer <fweimer@redhat.com>
28110
28111 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28112 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28113 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28114 New functions.
28115 (response): Call them. Add 'p', '6' flag processing.
28116 (test_reverse): New function.
28117 (test_get2_any): Call it.
28118 (test_no_inet6): Add 'p' test.
28119 (test_inet6): Likewise.
28120
28121 2017-09-06 Florian Weimer <fweimer@redhat.com>
28122
28123 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28124 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28125 the QNAME.
28126 (test_gai): Adjust query names. Add additional tests.
28127 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28128 test_get2. Adjust query names. Add additional tests.
28129 (test_no_inet6): New function, extracted from threadfunc.
28130 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28131 Add additional tests.
28132
28133 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28134
28135 [BZ #22070]
28136 * localedata/unicode-gen/utf8_gen.py: Set the width for
28137 characters with Prepended_Concatenation_Mark property to 1
28138 * localedata/charmaps/UTF-8: Updated using the improved script.
28139
28140 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28141
28142 [BZ #21750]
28143 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28144 use the range notation for all ranges of neighbouring characters
28145 with the same width.
28146
28147 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28148
28149 * sysdeps/generic/math-type-macros-double.h: Include
28150 <math-svid-compat.h>.
28151 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28152 * sysdeps/generic/math-type-macros-float.h: Include
28153 <math-svid-compat.h>.
28154 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28155 * sysdeps/generic/math-type-macros-ldouble.h: Include
28156 <math-svid-compat.h>.
28157 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28158 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28159 condition.
28160 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28161 * math/w_acosf_compat.c: Likewise.
28162 * math/w_acosh_compat.c: Likewise.
28163 * math/w_acoshf_compat.c: Likewise.
28164 * math/w_acoshl_compat.c: Likewise.
28165 * math/w_acosl_compat.c: Likewise.
28166 * math/w_asin_compat.c: Likewise.
28167 * math/w_asinf_compat.c: Likewise.
28168 * math/w_asinl_compat.c: Likewise.
28169 * math/w_atan2_compat.c: Likewise.
28170 * math/w_atan2f_compat.c: Likewise.
28171 * math/w_atan2l_compat.c: Likewise.
28172 * math/w_atanh_compat.c: Likewise.
28173 * math/w_atanhf_compat.c: Likewise.
28174 * math/w_atanhl_compat.c: Likewise.
28175 * math/w_cosh_compat.c: Likewise.
28176 * math/w_coshf_compat.c: Likewise.
28177 * math/w_coshl_compat.c: Likewise.
28178 * math/w_exp10_compat.c: Likewise.
28179 * math/w_exp10f_compat.c: Likewise.
28180 * math/w_exp10l_compat.c: Likewise.
28181 * math/w_exp2_compat.c: Likewise.
28182 * math/w_exp2f_compat.c: Likewise.
28183 * math/w_exp2l_compat.c: Likewise.
28184 * math/w_fmod_compat.c: Likewise.
28185 * math/w_fmodf_compat.c: Likewise.
28186 * math/w_fmodl_compat.c: Likewise.
28187 * math/w_hypot_compat.c: Likewise.
28188 * math/w_hypotf_compat.c: Likewise.
28189 * math/w_hypotl_compat.c: Likewise.
28190 * math/w_j0_compat.c: Likewise.
28191 * math/w_j0f_compat.c: Likewise.
28192 * math/w_j0l_compat.c: Likewise.
28193 * math/w_j1_compat.c: Likewise.
28194 * math/w_j1f_compat.c: Likewise.
28195 * math/w_j1l_compat.c: Likewise.
28196 * math/w_jn_compat.c: Likewise.
28197 * math/w_jnf_compat.c: Likewise.
28198 * math/w_jnl_compat.c: Likewise.
28199 * math/w_lgamma_r_compat.c: Likewise.
28200 * math/w_lgammaf_r_compat.c: Likewise.
28201 * math/w_lgammal_r_compat.c: Likewise.
28202 * math/w_log10_compat.c: Likewise.
28203 * math/w_log10f_compat.c: Likewise.
28204 * math/w_log10l_compat.c: Likewise.
28205 * math/w_log2_compat.c: Likewise.
28206 * math/w_log2f_compat.c: Likewise.
28207 * math/w_log2l_compat.c: Likewise.
28208 * math/w_log_compat.c: Likewise.
28209 * math/w_logf_compat.c: Likewise.
28210 * math/w_logl_compat.c: Likewise.
28211 * math/w_pow_compat.c: Likewise.
28212 * math/w_powf_compat.c: Likewise.
28213 * math/w_powl_compat.c: Likewise.
28214 * math/w_remainder_compat.c: Likewise.
28215 * math/w_remainderf_compat.c: Likewise.
28216 * math/w_remainderl_compat.c: Likewise.
28217 * math/w_sinh_compat.c: Likewise.
28218 * math/w_sinhf_compat.c: Likewise.
28219 * math/w_sinhl_compat.c: Likewise.
28220 * math/w_sqrt_compat.c: Likewise.
28221 * math/w_sqrtf_compat.c: Likewise.
28222 * math/w_sqrtl_compat.c: Likewise.
28223 * math/w_tgamma_compat.c: Likewise.
28224 * math/w_tgammaf_compat.c: Likewise.
28225 * math/w_tgammal_compat.c: Likewise.
28226 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28227 [LIBM_SVID_COMPAT].
28228 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28229 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28230 [LIBM_SVID_COMPAT].
28231 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28232 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28233 [LIBM_SVID_COMPAT].
28234 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28235 * sysdeps/i386/fpu/w_sqrt.c: New file.
28236 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28237 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28238 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28239 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28240 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28241 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28242 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28243 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28244 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28245 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28246 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28247 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28248 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28249 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28250 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28251 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28252 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28253 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28254 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28255 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28256 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28257 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28258 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28259 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28260 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28261 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28262 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28263 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28264 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28265 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28266 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28267 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28268 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28269 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28270 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28271 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28272 * sysdeps/ia64/fpu/w_log.c: Likewise.
28273 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28274 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28275 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28276 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28277 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28278 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28279 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28280 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28281 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28282 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28283 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28284 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28285 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28286 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28287 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28288 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28289 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28290 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28291 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28292 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28293 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28294 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28295 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28296 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28297 [LIBM_SVID_COMPAT].
28298 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28299 * sysdeps/ieee754/k_standard.c: Likewise.
28300 * sysdeps/ieee754/k_standardf.c: Likewise.
28301 * sysdeps/ieee754/k_standardl.c: Likewise.
28302 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28303 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28304 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28305 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28306 long_double_symbol call on [LIBM_SVID_COMPAT].
28307 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28308 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28309 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28310 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28311 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28312 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28313 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28314 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28316 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28319 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28323 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28324 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28325 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28326 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28327 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28328 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28329
28330 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28331
28332 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28333 * malloc/tst-mallocstate.c: Convert from test-skeleton
28334 to test-driver. Ifdef code using TEST_COMPAT macro.
28335 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28336 * math/test-matherr.c: Likewise.
28337
28338 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28339
28340 [BZ #22086]
28341 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28342 comparing word with byte-swapped constant.
28343
28344 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28345
28346 [BZ #20498]
28347 * locale/iso-639.def: add Miskito.
28348 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28349 * localedata/locales/miq_NI: New file.
28350
28351 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28352
28353 [BZ #18822]
28354 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28355 (__mkdir): Likewise.
28356 * io/chmod.c (__chmod): Add libc_hidden_def.
28357 * io/mkdir.c (__mkdir): Likewise.
28358 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28359 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28360 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28361 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28362
28363 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28364
28365 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28366 version to 4.13.
28367
28368 [BZ #22082]
28369 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28370 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28371
28372 2017-09-04 Florian Weimer <fweimer@redhat.com>
28373
28374 * math/math.h: Issue warning if log is defined.
28375
28376 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28377
28378 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28379 kernel version to 4.13.
28380
28381 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28382
28383 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28384 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28385 parameter.
28386 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28387 just <bits/types.h>.
28388 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28389 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28390 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28391 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28392 * misc/preadv2.c: Include <errno.h>.
28393 * misc/preadv64v2.c: Include <errno.h>.
28394 * misc/pwritev2.c: Include <errno.h>.
28395 * misc/pwritev64v2.c: Include <errno.h>.
28396 * sysdeps/posix/preadv2.c: Include <errno.h>.
28397 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28398 Fix <unistd.h> inclusion.
28399 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28400 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28401 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28402 __strtoul_internal): New functions.
28403 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28404 * sysdeps/posix/system.c: Include <sigsetops.h>.
28405 * sysdeps/mach/hurd/i386/Makefile
28406 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28407 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28408 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28409 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28410 __feraiseexcept_renamed to feraiseexcept instead of
28411 __GI_feraiseexcept.
28412 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28413 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28414 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28415 RWF_NOWAIT): Define to 0 if undefined already.
28416 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28417 boils down to 0.
28418 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28419 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28420
28421 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28422
28423 * manual/math.texi (pow10): Do not document.
28424 (pow10f): Likewise.
28425 (pow10l): Likewise.
28426 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28427 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28428 * math/libm-test-exp10.inc (pow10_test): Remove.
28429 (do_test): Do not call pow10.
28430 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28431 [NO_LONG_DOUBLE] (pow10l): Likewise.
28432 * math/w_exp10f_compat.c (pow10f): Likewise.
28433 * math/w_exp10l_compat.c (pow10l): Likewise.
28434 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28435 (pow10): Make into compat symbol.
28436 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28437 (pow10f): Make into compat symbol.
28438 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28439 (pow10l): Make into compat symbol.
28440 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28441 pow10.
28442 (CFLAGS-nldbl-pow10.c): Remove variable..
28443 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28444 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28445 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28446 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28447 Undefine and redefine.
28448 (pow10l): Make into compat symbol.
28449 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28450 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28451 * sysdeps/arm/libm-test-ulps: Likewise.
28452 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28453 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28454 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28455 * sysdeps/microblaze/libm-test-ulps: Likewise.
28456 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28457 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28458 * sysdeps/nios2/libm-test-ulps: Likewise.
28459 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28460 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28461 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28462 * sysdeps/sh/libm-test-ulps: Likewise.
28463 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28464 * sysdeps/tile/libm-test-ulps: Likewise.
28465 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28466
28467 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28468
28469 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28470
28471 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28472
28473 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28474 "../ChangeLog.old/ChangeLog.8".
28475 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28476 "../ChangeLog.old/ChangeLog.14".
28477
28478 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28479
28480 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28481 Threads Library.
28482
28483 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28484
28485 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28486
28487 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28488
28489 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28490 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28491
28492 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28493
28494 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28495 32 atexit handlers.
28496
28497 2017-09-01 Zack Weinberg <zackw@panix.com>
28498
28499 * math/math.h (HUGE_VAL): Improve commentary.
28500
28501 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28502 Andreas Schwab <schwab@suse.de>
28503
28504 [BZ #21530]
28505 * include/stdio.h (__gen_tempfd): New function.
28506 * stdio-common/Makefile (routines): Add gentempfd.
28507 * stdio-common/gentempfd.c: New file.
28508 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28509 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28510 unnamed file first.
28511
28512 2017-09-01 Florian Weimer <fweimer@redhat.com>
28513
28514 [BZ #21915]
28515 [BZ #21922]
28516 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28517 result to determine success or failure, not the errno value.
28518 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28519 (tst-nss-files-hosts-erange): Link with -ldl.
28520 * nss/tst-nss-files-hosts-erange.c: New file.
28521 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28522 (do_test): Add NO_DATA tests.
28523 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28524 (do_test): Call it.
28525
28526 2017-09-01 Florian Weimer <fweimer@redhat.com>
28527
28528 [BZ #21922]
28529 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28530 coming from gethostbyname2_r.
28531
28532 2017-09-01 Florian Weimer <fweimer@redhat.com>
28533
28534 * support/namespace.h (struct support_chroot_configuration): Add
28535 hosts, host_conf.
28536 (struct support_chroot): Add path_hosts, path_host_conf.
28537 * support/support_chroot.c (write_file): New function.
28538 (support_chroot_create): Call it to process /etc/resolv.conf,
28539 /etc/hosts, /etc/host.conf.
28540 (support_chroot_free): Update.
28541
28542 2017-09-01 Florian Weimer <fweimer@redhat.com>
28543
28544 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28545 status indicates it is set.
28546
28547 2017-09-01 Florian Weimer <fweimer@redhat.com>
28548
28549 [BZ #20532]
28550 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28551 function lookup failures more reliable.
28552
28553 2017-09-01 Florian Weimer <fweimer@redhat.com>
28554
28555 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28556 (getcanonname): Likewise.
28557 (gaih_inet): Likewise.
28558
28559 2017-09-01 Florian Weimer <fweimer@redhat.com>
28560
28561 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28562 (getcanonname): Likewise.
28563 (gaih_inet): Likewise.
28564
28565 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28566 Richard Henderson <rth@twiddle.net>
28567
28568 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28569 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28570 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28571 (IREG_SIZE, OREG_SIZE): New macros.
28572 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28573 (IREG_SIZE, OREG_SIZE): New macros.
28574 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28575 (IREG_SIZE): New macro.
28576 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28577 (IREG_SIZE): New macro.
28578 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28579 New includes.
28580 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28581 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28582 (__CONCATX): Handle exceptions correctly on large values that may
28583 set FE_INVALID.
28584 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28585 Initialize if not already set.
28586 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28587
28588 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28589
28590 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28591 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28592 Likewise.
28593 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28594 Likewise.
28595 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28596 Likewise.
28597 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28598 Likewise.
28599 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28600 Likewise.
28601 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28602 Likewise.
28603 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28604 Likewise.
28605 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28606 (NO_CANCELLATION): Likewise.
28607 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28608 Likewise.
28609 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28610 Likewise.
28611 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28612 Likewise.
28613 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28614 (NO_CANCELLATION): Likewise.
28615 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28616 (NO_CANCELLATION): Likewise.
28617 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28618 Likewise
28619 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28620 Likewise.
28621 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28622 Likewise.
28623 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28624 Likewise.
28625 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28626 hidden prototype.
28627 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28628 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28629
28630 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28631
28632 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28633 in resolver call.
28634
28635 2017-08-31 Florian Weimer <fweimer@redhat.com>
28636
28637 * include/libc-symbols.h (internal_function): Remove.
28638
28639 2017-08-31 Florian Weimer <fweimer@redhat.com>
28640
28641 * stdlib/fmtmsg.c (internal_addseverity): Remove
28642 internal_function.
28643
28644 2017-08-31 Florian Weimer <fweimer@redhat.com>
28645
28646 * stdio-common/printf_fp.c (group_number): Remove
28647 internal_function.
28648 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28649
28650 2017-08-31 Florian Weimer <fweimer@redhat.com>
28651
28652 * posix/fnmatch.c (internal_function): Remove definition.
28653 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28654 * posix/regcomp.c (peek_token, init_word_char)
28655 (duplicate_node_closure, fetch_token, peek_token)
28656 (peek_token_bracket, build_range_exp, build_collating_symbol):
28657 Likewise.
28658 * posix/regex_internal.c (re_string_construct_common)
28659 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28660 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28661 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28662 (re_string_translate_buffer, re_string_reconstruct)
28663 (re_string_peek_byte_case, re_string_fetch_byte_case)
28664 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28665 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28666 (re_node_set_add_intersect, re_node_set_init_union)
28667 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28668 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28669 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28670 (re_acquire_state_context): Likewise.
28671 * posix/regex_internal.h (internal_function): Remove definition.
28672 (re_string_realloc_buffers, build_wcs_buffer)
28673 (build_wcs_upper_buffer, build_upper_buffer)
28674 (re_string_translate_buffer, re_string_context_at)
28675 (re_string_char_size_at, re_string_wchar_at)
28676 (re_string_elem_size_at): Likewise.
28677 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28678 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28679 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28680 (re_search_internal, re_search_2_stub, re_search_stub)
28681 (re_copy_regs, prune_impossible_nodes, check_matching)
28682 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28683 (free_fail_stack_return, sift_states_iter_mb)
28684 (sift_states_backward, build_sifted_states)
28685 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28686 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28687 (check_subexp_limits, sift_states_bkref, merge_state_array)
28688 (find_recover_state, transit_state, merge_state_with_log)
28689 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28690 (transit_state_mb, transit_state_bkref, get_subexp)
28691 (get_subexp_sub, find_subexp_node, check_arrival)
28692 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28693 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28694 (check_node_accept_bytes, find_collation_sequence_value)
28695 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28696 (acquire_init_state_context, check_halt_node_context)
28697 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28698 (sub_epsilon_src_nodes): Likewise.
28699 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28700 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28701 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28702 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28703 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28704 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28705 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28706 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28707 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28708 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28709 (PREADV): Likewise.
28710 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28711 (PREADV): Likewise.
28712 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28713 (PWRITEV): Likewise.
28714 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28715 (PWRITEV): Likewise.
28716 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28717 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28718
28719 2017-08-31 Florian Weimer <fweimer@redhat.com>
28720
28721 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28722 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28723 Remove internal_function.
28724 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28725 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28726 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28727 (__deallocate_stack, __libc_pthread_init)
28728 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28729 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28730 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28731 Likewise.
28732 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28733 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28734 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28735 Likewise.
28736 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28737 (__pthread_mutex_unlock_usercnt): Likewise.
28738
28739 2017-08-31 Florian Weimer <fweimer@redhat.com>
28740
28741 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28742 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28743 (fts_safe_changedir): Remove internal_function.
28744 * io/ftw.c (internal_function): Remove definition.
28745 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28746
28747 2017-08-31 Florian Weimer <fweimer@redhat.com>
28748
28749 * inet/deadline.c (__deadline_current_time)
28750 (__deadline_from_timeval, __deadline_to_ms): Remove
28751 internal_function.
28752 * inet/getnameinfo.c (nrl_domainname): Likewise.
28753 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28754 * inet/inet6_option.c (add_pad): Likewise.
28755 * inet/net-internal.h (__deadline_current_time)
28756 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28757 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28758 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28759 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28760
28761 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28762
28763 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28764 include <bits/nan.h>.
28765 * math/Makefile (headers): Remove bits/nan.h.
28766 * bits/nan.h: Remove.
28767 * sysdeps/ieee754/bits/nan.h: Likewise.
28768 * sysdeps/mips/bits/nan.h: Likewise.
28769
28770 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28771 not include <bits/inf.h>.
28772 * math/Makefile (headers): Remove bits/inf.h.
28773 * bits/inf.h: Remove.
28774 * sysdeps/ieee754/bits/inf.h: Likewise.
28775
28776 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28777 bits/huge_vall.h or bits/huge_val_flt128.h.
28778 (HUGE_VAL): Define directly here.
28779 [__USE_ISOC99] (HUGE_VALF): Likewise.
28780 [__USE_ISOC99] (HUGE_VALL): Likewise.
28781 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28782 (HUGE_VAL_F128): Likewise.
28783 * math/Makefile (headers): Remove bits/huge_val.h,
28784 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28785 * bits/huge_val.h: Remove.
28786 * bits/huge_val_flt128.h: Likewise.
28787 * bits/huge_valf.h: Likewise.
28788 * bits/huge_vall.h: Likewise.
28789 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28790 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28791 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28792 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28793 * sysdeps/sh/bits/huge_val.h: Likewise.
28794 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28795 * sysdeps/x86/bits/huge_vall.h: Likewise.
28796
28797 2017-08-31 Florian Weimer <fweimer@redhat.com>
28798
28799 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28800 internal_function.
28801 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28802 Likewise.
28803 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28804 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28805 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28806 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28807 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28808 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28809 * elf/dl-libc.c (dlerror_run): Likewise.
28810 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28811 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28812 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28813 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28814 Likewise.
28815 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28816 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28817 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28818 * elf/dl-profile.c (_dl_start_profile): Likewise.
28819 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28820 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28821 Likewise.
28822 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28823 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28824 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28825 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28826 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28827 (_dl_allocate_tls_storage): Likewise.
28828 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28829 (_dl_check_all_versions): Likewise.
28830 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28831 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28832 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28833 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28834 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28835 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28836 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28837 internal_function from __dl_start.
28838 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28839 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28840 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28841 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28842 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28843 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28844 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28845 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28846 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28847 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28848 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28849 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28850 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28851 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28852 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28853 Likewise.
28854 (struct rtld_global_ro): Remove internal_function from the
28855 _dl_lookup_symbol_x member.
28856 (_dl_symbol_value): Remove. No longer defined anywhere.
28857 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28858 internal_function.
28859 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28860 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28861 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28862 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28863 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28864 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28865 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28866 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28867 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28868 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28869 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28870 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28871
28872 2017-08-31 Florian Weimer <fweimer@redhat.com>
28873
28874 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28875 Remove internal_function.
28876 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28877 Likewise.
28878 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28879 Likewise.
28880
28881 2017-08-31 Florian Weimer <fweimer@redhat.com>
28882
28883 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28884 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28885 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28886
28887 2017-08-31 Florian Weimer <fweimer@redhat.com>
28888
28889 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28890 (__gai_enqueue_request): Remove internal_function.
28891 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28892 (__gai_remove_request, __gai_notify, __gai_notify_only)
28893 (__gai_sigqueue): Likewise.
28894 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28895 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28896 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28897 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28898 Likewise.
28899
28900 2017-08-31 Florian Weimer <fweimer@redhat.com>
28901
28902 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28903 * include/dirent.h (__opendirat, __getdents, __getdents64)
28904 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28905 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28906 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28907 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28908 Likewise.
28909 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28910
28911 2017-08-31 Florian Weimer <fweimer@redhat.com>
28912
28913 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28914 internal_function.
28915 (GETCWD_RETURN_TYPE): Likewise.
28916
28917 2017-08-31 Florian Weimer <fweimer@redhat.com>
28918
28919 * include/time.h (__tz_compute, __strptime_internal): Remove
28920 internal_function.
28921 * time/strptime_l.c (__strptime_internal): Likewise.
28922 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28923
28924 2017-08-31 Florian Weimer <fweimer@redhat.com>
28925
28926 * iconv/gconv.c (__gconv): Remove internal_function.
28927 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28928 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28929 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28930 (__gconv_release_cache): Likewise.
28931 * iconv/gconv_close.c (__gconv_close): Likewise.
28932 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28933 (read_conf_file, __gconv_get_path): Likewise.
28934 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28935 (__gconv_release_step, gen_steps, increment_counter)
28936 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28937 (__gconv_close_transform, free_modules_db): Likewise.
28938 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28939 Likewise.
28940 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28941 (__gconv_find_transform, __gconv_lookup_cache)
28942 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28943 (__gconv_close_transform, __gconv_release_cache)
28944 (__gconv_loaded_object, __gconv_release_shlib)
28945 (__gconv_compare_alias): Likewise.
28946 * iconv/gconv_open.c (__gconv_open): Likewise.
28947 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28948 * iconv/iconvconfig.c (add_module): Likewise.
28949 * intl/dcigettext.c (plural_lookup, guess_category_value)
28950 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28951 * intl/eval-plural.h (plural_eval): Likewise.
28952 * intl/finddomain.c (_nl_find_domain): Likewise.
28953 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28954 (_nl_load_domain, _nl_find_msg): Likewise.
28955 (internal_function): Remove definition.
28956 * intl/loadinfo.h (internal_function): Likewise.
28957 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28958 internal_function.
28959 * intl/localealias.c (internal_function): Remove definition.
28960 (read_alias_file): Remove internal_function.
28961 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28962 * intl/plural-exp.h (internal_function): Remove definition.
28963 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28964 internal_function.
28965 * intl/plural.c: Regenerate.
28966 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28967 * locale/coll-lookup.c (__collidx_table_lookup)
28968 (__collseq_table_lookup): Likewise.
28969 * locale/coll-lookup.h (__collidx_table_lookup)
28970 (__collseq_table_lookup): Likewise.
28971 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28972 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28973 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28974 (_nl_unload_locale): Likewise.
28975 * locale/localeinfo.h (struct __locale_data): Remove
28976 internal_function from cleanup member.
28977 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28978 (_nl_remove_locale, _nl_load_locale_from_archive)
28979 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28980 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28981 (_nl_cleanup_time): Remove internal_function.
28982 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28983 (_nl_parse_alt_digit): Likewise.
28984 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28985 (_nl_select_era_entry): Likewise.
28986 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28987 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28988 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28989 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28990 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28991
28992 2017-08-31 Florian Weimer <fweimer@redhat.com>
28993
28994 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28995 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28996 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28997 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28998 Likewise.
28999 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29000 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29001 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29002 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29003 Likewise.
29004 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29005
29006 2017-08-31 Florian Weimer <fweimer@redhat.com>
29007
29008 * misc/getttyent.c (skip, value): Remove internal_function.
29009 * misc/syslog.c (openlog_internal): Likewise.
29010 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29011
29012 2017-08-31 Florian Weimer <fweimer@redhat.com>
29013
29014 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29015 (__nss_rewrite_field): Remove internal_function.
29016 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29017 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29018 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29019 * nss/nsswitch.c (nss_parse_file, nss_getline)
29020 (nss_parse_service_list, nss_new_service): Likewise.
29021 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29022 * nss/valid_field.c (__nss_valid_field): Likewise.
29023 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29024
29025 2017-08-31 Florian Weimer <fweimer@redhat.com>
29026
29027 * malloc/arena.c (__malloc_fork_lock_parent)
29028 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29029 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29030 internal_function from defintions.
29031 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29032 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29033 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29034 internal_function from declarations.
29035 * malloc/malloc.c (internal_function): Do not define.
29036 (mem2mem_check): Remove internal_function from declaration.
29037 (munmap_chunk, mremap_chunk): Remove internal_function.
29038 * malloc/mtrace.c (tr_where): Likewise.
29039
29040 2017-08-31 Florian Weimer <fweimer@redhat.com>
29041
29042 * include/rpc/pmap_clnt.h (__get_socket): Remove
29043 internal_function.
29044 * sunrpc/auth_des.c (synchronize): Likewise.
29045 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29046 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29047 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29048 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29049 (key_call): Likewise.
29050 * sunrpc/pm_getport.c (__get_socket): Likewise.
29051 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29052 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29053 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29054 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29055 (invalidate): Likewise.
29056 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29057 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29058 (set_input_fragment, get_input_bytes): Likewise.
29059
29060 2017-08-31 Florian Weimer <fweimer@redhat.com>
29061
29062 * malloc/malloc.c (_int_free): Remove locked variable and related
29063 asserts.
29064
29065 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29066
29067 [BZ #22051]
29068 * Makerules (build-module-helper-objlist): Filter out
29069 $(elf-objpfx)sofini.os.
29070 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29071 needed.
29072
29073 2017-08-31 Florian Weimer <fweimer@redhat.com>
29074
29075 * libio/fcloseall.c: Assume weak_alias is defined.
29076 * libio/feof.c: Likewise.
29077 * libio/fileno.c: Likewise.
29078 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29079 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29080 definitions.
29081 (_IO_file_open): Call __open directly.
29082 (_IO_new_file_sync): Assume ESPIPE is defined.
29083 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29084 (_IO_new_file_write): Call __write directly.
29085 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29086 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29087 * libio/genops.c: Assume _LIBC is defined.
29088 (save_for_backup): Remove internal_function.
29089 * libio/getc.c: Assume weak_alias is defined.
29090 * libio/getwc.c: Likewise.
29091 * libio/iofclose.c: Assume _LIBC is defined.
29092 * libio/iofdopen.c: Likewise.
29093 (_IO_fcntl): Remove macro definition.
29094 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29095 Call __fcntl directly.
29096 * libio/iofflush.c: Assume weak_alias is defined.
29097 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29098 defined.
29099 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29100 * libio/iofgets.c: Likewise.
29101 * libio/iofopen.c: Assume _LIBC is defined.
29102 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29103 * libio/iofputs.c: Assume weak_alias is defined.
29104 * libio/iofread.c: Likewise.
29105 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29106 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29107 * libio/ioftell.c: Assume weak_alias is defined.
29108 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29109 * libio/iofwide.c: Assume _LIBC is defined.
29110 (_IO_fwide): Drop SHARED conditional because it is implied by
29111 SHLIB_COMPAT.
29112 * libio/iofwrite.c: Assume weak_alias is defined.
29113 * libio/iogetdelim.c: Likewise.
29114 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29115 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29116 (_IO_getwline): Call __wmemcpy directly.
29117 * libio/iopopen.c: Assume _LIBC is defined.
29118 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29119 (_IO_close): Remove macro definitions.
29120 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29121 _exit directly.
29122 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29123 directly.
29124 * libio/ioputs.c: Assume weak_alias is defined.
29125 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29126 * libio/iosetbuffer.c: Assume weak_alias is defined.
29127 * libio/iosetvbuf.c: Likewise.
29128 * libio/ioungetc.c: Likewise.
29129 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29130 libc_hidden_def, libc_hidden_weak, NULL are defined.
29131 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29132 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29133 defined.
29134 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29135 definitions.
29136 (_IO_old_file_init_internal): Drop SHARED conditional because it
29137 is implied by SHLIB_COMPAT.
29138 (_IO_old_file_fopen): Call __open directly.
29139 (_IO_old_file_sync): Assume ESPIPE is defined.
29140 (_IO_old_file_write): Call __write directly.
29141 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29142 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29143 Call __fcntl directly.
29144 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29145 (_IO_old_fgetpos): Assume EIO is defined.
29146 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29147 (_IO_old_fgetpos64): Assume EIO is defined.
29148 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29149 (_IO_old_fsetpos): Assume EIO is defined.
29150 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29151 (_IO_old_fsetpos64): Assume EIO is defined.
29152 * libio/oldiopopen.c: Assume _LIBC is defined.
29153 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29154 (_IO_close): Remove macro definitions.
29155 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29156 directly.
29157 (_IO_old_proc_close): Call __close, __waitpid directly.
29158 * libio/put.c: Assume weak_alias is defined.
29159 * libio/stdfiles.c: Assume _LIBC is defined.
29160 * libio/stdio.c: Likewise.
29161 * libio/wfileops.c: Likewise.
29162 (_IO_wfile_sync): Assume ESPIPE is defined.
29163 * libio/wgenops.c: Assume _LIBC is defined.
29164 (save_for_wbackup): Remove internal_function.
29165
29166 2017-08-31 Florian Weimer <fweimer@redhat.com>
29167
29168 * malloc/malloc.c (top_check): Change return type to void. Remove
29169 internal_function.
29170 * malloc/hooks.c (top_check): Likewise.
29171 (malloc_check, realloc_check, memalign_check): Adjust.
29172
29173 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29174
29175 [BZ #21457]
29176 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29177 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29178 sigcontext and namespace requirements.
29179 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29180 * sysdeps/m68k/sys/ucontext.h: Likewise.
29181 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29182 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29183 <bits/sigcontext.h>.
29184 (__ctx): Define earlier.
29185 (mcontext_t): Define structure contents rather than using struct
29186 sigcontext.
29187 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29188 __glibc_reserved1 instead of __reserved.
29189 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29190 <bits/sigcontext.h>.
29191 (__ctx): Define earlier.
29192 (mcontext_t): Define structure contents rather than using struct
29193 sigcontext.
29194 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29195 mcontext_t instead of struct sigcontext.
29196 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29197 <bits/sigcontext.h>.
29198 (__ctx): Define earlier.
29199 (mcontext_t): Define structure contents rather than using struct
29200 sigcontext.
29201 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29202 <bits/sigcontext.h>.
29203 (__ctx): Define earlier.
29204 (mcontext_t): Define structure contents rather than using struct
29205 sigcontext.
29206 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29207 mcontext_t instead of struct sigcontext.
29208 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29209 mcontext_t instead of struct sigcontext.
29210 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29211 <bits/sigcontext.h>.
29212 (__ctx): New macro.
29213 (struct __ia64_fpreg_mcontext): New type.
29214 (mcontext_t): Define structure contents rather than using struct
29215 sigcontext.
29216 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29217 (uc_sigmask): Define using __ctx.
29218 (uc_stack): Likewise.
29219 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29220 <bits/sigcontext.h>.
29221 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29222 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29223 <bits/sigcontext.h>.
29224 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29225 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29226 <bits/sigcontext.h>.
29227 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29228 <bits/sigcontext.h>.
29229 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29230 <bits/sigcontext.h>.
29231 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29232 <bits/sigcontext.h>.
29233 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29234 <bits/sigcontext.h>.
29235 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29236 <bits/sigcontext.h>.
29237 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29238 <bits/sigcontext.h>.
29239 (__ctx): Define earlier.
29240 (mcontext_t): Define structure contents rather than using struct
29241 sigcontext.
29242 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29243 <bits/sigcontext.h>. Include <bits/types.h>.
29244 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29245 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29246 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29247 (test-xfail-UNIX98/signal.h/conform): Likewise.
29248 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29249 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29250 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29251 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29252 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29253 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29254 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29255 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29256 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29257
29258 2017-08-30 Florian Weimer <fweimer@redhat.com>
29259
29260 * malloc/dynarray_emplace_enlarge.c
29261 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29262 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29263 * malloc/tst-dynarray.c (test_long_overflow): New function.
29264 (do_test): Call it.
29265
29266 2017-08-30 Florian Weimer <fweimer@redhat.com>
29267
29268 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29269 (set_arena_corrupt): Remove definitions.
29270 (mtrim): Do not check for corrupt arena.
29271 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29272 Likewise.
29273
29274 2017-08-30 Florian Weimer <fweimer@redhat.com>
29275
29276 [BZ #21754]
29277 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29278 check_action.
29279 (ptmalloc_init): Do not set or use check_action.
29280 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29281 call to malloc_printerr. Remove return statement.
29282 (free_check): Likewise. Remove arena unlock.
29283 (top_check): Update comment. Adjust call to malloc_printerr.
29284 Remove heap repair code.
29285 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29286 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29287 (sysmalloc): Adjust call to malloc_printerr.
29288 (munmap_chunk, __libc_realloc): Likewise. Remove return
29289 statement.
29290 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29291 Remove errout label and corresponding gotos.
29292 (_int_free): Likewise. Remove arena unlock.
29293 (do_set_mallopt_check): Do not set check_action.
29294 (malloc_printerr): Adjust parameter list. Do not mark arena as
29295 corrupt.
29296 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29297 comment.
29298 * manual/probes.texi (Memory Allocation Probes): Remove
29299 memory_mallopt_check_action.
29300
29301 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29302
29303 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29304 Use pointer to uint64_t instead of long int for sp.
29305
29306 2017-08-30 Florian Weimer <fweimer@redhat.com>
29307
29308 [BZ #21754]
29309 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29310 without printing a backtrace. Do not leak any information in the
29311 error message.
29312 * manual/memory.texi (Heap Consistency Checking): Update.
29313 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29314
29315 2017-08-30 Florian Weimer <fweimer@redhat.com>
29316
29317 Do not scale NPTL tests with available number of CPUs.
29318 * nptl/tst-cond16.c (count): Set to constant value of 8.
29319 * nptl/tst-cond18.c (count): Likewise.
29320
29321 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29322
29323 [BZ #22035]
29324 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29325 Define to take a second argument that is a macro that
29326 concatentates a suffix, not the suffix itself.
29327 (__CONCAT_d): New macro.
29328 (__CONCAT_f): Likewise.
29329 (__CONCAT_l): Likewise.
29330
29331 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29332
29333 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29334 by child.
29335
29336 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29337 Aurelien Jarno <aurelien@aurel32.net>
29338 Maciej W. Rozycki <macro@imgtec.com>
29339
29340 [BZ #21956]
29341 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29342 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29343 `mips16-syscall6' and `mips16-syscall7'.
29344 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29345 (CFLAGS-mips16-syscall7.c): Remove.
29346 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29347 Remove `__mips16_syscall5', `__mips16_syscall6' and
29348 `__mips16_syscall7'.
29349 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29350 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29351 `__mips_syscall_return'.
29352 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29353 (__mips16_syscall1): Likewise.
29354 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29355 (__mips16_syscall2): Likewise.
29356 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29357 (__mips16_syscall3): Likewise.
29358 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29359 (__mips16_syscall4): Likewise.
29360 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29361 Remove.
29362 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29363 Remove.
29364 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29365 Remove.
29366 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29367 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29368 `__mips16_syscall5'. Remove prototype.
29369 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29370 `__mips16_syscall6'. Remove prototype.
29371 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29372 `__mips16_syscall7'. Remove prototype.
29373 (__nomips16, __mips16_syscall_return): Move to...
29374 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29375 (__nomips16, __mips_syscall_return): ... here.
29376 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29377 `__mips16_syscall_return' to `__mips_syscall_return'.
29378 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29379 `internal_syscall##nr'.
29380 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29381 `internal_syscall##nr'.
29382 (FORCE_FRAME_POINTER): Remove.
29383 (__mips_syscall5): New prototype.
29384 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29385 (__mips_syscall6): New prototype.
29386 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29387 (__mips_syscall7): New prototype.
29388 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29389 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29390 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29391 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29392 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29393 (sysdep_routines): Add libc-do-syscall.
29394 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29395 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29396
29397 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29398
29399 [BZ #21672]
29400 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29401 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29402 (advise_stack_range): New function.
29403 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29404 stack non required to advise_stack_range at allocatestack.c
29405
29406 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29407
29408 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29409
29410 2017-08-29 Florian Weimer <fweimer@redhat.com>
29411
29412 [BZ #22026]
29413 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29414 __end_fct. Mangle __end_fct after setting it to NULL.
29415 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29416 (modules-names, modules-names-tests): Add
29417 tst-gconv-init-failure-mod.
29418 (gconv-modules): New target.
29419 (tst-gconv-init-failure-mod.so): Link against libsupport.
29420 (tst-gconv-init-failure): Depend on gconv-modules,
29421 tst-gconv-init-failure-mod.so.
29422 * iconv/tst-gconv-init-failure-mod.c: New file.
29423 * iconv/tst-gconv-init-failure.c: Likewise.
29424 * iconv/test-gconv-modules: Likewise.
29425
29426 2017-08-29 Florian Weimer <fweimer@redhat.com>
29427
29428 [BZ #22025]
29429 * iconv/gconv_db.c (free_derivation): Remove redundant
29430 parentheses.
29431 (gen_steps): Unconditionally mangle __btowc_fct after
29432 initialization.
29433 (increment_counter): Likewise. Do not call init_fct for internal
29434 modules.
29435
29436 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29437
29438 [BZ #22028]
29439 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29440 (_MSUF_): Remove macro.
29441 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29442 Likewise.
29443 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29444 (__REDIRFROM_X): New macro.
29445 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29446 Likewise.
29447 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29448 (__REDIRTO_X): Likewise.
29449 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29450 arguments.
29451 (__MATH_REDIRCALL_2): Likewise.
29452 (__MATH_REDIRCALL_INTERNAL): Likewise.
29453 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29454 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29455 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29456 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29457 * math/test-finite-macros.c: New file.
29458 * math/Makefile (tests): Add test-finite-macros.
29459 (CFLAGS-test-finite-macros.c): New variable.
29460
29461 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29462 Jeff Law <law@redhat.com>
29463
29464 [BZ #22025]
29465 Mangle NULL pointers in iconv/gconv.
29466 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29467 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29468 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29469 is non-NULL before demangling the end_fct. Check for NULL
29470 end_fct after demangling.
29471 (__gconv_release_step): Demangle the end_fct before checking
29472 it for NULL. Remove assert on __shlibc_handle != NULL.
29473 (gen_steps): Don't check btowc_fct for NULL before mangling.
29474 Demangle init_fct before checking for NULL.
29475 (increment_counter): Likewise.
29476 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29477 end_fct for NULL before mangling.
29478 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29479 for NULL.
29480
29481 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29482
29483 [BZ #21971]
29484 * locale/iso-639.def: add Morisyen.
29485
29486 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29487
29488 [BZ #21930]
29489 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29490 (iszero): New C++ implementation that does not use
29491 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29492 signaling nans are enabled, since __builtin_types_compatible_p
29493 is a C-only feature.
29494 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29495 defined, include ieee754_float128.h for access to the union and
29496 member ieee854_float128.ieee.
29497 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29498 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29499 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29500 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29501 options of test-math-zero on powerpc64le.
29502
29503 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29504
29505 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29506 Change double to float.
29507
29508 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29509
29510 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29511 unconditional.
29512 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29513 conditional code; define contents only for [LIBM_SVID_COMPAT].
29514
29515 2017-08-28 Florian Weimer <fweimer@redhat.com>
29516
29517 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29518 (abi-lp64_be-options): Remove.
29519 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29520 (abi-hard-options): Likewise.
29521 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29522 (abi-o32_hard-options, abi-o32_soft_2008-options)
29523 (abi-o32_hard_2008-options, abi-n32_soft-options)
29524 (abi-n32_hard-options, abi-n32_soft_2008-options)
29525 (abi-n32_hard_2008-options, abi-n64_soft-options)
29526 (abi-n64_hard-options, abi-n64_soft_2008-options)
29527 (abi-n64_hard_2008-options): Likewise.
29528 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29529 (abi-64-v1-options, abi-64-v2-options): Likewise.
29530 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29531 (abi-64-options): Likewise.
29532 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29533 (abi-64-options): Likewise.
29534 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29535 (abi-64-options): Likewise.
29536 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29537 (abi-64-options, abi-x32-options): Likewise.
29538
29539 2017-08-28 Florian Weimer <fweimer@redhat.com>
29540
29541 Store supported list of SYS_* system calls in the source tree.
29542 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29543 (bits/syscall.h): Generate from list file.
29544 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29545 [$(subdir) = misc] (tests): Add tst-syscall-list.
29546 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29547 [$(subdir) = misc] (tst-syscall-list-macros.list)
29548 [$(subdir) = misc] (tst-syscall-list-nr.list)
29549 (tst-syscall-list-sys.list): Helper targets for new
29550 tst-syscall-list test.
29551 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29552 tst-syscall-list.sh.
29553 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29554 target. Do not include bits/syscall.d.
29555 [$(subdir) = misc] (generated): Do not update.
29556 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29557 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29558 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29559 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29560
29561 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29562
29563 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29564 (tst-cxa_atexit, tst-on_exit): Likewise.
29565 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29566 tst-cxa_atexit, and tst-on_exit.
29567 * stdlib/tst-atexit-common.c: New file.
29568 * stdlib/tst-atexit.c: New file.
29569 * stdlib/tst-at_quick_exit.c: New file.
29570 * stdlib/tst-cxa_atexit.c: New file.
29571 * stdlib/tst-on_exit.c: New file.
29572
29573 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29574
29575 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29576 * mach/stack_chk_fail_local.c: New file.
29577 * hurd/stack_chk_fail_local.c: New file.
29578 * mach/Machrules ($(interface-library)-routines): Add
29579 stack_chk_fail_local.
29580 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29581 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29582 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29583 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29584 * hurd/Makefile (CFLAGS-hurdstartup.o,
29585 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29586
29587 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29588
29589 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29590 (index_cpu_*, index_arch_*): Removed.
29591
29592 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29593
29594 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29595 Use uint64_t instead of unsigned long.
29596
29597 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29598
29599 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29600 [__HAVE_DISTINCT_FLOAT128].
29601
29602 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29603 of <bits/math-finite.h>.
29604 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29605 inclusion of <bits/math-finite.h>.
29606 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29607 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29608 __NO_LONG_DOUBLE_MATH].
29609 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29610 (__MATH_REDIRCALL_2): Likewise.
29611 (__MATH_REDIRCALL_INTERNAL): Likewise.
29612 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29613 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29614 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29615
29616 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29617 Remove file.
29618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29619 Likewise.
29620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29621 Likewise.
29622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29623 Likewise.
29624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29625 Likewise.
29626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29627 Likewise.
29628 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29629 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29630 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29631 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29633 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29634 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29635 w_sqrtf_compat-ppc32.
29636
29637 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29638
29639 * math/math.h [defined __cplusplus] (issignaling): In the long
29640 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29641 is not defined. Call __issignaling, otherwise.
29642
29643 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29644
29645 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29646 syscall definitions and replace __builtin_expect with __glibc_likely.
29647 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29648 syscall.
29649 (SYSCALL_CANCELLABLE): Removedefinition
29650 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29651 definition.
29652 (PSEUDO_END): Likewise.
29653 [IS_IN (libpthread)] (CENABLE): Likewise.
29654 [IS_IN (libpthread)] (CDISABLE): Likewise.
29655 [IS_IN (libc)] (CENABLE): Likewise.
29656 [IS_IN (libc)] (CENABLE): Likewise.
29657 [IS_IN (librt)] (CDISABLE): Likewise.
29658 [IS_IN (librt)] (CDISABLE): Likewise.
29659 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29660 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29661 definition.
29662 (PSEUDO_END): Likewise.
29663 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29664 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29665 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29666 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29667 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29668 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29669 (CENABLE): Likewise.
29670 (CDISABLE): Likewise.
29671 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29672 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29673 defintion.
29674 (PSEUDO_END): Likewise.
29675 [IS_IN (libpthread)] (CENABLE): Likewise.
29676 [IS_IN (libpthread)] (CDISABLE): Likewise.
29677 [IS_IN (libc)] (CENABLE): Likewise.
29678 [IS_IN (libc)] (CENABLE): Likewise.
29679 [IS_IN (librt)] (CDISABLE): Likewise.
29680 [IS_IN (librt)] (CDISABLE): Likewise.
29681 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29682 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29683 definition.
29684 (PSEUDO_END): Likewise.
29685 [IS_IN (libpthread)] (CENABLE): Likewise.
29686 [IS_IN (libpthread)] (CDISABLE): Likewise.
29687 [IS_IN (libc)] (CENABLE): Likewise.
29688 [IS_IN (libc)] (CENABLE): Likewise.
29689 [IS_IN (librt)] (CDISABLE): Likewise.
29690 [IS_IN (librt)] (CDISABLE): Likewise.
29691 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29692 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29693 definition.
29694 (PSEUDO_END): Likewise.
29695 [IS_IN (libpthread)] (CENABLE): Likewise.
29696 [IS_IN (libpthread)] (CDISABLE): Likewise.
29697 [IS_IN (libc)] (CENABLE): Likewise.
29698 [IS_IN (libc)] (CENABLE): Likewise.
29699 [IS_IN (librt)] (CDISABLE): Likewise.
29700 [IS_IN (librt)] (CDISABLE): Likewise.
29701 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29702 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29703 definition.
29704 (PSEUDO_END): Likewise.
29705 [IS_IN (libpthread)] (CENABLE): Likewise.
29706 [IS_IN (libpthread)] (CDISABLE): Likewise.
29707 [IS_IN (libc)] (CENABLE): Likewise.
29708 [IS_IN (libc)] (CENABLE): Likewise.
29709 [IS_IN (librt)] (CDISABLE): Likewise.
29710 [IS_IN (librt)] (CDISABLE): Likewise.
29711 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29712 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29713 definition.
29714 (PSEUDO_END): Likewise.
29715 [IS_IN (libpthread)] (CENABLE): Likewise.
29716 [IS_IN (libpthread)] (CDISABLE): Likewise.
29717 [IS_IN (libc)] (CENABLE): Likewise.
29718 [IS_IN (libc)] (CENABLE): Likewise.
29719 [IS_IN (librt)] (CDISABLE): Likewise.
29720 [IS_IN (librt)] (CDISABLE): Likewise.
29721 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29722 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29723 definition.
29724 (PSEUDO_END): Likewise.
29725 [IS_IN (libpthread)] (CENABLE): Likewise.
29726 [IS_IN (libpthread)] (CDISABLE): Likewise.
29727 [IS_IN (libc)] (CENABLE): Likewise.
29728 [IS_IN (libc)] (CENABLE): Likewise.
29729 [IS_IN (librt)] (CDISABLE): Likewise.
29730 [IS_IN (librt)] (CDISABLE): Likewise.
29731 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29732 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29733 Remove definition.
29734 (PSEUDO_END): Likewise.
29735 [IS_IN (libpthread)] (CENABLE): Likewise.
29736 [IS_IN (libpthread)] (CDISABLE): Likewise.
29737 [IS_IN (libc)] (CENABLE): Likewise.
29738 [IS_IN (libc)] (CENABLE): Likewise.
29739 [IS_IN (librt)] (CDISABLE): Likewise.
29740 [IS_IN (librt)] (CDISABLE): Likewise.
29741 (SINGLE_THREAD_P): Likewise.
29742 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29743 definition.
29744 (PSEUDO_END): Likewise.
29745 [IS_IN (libpthread)] (CENABLE): Likewise.
29746 [IS_IN (libpthread)] (CDISABLE): Likewise.
29747 [IS_IN (libc)] (CENABLE): Likewise.
29748 [IS_IN (libc)] (CENABLE): Likewise.
29749 [IS_IN (librt)] (CDISABLE): Likewise.
29750 [IS_IN (librt)] (CDISABLE): Likewise.
29751 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29752 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29753 definition.
29754 (PSEUDO_END): Likewise.
29755 [IS_IN (libpthread)] (CENABLE): Likewise.
29756 [IS_IN (libpthread)] (CDISABLE): Likewise.
29757 [IS_IN (libc)] (CENABLE): Likewise.
29758 [IS_IN (libc)] (CENABLE): Likewise.
29759 [IS_IN (librt)] (CDISABLE): Likewise.
29760 [IS_IN (librt)] (CDISABLE): Likewise.
29761 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29762 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29763 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29764 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29765 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29766 definition.
29767 (PSEUDO_END): Likewise.
29768 [IS_IN (libpthread)] (CENABLE): Likewise.
29769 [IS_IN (libpthread)] (CDISABLE): Likewise.
29770 [IS_IN (libc)] (CENABLE): Likewise.
29771 [IS_IN (libc)] (CENABLE): Likewise.
29772 [IS_IN (librt)] (CDISABLE): Likewise.
29773 [IS_IN (librt)] (CDISABLE): Likewise.
29774 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29775 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29776 definition.
29777 (PSEUDO_END): Likewise.
29778 [IS_IN (libpthread)] (CENABLE): Likewise.
29779 [IS_IN (libpthread)] (CDISABLE): Likewise.
29780 [IS_IN (libc)] (CENABLE): Likewise.
29781 [IS_IN (libc)] (CENABLE): Likewise.
29782 [IS_IN (librt)] (CDISABLE): Likewise.
29783 [IS_IN (librt)] (CDISABLE): Likewise.
29784 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29785 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29786 definition.
29787 (PSEUDO_END): Likewise.
29788 [IS_IN (libpthread)] (CENABLE): Likewise.
29789 [IS_IN (libpthread)] (CDISABLE): Likewise.
29790 [IS_IN (libc)] (CENABLE): Likewise.
29791 [IS_IN (libc)] (CENABLE): Likewise.
29792 [IS_IN (librt)] (CDISABLE): Likewise.
29793 [IS_IN (librt)] (CDISABLE): Likewise.
29794 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29795 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29796 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29797 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29798 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29799 definition.
29800 (PSEUDO_END): Likewise.
29801 [IS_IN (libpthread)] (CENABLE): Likewise.
29802 [IS_IN (libpthread)] (CDISABLE): Likewise.
29803 [IS_IN (libc)] (CENABLE): Likewise.
29804 [IS_IN (libc)] (CENABLE): Likewise.
29805 [IS_IN (librt)] (CDISABLE): Likewise.
29806 [IS_IN (librt)] (CDISABLE): Likewise.
29807 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29808 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29809 definition.
29810 (PSEUDO_END): Likewise.
29811 [IS_IN (libpthread)] (CENABLE): Likewise.
29812 [IS_IN (libpthread)] (CDISABLE): Likewise.
29813 [IS_IN (libc)] (CENABLE): Likewise.
29814 [IS_IN (libc)] (CENABLE): Likewise.
29815 [IS_IN (librt)] (CDISABLE): Likewise.
29816 [IS_IN (librt)] (CDISABLE): Likewise.
29817 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29818
29819 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29820
29821 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29822
29823 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29824
29825 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29826
29827 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29828
29829 [BZ #21982]
29830 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29831 middle and outer with size_t instead of int. Repleace %d and
29832 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29833 "MAX (outer, nchars - 64)" to support unsigned outer and
29834 nchars. Also exit loop when outer == 0.
29835
29836 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29837
29838 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29839 * include/signal.h (__sigsuspend_nocancel): Likewise.
29840 * include/time.h (__nanosleep_nocancel): Likewise.
29841 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29842 * login/utmp_file.c: Include non cancellable syscall header.
29843 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29844 prototype.
29845
29846 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29847
29848 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29849 .byte sequences with AVX512F instructions.
29850 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29851 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29852 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29853 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29854 Likewise.
29855 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29856 Likewise.
29857
29858 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29859 Steve Ellcey <sellcey@cavium.com>
29860
29861 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29862 Use PTR_REG macro in cmp instruction.
29863
29864 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29865
29866 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29867 Change the return type of the ifunc resolver to match the return
29868 type of the target function.
29869
29870 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29871
29872 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29873 (preadv64): Likewise.
29874 (pwrite64(: Likewise.
29875 (pwritev64): Likewise.
29876
29877 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29878 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29879 (LOAD_ARGS_0): Likewise.
29880 (LOAD_ARGS_1): Likewise.
29881 (LOAD_ARGS_2): Likewise.
29882 (LOAD_ARGS_3): Likewise.
29883 (LOAD_ARGS_4): Likewise.
29884 (LOAD_ARGS_5): Likewise.
29885 (LOAD_ARGS_6): Likewise.
29886 (LOAD_REGS_0): Likewise.
29887 (LOAD_REGS_1): Likewise.
29888 (LOAD_REGS_2): Likewise.
29889 (LOAD_REGS_3): Likewise.
29890 (LOAD_REGS_4): Likewise.
29891 (LOAD_REGS_5): Likewise.
29892 (LOAD_REGS_6): Likewise.
29893 (ASM_ARGS_0): Likewise.
29894 (ASM_ARGS_1): Likewise.
29895 (ASM_ARGS_2): Likewise.
29896 (ASM_ARGS_3): Likewise.
29897 (ASM_ARGS_4): Likewise.
29898 (ASM_ARGS_5): Likewise.
29899 (ASM_ARGS_6): Likewise.
29900 (LOAD_ARGS_TYPES_1): Likewise.
29901 (LOAD_ARGS_TYPES_2): Likewise.
29902 (LOAD_ARGS_TYPES_3): Likewise.
29903 (LOAD_ARGS_TYPES_4): Likewise.
29904 (LOAD_ARGS_TYPES_5): Likewise.
29905 (LOAD_ARGS_TYPES_6): Likewise.
29906 (LOAD_REGS_TYPES_1): Likewise.
29907 (LOAD_REGS_TYPES_2): Likewise.
29908 (LOAD_REGS_TYPES_3): Likewise.
29909 (LOAD_REGS_TYPES_4): Likewise.
29910 (LOAD_REGS_TYPES_5): Likewise.
29911 (LOAD_REGS_TYPES_6): Likewise.
29912 (TYPEFY): New define.
29913 (ARGIFY): Likewise.
29914 (internal_syscall0): Likewise.
29915 (internal_syscall1): Likewise.
29916 (internal_syscall2): Likewise.
29917 (internal_syscall3): Likewise.
29918 (internal_syscall4): Likewise.
29919 (internal_syscall5): Likewise.
29920 (internal_syscall6): Likewise.
29921 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29922 (INTERNAL_SYSCALL_NCS): Remove define.
29923 (internal_syscall1): Add define.
29924
29925 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29926
29927 * math/w_remainder_compat.c: Remove duplicate inclusion of
29928 math-svid-compat.h.
29929 * math/w_remainderf_compat.c: Likewise.
29930 * math/w_remainderl_compat.c: Likewise.
29931
29932 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29933
29934 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29935
29936 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29937
29938 [BZ #21684]
29939 * math/tgmath.h (__floating_type): Simplify definitions.
29940 (__real_integer_type): New macro.
29941 (__complex_integer_type): Likewise.
29942 (__expr_is_real): Likewise.
29943 (__tgmath_real_type_sub): Update comment to describe handling of
29944 complex types.
29945 (__tgmath_complex_type_sub): New macro.
29946 (__tgmath_complex_type): Likewise.
29947 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29948 (__TGMATH_CF128): Use __expr_is_real.
29949 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29950 __expr_is_real.
29951 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29952 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29953 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29954 integer types.
29955
29956 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29957
29958 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29959 macro.
29960 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29961 alias.
29962 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29963 Likewise.
29964
29965 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29966 nanosleep_not_cancel with __nanosleep_nocancel.
29967 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29968 (__nanosleep_nocancel): New macro.
29969 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29970 function.
29971 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29972 macro.
29973 (__nanosleep_nocancel): New prototype.
29974
29975 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29976 pause_not_cancel with __pause_nocancel.
29977 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29978 (__pause_nocancel): New macro.
29979 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29980 macro.
29981 (__pause_nocancel): New prototype.
29982 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29983
29984 2017-08-22 Martin Sebor <msebor@redhat.com>
29985
29986 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29987 to return a pointer to the same type as the target function.
29988
29989 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29990
29991 [BZ #18822]
29992 [BZ #21986]
29993 * include/printf.h (__printf_fphex): Add attribute_hidden.
29994 (__guess_grouping): New prototype.
29995 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29996 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29997 libc_hidden_proto and libc_hidden_def.
29998 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29999 (__vstrfmon_l): Remove the third argument passed to
30000 __guess_grouping.
30001
30002 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30003
30004 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30005 definition for issignaling that does not rely on __MATH_TG,
30006 since __MATH_TG uses __builtin_types_compatible_p, which is only
30007 available in C mode.
30008 (CFLAGS-test-math-issignaling.cc): New variable.
30009 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30010 * math/test-math-issignaling.cc: New test for C++ implementation
30011 of type-generic issignaling.
30012 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30013 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30014 options of test-math-issignaling on powerpc64le.
30015
30016 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30017
30018 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30019 building libc.a.
30020 (hidden_proto): Likewise.
30021 (hidden_tls_proto): Likewise.
30022 (__hidden_proto): Likewise.
30023
30024 2017-08-22 Florian Weimer <fweimer@redhat.com>
30025
30026 math: Statically link tests of internal functionality.
30027 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30028 atest-exp2.
30029 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30030 (gmp-objs): Remove assignment.
30031 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30032
30033 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30034
30035 [BZ #21987]
30036 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30037 and copy to ...
30038 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30039 ... here.
30040 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30041 ... and here.
30042
30043 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30044 variable definitions above inclusion of ../Rules.
30045
30046 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30047
30048 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30049 case calling __builtin_unreachable.
30050
30051 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30052
30053 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30054 __waitpid_nocancel.
30055 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30056 (__waitpid_nocancel): New macro.
30057 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30058 macro.
30059 (__waitpid_nocancel): Replace macro with a function.
30060 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30061 function.
30062
30063 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30064 __fcntl_nocancel.
30065 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30066 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30067
30068 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30069 __writev_nocancel_nostatus.
30070 (write_call_graph): Likewise.
30071 (write_bb_counts): Likewise.
30072 * resolv/herror.c (herror): Likewise.
30073 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30074 macro.
30075 (__writev_nocancel_nostatus): New macro.
30076 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30077 Remove macro.
30078 (__writev_nocancel_nostatus): New function.
30079
30080 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30081
30082 Revert:
30083 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30084
30085 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30086 building libc.a.
30087 (hidden_proto): Likewise.
30088 (hidden_tls_proto): Likewise.
30089 (__hidden_proto): Likewise.
30090
30091 [BZ #21973]
30092 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30093 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30094 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30095 Likewise.
30096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30097 Likewise.
30098 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30099 Likewise.
30100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30101 Likewise.
30102 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30103 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30104 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30105 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30106 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30107 GLIBC_2.0 sqrtl symbol.
30108
30109 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30110 [__USE_MISC] (_LIB_VERSION): Likewise.
30111 [__USE_MISC] (struct exception): Likewise.
30112 [__USE_MISC] (matherr): Likewise.
30113 [__USE_MISC] (DOMAIN): Likewise.
30114 [__USE_MISC] (SING): Likewise.
30115 [__USE_MISC] (OVERFLOW): Likewise.
30116 [__USE_MISC] (UNDERFLOW): Likewise.
30117 [__USE_MISC] (TLOSS): Likewise.
30118 [__USE_MISC] (PLOSS): Likewise.
30119 [__USE_MISC] (HUGE): Likewise.
30120 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30121 * math/math-svid-compat.h: New file.
30122 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30123 and matherrl.
30124 * include/math.h [!_ISOMAC] (__matherr): Remove.
30125 * manual/arith.texi (FP Exceptions): Do not document matherr.
30126 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30127 (tests-internal): New variable.
30128 (install-lib): Do not add libieee.a.
30129 (non-lib.a): Likewise.
30130 (extra-objs): Do not add libieee.a and ieee-math.o.
30131 (CPPFLAGS-s_lib_version.c): Remove variable.
30132 ($(objpfx)libieee.a): Remove rule.
30133 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30134 * math/ieee-math.c: Remove.
30135 * math/libm-test-support.c (matherr): Remove.
30136 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30137 and license notices. Include <math-svid-compat.h> and
30138 <shlib-compat.h>.
30139 (matherr): Undefine as macro. Use compat_symbol_reference.
30140 (_LIB_VERSION): Likewise.
30141 * math/test-matherr-2.c: New file.
30142 * math/test-matherr-3.c: Likewise.
30143 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30144 declaration.
30145 (__kernel_standard_f): Likewise.
30146 (__kernel_standard_l): Likewise.
30147 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30148 <math_private.h>. Include <math-svid-compat.h>.
30149 (_LIB_VERSION): Undefine as macro.
30150 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30151 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30152 [LIBM_SVID_COMPAT], use compat_symbol.
30153 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30154 <math_private.h>. Include <math-svid-compat.h>.
30155 (matherr): Undefine as macro.
30156 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30157 compat_symbol.
30158 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30159 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30160 compat_symbol_reference.
30161 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30162 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30163 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30164 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30165 (MATHERR_D): Remove declaration.
30166 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30167 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30168 [LIBM_BUILD] (pmatherrf): Likewise.
30169 [LIBM_BUILD] (pmatherr): Likewise.
30170 [LIBM_BUILD] (pmatherrl): Likewise.
30171 (DOMAIN): Likewise.
30172 (SING): Likewise.
30173 (OVERFLOW): Likewise.
30174 (UNDERFLOW): Likewise.
30175 (TLOSS): Likewise.
30176 (PLOSS): Likewise.
30177 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30178 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30179 compat_symbol.
30180 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30181 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30182 compat_symbol.
30183 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30184 * math/w_acos_compat.c: Likewise.
30185 * math/w_acosf_compat.c: Likewise.
30186 * math/w_acosh_compat.c: Likewise.
30187 * math/w_acoshf_compat.c: Likewise.
30188 * math/w_acoshl_compat.c: Likewise.
30189 * math/w_acosl_compat.c: Likewise.
30190 * math/w_asin_compat.c: Likewise.
30191 * math/w_asinf_compat.c: Likewise.
30192 * math/w_asinl_compat.c: Likewise.
30193 * math/w_atan2_compat.c: Likewise.
30194 * math/w_atan2f_compat.c: Likewise.
30195 * math/w_atan2l_compat.c: Likewise.
30196 * math/w_atanh_compat.c: Likewise.
30197 * math/w_atanhf_compat.c: Likewise.
30198 * math/w_atanhl_compat.c: Likewise.
30199 * math/w_cosh_compat.c: Likewise.
30200 * math/w_coshf_compat.c: Likewise.
30201 * math/w_coshl_compat.c: Likewise.
30202 * math/w_exp10_compat.c: Likewise.
30203 * math/w_exp10f_compat.c: Likewise.
30204 * math/w_exp10l_compat.c: Likewise.
30205 * math/w_exp2_compat.c: Likewise.
30206 * math/w_exp2f_compat.c: Likewise.
30207 * math/w_exp2l_compat.c: Likewise.
30208 * math/w_fmod_compat.c: Likewise.
30209 * math/w_fmodf_compat.c: Likewise.
30210 * math/w_fmodl_compat.c: Likewise.
30211 * math/w_hypot_compat.c: Likewise.
30212 * math/w_hypotf_compat.c: Likewise.
30213 * math/w_hypotl_compat.c: Likewise.
30214 * math/w_j0_compat.c: Likewise.
30215 * math/w_j0f_compat.c: Likewise.
30216 * math/w_j0l_compat.c: Likewise.
30217 * math/w_j1_compat.c: Likewise.
30218 * math/w_j1f_compat.c: Likewise.
30219 * math/w_j1l_compat.c: Likewise.
30220 * math/w_jn_compat.c: Likewise.
30221 * math/w_jnf_compat.c: Likewise.
30222 * math/w_jnl_compat.c: Likewise.
30223 * math/w_lgamma_main.c: Likewise.
30224 * math/w_lgamma_r_compat.c: Likewise.
30225 * math/w_lgammaf_main.c: Likewise.
30226 * math/w_lgammaf_r_compat.c: Likewise.
30227 * math/w_lgammal_main.c: Likewise.
30228 * math/w_lgammal_r_compat.c: Likewise.
30229 * math/w_log10_compat.c: Likewise.
30230 * math/w_log10f_compat.c: Likewise.
30231 * math/w_log10l_compat.c: Likewise.
30232 * math/w_log2_compat.c: Likewise.
30233 * math/w_log2f_compat.c: Likewise.
30234 * math/w_log2l_compat.c: Likewise.
30235 * math/w_log_compat.c: Likewise.
30236 * math/w_logf_compat.c: Likewise.
30237 * math/w_logl_compat.c: Likewise.
30238 * math/w_pow_compat.c: Likewise.
30239 * math/w_powf_compat.c: Likewise.
30240 * math/w_powl_compat.c: Likewise.
30241 * math/w_remainder_compat.c: Likewise.
30242 * math/w_remainderf_compat.c: Likewise.
30243 * math/w_remainderl_compat.c: Likewise.
30244 * math/w_scalb_compat.c: Likewise.
30245 * math/w_scalbf_compat.c: Likewise.
30246 * math/w_scalbl_compat.c: Likewise.
30247 * math/w_sinh_compat.c: Likewise.
30248 * math/w_sinhf_compat.c: Likewise.
30249 * math/w_sinhl_compat.c: Likewise.
30250 * math/w_sqrt_compat.c: Likewise.
30251 * math/w_sqrtf_compat.c: Likewise.
30252 * math/w_sqrtl_compat.c: Likewise.
30253 * math/w_tgamma_compat.c: Likewise.
30254 * math/w_tgammaf_compat.c: Likewise.
30255 * math/w_tgammal_compat.c: Likewise.
30256 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30257 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30258 * sysdeps/ieee754/k_standard.c: Likewise.
30259 * sysdeps/ieee754/k_standardf.c: Likewise.
30260 * sysdeps/ieee754/k_standardl.c: Likewise.
30261 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30262 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30263 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30264 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30265 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30266 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30267 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30268 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30269 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30271 Likewise.
30272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30273 Likewise.
30274 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30275 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30276 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30277 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30278
30279 2017-08-21 Florian Weimer <fweimer@redhat.com>
30280
30281 [BZ #21864]
30282 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30283 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30284 Move before inclusion of ../Rules.
30285
30286 2017-08-21 Florian Weimer <fweimer@redhat.com>
30287
30288 [BZ #21972]
30289 * assert/assert.h (assert): Use static_cast (bool) for C++.
30290 Use the ternary operator in the warning branch for GNU C.
30291 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30292 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30293 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30294 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30295 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30296
30297 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30298
30299 [BZ #18822]
30300 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30301 (__syscall_clock_gettime): Add attribute_hidden.
30302 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30303 (__start_context): Likewise.
30304
30305 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30306
30307 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30308 building libc.a.
30309 (hidden_proto): Likewise.
30310 (hidden_tls_proto): Likewise.
30311 (__hidden_proto): Likewise.
30312
30313 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30314
30315 * include/libc-symbols.h (attribute_hidden): Enable hidden
30316 visibility in libc.a compiled with PIE.
30317
30318 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30319
30320 [BZ #18822]
30321 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30322 Add attribute_hidden.
30323
30324 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30325
30326 [BZ #21864]
30327 * Makerules (all-nonlib): Add $(others-extras).
30328 * catgets/Makefile (others-extras): New.
30329 * elf/Makefile (others-extras): Likewise.
30330 * nss/Makefile (others-extras): Likewise.
30331
30332 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30333
30334 [BZ #18822]
30335 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30336 * elf/dl-open.c: Include <libc-internal.h>.
30337 (__libc_multiple_libcs): Removed.
30338 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30339 <hp-timing.h>.
30340 * include/libc-internal.h (__libc_multiple_libcs): New.
30341 * misc/sbrk.c: Include <libc-internal.h>.
30342 (__libc_multiple_libcs): Removed.
30343
30344 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 [BZ #18822]
30347 * grp/initgroups.c (__nss_group_database): Removed.
30348 (__nss_initgroups_database): Likewise.
30349 * nscd/gai.c (__nss_hosts_database): Likewise.
30350 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30351 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30352 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30353 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30354 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30355 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30356 attribute_hidden.
30357 * nss/nsswitch.c (__nss_database_custom): Define only if
30358 USE_NSCD is defined.
30359 (__nss_configure_lookup): Use __nss_database_custom only if
30360 USE_NSCD is defined.
30361 * nss/nsswitch.h (__nss_database_custom): Declare only if
30362 USE_NSCD is defined. Add attribute_hidden.
30363 (__nss_setent): Add attribute_hidden.
30364 (__nss_endent): Likewise.
30365 (__nss_getent_r): Likewise.
30366 (__nss_getent): Likewise.
30367 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30368
30369 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30370
30371 [BZ #18822]
30372 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30373 libc_hidden_proto and libc_hidden_def.
30374
30375 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30376
30377 [BZ #18822]
30378 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30379 Add libc_hidden_proto.
30380 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30381 Add libc_hidden_def.
30382
30383 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30384
30385 [BZ #21974]
30386 * gmon/Makefile (routines): Remove bb_init_func and
30387 bb_exit_func.
30388 (elide-routines.os): Removed.
30389 * gmon/bb_exit_func.c: Likewise.
30390 * gmon/bb_init_func.c: Likewise.
30391 * include/sys/gmon.h (__bb): Likewise.
30392 (__bb_init_func): Likewise.
30393 (__bb_exit_func): Likewise.
30394 * sysdeps/alpha/bb_init_func.S: Likewise.
30395
30396 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30397
30398 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30399 * include/setjmp.h (____longjmp_chk): Here. Add
30400 attribute_hidden.
30401
30402 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30403
30404 [BZ #18822]
30405 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30406 attribute_hidden.
30407 (__strspn_sse2): Likewise.
30408
30409 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30410
30411 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30412 (close_not_cancel_no_status): Likewise.
30413 (__close_nocancel): New macro.
30414 (__close_nocancel_nostatus): Likewise.
30415 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30416 macro.
30417 (close_not_cancel): Likewise.
30418 (close_not_cancel_no_status): Likewise.
30419 (__close_nocancel): New prototype.
30420 (__close_nocancel_nostatus): New function.
30421 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30422 * catgets/open_catalog.c (__open_catalog): Replace
30423 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30424 * gmon/gmon.c (write_gmon): Likewise.
30425 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30426 * intl/loadmsgcat.c (close): Likewise.
30427 * io/ftw.c (open_dir_stream): Likewise.
30428 (ftw_startup): Likewise.
30429 * libio/fileops.c (_IO_file_open): Likewise.
30430 (_IO_file_close_mmap): Likewise.
30431 (_IO_file_close): Likewise.
30432 * libio/iopopen.c (_IO_dup2): Likewise.
30433 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30434 * locale/loadlocale.c (_nl_load_locale): Likewise.
30435 * login/utmp_file.c (pututline_file): Likewise.
30436 (endutent_file): Likewise.
30437 * misc/daemon.c (daemon): Likewise.
30438 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30439 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30440 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30441 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30442 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30443 * nscd/nscd_helper.c (open_socket): Likewise.
30444 (__nscd_open_socket): Likewise.
30445 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30446 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30447 (__nscd_innetgr): Likewise.
30448 * nss/nss_db/db-open.c (internal_setent): Likewise.
30449 * resolv/res-close.c (__res_iclose): Likewise.
30450 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30451 * sysdeps/posix/closedir.c (__closedir): Likewise.
30452 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30453 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30454 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30455 (opendir_tail): Likewise.
30456 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30457 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30458 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30459 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30460 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30461 (gethostid): Likewise.
30462 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30463 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30464 Likewise.
30465 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30466 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30467 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30468 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30469 Likewise.
30470 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30471 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30472 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30473 Likewise.
30474 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30475 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30476 Likewise.
30477 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30478 Likewise.
30479 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30480 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30481 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30482 __close_nocancel.
30483
30484 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30485 (openat_not_cancel_3): Likewise.
30486 (openat64_not_cancel_3): Likewise).
30487 (openat_not_cancel_3): Likewise).
30488 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30489 macro.
30490 (openat_not_cancel_3): Likewise.
30491 (openat64_not_cancel): Likewise.
30492 (openat64_not_cancel_3): Likewise.
30493 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30494 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30495 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30496 __open{64}_nocancel.
30497 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30498 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30499 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30500
30501 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30502
30503 [BZ #18822]
30504 * include/argz.h (__argz_create_sep): New function prototype.
30505 (__argz_append): Likewise.
30506 (__argz_add): Likewise.
30507 (__argz_add_sep): Likewise.
30508 (__argz_delete): Likewise.
30509 (__argz_insert): Likewise.
30510 (__argz_replace): Likewise.
30511 * string/argz.h (__argz_create_sep): Removed.
30512 (__argz_append): Likewise.
30513 (__argz_add): Likewise.
30514 (__argz_add_sep): Likewise.
30515 (__argz_delete): Likewise.
30516 (__argz_insert): Likewise.
30517 (__argz_replace): Likewise.
30518
30519 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30520
30521 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30522 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30523 (GNU_PROPERTY_STACK_SIZE): Likewie.
30524 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30525 (GNU_PROPERTY_LOPROC): Likewise.
30526 (GNU_PROPERTY_HIPROC): Likewise.
30527 (GNU_PROPERTY_LOUSER): Likewise.
30528 (GNU_PROPERTY_HIUSER): Likewise.
30529 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30530 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30531 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30532 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30533 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30534 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30535 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30536 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30537 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30538 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30539 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30540 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30541 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30542 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30543 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30544 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30545 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30546 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30547 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30548 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30549 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30550 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30551 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30552
30553 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30554
30555 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30556 in C++ mode.
30557
30558 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30559
30560 [BZ #21930]
30561 * math/math.h (isinf): Check if in C or C++ mode before using
30562 __builtin_types_compatible_p, since this is a C mode feature.
30563
30564 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30565
30566 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30567 (__write_nocancel): New macro.
30568 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30569 Rewrite as a function prototype.
30570 (write_not_cancel): Remove macro.
30571 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30572 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30573 (write_gmon): Likewise.
30574 * libio/fileops.c (_IO_new_file_write): Likewise.
30575 * login/utmp_file.c (pututline_file): Likewise.
30576 (updwtmp_file): Likewise.
30577 * stdio-common/psiginfo.c (psiginfo): Likewise.
30578 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30579 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30580 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30581 Likewise.
30582 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30583 Likewise.
30584
30585 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30586 (__read_nocancel): New macro.
30587 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30588 __read_nocancel.
30589 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30590 macro.
30591 (__read_nocancel): New prototype.
30592 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30593 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30594 with __read_nocancel.
30595 * intl/loadmsgcat.c (read): Likewise.
30596 * libio/fileops.c (_IO_file_read): Likewise.
30597 * locale/loadlocale.c (_nl_load_locale): Likewise.
30598 * login/utmp_file.c (getutent_r_file): Likewise.
30599 (internal_getut_r): Likewise.
30600 (getutline_r_file): Likewise.
30601 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30602 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30603 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30604 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30605 Likewise.
30606 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30607 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30608 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30609 Likewise.
30610 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30611 Likewise.
30612 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30613 Likewise.
30614 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30615 Likewise.
30616 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30617
30618 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30619
30620 [BZ #21966]
30621 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30622 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30623 usable.
30624
30625 2017-08-17 DJ Delorie <dj@redhat.com>
30626
30627 * bug17079.c: Update to new test harness.
30628 * test-digits-dots.c: Likewise.
30629 * test-netdb.c: Likewise.
30630 * tst-field.c: Likewise.
30631 * tst-nss-getpwent.c: Likewise.
30632 * tst-nss-static.c: Likewise.
30633 * tst-nss-test1.c: Likewise.
30634 * tst-nss-test2.c: Likewise.
30635 * tst-nss-test3.c: Likewise.
30636 * tst-nss-test4.c: Likewise.
30637 * tst-nss-test5.c: Likewise.
30638
30639 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30640
30641 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30642 (open_not_cancel_2): Likewise.
30643 (open_nocancel): New macro.
30644 (open64_nocancel): Likewise.
30645 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30646 (open_not_cancel_2): Likewise.
30647 (__open_nocancel): New prototype.
30648 (__open64_nocancel): Likewise.
30649 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30650 __open_nocancel.
30651 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30652 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30653 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30654 with __open_nocancel.
30655 * csu/check_fds.c (check_one_fd): Likewise.
30656 * gmon/gmon.c (write_gmon): Likewise.
30657 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30658 * intl/loadmsgcat.c (open): Likewise.
30659 * libio/fileops.c (_IO_file_open): Likewise.
30660 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30661 * locale/loadlocale.c (_nl_load_locale): Likewise.
30662 * login/utmp_file.c (setutent_file): Likewise.
30663 * misc/daemon.c (daemon): Likewise.
30664 * nss/nss_db/db-open.c (internal_setent): Likewise.
30665 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30666 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30667 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30668 (__opendir): Likewise.
30669 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30670 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30671 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30672 (gethostid): Likewise.
30673 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30674 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30675 Likewise.
30676 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30677 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30678 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30679 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30680 Likewise.
30681 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30682 Likewise.
30683 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30684 Likewise.
30685 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30686 Likewise.
30687 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30688 Likewise.
30689 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30690 Likewise.
30691 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30692 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30693
30694 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30695
30696 * benchtests/bench-skeleton.c (main): Add support for
30697 latency benchmarking.
30698 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30699
30700 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30701
30702 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30703 the startup object.
30704
30705 2017-08-17 Florian Weimer <fweimer@redhat.com>
30706
30707 * include/sys/socket.h (__opensock): Remove internal_function.
30708 * socket/opensock.c (__opensock): Likewise.
30709 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30710
30711 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30712
30713 [BZ #21944]
30714 * signal/bits/types/__sigval_t.h: New file.
30715 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30716 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30717 and define sigval_t using __sigval_t.
30718 * include/bits/types/__sigval_t.h: New file.
30719 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30720 instead of <bits/types/__sigval_t.h>.
30721 (struct sigevent): Use __sigval_t instead of sigval_t.
30722 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30723 instead of <bits/types/__sigval_t.h>.
30724 (siginfo_t): Use __sigval_t instead of sigval_t.
30725 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30726 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30727 (struct sigevent): Use __sigval_t instead of sigval_t.
30728 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30729 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30730 (siginfo_t): Use __sigval_t instead of sigval_t.
30731 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30732
30733 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30734
30735 * NEWS: Remove "[Add new features here]" for 2.27.
30736
30737 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30738
30739 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30740 libc.so.
30741
30742 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30743
30744 * NEWS: Mention x86-64 FMA optimization.
30745
30746 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30747
30748 [BZ #21912]
30749 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30750 Add e_expf-fma.
30751 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30752 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30753 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30754
30755 2017-08-16 Andreas Schwab <schwab@suse.de>
30756
30757 [BZ #16750]
30758 CVE-2009-5064
30759 * elf/ldd.bash.in: Never run file directly.
30760
30761 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30762
30763 [BZ #21955]
30764 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30765 (L(SP_INF_0)): Likewise.
30766
30767 2017-08-15 Florian Weimer <fweimer@redhat.com>
30768
30769 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30770 run-built-tests.
30771
30772 2017-08-15 Florian Weimer <fweimer@redhat.com>
30773
30774 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30775 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30776 BROKEN_THREAD_SIGNALS code.
30777 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30778 request_list): Remove caller_pid member used for
30779 BROKEN_THREAD_SIGNALS.
30780 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30781 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30782 Remove BROKEN_THREAD_SIGNALS support.
30783 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30784 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30785
30786 2017-08-15 Florian Weimer <fweimer@redhat.com>
30787
30788 * gmon/Makefile (tests): Add tst-gmon.
30789 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30790 Set.
30791 (tests-special): Add tst-gmon-prof.out.
30792 (tst-gmon.out): Depend on clean-tst-gmon-data.
30793 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30794 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30795 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30796 startup object.
30797 * aclocal.m4 (GPROF): Set and substitute.
30798 * config.amke.in (GPROF): Set.
30799 * configure: Regenerate.
30800
30801 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30802
30803 * elf/elf.h A (NT_PPC_TAR): New macro.
30804 (NT_PPC_PPR): Likewise.
30805 (NT_PPC_DSCR): Likewise.
30806 (NT_PPC_EBB): Likewise.
30807 (NT_PPC_PMU): Likewise.
30808 (NT_PPC_TM_CGPR): Likewise.
30809 (NT_PPC_TM_CFPR): Likewise.
30810 (NT_PPC_TM_CVMX): Likewise.
30811 (NT_PPC_TM_CVSX): Likewise.
30812 (NT_PPC_TM_SPR): Likewise.
30813 (NT_PPC_TM_CTAR): Likewise.
30814 (NT_PPC_TM_CPPR): Likewise.
30815 (NT_PPC_TM_CDSCR): Likewise.
30816
30817 2017-08-15 Florian Weimer <fweimer@redhat.com>
30818
30819 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30820 regparm (2) instead of internal_function.
30821 (_MCOUNT_DECL): Adjust.
30822
30823 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30824
30825 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30826 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30827
30828 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30829
30830 * conform/data/sys/wait.h-data (si_value): Do not expect for
30831 XPG42.
30832
30833 2017-08-14 Florian Weimer <fweimer@redhat.com>
30834
30835 [BZ #21962]
30836 NSS: Create stubs for accidentally exported lookup functions.
30837 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30838 Remove declaration.
30839 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30840 (ether_hostton): Call __nss_ethers_lookup2 instead.
30841 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30842 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30843 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30844 (setup): Call __nss_netgroup_lookup2 instead.
30845 * nss/Makefile (routines): Add compat-lookup.
30846 * nss/Versions (GLIBC_2.27): Add symbol version.
30847 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30848 (DB_COMPAT_FCT): Remove.
30849 * nss/compat-lookup.c: New file.
30850 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30851 from databases.def.
30852 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30853 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30854 (netname2user): Call __nss_publickey_lookup2 instead.
30855 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30856 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30857 instead.
30858
30859 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30860 Sergei Trofimovich <slyfox@inbox.ru>
30861
30862 [BZ #21908]
30863 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30864 Rename to MMAP2_PAGE_UNIT.
30865 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30866 __OFF_T_MATCHES_OFF64_T is not defined.
30867 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30868 uint64_t.
30869 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30870 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30871
30872 2017-08-14 Florian Weimer <fweimer@redhat.com>
30873
30874 i386: Do not set internal_function.
30875 * config.h.in (USE_REGPARMS, internal_function): Remove.
30876 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30877 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30878
30879 2017-08-14 Florian Weimer <fweimer@redhat.com>
30880
30881 * elf/dl-init.c (_dl_init): Remove internal_function.
30882 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30883 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30884
30885 2017-08-14 Florian Weimer <fweimer@redhat.com>
30886
30887 * elf/rtld.c (_dl_start): Remove internal_function.
30888 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30889 _dl_start.
30890
30891 2017-08-14 Florian Weimer <fweimer@redhat.com>
30892
30893 * elf/dl-fini.c (_dl_fini): Remove internal_function
30894 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30895
30896 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30897
30898 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30899 (bit_cpu_SHSTK): Likewise.
30900 (index_cpu_IBT): Likewise.
30901 (index_cpu_SHSTK): Likewise.
30902 (reg_IBT): Likewise.
30903 (reg_SHSTK): Likewise.
30904 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30905 Handle index_cpu_IBT and index_cpu_SHSTK.
30906
30907 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30908
30909 [BZ #19982]
30910 * po/fr.po: Fix spelling mistake.
30911
30912 2017-08-13 Florian Weimer <fweimer@redhat.com>
30913
30914 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30915 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30916 (_dl_catch_error, _dl_receive_error): Likewise.
30917 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30918 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30919 (_dl_deallocate_tls): Likewise.
30920 * include/dlfcn.h (_dl_addr): Likewise.
30921 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30922 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30923 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30924 Likewise.
30925
30926 2017-08-13 Florian Weimer <fweimer@redhat.com>
30927
30928 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30929 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30930 internal_function.
30931 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30932
30933 2017-08-13 Florian Weimer <fweimer@redhat.com>
30934
30935 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30936 internal_function.
30937 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30938 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30939 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30940 internal_function from _dl_make_stack_executable_hook member.
30941 (_dl_make_stack_executable): Remove internal_function.
30942 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30943 Likewise.
30944 * sysdeps/unix/sysv/linux/dl-execstack.c
30945 (_dl_make_stack_executable): Likewise.
30946
30947 2017-08-13 Florian Weimer <fweimer@redhat.com>
30948
30949 * sysdeps/unix/sysv/linux/netlinkaccess.h
30950 (__netlink_assert_response): Remove internal_function.
30951 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30952 (__netlink_assert_response): Likewise.
30953
30954 2017-08-13 Florian Weimer <fweimer@redhat.com>
30955
30956 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30957 internal_function.
30958 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30959
30960 2017-08-13 Florian Weimer <fweimer@redhat.com>
30961
30962 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30963 internal_function.
30964 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30965 * inet/netgroup.h (__internal_setnetgrent)
30966 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30967 * inet/getnetgrent_r.c (__internal_setnetgrent)
30968 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30969 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30970 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30971 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30972 * nss/nsswitch.h (db_lookup_function): Likewise.
30973
30974 2017-08-13 Florian Weimer <fweimer@redhat.com>
30975
30976 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30977 Remove internal_function.
30978 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30979 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30980 message argument on the stack.
30981 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30982 Likeweise.
30983
30984 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30985
30986 Adapt test case data to the changes in the thousands
30987 separators.
30988
30989 [BZ #20756]
30990 * localedata/tst-langinfo.sh: Adapt test case data.
30991 * stdlib/tst-strfmon_l.c: Likewise.
30992 * stdlib/tst-strtod4.c: Likewise.
30993 * stdlib/tst-strtod5i.c: Likewise.
30994
30995 2017-08-11 Florian Weimer <fweimer@redhat.com>
30996
30997 [BZ #21242]
30998 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30999 Suppress pedantic warning resulting from statement expression.
31000 (__ASSERT_FUNCTION): Add missing __extension__.
31001
31002 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31003
31004 * benchtests/bench-memmove-large.c: Print output in JSON
31005 format.
31006 * benchtests/bench-memmove.c: Likewise.
31007
31008 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31009 * benchtests/bench-memchr.c (do_one_test): Likewise.
31010 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31011 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31012 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31013 * benchtests/bench-memmove.c (do_one_test): Likewise.
31014 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31015 * benchtests/bench-memset.c (do_one_test): Likewise.
31016 * benchtests/bench-string.h (test_init): Remove memsets.
31017
31018 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31019
31020 * manual/lang.texi
31021 (Computing the Width of an Integer Data Type): Rename section to
31022 "Width of an Integer Type". Remove inaccurate statement regarding
31023 lack of C language facilities for determining width of integer
31024 types, and reorder content to improve flow and context of
31025 discussion.
31026
31027 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31028
31029 * lang.texi (va_copy): Change standard from ISO to C99.
31030 (__va_copy): Add standard and header annotation.
31031 Update description for clarity of origins and current use.
31032
31033 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31034
31035 [BZ #21941]
31036 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31037 xssqrtqp requires operands to be in Vector Registers
31038 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31039 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31040 (__ieee754_sqrtf128): Likewise.
31041
31042 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31043
31044 * sysdeps/aarch64/memcmp.S (memcmp):
31045 Rewrite of optimized memcmp.
31046
31047 2017-08-10 Florian Weimer <fweimer@redhat.com>
31048
31049 Introduce ld.so exceptions.
31050 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31051 (_dl_exception_create, _dl_exception_create_format)
31052 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31053 (_dl_catch_exception): Declare.
31054 (_dl_catch_error): Update comment.
31055 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31056 errstring, malloced members with exception member.
31057 (_dl_out_of_memory): Remove.
31058 (fatal_error): New function, extracted from _dl_signal_error.
31059 (_dl_signal_exception, _dl_signal_cexception): New functions.
31060 (_dl_signal_error): Call _dl_exception_create to allocate an
31061 exception object.
31062 (_dl_catch_exception): New function, based on _dl_catch_error.
31063 (_dl_catch_error): Implement using _dl_catch_exception.
31064 * elf/dl-exception.c: New file.
31065 * elf/Makefile (dl-routines): Add dl-exception.
31066 (elide-routines.os): Likewise.
31067 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31068 _dl_exception_create_format, _dl_exception_free.
31069 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31070 _dl_signal_exception.
31071 * elf/dl-lookup.c (make_string): Remove.
31072 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31073 _dl_signal_cexception, _dl_exception_free.
31074 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31075 _dl_signal_exception.
31076 * elf/dl-sym.c (do_sym): Likewise.
31077 * elf/dl-version.c (make_string): Remove.
31078 (match_symbol): Use _dl_exception_create_format,
31079 _dl_signal_cexception, _dl_exception_free.
31080 (_dl_check_map_versions): Likewise.
31081 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31082 _dl_catch_exception.
31083 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31084 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31085 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31086 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31087 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31088 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31089 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31090 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31091 Likewise.
31092 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31093 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31094 (ld.so): Likewise.
31095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31096 (ld.so): Likewise.
31097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31098 Likewise.
31099 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31100 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31101 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31102 Likewise.
31103 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31104 Likewise.
31105 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31106
31107 2017-08-10 Florian Weimer <fweimer@redhat.com>
31108
31109 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31110 attribute_hidden, internal_function.
31111 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31112 internal_function.
31113
31114 2017-08-10 Florian Weimer <fweimer@redhat.com>
31115
31116 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31117 function which calls __builtin_unreachable.
31118
31119 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31120
31121 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31122 Indian monetary formatting
31123 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31124 test cases.
31125
31126 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31127
31128 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31129 Fix typo in comment.
31130
31131 [BZ #21928]
31132 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31133 PTRACE_SEIZE_DEVEL): Remove.
31134 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31135 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31136 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31137 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31138 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31139
31140 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31141
31142 * posix/bits/types.h (__qaddr_t): Remove.
31143
31144 [BZ #21457]
31145 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31146 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31147 __glibc_reserved1.
31148 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31149 (ucontext_t): Use __ctx with uc_flags.
31150 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31151 (__ctxt): Likewise.
31152 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31153 __glibc_reserved1.
31154 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31155 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31156 __glibc_reserved1.
31157 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31158 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31159 __glibc_reserved1.
31160 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31161 macro.
31162 (ucontext_t): Use __ctx with uc_flags.
31163 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31164 (ucontext_t): Use __ctx with uc_flags.
31165 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31166 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31167 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31168 (ucontext_t): Use __ctx with uc_flags.
31169 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31170 undefine further down.
31171 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31172 __glibc_reserved1.
31173 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31174 undefine further down.
31175 (ucontext_t): Use __ctx with uc_flags.
31176 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31177 undefine further down.
31178 (ucontext_t): Use __ctx with uc_flags.
31179 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31180 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31181 Rename uc_pad to __glibc_reserved1.
31182 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31183 undefine further down.
31184 (ucontext_t): Use __ctx with uc_flags.
31185 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31186 further down.
31187 (ucontext_t): Use __ctx with uc_flags.
31188 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31189 __ctx with uc_flags.
31190 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31191 (ucontext_t): Use __ctx with uc_flags.
31192 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31193 __ctx with uc_flags.
31194
31195 2017-08-09 Florian Weimer <fweimer@redhat.com>
31196
31197 [BZ #21932]
31198 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31199 before early return.
31200
31201 2017-08-09 Andreas Schwab <schwab@suse.de>
31202
31203 [BZ #21041]
31204 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31205 renamed alias.
31206
31207 [BZ #21041]
31208 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31209 tst-compat-forwarder.
31210 (modules-names): Add tst-compat-forwarder-mod.
31211 ($(objpfx)tst-compat-forwarder): Depend on
31212 $(objpfx)tst-compat-forwarder-mod.so.
31213 * nptl/tst-compat-forwarder.c: New file.
31214 * nptl/tst-compat-forwarder-mod.c: New file.
31215
31216 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31217
31218 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31219 comments.
31220
31221 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31222 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31223 memcpy_falkor.
31224 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31225 Bump.
31226 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31227 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31228 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31229 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31230 Add falkor.
31231 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31232 New macro.
31233
31234 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31235
31236 [BZ #759]
31237 * manual/setjmp.texi (getcontex): Document uc_stack value
31238 compatibility differences.
31239
31240 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31241
31242 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31243 (old_malloc_hook): Likewise.
31244 (old_memalign_hook): Likewise.
31245 (old_realloc_hook): Likewise.
31246 (struct hdr): Likewise.
31247 (flood): Likewise.
31248 (freehook): Likewise.
31249 (mallochook): Likewise.
31250 (memalignhook): Likewise.
31251 (reallochook): Likewise.
31252 (mprobe): Likewise.
31253 * malloc/mtrace.c (mallwatch): Likewise.
31254 (tr_old_free_hook): Likewise.
31255 (tr_old_malloc_hook): Likewise.
31256 (tr_old_realloc_hook): Likewise.
31257 (tr_old_memalign_hook): Likewise.
31258 (tr_where): Likewise.
31259 (lock_and_info): Likewise.
31260 (tr_freehook): Likewise.
31261 (tr_mallochook): Likewise.
31262 (tr_reallochook): Likewise.
31263 (tr_memalignhook): Likewise.
31264 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31265 * misc/mmap.c (__mmap): Likewise.
31266 * misc/mmap64.c (__mmap64): Likewise.
31267 * misc/mprotect.c (__mprotect): Likewise.
31268 * misc/msync.c (msync): Likewise.
31269 * misc/munmap.c (__munmap): Likewise.
31270 * posix/posix_madvise.c (posix_madvise): Likewise.
31271 * socket/send.c (__send): Likewise.
31272 * socket/sendto.c (__sendto): Likewise.
31273 * socket/setsockopt.c (__setsockopt): Likewise.
31274 * string/memcmp.c (__ptr_t): Remove macro.
31275 (MEMCMP): Use void * instead of ptr_t.
31276 * string/memrchr.c (__ptr_t): Remove macro.
31277 (__memrchr): Use void * instead of ptr_t.
31278 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31279 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31280 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31281 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31282 * sysdeps/mach/msync.c (msync): Likewise.
31283 * sysdeps/mach/munmap.c (__munmap): Likewise.
31284 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31285 Likewise.
31286 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31287 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31288 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31289 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31290 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31291 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31292 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31293 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31294 Likewise.
31295 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31296 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31297 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31298 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31299 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31300 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31301 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31302 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31303 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31304 Likewise.
31305 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31306 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31307 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31308 (MEMCMP): Use void * instead of ptr_t.
31309 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31310 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31311
31312 2017-08-08 Florian Weimer <fweimer@redhat.com>
31313
31314 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31315 return statement.
31316
31317 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31318
31319 [BZ #21913]
31320 * csu/libc-tls.c: Include <startup.h> first.
31321 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31322 * elf/dl-tunables.c: Include <startup.h> first.
31323 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31324 * sysdeps/generic/startup.h: New file.
31325 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31326 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31327 (I386_USE_SYSENTER): New. Defined to 0.
31328
31329 2017-08-08 Andreas Schwab <schwab@suse.de>
31330
31331 [BZ #21041]
31332 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31333 * nptl/pt-system.c (system): Likewise.
31334
31335 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31336
31337 [BZ #21780]
31338 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31339 EOPNOTSUPP.
31340 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31341 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31342 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31343 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31344 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31345 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31346 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31347
31348 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31349
31350 [BZ #21899]
31351 * bits/sigaction.h (struct sigaction): Define sa_handler and
31352 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31353 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31354 [__USE_XOPEN_EXTENDED].
31355 (SA_RESTART): Likewise.
31356 (SA_NODEFER): Likewise.
31357 (SA_RESETHAND): Likewise.
31358 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31359 (struct sigaction): Define sa_handler and sa_sigaction using union
31360 also for [__USE_XOPEN_EXTENDED].
31361 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31362 [__USE_XOPEN_EXTENDED].
31363 (SA_RESTART): Likewise.
31364 (SA_NODEFER): Likewise.
31365 (SA_RESETHAND): Likewise.
31366 * sysdeps/unix/sysv/linux/bits/sigaction.h
31367 (struct sigaction): Define sa_handler and sa_sigaction using union
31368 also for [__USE_XOPEN_EXTENDED].
31369 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31370 [__USE_XOPEN_EXTENDED].
31371 (SA_RESTART): Likewise.
31372 (SA_NODEFER): Likewise.
31373 (SA_RESETHAND): Likewise.
31374 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31375 (struct sigaction): Define sa_handler and sa_sigaction using union
31376 also for [__USE_XOPEN_EXTENDED].
31377 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31378 [__USE_XOPEN_EXTENDED].
31379 (SA_RESTART): Likewise.
31380 (SA_NODEFER): Likewise.
31381 (SA_RESETHAND): Likewise.
31382 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31383 (struct sigaction): Define sa_handler and sa_sigaction using union
31384 also for [__USE_XOPEN_EXTENDED].
31385 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31386 [__USE_XOPEN_EXTENDED].
31387 (SA_RESTART): Likewise.
31388 (SA_NODEFER): Likewise.
31389 (SA_RESETHAND): Likewise.
31390 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31391 (struct sigaction): Define sa_handler and sa_sigaction using union
31392 also for [__USE_XOPEN_EXTENDED].
31393 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31394 [__USE_XOPEN_EXTENDED].
31395 (SA_RESTART): Likewise.
31396 (SA_NODEFER): Likewise.
31397 (SA_RESETHAND): Likewise.
31398 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31399 (struct sigaction): Define sa_handler and sa_sigaction using union
31400 also for [__USE_XOPEN_EXTENDED].
31401 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31402 [__USE_XOPEN_EXTENDED].
31403 (SA_RESTART): Likewise.
31404 (SA_NODEFER): Likewise.
31405 (SA_RESETHAND): Likewise.
31406 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31407 (struct sigaction): Define sa_handler and sa_sigaction using union
31408 also for [__USE_XOPEN_EXTENDED].
31409 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31410 [__USE_XOPEN_EXTENDED].
31411 (SA_RESTART): Likewise.
31412 (SA_NODEFER): Likewise. Define directly rather than as alias.
31413 (SA_RESETHAND): Likewise.
31414 (SA_INTERRUPT): Define only for [__USE_MISC].
31415 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31416 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31417 [__USE_MISC].
31418 (SA_STACK): Define only for [__USE_MISC].
31419 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31420 (struct sigaction): Define sa_handler and sa_sigaction using union
31421 also for [__USE_XOPEN_EXTENDED].
31422 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31423 [__USE_XOPEN_EXTENDED].
31424 (SA_RESTART): Likewise.
31425 (SA_NODEFER): Likewise.
31426 (SA_RESETHAND): Likewise.
31427 (SA_NOPTRACE): Define only for [__USE_MISC].
31428
31429 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31430 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31431 (struct catalog_info): Likewise.
31432 * inet/htontest.c (lo): Likewise.
31433 (foo): Likewise.
31434 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31435 * inet/inet_net.c (inet_network): Likewise.
31436 * inet/inet_netof.c (inet_netof): Likewise.
31437 * inet/rcmd.c (__ivaliduser): Likewise.
31438 (iruserok): Likewise.
31439 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31440 * locale/programs/locale-spec.c (locale_special): Likewise.
31441 * nis/nis_findserv.c (struct findserv_req): Likewise.
31442 (__nis_findfastest_with_timeout): Likewise.
31443 * nss/test-netdb.c (test_network): Likewise.
31444 * resolv/inet_neta.c (inet_neta): Likewise.
31445 * resolv/ns_date.c (ns_datetosecs): Likewise.
31446 (SECS_PER_DAY): Likewise.
31447 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31448 Likewise.
31449 * resolv/res_comp.c (__putlong): Likewise.
31450 (__putshort): Likewise.
31451 (_getlong): Likewise.
31452 (_getshort): Likewise.
31453 * resolv/res_debug.c (p_time): Likewise.
31454 (precsize_ntoa): Likewise.
31455 (precsize_aton): Likewise.
31456 (latlon2ul): Likewise.
31457 (loc_aton): Likewise.
31458 (loc_ntoa): Likewise.
31459 * resolv/res_hconf.c (struct netaddr): Likewise.
31460 (_res_hconf_reorder_addrs): Likewise.
31461 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31462 (clnttcp_control): Likewise.
31463 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31464 (clntudp_control): Likewise.
31465 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31466 (clntunix_control): Likewise.
31467 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31468 * sunrpc/rpc/auth.h (union des_block): Likewise.
31469 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31470 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31471 (xdrrec_create): Likewise.
31472 (xdrrec_endofrecord): Likewise.
31473 (flush_out): Likewise.
31474 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31475 (xdrstdio_putlong): Likewise.
31476 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31477 Likewise.
31478
31479 * misc/sys/cdefs.h (__long_double_t): Remove.
31480 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31481 instead of __long_double_t,
31482 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31483
31484 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31485
31486 * benchtests/scripts/compare_strings.py: Avoid display error when
31487 running on a text terminal.
31488
31489 * benchtests/scripts/compare_strings.py (main): Add an
31490 optional -base option.
31491 (process_results): New argument base_func.
31492
31493 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31494 hardcoding memcpy.
31495 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31496 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31497
31498 2017-08-07 Andreas Schwab <schwab@suse.de>
31499
31500 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31501 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31502 * intl/Makefile ($(objpfx)tst-gettext.out)
31503 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31504 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31505 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31506 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31507 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31508 * posix/Makefile ($(objpfx)globtest.out)
31509 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31510 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31511 ($(objpfx)tst-printf.out): Likewise.
31512 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31513 ($(objpfx)tst-setcontext3.out): Likewise.
31514
31515 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31516
31517 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31518 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31519 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31520 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31521 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31522 and mptan-fma.
31523 (CFLAGS-doasin-fma.c): New.
31524 (CFLAGS-dosincos-fma.c): Likewise.
31525 (CFLAGS-e_asin-fma.c): Likewise.
31526 (CFLAGS-e_atan2-fma.c): Likewise.
31527 (CFLAGS-e_exp-fma.c): Likewise.
31528 (CFLAGS-e_log-fma.c): Likewise.
31529 (CFLAGS-e_pow-fma.c): Likewise.
31530 (CFLAGS-halfulp-fma.c): Likewise.
31531 (CFLAGS-mpa-fma.c): Likewise.
31532 (CFLAGS-mpatan-fma.c): Likewise.
31533 (CFLAGS-mpatan2-fma.c): Likewise.
31534 (CFLAGS-mpexp-fma.c): Likewise.
31535 (CFLAGS-mplog-fma.c): Likewise.
31536 (CFLAGS-mpsqrt-fma.c): Likewise.
31537 (CFLAGS-mptan-fma.c): Likewise.
31538 (CFLAGS-s_atan-fma.c): Likewise.
31539 (CFLAGS-sincos32-fma.c): Likewise.
31540 (CFLAGS-slowexp-fma.c): Likewise.
31541 (CFLAGS-slowpow-fma.c): Likewise.
31542 (CFLAGS-s_sin-fma.c): Likewise.
31543 (CFLAGS-s_tan-fma.c): Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31545 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31559 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31561 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31562 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31563 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31564 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31565 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31566 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31567 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31568 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31569 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31570 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31571 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31572 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31573 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31574 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31575
31576 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31577
31578 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31579 (min_of_type_f): New macro.
31580 (min_of_type_): Likewise.
31581 (min_of_type_l): Likewise.
31582 (min_of_type_f128): Likewise.
31583 (min_of_type): Define using __MATH_TG and taking an expression
31584 argument.
31585 (math_check_force_underflow): Pass expression instead of type to
31586 min_of_type.
31587 (math_check_force_underflow_nonneg): Likewise.
31588
31589 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31590
31591 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31592 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31593 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31594
31595 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31596
31597 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31598 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31599 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31600 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31601 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31602 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31603 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31604 memmove_chk-nonshared and memset_chk-nonshared
31605 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31606 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31607 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31609 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31610 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31611 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31612 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31613 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31614 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31615 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31616 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31617 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31618 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31619 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31620 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31621 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31622 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31624 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31626 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31628 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31630 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31632 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31633 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31634 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31635 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31636 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31638 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31639 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31640 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31641 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31642 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31643 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31645 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31646 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31647 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31648 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31649 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31650 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31651 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31652 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31653 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31654 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31655 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31656 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31657 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31658 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31659 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31660 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31661 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31662 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31663 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31664 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31665 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31666 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31667 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31668 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31669 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31670 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31671 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31672 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31673 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31674 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31675 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31676 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31677 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31680 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31682 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31688 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31690 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31692 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31694 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31695 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31696 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31697 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31698 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31699 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31700 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31701 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31702 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31703 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31704 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31705 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31706 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31707 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31708 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31709 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31710 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31711 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31712 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31713
31714 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31715
31716 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31717 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31718 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31719 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31720 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31721 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31722 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31723 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31724 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31725 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31726 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31727 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31728 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31729 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31730 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31731 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31732 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31733 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31734 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31735 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31736 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31737 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31775 ...
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31777 Don't include <sysdep.h> nor <init-arch.h>.
31778 (_ZGVbN2v_cos): Removed.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31780 ...
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31782 Don't include <sysdep.h> nor <init-arch.h>.
31783 (_ZGVdN4v_cos): Removed.
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31785 ...
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31787 Don't include <sysdep.h> nor <init-arch.h>.
31788 (_ZGVeN8v_cos): Removed.
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31790 ...
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31792 Don't include <sysdep.h> nor <init-arch.h>.
31793 (_ZGVbN2v_exp): Removed.
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31795 ...
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31797 Don't include <sysdep.h> nor <init-arch.h>.
31798 (_ZGVdN4v_exp): Removed.
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31800 ...
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31802 Don't include <sysdep.h> nor <init-arch.h>.
31803 (_ZGVeN8v_exp): Removed.
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31805 ...
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31807 Don't include <sysdep.h> nor <init-arch.h>.
31808 (_ZGVbN2v_log): Removed.
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31810 ...
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31812 Don't include <sysdep.h> nor <init-arch.h>.
31813 (_ZGVdN4v_log): Removed.
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31815 ...
31816 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31817 Don't include <sysdep.h> nor <init-arch.h>.
31818 (_ZGVeN8v_log): Removed.
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31820 ...
31821 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31822 Don't include <sysdep.h> nor <init-arch.h>.
31823 (_ZGVbN2vv_pow): Removed.
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31825 ...
31826 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31827 Don't include <sysdep.h> nor <init-arch.h>.
31828 (_ZGVdN4vv_pow): Removed.
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31830 ...
31831 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31832 Don't include <sysdep.h> nor <init-arch.h>.
31833 (_ZGVeN8vv_pow): Removed.
31834 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31835 ...
31836 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31837 Don't include <sysdep.h> nor <init-arch.h>.
31838 (_ZGVbN2v_sin): Removed.
31839 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31840 ...
31841 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31842 Don't include <sysdep.h> nor <init-arch.h>.
31843 (_ZGVbN4v_sin): Removed.
31844 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31845 ...
31846 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31847 Don't include <sysdep.h> nor <init-arch.h>.
31848 (_ZGVbN8v_sin): Removed.
31849 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31850 ...
31851 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31852 Don't include <sysdep.h> nor <init-arch.h>.
31853 (_ZGVbN2vvv_sincos): Removed.
31854 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31855 ...
31856 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31857 Don't include <sysdep.h> nor <init-arch.h>.
31858 (_ZGVdN4vvv_sincos): Removed.
31859 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31860 ...
31861 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31862 Don't include <sysdep.h> nor <init-arch.h>.
31863 (_ZGVeN8vvv_sincos): Removed.
31864 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31865 ...
31866 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31867 Don't include <sysdep.h> nor <init-arch.h>.
31868 (_ZGVeN16v_cosf): Removed.
31869 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31870 ...
31871 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31872 Don't include <sysdep.h> nor <init-arch.h>.
31873 (_ZGVbN4v_cosf): Removed.
31874 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31875 ...
31876 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31877 Don't include <sysdep.h> nor <init-arch.h>.
31878 (_ZGVdN8v_cosf): Removed.
31879 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31880 ...
31881 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31882 Don't include <sysdep.h> nor <init-arch.h>.
31883 (_ZGVeN16v_expf): Removed.
31884 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31885 ...
31886 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31887 Don't include <sysdep.h> nor <init-arch.h>.
31888 (_ZGVbN4v_expf): Removed.
31889 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31890 ...
31891 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31892 Don't include <sysdep.h> nor <init-arch.h>.
31893 (_ZGVdN8v_expf): Removed.
31894 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31895 ...
31896 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31897 Don't include <sysdep.h> nor <init-arch.h>.
31898 (_ZGVeN16v_logf): Removed.
31899 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31900 ...
31901 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31902 Don't include <sysdep.h> nor <init-arch.h>.
31903 (_ZGVbN4v_logf): Removed.
31904 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31905 ...
31906 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31907 Don't include <sysdep.h> nor <init-arch.h>.
31908 (_ZGVdN8v_logf): Removed.
31909 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31910 ...
31911 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31912 Don't include <sysdep.h> nor <init-arch.h>.
31913 (_ZGVeN16vv_powf): Removed.
31914 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31915 ...
31916 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31917 Don't include <sysdep.h> nor <init-arch.h>.
31918 (_ZGVbN4vv_powf): Removed.
31919 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31920 ...
31921 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31922 Don't include <sysdep.h> nor <init-arch.h>.
31923 (_ZGVdN8vv_powf): Removed.
31924 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31925 ...
31926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31927 Don't include <sysdep.h> nor <init-arch.h>.
31928 (_ZGVeN16vvv_sincosf): Removed.
31929 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31930 ...
31931 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31932 Don't include <sysdep.h> nor <init-arch.h>.
31933 (_ZGVbN4vvv_sincosf): Removed.
31934 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31935 ...
31936 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31937 Don't include <sysdep.h> nor <init-arch.h>.
31938 (_ZGVdN8vvv_sincosf): Removed.
31939 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31940 ...
31941 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31942 Don't include <sysdep.h> nor <init-arch.h>.
31943 (_ZGVeN16v_sinf): Removed.
31944 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31945 ...
31946 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31947 Don't include <sysdep.h> nor <init-arch.h>.
31948 (_ZGVbN4v_sinf): Removed.
31949 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31950 ...
31951 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31952 Don't include <sysdep.h> nor <init-arch.h>.
31953 (_ZGVdN8v_sinf): Removed.
31954
31955 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31956
31957 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31958 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31959 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31960 s_rint-sse4_1 and s_rintf-sse4_1.
31961 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31962 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31963 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31964 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31965 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31966 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31967 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31968 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31969 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31970 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31971 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31972 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31973 (__ceil): Removed.
31974 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31975 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31976 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31977 (__ceilf): Removed.
31978 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31979 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31980 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31981 (__floor): Removed.
31982 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31983 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31984 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31985 (__floorf): Removed.
31986 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31987 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31988 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31989 (__nearbyint): Removed.
31990 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31991 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31992 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31993 (__nearbyintf): Removed.
31994 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31995 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31996 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31997 (__rint): Removed.
31998 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31999 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32000 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32001 (__rintf): Removed.
32002
32003 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32004
32005 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32006 SHARED. Avoid dynamic relocation against main in static PIE.
32007
32008 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32009
32010 [BZ #21815]
32011 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32012 (LDFLAGS-tst-prelink): Likewise.
32013
32014 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32015
32016 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32017 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32018 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32019 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32020 (INTERNAL_SYSCALL_NCS): Likewise.
32021 (LOADARGS_1): Likewise.
32022 (LOADARGS_5): Likewise.
32023 (RESTOREARGS_1): Likewise.
32024 (RESTOREARGS_5): Likewise.
32025
32026 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32027
32028 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32029 (MEMPCPY_SYMBOL): Likewise.
32030 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32031 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32032 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32033 in libc.a.
32034 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32035 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32036 Likewise.
32037 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32038 (__hidden_ver1): Don't use in libc.a.
32039 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32040 (__mempcpy): Don't create a weak alias in libc.a.
32041 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32042 libc.a.
32043 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32044 (__hidden_ver1): Don't use in libc.a.
32045
32046 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32047
32048 * config.make.in (have-insert): New.
32049 * configure.ac (libc_cv_insert): New. Set to yes if linker
32050 supports INSERT in linker script.
32051 (AC_SUBST(libc_cv_insert): New.
32052 * configure: Regenerated.
32053 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32054 if $(have-insert) == yes.
32055
32056 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32057
32058 * elf/Makefile (tests): Add vismain only if
32059 $(have-protected-data) == yes.
32060 (tests-pie): Likewise.
32061
32062 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32063
32064 [BZ #21871]
32065 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32066 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32067
32068 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32069
32070 [BZ #21790]
32071 * sysdeps/i386/i586/memset.S
32072 (__memset_zero_constant_len_parameter): Removed.
32073 * sysdeps/i386/i686/memset.S
32074 (__memset_zero_constant_len_parameter): Likewise.
32075 * sysdeps/i386/i686/multiarch/memset_chk.S
32076 (__memset_zero_constant_len_parameter): Likewise.
32077 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32078 Likewise.
32079
32080 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32081
32082 * stdlib/getentropy.c (getentropy): Change return type to int.
32083
32084 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32085
32086 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32087
32088 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32089
32090 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32091 u_intN_t.
32092 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32093 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32094 Likewise.
32095 (ieee_float_shape_type): Likewise.
32096 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32097 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32098 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32099 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32100 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32101 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32102 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32103 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32104 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32105 Likewise.
32106 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32107 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32108 (__ieee754_yn): Likewise.
32109 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32110 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32111 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32112 Likewise.
32113 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32114 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32115 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32116 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32117 (__erfc): Likewise.
32118 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32119 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32120 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32121 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32122 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32123 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32124 Likewise.
32125 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32126 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32127 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32128 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32129 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32130 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32131 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32132 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32133 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32134 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32135 (__issignaling): Likewise.
32136 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32137 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32138 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32139 Likewise.
32140 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32141 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32142 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32143 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32144 Likewise.
32145 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32146 Likewise.
32147 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32148 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32149 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32150 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32151 (__erfcf): Likewise.
32152 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32153 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32154 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32155 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32156 Likewise.
32157 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32158 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32159 Likewise.
32160 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32161 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32162 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32163 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32164 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32165 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32166 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32167 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32168 Likewise.
32169 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32170 Likewise.
32171 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32172 Likewise.
32173 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32174 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32175 Likewise.
32176 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32177 Likewise.
32178 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32179 (__ieee754_ynl): Likewise.
32180 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32181 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32182 Likewise.
32183 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32184 Likewise.
32185 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32186 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32187 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32188 Likewise.
32189 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32190 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32191 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32192 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32193 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32194 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32195 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32196 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32197 Likewise.
32198 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32199 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32200 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32201 Likewise.
32202 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32203 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32204 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32205 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32206 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32207 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32208 Likewise.
32209 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32210 Likewise.
32211 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32212 Likewise.
32213 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32214 Likewise.
32215 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32216 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32217 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32218 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32219 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32220 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32221 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32222 Likewise.
32223 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32224 Likewise.
32225 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32226 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32227 Likewise.
32228 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32229 (__ieee754_remainderl): Likewise.
32230 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32231 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32232 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32233 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32234 Likewise.
32235 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32236 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32237 Likewise.
32238 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32239 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32240 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32241 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32242 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32243 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32244 Likewise.
32245 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32246 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32247 (__ieee754_y0l): Likewise.
32248 (pzero): Likewise.
32249 (qzero): Likewise.
32250 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32251 (__ieee754_y1l): Likewise.
32252 (pone): Likewise.
32253 (qone): Likewise.
32254 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32255 (__ieee754_ynl): Likewise.
32256 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32257 (__ieee754_lgammal_r): Likewise.
32258 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32259 Likewise.
32260 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32261 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32262 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32263 (__erfcl): Likewise.
32264 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32265 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32266 Likewise.
32267 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32268 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32269 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32270 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32271 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32272 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32273 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32274 Likewise.
32275 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32276 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32277 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32278 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32279 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32280 Likewise.
32281 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32282 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32283 Likewise.
32284 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32285 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32286 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32287 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32288 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32289
32290 2017-08-03 Florian Weimer <fweimer@redhat.com>
32291
32292 [BZ #21885]
32293 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32294 on memory allocation failure.
32295
32296 2017-08-03 Alan Modra <amodra@gmail.com>
32297
32298 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32299 tst-tlsopt-powerpc.c with function name change and no test harness.
32300 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32301 Call tls_get_addr_opt_test.
32302 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32303 (modules-names): Add mod-tlsopt-powerpc.
32304 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32305 (tst-tlsopt-powerpc): Depend on .so.
32306 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32307 define. Expand use in TLS_GD and TLS_LD.
32308
32309 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32310
32311 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32312 function.
32313 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32314
32315 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32316
32317 [BZ #21686]
32318 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32319 comparing size with that of double.
32320 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32321 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32322 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32323 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32324 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32325 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32326 unsigned __int128 types.
32327
32328 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32329
32330 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32331 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32332 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32333 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32334 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32335
32336 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32337
32338 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32339
32340 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32341
32342 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32343 of SHARED.
32344 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32345 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32346 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32347 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32348 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32349 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32350 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32351
32352 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32353
32354 [BZ #21685]
32355 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32356 bit-field expressions passed to sizeof or typeof.
32357 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32358 (__TGMATH_F128): Likewise.
32359 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32360 (__TGMATH_CF128): Likewise.
32361 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32362 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32363 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32364 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32365 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32366 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32367 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32368 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32369 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32370 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32371 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32372 (__TGMATH_UNARY_IMAG): Likewise.
32373 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32374 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32375 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32376 type.
32377 (define_vars_for_type): Handle bit_field type specially.
32378 (Tests.__init__): Declare structure with bit-field element.
32379
32380 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32381
32382 [BZ #21791]
32383 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32384 (MEMCPY_CHK): Define only if SHARED is defined.
32385 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32386 Likewise.
32387 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32388 Likewise.
32389
32390 See ChangeLog.18 for earlier changes.