]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Add new Fortran vector math header file.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-20 Martin Liska <mliska@suse.cz>
2
3 * math/Makefile: Install math-vector-fortran.h.
4 * bits/math-vector-fortran.h: New file.
5 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6
7 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8
9 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
10 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
11
12 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
13
14 * nptl/pthread_mutex_trylock.c: Fix comment.
15
16 2019-02-19 Carlos O'Donell <carlos@redhat.com>
17
18 * nptl/pthread_tryjoin.c: Fix comment.
19
20 2019-02-18 Joseph Myers <joseph@codesourcery.com>
21
22 [BZ #24231]
23 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
24 after R_SPARC_H34 case.
25
26 2019-02-18 Florian Weimer <fweimer@redhat.com>
27
28 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
29 (getanswer): Do not call Dprintf.
30 (res_gethostbyname2_context): Likewise.
31 (res_gethostbyaddr_context): Likewise.
32
33 2019-02-18 Florian Weimer <fweimer@redhat.com>
34
35 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
36 declaration.
37 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
38 Remove definitions.
39 * libio/stdfiles.c: Update comment.
40 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
41 set _IO_stdin, _IO_stdout, _IO_stderr.
42 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
43 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
44 inline function.
45 (_IO_deallocate_file): New inline function.
46 * libio/iolibio.h (_IO_vprintf): Remove definition.
47 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
48 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
49 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
50 _IO_legacy_file.
51 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
52 __builtin_expect. Use _IO_legacy_file.
53
54 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
55
56 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
57 Initialize ctid with a known value and remove update of ctid
58 after clone.
59 (wait_tid): Adjust arguments and call futex_wait with ctid_val
60 as assumed current value of ctid_ptr.
61
62 2019-02-15 Florian Weimer <fweimer@redhat.com>
63
64 Check that non-sysdeps headers have wrapper headers.
65 * scripts/check-wrapper-headers.py: New file.
66 * Makefile (tests-special): Add check-wrapper-headers.out.
67 (check-wrapper-headers.out): New target.
68 * Rules (tests-special): Add check-wrapper-headers.out.
69 (check-wrapper-headers.out): New target.
70
71 2019-02-15 Florian Weimer <fweimer@redhat.com>
72
73 Add missing header wrappers under include/.
74 * include/ar.h: New file.
75 * include/bits/mqueue2.h: Likewise.
76 * include/bits/stdio.h: Likewise.
77 * include/bits/stdio2.h: Likewise.
78 * include/fstab.h: Likewise.
79 * include/fts.h: Likewise.
80 * include/lastlog.h: Likewise.
81 * include/netinet/icmp6.h: Likewise.
82 * include/netinet/igmp.h: Likewise.
83 * include/netinet/ip6.h: Likewise.
84 * include/re_comp.h: Likewise.
85 * include/regexp.h: Likewise.
86 * include/rpcsvc/bootparam.h: Likewise.
87 * include/rpcsvc/yp_prot.h: Likewise.
88 * include/sys/random.h: Likewise.
89 * include/sys/stropts.h: Likewise.
90 * include/sys/ttychars.h: Likewise.
91 * include/sys/vfs.h: Likewise.
92 * include/wait.h: Likewise.
93
94 2019-02-15 Florian Weimer <fweimer@redhat.com>
95
96 * nptl_db/proc_service.h: Move to ...
97 * sysdeps/nptl/proc_service.h: ... here.
98 * nptl_db/thread_db.h: Move to ...
99 * sysdeps/nptl/thread_db.h: ... here.
100 * nptl/descr.h: Include <thread_db.h>.
101
102 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
103
104 * io/Makefile (tests): Add tst-lockf.
105 * io/lockf.c (lockf): Use __fcntl and only define for
106 !__OFF_T_MATCHES_OFF64_T.
107 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
108 __OFF_T_MATCHES_OFF64_T case.
109 * io/tst-lockf.c: New file.
110 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
111 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
112 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
113 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
114 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
116 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
117 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
118 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
119
120 2019-02-15 Florian Weimer <fweimer@redhat.com>
121
122 [BZ #24211]
123 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
124 pd->result after the thread descriptor has been freed.
125
126 2019-02-15 Joseph Myers <joseph@codesourcery.com>
127
128 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
129 from function return type.
130
131 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
132
133 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
134
135 * scripts/test_printers_common.py: Set TERM to a known harmless
136 value.
137
138 2019-02-14 Joseph Myers <joseph@codesourcery.com>
139
140 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
141 (xdr_u_int): Likewise.
142 (xdr_enum): Likewise.
143 (xdr_bytes): Reword fall-through comment.
144 (xdr_string): Likewise.
145
146 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
147
148 [BZ #2421]
149 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
150 (tests): Add tst-join8 tst-join9.
151 * nptl/lll_timedwait_tid.c: Remove file.
152 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
153 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
154 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
155 * nptl/pthread_join_common.c (timedwait_tid): New function.
156 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
157 is set.
158 * nptl/tst-join5.c (thread_join): New function.
159 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
160 check.
161 * nptl/tst-join8.c: New file.
162 * nptl/tst-join9.c: Likewise.
163 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
164 lll_futex_timed_wait_cancel): Add generic macros.
165 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
166 Remove definitions.
167 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
168 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
169 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
170 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
171 Remove function.
172 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
173 Likewise.
174 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
175 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
176 (lll_futex_timed_wait_cancel): New macro.
177
178 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
179
180 * benchtests/Makefile: Add malloc-simple benchmark.
181 * benchtests/bench-malloc-simple.c: New benchmark.
182
183 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
184
185 * benchtests/bench-memmove.c (do_one_test): Remove unused
186 ORIG_SRC.
187 (do_test): Adjust.
188 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
189 ORIG_SRC.
190 (do_test): Adjust.
191
192 2019-01-13 Jim Wilson <jimw@sifive.com>
193
194 [BZ #24040]
195 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
196 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
197 (func): New.
198 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
199 call func directly.
200 * nptl/Makefile (tests): Add tst-unwind-thread.
201 (CFLAGS-tst-unwind-thread.c): Define.
202 * nptl/tst-unwind-thread.c: New file.
203 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
204 as undefined.
205
206 2019-02-13 Joseph Myers <joseph@codesourcery.com>
207
208 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
209 comment wording.
210 * nis/nis_call.c (__do_niscall3): Likewise.
211
212 * catgets/gencat.c (normalize_line): Use braces around empty
213 'else' body.
214 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
215 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
216 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
217 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
218 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
219 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
220 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
221 definition.
222
223 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
224 execlp returns.
225
226 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
227
228 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
229 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
230 * benchtests/bench-strchr.c (stupid_strchr): Remove.
231 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
232 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
233 * benchtests/bench-strlen.c (builtin_strlen): Remove.
234 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
235 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
236 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
237 * benchtests/bench-strspn.c (stupid_strspn): Remove.
238 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
239 * benchtests/bench-bcopy.c: Delete file.
240 * benchtests/bench-bzero.c: Likewise.
241 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
242 (simple_memccpy): Remove.
243 (generic_memccpy): Add function.
244 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
245 * benchtests/bench-memmove.c (simple_bcopy): Remove.
246 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
247 (generic_mempcpy): Add new function.
248 * benchtests/bench-memset.c (simple_bzero): Remove.
249 (builtin_bzero): Remove.
250 (builtin_memset): Remove.
251 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
252 (generic_rawmemchr): Add new function.
253
254 2019-02-12 Florian Weimer <fweimer@redhat.com>
255
256 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
257
258 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
259
260 [BZ #24122]
261 * elf/Makefile (tests): Add tst-audit13.
262 (modules-names): Add tst-audit13mod1.
263 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
264 rule.
265 * elf/tst-audit13.c: New file.
266 * elf/tst-audit13mod1.c: Likewise.
267
268 2019-02-12 Florian Weimer <fweimer@redhat.com>
269
270 [BZ #24122]
271 * elf/rtld.c (unload_audit_module): New function.
272 (report_audit_module_load_error): Likewise.
273 (load_audit_module): Likewise. Extracted from dl_main. Call
274 _dl_close if the laversion symbol cannot be found. Use early
275 returns for error handling. Add malloc error check. Check for a
276 zero return value from la_version. Remove spurious comment about
277 static TLS initialization. Remove useless casts.
278 (notify_audit_modules_of_loaded_object): New function. Extracted
279 from dl_main.
280 (load_audit_module): Likewise.
281 (dl_main): Call load_audit_modules.
282
283 2019-02-12 Joseph Myers <joseph@codesourcery.com>
284
285 * elf/dl-exception.c (_dl_exception_create_format): Add
286 fall-through comments.
287 * elf/ldconfig.c (parse_conf_include): Likewise.
288 * elf/rtld.c (print_statistics): Likewise.
289 * locale/programs/charmap.c (parse_charmap): Likewise.
290 * misc/mntent_r.c (__getmntent_r): Likewise.
291 * posix/wordexp.c (parse_arith): Likewise.
292 (parse_backtick): Likewise.
293 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
294 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
295 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
296
297 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
298
299 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
300 Use float instead of double.
301
302 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
303
304 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
305
306 2019-02-08 Joseph Myers <joseph@codesourcery.com>
307
308 * sysdeps/powerpc/bits/mathinline.h: Remove.
309
310 2019-02-08 Florian Weimer <fweimer@redhat.com>
311
312 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
313 * math/bits/math-finite.h: Move to ...
314 * bits/math-finite.h: ... here.
315
316 2019-02-08 Florian Weimer <fweimer@redhat.com>
317
318 * sysdeps/generic/bits/unistd_ext.h: Move to ...
319 * bits/unistd_ext.h: here.
320
321 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
322
323 [BZ #21915]
324 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
325 * nss/tst-nss-files-hosts-long.c: New file.
326 * nss/tst-nss-files-hosts-long.root: New directory.
327 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
328 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
329
330 2019-02-08 Florian Weimer <fweimer@redhat.com>
331
332 * include/bits/unistd_ext.h: Remove file.
333 * posix/bits/unistd_ext.h: Move to ...
334 * sysdeps/generic/bits/unistd_ext.h: ... here.
335
336 2019-02-08 Florian Weimer <fweimer@redhat.com>
337
338 * include/bits/unistd_ext.h: New file.
339
340 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
341
342 * time/tst-strftime2.c: Use array_length macros instead of magic
343 numbers.
344
345 2019-02-08 Florian Weimer <fweimer@redhat.com>
346
347 [BZ #24161]
348 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
349 argument.
350 * nptl/register-atfork.c (__run_fork_handlers): Only perform
351 locking if the new do_locking argument is true.
352 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
353 __run_fork_handlers.
354
355 2019-02-08 Florian Weimer <fweimer@redhat.com>
356
357 [BZ #6399]
358 Linux: Add gettid system call wrapper.
359 * posix/Makefile (headers): Add bits/unistd_ext.h.
360 * posix/bits/unistd_ext.h: New file.
361 * posix/unistd.h: Include it.
362 * manual/process.texi (Process Identification): Document gettid.
363 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
364 tst-gettid, tst-gettid-kill.
365 (tst-gettid): Link with $(shared-thread-library).
366 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
367 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
368 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
369 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
370 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
371 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
372 Add gettid.
373 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
374 Likewise.
375 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
376 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
377 Likewise.
378 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
379 Likewise.
380 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
381 Likewise.
382 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
383 Likewise.
384 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
385 Likewise.
386 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
387 Likewise.
388 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
389 Likewise.
390 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
391 (GLIBC_2.30): Likewise.
392 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
393 (GLIBC_2.30): Likewise.
394 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
395 (GLIBC_2.30): Likewise.
396 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
397 (GLIBC_2.30): Likewise.
398 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
399 Likewise.
400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
401 (GLIBC_2.30): Likewise.
402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
403 (GLIBC_2.30): Likewise.
404 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
405 (GLIBC_2.30): Likewise.
406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
407 (GLIBC_2.30): Likewise.
408 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
409 Likewise.
410 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
411 Likewise.
412 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
413 Likewise.
414 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
415 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
416 Likewise.
417 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
418 Likewise.
419 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
420 Likewise.
421 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
422 Likewise.
423 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
424
425 2019-02-07 Florian Weimer <fweimer@redhat.com>
426
427 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
428 compatibility symbols.
429
430 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
431
432 [BZ #24180]
433 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
434 Add compiler barriers and comments.
435
436 2019-02-07 Florian Weimer <fweimer@redhat.com>
437
438 * include/array_length.h (array_length): Do not use a statement
439 expression and _Static_assert, so that array_length can be used at
440 file scope and as a constant expression.
441
442 2019-02-07 Florian Weimer <fweimer@redhat.com>
443
444 * support/xdlfcn.h (xdlmopen): Declare.
445 * support/xdlmopen.c: New file.
446 * support/Makefile (libsupport-routines): Add xdlmopen.
447
448 2019-02-06 Joseph Myers <joseph@codesourcery.com>
449
450 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
451 before return type, without separate inline.
452 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
453 * elf/dl-tunables.h (tunable_is_name): Likewise.
454 * malloc/malloc.c (do_set_trim_threshold): Likewise.
455 (do_set_top_pad): Likewise.
456 (do_set_mmap_threshold): Likewise.
457 (do_set_mmaps_max): Likewise.
458 (do_set_mallopt_check): Likewise.
459 (do_set_perturb_byte): Likewise.
460 (do_set_arena_test): Likewise.
461 (do_set_arena_max): Likewise.
462 (do_set_tcache_max): Likewise.
463 (do_set_tcache_count): Likewise.
464 (do_set_tcache_unsorted_limit): Likewise.
465 * nis/nis_subr.c (count_dots): Likewise.
466 * nptl/allocatestack.c (advise_stack_range): Likewise.
467 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
468 (do_sin): Likewise.
469 (reduce_sincos): Likewise.
470 (do_sincos): Likewise.
471 * sysdeps/unix/sysv/linux/x86/elision-conf.c
472 (do_set_elision_enable): Likewise.
473 (TUNABLE_CALLBACK_FNDECL): Likewise.
474
475 2019-02-06 Florian Weimer <fweimer@redhat.com>
476
477 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
478 (xdlsym): Use dlerror to detect a NULL symbol.
479
480 2019-02-06 Florian Weimer <fweimer@redhat.com>
481
482 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
483 <stap-probe.h>.
484 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
485
486 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
487
488 * libio/tst-bz24153.c (wide): Use wide char format specifier.
489
490 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
491
492 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
493 __wmemcmp and weak alias to wmemcmp.
494
495 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
496
497 [BZ #23403]
498 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
499 TLS_TCB_AT_TP tls variant.
500 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
501 Add alignment checks.
502 * support/Makefile (libsupport-routines): Add xposix_memalign and
503 xpthread_setstack.
504 * support/support.h: Add xposix_memalign.
505 * support/xthread.h: Add xpthread_attr_setstack.
506 * support/xposix_memalign.c: New File.
507 * support/xpthread_attr_setstack.c: Likewise.
508
509 2019-02-05 Florian Weimer <fweimer@redhat.com>
510
511 [BZ #24164]
512 arm: Use "nr" constraint for Systemtap probes, to avoid the
513 compiler using memory operands for constants, due to the "o"
514 alternative in the default "nor" constraint.
515 * include/stap-probe.h [USE_STAP_PROBE]: Include
516 <stap-probe-machine.h>
517 * sysdeps/generic/stap-probe-machine.h: New file.
518 * sysdeps/arm/stap-probe-machine.h: Likewise.
519
520 2019-02-04 Joseph Myers <joseph@codesourcery.com>
521
522 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
523 with 0, not tcache->entries[tc_idx].
524
525 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
526 once.
527
528 2019-02-04 Andreas Schwab <schwab@suse.de>
529
530 [BZ #16976]
531 [BZ #17396]
532 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
533 looking up collating elements match against (wide) character
534 sequence instead of name. Correct alignment adjustment.
535 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
536 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
537 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
538 (LOCALES): Add cs_CZ.ISO-8859-2.
539 * posix/tst-fnmatch4.c: New file.
540 * posix/tst-fnmatch5.c: New file.
541 * include/wchar.h (__wmemcmp): Declare.
542 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
543 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
544 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
545 * sysdeps/s390/wmemcmp.c: Likewise.
546
547 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
548
549 [BZ #24155]
550 CVE-2019-7309
551 * NEWS: Updated for CVE-2019-7309.
552 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
553 upper 32 bits of RDX register for x32. Use unsigned Jcc
554 instructions, instead of signed.
555 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
556 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
557
558 2019-02-04 Florian Weimer <fweimer@redhat.com>
559
560 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
561 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
562 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
563 Likewise.
564 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
565 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
566 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
567 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
568 Likewise.
569 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
570 Likewise.
571 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
572 Likewise.
573 (posix_spawn_file_actions_addopen): Likewise.
574 (posix_spawn_file_actions_addclose): Likewise.
575 (posix_spawn_file_actions_adddup2): Likewise.
576 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
577 qualifiers.
578 (posix_spawn_file_actions_addfchdir_np): Likewise.
579
580 2019-02-04 David Newall <glibc@davidnewall.com>
581
582 elf: Implement --preload option for the dynamic linker.
583 * elf/rtld.c (preloadarg): New variable.
584 (handle_preload_list): Pass through “where” argument to
585 do_preload.
586 (dl_main): Handle "--preload" and add second call to
587 handle_preload_list.
588 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
589 (tst-rtld-preload-OBJS): Set variable.
590 (tst-rtld-preload.out): New target.
591 * elf/tst-rtld-preload.sh: New file.
592
593 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
594
595 * Makefile (testrun.sh): Exit in case of incorrect argument.
596
597 2019-02-04 Florian Weimer <fweimer@redhat.com>
598
599 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
600 alignment gaps.
601
602 2019-02-03 Florian Weimer <fweimer@redhat.com>
603
604 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
605 implicit overflow checks.
606
607 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
608
609 * stdlib/isomac.c: Include <unistd.h>.
610
611 2019-02-03 Florian Weimer <fweimer@redhat.com>
612
613 * include/time.h (__tzfile_default): Use int, not long int, for
614 the GMT offsets.
615 * time/tzfile.c (struct ttinfo): Change type of the offset member
616 to int.
617 (__tzfile_read): Remove useless cast.
618 (__tzfile_default): Adjust prototype.
619 * time/tzset.c (tz_rule): Change type of the offset member to int.
620 (parse_offset): Change the type of the sign variable to int.
621
622 2019-02-03 Florian Weimer <fweimer@redhat.com>
623
624 [BZ #24153]
625 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
626 * libio/getchar.c (getchar): Likewise.
627 * libio/getchar_u.c (getchar_unlocked): Likewise.
628 * libio/getwchar.c (getwchar): Likewise.
629 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
630 * libio/iogets.c (_IO_gets): Likewise.
631 * libio/vscanf.c (_IO_vscanf): Likewise.
632 * libio/vwscanf.c (__vwscanf): Likewise.
633 * libio/tst-bz24153.c: New file.
634 * libio/Makefile (tests): Add it.
635
636 2019-02-02 Florian Weimer <fweimer@redhat.com>
637
638 [BZ #14829]
639 * manual/resource.texi (Basic Scheduling Functions): Add
640 portability note. Change process to task throughout the section.
641 Remove incorrect comment about sched_yield as it affects
642 tasks/threads, not entire processes.
643 * sysdeps/unix/sysv/linux/bits/posix_opt.h
644 (_POSIX_PRIORITY_SCHEDULING): Update comment.
645
646 2019-02-01 Joseph Myers <joseph@codesourcery.com>
647
648 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
649 * configure: Regenerated.
650 * manual/install.texi (Tools for Compilation): Update minimum GCC
651 version.
652 * INSTALL: Regenerated.
653
654 2019-02-01 Florian Weimer <fweimer@redhat.com>
655
656 * support/support_test_compare_string.c
657 (support_test_compare_string): Use "string" in error message.
658 * support/tst-test_compare_string.c (do_test): Adjust.
659
660 2019-02-01 Florian Weimer <fweimer@redhat.com>
661
662 * support/support_format_address_family.c
663 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
664
665 2019-02-01 Florian Weimer <fweimer@redhat.com>
666
667 * manual/socket.texi (Internet Address Formats): Clarify the byte
668 order of struct sockaddr_in, struct sockaddr_in6. Document
669 sin6_flowinfo and sin6_scope_id.
670
671 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
672
673 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
674 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
675 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
676 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
677 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
678 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
679
680 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
681
682 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
683 [!MEMCHR](MEMCHR): Set to __memchr.
684 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
685 Add memchr_generic and memchr_nosimd.
686 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
687 (__libc_ifunc_impl_list): Add memchr ifuncs.
688 * sysdeps/aarch64/multiarch/memchr.c: New file.
689 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
690 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
691
692 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
693
694 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
695 Add memset_emag.
696 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
697 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
698 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
699 Add IS_EMAG check for ifunc dispatch.
700 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
701 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
702
703 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
704
705 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
706 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
707 Add emag.
708 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
709 New macro.
710
711 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
712
713 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
714
715 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
716
717 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
718 syscall-template file.
719
720 2019-01-31 Carlos O'Donell <carlos@redhat.com>
721 Torvald Riegel <triegel@redhat.com>
722 Rik Prohaska <prohaska7@gmail.com>
723
724 [BZ# 23844]
725 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
726 tst-rwlock-trywrlock-stall.
727 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
728 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
729 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
730 Set __wrphase_fute to 1 only if we started the write phase.
731 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
732 * nptl/tst-rwlock-trywrlock-stall.c: New file.
733 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
734 * support/xpthread_rwlock_destroy.c: New file.
735 * support/xthread.h: Declare xpthread_rwlock_destroy.
736
737 2019-02-01 Joseph Myers <joseph@codesourcery.com>
738
739 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
740 version to 4.0.2.
741
742 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
743
744 [BZ #24051]
745 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
746 * libio/fileops.c (_IO_new_file_underflow): Likewise
747 * libio/wfileops.c (_IO_wfile_underflow): Likewise
748 * libio/putchar.c (putchar): Likewise.
749 * libio/putchar_u.c (putchar_unlocked): Likewise.
750 * libio/putwchar.c (putchar): Likewise.
751 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
752 * libio/tst-bz24051.c: New test.
753 * libio/Makefile (tests): Add tst-bz24051
754
755 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
756
757 regex: fix read overrun [BZ #24114]
758 Problem found by AddressSanitizer, reported by Hongxu Chen in:
759 https://debbugs.gnu.org/34140
760 * posix/regexec.c (proceed_next_node):
761 Do not read past end of input buffer.
762
763 2019-01-31 Florian Weimer <fweimer@redhat.com>
764
765 [BZ #24059]
766 * nss/nss_files/files-alias.c (get_next_alias): Handle
767 continuation line without newline at the end.
768 * nss/tst-nss-files-alias-truncated.c: New file.
769 * nss/Makefile [$(build-shared)] (tests): Add
770 tst-nss-files-alias-truncated.
771 (tst-nss-files-alias-truncated): Link with libnss_files.so.
772 * support/namespace.h (struct support_chroot_configuration): Add
773 aliases member.
774 (struct support_chroot): Add path_aliases member.
775 * support/support_chroot.c (support_chroot_create): Handle
776 aliases.
777 (support_chroot_free): Free path_aliases.
778
779 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
780
781 * version.h (RELEASE): Set to "development".
782 (VERSION): Set to "2.29.9000".
783 * NEWS: Add section for 2.30.
784
785 * version.h (RELEASE): Set to "stable".
786 (VERSION): Set to "2.29".
787 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
788
789 * NEWS: Add the list of bugs fixed in 2.29.
790 * manual/contrib.texi: Update contributors list with some more
791 names.
792 * manual/install.texi: Update latest versions of packages
793 tested.
794 * INSTALL: Regenerated.
795
796 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
797
798 * po/be.po: Update translations.
799 * po/bg.po: Likewise.
800 * po/ca.po: Likewise.
801 * po/cs.po: Likewise.
802 * po/da.po: Likewise.
803 * po/de.po: Likewise.
804 * po/el.po: Likewise.
805 * po/eo.po: Likewise.
806 * po/es.po: Likewise.
807 * po/fi.po: Likewise.
808 * po/fr.po: Likewise.
809 * po/gl.po: Likewise.
810 * po/hr.po: Likewise.
811 * po/hu.po: Likewise.
812 * po/ia.po: Likewise.
813 * po/id.po: Likewise.
814 * po/it.po: Likewise.
815 * po/ja.po: Likewise.
816 * po/ko.po: Likewise.
817 * po/lt.po: Likewise.
818 * po/nb.po: Likewise.
819 * po/nl.po: Likewise.
820 * po/pl.po: Likewise.
821 * po/pt_BR.po: Likewise.
822 * po/ru.po: Likewise.
823 * po/rw.po: Likewise.
824 * po/sk.po: Likewise.
825 * po/sl.po: Likewise.
826 * po/sv.po: Likewise.
827 * po/tr.po: Likewise.
828 * po/uk.po: Likewise.
829 * po/vi.po: Likewise.
830 * po/zh_CN.po: Likewise.
831 * po/zh_TW.po: Likewise.
832
833 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
834
835 [BZ #24130]
836 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
837 of $f3 register on $y_is_neg path.
838
839 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
840
841 [BZ #24110]
842 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
843 sigaltstack.ss_flags.
844
845 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
846
847 [BZ #23758]
848 * manual/time.texi (strftime): Document "%Ey".
849 * time/strftime_l.c (__strftime_internal): Set the default width
850 padding with zero of "%Ey" to 2.
851
852 [BZ #24096]
853 * manual/time.texi (strftime): Document "%EC" and "%EY".
854 * time/Makefile (tests): Add tst-strftime2.
855 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
856 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
857 override padding for "%Ey".
858 If an optional flag ('_' or '-') is specified to "%EY", interpret the
859 "%Ey" in the subformat as if decorated with that flag.
860 * time/tst-strftime2.c: New file.
861
862 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
863
864 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
865 are not defined.
866
867 [BZ #24122]
868 * elf/Makefile (tests): Add tst-audit13.
869 (modules-names): Add tst-audit13mod1.
870 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
871 rule.
872 * elf/rtld.c (dl_main): Handle invalid audit module version.
873 * elf/tst-audit13.c: New file.
874 * elf/tst-audit13mod1.c: Likewise.
875
876 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
877
878 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
879 returned by __hurd_at_flags.
880 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
881 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
882 directly instead of __hurd_file_name_lookup.
883
884 2019-01-21 Joseph Myers <joseph@codesourcery.com>
885
886 * scripts/build-many-glibcs.py (Context.checkout): Default
887 binutils version to 2.32 branch.
888
889 2019-01-21 Florian Weimer <fweimer@redhat.com>
890
891 [BZ #20018]
892 CVE-2016-10739
893 resolv: Reject trailing characters in host names
894 * include/arpa/inet.h (__inet_aton_exact): Declare.
895 (inet_aton): Remove hidden prototype. No longer used internally.
896 * nscd/gai.c (__inet_aton): Do not define.
897 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
898 * nss/digits_dots.c (__inet_aton): Likewise.
899 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
900 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
901 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
902 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
903 (tst-resolv-trailing): Likewise.
904 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
905 libc.
906 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
907 Make static. Add endp parameter.
908 (__inet_aton_exact): New function.
909 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
910 (__inet_addr): Call inet_aton_end.
911 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
912 not just IPv6. Call __inet_aton_exact.
913 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
914 (tests): Make const. Add additional test cases with trailing
915 characters.
916 (do_test): Use array_length.
917 * resolv/tst-inet_aton_exact.c: New file.
918 * resolv/tst-resolv-trailing.c: Likewise.
919 * resolv/tst-resolv-nondecimal.c: Likewise.
920 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
921
922 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
923
924 [BZ# 24097]
925 CVE-2019-6488
926 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
927 Clear the upper 32 bits of RSI register.
928 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
929 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
930 and tst-size_t-wcsnlen.
931 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
932 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
933
934 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
935
936 [BZ# 24097]
937 CVE-2019-6488
938 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
939 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
940 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
941 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
942 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
943
944 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
945
946 [BZ# 24097]
947 CVE-2019-6488
948 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
949 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
950 * sysdeps/x86_64/strcmp.S: Likewise.
951 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
952 tst-size_t-strncmp and tst-size_t-wcsncmp.
953 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
954 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
955 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
956
957 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
958
959 [BZ# 24097]
960 CVE-2019-6488
961 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
962 RDX_LP for length. Clear the upper 32 bits of RDX register.
963 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
964 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
965 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
966 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
967
968 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
969
970 [BZ# 24097]
971 CVE-2019-6488
972 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
973 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
974 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
975 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
976
977 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
978
979 [BZ# 24097]
980 CVE-2019-6488
981 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
982 length. Clear the upper 32 bits of RDX register.
983 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
984 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
985 Likewise.
986 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
987 Likewise.
988 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
989 tst-size_t-wmemchr.
990 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
991
992 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
993
994 [BZ# 24097]
995 CVE-2019-6488
996 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
997 length. Clear the upper 32 bits of RDX register.
998 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
999 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1000 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1001 tst-size_t-wmemcmp.
1002 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1003 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1004
1005 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 [BZ# 24097]
1008 CVE-2019-6488
1009 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1010 upper 32 bits of RDX register.
1011 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1012 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1013 tst-size_t-wmemchr.
1014 * sysdeps/x86_64/x32/test-size_t.h: New file.
1015 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1016 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1017
1018 2019-01-18 Florian Weimer <fweimer@redhat.com>
1019
1020 [BZ #24112]
1021 resolv: Do not send queries for non-host-names in nss_dns.
1022 * resolv/nss_dns/dns-host.c (check_name): New function.
1023 (_nss_dns_gethostbyname2_r): Use it.
1024 (_nss_dns_gethostbyname_r): Likewise.
1025 (_nss_dns_gethostbyname4_r): Likewise.
1026
1027 2019-01-21 Florian Weimer <fweimer@redhat.com>
1028
1029 * resolv/inet_addr.c: Reformat to GNU style.
1030 (__inet_addr, __inet_aton): Update comment.
1031
1032 2019-01-18 Florian Weimer <fweimer@redhat.com>
1033
1034 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1035 ("malloc: Use current (C11-style) atomics for fastbin access").
1036 This commit introduces a substantial performance regression on
1037 POWER and Aarch64.
1038 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1039 (REMOVE_FB): Define.
1040 (_int_malloc): Use it and reindent.
1041 (_int_free): Use CAS loop with
1042 catomic_compare_and_exchange_val_rel.
1043 (malloc_consolidate): Use atomic_exchange_acq.
1044
1045
1046 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1047
1048 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1049 -Wl,-z,now.
1050 (LDFLAGS-tst-minsigstksz-2): Likewise.
1051 (LDFLAGS-tst-minsigstksz-3): Likewise.
1052 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1053 (LDFLAGS-tst-minsigstksz-4): Likewise.
1054
1055 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1056
1057 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1058 than "alternate".
1059
1060 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1061
1062 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1063
1064 2019-01-16 Zack Weinberg <zackw@panix.com>
1065
1066 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1067 (xget_sigstack_location): New test support functions.
1068 * support/xsigstack.c: New file, implementing them.
1069 * support/tst-xsigstack.c: New test for them.
1070 * support/Makefile: Update.
1071
1072 * signal/tst-minsigstksz-1.c
1073 * signal/tst-minsigstksz-2.c
1074 * signal/tst-minsigstksz-3.c
1075 * signal/tst-minsigstksz-3a.c
1076 * signal/tst-minsigstksz-4.c: New tests.
1077 * signal/Makefile: Run them.
1078
1079 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1080
1081 * po/libc.pot: Regenerate.
1082
1083 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1084
1085 * math/libm-test-fma.inc (fma_test_data): Set
1086 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1087
1088 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1089
1090 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1091 (do_test): Changed __vector __int128_t to __vector unsigned int.
1092
1093 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1094
1095 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1096 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1097 stpcpy-avx2 and stpncpy-avx2.
1098 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1099 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1100 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1101 and __stpncpy_avx2.
1102 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1103 ifunc-strcpy.h}: rename header for a more generic name.
1104 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1105 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1106 AVX unaligned load is fast and vzeroupper is preferred.
1107 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1108 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1109 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1110 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1111 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1112 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1113
1114 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1115
1116 * argp/argp-help.c: Fix typo in comment.
1117 * misc/sys/cdefs.h: Likewise.
1118 * posix/regexec.c (sift_states_iter_mb): Likewise.
1119 * socket/sockatmark.c: Likewise.
1120 * socket/sys/socket.h: Likewise.
1121 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1122 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1123 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1124 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1125 * sysdeps/unix/sockatmark.c: Likewise.
1126 * time/strptime_l.c: Likewise.
1127
1128 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1129
1130 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1131 missing space after the cast of "_NL_CURRENT".
1132
1133 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1134
1135 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1136 ifdef to fix read of VSCR.
1137 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1138 tst-ucontext-ppc64-vscr.c to test list.
1139 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1140
1141 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1142
1143 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1144 fall-through.
1145
1146 2019-01-09 Jim Wilson <jimw@sifive.com>
1147
1148 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1149
1150 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1151
1152 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1153 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1154 __memcpy_falkor for ares.
1155 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1156 Add new define.
1157 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1158 Add ares cpu.
1159
1160 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 [BZ #24066]
1163 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1164 4_FP_W_TYPEs are used for IEEE quad precision.
1165 * soft-fp/extendhftf2.c: Likewise.
1166 * soft-fp/extendsftf2.c: Likewise.
1167 * soft-fp/extendxftf2.c: Likewise.
1168 * soft-fp/trunctfdf2.c: Likewise.
1169 * soft-fp/trunctfhf2.c: Likewise.
1170 * soft-fp/trunctfsf2.c: Likewise.
1171 * soft-fp/trunctfxf2.c: Likewise.
1172 * sysdeps/alpha/ots_cvttx.c: Likewise.
1173 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1174 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1175 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1176 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1177 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1178 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1179 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1180 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1181 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1182 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1183 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1184 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1185 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1186 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1187 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1188 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1189 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1190
1191 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1192
1193 [BZ #24024]
1194 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1195 code with -fmath-errno.
1196 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1197 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1198 * string/test-strerror-errno.c: New file.
1199
1200 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1201
1202 [BZ #24046]
1203 * localedata/locales/en_US (date_fmt): Add, set to
1204 "%a %d %b %Y %r %Z".
1205
1206 2019-01-07 Florian Weimer <fweimer@redhat.com>
1207
1208 [BZ #24063]
1209 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1210 instead of @var{errno}.
1211 (Parsing of Integers): Likewise.
1212 (Parsing of Floats): Likewise.
1213 * manual/filesys.texi (Working with Directory Trees): Likewise.
1214 (Temporary Files): Likewise.
1215 * manual/job.texi (Terminal Access Functions): Likewise.
1216 * manual/llio.texi (Synchronizing I/O): Likewise.
1217 * manual/math.texi (SVID Random): Likewise.
1218 * manual/message.texi (The catgets Functions): Likewise.
1219 (Translation with gettext): Likewise.
1220 (Locating gettext catalog): Likewise.
1221 (Charset conversion in gettext): Likewise.
1222 * manual/nss.texi (NSS Module Function Internals): Likewise.
1223 * manual/search.texi (Hash Search Function): Likewise.
1224 * manual/setjmp.texi (System V contexts): Likewise.
1225 * manual/time.texi (Sleeping): Likewise.
1226 * manual/users.texi (Lookup User): Likewise.
1227 (Lookup Group): Likewise.
1228
1229 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1230
1231 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1232 fix typo.
1233
1234 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1235
1236 [BZ #19444]
1237 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1238 __builtin_unreachable for default case in switch.
1239 (__ieee754_yn): Likewise.
1240 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1241 (__ieee754_ynl): Likewise.
1242 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1243 (__ieee754_ynl): Likewise.
1244 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1245 (__ieee754_ynl): Likewise.
1246
1247 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1248
1249 * manual/maint.texi: Use @{ and @}.
1250
1251 2019-01-04 Florian Weimer <fweimer@redhat.com>
1252
1253 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1254 function.
1255 (do_in_chroot_1): Call it.
1256 (run_chroot_tests):
1257 Improve error reporting in case it is not possible to create a
1258 collision for the PTY name required by the test.
1259
1260 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1261
1262 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1263 lll_wait_tid with timeout.
1264 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1265 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1266 futex_reltimed_wait_cancelable for cancelabla mode.
1267 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1268 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1269 macros.
1270 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1271 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1272 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1273 SYSCALL_CANCEL_NCS): New macro.
1274 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1275 (lll_timedwait_tid): Remove macro.
1276 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1277 Likewise.
1278 (lll_timedwait_tid): Likewise.
1279 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1280 Likewise.
1281 (lll_timedwait_tid): Likewise.
1282 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1283 Likewise.
1284 (lll_timedwait_tid): Likewise.
1285 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1286 Use INTERNAL_SYSCALL_CANCEL.
1287 * sysdeps/unix/sysv/linux/futex-internal.h
1288 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1289 instead of __pthread_{enable,disable}_asynccancel.
1290 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1291 (lll_futex_wait_cancel): New macro.
1292
1293 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1294 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1295
1296 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1297 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1298
1299 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1300 in backtrace analysis.
1301 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1302 side-effects.
1303 (tf_send): Likewise.
1304
1305 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1306 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1307 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1308 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1309 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1310 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1311 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1312 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1313 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1314 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1315 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1316 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1317 Likewise.
1318 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1319 tst-cancel-wrappers.sh.
1320 (generated): Remove tst-cancel-wrappers.out.
1321 (tst-cancel-wrappers.out): Remove rule.
1322 * nptl/tst-cancel-wrappers.sh: Remove file.
1323
1324 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1325
1326 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1327 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1328 Update.
1329
1330 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1331
1332 [BZ #23640]
1333 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1334 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1335 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1336 close-on-exec reset for adddup2 file action.
1337 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1338
1339 2019-01-03 Zack Weinberg <zackw@panix.com>
1340
1341 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1342 parameter. Only use deprecated scanf when __USE_GNU is defined
1343 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1344 than 201103L, whichever is relevant for the language being compiled.
1345
1346 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1347 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1348 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1349 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1350 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1351
1352 * libio/iovsscanf.c
1353 * libio/fwscanf.c
1354 * libio/iovswscanf.c
1355 * libio/swscanf.c
1356 * libio/vscanf.c
1357 * libio/vwscanf.c
1358 * libio/wscanf.c
1359 * stdio-common/fscanf.c
1360 * stdio-common/scanf.c
1361 * stdio-common/vfscanf.c
1362 * stdio-common/vfwscanf.c
1363 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1364 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1365 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1366 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1367 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1368 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1369 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1370 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1371 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1372 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1373 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1374 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1375 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1376 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1377 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1378
1379 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1380 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1381 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1382 not sscanf.
1383 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1384 with a preprocessor macro.
1385
1386 * stdio-common/bug21.c, stdio-common/scanf14.c:
1387 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1388 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1389 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1390 to xscanf, xfscanf, xsscanf.
1391
1392 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1393 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1394 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1395 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1396 xfscanf, xsscanf.
1397 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1398 override feature selection macros or provide definitions of u_char etc.
1399 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1400 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1401 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1402 with -std=gnu89.
1403
1404 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1405
1406 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1407 bits/termios-misc.h.
1408 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1409 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1410 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1411 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1412 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1413 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1414
1415 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1416 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1417 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1418 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1419 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1420 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1421 termios-misc.h.
1422 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1423 (sysdep_headers): Add termios-misc.h.
1424
1425 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1426 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1427 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1428
1429 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1430 termios-tcflow.h.
1431 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1432 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1433 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1434 TCSAFLUSH): Move to termios-tcflow.h.
1435 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1436 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1437 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1438 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1439
1440 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1441 termios-c_lflag.h.
1442 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1443 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1444 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1445 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1446 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1447 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1448 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1449 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1450 Likewise.
1451 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1452 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1453 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1454 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1455
1456 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1457 termios-c_cflag.h.
1458 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1459 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1460 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1461 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1462 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1463 termios-c_cflag.h.
1464 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1465 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1466 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1467 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1468
1469 [BZ #23783]
1470 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1471 termios-baud.h.
1472 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1473 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1474 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1475 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1476 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1477 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1478 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1479 __MAX_BAUD): Move to termios-baud.h.
1480 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1481 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1482 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1483 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1484 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1485
1486 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1487 termios-c_oflag.h.
1488 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1489 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1490 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1491 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1492 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1493 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1494 termios-c_oflag.h.
1495 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1496 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1497 FFR1): Likewise.
1498 [USE_MISC] (XTABS): Likewise.
1499 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1500 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1501 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1502 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1503
1504 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1505 termios-c_iflag.h.
1506 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1507 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1508 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1509 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1510 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1511 IUTF8): Move to termios-c_iflag.h.
1512 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1513 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1514 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1515 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1516
1517 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1518 termios-cc.h.
1519 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1520 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1521 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1522 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1523 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1524 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1525 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1526 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1527 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1528 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1529 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1530 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1531
1532 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1533 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1534 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1536 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1537 termios-struct.h.
1538 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1539 termios-struct.h.
1540 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1541 Likewise.
1542 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1543 Likewise.
1544 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1545 Likewise.
1546 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1547 Likewise.
1548 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1549 _HAVE_C_OSPEED): Define.
1550 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1551 _HAVE_C_OSPEED): Likewise.
1552 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1553 _HAVE_C_OSPEED): Likewise.
1554 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1555 (cfsetospeed): Check for define value instead of existence.
1556 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1557 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1558 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1559 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1560 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1561
1562 [BZ #17783]
1563 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1564 Define.
1565 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1566 (TIOCSER_TEMT): Likewise.
1567 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1568 (TEOCSER_TEMT): Likewise.
1569
1570 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1571
1572 [BZ #24011]
1573 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1574
1575 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1576
1577 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1578
1579 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1580
1581 * sysdeps/htl/pt-barrierattr-setpshared.c
1582 (pthread_barrierattr_setpshared): Add stub warning.
1583 * sysdeps/htl/pt-condattr-setpshared.c
1584 (pthread_condattr_setpshared): Likewise.
1585 * sysdeps/htl/pt-mutexattr-setpshared.c
1586 (pthread_mutexattr_setpshared): Likewise.
1587 * sysdeps/htl/pt-rwlockattr-setpshared.c
1588 (pthread_rwlockattr_setpshared): Likewise.
1589 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1590 (pthread_mutexattr_setpshared): Likewise.
1591
1592 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1593
1594 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1595 constants to match with Linux 4.20.
1596
1597 * sysdeps/mips/mips32/libm-test-ulps: Update.
1598 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1599
1600 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1601
1602 [BZ #24034]
1603 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1604 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1605 than __typeof (...) for the a_ptr variable.
1606
1607 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1608
1609 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1610 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1611 * libio/Makefile (tests): Add tst-sprintf-ub and
1612 tst-sprintf-chk-ub.
1613 (CFLAGS-tst-sprintf-ub.c): New variable.
1614 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1615 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1616 destination buffer and check for overflows in fortified mode.
1617 * libio/libioP.h (PRINTF_CHK): New macro.
1618 * libio/tst-sprintf-chk-ub.c: New file.
1619 * libio/tst-sprintf-ub.c: Likewise.
1620
1621 2019-01-02 Florian Weimer <fweimer@redhat.com>
1622
1623 [BZ #24018]
1624 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1625 failure.
1626
1627 2019-01-02 Florian Weimer <fweimer@redhat.com>
1628
1629 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1630
1631 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1632
1633 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1634 macro.
1635
1636 * sysdeps/unix/sysv/linux/netpacket/packet.h
1637 (PACKET_IGNORE_OUTGOING): New macro.
1638
1639 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1640 macro.
1641
1642 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1643 version to 4.20.
1644 (riscv_flush_icache): New syscall.
1645
1646 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1647 trailing whitespace removed.
1648 * scripts/config.guess: Update to version 2019-01-01.
1649 * scripts/config.sub: Update to version 2019-01-01.
1650 * scripts/move-if-change: Update from gnulib.
1651
1652 * NEWS: Update copyright dates.
1653 * catgets/gencat.c (print_version): Likewise.
1654 * csu/version.c (banner): Likewise.
1655 * debug/catchsegv.sh: Likewise.
1656 * debug/pcprofiledump.c (print_version): Likewise.
1657 * debug/xtrace.sh (do_version): Likewise.
1658 * elf/ldconfig.c (print_version): Likewise.
1659 * elf/ldd.bash.in: Likewise.
1660 * elf/pldd.c (print_version): Likewise.
1661 * elf/sotruss.sh: Likewise.
1662 * elf/sprof.c (print_version): Likewise.
1663 * iconv/iconv_prog.c (print_version): Likewise.
1664 * iconv/iconvconfig.c (print_version): Likewise.
1665 * locale/programs/locale.c (print_version): Likewise.
1666 * locale/programs/localedef.c (print_version): Likewise.
1667 * login/programs/pt_chown.c (print_version): Likewise.
1668 * malloc/memusage.sh (do_version): Likewise.
1669 * malloc/memusagestat.c (print_version): Likewise.
1670 * malloc/mtrace.pl: Likewise.
1671 * manual/libc.texinfo: Likewise.
1672 * nptl/version.c (banner): Likewise.
1673 * nscd/nscd.c (print_version): Likewise.
1674 * nss/getent.c (print_version): Likewise.
1675 * nss/makedb.c (print_version): Likewise.
1676 * posix/getconf.c (main): Likewise.
1677 * scripts/test-installation.pl: Likewise.
1678 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1679
1680 * All files with FSF copyright notices: Update copyright dates
1681 using scripts/update-copyrights.
1682 * locale/programs/charmap-kw.h: Regenerated.
1683 * locale/programs/locfile-kw.h: Likewise.
1684
1685 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1686
1687 * timezone/zdump.c: Update from tzcode 2018i.
1688 * timezone/zic.c: Likewise.
1689
1690 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1691
1692 regex: improve Gnulib port to AIX
1693 From the glibc point of view, this removes duplicate macro
1694 definitions and is obviously safe.
1695 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1696 * posix/regex_internal.h:
1697 (__attribute__, __attribute_warn_unused_result__):
1698 Remove; already defined elsewhere.
1699
1700 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1701
1702 [BZ #24027]
1703 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1704 copying operation. (ncopies had the wrong type, resulting in an
1705 integer wraparound and too few elements being copied.)
1706
1707 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1708
1709 [BZ #24022]
1710 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1711 <asm/syscalls.h> exists with __has_include__ before including it.
1712
1713 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1714
1715 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1716 version to 4.20.
1717
1718 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1719
1720 * hurd/lookup-retry: Include <unistd.h>.
1721 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1722 Release it on return. Handle "pid" magical lookup retry.
1723
1724 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1725
1726 [BZ #10496]
1727 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1728 (t_fmt_ampm): Likewise.
1729 * localedata/locales/aa_ER (t_fmt): Likewise.
1730 (t_fmt_ampm): Likewise.
1731 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1732 (t_fmt_ampm): Likewise.
1733 * localedata/locales/aa_ET (t_fmt): Likewise.
1734 (t_fmt_ampm): Likewise.
1735 * localedata/locales/am_ET (t_fmt): Likewise.
1736 (t_fmt_ampm): Likewise.
1737 * localedata/locales/byn_ER (t_fmt): Likewise.
1738 (t_fmt_ampm): Likewise.
1739 * localedata/locales/om_ET (t_fmt): Likewise.
1740 (t_fmt_ampm): Likewise.
1741 * localedata/locales/sid_ET (t_fmt): Likewise.
1742 (t_fmt_ampm): Likewise.
1743 * localedata/locales/so_DJ (t_fmt): Likewise.
1744 (t_fmt_ampm): Likewise.
1745 * localedata/locales/so_ET (t_fmt): Likewise.
1746 (t_fmt_ampm): Likewise.
1747 * localedata/locales/so_SO (t_fmt): Likewise.
1748 (t_fmt_ampm): Likewise.
1749 * localedata/locales/ti_ER (t_fmt): Likewise.
1750 (t_fmt_ampm): Likewise.
1751 * localedata/locales/ti_ET (t_fmt): Likewise.
1752 (t_fmt_ampm): Likewise.
1753 * localedata/locales/tig_ER (t_fmt): Likewise.
1754 (t_fmt_ampm): Likewise.
1755 * localedata/locales/wal_ET (t_fmt): Likewise.
1756 (t_fmt_ampm): Likewise.
1757
1758 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1759 * localedata/locales/ar_IN (t_fmt): Likewise.
1760 * localedata/locales/bhb_IN (t_fmt): Likewise.
1761 * localedata/locales/bho_IN (t_fmt): Likewise.
1762 * localedata/locales/bi_VU (t_fmt): Likewise.
1763 * localedata/locales/bn_BD (t_fmt): Likewise.
1764 * localedata/locales/bn_IN (t_fmt): Likewise.
1765 * localedata/locales/brx_IN (t_fmt): Likewise.
1766 * localedata/locales/doi_IN (t_fmt): Likewise.
1767 * localedata/locales/en_HK (t_fmt): Likewise.
1768 (t_fmt_ampm): Likewise.
1769 * localedata/locales/en_IN (t_fmt): Likewise.
1770 * localedata/locales/en_PH (t_fmt): Likewise.
1771 * localedata/locales/gu_IN (t_fmt): Likewise.
1772 * localedata/locales/hi_IN (t_fmt): Likewise.
1773 * localedata/locales/hif_FJ (t_fmt): Likewise.
1774 * localedata/locales/hne_IN (t_fmt): Likewise.
1775 * localedata/locales/kn_IN (t_fmt): Likewise.
1776 * localedata/locales/kok_IN (t_fmt): Likewise.
1777 * localedata/locales/ks_IN (t_fmt): Likewise.
1778 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1779 * localedata/locales/mag_IN (t_fmt): Likewise.
1780 * localedata/locales/mai_IN (t_fmt): Likewise.
1781 * localedata/locales/mjw_IN (t_fmt): Likewise.
1782 * localedata/locales/ml_IN (t_fmt): Likewise.
1783 * localedata/locales/mni_IN (t_fmt): Likewise.
1784 * localedata/locales/mr_IN (t_fmt): Likewise.
1785 * localedata/locales/ms_MY (t_fmt): Likewise.
1786 * localedata/locales/pa_IN (t_fmt): Likewise.
1787 * localedata/locales/raj_IN (t_fmt): Likewise.
1788 * localedata/locales/sa_IN (t_fmt): Likewise.
1789 * localedata/locales/sat_IN (t_fmt): Likewise.
1790 * localedata/locales/sd_IN (t_fmt): Likewise.
1791 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1792 * localedata/locales/tcy_IN (t_fmt): Likewise.
1793 * localedata/locales/the_NP (t_fmt): Likewise.
1794 * localedata/locales/to_TO (t_fmt): Likewise.
1795 * localedata/locales/ur_IN (t_fmt): Likewise.
1796
1797 * localedata/locales/hif_FJ (d_t_fmt): Set to
1798 "%A %d %b %Y %I:%M:%S %p".
1799 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1800
1801 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1802 * localedata/locales/ar_BH (t_fmt): Likewise.
1803 * localedata/locales/ar_DZ (t_fmt): Likewise.
1804 * localedata/locales/ar_EG (t_fmt): Likewise.
1805 * localedata/locales/ar_IQ (t_fmt): Likewise.
1806 * localedata/locales/ar_JO (t_fmt): Likewise.
1807 * localedata/locales/ar_KW (t_fmt): Likewise.
1808 * localedata/locales/ar_LB (t_fmt): Likewise.
1809 * localedata/locales/ar_LY (t_fmt): Likewise.
1810 * localedata/locales/ar_OM (t_fmt): Likewise.
1811 * localedata/locales/ar_QA (t_fmt): Likewise.
1812 * localedata/locales/ar_SD (t_fmt): Likewise.
1813 * localedata/locales/ar_SS (t_fmt): Likewise.
1814 * localedata/locales/ar_SY (t_fmt): Likewise.
1815 * localedata/locales/ar_TN (t_fmt): Likewise.
1816 * localedata/locales/ar_YE (t_fmt): Likewise.
1817
1818 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1819 (t_fmt_ampm): Likewise.
1820 * localedata/locales/gez_ET (t_fmt): Likewise.
1821 (t_fmt_ampm): Likewise.
1822
1823 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1824 (t_fmt_ampm): Likewise.
1825 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1826
1827 * localedata/locales/zh_HK (t_fmt):
1828 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1829
1830 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1831 because this locale does not use the 12-hour clock.
1832 (t_fmt): Set to "%Z %H:%M:%S".
1833 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1834
1835 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1836 because this locale does not use the 12-hour clock.
1837 (t_fmt): Set to "%H:%M:%S %Z".
1838 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1839
1840 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1841 because this locale does not use the 12-hour clock.
1842 (t_fmt): Set to "%T".
1843 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1844 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1845
1846 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1847 because this locale does not use the 12-hour clock.
1848 (t_fmt): Set to "%H:%M:%S %Z".
1849 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1850
1851 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1852 because this locale does not use the 12-hour clock.
1853 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1854 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1855
1856 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1857
1858 [BZ #10496]
1859 [BZ #23724]
1860 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1861 (t_fmt_ampm): Likewise.
1862 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1863 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1864 (d_fmt): Set to "%-d.%-m.%y".
1865
1866 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1867
1868 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1869 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1870 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1871 Likewise.
1872 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1873 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1874 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1875 function.
1876 * support/blob_repeat.c (check_mul_overflow_size_t,
1877 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1878
1879 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1880
1881 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1882
1883 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1884
1885 regex: simplify Gnulib port
1886 This simplifies the code, by removing stuff intended for porting
1887 to Gnulib but no longer needed there.
1888 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1889 uses of libc_hidden_def, weak_alias.
1890 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1891 _Restrict_ except for public-facing headers.
1892 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1893 Remove; already defined elsewhere.
1894 * posix/regex.c, posix/regex_internal.h:
1895 Use __GNUC_PREREQ instead of rolling our own.
1896 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1897
1898 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1899
1900 * benchtests/bench-strlen.c (generic_strlen): New function.
1901 (memchr_strlen): New function.
1902
1903 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1906 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1907 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1908
1909 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1910
1911 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1912
1913 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1914
1915 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1916 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1917 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1918 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1919 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1920 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1921 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1922
1923 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1924
1925 [BZ #24023]
1926 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1927 PLT reference in libc.so.
1928 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1929 _Q_lltoq and _Q_qtod PLT references in libc.so.
1930
1931 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1932
1933 * benchtests/bench-memchr.c: Cleanup defines.
1934 * benchtests/bench-memcmp.c: Likewise.
1935 * benchtests/bench-memset.c: Likewise.
1936 * benchtests/bench-memset-large.c: Likewise.
1937 * benchtests/bench-memset-walk.c: Likewise.
1938 * benchtests/bench-stpcpy.c: Likewise.
1939 * benchtests/bench-stpncpy.c: Likewise.
1940 * benchtests/bench-strcat.c: Likewise.
1941 * benchtests/bench-strchr.c: Likewise.
1942 * benchtests/bench-strcmp.c: Likewise.
1943 * benchtests/bench-strcpy.c: Likewise.
1944 * benchtests/bench-strcspn.c: Likewise.
1945 * benchtests/bench-string.h: Likewise.
1946 * benchtests/bench-strlen.c: Likewise.
1947 * benchtests/bench-strncat.c: Likewise.
1948 * benchtests/bench-strncmp.c: Likewise.
1949 * benchtests/bench-strncpy.c: Likewise.
1950 * benchtests/bench-strnlen.c: Likewise.
1951 * benchtests/bench-strpbrk.c: Likewise.
1952 * benchtests/bench-strrchr.c: Likewise.
1953 * benchtests/bench-strspn.c: Likewise.
1954
1955 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1956
1957 * stdlib/longlong.h: Update from GCC.
1958
1959 [BZ #23993]
1960 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1961 * configure: Regenerated.
1962 * manual/install.texi (Tools for Compilation): Update minimum GCC
1963 version.
1964 * INSTALL: Regenerated.
1965
1966 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1967
1968 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1969
1970 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1971
1972 * malloc/malloc.c (mremap_chunk): Additional checks.
1973
1974 2018-12-21 Mao Han <han_mao@c-sky.com>
1975
1976 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1977 * scripts/build-many-glibcs.py: Add C-SKY targets.
1978 * sysdeps/csky/Implies: New file.
1979 * sysdeps/csky/Makefile: Likewise.
1980 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1981 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1982 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1983 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1984 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1985 * sysdeps/csky/abiv2/memmove.S: Likewise.
1986 * sysdeps/csky/abiv2/memset.S: Likewise.
1987 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1988 * sysdeps/csky/abiv2/start.S: Likewise.
1989 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1990 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1991 * sysdeps/csky/abiv2/strlen.S: Likewise.
1992 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1993 * sysdeps/csky/abort-instr.h: Likewise.
1994 * sysdeps/csky/atomic-machine.h: Likewise.
1995 * sysdeps/csky/bits/endian.h: Likewise.
1996 * sysdeps/csky/bits/fenv.h: Likewise.
1997 * sysdeps/csky/bits/link.h: Likewise.
1998 * sysdeps/csky/bits/setjmp.h: Likewise.
1999 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2000 * sysdeps/csky/bsd-setjmp.S: Likewise.
2001 * sysdeps/csky/configure: Likewise.
2002 * sysdeps/csky/configure.ac: Likewise.
2003 * sysdeps/csky/dl-machine.h: Likewise.
2004 * sysdeps/csky/dl-procinfo.c: Likewise.
2005 * sysdeps/csky/dl-procinfo.h: Likewise.
2006 * sysdeps/csky/dl-sysdep.h: Likewise.
2007 * sysdeps/csky/dl-tls.h: Likewise.
2008 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2009 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2010 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2011 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2012 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2013 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2014 * sysdeps/csky/fpu/fegetround.c: Likewise.
2015 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2016 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2017 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2018 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2019 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2020 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2021 * sysdeps/csky/fpu/fesetround.c: Likewise.
2022 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2023 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2024 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2025 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2026 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2027 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2028 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2029 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2030 * sysdeps/csky/fpu_control.h: Likewise.
2031 * sysdeps/csky/gccframe.h: Likewise.
2032 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2033 * sysdeps/csky/ldsodefs.h: Likewise.
2034 * sysdeps/csky/libc-tls.c: Likewise.
2035 * sysdeps/csky/linkmap.h: Likewise.
2036 * sysdeps/csky/machine-gmon.h: Likewise.
2037 * sysdeps/csky/memusage.h: Likewise.
2038 * sysdeps/csky/nofpu/Implies: Likewise.
2039 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2040 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2041 * sysdeps/csky/nptl/Makefile: Likewise.
2042 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2043 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2044 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2045 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2046 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2047 * sysdeps/csky/nptl/tls.h: Likewise.
2048 * sysdeps/csky/preconfigure: Likewise.
2049 * sysdeps/csky/sfp-machine.h: Likewise.
2050 * sysdeps/csky/sotruss-lib.c: Likewise.
2051 * sysdeps/csky/stackinfo.h: Likewise.
2052 * sysdeps/csky/sysdep.h: Likewise.
2053 * sysdeps/csky/tininess.h: Likewise.
2054 * sysdeps/csky/tst-audit.h: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2067 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2068 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2069 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2070 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2071 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2072 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2073 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2074 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2075 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2076 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2077 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2078 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2079 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2080 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2081 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2082 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2083 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2084 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2085 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2086 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2087 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2088 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2089 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2090 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2091 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2092 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2093 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2094 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2095 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2096 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2097 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2098 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2099
2100 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2101
2102 * include/time.h (__difftime64): Add.
2103 * time/difftime.c (subtract): convert to 64-bit time.
2104 * time/difftime.c (__difftime64): Add.
2105 * time/difftime.c (__difftime): Wrap around __difftime64.
2106
2107 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 * manual/examples/add.c: Remove redundant "if not".
2110 * manual/examples/argp-ex1.c: Likewise.
2111 * manual/examples/argp-ex2.c: Likewise.
2112 * manual/examples/argp-ex3.c: Likewise.
2113 * manual/examples/argp-ex4.c: Likewise.
2114 * manual/examples/atexit.c: Likewise.
2115 * manual/examples/db.c: Likewise.
2116 * manual/examples/dir.c: Likewise.
2117 * manual/examples/dir2.c: Likewise.
2118 * manual/examples/execinfo.c: Likewise.
2119 * manual/examples/filecli.c: Likewise.
2120 * manual/examples/filesrv.c: Likewise.
2121 * manual/examples/fmtmsgexpl.c: Likewise.
2122 * manual/examples/genpass.c: Likewise.
2123 * manual/examples/inetcli.c: Likewise.
2124 * manual/examples/inetsrv.c: Likewise.
2125 * manual/examples/isockad.c: Likewise.
2126 * manual/examples/longopt.c: Likewise.
2127 * manual/examples/memopen.c: Likewise.
2128 * manual/examples/memstrm.c: Likewise.
2129 * manual/examples/mkdirent.c: Likewise.
2130 * manual/examples/mkfsock.c: Likewise.
2131 * manual/examples/mkisock.c: Likewise.
2132 * manual/examples/mygetpass.c: Likewise.
2133 * manual/examples/pipe.c: Likewise.
2134 * manual/examples/popen.c: Likewise.
2135 * manual/examples/rprintf.c: Likewise.
2136 * manual/examples/search.c: Likewise.
2137 * manual/examples/select.c: Likewise.
2138 * manual/examples/setjmp.c: Likewise.
2139 * manual/examples/sigh1.c: Likewise.
2140 * manual/examples/sigusr.c: Likewise.
2141 * manual/examples/stpcpy.c: Likewise.
2142 * manual/examples/strdupa.c: Likewise.
2143 * manual/examples/strftim.c: Likewise.
2144 * manual/examples/subopt.c: Likewise.
2145 * manual/examples/swapcontext.c: Likewise.
2146 * manual/examples/termios.c: Likewise.
2147 * manual/examples/testopt.c: Likewise.
2148 * manual/examples/testpass.c: Likewise.
2149 * manual/examples/timeval_subtract.c: Likewise.
2150
2151 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2152
2153 * sysdeps/x86/fpu/math_private.h: New file.
2154 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2155
2156 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2157 definition.
2158 (cosh): Likewise.
2159 (tanh): Likewise.
2160
2161 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2162
2163 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2164 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2165 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2166 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2167 fields.
2168 (_dl_show_auxv): Give a special treatment to
2169 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2170 and AT_L3_CACHEGEOMETRY.
2171 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2172 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2173 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2174 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2175
2176 2018-12-19 Andreas Schwab <schwab@suse.de>
2177
2178 * nscd/connections.c (check_use): Don't abort on invalid len.
2179
2180 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2181
2182 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2183 values in the 64bit value cases.
2184
2185 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2186
2187 * include/time.h
2188 (__ctime64_r): Add.
2189 * time/ctime_r.c
2190 (__ctime64_r): Add.
2191 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2192
2193 * include/time.h
2194 (__ctime64): Add.
2195 * time/gmtime.c
2196 (__ctime64): Add.
2197 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2198
2199 * include/time.h
2200 (__gmtime64_r): Add.
2201 * time/gmtime.c
2202 (__gmtime64_r): Add.
2203 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2204
2205 * include/time.h
2206 (__gmtime64): Add.
2207 * time/gmtime.c
2208 (__gmtime64): Add.
2209 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2210
2211 * include/time.h
2212 (__localtime64_r): Add.
2213 * time/localtime.c
2214 (__localtime64_r): Add.
2215 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2216
2217 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2218
2219 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2220 kernel_sigction definition.
2221
2222 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2223
2224 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2225
2226 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2227 __syscall_rt_sigaction.
2228 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2229 (kernel_sigaction): Use Linux generic defintion.
2230 (STUB): Define.
2231 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2232 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2233 (__syscall_rt_sigaction): Remove implementation.
2234 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2235 hidden.
2236 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2237 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2238 INTERNAL_SYSCALL): Remove definitions.
2239 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2240 action and signal set size.
2241 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2242 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2243
2244 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2245 James Clarke <jrtc27@jrtc27.com>
2246
2247 [BZ #23967]
2248 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2249 Define if SA_RESTORER is defined.
2250 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2251 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2252 already defined.
2253 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2254 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2255 definitions.
2256 (HAS_SA_RESTORER): Define.
2257 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2258 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2259 (HAS_SA_RESTORER): Define.
2260 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2261 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2262 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2263 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2264 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2265
2266 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2267
2268 * sysdeps/unix/sysv/linux/kernel-features.h
2269 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2270 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2271 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2272 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2273 (__ASSUME_ST_INO_64_BIT): Likewise.
2274 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2275 <kernel-features.h>.
2276 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2277 Remove conditional code.
2278 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2279 <kernel-features.h>.
2280 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2281 Remove conditional code.
2282 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2283 <kernel-features.h>.
2284 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2285 Remove conditional code.
2286 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2287 <kernel-features.h>.
2288 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2289 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2290
2291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2292
2293 * sysdeps/s390/multiarch/ifunc-resolve.h
2294 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2295 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2296 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2297 Delete macro definition.
2298 (s390_libc_ifunc_init): Rename to
2299 s390_libc_ifunc_expr_stfle_init.
2300 * sysdeps/s390/bzero: Use
2301 s390_libc_ifunc_expr_stfle_init instead of
2302 s390_libc_ifunc_init.
2303 * sysdeps/s390/memcmp.c: Likewise.
2304 * sysdeps/s390/memcpy.c: Likewise.
2305 * sysdeps/s390/mempcpy.c: Likewise.
2306 * sysdeps/s390/memset.c: Likewise.
2307
2308 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2309
2310 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2311 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2312
2313 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2314
2315 * sysdeps/s390/multiarch/Makefile
2316 (sysdep_routines): Remove wmemcmp variants.
2317 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2318 * sysdeps/s390/multiarch/ifunc-impl-list.c
2319 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2320 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2321 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2322 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2323 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2324 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2325 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2326 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2327
2328 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2329
2330 * sysdeps/s390/multiarch/Makefile
2331 (sysdep_routines): Remove wmemset variants.
2332 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2333 * sysdeps/s390/multiarch/ifunc-impl-list.c
2334 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2335 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2336 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2337 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2338 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2339 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2340 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2341 * sysdeps/s390/ifunc-wmemset.h: New file.
2342
2343 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2344
2345 * sysdeps/s390/multiarch/Makefile
2346 (sysdep_routines): Remove wmemchr variants.
2347 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2348 * sysdeps/s390/multiarch/ifunc-impl-list.c
2349 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2350 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2351 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2352 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2353 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2354 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2355 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2356 * sysdeps/s390/ifunc-wmemchr.h: New file.
2357
2358 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2359
2360 * sysdeps/s390/multiarch/Makefile
2361 (sysdep_routines): Remove wcscspn variants.
2362 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2363 * sysdeps/s390/multiarch/ifunc-impl-list.c
2364 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2365 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2366 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2367 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2368 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2369 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2370 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2371 * sysdeps/s390/ifunc-wcscspn.h: New file.
2372
2373 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2374
2375 * sysdeps/s390/multiarch/Makefile
2376 (sysdep_routines): Remove wcspbrk variants.
2377 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2378 * sysdeps/s390/multiarch/ifunc-impl-list.c
2379 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2380 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2381 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2382 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2383 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2384 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2385 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2386 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2387
2388 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2389
2390 * sysdeps/s390/multiarch/Makefile
2391 (sysdep_routines): Remove wcsspn variants.
2392 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2393 * sysdeps/s390/multiarch/ifunc-impl-list.c
2394 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2395 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2396 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2397 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2398 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2399 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2400 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2401 * sysdeps/s390/ifunc-wcsspn.h: New file.
2402
2403 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2404
2405 * sysdeps/s390/multiarch/Makefile
2406 (sysdep_routines): Remove wcsrchr variants.
2407 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2408 * sysdeps/s390/multiarch/ifunc-impl-list.c
2409 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2410 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2411 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2412 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2413 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2414 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2415 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2416 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2417
2418 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2419
2420 * sysdeps/s390/multiarch/Makefile
2421 (sysdep_routines): Remove wcschrnul variants.
2422 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2423 * sysdeps/s390/multiarch/ifunc-impl-list.c
2424 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2425 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2426 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2427 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2428 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2429 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2430 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2431 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2432
2433 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2434
2435 * sysdeps/s390/multiarch/Makefile
2436 (sysdep_routines): Remove wcschr variants.
2437 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2438 * sysdeps/s390/multiarch/ifunc-impl-list.c
2439 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2440 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2441 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2442 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2443 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2444 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2445 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2446 * sysdeps/s390/ifunc-wcschr.h: New file.
2447
2448 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2449
2450 * sysdeps/s390/multiarch/Makefile
2451 (sysdep_routines): Remove wcsncmp variants.
2452 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2453 * sysdeps/s390/multiarch/ifunc-impl-list.c
2454 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2455 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2456 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2457 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2458 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2459 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2460 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2461 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2462
2463 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2464
2465 * sysdeps/s390/multiarch/Makefile
2466 (sysdep_routines): Remove wcscmp variants.
2467 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2468 * sysdeps/s390/multiarch/ifunc-impl-list.c
2469 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2470 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2471 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2472 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2473 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2474 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2475 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2476 * sysdeps/s390/ifunc-wcscmp.h: New file.
2477
2478 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2479
2480 * sysdeps/s390/multiarch/Makefile
2481 (sysdep_routines): Remove wcsncat variants.
2482 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2483 * sysdeps/s390/multiarch/ifunc-impl-list.c
2484 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2485 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2486 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2487 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2488 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2489 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2490 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2491 * sysdeps/s390/ifunc-wcsncat.h: New file.
2492
2493 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2494
2495 * sysdeps/s390/multiarch/Makefile
2496 (sysdep_routines): Remove wcscat variants.
2497 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2498 * sysdeps/s390/multiarch/ifunc-impl-list.c
2499 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2500 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2501 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2502 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2503 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2504 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2505 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2506 * sysdeps/s390/ifunc-wcscat.h: New file.
2507
2508 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2509
2510 * sysdeps/s390/multiarch/Makefile
2511 (sysdep_routines): Remove wcpncpy variants.
2512 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2513 * sysdeps/s390/multiarch/ifunc-impl-list.c
2514 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2515 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2516 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2517 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2518 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2519 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2520 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2521 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2522
2523 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2524
2525 * sysdeps/s390/multiarch/Makefile
2526 (sysdep_routines): Remove wcsncpy variants.
2527 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2528 * sysdeps/s390/multiarch/ifunc-impl-list.c
2529 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2530 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2531 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2532 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2533 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2534 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2535 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2536 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2537
2538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2539
2540 * sysdeps/s390/multiarch/Makefile
2541 (sysdep_routines): Remove wcpcpy variants.
2542 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2543 * sysdeps/s390/multiarch/ifunc-impl-list.c
2544 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2545 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2546 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2547 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2548 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2549 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2550 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2551 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2552
2553 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2554
2555 * sysdeps/s390/multiarch/Makefile
2556 (sysdep_routines): Remove wcscpy variants.
2557 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2558 * sysdeps/s390/multiarch/ifunc-impl-list.c
2559 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2560 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2561 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2562 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2563 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2564 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2565 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2566 * sysdeps/s390/ifunc-wcscpy.h: New file.
2567
2568 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2569
2570 * sysdeps/s390/multiarch/Makefile
2571 (sysdep_routines): Remove wcsnlen variants.
2572 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2573 * sysdeps/s390/multiarch/ifunc-impl-list.c
2574 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2575 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2576 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2577 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2578 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2579 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2580 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2581 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2582
2583 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2584
2585 * sysdeps/s390/multiarch/Makefile
2586 (sysdep_routines): Remove wcslen variants.
2587 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2588 * sysdeps/s390/multiarch/ifunc-impl-list.c
2589 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2590 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2591 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2592 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2593 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2594 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2595 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2596 * sysdeps/s390/ifunc-wcslen.h: New file.
2597
2598 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2599
2600 * sysdeps/s390/multiarch/Makefile
2601 (sysdep_routines): Remove memrchr variants.
2602 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2603 * sysdeps/s390/multiarch/ifunc-impl-list.c
2604 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2605 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2606 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2607 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2608 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2609 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2610 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2611 * sysdeps/s390/ifunc-memrchr.h: New file.
2612
2613 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2614
2615 * sysdeps/s390/multiarch/Makefile
2616 (sysdep_routines): Remove memccpy variants.
2617 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2618 * sysdeps/s390/multiarch/ifunc-impl-list.c
2619 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2620 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2621 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2623 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2624 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2625 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2626 * sysdeps/s390/ifunc-memccpy.h: New file.
2627
2628 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2629
2630 * sysdeps/s390/multiarch/Makefile
2631 (sysdep_routines): Remove rawmemchr variants.
2632 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2633 * sysdeps/s390/multiarch/ifunc-impl-list.c
2634 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2635 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2636 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2637 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2638 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2639 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2640 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2641 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2642
2643 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2644
2645 * sysdeps/s390/multiarch/Makefile
2646 (sysdep_routines): Remove memchr variants.
2647 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2648 * sysdeps/s390/multiarch/ifunc-impl-list.c
2649 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2650 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2651 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2652 * sysdeps/s390/multiarch/memchr.c: Move to ...
2653 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2654 * sysdeps/s390/ifunc-memchr.h: New file.
2655 * sysdeps/s390/s390-64/memchr.S: Move to ...
2656 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2657 for 31/64bit and ifunc handling.
2658 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2659 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2660 * sysdeps/s390/s390-32/memchr.S: Likewise.
2661
2662 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2663
2664 * sysdeps/s390/multiarch/Makefile
2665 (sysdep_routines): Remove strcspn variants.
2666 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2667 * sysdeps/s390/multiarch/ifunc-impl-list.c
2668 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2669 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2670 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2671 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2672 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2673 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2674 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2675 * sysdeps/s390/ifunc-strcspn.h: New file.
2676
2677 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2678
2679 * sysdeps/s390/multiarch/Makefile
2680 (sysdep_routines): Remove strpbrk variants.
2681 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2682 * sysdeps/s390/multiarch/ifunc-impl-list.c
2683 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2684 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2685 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2686 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2687 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2688 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2689 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/ifunc-strpbrk.h: New file.
2691
2692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2693
2694 * sysdeps/s390/multiarch/Makefile
2695 (sysdep_routines): Remove strspn variants.
2696 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2697 * sysdeps/s390/multiarch/ifunc-impl-list.c
2698 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2699 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2700 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2701 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2702 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2703 * sysdeps/s390/multiarch/strspn.c: Move to ...
2704 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2705 * sysdeps/s390/ifunc-strspn.h: New file.
2706
2707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2708
2709 * sysdeps/s390/multiarch/Makefile
2710 (sysdep_routines): Remove strrchr variants.
2711 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2712 * sysdeps/s390/multiarch/ifunc-impl-list.c
2713 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2714 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2715 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2716 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2717 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2718 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2719 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2720 * sysdeps/s390/ifunc-strrchr.h: New file.
2721
2722 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2723
2724 * sysdeps/s390/multiarch/Makefile
2725 (sysdep_routines): Remove strchrnul variants.
2726 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2727 * sysdeps/s390/multiarch/ifunc-impl-list.c
2728 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2729 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2730 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2731 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2732 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2734 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2735 * sysdeps/s390/ifunc-strchrnul.h: New file.
2736
2737 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2738
2739 * sysdeps/s390/multiarch/Makefile
2740 (sysdep_routines): Remove strchr variants.
2741 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2742 * sysdeps/s390/multiarch/ifunc-impl-list.c
2743 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2744 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2745 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2747 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2748 * sysdeps/s390/multiarch/strchr.c: Move to ...
2749 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/ifunc-strchr.h: New file.
2751
2752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2753
2754 * sysdeps/s390/multiarch/Makefile
2755 (sysdep_routines): Remove strncmp variants.
2756 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2757 * sysdeps/s390/multiarch/ifunc-impl-list.c
2758 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2759 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2760 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2761 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2762 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2763 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2764 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2765 * sysdeps/s390/ifunc-strncmp.h: New file.
2766
2767 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2768
2769 * sysdeps/s390/multiarch/Makefile
2770 (sysdep_routines): Remove strcmp variants.
2771 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2772 * sysdeps/s390/multiarch/ifunc-impl-list.c
2773 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2774 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2775 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2776 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2777 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2778 * sysdeps/s390/ifunc-strcmp.h: New file.
2779 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2780 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2781 for 31/64bit and ifunc handling.
2782 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2783 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2784 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2785
2786 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2787
2788 * sysdeps/s390/multiarch/Makefile
2789 (sysdep_routines): Remove strncat variants.
2790 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2791 * sysdeps/s390/multiarch/ifunc-impl-list.c
2792 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2793 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2794 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2796 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2797 * sysdeps/s390/multiarch/strncat.c: Move to ...
2798 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2799 * sysdeps/s390/ifunc-strncat.h: New file.
2800
2801 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2802
2803 * sysdeps/s390/multiarch/Makefile
2804 (sysdep_routines): Remove strcat variants.
2805 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2806 * sysdeps/s390/multiarch/ifunc-impl-list.c
2807 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2808 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2809 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2810 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2811 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2812 * sysdeps/s390/multiarch/strcat.c: Move to ...
2813 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2814 * sysdeps/s390/ifunc-strcat.h: New file.
2815
2816 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2817
2818 * sysdeps/s390/multiarch/Makefile
2819 (sysdep_routines): Remove stpncpy variants.
2820 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2821 * sysdeps/s390/multiarch/ifunc-impl-list.c
2822 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2823 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2824 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2825 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2826 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2827 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2828 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2829 * sysdeps/s390/ifunc-stpncpy.h: New file.
2830
2831 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2832
2833 * sysdeps/s390/multiarch/Makefile
2834 (sysdep_routines): Remove strncpy variants.
2835 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2836 * sysdeps/s390/multiarch/ifunc-impl-list.c
2837 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2838 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2839 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2840 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2841 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2842 * sysdeps/s390/ifunc-strncpy.h: New file.
2843 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2844 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2845 and adjust ifunc handling.
2846 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2847 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2848 and adjust ifunc handling.
2849 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2850 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2851
2852 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2853
2854 * sysdeps/s390/multiarch/Makefile
2855 (sysdep_routines): Remove stpcpy variants.
2856 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2857 * sysdeps/s390/multiarch/ifunc-impl-list.c
2858 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2859 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2860 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2861 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2862 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2863 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2864 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2865 * sysdeps/s390/ifunc-stpcpy.h: New file.
2866
2867 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2868
2869 * sysdeps/s390/multiarch/Makefile
2870 (sysdep_routines): Remove strcpy variants.
2871 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2872 * sysdeps/s390/multiarch/ifunc-impl-list.c
2873 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2874 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2875 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2876 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2877 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2878 * sysdeps/s390/ifunc-strcpy.h: New file.
2879 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2880 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2881 for 31/64bit and ifunc handling.
2882 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2883 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2884 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2885
2886 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2887
2888 * sysdeps/s390/multiarch/Makefile
2889 (sysdep_routines): Remove strnlen variants.
2890 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2891 * sysdeps/s390/multiarch/ifunc-impl-list.c
2892 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2893 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2894 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2895 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2896 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2897 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2898 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2899 * sysdeps/s390/ifunc-strnlen.h: New file.
2900
2901 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2902
2903 * sysdeps/s390/multiarch/Makefile
2904 (sysdep_routines): Remove strlen variants.
2905 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2906 * sysdeps/s390/multiarch/ifunc-impl-list.c
2907 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2908 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2909 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2910 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2911 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2912 * sysdeps/s390/multiarch/strlen.c: Move to ...
2913 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2914 * sysdeps/s390/ifunc-strlen.h: New file.
2915
2916 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2917
2918 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2919 * sysdeps/s390/multiarch/ifunc-impl-list.c
2920 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2921 * sysdeps/s390/ifunc-memmem.h: New file.
2922 * sysdeps/s390/memmem.c: Likewise.
2923 * sysdeps/s390/memmem-c.c: Likewise.
2924 * sysdeps/s390/memmem-vx.c: Likewise.
2925
2926 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2927
2928 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2929 * sysdeps/s390/multiarch/ifunc-impl-list.c
2930 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2931 * sysdeps/s390/ifunc-strstr.h: New file.
2932 * sysdeps/s390/strstr.c: Likewise.
2933 * sysdeps/s390/strstr-c.c: Likewise.
2934 * sysdeps/s390/strstr-vx.c: Likewise.
2935
2936 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2937
2938 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2939 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2940 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2941 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2942 New defines.
2943 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2944 * sysdeps/s390/memmove-c.c: New file.
2945 * sysdeps/s390/memmove.c: Likewise.
2946 * sysdeps/s390/multiarch/ifunc-impl-list.c
2947 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2948
2949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2952 * sysdeps/s390/configure.ac: Add check for z13 support.
2953 * sysdeps/s390/configure: Regenerated.
2954
2955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2956
2957 * sysdeps/s390/memcopy.h: New file.
2958
2959 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2960
2961 * sysdeps/s390/s390-32/bcopy.S: Remove.
2962 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2963
2964 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2965
2966 * sysdeps/s390/ifunc-memcpy.h: New File.
2967 * sysdeps/s390/memcpy.S: Move to ...
2968 * sysdeps/s390/memcpy-z900.S ... here.
2969 Move implementations from memcpy-s390x.s to here.
2970 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2971 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2972 Remove memcpy/mempcpy variants.
2973 * sysdeps/s390/Makefile (sysdep_routines):
2974 Add memcpy/mempcpy variants.
2975 * sysdeps/s390/multiarch/ifunc-impl-list.c
2976 (__libc_ifunc_impl_list): Adjust ifunc variants for
2977 memcpy and mempcpy.
2978 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2979 to ...
2980 * sysdeps/s390/memcpy.c: ... here.
2981 Adjust ifunc variants for memcpy.
2982 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2983 * sysdeps/s390/mempcpy.c: ... here.
2984 Adjust ifunc variants for mempcpy.
2985 * sysdeps/s390/mempcpy.S: Delete file.
2986
2987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2990 * sysdeps/s390/memcpy.S: ... here.
2991 Adjust to be usable for 31/64bit.
2992 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2993 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2994 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2995 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2996 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2997 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2998 Adjust to be usable for 31/64bit.
2999 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3000 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3001 * sysdeps/s390/multiarch/memcpy.c: ... here.
3002 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3003
3004 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3005
3006 * sysdeps/s390/ifunc-memcmp.h: New File.
3007 * sysdeps/s390/memcmp.S: Move to ...
3008 * sysdeps/s390/memcmp-z900.S ... here.
3009 Move implementations from memcmp-s390x.s to here.
3010 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3011 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3012 Remove memcmp variants.
3013 * sysdeps/s390/Makefile (sysdep_routines):
3014 Add memcmp variants.
3015 * sysdeps/s390/multiarch/ifunc-impl-list.c
3016 (__libc_ifunc_impl_list): Adjust ifunc variants for
3017 memcmp.
3018 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3019 to ...
3020 * sysdeps/s390/memcmp.c: ... here.
3021 Adjust ifunc variants for memcmp.
3022
3023 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3024
3025 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3026 * sysdeps/s390/memcmp.S: ... here.
3027 Adjust to be usable for 31/64bit.
3028 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3029 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3030 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3031 Remove memcmp.
3032 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3033 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3034 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3035 Adjust to be usable for 31/64bit.
3036 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3037 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3038 * sysdeps/s390/multiarch/memcmp.c: ... here.
3039 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3040
3041 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3042
3043 * sysdeps/s390/s390-32/bzero.S: Delete file.
3044 * sysdeps/s390/s390-64/bzero.S: Likewise.
3045 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3046 * sysdeps/s390/bzero.c: New file.
3047 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3048 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3049 * sysdeps/s390/multiarch/ifunc-impl-list.c
3050 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3051
3052 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3053
3054 * sysdeps/s390/ifunc-memset.h: New File.
3055 * sysdeps/s390/memset.S: Move to ...
3056 * sysdeps/s390/memset-z900.S ... here.
3057 Move implementations from memset-s390x.s to here.
3058 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3059 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3060 Remove memset variants.
3061 * sysdeps/s390/Makefile (sysdep_routines):
3062 Add memset variants.
3063 * sysdeps/s390/multiarch/ifunc-impl-list.c
3064 (__libc_ifunc_impl_list): Adjust ifunc variants for
3065 memset.
3066 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3067 to ...
3068 * sysdeps/s390/memset.c: ... here.
3069 Adjust ifunc variants for memset.
3070
3071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3072
3073 * sysdeps/s390/s390-64/memset.S: Move to ...
3074 * sysdeps/s390/memset.S: ... here.
3075 Adjust to be usable for 31/64bit.
3076 * sysdeps/s390/s390-32/memset.S: Delete File.
3077 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3078 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3079 Remove memset.
3080 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3081 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3082 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3083 Adjust to be usable for 31/64bit.
3084 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3085 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3086 * sysdeps/s390/multiarch/memset.c: ... here.
3087 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3088
3089 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3090
3091 * sysdeps/s390/multiarch/ifunc-resolve.h
3092 (s390_libc_ifunc_init, s390_libc_ifunc,
3093 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3094
3095 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3096
3097 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3098 * sysdeps/s390/configure.ac: Add check for z10 support.
3099 * sysdeps/s390/configure: Regenerated.
3100
3101 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3102
3103 * sysdeps/i386/atomic-machine.h: Merged with ...
3104 * sysdeps/x86_64/atomic-machine.h: To ...
3105 * sysdeps/x86/atomic-machine.h: This. New file.
3106
3107 2018-12-18 Florian Weimer <fweimer@redhat.com>
3108
3109 Rewrite locale/gen-translit.pl in Python.
3110 * locale/Makefile (generated): Add C-translit.h.
3111 (before-compile): Add $(objpfx)C-translit.h.
3112 (C-translit.h): Move to $(objpfx). Create target directory.
3113 Build using Python script.
3114 * locale/gen-translit.py: New file.
3115 * locale/gen-translit.pl: Remove file.
3116 * locale/C-translit.h.in: Change comment character to '#' for
3117 easier parsing without a C preprocessor.
3118 * locale/C-translit.h: Remove generated file.
3119 * manual/install.texi (Tools for Compilation): Do not mention
3120 C-translit.h.
3121 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3122 Remove locale/C-translit.h.
3123 * scripts/update-copyrights: Likewise.
3124 * INSTALL: Regenerate.
3125
3126 2018-12-18 Florian Weimer <fweimer@redhat.com>
3127
3128 [BZ #23995]
3129 * localedata/locales/bi_VU: Remove executable bit from file.
3130
3131 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3132
3133 * include/time.h
3134 (__localtime64): Add.
3135 * manual/maint.texi: Document Y2038 symbol handling.
3136 * time/localtime.c
3137 (__localtime64): Add.
3138 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3139
3140 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3141
3142 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3143 Do not clobber r12.
3144
3145 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3146 to allow extra macros from first or second sources.
3147 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3148 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3149 (tests-special): Add $(objpfx)tst-mman-consts.out.
3150 ($(objpfx)tst-mman-consts.out): New makefile target.
3151
3152 2018-12-17 Mao Han <han_mao@c-sky.com>
3153
3154 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3155 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3156 without stat64 system call support.
3157 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3158 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3159 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3160 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3161 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3162 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3163 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3164 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3165 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3166 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3167 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3168
3169 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3170
3171 regex: fix storage-exhaustion error
3172 [BZ #18040]
3173 * posix/regexec.c (get_subexp):
3174 Do not continue if storage is exhausted.
3175
3176 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3177
3178 regex: fix heap-use-after-free error
3179 [BZ #18040]
3180 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3181 https://debbugs.gnu.org/32592
3182 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3183 call extend_buffers which reallocates the re_string_t internal buffer.
3184 Local variable 'buf' was not updated in such case, resulting in
3185 use-after-free.
3186 * posix/regexec.c (get_subexp): Update 'buf' after call to
3187 get_subexp_sub.
3188
3189 2018-12-15 Florian Weimer <fweimer@redhat.com>
3190
3191 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3192 (minimum_stride_size): Use it.
3193 (support_blob_repeat_allocate): Likewise.
3194
3195 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3196
3197 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3198 definition.
3199 (acosh): Likewise.
3200 (atanh): Likewise.
3201
3202 2018-12-14 Florian Weimer <fweimer@redhat.com>
3203
3204 * manual/process.texi (Process Creation Concepts): Remove
3205 documentation of process (ID) lifetime. List more process
3206 creation functions. Reference Process Identification section.
3207 (Process Identification): Add information about process ID
3208 lifetime. Describe Linux thread/task IDs.
3209 * manual/signal.texi (Signaling Another Process): Mention that the
3210 signal is always sent to the process.
3211
3212 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3213
3214 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3215 and tst-ldbl-efgcvt.
3216 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3217 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3218 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3219 (fcvt_tests, output_error, output_r_error, do_test): Use the
3220 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3221 select the type of floating-point variables and arguments; to
3222 produce extra tests for double and conversion specifiers for
3223 printf; and to set the names of called functions.
3224 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3225 in tst-efgcvt-template.c.
3226 * misc/tst-ldbl-efgcvt.c: Likewise.
3227
3228 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3229
3230 * nss/Makefile (tst-nss-test3.out): New rule.
3231
3232 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3233
3234 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3235 clobber sp.
3236
3237 2018-12-13 fanjinke <fanjinke@hygon.cn>
3238
3239 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3240 "HygonGenuine".
3241
3242 2018-12-13 Andreas Schwab <schwab@suse.de>
3243
3244 [BZ #23861]
3245 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3246 (__pthread_rwlock_rdlock_full): Update expected value for
3247 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3248 * nptl/tst-rwlock-pwn.c: New file.
3249 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3250
3251 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3252
3253 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3254 definition.
3255
3256 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3257
3258 * benchtests/scripts/compare_bench.py (do_compare): write to
3259 stderr in casestat is not present.
3260 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3261 stderr in case timings field is not present. Also string showing
3262 the output filename goes into the stderr.
3263
3264 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3265
3266 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3267 and ZeroDivisorError exceptions.
3268 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3269 argument to loop through user provided statistics.
3270 * benchtests/scripts/compare_bench.py (main): Include the --stats
3271 argument.
3272
3273 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3274
3275 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3276 instead of return.
3277
3278 2018-12-12 Florian Weimer <fweimer@redhat.com>
3279
3280 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3281 clause to copyright header.
3282
3283 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3284
3285 [BZ #23614]
3286 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3287 registers saved in the stack frame.
3288 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3289 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3290
3291 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3292
3293 * include/bits/monetary-ldbl.h: New file.
3294 * include/bits/printf-ldbl.h: Likewise.
3295 * include/bits/stdio-ldbl.h: Likewise.
3296 * include/bits/stdlib-ldbl.h: Likewise.
3297 * include/bits/syslog-ldbl.h: Likewise.
3298 * include/bits/wchar-ldbl.h: Likewise.
3299
3300 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3301
3302 * libio/libio.h: Remove redirection for _IO_vfprintf.
3303
3304 2018-12-11 Andreas Schwab <schwab@suse.de>
3305
3306 * Makerules: Remove all references to abilist-pattern.
3307 (update-all-abi): Simplify find expression.
3308
3309 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3310
3311 [BZ #23961]
3312 * math/auto-libm-test-in: Add new test case.
3313 * math/auto-libm-test-out-pow: Regenerated.
3314 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3315
3316 2018-12-10 DJ Delorie <dj@redhat.com>
3317
3318 [BZ #23948]
3319 * support/test-container.c: Move postclean step to before we
3320 change namespaces.
3321
3322 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3323
3324 * scripts/gen-as-const.py (main): Handle --python option.
3325 * scripts/gen-py-const.awk: Remove.
3326 * Makerules (py-const-script): Use gen-as-const.py.
3327 ($(py-const)): Likewise.
3328 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3329 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3330 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3331 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3332 ~PTHREAD_MUTEX_NO_ELISION_NP.
3333 * manual/README.pretty-printers: Update reference to
3334 gen-py-const.awk.
3335
3336 * scripts/glibcextract.py: New file.
3337 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3338 or tempfile. Import glibcexctract.
3339 (compute_c_consts): Remove. Moved to glibcextract.py.
3340 (gen_test): Update reference to compute_c_consts.
3341 (main): Likewise.
3342 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3343 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3344 * sysdeps/unix/sysv/linux/Makefile
3345 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3346 Redirect stderr as well as stdout.
3347
3348 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3349
3350 [BZ #19767]
3351 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3352 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3353 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3354 ALWAYS_USE_VSYSCALL.
3355 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3356 ALWAYS_USE_VSYSCALL.
3357 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3358 ALWAYS_USE_VSYSCALL.
3359
3360 2018-12-10 Florian Weimer <fweimer@redhat.com>
3361
3362 [BZ #23972]
3363 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3364 offset instead of count for clarity. Fix typo in comment.
3365 (__old_getdents64): Keep track of previous offset. Use it to call
3366 handle_overflow.
3367 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3368 that d_off is never zero.
3369
3370 2018-12-10 Andreas Schwab <schwab@suse.de>
3371
3372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3373 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3375 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3376 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3377
3378 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3379
3380 * timezone/private.h: Update from tzcode 2018g.
3381 * timezone/tzfile.h: Likewise.
3382 * timezone/tzselect.ksh: Likewise.
3383 * timezone/zdump.c: Likewise.
3384 * timezone/zic.c: Likewise.
3385
3386 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3387
3388 [BZ #23490]
3389 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3390 (do_test): Adjust buffer size and fix format.
3391
3392 2018-12-07 DJ Delorie <dj@redhat.com>
3393
3394 [BZ #23907]
3395 * malloc/tst-tcfree3.c: New.
3396 * malloc/Makefile: Add it.
3397
3398 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3399
3400 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3401
3402 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3403
3404 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3405 used as a mask for the mode argument of __vfscanf_internal and
3406 __vfwscanf_internal.
3407 * stdio-common/vfscanf-internal.c
3408 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3409 (__strtof128_internal): Define to __wcstof128_internal.
3410 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3411 __strtof128_internal or __wcstof128_internal when the format of
3412 long double is the same as _Float128.
3413
3414 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3415
3416 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3417 * posix/confstr.c (confstr): Rename to __confstr.
3418 (__confstr): Add hidden def.
3419 (confstr): Add weak alias for __confstr.
3420 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3421 confstr.
3422
3423 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3424
3425 * NEWS: Mention getcpu.
3426 * include/sched.h (__getcpu): New libc_hidden_proto.
3427 * manual/resource.texi: Document getcpu.
3428 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3429 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3430 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3431 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3432 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3433 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3434 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3435 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3436 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3437 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3438 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3439 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3440 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3441 Likewise.
3442 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3443 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3444 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3446 Likewise.
3447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3448 Likewise.
3449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3450 Likewise.
3451 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3452 Likewise.
3453 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3454 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3455 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3456 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3457 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3458 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3459 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3460 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3461 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3462 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3463 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3464 Also check getcpu.
3465
3466 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3467
3468 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3469 functions.
3470 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3471
3472 2018-12-07 Florian Weimer <fweimer@redhat.com>
3473
3474 [BZ #17405]
3475 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3476 * posix/Versions (GLIBC_2.29): Export
3477 posix_spawn_file_actions_addfchdir_np.
3478 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3479 * posix/spawn_faction_destroy.c
3480 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3481 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3482 and the field action.fchdir_action.
3483 * posix/tst-spawn-chdir.c (add_chdir): New function.
3484 (do_test): Add do_fchdir loop. Call add_chdir.
3485 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3486 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3487 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3488 posix_spawn_file_actions_addfchdir_np.
3489 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3490 Likewise.
3491 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3492 Likewise.
3493 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3494 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3495 Likewise.
3496 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3497 Likewise.
3498 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3499 Likewise.
3500 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3501 Likewise.
3502 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3503 Likewise.
3504 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3505 Likewise.
3506 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3507 (GLIBC_2.29): Likewise.
3508 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3509 (GLIBC_2.29): Likewise.
3510 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3511 (GLIBC_2.29): Likewise.
3512 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3513 (GLIBC_2.29): Likewise.
3514 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3515 Likewise.
3516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3517 (GLIBC_2.29): Likewise.
3518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3519 (GLIBC_2.29): Likewise.
3520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3521 (GLIBC_2.29): Likewise.
3522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3523 (GLIBC_2.29): Likewise.
3524 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3525 Likewise.
3526 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3527 Likewise.
3528 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3529 Likewise.
3530 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3531 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3532 Likewise.
3533 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3534 Likewise.
3535 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3536 Likewise.
3537 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3538 Likewise.
3539
3540 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3541
3542 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3543 trailing whitespace removed.
3544 * scripts/config.guess: Update to version 2018-11-28.
3545 * scripts/config.sub: Update to version 2018-11-28.
3546 * scripts/install-sh: Update to version 2018-03-11.20.
3547 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3548 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3549
3550 2018-12-07 Florian Weimer <fweimer@redhat.com>
3551
3552 [BZ #23927]
3553 CVE-2018-19591
3554 * inet/tst-if_index-long.c: New file.
3555 * inet/Makefile (tests): Add tst-if_index-long.
3556
3557 2018-12-07 Florian Weimer <fweimer@redhat.com>
3558
3559 * support/check.h (support_record_failure_is_failed): Declare.
3560 * support/descriptors.h: New file.
3561 * support/support_descriptors.c: Likewise.
3562 * support/tst-support_descriptors.c: Likewise.
3563 * support/support_record_failure.c
3564 (support_record_failure_is_failed): New function.
3565 * support/Makefile (libsupport-routines): Add support_descriptors.
3566 (tests): Add tst-support_descriptors.
3567
3568 2018-12-05 Zack Weinberg <zackw@panix.com>
3569 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3570
3571 * stdio-common/vfprintf-internal.c
3572 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3573 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3574 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3575 and __no_long_double.
3576 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3577 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3578 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3579 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3580 and __nldbl_*syslog* functions.
3581 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3582 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3583 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3584 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3585 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3586 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3587 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3588 (__nldbl_vwprintf, __nldbl_wprintf):
3589 Directly call the appropriate __v*printf_internal routine, passing
3590 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3591 variable names.
3592 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3593 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3594 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3595 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3596 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3597 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3598 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3599 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3600 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3601 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3602 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3603 (__nldbl_syslog, __nldbl_vsyslog):
3604 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3605 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3606 appropriate.
3607 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3608 appropriate.
3609
3610 2018-12-05 Zack Weinberg <zackw@panix.com>
3611 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3612
3613 [BZ #11319]
3614 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3615 Moved here from debug/vsprintf_chk.c.
3616 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3617 and completion logic for the strfile to match exactly what
3618 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3619 _IO_str_init_static_internal instead of maxlen-1.
3620 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3621 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3622 __vsprintf_internal.
3623
3624 * debug/vsprintf_chk.c (__vsprintf_chk)
3625 * debug/sprintf_chk.c (__sprintf_chk):
3626 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3627 'flags' argument is positive, and slen as maxlen. No need to lock
3628 the FILE and/or construct a temporary FILE. Minimize and normalize
3629 header inclusions and variable names. Do not libc_hidden_def anything.
3630
3631 * debug/asprintf_chk.c (__asprintf_chk)
3632 * debug/dprintf_chk.c (__dprintf_chk)
3633 * debug/fprintf_chk.c (__fprintf_chk)
3634 * debug/fwprintf_chk.c (__fwprintf_chk)
3635 * debug/printf_chk.c (__printf_chk)
3636 * debug/snprintf_chk.c (__snprintf_chk)
3637 * debug/swprintf_chk.c (__swprintf_chk)
3638 * debug/vasprintf_chk.c (__vasprintf_chk)
3639 * debug/vdprintf_chk.c (__vdprintf_chk)
3640 * debug/vfprintf_chk.c (__vfprintf_chk)
3641 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3642 * debug/vprintf_chk.c (__vprintf_chk)
3643 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3644 * debug/vswprintf_chk.c (__vswprintf_chk)
3645 * debug/vwprintf_chk.c (__vwprintf_chk)
3646 * debug/wprintf_chk.c (__wprintf_chk):
3647 Directly call the corresponding vxxprintf_internal function, passing
3648 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3649 the FILE and/or construct a temporary FILE. Minimize and normalize
3650 header inclusions and variable names. Do not libc_hidden_def anything.
3651
3652 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3653 __obstack_vprintf_internal.
3654 (__obstack_vprintf_chk): Convert into a wrapper that calls
3655 __obstack_vprintf_internal (these two functions already had the
3656 same code) and move to new file...
3657 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3658 file.
3659 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3660 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3661 * debug/Makefile (routines): Add vobprintf_chk.
3662
3663 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3664 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3665 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3666 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3667 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3668 (__nldbl___obstack_vfprintf_chk):
3669 Directly call the corresponding vxxprintf_internal function,
3670 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3671 duplicate comparison of slen with 0 or maxlen from the corresponding
3672 non-__nldbl function.
3673
3674 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3675 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3676 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3677 Remove libc_hidden_proto.
3678
3679 * stdio-common/vfprintf-internal.c
3680 (__vfprintf_internal, __vfwprintf_internal):
3681 Do not check _IO_FLAGS2_FORTIFY.
3682 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3683 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3684 a comment explaining why it has the maxlen argument.
3685 (_IO_acquire_lock_clear_flags2_fct): Remove.
3686 (_IO_acquire_lock_clear_flags2): Remove.
3687 (_IO_release_lock): Remove conditional statement which will
3688 now never execute.
3689 (_IO_acquire_lock): Remove variable which is now unused.
3690 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3691 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3692
3693 * stdio-common/Makefile (tests): Add tst-bz11319 and
3694 tst-bz11319-fortify2.
3695 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3696 * stdio-common/tst-bz11319-fortify2.c: New file.
3697 * stdio-common/tst-bz11319.c: Likewise.
3698
3699 2018-12-05 Zack Weinberg <zackw@panix.com>
3700 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3701
3702 * misc/syslog.c: Include libioP.h, not iolibio.h.
3703 (__vsyslog_internal): New function with the former body of
3704 __vsyslog_chk; takes mode_flags argument same as
3705 __v*printf_internal. Call __vfprintf_internal directly.
3706
3707 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3708 Remove libc_hidden_def.
3709 (__syslog, __syslog_chk): Use __vsyslog_internal.
3710 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3711
3712 * include/sys/syslog.h: Add multiple inclusion guard.
3713 Add prototype for __vsyslog_internal.
3714 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3715
3716 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3717 Use __vsyslog_internal.
3718
3719 2018-12-05 Zack Weinberg <zackw@panix.com>
3720 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3721
3722 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3723 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3724 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3725 New functions.
3726 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3727 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3728
3729 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3730 Include wctype.h here if COMPILE_WPRINTF is defined.
3731 Define __vfprintf_internal or __vfwprintf_internal, depending
3732 on COMPILE_WPRINTF.
3733 Temporarily, on entry to this function, update mode_flags
3734 according to the environmental settings corresponding to
3735 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3736 Throughout, check mode_flags instead of __ldbl_is_dbl and
3737 _IO_FLAGS2_FORTIFY on the destination FILE.
3738 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3739 Include vfprintf-internal.c. Don't include wctype.h.
3740 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3741 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3742 and vfprintf.
3743 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3744 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3745 and vfwprintf.
3746 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3747
3748 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3749 and add mode_flags argument; use __vfprintf_internal.
3750 (__vdprintf): New function. Alias vdprintf to this.
3751 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3752 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3753 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3754 (__obstack_printf): Use __obstack_printf_internal.
3755 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3756 public aliases __vsnprintf and vsnprintf.
3757 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3758 called internally.
3759 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3760 public aliases _IO_vsprintf and vsprintf.
3761 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3762 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3763 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3764 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3765 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3766
3767 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3768 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3769 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3770 * stdio-common/printf.c: Use __vfprintf_internal.
3771
3772 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3773 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3774 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3775
3776 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3777 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3778 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3779 __vfwprintf_internal.
3780
3781 * libio/libio.h: Remove libc_hidden_proto and declaration for
3782 _IO_vfprintf.
3783 Remove declaration of _IO_vfwprintf.
3784 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3785 _IO_vsprintf.
3786 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3787 _IO_obstack_printf.
3788 * include/stdio.h: Add prototype for __vasprintf.
3789 (__vsnprintf): Remove declaration, because there are no more
3790 internal calls.
3791 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3792 declaration, because there are no more internal calls.
3793
3794 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3795 __vsnprintf_internal, instead of _IO_vsnprintf.
3796 * argp/argp-help.c (__argp_error, __argp_failure): Use
3797 __vasprintf_internal, instead of _IO_vasprintf.
3798 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3799 redefine, because there are no more internal calls.
3800
3801 2018-12-05 Zack Weinberg <zackw@panix.com>
3802 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3803
3804 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3805 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3806 Include libio/strfile.h instead of libioP.h.
3807 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3808 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3809 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3810 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3811 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3812 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3813 necessary. Do not set __no_long_double. Normalize variable names.
3814 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3815 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3816 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3817 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3818 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3819 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3820 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3821 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3822 Do not set __no_long_double. Normalize variable names.
3823
3824 2018-12-05 Zack Weinberg <zackw@panix.com>
3825 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3826
3827 * stdio-common/isoc99_scanf.c
3828 * stdio-common/isoc99_fscanf.c
3829 * stdio-common/isoc99_sscanf.c
3830 * stdio-common/isoc99_vscanf.c
3831 * stdio-common/isoc99_vfscanf.c
3832 * stdio-common/isoc99_vsscanf.c
3833 * wcsmbs/isoc99_wscanf.c
3834 * wcsmbs/isoc99_fwscanf.c
3835 * wcsmbs/isoc99_swscanf.c
3836 * wcsmbs/isoc99_vwscanf.c
3837 * wcsmbs/isoc99_vfwscanf.c
3838 * wcsmbs/isoc99_vswscanf.c:
3839 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3840 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3841 No need to lock and unlock the FILE passed to that function.
3842
3843 * stdio-common/vfscanf-internal.c
3844 (__vfscanf_internal, __vfwscanf_internal):
3845 Don't look at _IO_FLAGS2_SCANF_STD.
3846 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3847 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3848 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3849
3850 2018-12-05 Zack Weinberg <zackw@panix.com>
3851 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3852
3853 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3854 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3855 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3856 * libio/strfile.h: Add multiple inclusion guard.
3857 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3858
3859 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3860 consistency with the other version of this file.
3861 (ldbl_compat_symbol): New macro.
3862 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3863 New macro.
3864
3865 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3866 Define __vfscanf_internal or __vfwscanf_internal, depending on
3867 COMPILE_WSCANF; don't define any other public symbols.
3868 Remove errval and code to set errp.
3869 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3870 as the mode_flags argument.
3871 (encode_error, conv_error, input_error): Don't set errval.
3872 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3873 Include vfscanf-internal.c.
3874 * stdio-common/vfscanf.c: New file defining the public entry
3875 point vfscanf, which calls __vfscanf_internal.
3876 * stdio-common/vfwscanf.c: New file defining the public entry
3877 point vfwscanf, which calls __vfwscanf_internal.
3878
3879 * stdio-common/iovfscanf.c: New file.
3880 * stdio-common/iovfwscanf.c: Likewise.
3881
3882 * stdio-common/Makefile (routines): Add vfscanf-internal,
3883 vfwscanf-internal, iovfscanf, iovfwscanf.
3884 * stdio-common/Versions: Mention GLIBC_2.29, so that
3885 it can be used in SHLIB_COMPAT expressions.
3886 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3887 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3888 Call __vfscanf_internal, instead of _IO_vfscanf.
3889 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3890 _IO_vfscanf.
3891 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3892 _IO_vfwscanf.
3893
3894 * libio/iovsscanf.c: Clean up includes, when possible. Use
3895 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3896 __vfscanf_internal or __vfwscanf_internal directly.
3897 * libio/iovswscanf.c: Likewise.
3898 * libio/swscanf.c: Likewise.
3899 * libio/vscanf.c: Likewise.
3900 * libio/vwscanf.c: Likewise.
3901 * libio/wscanf.c: Likewise.
3902 * stdio-common/isoc99_fscanf.c: Likewise.
3903 * stdio-common/isoc99_scanf.c: Likewise.
3904 * stdio-common/isoc99_sscanf.c: Likewise.
3905 * stdio-common/isoc99_vfscanf.c: Likewise.
3906 * stdio-common/isoc99_vscanf.c: Likewise.
3907 * stdio-common/isoc99_vsscanf.c: Likewise.
3908 * stdio-common/scanf.c: Likewise.
3909 * stdio-common/sscanf.c: Likewise.
3910 * wcsmbs/isoc99_fwscanf.c: Likewise.
3911 * wcsmbs/isoc99_swscanf.c: Likewise.
3912 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3913 * wcsmbs/isoc99_vswscanf.c: Likewise.
3914 * wcsmbs/isoc99_vwscanf.c: Likewise.
3915 * wcsmbs/isoc99_wscanf.c: Likewise.
3916
3917 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3918
3919 * include/time.h
3920 (__tz_compute): Replace time_t with __time64_t.
3921 (__tz_convert): Replace time_t* with __time64_t.
3922 (__offtime): Replace time_t* with __time64_t.
3923 * time/gmtime.c
3924 (__gmtime_r): Adjust call to __tz_convert.
3925 (gmtime): Likewise.
3926 * time/localtime.c
3927 (__localtime_r): Likewise.
3928 (localtime): Likewise.
3929 * time/offtime.c: Replace time_t with __time64_t.
3930 * time/tzset.c: Likewise.
3931
3932 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3933
3934 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3935 dynamic linker unless [$(run-built-tests) = yes].
3936
3937 2018-12-03 DJ Delorie <dj@delorie.com>
3938
3939 * support/test-container.c (check_for_unshare_hints): New.
3940 (main): Call it if unshare fails. Add support for "su" scriptlet
3941 command.
3942
3943 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3944
3945 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3946 'START' to indicate that start text should be output.
3947 (gen_test): Likewise.
3948 (main): Generate 'START' for first symbol or '--' line, or at end
3949 of input if not previously generated.
3950
3951 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3952
3953 [BZ #19767]
3954 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3955 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3956 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3957 ALWAYS_USE_VSYSCALL.
3958
3959 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3960
3961 [BZ #23913]
3962 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3963 new_argv by one.
3964
3965 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3966
3967 [BZ #23923]
3968 * locale/programs/localedef.c: Declare boolean hard_links default true.
3969 (options): Add --no-hard-links option.
3970 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3971 * locale/programs/localedef.h: Declare prototype for hard_links.
3972 * locale/programs/locfile.c (write_locale_data): Don't use hard
3973 links if hard_links is false.
3974
3975 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3976
3977 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3978 cpu_features_basic.
3979 (__cache_sysconf): Likewise.
3980 (init_cacheinfo): Likewise.
3981 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3982 populate COMMON_CPUID_INDEX_80000007 and
3983 COMMON_CPUID_INDEX_80000008.
3984 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3985 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3986 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3987 (init_cpu_features): Use _Static_assert on
3988 index_arch_Fast_Unaligned_Load.
3989 __get_cpuid_registers and __get_arch_feature. Updated for
3990 cpu_features_basic. Set stepping in cpu_features.
3991 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3992 (FEATURE_INDEX_2): New.
3993 (FEATURE_INDEX_MAX): Changed to enum.
3994 (COMMON_CPUID_INDEX_D_ECX_1): New.
3995 (COMMON_CPUID_INDEX_80000007): Likewise.
3996 (COMMON_CPUID_INDEX_80000008): Likewise.
3997 (cpuid_registers): Likewise.
3998 (cpu_features_basic): Likewise.
3999 (CPU_FEATURE_USABLE): Likewise.
4000 (bit_arch_XXX_Usable): Likewise.
4001 (cpu_features): Use cpuid_registers and cpu_features_basic.
4002 (bit_arch_XXX): Reweritten.
4003 (bit_cpu_XXX): Likewise.
4004 (index_cpu_XXX): Likewise.
4005 (reg_XXX): Likewise.
4006 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4007 <support/check.h>.
4008 (CHECK_CPU_FEATURE): New.
4009 (CHECK_CPU_FEATURE_USABLE): Likewise.
4010 (cpu_kinds): Likewise.
4011 (do_test): Print vendor, family, model and stepping. Check
4012 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4013 (TEST_FUNCTION): Removed.
4014 Include <support/test-driver.c> instead of
4015 "../../test-skeleton.c".
4016 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4017 Check POPCNT instead of POPCOUNT.
4018 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4019
4020 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4021
4022 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4023 there is no element in `consts'.
4024
4025 2018-12-01 Florian Weimer <fweimer@redhat.com>
4026
4027 * support/support_capture_subprocess.c
4028 (support_capture_subprocess): Check that pipe descriptors have
4029 expected values. Close original pipe descriptors in subprocess.
4030
4031 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4032
4033 [BZ #23032]
4034 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4035 attr with __pthread_default_barrierattr.
4036 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4037 attr with __pthread_default_condattr.
4038 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4039 attr with __pthread_default_mutexattr.
4040 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4041 attr with __pthread_default_rwlockattr.
4042
4043 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4044
4045 * manual/tunables.texi (POSIX Thread Tunables): New node.
4046 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4047 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4048 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4049 __pthread_tunables_init.
4050 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4051 (max_adaptive_count): Define.
4052 * nptl/pthread_mutex_conf.c: New file.
4053 * nptl/pthread_mutex_conf.h: New file.
4054 * sysdeps/generic/adaptive_spin_count.h: New file.
4055 * sysdeps/nptl/dl-tunables.list: New file.
4056 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4057 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4058 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4059 Likewise.
4060
4061 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4062
4063 [BZ #20544]
4064 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4065 * stdlib/on_exit.c (__on_exit): Likewise.
4066 * stdlib/Makefile (tests): Add tst-bz20544.
4067 * stdlib/tst-bz20544.c: New test.
4068
4069 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4070
4071 [BZ #19767]
4072 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4073 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4074 New.
4075
4076 2018-11-30 Florian Weimer <fweimer@redhat.com>
4077
4078 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4079 Extend error logging.
4080 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4081 symbol.
4082
4083 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4084
4085 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4086 __sigismember instead of sigismember.
4087 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4088 cancel_handler): New definitions.
4089 (do_system): Use posix_spawn instead of fork and execl and remove
4090 reentracy code.
4091 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4092 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4093 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4094 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4095 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4096 * sysdeps/unix/sysv/linux/system.c: Likewise.
4097
4098 [BZ #22834]
4099 [BZ #17490]
4100 * NEWS: Add new semantic for atfork with popen and system.
4101 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4102 fork and execl.
4103
4104 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4105
4106 [BZ #23690]
4107 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4108 modification order when accessing reloc_result->addr.
4109 * include/link.h (reloc_result): Add field init.
4110 * nptl/Makefile (tests): Add tst-audit-threads.
4111 (modules-names): Add tst-audit-threads-mod1 and
4112 tst-audit-threads-mod2.
4113 Add rules to build tst-audit-threads.
4114 * nptl/tst-audit-threads-mod1.c: New file.
4115 * nptl/tst-audit-threads-mod2.c: Likewise.
4116 * nptl/tst-audit-threads.c: Likewise.
4117 * nptl/tst-audit-threads.h: Likewise.
4118
4119 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4120
4121 * scripts/gen-as-const.py: New file.
4122 * scripts/gen-as-const.awk: Remove.
4123 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4124 gen-as-const.py.
4125 ($(objpfx)test-as-const-%.c): Likewise.
4126
4127 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4128
4129 * elf/dl-exception.c: Include <_itoa.h>.
4130
4131 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4132
4133 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4134 returned by __f_setlk.
4135
4136 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4137 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4138
4139 * elf/Makefile (tests-internal): Add tst-create_format1.
4140 * elf/dl-exception.c (_dl_exception_create_format): Support
4141 %x, %lx and %zx.
4142 * elf/tst-create_format1.c: New file.
4143
4144 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4145
4146 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4147 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4148 gnulib.)
4149 * argp/argp-help.c (__argp_failure): Likewise.
4150
4151 2018-11-29 Mao Han <han_mao@c-sky.com>
4152
4153 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4154 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4155 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4156 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4157 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4158 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4159 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4160 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4161 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4162 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4163 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4164 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4165 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4166 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4167 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4168 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4169 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4170 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4171 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4172 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4173 (R_CKCORE_TLS_TPOFF32): New defines.
4174
4175 2018-11-29 Florian Weimer <fweimer@redhat.com>
4176
4177 * posix/Makefile (before-compile): Remove testcases.h and
4178 ptestcases.h.
4179 (generated): Add testcases.h and ptestcases.h.
4180 (testcases.h, ptestcases.h): Move to $(objpfx).
4181 (runtests.o): Add dependency on testcases.h.
4182 (runptests.o): Add dependency on ptestcases.h.
4183 * posix/testcases.h, posix/ptestcases.h: Remove files.
4184 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4185 not touch posix/testcases.h and posix/ptestcases.h.
4186
4187 2018-11-28 Florian Weimer <fweimer@redhat.com>
4188
4189 support: Add signal support to support_capture_subprocess_check.
4190 * support/capture_subprocess.h (support_capture_subprocess_check):
4191 Adjust comment and rename parameter.
4192 * support/support_capture_subprocess_check.c
4193 (print_actual_status): New function.
4194 (support_capture_subprocess_check): Support negative
4195 status_or_signal. Call print_actual_status.
4196 * support/tst-support_capture_subprocess.c (do_test): Call
4197 support_capture_subprocess_check.
4198 * libio/tst-vtables-common.c (termination_status)
4199 (init_termination_status): Remove.
4200 (check_for_termination): Adjust support_capture_subprocess_check
4201 call.
4202 (do_test): Remove call to init_termination_status.
4203
4204 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4205
4206 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4207 source directory instead of a copy.
4208 (CommandList.create_copy_dir): Remove.
4209
4210 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4211
4212 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4213
4214 2018-11-28 Florian Weimer <fweimer@redhat.com>
4215
4216 * support/support.h (support_quote_string): Do not use str
4217 parameter name.
4218
4219 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4220
4221 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4222 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4223
4224 2018-11-27 Florian Weimer <fweimer@redhat.com>
4225
4226 * support/support.h (support_quote_string): Declare.
4227 * support/support_quote_string.c: New file.
4228 * support/tst-support_quote_string.c: Likewise.
4229 * support/Makefile (libsupport-routines): Add
4230 support_quote_string.
4231 (tests): Add tst-support_quote_string.
4232
4233 2018-11-27 Florian Weimer <fweimer@redhat.com>
4234
4235 [BZ #23927]
4236 CVE-2018-19591
4237 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4238 descriptor leak in case of ENODEV error.
4239
4240 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4241
4242 [BZ #19767]
4243 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4244 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4245 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4246
4247 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4248
4249 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4250 Error for unknown lines.
4251
4252 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4253
4254 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4255 Touch additional files.
4256
4257 2018-11-26 Florian Weimer <fweimer@redhat.com>
4258
4259 [BZ #23907]
4260 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4261 double-frees.
4262
4263 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4264
4265 [BZ #19767]
4266 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4267 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4268 SHARED. Include sysdep.h.
4269 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4270 ALWAYS_USE_VSYSCALL.
4271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4272 ALWAYS_USE_VSYSCALL.
4273
4274 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4275
4276 [BZ #19767]
4277 * nptl/Makefile (tests-static): Add tst-cond11-static.
4278 (tests): Likewise.
4279 * nptl/tst-cond11-static.c: New File.
4280 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4281 tst-affinity-static.
4282 (tests): Likewise.
4283 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4284 instead of SHARED.
4285 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4286 (USE_VSYSCALL): Likewise.
4287 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4288 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4289 instead of SHARED.
4290 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4291 SHARED.
4292 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4293 New.
4294
4295 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4296
4297 [BZ #23915]
4298 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4299 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4300 Undefine.
4301
4302 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4303
4304 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4305 (tst-cet-legacy-1a-ARGS): New.
4306 ($(objpfx)tst-cet-legacy-1a): New target.
4307 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4308
4309 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4310
4311 * conform/conformtest.py (CompileSubTest.__init__): Set
4312 self.run_early to False.
4313 (ExecuteSubTest.__init__): Likewise.
4314 (HeaderTests.run): Try running all non-optional, non-XFAILed
4315 compilation tests in a single execution of the compiler.
4316
4317 * conform/conformtest.py (CompileSubTest): New class.
4318 (ExecuteSubTest): Likewise.
4319 (ElementTest.run): Rename to gen_subtests. Append tests to
4320 self.subtests instead of running them.
4321 (ConstantTest.run): Likewise.
4322 (SymbolTest.run): Likewise.
4323 (TypeTest.run): Likewise.
4324 (TagTest.run): Likewise.
4325 (FunctionTest.run): Likewise.
4326 (VariableTest.run): Likewise.
4327 (MacroFunctionTest.run): Likewise.
4328 (MacroStrTest.run): Likewise.
4329 (HeaderTests.handle_test_line): Generate subtests for tests.
4330 (HeaderTests.run): Run subtests for tests.
4331
4332 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4333
4334 * math/Versions (GLIBC_2.29): Add pow.
4335 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4336 symbol.
4337 * math/w_pow.c: New file.
4338 * sysdeps/i386/fpu/w_pow.c: New file.
4339 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4340 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4341 and add necessary aliases.
4342 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4343 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4344 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4354 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4368 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4369 __pow.
4370 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4371 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4372 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4373
4374 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4375
4376 * math/Versions (GLIBC_2.29): Add log2.
4377 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4378 symbol.
4379 * math/w_log2.c: New file.
4380 * sysdeps/i386/fpu/w_log2.c: New file.
4381 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4382 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4383 and add necessary aliases.
4384 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4385 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4386 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4397 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4403 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4404 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4405 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4406 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4407 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4408 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4409 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4410
4411 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4412
4413 * math/Versions (GLIBC_2.29): Add log.
4414 * math/w_log_compat.c (__log_compat): Change to versioned compat
4415 symbol.
4416 * math/w_log.c: New file.
4417 * sysdeps/i386/fpu/w_log.c: New file.
4418 * sysdeps/ia64/fpu/e_log.S: Update.
4419 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4420 and add necessary aliases.
4421 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4422 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4423 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4428 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4429 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4432 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4433 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4434 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4435 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4440 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4441 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4442 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4443 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4444 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4445 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4446 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4447 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4448 __log.
4449 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4450 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4451 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4452 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4453
4454 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4455
4456 * math/Versions (GLIBC_2.29): Add exp and exp2.
4457 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4458 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4459 * math/w_exp_compat.c (__exp_compat): Likewise.
4460 * math/w_exp.c: New file.
4461 * math/w_exp2.c: New file.
4462 * sysdeps/i386/fpu/w_exp.c: New file.
4463 * sysdeps/i386/fpu/w_exp2.c: New file.
4464 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4465 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4466 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4467 and add necessary aliases.
4468 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4469 and add necessary aliases.
4470 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4471 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4472 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4473 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4474 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4475 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4476 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4477 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4478 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4479 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4480 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4481 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4482 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4483 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4484 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4485 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4486 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4488 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4489 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4491 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4492 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4493 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4494 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4495 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4496 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4497 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4498 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4499 (__ieee754_exp): Rename to __exp.
4500 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4501 (__ieee754_exp): Rename to __exp.
4502 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4503 (__ieee754_exp): Rename to __exp.
4504 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4505 __exp.
4506 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4507
4508 2018-11-20 DJ Delorie <dj@redhat.com>
4509
4510 * malloc/malloc.c (tcache_entry): Add key field.
4511 (tcache_put): Set it.
4512 (tcache_get): Likewise.
4513 (_int_free): Check for double free in tcache.
4514 * malloc/tst-tcfree1.c: New.
4515 * malloc/tst-tcfree2.c: New.
4516 * malloc/Makefile: Run the new tests.
4517 * manual/probes.texi: Document memory_tcache_double_free probe.
4518
4519 * dlfcn/dlerror.c (check_free): Prevent double frees.
4520
4521 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4522
4523 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4524
4525 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4526
4527 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4528 in tests. Use names for format arguments.
4529 (ConstantTest.run): Likewise.
4530 (SymbolTest.run): Likewise.
4531 (TypeTest.run): Likewise.
4532 (TagTest.run): Likewise.
4533 (FunctionTest.run): Likewise.
4534 (VariableTest.run): Likewise.
4535 (MacroFunctionTest.run): Likewise.
4536 (MacroStrTest.run): Likewise.
4537 (HeaderTests.__init__): Set self.num_tests.
4538 (HeaderTests.handle_test_line): Set test.num. Increment
4539 self.num_tests.
4540
4541 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4542
4543 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4544 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4545 SEEK_SET.
4546
4547 2018-11-19 Mao Han <han_mao@c-sky.com>
4548
4549 * scripts/config.guess: Update to version 2018-08-29.
4550 * scripts/config.sub: Update to version 2018-08-29.
4551
4552 2018-11-19 Florian Weimer <fweimer@redhat.com>
4553
4554 support: Print timestamps in timeout handler.
4555 * support/support_test_main.c (print_timestamp): New function.
4556 (signal_handler): Use it to print the termination time and the
4557 time of the last write to standard output.
4558
4559 2018-11-16 Zack Weinberg <zackw@panix.com>
4560 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4561
4562 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4563 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4564 argument.
4565 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4566 and add flags argument. Check flags instead of __ldbl_is_dbl when
4567 deciding whether to set is_long_double.
4568 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4569 passing zero for flags argument.
4570 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4571
4572 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4573 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4574 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4575 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4576 variable names. Remove libc_hidden_def/libc_hidden_proto from
4577 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4578 longer called from within the library.
4579 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4580 for __nldbl___vstrfmon_l, declare it explicitly.
4581
4582 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4583
4584 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4585
4586 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4587 macros
4588 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4589 F_SETLK64, F_SETLKW64, respectively.
4590 * sysdeps/mach/hurd/f_setlk.c: New file.
4591 * sysdeps/mach/hurd/f_setlk.h: New file.
4592 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4593 f_setlk.
4594 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4595 (__libc_fcntl): Move non-flock operations to...
4596 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4597 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4598
4599 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4600
4601 mktime: DEBUG_MKTIME cleanup
4602 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4603 And it’s no longer needed now that glibc and Gnulib both have
4604 their own testing mechanisms for mktime.
4605 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4606
4607 mktime: fix non-EOVERFLOW errno handling
4608 [BZ#23789]
4609 mktime was not properly reporting failures when the underlying
4610 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4611 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4612 The problem could happen on non-glibc platforms, with Gnulib.
4613 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4614 (tm_diff): ... this simpler function, which does not change errno.
4615 All callers changed to deal with errno themselves.
4616 (ranged_convert, __mktime_internal): Return failure immediately if
4617 the underlying function reports any failure other than EOVERFLOW.
4618 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4619 gap code fails.
4620
4621 mktime: fix bug with Y2038 DST transition
4622 [BZ#23789]
4623 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4624 mishandle a DST transition that jumps over the Y2038 boundary.
4625 No such DST transitions are known so this is only a theoretical
4626 bug, but we might as well do things right.
4627
4628 mktime: make more room for overflow
4629 [BZ#23789]
4630 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4631 This is so that we can add tm_diff results to a previous guess,
4632 which will be useful in a later patch.
4633
4634 mktime: simplify offset guess
4635 [BZ#23789]
4636 * time/mktime.c (__mktime_internal): Omit excess precision.
4637
4638 mktime: new test for mktime failure
4639 [BZ#23789]
4640 Based on a test suggested by Albert Aribaud in:
4641 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4642 * time/Makefile (tests): Add bug-mktime4.
4643 * time/bug-mktime4.c: New file.
4644
4645 mktime: fix EOVERFLOW bug
4646 [BZ#23789]
4647 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4648 Include libc-config.h, not config.h, for __set_errno.
4649 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4650
4651 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4652
4653 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4654 __attribute_copy__ to copy attributes from name. Drop static qualifier
4655 to avoid warnings about leaf attribute not having effect on static
4656 functions.
4657
4658 2018-11-13 Florian Weimer <fweimer@redhat.com>
4659
4660 * malloc/malloc.c (fastbin_push_entry): New function.
4661 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4662 (REMOVE_FB): Remove macro.
4663 (_int_malloc): Use fastbin_pop_entry and reindent.
4664 (_int_free): Use fastbin_push_entry.
4665 (malloc_consolidate): Use atomic_exchange_acquire.
4666
4667 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4668
4669 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4670 alias attribute, not with strong_alias.
4671
4672 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4673 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4674 with additional parameter thread.
4675 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4676 in terms of __hidden_ver2.
4677 (hidden_tls_def): New macro.
4678 (libc_hidden_tls_def): Likewise.
4679 (rtld_hidden_tls_def): Likewise.
4680 (libm_hidden_tls_def): Likewise.
4681 (libmvec_hidden_tls_def): Likewise.
4682 (libresolv_hidden_tls_def): Likewise.
4683 (librt_hidden_tls_def): Likewise.
4684 (libdl_hidden_tls_def): Likewise.
4685 (libnss_files_hidden_tls_def): Likewise.
4686 (libnsl_hidden_tls_def): Likewise.
4687 (libnss_nisplus_hidden_tls_def): Likewise.
4688 (libutil_hidden_tls_def): Likewise.
4689 (libutil_hidden_tls_def): Likweise.
4690 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4691 libc_hidden_tls_def.
4692 (__sim_disabled_exceptions_thread): Likewise.
4693 (__sim_round_mode_thread): Likewise.
4694
4695 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4696 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4697 copy attributes from name.
4698
4699 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4700
4701 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4702 Use __attribute_copy__ to copy attributes from name.
4703
4704 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4705 with __hidden_ver1 call.
4706 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4707 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4708 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4709 (__cosf): Do not declare here.
4710 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4711 (__sincosf): Do not declare here.
4712 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4713 (__sinf): Do not declare here.
4714
4715 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4716 (__BIG_ENDIAN): Likewise.
4717 (__BYTE_ORDER): Likewise.
4718 (strong_alias): Likewise.
4719 (_strong_alias): Likewise.
4720
4721 2018-11-12 Florian Weimer <fweimer@redhat.com>
4722
4723 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4724 function. Move after the definition of in_smallbin_range. Do not
4725 use __builtin_expect for paths that lead to a noreturn function.
4726 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4727 because it is unclear whether this is in fact an unlikely
4728 condition.
4729 (_int_malloc, _int_free): Adjust.
4730 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4731 variables.
4732 * malloc/arena.c (heap_trim): Likewise.
4733
4734 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4735
4736 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4737 it, free it if needed.
4738 (reauthenticate): Test and use ccwdir.
4739 (child_init_port): In non-resetids case, test and use ccwdir.
4740 (child_chdir): New nested function to set ccwdir.
4741 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4742 * hurd/hurd/port.h (_hurd_port_move): New function.
4743 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4744 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4745 * hurd/Versions (_hurd_port_move): Export function.
4746 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4747 symbol.
4748 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4749 of dtablesize for allocating dtable_cloexec.
4750
4751 2018-11-09 Martin Sebor <msebor@redhat.com>
4752
4753 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4754 it's already defined.
4755 (_strong_alias): Use __attribute_copy__.
4756 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4757 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4758 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4759 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4760 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4761 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4762 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4763 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4764 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4765 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4766 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4767 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4768 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4769 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4770 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4771 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4772 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4773 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4774 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4775
4776 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4777
4778 * misc/tst-efgcvt.c: Include support/check.h and
4779 support/test-driver.c. Do not include test-skeleton.c.
4780 (error_count): Remove.
4781 (output_error): Replace increments to error_count with calls to
4782 support_record_failure.
4783 (output_r_error): Likewise.
4784 (special): Likewise.
4785 (do_test): Unconditionally return zero.
4786 (TEST_FUNCTION): Remove.
4787
4788 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4789
4790 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4791 not $(@D)/scratch.
4792 ($(linknamespace-header-tests)): Likewise.
4793
4794 * conform/conformtest.py: New file.
4795 * conform/conformtest.pl: Remove.
4796 * conform/GlibcConform.pm: Likewise.
4797 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4798 (KEYWORDS_C99): Likewise.
4799 (KEYWORDS): Likewise.
4800 * conform/Makefile ($(conformtest-header-tests)): Use
4801 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4802 option. Use --header instead of --headers.
4803 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4804 function entries.
4805 * conform/data/spawn.h-data: Likewise.
4806 * conform/data/fcntl.h-data (openat): Add space after function
4807 name.
4808 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4809 (wcscasecmp_l): Likewise.
4810 * conform/data/termios.h-data (c_cc): Add space after element
4811 name.
4812
4813 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4814
4815 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4816 instead of manually comparing and reporting mismatching strings.
4817 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4818 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4819
4820 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4821
4822 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4823 __ASSUME_SOCKETCALL.
4824 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4825 (__ASSUME_SOCKETCALL): Remove.
4826 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4827 (__ASSUME_SOCKETCALL): Likewise.
4828 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4829 (__ASSUME_SOCKETCALL): Likewise.
4830 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4831 (__ASSUME_SOCKETCALL): Likewise.
4832 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4833 (__ASSUME_SOCKETCALL): Likewise.
4834 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4835 (__ASSUME_SOCKETCALL): Likewise.
4836 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4837 (__ASSUME_SOCKETCALL): Likewise.
4838
4839 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4840
4841 [BZ #23509]
4842 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4843 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4844 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4845 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4846 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4847 lc_unknown.
4848
4849 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4850
4851 [BZ #17630]
4852 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4853
4854 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4855
4856 [BZ #23867]
4857 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4858 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4859 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4860 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4861
4862 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4863
4864 * support/support_test_compare_string.c
4865 (support_test_compare_string): Fix printf format.
4866
4867 2018-11-07 Florian Weimer <fweimer@redhat.com>
4868
4869 Implement TEST_COMPARE_STRING.
4870 * support/check.h (TEST_COMPARE_STRING): Define.
4871 (support_test_compare_string): Declare.
4872 * support/Makefile (libsupport-routines): Add
4873 support_test_compare_string.
4874 (tests): Add tst-test_compare_string.
4875 * support/support_test_compare_string.c: New file.
4876 * support/tst-test_compare_string.c: Likewise.
4877
4878 2018-11-07 Andreas Schwab <schwab@suse.de>
4879
4880 [BZ #23864]
4881 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4882 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4883 Undef.
4884
4885 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4886
4887 [BZ #23862]
4888 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4889 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4890 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4891 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4892 Likewise.
4893
4894 2018-11-06 Florian Weimer <fweimer@redhat.com>
4895
4896 [BZ #17405]
4897 * posix/Makefile (routines): Add spawn_faction_addchdir.
4898 (tests): Add tst-spawn-chdir.
4899 * posix/Versions (GLIBC_2.29): Add
4900 posix_spawn_file_actions_addchdir_np.
4901 * posix/spawn_faction_addchdir.c: New file.
4902 * posix/spawn_faction_destroy.c
4903 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4904 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4905 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4906 chdir_action.
4907 * posix/tst-spawn-chdir.c: New file.
4908 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4909 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4910 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4911 posix_spawn_file_actions_addchdir_np.
4912 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4913 Likewise.
4914 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4915 Likewise.
4916 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4917 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4918 Likewise.
4919 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4920 Likewise.
4921 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4922 Likewise.
4923 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4924 Likewise.
4925 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4926 Likewise.
4927 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4928 Likewise.
4929 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4930 (GLIBC_2.29): Likewise.
4931 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4932 (GLIBC_2.29): Likewise.
4933 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4934 (GLIBC_2.29): Likewise.
4935 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4936 (GLIBC_2.29): Likewise.
4937 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4938 Likewise.
4939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4940 (GLIBC_2.29): Likewise.
4941 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4942 (GLIBC_2.29): Likewise.
4943 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4944 (GLIBC_2.29): Likewise.
4945 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4946 (GLIBC_2.29): Likewise.
4947 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4948 Likewise.
4949 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4950 Likewise.
4951 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4952 Likewise.
4953 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4954 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4955 Likewise.
4956 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4957 Likewise.
4958 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4959 Likewise.
4960 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4961 Likewise.
4962
4963 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4964
4965 * misc/Makefile (tests): Add tst-ldbl-error.
4966 * misc/tst-ldbl-error.c: New file.
4967
4968 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4969
4970 * misc/Makefile (tests): Add tst-ldbl-warn.
4971 * misc/tst-ldbl-warn.c: New file.
4972
4973 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4974
4975 * argp/Makefile (tests): Add tst-ldbl-argp.
4976 * argp/tst-ldbl-argp.c: New file.
4977
4978 2018-11-05 Arjun Shankar <arjun@redhat.com>
4979
4980 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4981 __gconv_path_elem and call __gconv_get_path unconditionally.
4982
4983 2018-11-05 Andreas Schwab <schwab@suse.de>
4984
4985 [BZ #22927]
4986 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4987 creating the first helper thread failed.
4988
4989 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4990
4991 * sysdeps/mach/hurd/msync.c: New file.
4992
4993 2018-11-02 Florian Weimer <fweimer@redhat.com>
4994
4995 * support/shell-container.c (copy_func): Call
4996 support_copy_file_range instead of copy_file_range to support
4997 cross-device copies.
4998
4999 2018-11-02 Florian Weimer <fweimer@redhat.com>
5000
5001 * support/test-container.c: Include <libc-pointer-arith.h> for
5002 ALIGN_UP.
5003
5004 2018-11-01 Zong Li <zong@andestech.com>
5005
5006 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5007 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5008 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5009 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5010
5011 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5012 variable to avoid overlap arguments.
5013
5014 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5015
5016 * posix/bug-regex22.c (main): Use puts with distinct error
5017 messages for unexpected success of re_compile_pattern, not printf
5018 with NULL argument to %s.
5019
5020 * stdio-common/bug22.c: Include <libc-diag.h>.
5021 (do_test): Disable -Wformat-overflow= warnings around fprintf
5022 calls outputting more than INT_MAX characters.
5023 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5024 around printf call with NULL %s argument.
5025
5026 [BZ #23848]
5027 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5028 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5029 Undefine.
5030 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5031 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5032 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5033 (__ASSUME_SENDTO_SYSCALL): Likewise.
5034 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5035 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5036 [!__arch64__].
5037 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5038 (__ASSUME_CONNECT_SYSCALL): Likewise.
5039 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5040 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5041 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5042 Define.
5043 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5044 Likewise.
5045 [__LINUX_KERNEL_VERSION >= 0x040400]
5046 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5047 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5048 Remove.
5049 (listen): Likewise.
5050 (setsockopt): Likewise.
5051
5052 2018-11-01 Fredrik Noring <noring@nocrew.org>
5053
5054 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5055 with the ISA override.
5056
5057 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5058
5059 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5060 #endif.
5061
5062 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5063
5064 * manual/errno.texi (EIEIO): Document how translators should
5065 translate the error message.
5066 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5067 printing trailing whitespaces refused by git.
5068 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5069 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5070 * hurd/Makefile (user-interfaces): Add pci.
5071
5072 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5073
5074 * conform/linknamespace.py: New file.
5075 * conform/linknamespace.pl: Remove file.
5076 * conform/Makefile ($(linknamespace-header-tests)): Use
5077 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5078 option.
5079
5080 2018-10-30 Florian Weimer <fweimer@redhat.com>
5081
5082 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5083 memory leaks.
5084
5085 2018-10-30 Florian Weimer <fweimer@redhat.com>
5086
5087 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5088
5089 2018-10-30 Florian Weimer <fweimer@redhat.com>
5090
5091 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5092 support_blob_repeat.
5093
5094 2018-10-30 Florian Weimer <fweimer@redhat.com>
5095
5096 Avoid spurious test failures in stdlib/test-bz22786.
5097 * support/Makefile (libsupport-routines): Add blob_repeat.
5098 (tests): Add tst-support_blob_repeat.
5099 * support/blob_repeat.h: New file.
5100 * support/blob_repeat.c: Likewise.
5101 * support/tst-support_blob_repeat.c: Likewise.
5102 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5103 support_blob_repeat_allocate.
5104
5105 2018-10-30 Andreas Schwab <schwab@suse.de>
5106
5107 [BZ #23125]
5108 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5109 Don't use tail call.
5110 * elf/tst-unwind-main.c: New file.
5111 * elf/Makefile (tests): Add tst-unwind-main.
5112 (CFLAGS-tst-unwind-main.c): Define.
5113
5114 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5115
5116 [BZ #23791]
5117 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5118 n_cs_precedes to 0.
5119 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5120
5121 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5122
5123 * conform/glibcconform.py: Do not import shutil.
5124 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5125 of mkdtemp.
5126
5127 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5128 critic_missing for versions before 3.4.
5129 * configure: Regenerated.
5130 * manual/install.texi (Tools for Compilation): Document
5131 requirement for Python to build glibc.
5132 * INSTALL: Regenerated.
5133 * Rules [PYTHON]: Make code unconditional.
5134 * benchtests/Makefile [PYTHON]: Likewise.
5135 * conform/Makefile [PYTHON]: Likewise.
5136 * manual/Makefile [PYTHON]: Likewise.
5137 * math/Makefile [PYTHON]: Likewise.
5138
5139 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5140
5141 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5142 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5143 answer to interrupt_operation, return EIEIO instead of EINTR.
5144 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5145 _hurd_intr_rpc_msg_about_to global point to start of controlled
5146 assembly snippet. Make it check canceled flag.
5147 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5148 the _hurd_intr_rpc_msg_about_to point.
5149 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5150 issue, remove cancel flag check.
5151
5152 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5153
5154 * scripts/build-many-glibcs.py: Remove compatibility for missing
5155 os.cpu_count and re.fullmatch.
5156
5157 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5158
5159 [BZ #23822]
5160 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5161 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5162 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5163
5164 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5165
5166 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5167 macro.
5168
5169 2018-10-25 Florian Weimer <fweimer@redhat.com>
5170
5171 [BZ #23562]
5172 [BZ #23821]
5173 XFAIL siginfo_t si_band conform test on sparc64.
5174 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5175 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5176 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5177 (conformtest-xfail-conds): Add sparc64-linux.
5178 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5179 sparc64.
5180 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5181
5182 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5183
5184 * elf/elf.h (NT_MIPS_DSP): New macro.
5185 (NT_MIPS_FP_MODE): Likewise.
5186
5187 2018-10-25 Zong Li <zong@andestech.com>
5188
5189 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5190 name by adding the file extension (.so).
5191
5192 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5193
5194 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5195 (test-xfail-ISO11/threads.h/linknamespace,
5196 test-xfail-ISO11/threads.h/conform): Add.
5197
5198 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5199
5200 * math/gen-libm-test.py: Import os.
5201 (ALL_FLOATS_MANUAL): New constant.
5202 (ALL_FLOATS_SUFFIX): Likewise.
5203 (Ulps.all_functions): New function.
5204 (real_all_ulps): Likewise.
5205 (generate_err_table_sub): Likewise.
5206 (generate_err_table): Likewise.
5207 (main): Handle -s and -m options.
5208 * manual/libm-err-tab.pl: Remove.
5209 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5210 instead of libm-err-tab.pl.
5211 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5212 != no].
5213 * manual/install.texi (Tools for Compilation): Document
5214 requirement for Python to build manual.
5215 * INSTALL: Regenerated.
5216
5217 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5218
5219 * bits/time64.h: New file.
5220 * include/time.h: Replace internal_time_t with __time64_t.
5221 * posix/bits/types (__time64_t): Add.
5222 * stdlib/Makefile: Add bits/time64.h to includes.
5223 * time/tzfile.c: Replace internal_time_t with __time64_t.
5224
5225 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5226
5227 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5228 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5229 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5230 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5231 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5232 prototype.
5233 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5234 * posix/spawn_faction_addclose.c
5235 (__posix_spawn_file_actions_addclose): Add hidden definition.
5236 * posix/spawn_faction_adddup2.c
5237 (__posix_spawn_file_actions_adddup2): Likewise.
5238 * posix/spawn_faction_destroy.c
5239 (__posix_spawn_file_actions_destroy): Likewise.
5240 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5241 Likewise.
5242 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5243 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5244 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5245 Likewise.
5246 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5247 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5248 Likewise.
5249
5250 2018-10-24 Andreas Schwab <schwab@suse.de>
5251
5252 [BZ #18093]
5253 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5254 format cache.
5255 * elf/cache.c (print_cache): Likewise.
5256
5257 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5258
5259 * bits/timesize.h: New file.
5260 * stdlib/Makefile (headers): Add bits/timesize.h.
5261 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5262 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5263 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5264 (__SEM_PAD_AFTER_TIME): Likewise.
5265 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5266 (__SHM_PAD_AFTER_TIME): Likewise.
5267 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5268 (__MSQ_PAD_BEFORE_TIME): Likewise.
5269 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5270 (__SEM_PAD_BEFORE_TIME): Likewise.
5271 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5272 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5273 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5274 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5275 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5276 (__MSQ_PAD_BEFORE_TIME): Likewise.
5277 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5278 (__SEM_PAD_BEFORE_TIME): Likewise.
5279 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5280 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5281 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5282 (__MSQ_PAD_BEFORE_TIME): Likewise.
5283 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5284 (__SEM_PAD_BEFORE_TIME): Likewise.
5285 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5286 (__SHM_PAD_BEFORE_TIME): Likewise.
5287 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5288 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5289 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5290
5291 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5292
5293 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5294 USE_RDTSCP is defined.
5295 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5296 USE_RDTSCP is defined.
5297
5298 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5299
5300 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5301 defined.
5302
5303 [BZ #23709]
5304 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5305 independently of other flags.
5306
5307 2018-10-23 Florian Weimer <fweimer@redhat.com>
5308
5309 * time/tst-mktime2.c (N_STRINGS): Remove.
5310 (set_timezone): New function.
5311 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5312 (mktime_test1): Report localtime failure and check errno value.
5313 Use TEST_COMPARE.
5314 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5315 (do_test): Remove alarm call. Use set_timezone and array_length.
5316
5317 2018-10-23 Andreas Schwab <schwab@suse.de>
5318
5319 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5320 (__start_context): Use END instead of PSEUDO_END.
5321
5322 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5323
5324 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5325 version to 4.19.
5326
5327 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5328 version to 4.19.
5329
5330 [BZ #23793]
5331 * wcsmbs/c32rtomb.c: New file.
5332 * wcsmbs/mbrtoc32.c: Likewise.
5333 * wcsmbs/tst-c32-state.c: Likewise.
5334 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5335 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5336 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5337 (tests): Add tst-c32-state.
5338 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5339 $(gen-locales).
5340
5341 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5342
5343 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5344 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5345
5346 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5347
5348 [BZ #23794]
5349 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5350 pair and return 0 in that case, and use saved character to
5351 interpret following character.
5352 * wcsmbs/tst-c16-surrogate.c: New file.
5353 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5354 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5355 Depend on $(gen-locales)
5356
5357 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5358
5359 [BZ #23562]
5360 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5361 (struct siginfo_t): Use correct type for si_band.
5362
5363 2018-10-19 Florian Weimer <fweimer@redhat.com>
5364
5365 [BZ #23689]
5366 * resource/bits/types/struct_rusage.h (struct rusage): Update
5367 comment on struct. Remove extraneous field comment.
5368
5369 2018-10-18 David S. Miller <davem@davemloft.net>
5370
5371 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5372 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5373 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5374 sysdep_routines in subdir elf.
5375 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5376 version for __vdso_clock_gettime.
5377 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5378 Define.
5379 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5380 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5381
5382 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5383
5384 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5385
5386 * sysdeps/i386/init-arch.h: Removed.
5387 * sysdeps/i386/i586/init-arch.h: Likewise.
5388 * sysdeps/i386/i686/init-arch.h: Likewise.
5389 * sysdeps/i386/i686/hp-timing.h: Likewise.
5390 * sysdeps/x86_64/hp-timing.h: Likewise.
5391 * sysdeps/i386/isa.h: New file.
5392 * sysdeps/i386/i586/isa.h: Likewise.
5393 * sysdeps/i386/i686/isa.h: Likewise.
5394 * sysdeps/x86_64/isa.h: Likewise.
5395 * sysdeps/x86/hp-timing.h: New file.
5396 * sysdeps/x86/init-arch.h: Include <isa.h>.
5397
5398 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5399
5400 * math/libm-test-pow.inc (pow_test_data): Do not allow
5401 divide-by-zero exception for pow(+/- 0, -Inf).
5402
5403 2018-10-17 Zack Weinberg <zackw@panix.com>
5404
5405 * manual/job.texi (Job Control is Optional): Remove node, as
5406 job control has not been optional in quite some time.
5407 (Job Control): Mention briefly that systems older than
5408 POSIX.1-2001 might not support job control.
5409 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5410 defined on systems conforming to POSIX.1-2001.
5411
5412 2018-10-17 Arjun Shankar <arjun@redhat.com>
5413
5414 [BZ #22062]
5415 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5416 indentation.
5417 * (__gconv_read_conf): Mark function static.
5418 * (once): New static variable.
5419 * (__gconv_load_conf): New function.
5420 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5421 * iconv/gconv_db.c (once): Remove static variable.
5422 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5423 __gconv_read_conf.
5424 * (__gconv_find_transform): Likewise.
5425 * iconv/tst-iconv-mt.c: New test.
5426 * iconv/Makefile: Add tst-iconv_mt.
5427
5428 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5429
5430 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5431 bits/shm-pad.h.
5432 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5433 (shmatt_t): Define as __syscall_ulong_t.
5434 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5435 and [__SHM_PAD_AFTER_TIME].
5436 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5437 Define shm_segsz and associated padding based on
5438 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5439 Use __syscall_ulong_t instead of unsigned long int.
5440 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5441 unsigned long int.
5442 [__USE_MISC] (struct shm_info): Likewise.
5443 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5444 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5445 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5446 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5447 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5448 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5449 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5450 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5451 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5452 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5453 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5454
5455 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5456 bits/shmlba.h.
5457 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5458 (SHMLBA): Remove macro.
5459 (__getpagesize): Remove function declaration.
5460 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5461 <bits/shmlba.h>.
5462 (SHMLBA): Remove macro.
5463 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5464 <bits/shmlba.h>.
5465 (SHMLBA): Remove macro.
5466 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5467 <bits/shmlba.h>.
5468 (SHMLBA): Remove macro.
5469 (__getpagesize): Remove function declaration.
5470 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5471 <bits/shmlba.h>.
5472 (SHMLBA): Remove macro.
5473 (__getshmlba): Remove function declaration.
5474 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5475 (SHMLBA): Remove macro.
5476 (__getpagesize): Remove function declaration.
5477 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5478 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5479 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5480 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5481 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5482 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5483 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5484 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5485 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5486 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5487
5488 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5489
5490 [BZ #23275]
5491 * nptl/tst-mutex10.c: New File.
5492 * nptl/Makefile (tests): Add tst-mutex10.
5493 (tst-mutex10-ENV): New variable.
5494 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5495 Ensure that elision path is used if elision is available.
5496 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5497 Likewise.
5498 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5499 Likewise.
5500 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5501 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5502 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5503 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5504 Likewise.
5505 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5506 (__pthread_mutex_cond_lock_adjust): Likewise.
5507 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5508 Likewise.
5509 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5510 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5511 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5512 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5513 Add comments.
5514 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5515 Use atomic_load_relaxed and atomic_store_relaxed.
5516 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5517 Use atomic_store_relaxed.
5518
5519 2018-10-17 Andreas Schwab <schwab@suse.de>
5520
5521 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5522 * crypt/badsalttest.c (TIMEOUT): Likewise.
5523 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5524 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5525 * io/test-lfs.c (TIMEOUT): Likewise.
5526 * libio/tst-atime.c (TIMEOUT): Likewise.
5527 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5528 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5529 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5530 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5531 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5532 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5533 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5534 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5535 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5536 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5537 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5538 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5539 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5540 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5541 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5542 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5543 * nptl/tst-once2.c (TIMEOUT): Likewise.
5544 * nptl/tst-once3.c (TIMEOUT): Likewise.
5545 * nptl/tst-once4.c (TIMEOUT): Likewise.
5546 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5547 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5548 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5549 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5550 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5551 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5552 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5553 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5554 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5555 * posix/tst-chmod.c (TIMEOUT): Likewise.
5556 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5557 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5558 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5559 * posix/tst-regex2.c (TIMEOUT): Likewise.
5560 * posix/tst-waitid.c (TIMEOUT): Likewise.
5561 * rt/tst-aio.c (TIMEOUT): Likewise.
5562 * rt/tst-aio10.c (TIMEOUT): Likewise.
5563 * rt/tst-aio4.c (TIMEOUT): Likewise.
5564 * rt/tst-aio5.c (TIMEOUT): Likewise.
5565 * rt/tst-aio6.c (TIMEOUT): Likewise.
5566 * rt/tst-aio64.c (TIMEOUT): Likewise.
5567 * rt/tst-aio7.c (TIMEOUT): Likewise.
5568 * rt/tst-aio9.c (TIMEOUT): Likewise.
5569 * rt/tst-clock.c (TIMEOUT): Likewise.
5570 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5571 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5572 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5573 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5574 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5575 * rt/tst-timer4.c (TIMEOUT): Likewise.
5576 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5577 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5578 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5579 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5580 * time/tst-ftime.c (TIMEOUT): Likewise.
5581 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5582
5583 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5584
5585 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5586 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5587 for thunderX2.
5588
5589 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5590
5591 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5592 bits/sem-pad.h.
5593 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5594 instead of <bits/wordsize.h>.
5595 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5596 and [__SEM_PAD_AFTER_TIME].
5597 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5598 __syscall_ulong_t instead of unsigned long int.
5599 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5600 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5601 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5602 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5603 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5604 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5605 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5606 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5607 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5608 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5609 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5610
5611 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5612
5613 regex: simplify by using intprops.h
5614 [BZ#23744]
5615 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5616 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5617 intprops.h defines them.
5618
5619 regex: __builtin_expect → __glibc_unlikely
5620 [BZ#23744]
5621 This refactoring was prompted by a problem when the regex code is
5622 used as part of Gnulib and when the builder’s compiler does not grok
5623 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5624 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5625 Although this refactoring does not fix the problem directly,
5626 we might as well have Gawk use the now-preferred glibc style for when
5627 __builtin_expect is unavailable.
5628 * posix/regex_internal.h (BE): Remove.
5629 All uses replaced by __glibc_unlikely or __glibc_likely.
5630
5631 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5632
5633 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5634 bits/msq-pad.h.
5635 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5636 instead of <bits/wordsize.h>.
5637 (msgqnum_t): Define as __syscall_ulong_t.
5638 (msglen_t): Likewise.
5639 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5640 and [__MSQ_PAD_AFTER_TIME].
5641 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5642 __syscall_ulong_t instead of unsigned long int.
5643 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5644 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5645 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5646 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5647 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5648 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5649 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5650 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5651 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5652 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5653 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5654
5655 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5656
5657 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5658 (struct shmid_ds): Condition padding after time fields on
5659 [__WORDSIZE == 32].
5660 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5661 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5662 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5663
5664 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5665 (struct semid_ds): Condition padding after time fields on
5666 [__WORDSIZE == 32].
5667 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5668 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5669 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5670 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5671
5672 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5673 (struct msqid_ds): Condition padding after time fields on
5674 [__WORDSIZE == 32].
5675 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5676 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5677 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5678 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5679
5680 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5681
5682 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5683
5684 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5685
5686 * libio/tst-readline.c (TIMEOUT): Define.
5687
5688 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5689
5690 mktime fix for Gnulib + coreutils
5691 [BZ#23745]
5692 This fix affects only Gnulib. Problem discovered when
5693 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5694 * time/mktime.c:
5695 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5696 Do not define since it is not used. Defining an unused static
5697 function prompts a warning from GCC when Coreutils is configured
5698 with --enable-gcc-warnings.
5699
5700 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5701
5702 * benchtests/scripts/compare_bench.py (main): set float type on
5703 threshold argument.
5704
5705 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5706
5707 [BZ #23740]
5708 * localedata/locales/kl_GL (mon): Update, the relative case.
5709 (alt_mon): Add, fill with month names in the nominative case.
5710 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5711 (d_fmt): Set to "%b %d %Y".
5712
5713 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5714
5715 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5716 <bits/mman-linux.h>.
5717 (PROT_READ): Don't define here.
5718 (PROT_WRITE): Likewise.
5719 (PROT_EXEC): Likewise.
5720 (PROT_NONE): Likewise.
5721 (PROT_GROWSDOWN): Likewise.
5722 (PROT_GROWSUP): Likewise.
5723 (MAP_SHARED): Likewise.
5724 (MAP_PRIVATE): Likewise.
5725 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5726 [__USE_MISC] (MAP_FILE): Likewise.
5727 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5728 [__USE_MISC] (MAP_ANON): Likewise.
5729 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5730 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5731 (MCL_CURRENT): Likewise.
5732 (MCL_FUTURE): Likewise.
5733 (MCL_ONFAULT): Likewise.
5734 [__USE_MISC] (MADV_NORMAL): Likewise.
5735 [__USE_MISC] (MADV_RANDOM): Likewise.
5736 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5737 [__USE_MISC] (MADV_WILLNEED): Likewise.
5738 [__USE_MISC] (MADV_DONTNEED): Likewise.
5739 [__USE_MISC] (MADV_FREE): Likewise.
5740 [__USE_MISC] (MADV_REMOVE): Likewise.
5741 [__USE_MISC] (MADV_DONTFORK): Likewise.
5742 [__USE_MISC] (MADV_DOFORK): Likewise.
5743 [__USE_MISC] (MADV_HWPOISON): Likewise.
5744 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5745 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5746 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5747 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5748 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5749 (__MAP_ANONYMOUS): New macro.
5750 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5751 <bits/mman-linux.h> inclusion.
5752 (MAP_FIXED): Likewise.
5753 (MS_SYNC): Likewise.
5754 (MS_ASYNC): Likewise.
5755 (MS_INVALIDATE): Likewise.
5756 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5757 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5758 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5759 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5760 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5761 [__USE_MISC] (MADV_DODUMP): Likewise.
5762 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5763 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5764
5765 [BZ #23735]
5766 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5767 Define.
5768 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5769 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5770 Add test-nldbl-redirect.
5771 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5772 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5773 $(objpfx)libnldbl_nonshared.a.
5774
5775 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5776
5777 * support/support.h (support_objdir_elf_ldso): New variable.
5778 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5779 * support/Makefile (CFLAGS-support_paths.c): Add definition
5780 for OBJDIR_ELF_LDSO_PATH.
5781 * support/test-container.c (main): Search for the ld.so
5782 which is also used by the testsuite.
5783
5784 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5785
5786 [BZ #20209]
5787 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5788 should be "sap" rather than "sab".
5789 (day): Fix spelling of Sunday, should be "sapaat" rather than
5790 "sabaat".
5791
5792 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5793
5794 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5795
5796 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5797
5798 [BZ #19444]
5799 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5800 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5801 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5802
5803 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5804
5805 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5806
5807 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5808
5809 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5810 Add -mrtm.
5811 (CFLAGS-elision-unlock.c): Likewise.
5812 (CFLAGS-elision-timed.c): Likewise.
5813 (CFLAGS-elision-trylock.c): Likewise.
5814 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5815
5816 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5817
5818 [BZ #21037]
5819 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5820 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5821 new fd_to_filename interface.
5822 * libio/freopen64.c (freopen64): Likewise.
5823 * libio/tst-memstream.h: New file.
5824 * libio/tst-memstream4.c: Likewise.
5825 * libio/tst-wmemstream4.c: Likewise.
5826 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5827 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5828 and remove internal dynamic allocation.
5829
5830 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5831
5832 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5833 (MREMAP_MAYMOVE): Do not define here.
5834 [__USE_GNU] (MREMAP_FIXED): Likewise.
5835 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5836 (MREMAP_MAYMOVE): Define here instead.
5837 [__USE_GNU] (MREMAP_FIXED): Likewise.
5838 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5839 (MREMAP_MAYMOVE): Remove.
5840 [__USE_GNU] (MREMAP_FIXED): Likewise.
5841
5842 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5843
5844 * math/fromfp.h: Do not include <math_private.h>.
5845 * math/s_cacosh_template.c: Likewise.
5846 * math/s_casin_template.c: Likewise.
5847 * math/s_casinh_template.c: Likewise.
5848 * math/s_ccos_template.c: Likewise.
5849 * math/s_cproj_template.c: Likewise.
5850 * math/s_fdim_template.c: Likewise.
5851 * math/s_fmaxmag_template.c: Likewise.
5852 * math/s_fminmag_template.c: Likewise.
5853 * math/s_iseqsig_template.c: Likewise.
5854 * math/s_ldexp_template.c: Likewise.
5855 * math/s_nextdown_template.c: Likewise.
5856 * math/w_log1p_template.c: Likewise.
5857 * math/w_scalbln_template.c: Likewise.
5858 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5859 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5860 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5861 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5862 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5863 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5864 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5865 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5866 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5867 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5868 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5869 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5870 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5871 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5872 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5873 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5874 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5875 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5876 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5877 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5878 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5879 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5880 * sysdeps/ieee754/k_standardf.c: Likewise.
5881 * sysdeps/ieee754/k_standardl.c: Likewise.
5882 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5883 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5884 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5885 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5886 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5887 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5888 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5889 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5890 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5891 * sysdeps/ieee754/s_signgam.c: Likewise.
5892 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5893 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5894 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5895 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5896 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5897 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5898 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5899 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5900 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5901 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5902 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5903 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5904 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5905 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5906 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5907 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5908 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5909 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5910 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5911 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5912 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5913 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5914 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5915 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5916 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5917 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5918 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5919 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5920 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5921 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5922 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5923 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5924 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5925 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5926 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5927 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5928 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5929 <math_private.h>.
5930 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5931
5932 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5933
5934 [BZ #23716]
5935 * sysdeps/i386/dl-cet.c: Removed.
5936 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5937 prototype.
5938 (_dl_runtime_profile_shstk): Likewise.
5939 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5940 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5941
5942 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5943
5944 [BZ #23579]
5945 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5946 do_test_with_invalid_iov): New tests.
5947 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5948 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5949 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5950 errno is ENOSYS.
5951 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5952 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5953 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5954
5955 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5956
5957 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5958 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5959 (MATH_REDIRECT_BINARY_ARGS): New macro.
5960 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5961 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5962 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5963 header inclusion.
5964 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5965 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5966 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5967 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5968 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5969 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5970 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5971 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5972 Likewise.
5973 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5974 Likewise.
5975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5977 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5978 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5979 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5980 Likewise.
5981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5982 Likewise.
5983 * sysdeps/generic/math_private_calls.h
5984 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5985 Do not declare and define as an inline function.
5986 * math/divtc3.c (__divtc3): Use copysign functions instead of
5987 __copysign variants.
5988 * math/multc3.c (__multc3): Likewise.
5989 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5990 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5991 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5992 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5993 Likewise.
5994 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5995 (__ieee754_yn): Likewise.
5996 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5997 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5998 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5999 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6000 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6001 (__sin): Likewise.
6002 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6003 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6004 Likewise.
6005 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6006 Likewise.
6007 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6008 Likewise.
6009 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6010 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6011 Likewise.
6012 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6013 (__ieee754_ynf): Likewise.
6014 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6015 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6016 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6017 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6018 Likewise.
6019 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6020 (__ieee754_ynl): Likewise.
6021 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6022 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6023 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6024 Likewise.
6025 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6026 (__ieee754_ynl): Likewise.
6027 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6028 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6029 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6030 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6031 Likewise.
6032 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6033 (__ieee754_ynl)
6034 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6035 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6036 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6037 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6038 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6039
6040 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6041 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6042 using MATH_REDIRECT.
6043 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6044 header inclusion.
6045 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6046 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6047 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6048 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6049 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6050 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6051 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6053 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6056 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6057 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6058 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6059 (round): Redirect to __round.
6060 (__roundl): Call round instead of __round.
6061 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6062 Remove macro.
6063 [_ARCH_PWR5X] (__roundf): Likewise.
6064 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6065 functions instead of __round variants.
6066 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6067 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6068 Likewise.
6069 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6070 Likewise.
6071 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6072 Likewise.
6073 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6074 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6075 __lroundl.
6076 (__ieee754_expl): Call roundl instead of __roundl.
6077
6078 2018-09-27 Andreas Schwab <schwab@suse.de>
6079
6080 [BZ #23717]
6081 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6082 (do_test): Make st1 static.
6083
6084 2018-09-26 Andreas Schwab <schwab@suse.de>
6085
6086 [BZ #23707]
6087 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6088 * elf/Makefile (tests): Add tst-unwind-ctor.
6089 (modules-names): Add tst-unwind-ctor-lib.
6090 ($(objpfx)tst-unwind-ctor): Depend on
6091 $(objpfx)tst-unwind-ctor-lib.so.
6092
6093 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6094
6095 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6096 file. Most contents moved from ....
6097 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6098 and include <bits/mman-map-flags-generic.h>.
6099 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6100 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6101 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6102 <bits/mman-map-flags-generic.h>.
6103 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6104 macros defined in <bits/mman-map-flags-generic.h>.
6105 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6106 <bits/mman-map-flags-generic.h>.
6107 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6108 defined in <bits/mman-map-flags-generic.h>.
6109
6110 2018-09-26 Andreas Schwab <schwab@suse.de>
6111
6112 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6113 output.
6114
6115 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6116 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6117 Fangrui Song <maskray@google.com>
6118
6119 [BZ #20480]
6120 * config.make.in (have-textrel_ifunc): New define.
6121 * configure.ac: Add check if linker supports textrel relocation with
6122 ifunc.
6123 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6124 tst-ifunc-textrel.
6125 (CFLAGS-tst-ifunc-textrel.c): New rule.
6126 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6127 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6128 * elf/tst-ifunc-textrel.c: New file.
6129
6130 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6131
6132 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6133 <bits/procfs-prregset.h>.
6134 (prgregset_t): Define using __prgregset_t.
6135 (prfpregset_t): Define using __prfpregset_t.
6136 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6137 (sysdep_headers): Add bits/procfs-prregset.h.
6138 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6139 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6140 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6141 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6142
6143 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6144 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6145 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6146 pr_uid and pr_gid.
6147 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6148 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6149 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6150 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6151 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6152 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6153 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6154 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6155 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6156 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6157 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6158 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6159 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6160 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6161 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6162 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6163 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6164 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6165 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6166 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6167 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6168 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6169 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6170 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6171
6172 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6173 AArch64 version. Include <bits/procfs.h>.
6174 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6175 (sysdep_headers): Add bits/procfs.h.
6176 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6177 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6178 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6179 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6180 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6181 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6182 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6183 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6184 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6185 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6186 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6187 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6188 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6189 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6190 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6191 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6192 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6193
6194 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6195
6196 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6197 Use libsupport.
6198
6199 2018-09-25 Arjun Shankar <arjun@redhat.com>
6200
6201 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6202 (__gconv_max_path_elem_len): Likewise.
6203 (__gconv_nmodules): Likewise.
6204 (__gconv_get_path): Likewise.
6205 (path_elem): Move to ...
6206 * iconv/gconv_conf.c: ... here.
6207 (__gconv_get_path): Mark function static.
6208 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6209 * iconv/gconv_open.c: ... here.
6210
6211 2018-09-24 Andreas Schwab <schwab@suse.de>
6212
6213 * scripts/haveversions.awk: New file.
6214 * Makerules ($(common-objpfx)Versions.def)
6215 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6216 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6217 Move rules ...
6218 * Makeconfig ($(common-objpfx)Versions.def)
6219 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6220 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6221 ... here.
6222 ($(common-objpfx)Versions.mk): New rule. Include it.
6223 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6224 Emit error if build-obsolete-nsl = yes.
6225 * manual/install.texi (Configuring and compiling): Describe
6226 --enable-obsolete-nsl as unavaiable after version 2.28.
6227 * INSTALL: Regenerate.
6228
6229 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6230
6231 * NEWS: Add note about new TLE support on powerpc64le.
6232 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6233 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6234 __ununsed1.
6235 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6236 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6237 * sysdeps/powerpc/powerpc32/sysdep.h,
6238 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6239 ABORT_TRANSACTION): Remove macros.
6240 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6241 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6242 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6243 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6244 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6245 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6246 usage.
6247 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6248
6249 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6250
6251 [BZ #10425]
6252 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6253 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6254 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6255 which is the same as in it_IT.
6256 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6257 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6258
6259 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6260
6261 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6262 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6263 using MATH_REDIRECT.
6264 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6265 header inclusion.
6266 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6267 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6268 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6269 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6270 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6271 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6273 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6275 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6276 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6277 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6278 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6279 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6280 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6281 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6282 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6283 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6284 (ceil): Redirect to __ceil.
6285 (floor): Redirect to __floor.
6286 (trunc): Redirect to __trunc.
6287 (__truncl): Call trunc instead of __trunc.
6288 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6289 Remove macro.
6290 [_ARCH_PWR5X] (__truncf): Likewise.
6291 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6292 trunc functions instead of __trunc variants.
6293 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6294 Likewise.
6295 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6296 Likewise.
6297 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6298 Likewise.
6299 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6300 Likewise.
6301
6302 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6303 [__i586__ || __pentium__].
6304 [__i486__]: Handle explicitly.
6305 (HAS_CPUID): Define to 1 if above macros are undefined.
6306 (HAS_I586): Likewise.
6307 (HAS_I686): Likewise.
6308
6309 2018-09-20 Florian Weimer <fweimer@redhat.com>
6310
6311 * misc/tst-gethostid.c: New file.
6312 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6313 (tst-gethostid): Link with -ldl.
6314
6315 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6316
6317 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6318 value from gethostbyname_r.
6319
6320 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6321
6322 * stdlib/tst-setcontext9.c (f1): Rename to...
6323 (f1a): ... this.
6324 (f1b): New function implementing lower half of f1 in alternate stack.
6325
6326 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6327
6328 Fix mktime localtime offset confusion
6329 [BZ #23603]
6330 * include/time.h (__mktime_internal): The localtime offset is now
6331 of type long int instead of time_t. This is the longstanding type
6332 in glibc, and it is more than enough to represent difference
6333 between localtime and gmtime even if it is 32 bits and time_t is
6334 64. Changing it now will let us avoid an unnecessary change when
6335 time_t is widened to 64 bits on 32-bit platforms.
6336 * time/mktime-internal.h (mktime_offset_t): Now long int.
6337
6338 Merge mktime, timegm from upstream Gnulib
6339 [BZ #23603][BZ #16346]
6340 This fixes some obscure problems with integer overflow.
6341 Although it looks scary, it is almost all a byte-for-byte copy
6342 from Gnulib, and the Gnulib code has been tested reasonably well.
6343 * include/intprops.h: New file, copied from Gnulib.
6344 * include/verify.h, time/mktime-internal.h:
6345 New tiny files, simplified from Gnulib.
6346 * time/mktime.c: Copy from Gnulib. This has the following changes:
6347 Do not include config.h if DEBUG_MKTIME is nonzero.
6348 Include stdbool.h, intprops.h, verify.h.
6349 Include string.h only if needed.
6350 Include stdlib.h on MS-Windows.
6351 Include mktime-internal.h.
6352 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6353 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6354 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6355 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6356 simplify later conditionals; default the others to zero. Use
6357 these conditionals to express only the code needed on the current
6358 platform. In uses of these conditionals, explicitly spell out how
6359 _LIBC affects things, so it’s easier to review from a glibc
6360 viewpoint.
6361 (WRAPV): Remove; no longer needed now that we have
6362 systematic overflow checking.
6363 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6364 compartmentalize tzset issues. Move system-dependent tzsettish
6365 code here from mktime.
6366 (verify): Remove; now done by verify.h. All uses changed.
6367 (long_int): Use a more-conservative definition, to avoid
6368 integer overflow.
6369 (SHR): Remove, replacing with ...
6370 (shr): New function, which means we needn’t worry about side
6371 effects in args, and conversion analysis is simpler.
6372 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6373 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6374 (time_t_avg, time_t_add_ok): Remove.
6375 (mktime_min, mktime_max): New constants.
6376 (leapyear, isdst_differ): Use bool for booleans.
6377 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6378 Use long_int, not time_t, for mktime differences.
6379 (long_int_avg): New function, replacing time_t_avg.
6380 INT_ADD_WRAPV replaces time_t_add_ok.
6381 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6382 All uses changed.
6383 (convert_time): New function.
6384 (ranged_convert): Use it.
6385 (__mktime_internal): Last arg now points to mktime_offset_t, not
6386 time_t. All uses changed. This is a no-op on glibc, where
6387 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6388 offset guess. Directly check for integer overflow instead of
6389 using a heuristic that works only 99.9...% of the time.
6390 Access *OFFSET only once, to avoid an unlikely race if the
6391 compiler delays a load and if this cascades into a signed integer
6392 overflow.
6393 (mktime): Move tzsettish code to my_tzset, and move
6394 localtime_offset to within mktime so that it doesn’t
6395 need a separate ifdef.
6396 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6397 instead of localtime.
6398 * time/timegm.c: Copy from Gnulib. This has the following changes:
6399 Include mktime-internal.h.
6400 [!_LIBC]: Include config.h and time.h. Do not include
6401 timegm.h or time_r.h. Make __mktime_internal a macro,
6402 and include mktime-internal.h to get its declaration.
6403 (timegm): Temporary is now mktime_offset_t, not time_t.
6404 This affects only Gnulib.
6405
6406 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6407
6408 [BZ #23637]
6409 * string/test-strstr.c (pr23637): New function.
6410 (test_main): Add tests with longer needles.
6411 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6412 * string/strstr.c (AVAILABLE): Likewise.
6413
6414 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6415
6416 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6417
6418 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6419
6420 * NEWS: Mention pow improvements.
6421 * math/Makefile (type-double-routines): Add e_pow_log_data.
6422 * sysdeps/generic/math_private.h (__exp1): Remove.
6423 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6424 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6425 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6426 contraction.
6427 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6428 (exp_inline): Remove.
6429 (__ieee754_exp): Only single double input is handled.
6430 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6431 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6432 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6433 (__pow_log_data): Define.
6434 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6435 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6436 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6437 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6438 contraction.
6439 (CFLAGS-e_pow-fma4.c): Likewise.
6440
6441 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6442
6443 Simplify tzfile fstat failure code
6444 [BZ #21716]
6445 * time/tzfile.c (__tzfile_read): Simplify slightly.
6446
6447 Fix tzfile low-memory assertion failure
6448 [BZ #21716]
6449 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6450 when registering time zone abbreviations.
6451
6452 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6453
6454 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6455 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6456 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6457 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6458 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6459 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6460 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6461 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6462 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6463
6464 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6465 __ceil.
6466 (__ceill): Call ceil instead of __ceil.
6467 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6468 __floor.
6469 (__floorl): Call floor instead of __floor.
6470
6471 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6472
6473 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6474 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6475 using MATH_REDIRECT.
6476 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6477 header inclusion.
6478 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6479 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6480 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6481 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6482 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6483 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6484 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6485 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6487 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6488 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6490 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6491 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6492 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6493 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6494 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6495 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6496 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6497 Remove macro.
6498 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6499 functions instead of __ceil variants.
6500 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6501 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6502 Likewise.
6503 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6504 Likewise.
6505 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6506 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6507 Likewise.
6508 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6509 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6510
6511 [BZ #21286]
6512 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6513 constant.
6514 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6515 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6516 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6517 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6518 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6519 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6520 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6521 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6522 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6523 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6524 (ILL_BADIADDR): Remove constant.
6525 (TRAP_BRANCH): Likewise.
6526 (TRAP_HWBKPT): Likewise.
6527
6528 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6529
6530 [BZ #23656]
6531 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6532 Remove [_MIPS_SIM = _ABIN32] conditional case.
6533 (struct elf_prpsinfo): Likewise.
6534
6535 [BZ #23649]
6536 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6537 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6538 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6539 Likewise.
6540 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6541 elf_prpsinfo): Likewise.
6542 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6543 elf_prpsinfo): Likewise.
6544 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6545 Likewise.
6546
6547 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6548 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6549 using MATH_REDIRECT.
6550 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6551 header inclusion.
6552 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6553 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6554 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6555 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6556 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6557 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6558 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6559 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6560 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6561 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6562 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6563 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6564 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6565 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6566 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6567 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6568 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6569 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6570 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6571 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6573 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6574 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6575 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6576 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6577 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6578 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6579 __rint variants.
6580 * math/e_scalbf.c (invalid_fn): Likewise.
6581 * math/e_scalbl.c (invalid_fn): Likewise.
6582 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6583 Likewise.
6584 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6585 Likewise.
6586 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6587 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6588 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6589 Likewise.
6590 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6591 Likewise.
6592 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6593 Likewise.
6594 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6595 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6596
6597 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6598 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6599 New macro.
6600 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6601 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6602 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6603 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6604 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6605 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6606 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6607 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6608 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6609 && !NO_MATH_REDIRECT] (floor): Likewise.
6610 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6611 header inclusion.
6612 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6613 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6614 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6615 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6616 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6617 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6618 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6619 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6622 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6624 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6625 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6626 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6627 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6628 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6629 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6630 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6631 Remove macro.
6632 [_ARCH_PWR5X] (__floorf): Likewise.
6633 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6634 inline function.
6635 [__SSE4_1__] (__floorf): Likewise.
6636 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6637 instead of __floor variants.
6638 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6639 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6640 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6641 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6642 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6643 * math/w_tgamma_compat.c (__tgamma): Likewise.
6644 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6645 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6646 * math/w_tgammal_compat.c (__tgammal): Likewise.
6647 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6648 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6649 Likewise.
6650 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6651 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6652 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6653 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6654 Likewise.
6655 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6656 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6657 Likewise.
6658 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6659 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6660 Likewise.
6661 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6662 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6663 Likewise.
6664 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6665 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6666 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6667 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6668 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6669 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6670
6671 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6672
6673 * elf/Makefile (modules-names-tests): New variable.
6674
6675 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6676
6677 * NEWS: Mention log2 improvements.
6678 * math/Makefile (type-double-routines): Add e_log2_data.
6679 * sysdeps/i386/fpu/e_log2_data.c: New file.
6680 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6681 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6682 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6683 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6684 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6685 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6686
6687 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6688
6689 * NEWS: Mention log improvement.
6690 * math/Makefile (type-double-routines): Add e_log_data.
6691 * sysdeps/i386/fpu/e_log_data.c: New file.
6692 * sysdeps/ia64/fpu/e_log_data.c: New file.
6693 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6694 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6695 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6696 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6697 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6698 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6699
6700 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6701 Xuepeng Guo <xuepeng.guo@intel.com>
6702
6703 [BZ #23606]
6704 * sysdeps/i386/start.S: Include <sysdep.h>
6705 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6706 enabled. Add cfi_undefined (eip).
6707
6708 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6709
6710 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6711 (MOVQ): Likewise.
6712 (EXTRACT_WORDS64): Likewise.
6713 (INSERT_WORDS64): Likewise.
6714 (GET_FLOAT_WORD): Likewise.
6715 (SET_FLOAT_WORD): Likewise.
6716
6717 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6718 argument.
6719 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6720 build, but not for second build if --full-gcc. Use
6721 --enable-languages=all for second build if --full-gcc.
6722 (get_parser): Add --full-gcc option.
6723 (main): Update call to Context.
6724
6725 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6726
6727 [BZ #10797]
6728 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6729 Single Quotation Mark).
6730 (thousands_sep): Likewise.
6731 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6732 * localedata/locales/it_IT (thousands_sep): Use ".".
6733 (grouping): Use "3;3".
6734
6735 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6736
6737 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6738 x86_64 and i686 configs using --enable-obsolete-rpc
6739 --enable-obsolete-nsl.
6740
6741 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6742
6743 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6744
6745 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6746
6747 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6748 Increment size of new_argv by one.
6749
6750 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6751
6752 [BZ #17426]
6753 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6754 * localedata/locales/ar_IN (d_fmt): Likewise.
6755 * localedata/locales/bhb_IN (d_fmt): Likewise.
6756 * localedata/locales/bho_IN (d_fmt): Likewise.
6757 * localedata/locales/bn_BD (d_fmt): Likewise.
6758 * localedata/locales/bn_IN (d_fmt): Likewise.
6759 * localedata/locales/doi_IN (d_fmt): Likewise.
6760 * localedata/locales/gu_IN (d_fmt): Likewise.
6761 * localedata/locales/hi_IN (d_fmt): Likewise.
6762 * localedata/locales/hne_IN (d_fmt): Likewise.
6763 * localedata/locales/kn_IN (d_fmt): Likewise.
6764 * localedata/locales/mag_IN (d_fmt): Likewise.
6765 * localedata/locales/mai_IN (d_fmt): Likewise.
6766 * localedata/locales/mjw_IN (d_fmt): Likewise.
6767 * localedata/locales/ml_IN (d_fmt): Likewise.
6768 * localedata/locales/mni_IN (d_fmt): Likewise.
6769 * localedata/locales/mr_IN (d_fmt): Likewise.
6770 * localedata/locales/pa_IN (d_fmt): Likewise.
6771 * localedata/locales/raj_IN (d_fmt): Likewise.
6772 * localedata/locales/sat_IN (d_fmt): Likewise.
6773 * localedata/locales/sd_IN (d_fmt): Likewise.
6774 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6775 * localedata/locales/ta_IN (d_fmt): Likewise.
6776 * localedata/locales/ta_LK (d_fmt): Likewise.
6777 * localedata/locales/tcy_IN (d_fmt): Likewise.
6778 * localedata/locales/ur_IN (d_fmt): Likewise.
6779
6780 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6781 * localedata/locales/ks_IN (d_fmt): Likewise.
6782 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6783
6784 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6785 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6786 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6787 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6788
6789 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6790
6791 * NEWS: Mention exp and exp2 improvements.
6792 * math/Makefile (libm-support): Remove t_exp.
6793 (type-double-routines): Add math_err and e_exp_data.
6794 * sysdeps/aarch64/libm-test-ulps: Update.
6795 * sysdeps/arm/libm-test-ulps: Update.
6796 * sysdeps/i386/fpu/e_exp_data.c: New file.
6797 * sysdeps/i386/fpu/math_err.c: New file.
6798 * sysdeps/i386/fpu/t_exp.c: Remove.
6799 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6800 * sysdeps/ia64/fpu/math_err.c: New file.
6801 * sysdeps/ia64/fpu/t_exp.c: Remove.
6802 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6803 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6804 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6805 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6806 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6807 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6808 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6809 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6810 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6811 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6812 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6813 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6814 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6815 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6816 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6817 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6818
6819 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6820
6821 * sysdeps/alpha/fpu/math_private.h: Remove.
6822
6823 * sysdeps/generic/math_private.h
6824 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6825 Move this inline function ....
6826 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6827 * include/math.h [!_ISOMAC]: To here....
6828
6829 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6830
6831 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6832 code ....
6833 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6834 * include/fenv.h [!_ISOMAC]: ... to here.
6835 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6836 (feraiseexcept): Likewise.
6837 * math/fromfp.h: Do not include <fenv_private.h>.
6838 * math/s_cexp_template.c: Likewise.
6839 * math/s_csin_template.c: Likewise.
6840 * math/s_csinh_template.c: Likewise.
6841 * math/s_ctan_template.c: Likewise.
6842 * math/s_ctanh_template.c: Likewise.
6843 * math/s_iseqsig_template.c: Likewise.
6844 * math/w_acos_compat.c: Likewise.
6845 * math/w_acosf_compat.c: Likewise.
6846 * math/w_acosl_compat.c: Likewise.
6847 * math/w_asin_compat.c: Likewise.
6848 * math/w_asinf_compat.c: Likewise.
6849 * math/w_asinl_compat.c: Likewise.
6850 * math/w_j0_compat.c: Likewise.
6851 * math/w_j0f_compat.c: Likewise.
6852 * math/w_j0l_compat.c: Likewise.
6853 * math/w_j1_compat.c: Likewise.
6854 * math/w_j1f_compat.c: Likewise.
6855 * math/w_j1l_compat.c: Likewise.
6856 * math/w_jn_compat.c: Likewise.
6857 * math/w_jnf_compat.c: Likewise.
6858 * math/w_log10_compat.c: Likewise.
6859 * math/w_log10f_compat.c: Likewise.
6860 * math/w_log10l_compat.c: Likewise.
6861 * math/w_log2_compat.c: Likewise.
6862 * math/w_log2f_compat.c: Likewise.
6863 * math/w_log2l_compat.c: Likewise.
6864 * math/w_log_compat.c: Likewise.
6865 * math/w_logf_compat.c: Likewise.
6866 * math/w_logl_compat.c: Likewise.
6867 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6868 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6869 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6870 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6871 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6872 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6873 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6874 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6875 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6876 * sysdeps/ieee754/k_standardl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6879 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6883 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6884 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6885 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6886 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6887 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6888 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6889 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6890 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6891 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6892 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6893 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6894 * math/w_ilogb_template.c: Include <fenv.h> instead of
6895 <fenv_private.h>.
6896 * math/w_llogb_template.c: Likewise.
6897 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6898 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6899
6900 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6901
6902 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6903 * math/fromfp.h: Include <fenv_private.h>.
6904 * math/math-narrow.h: Likewise.
6905 * math/s_cexp_template.c: Likewise.
6906 * math/s_csin_template.c: Likewise.
6907 * math/s_csinh_template.c: Likewise.
6908 * math/s_ctan_template.c: Likewise.
6909 * math/s_ctanh_template.c: Likewise.
6910 * math/s_iseqsig_template.c: Likewise.
6911 * math/w_acos_compat.c: Likewise.
6912 * math/w_acosf_compat.c: Likewise.
6913 * math/w_acosl_compat.c: Likewise.
6914 * math/w_asin_compat.c: Likewise.
6915 * math/w_asinf_compat.c: Likewise.
6916 * math/w_asinl_compat.c: Likewise.
6917 * math/w_ilogb_template.c: Likewise.
6918 * math/w_j0_compat.c: Likewise.
6919 * math/w_j0f_compat.c: Likewise.
6920 * math/w_j0l_compat.c: Likewise.
6921 * math/w_j1_compat.c: Likewise.
6922 * math/w_j1f_compat.c: Likewise.
6923 * math/w_j1l_compat.c: Likewise.
6924 * math/w_jn_compat.c: Likewise.
6925 * math/w_jnf_compat.c: Likewise.
6926 * math/w_llogb_template.c: Likewise.
6927 * math/w_log10_compat.c: Likewise.
6928 * math/w_log10f_compat.c: Likewise.
6929 * math/w_log10l_compat.c: Likewise.
6930 * math/w_log2_compat.c: Likewise.
6931 * math/w_log2f_compat.c: Likewise.
6932 * math/w_log2l_compat.c: Likewise.
6933 * math/w_log_compat.c: Likewise.
6934 * math/w_logf_compat.c: Likewise.
6935 * math/w_logl_compat.c: Likewise.
6936 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6937 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6938 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6939 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6940 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6941 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6942 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6943 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6944 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6945 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6946 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6947 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6948 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6949 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6950 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6951 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6952 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6953 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6954 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6955 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6956 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6957 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6958 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6959 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6960 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6961 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6962 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6963 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6964 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6965 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6966 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6967 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6968 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6969 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6970 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6971 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6972 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6973 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6974 * sysdeps/ieee754/k_standardl.c: Likewise.
6975 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6976 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6977 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6978 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6980 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6981 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6982 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6983 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6984 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6985 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6986 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6987 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6988 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6989 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6990 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6991 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6992 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6993 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6994 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6995 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6996 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6997 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6998 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6999 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7000 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7001 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7002 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7003 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7004 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7005 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7006 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7007 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7008 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7009 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7010 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7011 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7012 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7013 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7014 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7015 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7016 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7017 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7018 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7019 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7020 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7021 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7022 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7023 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7024 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7025 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7026 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7027 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7028 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7029 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7030 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7031 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7032 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7033 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7034 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7035 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7036 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7037 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7038 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7039 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7040 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7041 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7042 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7043 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7044 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7045 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7046
7047 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7048
7049 [BZ #20271]
7050 * include/stdio.h (__libc_fatal): Mention newline in comment.
7051 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7052 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7053 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7054 * nss/nsswitch.c (__nss_next2): Likewise.
7055 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7056 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7057 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7058 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7059 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7060 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7061 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7062 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7063 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7064 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7065 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7066 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7067 (__netlink_assert_response): Likewise.
7068
7069 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7070
7071 * conform/glibcconform.py: New file.
7072 * conform/list-header-symbols.py: Likewise.
7073 * conform/list-header-symbols.pl: Remove.
7074 * conform/Makefile (tests-special): Only add linknamespace tests
7075 if [PYTHON].
7076 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7077
7078 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7079
7080 [BZ #23597]
7081 * support/Makefile (libsupport-routines): Add
7082 support_copy_file_range and xcopy_file_range.
7083 * support/support.h: Include <sys/types.h>.
7084 (support_copy_file_range): New prototype.
7085 * support/support_copy_file_range.c: New file. Copied and
7086 modified from io/copy_file_range-compat.c.
7087 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7088 instead of copy_file_range.
7089 * support/xcopy_file_range.c: New file.
7090 * support/xunistd.h (xcopy_file_range): New prototype.
7091
7092 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7093
7094 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7095 xpthread_create and xpthread_join.
7096
7097 2018-08-30 Florian Weimer <fweimer@redhat.com>
7098
7099 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7100
7101 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7102
7103 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7104 if malloc fails.
7105
7106 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7107
7108 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7109 and minus_oflow as non-finite.
7110
7111 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7112
7113 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7114 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7115 moved to fenv_private.h except for ...
7116 (TOINT_INTRINSICS): Kept in math_private.h.
7117 (roundtoint): Likewise.
7118 (converttoint): Likewise.
7119 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7120 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7121 * sysdeps/arm/math_private.h: Remove.
7122 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7123 ....
7124 * sysdeps/generic/math_private.h: ... this file. Include
7125 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7126 Include <fenv_private.h>. Remove functions and macros moved to
7127 fenv_private.h.
7128 * sysdeps/i386/fpu/math_private.h: Remove.
7129 * sysdeps/mips/math_private.h: Move to ....
7130 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7131 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7132 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7133 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7134 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7135 * sysdeps/powerpc/fpu/math_private.h: Do not include
7136 <fenv_private.h>.
7137 * sysdeps/riscv/rvf/math_private.h: Move to ....
7138 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7139 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7140 <fenv_private.h>.
7141 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7142 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7143 * sysdeps/sparc/fpu/math_private.h: Remove.
7144 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7145 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7146 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7147 <fenv_private.h>.
7148 * sysdeps/x86_64/fpu/math_private.h: Do not include
7149 <sysdeps/i386/fpu/fenv_private.h>.
7150
7151 2018-08-28 Florian Weimer <fweimer@redhat.com>
7152
7153 [BZ #23578]
7154 * posix/tst-regcomp-truncated.c: New file.
7155 * posix/Makefile (tests): Add it.
7156 (tst-regcomp-truncated.out): Depend on generated locales.
7157
7158 2018-08-28 Florian Weimer <fweimer@redhat.com>
7159
7160 * support/test-container.c (main): Treat unshare failure with
7161 EPERM as an unsupported test.
7162
7163 2018-08-28 Florian Weimer <fweimer@redhat.com>
7164
7165 [BZ #23520]
7166 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7167 * nscd/netgroupcache.c
7168 (addgetnetgrentX): Add tofreep parameter. Do not free
7169 heap-allocated buffer.
7170 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7171 (addgetnetgrentX_ignore): New function.
7172 (addgetnetgrent): Call it.
7173 (readdgetnetgrent): Likewise.
7174
7175 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7176
7177 * string/memmem.c: Use memcmp for first match.
7178
7179 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7180
7181 [BZ #17426]
7182 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7183
7184 2018-08-27 DJ Delorie <dj@redhat.com>
7185
7186 * support/Makefile (others): Don't list programs explicitly as a
7187 dependency of "others".
7188
7189 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7190
7191 * sysdeps/generic/math-tests-trap-force.h: New file.
7192 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7193 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7194 * sysdeps/powerpc/math-tests.h: Remove file.
7195 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7196
7197 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7198 Torvald Riegel <triegel@redhat.com>
7199
7200 [BZ #23538]
7201 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7202 Update r to include the set wake-request flag if waiters are
7203 remaining after spinning.
7204
7205 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7206
7207 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7208
7209 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7210
7211 [BZ #23578]
7212 regex: fix uninitialized memory access
7213 I introduced this bug into gnulib in commit
7214 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7215 eventually it was merged into glibc. The bug was found by
7216 project-repo <bugs@feusi.co> and reported here:
7217 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7218 Diagnosis and draft fix reported by Assaf Gordon here:
7219 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7220 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7221 * posix/regex_internal.c (build_wcs_upper_buffer):
7222 Fix bug when mbrtowc returns 0.
7223
7224 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7225
7226 * po/be.po: Update translation.
7227
7228 2018-08-24 DJ Delorie <dj@delorie.com>
7229
7230 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7231 $(libunwind).
7232
7233 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7234
7235 [BZ #23400]
7236 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7237 create temporary files in source tree.
7238
7239 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7240
7241 * sysdeps/generic/math-tests-trap.h: New file.
7242 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7243 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7244 * sysdeps/aarch64/math-tests.h: Remove file.
7245 * sysdeps/arm/math-tests.h: Likewise.
7246 * sysdeps/riscv/math-tests.h: Likewise.
7247 * sysdeps/aarch64/math-tests-trap.h: New file.
7248 * sysdeps/arm/math-tests-trap.h: Likewise.
7249 * sysdeps/riscv/math-tests-trap.h: Likewise.
7250
7251 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7252
7253 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7254 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7255 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7256 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7257 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7258 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7259 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7260 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7261 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7262 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7263 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7264 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7265 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7266 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7267 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7268 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7269 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7270 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7271
7272 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7273
7274 * sysdeps/generic/math-tests-exceptions.h: New file.
7275 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7276 (EXCEPTION_TESTS_float): Do not define here.
7277 (EXCEPTION_TESTS_double): Likewise.
7278 (EXCEPTION_TESTS_long_double): Likewise.
7279 (EXCEPTION_TESTS_float128): Likewise.
7280 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7281 Likewise.
7282 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7283 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7284 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7285 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7286 * sysdeps/mips/math-tests.h: Likewise.
7287 * sysdeps/nios2/math-tests.h: Likewise.
7288 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7289 (EXCEPTION_TESTS_float): Do not define here.
7290 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7291 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7292 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7293
7294 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7295
7296 * NEWS: Move optimized sinf entry to 2.29.
7297
7298 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7299
7300 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7301
7302 2018-08-22 DJ Delorie <dj@redhat.com>
7303
7304 * Makefile (testroot.pristine): New rules to initialize the
7305 test-in-container "testroot".
7306 * Makerules (all-testsuite): Add tests-container.
7307 * Rules (tests-expected): Add tests-container.
7308 (binaries-all-tests): Likewise.
7309 (tests-container): New, run these tests in the testroot container.
7310 * support/Makefile (others): Add *-container, support_paths.c,
7311 xmkdirp, and links-dso-program.
7312 * support/links-dso-program-c.c: New.
7313 * support/links-dso-program.cc: New.
7314 * support/test-container.c: New.
7315 * support/shell-container.c: New.
7316 * support/echo-container.c: New.
7317 * support/true-container.c: New.
7318 * support/xmkdirp.c: New.
7319 * support/xsymlink.c: New.
7320 * support/support_paths.c: New.
7321 * support/support.h: Add support paths prototypes.
7322 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7323
7324 * nss/tst-nss-test3.c: Convert to test-in-container.
7325 * nss/tst-nss-test3.root/: New.
7326
7327 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7328
7329 regex: port Gnulib code to z/OS POSIX environment
7330 Problem reported by Arnold Robbins in:
7331 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7332 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7333 Undef.
7334
7335 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7336
7337 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7338 (ROUNDING_TESTS_double): Remove.
7339 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7340 (ROUNDING_TESTS_double): Remove.
7341 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7342 (ROUNDING_TESTS_double): Remove.
7343 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7344 (ROUNDING_TESTS_float): Remove.
7345 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7346 (ROUNDING_TESTS_float): Remove.
7347 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7348 (ROUNDING_TESTS_float): Remove.
7349 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7350 !TEST_MATHVEC here.
7351 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7352 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7353
7354 * sysdeps/generic/math-tests-rounding.h: New file.
7355 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7356 (ROUNDING_TESTS_float): Do not define here.
7357 (ROUNDING_TESTS_double): Likewise.
7358 (ROUNDING_TESTS_long_double): Likewise.
7359 (ROUNDING_TESTS_float128): Likewise.
7360 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7361 (ROUNDING_TESTS_double): Undefine before defining.
7362 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7363 (ROUNDING_TESTS_double): Undefine before defining.
7364 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7365 (ROUNDING_TESTS_double): Undefine before defining.
7366 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7367 (ROUNDING_TESTS_float): Undefine before defining.
7368 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7369 (ROUNDING_TESTS_float): Undefine before defining.
7370 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7371 (ROUNDING_TESTS_float): Undefine before defining.
7372 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7373 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7374 not define here.
7375 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7376 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7377 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7378 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7379 (ROUNDING_TESTS_float): Do not define here.
7380 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7381 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7382 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7383 (ROUNDING_TESTS_float): Likewise.
7384 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7385 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7386 * sysdeps/mips/math-tests.h [__mips_soft_float]
7387 (ROUNDING_TESTS_float): Likewise.
7388 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7389 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7390 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7391 (ROUNDING_TESTS_double): Likewise.
7392 (ROUNDING_TESTS_long_double): Likewise.
7393
7394 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7395
7396 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7397 (PF_XDP): New macro.
7398 (AF_XDP): New macro.
7399 (SOL_XDP): New macro.
7400
7401 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7402
7403 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7404 (TCP_INQ): Likewise.
7405 (TCP_CM_INQ): Likewise.
7406 (TCP_REPAIR_ON): Likewise.
7407 (TCP_REPAIR_OFF): Likewise.
7408 (TCP_REPAIR_OFF_NO_WP): Likewise.
7409 (struct tcp_zerocopy_receive): New type.
7410
7411 2018-08-21 Florian Weimer <fweimer@redhat.com>
7412
7413 * support/support.h (support_descriptor_supports_holes): Declare.
7414 * support/Makefile (libsupport-routines): Add
7415 support_descriptor_supports_holes.
7416 * support/support_descriptor_supports_holes.c: New file.
7417 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7418 and stop testing if holes are not supported.
7419 * io/test-lfs.c (do_prepare): Likewise.
7420 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7421 Likewise.
7422 * timezone/tst-tzset.c (create_tz_file): Likewise.
7423 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7424 variable.
7425 (do_prepare): Set it.
7426 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7427
7428 2018-08-21 Florian Weimer <fweimer@redhat.com>
7429
7430 [BZ #17248]
7431 * Makeconfig (+cflags): Do not sort (and deduplicate).
7432
7433 2018-08-21 Florian Weimer <fweimer@redhat.com>
7434
7435 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7436 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7437
7438 2018-08-20 Florian Weimer <fweimer@redhat.com>
7439
7440 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7441 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7442
7443 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7444
7445 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7446 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7447 and ssi_arch members.
7448
7449 * elf/elf.c (NT_VMCOREDD): New macro.
7450 (AT_MINSIGSTKSZ): Likewise.
7451
7452 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7453
7454 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7455 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7456 s_cosf-ppc64 and s_cosf-power8.
7457 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7458 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7459 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7460 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7461 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7466 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7467 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7468 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7469
7470 2018-08-17 Florian Weimer <fweimer@redhat.com>
7471
7472 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7473
7474 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7475
7476 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7477
7478 2018-08-16 Florian Weimer <fweimer@redhat.com>
7479
7480 * configure.ac: Add --with-nonshared-cflags option.
7481 * config.make.in (extra-nonshared-cflags): Set variable.
7482 * Makeconfig (CFLAGS-.oS): Use it.
7483 * manual/install.texi (Configuring and compiling): Document
7484 --with-nonshared-cflags.
7485 * configure: Regenerate.
7486 * INSTALL: Likewise.
7487
7488 2018-08-16 Florian Weimer <fweimer@redhat.com>
7489
7490 * Makeconfig (ASFLAGS): Always append required assembler flags.
7491
7492 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7493
7494 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7495 (malloc_consolidate): Likewise.
7496
7497 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7498
7499 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7500
7501 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7502
7503 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7504 every strlen call.
7505
7506 * benchtests/bench-strlen.c: Print performance numbers in json.
7507
7508 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7509
7510 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7511 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7512 only for little endian.
7513 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7514 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7515 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7516 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7517 Add check for little endian.
7518 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7519 (__strcmp_power9): Add check for little endian.
7520 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7521 Add check for little endian.
7522 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7523 (__strncmp_power9): Add check for little endian.
7524 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7525 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7526 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7527 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7528 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7529
7530 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7531
7532 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7533 [!STRLEN](STRLEN): Set to __strlen.
7534 * sysdeps/aarch64/multiarch/strlen.c: New file.
7535 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7536 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7537 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7538 (__libc_ifunc_impl_list): Add strlen.
7539 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7540 strlen_generic and strlen_asimd.
7541
7542 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7543
7544 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7545 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7546 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7547
7548 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7549
7550 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7551
7552 2018-08-14 Florian Weimer <fweimer@redhat.com>
7553
7554 [BZ #23519]
7555 * include/stdio.h (__vfxprintf): Declare.
7556 * stdio-common/fxprintf.c (__vfxprintf): New function.
7557 (__fxprintf): Call it.
7558 * misc/err.c (convert_and_print): Remove function.
7559 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7560 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7561 * misc/Makefile (tests): Add tst-warn-wide.
7562 * misc/tst-warn-wide.c: New file.
7563
7564 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7565 Szabolcs Nagy <szabolcs.nagy@arm.com>
7566
7567 * NEWS: Mention sinf, cosf, sincosf.
7568 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7569 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7570 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7571 constants rather than including generic sincosf.h.
7572 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7573 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7574 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7575 (reduced_cos): Remove.
7576 (sinf_poly): New function.
7577 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7578
7579 2018-08-14 Florian Weimer <fweimer@redhat.com>
7580
7581 [BZ #23521]
7582 [BZ #23522]
7583 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7584 processing, bail out if no room, and close the stream before
7585 returning ERANGE.
7586 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7587 (tst-nss-files-alias-leak): Link with libdl.
7588 (tst-nss-files-alias-leak.out): Depend on nss_files.
7589
7590 * nss/tst-nss-files-alias-leak.c: New file.
7591
7592 2018-08-14 Florian Weimer <fweimer@redhat.com>
7593
7594 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7595 server_user, stat_user.
7596
7597 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7598
7599 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7600 version to 4.18.
7601 (io_pgetevents): New syscall.
7602 (rseq): Likewise.
7603
7604 * manual/install.texi (Configuring and compiling): Do not list
7605 tools used for testing pretty printers here.
7606 (Tools for Compilation): List Python, PExpect and GDB here.
7607 Update descriptions of uses of Perl and Python.
7608 * INSTALL: Regenerate.
7609
7610 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7611 version to 4.18.
7612
7613 2018-08-13 Florian Weimer <fweimer@redhat.com>
7614
7615 * misc/error.c (error): Add missing va_end call.
7616 (error_at_line): Likewise.
7617
7618 2018-08-13 Florian Weimer <fweimer@redhat.com>
7619
7620 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7621
7622 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7623
7624 * benchtests/scripts/benchout.schema.json (properties): Add
7625 new properties.
7626
7627 * benchtests/bench-skeleton.c (main): Add duration and
7628 iterations attributes.
7629
7630 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7631
7632 regex: Gnulib unibyte RRI uses bytes not chars
7633 Adjust the non-glibc code to agree with what Gawk needs for
7634 rational range interpretation (RRI) for regular expression ranges.
7635 In unibyte locales, Gawk wants ranges to use the underlying byte
7636 rather than the character code point. This change does not affect
7637 glibc proper.
7638 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7639 In unibyte locales, use the byte value rather than
7640 running it through btowc.
7641
7642 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7643
7644 * sysdeps/generic/math-tests-snan.h: New file.
7645 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7646 (SNAN_TESTS_float): Do not define here.
7647 (SNAN_TESTS_double): Likewise.
7648 (SNAN_TESTS_long_double): Likewise.
7649 (SNAN_TESTS_float128): Likewise.
7650 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7651 * sysdeps/i386/fpu/math-tests.h: Remove file.
7652 * sysdeps/ia64/math-tests-snan.h: New file.
7653 * sysdeps/ia64/math-tests.h: Remove file.
7654 * sysdeps/x86/math-tests.h: Likewise.
7655 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7656
7657 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7658 Szabolcs Nagy <szabolcs.nagy@arm.com>
7659
7660 * math/Makefile: Add s_sincosf_data.c.
7661 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7662 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7663 (sincosf_poly): Likewise.
7664 (reduce_small): Likewise.
7665 (reduce_large): Likewise.
7666 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7667 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7668 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7669 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7670
7671 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7672 Szabolcs Nagy <szabolcs.nagy@arm.com>
7673
7674 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7675 (converttoint): Use lround.
7676 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7677 document the semantics when TOINT_INTRINSICS is set.
7678 (converttoint): Likewise.
7679 (TOINT_RINT): Remove.
7680 (TOINT_SHIFT): Remove.
7681 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7682 path.
7683
7684 2018-08-10 Florian Weimer <fweimer@redhat.com>
7685
7686 [BZ #23497]
7687 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7688 function.
7689 (__old_getdents64): Use getdents64. Convert entries without
7690 moving them.
7691 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7692 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7693 tst-readdir64-compat.
7694
7695 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7696
7697 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7698 Fix unwind.
7699
7700 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7701
7702 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7703 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7704 code to s390x-mcount.h and #include it.
7705 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7706 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7707 (__fentry__): Add.
7708
7709 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7710
7711 * stdlib/Versions: Remove __fentry__.
7712 * sysdeps/i386/Versions: Add __fentry__.
7713 * sysdeps/x86_64/Versions: Add __fentry__.
7714
7715 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7716
7717 * sysdeps/s390/Makefile: Register the new tests.
7718 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7719 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7720 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7721 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7722 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7723 * sysdeps/s390/tst-dl-runtime.c: New file.
7724
7725 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7726
7727 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7728 Do not clobber R0.
7729
7730 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7731
7732 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7733 Do not clobber R0.
7734
7735 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7736
7737 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7738 Do not clobber R0.
7739
7740 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7741
7742 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7743 Do not clobber R0.
7744
7745 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7746
7747 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7748 Use symbolic offsets for stack variables.
7749
7750 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7751
7752 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7753 Use symbolic offsets for stack variables.
7754
7755 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7756
7757 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7758 Use symbolic offsets for stack variables.
7759
7760 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7761
7762 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7763 Use symbolic offsets for stack variables.
7764
7765 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7766
7767 * math/gen-libm-test.py: New file.
7768 * math/gen-libm-test.pl: Remove.
7769 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7770 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7771 gen-libm-test.pl.
7772 ($(libm-test-c-noauto-obj)): Likewise.
7773 ($(libm-test-c-auto-obj)): Likewise.
7774 ($(libm-test-c-narrow-obj)): Likewise.
7775 (regen-ulps): Likewise.
7776 * math/README.libm-test: Update references to gen-libm-test.pl.
7777 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7778 referencing gen-libm-test.pl.
7779 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7780 * math/libm-test-support.c: Likewise.
7781 * math/libm-test-support.h: Likewise.
7782 * sysdeps/generic/libm-test-ulps: Likewise.
7783
7784 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7785
7786 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7787 Fix value.
7788
7789 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7790
7791 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7792 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7793
7794 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7795
7796 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7797 symbols.
7798 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7799 __pthread_setspecific): Add hidden proto.
7800 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7801 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7802
7803 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7804
7805 * benchtests/bench-string.h (buf1_size, buf2_size): New
7806 variables.
7807 (init_sizes): New function.
7808 (test_init): Use it.
7809 (alloc_buf, exit_error): New functions.
7810 (alloc_bufs): Use ALLOC_BUF.
7811 (realloc_bufs): Remove.
7812 * benchtests/bench-memcmp.c (do_test): Adjust.
7813 * benchtests/bench-memset-large.c (do_test): Likewise.
7814 * benchtests/bench-memset-walk.c (do_test): Likewise.
7815 * benchtests/bench-memset.c (do_test): Likewise.
7816 * benchtests/bench-strncmp.c (do_test): Likewise.
7817
7818 2018-08-06 Andreas Schwab <schwab@suse.de>
7819
7820 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7821 of CONST_THREAD_AREA.
7822
7823 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7824
7825 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7826 (STATE_SAVE_MASK): Likewise.
7827 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7828 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7829 (STATE_SAVE_MASK): Likewise.
7830 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7831 instead of <cpu-features.h>.
7832
7833 2018-08-03 DJ Delorie <dj@redhat.com>
7834
7835 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7836 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7837
7838 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7839
7840 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7841
7842 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7843 after TEST_* calls.
7844 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7845 * math/libm-test-logb.inc (logb_test_data): Likewise.
7846
7847 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7848
7849 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7850 * string/strstr.c (AVAILABLE): Likewise.
7851
7852 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7853
7854 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7855 <init-arch.h>.
7856 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7857 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7858 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7859
7860 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7861
7862 * po/be.po: Update translation.
7863
7864 * po/be.po: Update translation.
7865
7866 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7867
7868 * sysdeps/x86/cpu-features-offsets.sym
7869 (rtld_global_ro_offsetof): Removed.
7870 (CPU_FEATURES_SIZE): Likewise.
7871 (CPUID_OFFSET): Likewise.
7872 (CPUID_SIZE): Likewise.
7873 (CPUID_EAX_OFFSET): Likewise.
7874 (CPUID_EBX_OFFSET): Likewise.
7875 (CPUID_ECX_OFFSET): Likewise.
7876 (CPUID_EDX_OFFSET): Likewise.
7877 (FAMILY_OFFSET): Likewise.
7878 (MODEL_OFFSET): Likewise.
7879 (FEATURE_OFFSET): Likewise.
7880 (FEATURE_SIZ): Likewise.
7881 (COMMON_CPUID_INDEX_1): Likewise.
7882 (COMMON_CPUID_INDEX_7): Likewise.
7883 (FEATURE_INDEX_1): Likewise.
7884 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7885
7886 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7887
7888 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7889 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7890 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7891 (install-locales): Depend on install-locale-archive.
7892 (install-locale-archive): Define.
7893 (install-locale-files): Define.
7894 (build-one-locale): Define macro.
7895 * manual/install.texi (Running make install): Document.
7896 * manual/INSTALL: Regenerate.
7897
7898 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7899
7900 * benchtests/scripts/compare_strings.py: Import traceback.
7901 (parse_file): Pretty-print error.
7902
7903 * NEWS: Mention the change.
7904 * elf/dl-tunables.list: Rename tune namespace to cpu.
7905 * sysdeps/powerpc/dl-tunables.list: Likewise.
7906 * sysdeps/x86/dl-tunables.list: Likewise.
7907 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7908 cpu.name.
7909 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7910 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7911 * manual/README.tunables: Likewise.
7912 * manual/tunables.texi: Likewise.
7913 * sysdeps/powerpc/cpu-features.c: Likewise.
7914 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7915 (init_cpu_features): Likewise.
7916 * sysdeps/x86/cpu-features.c: Likewise.
7917 * sysdeps/x86/cpu-features.h: Likewise.
7918 * sysdeps/x86/cpu-tunables.c: Likewise.
7919 * sysdeps/x86_64/Makefile: Likewise.
7920 * sysdeps/x86/dl-cet.c: Likewise.
7921
7922 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7923
7924 [BZ #23479]
7925 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7926 [__mips_hard_float].
7927 (FE_UNDERFLOW): Likewise.
7928 (FE_OVERFLOW): Likewise.
7929 (FE_DIVBYZERO): Likewise.
7930 (FE_INVALID): Likewise.
7931 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7932 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7933 (FE_UPWARD): Likewise.
7934 (FE_DOWNWARD): Likewise.
7935 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7936 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7937 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7938 [__mips_hard_float].
7939 (FP_ROUNDMODE): Likewise.
7940 (FP_RND_NEAREST): Likewise.
7941 (FP_RND_ZERO): Likewise.
7942 (FP_RND_PINF): Likewise.
7943 (FP_RND_MINF): Likewise.
7944 (FP_EX_INVALID): Likewise.
7945 (FP_EX_OVERFLOW): Likewise.
7946 (FP_EX_UNDERFLOW): Likewise.
7947 (FP_EX_DIVZERO): Likewise.
7948 (FP_EX_INEXACT): Likewise.
7949 (FP_INIT_ROUNDMODE): Likewise.
7950 * sysdeps/mips/nofpu/fesetenv.c: New file.
7951 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7952
7953 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7954
7955 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7956 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7957 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7958 conditional on [FE_UPWARD].
7959
7960 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7961
7962 regex: fix memory leak in Gnulib
7963 Problem and fix reported by Assaf Gordon in:
7964 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7965 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7966 range_ends members too, as they are defined in 'struct
7967 re_charset_t' even if not _LIBC. This affects only Gnulib.
7968
7969 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7970
7971 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7972 ...
7973 (get_common_indices): This.
7974 (init_cpu_features): Updated.
7975
7976 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7977
7978 * sysdeps/generic/math-tests-snan-payload.h: New file.
7979 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7980 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7981 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7982 * sysdeps/generic/math-tests.h: Include
7983 <math-tests-snan-payload.h>.
7984 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7985 * sysdeps/hppa/math-tests.h: Remove file.
7986 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7987 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7988 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7989 Likewise.
7990
7991 * sysdeps/generic/math-tests-snan-cast.h: New file.
7992 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7993 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7994 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7995 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7996
7997 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7998
7999 * version.h (RELEASE): Set to "development".
8000 (VERSION): Set to "2.28.9000".
8001 * NEWS (2.29): New section.
8002
8003 * version.h (RELEASE): Set to "stable".
8004 (VERSION): Set to "2.28".
8005 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8006 * NEWS: Add the list of bugs fixed in 2.28.
8007
8008 * po/ca.po: Update to latest version.
8009 * po/cs.po: Likewise
8010 * po/da.po: Likewise
8011 * po/el.po: Likewise
8012 * po/eo.po: Likewise
8013 * po/es.po: Likewise
8014 * po/fi.po: Likewise
8015 * po/fr.po: Likewise
8016 * po/gl.po: Likewise
8017 * po/hu.po: Likewise
8018 * po/ia.po: Likewise
8019 * po/id.po: Likewise
8020 * po/it.po: Likewise
8021 * po/ja.po: Likewise
8022 * po/ko.po: Likewise
8023 * po/lt.po: Likewise
8024 * po/nb.po: Likewise
8025 * po/nl.po: Likewise
8026 * po/pt_BR.po: Likewise
8027 * po/ru.po: Likewise
8028 * po/rw.po: Likewise
8029 * po/sk.po: Likewise
8030 * po/sl.po: Likewise
8031 * po/tr.po: Likewise
8032 * po/zh_CN.po: Likewise
8033 * po/zh_TW.po: Likewise
8034
8035 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8036
8037 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8038 initialization...
8039 (init): ... before initializing libpthread.
8040
8041 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8042 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8043 (__mach_setup_tls): ... new function.
8044 (mach_setup_tls): New alias.
8045 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8046 __mach_setup_thread.
8047 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8048 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8049 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8050 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8051
8052 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8053
8054 * manual/install.texi: Update versions.
8055 * INSTALL: Regenerate.
8056
8057 * manual/contrib.texi (Contributors): Update contributions.
8058
8059 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8060
8061 * po/be.po: Update translations.
8062
8063 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8064
8065 * sysdeps/sh/libm-test-ulps: Update.
8066
8067 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8068
8069 * po/bg.po: Update translations.
8070 * po/de.po: Likewise.
8071 * po/hr.po: Likewise.
8072 * po/pt_BR.po: Likewise.
8073 * po/sv.po: Likewise.
8074 * po/vi.po: Likewise.
8075
8076 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8077
8078 [BZ #23467]
8079 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8080 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8081 (CFLAGS-tst-cet-property-1.o): New.
8082 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8083 ($(objpfx)tst-cet-property-2): Likewise.
8084 ($(objpfx)tst-cet-property-2.out): Likewise.
8085 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8086 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8087 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8088 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8089 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8090
8091 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8092
8093 [BZ #23458]
8094 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8095
8096 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8097
8098 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8099 __sbrk): Do not set attribute_hidden.
8100 * sysdeps/mach/hurd/not-errno.h: New file.
8101 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8102 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8103
8104 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8105
8106 * po/uk.po: Update translations.
8107 * po/cs.po: Likewise.
8108 * po/pl.po: Likewise.
8109
8110 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8111
8112 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8113 parse beyond the note end.
8114
8115 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8116
8117 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8118 kernel does not support OFD locks.
8119 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8120
8121 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8122
8123 * sysdeps/mach/hurd/Versions (libc): Make __access and
8124 __access_noerrno external so they can override the ld symbols.
8125 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8126 __writev, __open64, __access_noerrno extern so they can be overrided.
8127 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8128 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8129
8130 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8131
8132 * po/libc.pot: Regenerate.
8133
8134 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8135
8136 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8137
8138 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8139
8140 [BZ #23459]
8141 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8142 function.
8143 (init_cpu_features): Call get_extended_indices for both Intel
8144 and AMD CPUs.
8145 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8146 Remove "for AMD" comment.
8147
8148 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8149
8150 [BZ # 23456]
8151 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8152 COMMON_CPUID_INDEX_80000001.
8153
8154 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8155
8156 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8157 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8158
8159 2018-07-26 Florian Weimer <fweimer@redhat.com>
8160
8161 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8162 aliases for symbols not in the implementation namespace.
8163
8164 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8165
8166 [BZ #23393]
8167 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8168 lowercase in LATIN script.
8169 * localedata/Makefile (test-input): Add en_US.UTF-8.
8170 * localedata/en_US.UTF-8.in: New file.
8171 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8172 and restore old tests.
8173 * posix/tst-regexloc.c (do_test): Add back range expression test.
8174
8175 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8176
8177 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8178
8179 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8180
8181 * nptl/threads.h: Move to ...
8182 * sysdeps/nptl/threads.h: ... here.
8183 * sysdeps/hurd/stdc-predef.h: New file.
8184
8185 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8186
8187 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8188 tst-cet-setcontext-1 if CET is enabled.
8189 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8190 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8191
8192 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8193
8194 * include/threads.h: Move to ...
8195 * sysdeps/nptl/threads.h: ... here.
8196 * sysdeps/htl/threads.h: New file.
8197 * conform/Makefile (linknamespace-libs-ISO11): Use
8198 static-thread-library instead of linking libpthread.
8199 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8200
8201 2018-07-25 Florian Weimer <fweimer@redhat.com>
8202
8203 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8204 nanoseconds into seconds.
8205 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8206 (do_test): Likewise.
8207 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8208 (do_test): Likewise. Avoid nanosecond overflow and spurious
8209 timeouts due to system load.
8210 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8211 (child_wait): Increment it.
8212 (do_test): Wait as long as necessary until all expected threads
8213 have arrived.
8214
8215 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8216 H.J. Lu <hongjiu.lu@intel.com>
8217
8218 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8219 __ssp.
8220 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8221 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8222 (__push___start_context): New.
8223 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8224 <asm/prctl.h>.
8225 (__getcontext): Record the current shadow stack base. Save the
8226 caller's shadow stack pointer and base.
8227 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8228 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8229 (__push___start_context): New prototype.
8230 (__makecontext): Call __push___start_context to allocate a new
8231 shadow stack, push __start_context onto the new stack as well
8232 as the new shadow stack.
8233 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8234 <asm/prctl.h>.
8235 (__setcontext): Restore the target shadow stack.
8236 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8237 <asm/prctl.h>.
8238 (__swapcontext): Record the current shadow stack base. Save
8239 the caller's shadow stack pointer and base. Restore the target
8240 shadow stack.
8241 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8242 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8243 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8244
8245 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8246
8247 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8248 tst-setcontext8 and tst-setcontext9.
8249 * stdlib/tst-setcontext6.c: New file.
8250 * stdlib/tst-setcontext7.c: Likewise.
8251 * stdlib/tst-setcontext8.c: Likewise.
8252 * stdlib/tst-setcontext9.c: Likewise.
8253
8254 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8255
8256 * stdlib/Makefile ((tests): Add tst-setcontext5.
8257 * stdlib/tst-setcontext5.c: New file.
8258
8259 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8260
8261 * stdlib/Makefile (tests): Add tst-setcontext4.
8262 * stdlib/tst-setcontext4.c: New file.
8263
8264 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8265
8266 * stdlib/Makefile (tests): Add tst-swapcontext1.
8267 * stdlib/tst-swapcontext1.c: New test.
8268
8269 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8270
8271 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8272 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8273 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8274 and tst-cet-legacy-4c.
8275 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8276 and tst-cet-legacy-mod-4.
8277 (CFLAGS-tst-cet-legacy-2.c): New.
8278 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8279 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8280 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8281 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8282 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8283 ($(objpfx)tst-cet-legacy-1): Likewise.
8284 ($(objpfx)tst-cet-legacy-2): Likewise.
8285 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8286 ($(objpfx)tst-cet-legacy-2a): Likewise.
8287 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8288 ($(objpfx)tst-cet-legacy-4): Likewise.
8289 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8290 ($(objpfx)tst-cet-legacy-4a): Likewise.
8291 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8292 (tst-cet-legacy-4a-ENV): Likewise.
8293 ($(objpfx)tst-cet-legacy-4b): Likewise.
8294 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8295 (tst-cet-legacy-4b-ENV): Likewise.
8296 ($(objpfx)tst-cet-legacy-4c): Likewise.
8297 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8298 (tst-cet-legacy-4c-ENV): Likewise.
8299 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8300 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8301 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8302 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8303 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8304 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8305 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8306 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8307 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8308 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8309 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8310
8311 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8312
8313 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8314 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8315 with ssp_base.
8316 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8317 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8318 with ssp_base.
8319
8320 2018-07-25 Andreas Schwab <schwab@suse.de>
8321
8322 [BZ #23442]
8323 * locale/weightwc.h (findidx): Handle the case where usrc is a
8324 prefix of cp but one character too short.
8325
8326 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8327
8328 * NEWS: Add ISO C threads addition.
8329
8330 2018-07-24 Florian Weimer <fweimer@redhat.com>
8331
8332 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8333 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8334 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8335 4.13.
8336
8337 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8338
8339 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8340 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8341 <sys/prctl.h> and <asm/prctl.h>.
8342 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8343 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8344 and <asm/prctl.h>.
8345 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8346 ARCH_CET_LEGACY_BITMAP.
8347 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8348 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8349 * sysdeps/x86/libc-start.c: Include <startup.h>.
8350
8351 2018-07-24 Florian Weimer <fweimer@redhat.com>
8352
8353 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8354 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8355
8356 2018-07-24 Rical Jasan <rj@2c3t.io>
8357 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8358 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8359
8360 [BZ #14092]
8361 * manual/debug.texi: Update adjacent chapter name.
8362 * manual/probes.texi: Likewise.
8363 * manual/threads.texi (ISO C Threads): New section.
8364 (POSIX Threads): Convert to a section.
8365
8366 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8367 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8368
8369 [BZ# 14092]
8370 * nptl/Makefile (tests): Add new test files.
8371 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8372 * nptl/tst-cnd-basic.c: Likewise.
8373 * nptl/tst-cnd-broadcast.c: Likewise.
8374 * nptl/tst-cnd-timedwait.c: Likewise.
8375 * nptl/tst-mtx-basic.c: Likewise.
8376 * nptl/tst-mtx-recursive.c: Likewise.
8377 * nptl/tst-mtx-timedlock.c: Likewise.
8378 * nptl/tst-mtx-trylock.c: Likewise.
8379 * nptl/tst-thrd-basic.c: Likewise.
8380 * nptl/tst-thrd-detach.c: Likewise.
8381 * nptl/tst-thrd-sleep.c: Likewise.
8382 * nptl/tst-tss-basic.c: Likewise.
8383
8384 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8385
8386 [BZ #14092]
8387 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8388 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8389 symbols.
8390 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8391 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8392 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8393 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8394 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8395 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8396 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8397 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8398 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8403 Likewise.
8404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8405 Likewise.
8406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8407 Likewise.
8408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8409 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8410 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8411 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8412 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8413 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8414 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8415 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8416 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8417 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8418 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8419 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8420 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8421 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8422 Likewise.
8423 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8424 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8425 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8426 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8427 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8428 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8429 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8430 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8431 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8432 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8433 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8434 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8435 ikewise.
8436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8438 Likewise.
8439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8440 Likewise.
8441 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8442 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8443 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8444 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8445 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8446 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8447 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8448 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8449
8450 [BZ #14092]
8451 * conform/data/threads.h-data (thread_local): New macro.
8452 (TSS_DTOR_ITERATIONS): Likewise.
8453 (tss_t): New type.
8454 (tss_dtor_t): Likewise.
8455 (tss_create): New function.
8456 (tss_get): Likewise.
8457 (tss_set): Likewise.
8458 (tss_delete): Likewise.
8459 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8460 tss_get, and tss_set objects.
8461 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8462 * nptl/tss_create.c: New file.
8463 * nptl/tss_delete.c: Likewise.
8464 * nptl/tss_get.c: Likewise.
8465 * nptl/tss_set.c: Likewise.
8466 * sysdeps/nptl/threads.h (thread_local): New define.
8467 (TSS_DTOR_ITERATIONS): Likewise.
8468 (tss_t): New typedef.
8469 (tss_dtor_t): Likewise.
8470 (tss_create): New prototype.
8471 (tss_get): Likewise.
8472 (tss_set): Likewise.
8473 (tss_delete): Likewise.
8474
8475 [BZ #14092]
8476 * conform/data/threads.h-data (cnd_t): New type.
8477 (cnd_init): New function.
8478 (cnd_signal): Likewise.
8479 (cnd_broadcast): Likewise.
8480 (cnd_wait): Likewise.
8481 (cnd_timedwait): Likewise.
8482 (cnd_destroy): Likewise.
8483 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8484 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8485 object.
8486 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8487 * nptl/cnd_broadcast.c: New file.
8488 * nptl/cnd_destroy.c: Likewise.
8489 * nptl/cnd_init.c: Likewise.
8490 * nptl/cnd_signal.c: Likewise.
8491 * nptl/cnd_timedwait.c: Likewise.
8492 * nptl/cnd_wait.c: Likewise.
8493 * sysdeps/nptl/threads.h (cnd_t): New type.
8494 (cnd_init): New prototype.
8495 (cnd_signa): Likewise.
8496 (cnd_broadcast): Likewise.
8497 (cnd_wait): Likewise.
8498 (cnd_timedwait): Likewise.
8499 (cnd_destroy): Likewise.
8500
8501 [BZ #14092]
8502 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8503 (once_flag): New type.
8504 (call_once): New function.
8505 * nptl/Makefile (libpthread-routines): Add call_once object.
8506 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8507 * nptl/call_once.c: New file.
8508 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8509 (once_flag): New type.
8510 (call_once): New prototype.
8511
8512 [BZ #14092]
8513 * conform/data/threads.h-data (mtx_plain): New constant.
8514 (mtx_recursive): Likewise.
8515 (mtx_timed): Likewise.
8516 (mtx_t): New type.
8517 (mtx_init): New function.
8518 (mtx_lock): Likewise.
8519 (mtx_timedlock): Likewise.
8520 (mtx_trylock): Likewise.
8521 (mtx_unlock): Likewise.
8522 (mtx_destroy): Likewise.
8523 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8524 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8525 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8526 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8527 * nptl/mtx_destroy.c: New file.
8528 * nptl/mtx_init.c: Likewise.
8529 * nptl/mtx_lock.c: Likewise.
8530 * nptl/mtx_timedlock.c: Likewise.
8531 * nptl/mtx_trylock.c: Likewise.
8532 * nptl/mtx_unlock.c: Likewise.
8533 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8534 (mtx_recursive): Likewise.
8535 (mtx_timed): Likewise.
8536 (mtx_t): New type.
8537 (mtx_init): New prototype.
8538 (mtx_lock): Likewise.
8539 (mtx_timedlock): Likewise.
8540 (mtx_trylock): Likewise.
8541 (mtx_unlock): Likewise.
8542 (mtx_destroy): Likewise.
8543
8544 [BZ #14092]
8545 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8546 (linknamespace-libs-ISO11): Add libpthread.a.
8547 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8548 functions.
8549 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8550 * nptl/Makefile (headers): Add threads.h.
8551 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8552 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8553 thrd_yield.
8554 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8555 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8556 thrd_join, thrd_sleep, and thrd_yield symbols.
8557 * nptl/descr.h (struct pthread): Add c11 field.
8558 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8559 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8560 routine with expected function prototype.
8561 (__pthread_create_2_1): Add C11 threads check based on attribute
8562 value.
8563 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8564 * nptl/thrd_create.c: New file.
8565 * nptl/thrd_current.c: Likewise.
8566 * nptl/thrd_detach.c: Likewise.
8567 * nptl/thrd_equal.c: Likewise.
8568 * nptl/thrd_exit.c: Likewise.
8569 * nptl/thrd_join.c: Likewise.
8570 * nptl/thrd_priv.h: Likewise.
8571 * nptl/thrd_sleep.c: Likewise.
8572 * nptl/thrd_yield.c: Likewise.
8573 * include/threads.h: Likewise.
8574
8575 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8576
8577 * bits/indirect-return.h: New file.
8578 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8579 * sysdeps/x86/bits/indirect-return.h: Likewise.
8580 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8581 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8582 (swapcontext): Add __INDIRECT_RETURN.
8583 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8584 (prepare_test_buffer): Use it.
8585
8586 2018-07-24 Andreas Schwab <schwab@suse.de>
8587
8588 [BZ #23448]
8589 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8590 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8591
8592 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8593
8594 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8595 Redefine if shadow stack is enabled.
8596 (SYSCALL_ERROR_LABEL): Likewise.
8597 (__vfork): Pop shadow stack and jump back to to caller directly
8598 when shadow stack is in use.
8599 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8600 Redefine if shadow stack is enabled.
8601 (SYSCALL_ERROR_LABEL): Likewise.
8602 (__vfork): Pop shadow stack and jump back to to caller directly
8603 when shadow stack is in use.
8604
8605 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8606
8607 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8608 enabled.
8609 (foo): Likewise.
8610 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8611 (foo): Likewise.
8612
8613 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8614
8615 * scripts/build-many-glibcs.py (Context.checkout): Default
8616 binutils version to 2.31 branch.
8617
8618 2018-07-20 Zong Li <zong@andestech.com>
8619
8620 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8621 URL of gcc's tarball.
8622
8623 2018-07-20 Florian Weimer <fweimer@redhat.com>
8624
8625 [BZ #23396]
8626 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8627 not compare an extra byte after the end of the weights.
8628
8629 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8630
8631 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8632 to 1.
8633 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8634 hidden prototypes.
8635 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8636 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8637 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8638 list of libraries whose stack executability is expected.
8639 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8640 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8641 variable.
8642 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8643 libc.so libpthread.so.
8644
8645 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8646
8647 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8648 SOCK_NONBLOCK.
8649 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8650 and SOCK_NONBLOCK.
8651 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8652 implement __pipe2.
8653 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8654
8655 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8656
8657 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8658 library to improve command line parsing.
8659 (__main__): make schema file as optional parameter (--schema),
8660 defaulting to benchtests/scripts/benchout.schema.json.
8661 (main): move out of the parsing stuff to __main_  and leave it
8662 only as caller of main comparison functions.
8663
8664 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8665
8666 * NEWS: Add a note for Intel CET status.
8667 * manual/install.texi: Likewise.
8668 * INSTALL: Regenerated.
8669
8670 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8671
8672 [BZ #23140]
8673 * localedata/locales/oc_FR (mon): Rename to...
8674 (alt_mon): This, then update October (typo fix).
8675 (mon): New content (genitive case, month names preceded by
8676 "de" or "d’").
8677
8678 [BZ #23422]
8679 * localedata/locales/oc_FR (abday): Update all items.
8680 (day): Update Wednesday and Saturday (typo fixes).
8681 (abmon): Update all items, except May.
8682 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8683 (LC_IDENTIFICATION): Bump the revision number and date.
8684 Keep the "category" entries in alphabetic order.
8685 (LC_ADDRESS): Remove no longer needed comment.
8686 (LC_COLLATE): Use “copy "ca_ES"”.
8687 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8688 "name_mrs".
8689
8690 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8691
8692 * grp/tst_fgetgrent.c: Include <unistd.h>.
8693 (main): Use mkstemp instead of tmpnam.
8694 * io/test-utime.c (main): Likewise.
8695 * posix/annexc.c (macrofile): Change to modifiable array.
8696 (main): Remove macrofile here.
8697 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8698 macrofile here.
8699 (check_header): Do not remove macrofile here.
8700 * posix/bug-getopt1.c: Include <stdlib.h>.
8701 (do_test): Use mkstemp instead of tmpnam.
8702 * posix/bug-getopt2.c: Include <stdlib.h>.
8703 (do_test): Use mkstemp instead of tmpnam.
8704 * posix/bug-getopt3.c: Include <stdlib.h>.
8705 (do_test): Use mkstemp instead of tmpnam.
8706 * posix/bug-getopt4.c: Include <stdlib.h>.
8707 (do_test): Use mkstemp instead of tmpnam.
8708 * posix/bug-getopt5.c: Include <stdlib.h>.
8709 (do_test): Use mkstemp instead of tmpnam.
8710 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8711 (main): Use mkstemp instead of tmpnam.
8712 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8713 (main): Use mkstemp instead of tmpnam.
8714 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8715 (main): use mkstemp instead of tmpnam.
8716 * stdlib/isomac.c (macrofile): Change to modifiable array.
8717 (main): Remove macrofile here.
8718 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8719 macrofile here.
8720 (check_header): Do not remove macrofile here.
8721
8722 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8723
8724 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8725 glibc.tune.x86_shstk.
8726
8727 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8728
8729 * NEWS: Mention --enable-cet.
8730 * manual/install.texi: Document --enable-cet.
8731 * INSTALL: Regenerated.
8732
8733 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8734
8735 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8736 Add _CET_NOTRACK before indirect jump to jump table.
8737
8738 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8739
8740 * sysdeps/i386/i686/multiarch/memset-sse2-rep.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/strcat-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/strcpy-sse2.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.S
8759 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8760 to jump table.
8761
8762 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8763
8764 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8765 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8766 to jump table.
8767 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8768
8769 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8770
8771 * sysdeps/i386/i686/multiarch/memcmp-sse4.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/multiarch/memset-sse2.S
8778 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8779 to jump table.
8780
8781 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8782
8783 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8784 indirect jump to jump table.
8785
8786 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8787
8788 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8789 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8790 to jump table.
8791 (MEMCPY): Likewise.
8792
8793 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8794
8795 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8796 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8797 to jump table.
8798 (MEMCPY): Likewise.
8799
8800 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8801
8802 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8803 _CET_NOTRACK before indirect jump to jump table.
8804
8805 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8806
8807 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8808 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8809 to jump table.
8810
8811 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8812
8813 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8814 indirect jump to jump table.
8815
8816 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8817
8818 [BZ #22241]
8819 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8820 (LOCALES): Likewise.
8821 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8822 * localedata/locales/sah_RU: New file.
8823 * localedata/sah_RU.UTF-8.in: New file.
8824
8825 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8826
8827 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8828 "sysdep.h".
8829 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8830 _CET_ENDBR to indirect jump targets and adjust jump destination
8831 for _CET_ENDBR.
8832 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8833 "sysdep.h".
8834 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8835 _CET_ENDBR to indirect jump targets and adjust jump destination
8836 for _CET_ENDBR.
8837 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8838 "sysdep.h".
8839 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8840 _CET_ENDBR to indirect jump targets and adjust jump destination
8841 for _CET_ENDBR.
8842
8843 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8844
8845 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8846 _CET_ENDBR.
8847
8848 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8849
8850 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8851 _CET_ENDBR.
8852 (_dl_tlsdesc_undefweak): Likewise.
8853 (_dl_tlsdesc_dynamic): Likewise.
8854 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8855 (_dl_tlsdesc_resolve_rel): Likewise.
8856 (_dl_tlsdesc_resolve_rela): Likewise.
8857 (_dl_tlsdesc_resolve_hold): Likewise.
8858 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8859 (_dl_tlsdesc_undefweak): Likewise.
8860 (_dl_tlsdesc_dynamic): Likewise.
8861 (_dl_tlsdesc_resolve_rela): Likewise.
8862 (_dl_tlsdesc_resolve_hold): Likewise.
8863
8864 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8865
8866 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8867 (_fini): Likewise.
8868 * sysdeps/x86_64/crti.S (_init): Likewise.
8869 (_fini): Likewise.
8870
8871 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8872
8873 [BZ #23140]
8874 * localedata/locales/os_RU (mon): Rename to...
8875 (alt_mon): This.
8876 (mon): Import from CLDR (genitive case).
8877
8878 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8879
8880 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8881 cet-tunables.h> when CET is enabled.
8882
8883 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8884
8885 [BZ #21598]
8886 * configure.ac: Add --enable-cet.
8887 * configure: Regenerated.
8888 * elf/Makefille (all-built-dso): Add a comment.
8889 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8890 Include <dl-prop.h>.
8891 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8892 segment.
8893 * elf/dl-open.c: Include <dl-prop.h>.
8894 (dl_open_worker): Call _dl_open_check.
8895 * elf/rtld.c: Include <dl-prop.h>.
8896 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8897 _rtld_main_check.
8898 * sysdeps/generic/dl-prop.h: New file.
8899 * sysdeps/i386/dl-cet.c: Likewise.
8900 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8901 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8902 * sysdeps/x86/cet-tunables.h: Likewise.
8903 * sysdeps/x86/check-cet.awk: Likewise.
8904 * sysdeps/x86/configure: Likewise.
8905 * sysdeps/x86/configure.ac: Likewise.
8906 * sysdeps/x86/dl-cet.c: Likewise.
8907 * sysdeps/x86/dl-procruntime.c: Likewise.
8908 * sysdeps/x86/dl-prop.h: Likewise.
8909 * sysdeps/x86/libc-start.h: Likewise.
8910 * sysdeps/x86/link_map.h: Likewise.
8911 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8912 _CET_ENDBR.
8913 (_dl_runtime_profile): Likewise.
8914 (_dl_runtime_resolve_shstk): New.
8915 (_dl_runtime_profile_shstk): Likewise.
8916 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8917 if CET is enabled.
8918 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8919 (CFLAGS-.os): Likewise.
8920 (CFLAGS-.op): Likewise.
8921 (CFLAGS-.oS): Likewise.
8922 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8923 is enabled.
8924 (tests-special): Add $(objpfx)check-cet.out.
8925 (cet-built-dso): New.
8926 (+$(cet-built-dso:=.note)): Likewise.
8927 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8928 ($(objpfx)check-cet.out): New.
8929 (generated): Add check-cet.out.
8930 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8931 <cet-tunables.h>.
8932 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8933 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8934 (init_cpu_features): Call get_cet_status to check CET status
8935 and update dl_x86_feature_1 with CET status. Call
8936 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8937 (set_x86_shstk). Disable and lock CET in libc.a.
8938 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8939 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8940 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8941 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8942 (_CET_ENDBR): Define if not defined.
8943 (ENTRY): Add _CET_ENDBR.
8944 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8945 x86_shstk.
8946 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8947 _CET_ENDBR.
8948 (_dl_runtime_profile): Likewise.
8949
8950 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8951
8952 [BZ #21895]
8953 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8954 restore r2 on longjmp.
8955 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8956 test list.
8957 Added rules to build test tst-setjmp-bug21895-static.
8958 Added module setjmp-bug21895 and rules to build a shared object from it.
8959 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8960 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8961
8962 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8963
8964 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8965 * benchtests/bench-strstr.c: Likewise.
8966 * string/memmem.c (FASTSEARCH): Define.
8967 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8968 Add support for FASTSEARCH.
8969 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8970 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8971 (FASTSEARCH): Define.
8972 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8973 * string/test-strstr.c: Likewise.
8974
8975 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8976
8977 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8978 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8979
8980 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8981 H.J. Lu <hongjiu.lu@intel.com>
8982
8983 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8984 (__longjmp): Restore shadow stack pointer if shadow stack is
8985 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8986 isn't defined for __longjmp_cancel.
8987 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8988 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8989 and SHADOW_STACK_POINTER_OFFSET is defined.
8990 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8991 (setjmp): Save shadow stack pointer if shadow stack is enabled
8992 and SHADOW_STACK_POINTER_OFFSET is defined.
8993 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8994 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8995 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8996 * sysdeps/unix/sysv/linux/i386/____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/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9001 Remove jmp_buf-ssp.sym.
9002 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9003 <jmp_buf-ssp.h>.
9004 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9005 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9006 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9007 jmp_buf-ssp.sym.
9008 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9009 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9010 (__longjmp): Restore shadow stack pointer if shadow stack is
9011 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9012 isn't defined for __longjmp_cancel.
9013 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9014 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9015 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9016
9017 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9018
9019 [BZ #22563]
9020 * nptl/pthread_create.c: Include <tls-setup.h>.
9021 (__pthread_create_2_1): Call tls_setup_tcbhead.
9022 * sysdeps/generic/tls-setup.h: New file.
9023 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9024 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9025 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9026 Likewise.
9027 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9028 to feature_1.
9029 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9030 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9031 (X86_FEATURE_1_SHSTK): Likewise.
9032 (CET_ENABLED): Likewise.
9033 (IBT_ENABLED): Likewise.
9034 (SHSTK_ENABLED): Likewise.
9035
9036 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9037
9038 [BZ #23208]
9039 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9040 (LOCALES): Likewise.
9041 * localedata/dsb_DE.UTF-8.in: New file.
9042 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9043
9044 2018-07-12 Florian Weimer <fweimer@redhat.com>
9045
9046 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9047 __mprotect, not mprotect.
9048
9049 2018-07-11 Florian Weimer <fweimer@redhat.com>
9050
9051 * io/Makefile (headers): Add bits/statx.h.
9052
9053 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9054
9055 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9056 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9057 and headers.
9058 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9059 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9060 for utf8_gen.py
9061
9062 2018-07-10 Florian Weimer <fweimer@redhat.com>
9063
9064 * io/Makefile (routines): Add statx.
9065 (tests-internal): Add tst-statx.
9066 * io/Versions (GLIBC_2.28): Export statx.
9067 * io/bits/statx.h: New file.
9068 * io/sys/stat.h [__USE_GNU]: Include it.
9069 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9070 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9071 Define.
9072 * io/statx.c: New file.
9073 * io/statx_generic.: Likewise.
9074 * io/tst-statx.: Likewise.
9075 * include/bits/statx.h: Likewise.
9076 * sysdeps/unix/sysv/linux/kernel-features.h
9077 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9078 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9079 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9080 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9081 Undefine.
9082 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9083 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9084 * sysdeps/unix/sysv/linux/statx.c: New file.
9085 * manual/filesys.texi: Note that statx is undocumented.
9086 * sysdeps/**/libc*.abilist: Update.
9087
9088 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9089
9090 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9091 a kernel issue which lead to test failure in some cases.
9092
9093 2018-07-10 Florian Weimer <fweimer@redhat.com>
9094
9095 [BZ #23036]
9096 * posix/regexec.c (check_node_accept_bytes): When comparing
9097 weights, do not compare an extra byte after the end of the
9098 weights.
9099
9100 2018-07-10 Florian Weimer <fweimer@redhat.com>
9101
9102 * libio/readline.c: Fix copyright year.
9103 * libio/tst-readline.c Likewise.
9104 * nss/tst-nss-files-hosts-getent.c: Likewise.
9105
9106 2018-07-06 Florian Weimer <fweimer@redhat.com>
9107
9108 [BZ #18991]
9109 * nss/nss_files/files-XXX.c (internal_getent): Use
9110 __libc_readline_unlocked. Seek back to the start of the line if
9111 parsing failes with ERANGE.
9112 (get_contents_ret, get_contents): Remove.
9113 * nss/tst-nss-files-hosts-getent.c: New file.
9114 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9115 (tst-nss-files-hosts-getent): Link with -ldl.
9116
9117 2018-07-06 Florian Weimer <fweimer@redhat.com>
9118
9119 * include/stdio.h (__libc_readline_unlocked): Declare.
9120 (__ftello64, __fseeko64): Declare aliases.
9121 * libio/readline.c: New file.
9122 * libio/tst-readline.c: Likewise.
9123 (routines): Add readline.
9124 (tests-internal): Add tst-readlime.
9125 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9126 __libc_readline_unlocked.
9127 * libio/fseeko.c (__fseeko): Rename from fseeko.
9128 (fseeko): Add alias.
9129 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9130 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9131 (fseeko64): Add alias.
9132 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9133 * libio/ftello64.c (__ftello64): Rename from ftello64.
9134 (ftello64): Add alias.
9135
9136 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9137
9138 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9139 HWCAP_ATOMICS.
9140
9141 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9142
9143 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9144 Use dl_hwcap without masking.
9145 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9146 Remove HWCAP_CPUID.
9147
9148 2018-07-06 Florian Weimer <fweimer@redhat.com>
9149
9150 * conform/conformtest.pl (checknamespace): Escape literal braces
9151 in regular expressions.
9152
9153 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9154
9155 * sysdeps/x86/cpu-features.c (get_common_indeces):
9156 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9157 * sysdeps/x86/cpu-features.c (init_cpu_features):
9158 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9159
9160 2018-07-05 Florian Weimer <fweimer@redhat.com>
9161
9162 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9163 protector.
9164 (CFLAGS-elf-init.oS): Likewise.
9165
9166 2018-07-05 Florian Weimer <fweimer@redhat.com>
9167 Carlos O'Donell <carlos@redhat.com>
9168
9169 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9170 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9171 with stack protector enabled because there is no risk of infinite
9172 recursion.
9173
9174 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9175
9176 [BZ #19818]
9177 [BZ #23307]
9178 * libc-abis (ABSOLUTE): New ABI.
9179 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9180 * NEWS: Mention the new ABI.
9181
9182 2018-07-05 Florian Weimer <fweimer@redhat.com>
9183
9184 [BZ # 17662]
9185 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9186 (RENAME_WHITEOUT): Define.
9187 [__USE_GNU] (renameat2): Declare.
9188 * stdio-common/Makefile (routines): Add renameat2.
9189 (tests): Add tst-renameat2.
9190 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9191 * stdio-common/renameat2.c: New file.
9192 * stdio-common/tst-renameat2.c: Likewise.
9193 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9194 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9195 undocumented.
9196 * sysdeps/unix/sysv/linux/kernel-features.h
9197 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9198 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9199 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9200 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9201 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9202 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9203 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9204 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9205 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9206 * include/stdio.h (__renameat): Add alias for renameat.
9207 * stdio-common/renameat.c (__renameat): Rename from renameat.
9208 Add hidden definition and alias.
9209 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9210 * sysdeps/mach/hurd/renameat.c: Likewise.
9211 * sysdeps/**/libc*.abilist: Add renameat2.
9212
9213 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9214
9215 * posix/bug-regex33.c: Fix build after regex sync.
9216
9217 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9218
9219 [BZ #23164]
9220 * localedata/tst-langinfo-setlocale.c: New file.
9221 * localedata/tst-langinfo-setlocale-static.c: New file.
9222 * localedata/tst-langinfo-newlocale.c: New file.
9223 * localedata/tst-langinfo-newlocale-static.c: New file.
9224 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9225 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9226 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9227 (tests-static): Remove tst-langinfo-static. Add
9228 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9229 (tests-special): Remove $(objpfx)tst-langinfo.out,
9230 $(objpfx)tst-langinfo-static.out. Add
9231 $(objpfx)tst-langinfo-setlocale.out,
9232 $(objpfx)tst-langinfo-newlocale.out,
9233 $(objpfx)tst-langinfo-setlocale-static.out,
9234 $(objpfx)tst-langinfo-newlocale-static.out.
9235 ($(objpfx)tst-langinfo.out): Remove.
9236 ($(objpfx)tst-langinfo-static.out): Remove.
9237 ($(objpfx)tst-langinfo-newlocale.out): New target.
9238 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9239 (test-xfail-tst-langinfo-newlocale-static): Add.
9240 ($(objpfx)tst-langinfo-setlocale.out): New target.
9241 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9242 * localedata/tst-langinfo.c: Call test_locale.
9243 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9244 data.
9245
9246 2018-07-04 Florian Weimer <fweimer@redhat.com>
9247
9248 testrun.sh: Implement --tool=strace, --tool=valgrind
9249 * Makefile (testrun-script): Define variable.
9250 (testrun.sh): Use variable.
9251 * manual/install.texi (Tools for Compilation): make 4.0 or later
9252 is required.
9253 * configure.ac: Check for make 4.0 or later.
9254 * INSTALL: Regenerate.
9255 * configure: Likewise.
9256
9257 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9258
9259 [BZ #23233]
9260 [BZ #21163]
9261 [BZ #18986]
9262 [BZ #13762]
9263 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9264 * posix/PCRE.tests: Remove invalid test.
9265 * posix/bug-regex28.c: Fix expected values for used syntax.
9266 * posix/bug-regex37.c: New file.
9267 * posix/bug-regex38.c: Likewise.
9268 * posix/regcomp.c: Sync with gnulib.
9269 * posix/regex.c: Likewise.
9270 * posix/regex.h: Likewise.
9271 * posix/regex_internal.c: Likewise.
9272 * posix/regex_internal.h: Likewise.
9273 * posix/regexec.c: Likewise.
9274
9275 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9276
9277 [BZ #23308]
9278 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9279 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9280 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9281 * localedata/unicode-gen/PropList.txt: likewise.
9282 * localedata/unicode-gen/UnicodeData.txt: likewise.
9283 * localedata/charmaps/UTF-8: Regenerate.
9284 * localedata/locales/i18n_ctype: likewise.
9285 * localedata/locales/tr_TR: likewise.
9286 * localedata/locales/translit_circle: likewise.
9287 * localedata/locales/translit_cjk_compat: likewise.
9288 * localedata/locales/translit_combining: likewise.
9289 * localedata/locales/translit_compat: likewise.
9290 * localedata/locales/translit_font: likewise.
9291 * localedata/locales/translit_fraction: likewise.
9292
9293 2018-07-03 Florian Weimer <fweimer@redhat.com>
9294
9295 [BZ #23363]
9296 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9297 * stdio-common/tst-printf.sh: Adjust expected output.
9298 * LICENSES: Update.
9299
9300 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9301
9302 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9303 symbol.
9304
9305 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9306
9307 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9308 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9309 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9310 * stdio-common/tst-printfsz-islongdouble.c: New file.
9311 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9312 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9313 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9314 [subdir == stdio-common] (tests-internal): Add
9315 test-printf-size-ieee128, and test-printf-size-ibm128.
9316 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9317 (CFLAGS-test-printf-size-ibm128.c): New variables.
9318 [subdir == stdio-common] (tests-special): Add
9319 $(objpfx)test-printf-size-ieee128.out and
9320 $(objpfx)test-printf-size-ibm128.out.
9321 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9322 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9323 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9324 __printf_sizeieee128.
9325 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9326 New file.
9327 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9328 Likewise.
9329 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9330 Likewise.
9331
9332 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9333
9334 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9335 (exp2f_inline): Likewise.
9336 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9337 (__math_uflowf): Likewise.
9338 (__math_may_uflowf): Likewise.
9339 (__math_divzerof): Likewise.
9340 (__math_invalidf): Likewise.
9341 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9342 (__math_oflowf): Likewise.
9343 (__math_uflowf): Likewise.
9344 (__math_may_uflowf): Likewise.
9345 (__math_divzerof): Likewise.
9346 (__math_invalidf): Likewise.
9347
9348 2018-06-29 DJ Delorie <dj@redhat.com>
9349 Carlos O'Donell <carlos@redhat.com>
9350
9351 [BZ #23329]
9352 * include/libc-symbols.h: Comment the freeres framework.
9353 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9354 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9355 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9356 * dlfcn/dlerror.c: Include libc-symbols.h
9357 (__dlerror_main_freeres): New function.
9358 * dlfcn/dlfreeres.c: New file.
9359 * dlfcn/sdlfreeres.c: New file.
9360 * include/dlfcn.h: Declare __dlerror_main_freeres.
9361 * malloc/set-freeres.c: Declare __libdl_freeres, and
9362 __libpthread_freeres.
9363 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9364 the releavant libraries are loaded.
9365 * malloc/thread-freeres.c: Add comments.
9366 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9367 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9368 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9369 (__free_stacks): Rename to...
9370 (free_stacks): ...this. Mark static.
9371 (queue_stack): Call free_stacks.
9372 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9373 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9374 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9375 ptr_freeres element from struct.
9376 (pthread_functions): Remove .ptr_freeres from struct initializer.
9377 [SHARED] (nptl_freeres): Remove.
9378 * nptl/nptlfreeres.c: New file.
9379 * nptl/pthreadP.h
9380 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9381 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9382 attribute_hidden.
9383 (__free_stacks): Rename to...
9384 (__nptl_stacks_freeres): ...this.
9385 (__shm_directory_freeres): Declare.
9386 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9387 (__nptl_unwind_freeres): ...this.
9388 * resolv/res-close.c: Add comment.
9389 * resolv/resolv_conf.c: Include libc-symbols.h.
9390 * string/strerror_l.c: Include libc-symbols.h.
9391 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9392 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9393 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9394 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9395
9396 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9397
9398 * stdlib/tst-strfmon_l.c: Add tests for long double.
9399
9400 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9401
9402 [BZ #23208]
9403 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9404 * localedata/locales/dsb_DE: New file.
9405
9406 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9407
9408 [BZ #23140]
9409 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9410 genitive case).
9411 (alt_mon): New entry, import from CLDR (nominative case).
9412
9413 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9414
9415 [BZ #22996]
9416 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9417
9418 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9419
9420 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9421 Use vector registers.
9422
9423 * sysdeps/aarch64/multiarch/memmove_falkor.S
9424 (__memcpy_falkor): Use vector registers.
9425
9426 2018-06-29 Martin Sebor <msebor@redhat.com>
9427
9428 * manual/stdio.texi (Customizing Printf): Mention interaction
9429 with GCC built-ins.
9430
9431 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9432
9433 [BZ #23307]
9434 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9435 `st_value' is 0 if `st_shndx' is SHN_ABS.
9436 * elf/tst-absolute-zero.c: New file.
9437 * elf/tst-absolute-zero-lib.c: New file.
9438 * elf/tst-absolute-zero-lib.lds: New file.
9439 * elf/Makefile (tests): Add `tst-absolute-zero'.
9440 (modules-names): Add `tst-absolute-zero-lib'.
9441 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9442 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9443 ($(objpfx)tst-absolute-zero: New dependency.
9444
9445 2018-06-29 Zack Weinberg <zackw@panix.com>
9446
9447 * configure.ac: New command-line option --disable-crypt.
9448 Force --disable-nss-crypt when --disable-crypt is given, with a
9449 warning if it was explicitly enabled.
9450 * configure: Regenerate.
9451 * config.make.in: New boolean substitution variable $(build-crypt).
9452 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9453 when $(build-crypt).
9454 * manual/install.texi: Document --disable-crypt.
9455 * INSTALL: Regenerate.
9456
9457 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9458 which is never set.
9459 * conform/Makefile: Only include libcrypt.a in
9460 linknamespace-libs-xsi and linknamespace-libs-XPG4
9461 when $(build-crypt).
9462 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9463 USE_CRYPT to 1 when $(build-crypt).
9464 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9465 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9466 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9467
9468 2018-06-29 Zack Weinberg <zackw@panix.com>
9469
9470 * crypt/crypt.h, posix/unistd.h: Update comments and
9471 prototypes for crypt and crypt_r.
9472
9473 * manual/crypt.texi (Cryptographic Functions): New initial
9474 exposition.
9475 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9476 (Unpredictable Bytes): Improve initial exposition. Clarify error
9477 behavior of getentropy and getrandom.
9478 * manual/examples/genpass.c: Generate a salt using getentropy
9479 instead of the current time. Use hash $5$ (SHA-2-256).
9480 * manual/examples/testpass.c: Demonstrate validation against
9481 hashes generated with three different one-way functions.
9482
9483 * manual/intro.texi: crypt.texi does not need an overview
9484 anymore.
9485
9486 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9487 * manual/terminal.texi: Consistently refer to "passphrases"
9488 * instead of "passwords", and to the "user database" instead
9489 * of the "password database".
9490 * manual/users.texi: Similarly. Add notes about how actual
9491 passphrase hashes are now stored in the shadow database.
9492 Remove 20-year-old junk todo note.
9493
9494 2018-06-29 Zack Weinberg <zackw@panix.com>
9495
9496 * manual/crypt.texi: Use a normal top-level @node declaration.
9497 Move most of the introductory text to the 'crypt' section.
9498 Move the example programs below the @deftypefun for 'crypt_r'.
9499 Move the 'getpass' section...
9500 * manual/terminal.texi: ...here.
9501
9502 2018-06-29 Zack Weinberg <zackw@panix.com>
9503 Florian Weimer <fweimer@redhat.com>
9504
9505 * posix/unistd.h: Do not declare encrypt.
9506 (_XOPEN_CRYPT): Remove macro definition.
9507 (crypt): Declare only for _USE_MISC.
9508 * stdlib/stdlib.h: Do not declare setkey.
9509 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9510 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9511
9512 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9513 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9514 into compat symbols. Don't define initial_perm if it's not
9515 going to be used.
9516 * crypt/cert.c: Link explicitly with the expected versions for
9517 setkey and encrypt. If they are not available at all, mark
9518 the test as unsupported.
9519
9520 * sunrpc/des_crypt.c: Unconditionally block linkage with
9521 cbc_crypt and ecb_crypt for new binaries.
9522 * sunrpc/des_soft.c: Unconditionally block linkage with
9523 des_setparity for new binaries.
9524
9525 * manual/crypt.texi: Remove the entire "DES Encryption"
9526 section. Also remove the paragraph talking about FIPS 140-2
9527 from the introduction.
9528 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9529 of libgcrypt for "real" encryption, not DES.
9530 * manual/conf.texi (Constants for Sysconf): Mention that
9531 _XOPEN_CRYPT is no longer impelemented.
9532
9533 * conform/data/unistd.h-data: Remove crypt function declaration.
9534
9535 2018-06-29 Florian Weimer <fweimer@redhat.com>
9536
9537 [BZ #23351]
9538 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9539 (disallow_malloc_check): Remove variable.
9540 (__malloc_check_init): Adjust.
9541 (malloc_set_state): Update comment.
9542 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9543 declarations.
9544
9545 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9546
9547 [BZ #23140]
9548 * localedata/locales/ast_ES (mon): Rename to...
9549 (alt_mon): This.
9550 (mon): Import from CLDR (genitive case).
9551
9552 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9553 Jakub Sitnicki <jkbs@redhat.com>
9554
9555 [BZ #21812]
9556 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9557 on NLM_F_DUMP_INTR.
9558
9559 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9560
9561 * manual/llio.texi: Remove spurious space.
9562
9563 2018-06-28 Florian Weimer <fweimer@redhat.com>
9564
9565 [BZ #23349]
9566 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9567 _STRUCT_TIMESPEC.
9568
9569 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9570
9571 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9572 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9573 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9574 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9575 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9576 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9577 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9578
9579 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9580
9581 [BZ #23266]
9582 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9583 Copy and null-terminate entries that are not terminated, in
9584 addition to empty ones.
9585
9586 2018-06-27 Florian Weimer <fweimer@redhat.com>
9587
9588 [BZ #18023]
9589 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9590 (extend_alloca_account): Remove.
9591 * manual/stdio.texi (Variable Arguments Output): Update comment.
9592
9593 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9594
9595 * nptl/sockperf.c: Remove file.
9596
9597 2018-06-27 Florian Weimer <fweimer@redhat.com>
9598
9599 [BZ #18023]
9600 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9601 scratch_buffer instead of extend_alloca.
9602
9603 2018-06-27 Florian Weimer <fweimer@redhat.com>
9604
9605 [BZ #18023]
9606 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9607 scratch_buffer instead of extend_alloca. Update comments.
9608
9609 2018-06-27 Florian Weimer <fweimer@redhat.com>
9610
9611 [BZ #18023]
9612 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9613 instead of extend_alloca.
9614
9615 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9616
9617 [BZ #13888]
9618 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9619 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9620 /tmp.
9621 * scripts/test-installation.pl: Put temporary files in build
9622 directory, not /tmp.
9623 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9624 (CFLAGS-bug4.c): Likewise.
9625 (CFLAGS-bug5.c): Likewise.
9626 (CFLAGS-test-fseek.c): Likewise.
9627 (CFLAGS-test-popen.c): Likewise.
9628 (CFLAGS-test_rdwr.c): Likewise.
9629 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9630 /tmp.
9631 * stdio-common/bug4.c (main): Likewise.
9632 * stdio-common/bug5.c (main): Likewise.
9633 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9634 * stdio-common/test-popen.c (do_test): Likewise.
9635 * stdio-common/test_rdwr.c (main): Likewise.
9636
9637 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9638
9639 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9640 (sem_open): Set sem.newsem.pad to zero for valgrind.
9641
9642 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9643
9644 [BZ #20251]
9645 * NEWS: Mention fcntl64 addition.
9646 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9647 * login/utmp_file.c: Likewise.
9648 * sysdeps/posix/fdopendir.c: Likewise.
9649 * sysdeps/posix/opendir.c: Likewise.
9650 * sysdeps/unix/pt-fcntl.c: Likewise.
9651 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9652 __fcntl64_nocancel_adjusted): New prototype.
9653 (__fcntl_nocancel_adjusted): Remove prototype.
9654 * io/Makefile (routines): Add fcntl64.
9655 (CFLAGS-fcntl64.c): New rule.
9656 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9657 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9658 * io/fcntl.h (fcntl64): Add prototype and redirect if
9659 __USE_FILE_OFFSET64 is defined.
9660 * io/fcntl64.c: New file.
9661 * manual/llio.text: Add a note for which commands fcntl acts a
9662 cancellation point.
9663 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9664 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9665 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9666 New symbols.
9667 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9668 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9669 non-LFS case.
9670 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9671 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9672 to __fcntl64_nocancel.
9673 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9674 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9675 to __fcntl64_nocancel.
9676 * sysdeps/generic/not-cancel.h: Likewise.
9677 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9678 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9679 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9680 (fcntl64): New symbol.
9681 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9682 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9683 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9684 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9685 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9686 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9687 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9688 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9689 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9690 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9691 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9692 fcntl64): Likewise.
9693 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9694 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9695 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9696 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9697 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9698 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9699 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9700 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9701 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9703 Likewise.
9704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9705 Likewise.
9706 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9707 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9708 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9709
9710 2018-06-26 Florian Weimer <fweimer@redhat.com>
9711
9712 Run thread shutdown functions in an explicit order.
9713 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9714 definition.
9715 (__libc_thread_freeres): Call thread shutdown functions
9716 explicitly.
9717 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9718 * include/string.h (__strerror_thread_freeres): Declare.
9719 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9720 arena_thread_freeres. No longer static. Remove thread shutdown
9721 hook registration.
9722 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9723 Declare.
9724 * resolv/res-close.c (__res_thread_freeres): Renamed from
9725 res_thread_freeres. No longer static. Remove thread shutdown
9726 hook registration.
9727 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9728 * resolv/resolv_conf.c (freeres): Remove incorrect section
9729 attribute and use libc_freeres_fn.
9730 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9731 strerror_thread_freeres. No longer static. Remove thread
9732 shutdown hook registration.
9733 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9734 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9735 shutdown hook registration.
9736 * Makerules (shlib.lds): Do not provide section boundary symbols
9737 for __libc_thread_subfreeres.
9738 * manual/memory.texi (Basic Allocation): Update comment.
9739
9740 2018-06-26 Florian Weimer <fweimer@redhat.com>
9741
9742 Remove always-defined _RPC_THREAD_SAFE_ macro.
9743 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9744 Do not define _RPC_THREAD_SAFE_.
9745 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9746 conditional.
9747 * sunrpc/clnt_perr.c: Likewise.
9748 * sunrpc/clnt_raw.c: Likewise.
9749 * sunrpc/clnt_simp.c: Likewise.
9750 * sunrpc/key_call.c: Likewise.
9751 * sunrpc/rpc_common.c: Likewise.
9752 * sunrpc/rpc_main.c: Likewise.
9753 * sunrpc/rpc_thread.c: Likewise.
9754 * sunrpc/svc.c: Likewise.
9755 * sunrpc/svc_raw.c: Likewise.
9756 * sunrpc/svc_simple.c: Likewise.
9757 * sumrpc/svcauth_des.c: Likewise.
9758
9759 2018-06-26 Florian Weimer <fweimer@redhat.com>
9760
9761 * libio/Makefile (tests-internal): Add tst-vtables,
9762 tst-vtables-interposed.
9763 * libio/tst-vtables.c: New file.
9764 * libio/tst-vtables-common.c: Likewise.
9765 * libio/tst-vtables-interposed.c: Likewise.
9766
9767 2018-06-26 Florian Weimer <fweimer@redhat.com>
9768
9769 * support/support_test_main.c (support_test_main): Only call
9770 setvbuf if not disables.
9771 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9772 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9773
9774 2018-06-26 Florian Weimer <fweimer@redhat.com>
9775
9776 [BZ #23313]
9777 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9778
9779 2018-06-25 Florian Weimer <fweimer@redhat.com>
9780
9781 [BZ #18023]
9782 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9783 Use struct scratch_buffer instead of extend_alloca.
9784
9785 2018-06-25 Florian Weimer <fweimer@redhat.com>
9786
9787 [BZ #18023]
9788 * nss/getent.c (initgroups_keys): Use dynarray instead of
9789 extend_alloca.
9790
9791 2018-06-25 Florian Weimer <fweimer@redhat.com>
9792
9793 [BZ #18023]
9794 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9795 Use struct scratch_buffer instead of extend_alloca.
9796
9797 2018-06-25 Florian Weimer <fweimer@redhat.com>
9798
9799 [BZ #18023]
9800 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9801 back to malloc directly, without stack allocations.
9802
9803 2018-06-25 Florian Weimer <fweimer@redhat.com>
9804
9805 [BZ #18023]
9806 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9807 of extend_alloca.
9808
9809 2018-06-25 Florian Weimer <fweimer@redhat.com>
9810
9811 [BZ #18023]
9812 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9813 of extend_alloca.
9814 * nscd/hstcache.c (addhstbyX): Likewise.
9815 * nscd/pwdcache.c (addpwbyX): Likewise.
9816 * nscd/servicescache.c (addservbyX): Likewise.
9817
9818 2018-06-25 Florian Weimer <fweimer@redhat.com>
9819
9820 [BZ #18023]
9821 * nscd/connections.c (read_cmdline): New function.
9822 (restart): Use it. Update comment.
9823
9824 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9825
9826 [BZ #23140]
9827 * localedata/locales/csb_PL (mon): Rename to...
9828 (alt_mon): This.
9829 (abmon): Rename to...
9830 (ab_alt_mon): This.
9831 (mon): Add with proper genitive forms, copy from Wikipedia.
9832 (abmon): Likewise.
9833
9834 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9835
9836 [BZ #19485]
9837 * localedata/locales/csb_PL (mon): Fix typos:
9838 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9839 (yesstr): Add, value is "jo".
9840 (nostr): Add, value is "nié".
9841
9842 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9843
9844 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9845 all log1p and significand functions on m680x0.
9846 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9847 of s_significand.c..
9848 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9849 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9850 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9851 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9852 s_log1p.c and include it..
9853
9854 2018-06-21 Vincent Chen <vincentc@andestech.com>
9855
9856 * elf/elf.h (R_NDS32_NONE): New define.
9857 (R_NDS32_32_RELA): Likewise.
9858 (R_NDS32_COPY): Likewise.
9859 (R_NDS32_GLOB_DAT): Likewise.
9860 (R_NDS32_JUMP_SLOT): Likewise.
9861 (R_NDS32_RELATIVE): Likewise.
9862 (R_NDS32_TLS_TPOFF): Likewise.
9863 (R_NDS32_TLS_DESC): Likewise.
9864
9865 2018-06-21 Mark Wielaard <mark@klomp.org>
9866
9867 * elf/elf.h (R_BPF_MAP_FD): Removed.
9868 (R_BPF_64_64, R_BPF_64_32): New.
9869
9870 2018-06-21 Florian Weimer <fweimer@redhat.com>
9871
9872 [BZ #23253]
9873 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9874 Renamed from libc_feholdsetround_ctx.
9875 (default_libc_feresetround_ctx): Renamed from
9876 libc_feresetround_ctx.
9877 (default_libc_feholdsetround_noex_ctx): Renamed from
9878 libc_feholdsetround_noex_ctx.
9879 (default_libc_feresetround_noex_ctx): Renamed from
9880 libc_feresetround_noex_ctx.
9881 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9882 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9883 forwardning to the old implementations under the new names.
9884 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9885 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9886 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9887 (libc_feresetround_ctx): Forward to default implements for i386
9888 and MATH_SET_BOTH_ROUNDING_MODES.
9889 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9890 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9891
9892 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9893
9894 * string/tst-cmp.c: Include <libc-diag.h>.
9895 (strncmp_max): Disable -Wstringop-overflow= around call to
9896 strncmp.
9897 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9898 strncasecmp.
9899
9900 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9901 (main): Disable -Wunused-value around call to strpbrk.
9902 * string/bug-strspn1.c: Include <libc-diag.h>.
9903 (main): Disable -Wunused-value around call to strspn.
9904
9905 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9906 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9907
9908 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9909 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9910
9911 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9912
9913 * math/Makefile (libm-calls): Move s_significandF to...
9914 (gen-libm-calls): ... here.
9915 * math/s_significand_template.c: New file.
9916 * math/s_significand.c: Removed.
9917 * math/s_significandf.c: Removed.
9918 * math/s_significandl.c: Removed.
9919 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9920 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9921
9922 * math/e_exp2_template.c (declare_mgen_finite_alias,
9923 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9924 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9925 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9926
9927 2018-06-20 Florian Weimer <fweimer@redhat.com>
9928
9929 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9930
9931 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9932
9933 [BZ #23280]
9934 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9935 floating-point number to strtod functions rather than possibly
9936 negating result of those functions.
9937 * stdio-common/tst-scanf-round.c: New file.
9938 * stdio-common/Makefile (tests): Add tst-scanf-round.
9939 ($(objpfx)tst-scanf-round): Depend on $(libm).
9940
9941 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9942
9943 * sysdeps/mach/hurd/localplt.data: Move to...
9944 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9945 R_386_GLOB_DAT like on Linux i386.
9946
9947 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9948
9949 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9950 (SHM_STAT_ANY): New macro.
9951 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9952 (SHM_STAT_ANY): Likewise.
9953 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9954 (SHM_STAT_ANY): Likewise.
9955 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9956 (SHM_STAT_ANY): Likewise.
9957 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9958 (SHM_STAT_ANY): Likewise.
9959 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9960 (SHM_STAT_ANY): Likewise.
9961 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9962 (SHM_STAT_ANY): Likewise.
9963 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9964 (SHM_STAT_ANY): Likewise.
9965 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9966 (SHM_STAT_ANY): Likewise.
9967 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9968 (SHM_STAT_ANY): Likewise.
9969 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9970 (SHM_STAT_ANY): Likewise.
9971 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9972 (SHM_STAT_ANY): Likewise.
9973
9974 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9975 (SEM_STAT_ANY): New macro.
9976 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9977 (SEM_STAT_ANY): Likewise.
9978 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9979 (SEM_STAT_ANY): Likewise.
9980 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9981 (SEM_STAT_ANY): Likewise.
9982 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9983 (SEM_STAT_ANY): Likewise.
9984 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9985 (SEM_STAT_ANY): Likewise.
9986 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9987 (SEM_STAT_ANY): Likewise.
9988 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9989 (SEM_STAT_ANY): Likewise.
9990 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9991 (SEM_STAT_ANY): Likewise.
9992 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9993 (SEM_STAT_ANY): Likewise.
9994
9995 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9996 (MSG_STAT_ANY): New macro.
9997 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9998 (MSG_STAT_ANY): Likewise.
9999 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10000 (MSG_STAT_ANY): Likewise.
10001 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10002 (MSG_STAT_ANY): Likewise.
10003 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10004 (MSG_STAT_ANY): Likewise.
10005 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10006 (MSG_STAT_ANY): Likewise.
10007 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10008 (MSG_STAT_ANY): Likewise.
10009 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10010 (MSG_STAT_ANY): Likewise.
10011 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10012 (MSG_STAT_ANY): Likewise.
10013 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10014 (MSG_STAT_ANY): Likewise.
10015
10016 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10017 (MAP_TYPE): Change value to 0x2b.
10018
10019 2018-06-18 Florian Weimer <fweimer@redhat.com>
10020
10021 [BZ #15722]
10022 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10023 socket with SOCK_CLOEXEC.
10024
10025 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10026
10027 [BZ #23303]
10028 * sysdeps/powerpc/powerpc64/le/Makefile
10029 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10030 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10031 (gnulib-tests): Also add $(f128-loader-link) for
10032 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10033
10034 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10035
10036 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10037 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10038 of sendfile.
10039 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10040 (sendfile64): New strong alias.
10041 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10042 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10043 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10044 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10045 attribute.
10046 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10047 ___pthread_get_cleanup_stack.
10048 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10049 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10050 * mach/shortcut.awk: Make syscall stubs include
10051 <mach-shortcuts-hidden.h> and add hidden definition.
10052 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10053 (__mach_msg): Add hidden prototype.
10054 * mach/msg.c: Include <mach.h>.
10055 (__mach_msg): Add hidden definition.
10056 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10057 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10058 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10059 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10060 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10061 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10062 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10063 prototype and definition.
10064 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10065 hidden target for _hurd_self_sigstate.
10066
10067 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10068
10069 [BZ #23007]
10070 * stdlib/tst-strtod-nan-sign-main.c: New file.
10071 * stdlib/tst-strtod-nan-sign.c: Likewise.
10072 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10073 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10074 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10075 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10076 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10077
10078 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10079
10080 [BZ #23007]
10081 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10082 appropriate sign.
10083
10084 2018-06-14 Florian Weimer <fweimer@redhat.com>
10085
10086 [BZ #23290]
10087 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10088 that the result stays within the ISO-8859-1 range.
10089 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10090 characters are defined in IBM273.
10091
10092 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10093
10094 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10095 __mach_task_self): Remove attribute_hidden.
10096
10097 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10098
10099 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10100 ignore -Wrestrict for one test.
10101
10102 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10103 Szabolcs Nagy <szabolcs.nagy@arm.com>
10104
10105 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10106
10107 2018-06-14 Florian Weimer <fweimer@redhat.com>
10108
10109 * scripts/update-abilist.sh: Accept empty list of files to patch.
10110
10111 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10112
10113 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10114 test-xfail-check-abi-libmachuser): Add.
10115 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10116 __libc_read and __libc_write to __read and __write.
10117 * sysdeps/hurd/include/hurd/port.h: New file.
10118 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10119 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10120 __thread_switch, __evc_wait): Move declarations to...
10121 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10122 attribute_hidden.
10123 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10124 use PLT to call _hurd_self_sigstate.
10125
10126 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10127
10128 [BZ #23279]
10129 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10130 MAX_EXP as overflowing.
10131 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10132 overflow flag.
10133 (round_str): Output also whether result overflows in each rounding
10134 mode.
10135 * stdlib/tst-strtod-round-data: Add more tests.
10136 * stdlib/tst-strtod-round-data.h: Regenerated.
10137 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10138 (TEST): Handle extra arguments for overflow flags.
10139 (struct test_overflow): New type.
10140 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10141 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10142 (test_in_one_mode): Take argument with overflow information.
10143 (do_test): Update calls to test_in_one_mode.
10144
10145 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10146
10147 * elf/dl-load (_dl_dst_substitute): Correct comment.
10148 (_dl_dst_count): Likewise.
10149
10150 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10151 lll_futex_timed_wait.
10152
10153 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10154
10155 [BZ #23277]
10156 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10157 attribute.
10158 * math/test-nan-const.c: New file.
10159 * math/Makefile (tests): Add test-nan-const.
10160 (CFLAGS-test-nan-const.c): New variable.
10161
10162 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10163
10164 * benchtests/scripts/compare_strings.py (process_results): Add
10165 funcs argument. Compare only functions which are selected.
10166 (main): Check if base function is among selected functions.
10167 Pass selected functions to process_results.
10168 (__main__): Add -f/--functions argument.
10169
10170 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10171 Hongbo Zhang <hongbo.zhang@linaro.org>
10172
10173 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10174 __memcpy_falkor for phecda core.
10175 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10176 __memmove_falkor for phecda core.
10177 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10178 __memset_falkor for phecda core.
10179 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10180 for phecda core.
10181 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10182 macro to identify phecda core.
10183
10184 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10185 Andreas Schwab <schwab@suse.de>
10186 Dmitry V. Levin <ldv@altlinux.org>
10187 Florian Weimer <fweimer@redhat.com>
10188
10189 [BZ #23102]
10190 [BZ #21942]
10191 [BZ #18018]
10192 [BZ #23259]
10193 CVE-2011-0536
10194 * elf/dl-dst.h: Remove DL_DST_COUNT.
10195 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10196 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10197 (is_dst): Comment. Support ELF gABI.
10198 (_dl_dst_count): Comment. Simplify and count DSTs.
10199 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10200 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10201 locals.
10202
10203 2018-06-12 Zack Weinberg <zackw@panix.com>
10204
10205 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10206 * sysdeps/unix/sysv/linux/dl-sysdep.c
10207 Include not-cancel.h. Use __close_nocancel instead of __close,
10208 __open64_nocancel instead of __open, __read_nocancel instead of
10209 __libc_read, and __write_nocancel instead of __libc_write.
10210
10211 * csu/check_fds.c (check_one_fd)
10212 * sysdeps/posix/fdopendir.c (__fdopendir)
10213 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10214 instead of __fcntl and/or __libc_fcntl.
10215
10216 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10217 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10218 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10219 Use __open64_nocancel instead of __open_nocancel.
10220
10221 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10222 hidden_proto declarations to the end and issue them if either
10223 IS_IN(libc) or IS_IN(rtld).
10224 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10225 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10226 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10227 read_nocancel, waitpid_nocancel, write_nocancel.
10228
10229 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10230 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10231 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10232
10233 * nptl/pt-fcntl.c: New file.
10234 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10235 (libpthread-routines): Add pt-fcntl.
10236 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10237 (__libc_fcntl): Remove attribute_hidden.
10238 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10239 __fcntl_nocancel_adjusted, not fcntl_common.
10240 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10241 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10242 to fcntl_nocancel.c.
10243 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10246 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10247
10248 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10249 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10250 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10251 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10252 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10253 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10254 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10255 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10256 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10257 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10258 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10259 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10260 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10261 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10262 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10263 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10264 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10265 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10266 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10267 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10268
10269 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10270 libpthread-routines.
10271 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10272 defines nothing.
10273
10274 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10275 __libc_read, and __write instead of __libc_write. Define
10276 __open64 in addition to __open.
10277
10278 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10279
10280 [BZ #23250]
10281 [BZ #10686]
10282 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10283 to _private_tm[3] and add __glibc_reserved2.
10284 Add _Static_assert of offset of __private_ss == 0x30.
10285 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10286 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10287
10288 2018-06-12 Florian Weimer <fweimer@redhat.com>
10289
10290 x86: Make strncmp usable from rtld.
10291 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10292 __strncmp_ia32 if in libc (and not in rtld).
10293 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10294 strncmp if not in libc (and not to __strncmp_sse2).
10295
10296 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10297
10298 [BZ #23140]
10299 * localedata/locales/gd_GB (mon): Rename to...
10300 (alt_mon): This.
10301 (mon): Import from CLDR (genitive case).
10302 * localedata/locales/hsb_DE (mon): Rename to...
10303 (alt_mon): This.
10304 (mon): Import from CLDR (genitive case).
10305 * localedata/locales/wa_BE (mon): Rename to...
10306 (alt_mon): This.
10307 (mon): Add, fill with the proper genitive forms, but CLDR data
10308 is incomplete; completed according to the comments in this file.
10309 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10310
10311 * localedata/locales/wa_BE (country_name): Reword
10312 "Beljike" -> "Beldjike".
10313
10314 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10315
10316 [BZ #23272]
10317 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10318 cases of non-finite arguments.
10319 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10320
10321 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10322
10323 [BZ #23174]
10324 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10325
10326 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10327
10328 [BZ #23264]
10329 * include/unistd.h (__execvpex): New prototype.
10330 * posix/Makefile (tests): Add tst-spawn4.
10331 (tests-internal): Add tst-spawn4-compat.
10332 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10333 * posix/tst-spawn4-compat.c: New file.
10334 * posix/tst-spawn4.c: Likewise.
10335 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10336 binaries as shell scripts.
10337 * sysdeps/posix/spawni.c (__spawni): Likewise.
10338
10339 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10340
10341 [BZ #23145]
10342 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10343 ($(all-built-dso:=.dynsym): New target.
10344 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10345 ($(objpfx)check-initfini.out): New target.
10346 (generated): Add check-initfini.out.
10347 * scripts/check-initfini.awk: New file.
10348 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10349 (_fini): Likewise.
10350 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10351 (_fini): Likewise.
10352 * sysdeps/arm/crti.S (_init): Mark as hidden.
10353 (_fini): Likewise.
10354 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10355 (_fini): Likewise.
10356 * sysdeps/i386/crti.S (_init): Mark as hidden.
10357 (_fini): Likewise.
10358 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10359 (_fini): Likewise.
10360 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10361 (_fini): Likewise.
10362 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10363 (_fini): Likewise.
10364 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10365 (_fini): Likewise.
10366 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10367 (_fini): Likewise.
10368 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10369 (_fini): Likewise.
10370 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10371 (_fini): Likewise.
10372 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10373 (_fini): Likewise.
10374 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10375 (_fini): Likewise.
10376 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10377 (_fini): Likewise.
10378 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10379 (_fini): Likewise.
10380 * sysdeps/sh/crti.S (_init): Mark as hidden.
10381 (_fini): Likewise.
10382 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10383 (_fini): Likewise.
10384 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10385 (_fini): Likewise.
10386
10387 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10388
10389 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10390 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10391 and TF redirection to KFtype and KF only when the default
10392 long double type is not the IEEE 128-bit floating point type.
10393
10394 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10395
10396 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10397 macro.
10398 (HWCAP_USCAT): Likewise.
10399 (HWCAP_ILRCPC): Likewise.
10400 (HWCAP_FLAGM): Likewise.
10401 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10402 Increase to 28.
10403 (_dl_aarch64_cap_flags): Add new flag names.
10404
10405 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10406 (MAP_FIXED_NOREPLACE): New macro.
10407 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10408 (MAP_FIXED_NOREPLACE): Likewise.
10409 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10410 (MAP_FIXED_NOREPLACE): Likewise.
10411 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10412 (MAP_FIXED_NOREPLACE): Likewise.
10413 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10414 (MAP_FIXED_NOREPLACE): Likewise.
10415 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10416 (MAP_FIXED_NOREPLACE): Likewise.
10417 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10418 (MAP_FIXED_NOREPLACE): Likewise.
10419 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10420 (MAP_FIXED_NOREPLACE): Likewise.
10421 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10422 (MAP_FIXED_NOREPLACE): Likewise.
10423 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10424 (MAP_FIXED_NOREPLACE): Likewise.
10425 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10426 (MAP_FIXED_NOREPLACE): Likewise.
10427 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10428 (MAP_FIXED_NOREPLACE): Likewise.
10429 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10430 (MAP_FIXED_NOREPLACE): Likewise.
10431 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10432 (MAP_FIXED_NOREPLACE): Likewise.
10433 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10434 (MAP_FIXED_NOREPLACE): Likewise.
10435
10436 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10437 version to 4.17.
10438
10439 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10440
10441 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10442 version to 4.17
10443
10444 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10445
10446 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10447 int.
10448 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10449
10450 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10451
10452 * benchtests/scripts/compare_string.py: (process_results) Catch
10453 exception in non-existent base_func and catch exception in
10454 non-existent attribute.
10455 (parse_file) Catch exception if input file does not exist.
10456
10457 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10458
10459 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10460 options to avoid diff calculation and omit header, respectively.
10461 (main): process --no-diff and --no-header
10462
10463 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10464 H.J. Lu <hongjiu.lu@intel.com>
10465
10466 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10467 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10468 wcsncmp-sse2.
10469 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10470 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10471 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10472 and __wcsncmp_sse2.
10473 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10474 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10475 AVX unaligned load is fast and vzeroupper is preferred.
10476 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10477 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10478 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10479 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10480 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10481 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10482 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10483 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10484 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10485 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10486 is undefined.
10487
10488 2018-06-01 Florian Weimer <fweimer@redhat.com>
10489
10490 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10491 configuring with --disable-multi-arch, building with
10492 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10493 Haswell-era CPU.
10494
10495 2018-06-01 Florian Weimer <fweimer@redhat.com>
10496
10497 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10498 results from building with “-march=x86-64 -mtune=generic
10499 -mfpmath=sse” and running on a Haswell-era CPU.
10500
10501 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10502
10503 [BZ #18473]
10504 * soft-fp/sqrttf2.c: Remove file.
10505 * soft-fp/sqrtdf2.c: Move to ....
10506 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10507 <shlib-compat.h>.
10508 (__sqrtdf2): Make conditional on
10509 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10510 symbol.
10511 * soft-fp/sqrtsf2.c: Move to ....
10512 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10513 <shlib-compat.h>.
10514 (__sqrtsf2): Make conditional on
10515 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10516 symbol.
10517 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10518 (gcc-double-routines): Remove sqrtdf2.
10519 (gcc-quad-routines): Remove sqrttf2.
10520 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10521 Do not filter out sqrtsf2 and sqrtdf2.
10522 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10523 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10524
10525 2018-06-01 Florian Weimer <fweimer@redhat.com>
10526
10527 * sysdeps/generic/libcidn.abilist: Remove file.
10528
10529 2018-06-01 Florian Weimer <fweimer@redhat.com>
10530
10531 [BZ #23236]
10532 * libio/strfile.h (struct _IO_str_fields): Rename members to
10533 discourage their use and add comment.
10534 (_IO_STR_DYNAMIC): Remove unused macro.
10535 * libio/strops.c (_IO_str_init_static_internal): Do not use
10536 callback pointers. Call malloc and free.
10537 (_IO_str_overflow): Do not use callback pointers. Call malloc
10538 and free.
10539 (enlarge_userbuf): Likewise.
10540 (_IO_str_finish): Call free.
10541 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10542 _allocate_buffer_unused.
10543 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10544 and free.
10545 (enlarge_userbuf): Likewise.
10546 (_IO_wstr_finish): Call free.
10547 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10548 _allocate_buffer_unused, _free_buffer_unused.
10549 * libio/memstream.c (__open_memstream): Likewise.
10550 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10551 * libio/wmemstream.c (open_wmemstream): Likewise.
10552
10553 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10554
10555 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10556 AMD Ryzen 7 1800X.
10557
10558 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10559
10560 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10561 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10562 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10563 New file.
10564 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10565 Likewise.
10566 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10567
10568 2018-05-29 Florian Weimer <fweimer@redhat.com>
10569
10570 * support/Makefile (libsupport-routines): Add
10571 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10572 xpthread_barrierattr_setpshared.
10573 * support/xpthread_barrierattr_destroy.c: New file.
10574 * support/xpthread_barrierattr_init.c: Likewise.
10575 * support/xpthread_barrierattr_setpshared.c: Likewise.
10576
10577 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10578
10579 [BZ #23206]
10580 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10581 _r_debug and update DT_DEBUG for debugger.
10582
10583 2018-05-29 Florian Weimer <fweimer@redhat.com>
10584
10585 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10586 (tst-strtod5i.out): Likewise.
10587
10588 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10589
10590 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10591 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10592 (sparc64-quad-routines): New variable. Moved from ....
10593 [$(subdir) = soft-fp] (sysdep_routines): Add
10594 $(sparc64-quad-routines). Moved from ....
10595 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10596 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10597 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10598 moved from ....
10599 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10600 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10601 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10602 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10603 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10604 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10605 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10606 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10607 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10608 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10609 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10610 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10611 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10612 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10613 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10614 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10615 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10616 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10617 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10618 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10619 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10620 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10621 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10622 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10623 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10624 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10625 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10626 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10627 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10628 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10629 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10630 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10631 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10632 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10633 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10634 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10635 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10636 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10637 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10638 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10639 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10640 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10641 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10642 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10643 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10644 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10645 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10646 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10647 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10648 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10649 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10650 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10651 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10652 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10653 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10654 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10655 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10656 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10657
10658 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10659 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10660 (sparc32-quad-routines): New variable. Moved from ....
10661 [$(subdir) = soft-fp] (sysdep_routines): Add
10662 $(sparc32-quad-routines). Moved from ....
10663 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10664 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10665 moved from ....
10666 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10667 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10668 * sysdeps/sparc/sparc32/q_add.c: ... here.
10669 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10670 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10671 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10672 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10673 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10674 * sysdeps/sparc/sparc32/q_div.c: ... here.
10675 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10676 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10677 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10678 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10679 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10680 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10681 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10682 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10683 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10684 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10685 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10686 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10687 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10688 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10689 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10690 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10691 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10692 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10693 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10694 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10695 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10696 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10697 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10698 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10699 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10700 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10701 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10702 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10703 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10704 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10705 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10706 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10707 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10708 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10709 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10710 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10711 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10712 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10713 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10714 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10715 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10716 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10717 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10718 * sysdeps/sparc/sparc32/q_util.c: ... here.
10719 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10720 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10721 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10722 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10723
10724 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10725 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10726
10727 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10728 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10729 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10730 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10731
10732 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10733
10734 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10735 powerpc/soft-fp.
10736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10737 Likewise.
10738 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10739 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10740
10741 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10742
10743 [BZ #23171]
10744 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10745 double version.
10746
10747 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10748
10749 * sysdeps/sh/Implies: Remove sh/soft-fp.
10750 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10751 * sysdeps/sh/sfp-machine.h: ... here.
10752
10753 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10754
10755 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10756 (__mempcpy_erms): Skip zero length.
10757 (__memmove_erms): Likewise.
10758 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10759 (__memset_erms): Likewise.
10760
10761 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10762
10763 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10764 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10765 Add functions moved from ....
10766 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10767 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10768 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10769 from ....
10770 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10771 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10772 * sysdeps/alpha/e_sqrtl.c: ... here.
10773 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10774 * sysdeps/alpha/local-soft-fp.h: ... here.
10775 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10776 * sysdeps/alpha/ots_add.c: ... here.
10777 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10778 * sysdeps/alpha/ots_cmp.c: ... here.
10779 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10780 * sysdeps/alpha/ots_cmpe.c: ... here.
10781 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10782 * sysdeps/alpha/ots_cvtqux.c: ... here.
10783 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10784 * sysdeps/alpha/ots_cvtqx.c: ... here.
10785 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10786 * sysdeps/alpha/ots_cvttx.c: ... here.
10787 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10788 * sysdeps/alpha/ots_cvtxq.c: ... here.
10789 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10790 * sysdeps/alpha/ots_cvtxt.c: ... here.
10791 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10792 * sysdeps/alpha/ots_div.c: ... here.
10793 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10794 * sysdeps/alpha/ots_mul.c: ... here.
10795 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10796 * sysdeps/alpha/ots_nintxq.c: ... here.
10797 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10798 * sysdeps/alpha/ots_sub.c: ... here.
10799 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10800 * sysdeps/alpha/sfp-machine.h: ... here.
10801
10802 2018-05-23 Florian Weimer <fweimer@redhat.com>
10803
10804 [BZ #19728]
10805 [BZ #19729]
10806 [BZ #22247]
10807 CVE-2016-6261
10808 CVE-2016-6263
10809 CVE-2017-14062
10810 Switch to extern IDNA implementation (libidn2).
10811 * libidn: Remove subdirectory.
10812 * LICENSES: Do not mention licensing conditions for the removed
10813 libidn code.
10814 * config.h.in (HAVE_LIBIDN): Remove.
10815 * include/dlfcn.h (__libc_dlopen): Update comment.
10816 * include/idna.h: Remove file.
10817 * inet/Makefile (routines): Add idna.
10818 (tests-static, tests-internal): Add tst-idna_name_classify.
10819 (LOCALES): Generate locales for tests.
10820 (tst-idna_name_classify.out): Depend on generated locales.
10821 * inet/idna_name_classify.c: New file.
10822 * inet/tst-idna_name_classify.c: Likewise.
10823 * inet/net-internal.h (__idna_to_dns_encoding)
10824 (__idna_from_dns_encoding): Declare.
10825 * inet/net-internal.h (enum idna_name_classification): Define.
10826 (__idna_name_classify): Declare.
10827 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10828 __idna_from_dns_encoding.
10829 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10830 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10831 name as a fallback in case of encoding errors.
10832 (getnameinfo): Use DEPRECATED_NI_IDN.
10833 * inet/idna.c: New file.
10834 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10835 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10836 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10837 (modules-names): Add tst-no-libidn2.
10838 (extra-test-objs): Add tst-no-libidn2.os.
10839 (LDFLAGS-tst-no-libidn2.so): Set soname.
10840 (LOCALES): Set, and generate locales.
10841 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10842 (tst-resolv-ai_idn-latin1): Likewise.
10843 (tst-resolv-ai_idn-nolibidn2): Likewise.
10844 (tst-resolv-ai_idn.out): Depend on locales.
10845 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10846 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10847 tst-no-libidn2.so.
10848 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10849 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10850 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10851 * resolv/tst-resolv-ai_idn.c: New file.
10852 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10853 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10854 * resolv/tst-no-libidn2.c: Likewise.
10855 * support/support_format_addrinfo.c (format_ai_flags): Do not
10856 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10857 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10858 (gaih_inet): Call __idna_to_dns_encoding and
10859 __idna_from_dns_encoding, and use the original (punycode) name if
10860 __idna_from_dns_encoding fails due to an encoding error.
10861 (getaddrinfo): Use DEPRECATED_AI_IDN.
10862 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10863 * sysdeps/unix/inet/configure: Remove file.
10864 * sysdeps/unix/inet/configure.ac: Likewise.
10865
10866 2018-05-23 Florian Weimer <fweimer@redhat.com>
10867
10868 Implement allocate_once.
10869 * include/allocate_once.h: New file.
10870 * misc/allocate_once.c: Likewise.
10871 * misc/tst-allocate_once.c: Likewise.
10872 * misc/Makefile (routines): Add allocate_once.
10873 (tests-internal): Add tst-allocate_once.
10874 (generated): Add tst-allocate_once.mtrace,
10875 tst-allocate_once-mem.out.
10876 (tests-special): Add tst-allocate_once-mem.out.
10877 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10878 (tst-allocate_once-mem.out): Call mtrace.
10879 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10880
10881 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10882
10883 [BZ #23196]
10884 * string/test-memcpy.c (do_test1): New function.
10885 (test_main): Call it.
10886
10887 2018-05-23 Andreas Schwab <schwab@suse.de>
10888
10889 [BZ #23196]
10890 CVE-2018-11237
10891 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10892 (L(preloop_large)): Save initial destination pointer in %r11 and
10893 use it instead of %rax after the loop.
10894 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10895
10896 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10897
10898 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10899 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10900 -I../soft-fp. Moved from ....
10901 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10902 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10903 * sysdeps/aarch64/e_sqrtl.c: ... here.
10904 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10905 * sysdeps/aarch64/sfp-machine.h: ... here.
10906
10907 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10908 -Wmaybe-uninitialized around access to fq[0].
10909 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10910 Likewise.
10911
10912 [BZ #18471]
10913 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10914 aliases for non-libc case of versioned symbols.
10915 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10916 (llseek): Define as compat symbol if
10917 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10918 with link warning.
10919 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10920 Make into a compat symbol, disabled for minimum symbol version
10921 GLIBC_2.28 and later.
10922 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10923
10924 2018-05-22 Florian Weimer <fweimer@redhat.com>
10925
10926 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10927 not add -mpreferred-stack-boundary=4.
10928 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10929 (stack-align-test-flags): Likewise.
10930 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10931 Likewise.
10932 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10933 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10934 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10935 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10936 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10937 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10938 (CFLAGS-tst-align2.c): Likewise.
10939
10940 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10941
10942 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10943 (index_arch_Prefer_FSRM): Likewise.
10944 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10945 Also check Prefer_FSRM.
10946 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10947 Also return OPTIMIZE (erms) for Prefer_FSRM.
10948
10949 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10950
10951 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10952 (index_cpu_FSRM): Likewise.
10953 (reg_FSRM): Likewise.
10954
10955 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10956
10957 * math/gen-tgmath-tests.py: Import sys.
10958 (Tests.__init__): Initialize macros_seen.
10959 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10960 if requested to do so for this macro.
10961 (Tests.add_all_tests): Take argument for macro for which to
10962 generate tests.
10963 (Tests.check_macro_list): New function.
10964 (main): Handle check-list argument and argument specifying macro
10965 for which to generate tests.
10966 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10967 [PYTHON] (tgmath3-macro-tests): Likewise.
10968 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10969 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10970 not test-tgmath3.c.
10971 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10972 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10973 to CFLAGS.
10974 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10975 [PYTHON] ($(foreach
10976 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10977 rule.
10978 [PYTHON] (tests-special): Add
10979 $(objpfx)test-tgmath3-macro-list.out.
10980 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10981
10982 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10983 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10984 later.
10985
10986 [BZ #22639]
10987 * time/tzset.c (SECSPERDAY): Cast to time_t.
10988 * time/tst-y2039.c: New file.
10989 * time/Makefile (tests): Add tst-y2039.
10990
10991 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10992
10993 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10994 (PREFETCH_ONE_SET): Remove duplicate line.
10995
10996 2018-05-17 Florian Weimer <fweimer@redhat.com>
10997
10998 * sysdeps/generic/math-type-macros-double.h: Include
10999 <math-nan-payload-double.h> after <libm-alias-double.h>.
11000 * sysdeps/generic/math-type-macros-float.h: Include
11001 <math-nan-payload-float.h> after <libm-alias-float.h>.
11002 * sysdeps/generic/math-type-macros-float128.h: Include
11003 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11004 * sysdeps/generic/math-type-macros-ldouble.h: Include
11005 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11006
11007 2018-05-17 Andreas Schwab <schwab@suse.de>
11008
11009 * resolv/res_send.c (__res_context_send): Don't set errno when
11010 returing error after malloc failure.
11011
11012 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11013
11014 * nptl/allocatestack.c (allocate_stack): Remove the
11015 !__ASSUME_PRIVATE_FUTEX paths.
11016 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11017 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11018 Likewise.
11019 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11020 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11021 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11022 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11023 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11024 !__ASSUME_PRIVATE_FUTEX path.
11025 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11026 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11027 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11028 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11029 !__ASSUME_PRIVATE_FUTEX macros.
11030 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11031 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11032 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11033 * sysdeps/unix/sysv/linux/kernel-features.h
11034 (__ASSUME_PRIVATE_FUTEX): Removed.
11035
11036 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11037
11038 * math/Makefile (libm-narrow-fns): Add div.
11039 (libm-test-funcs-narrow): Likewise.
11040 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11041 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11042 * math/gen-auto-libm-tests.c (test_functions): Add div.
11043 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11044 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11045 (NARROW_DIV_TRIVIAL): Likewise.
11046 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11047 macro.
11048 (__ddivl): Likewise.
11049 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11050 ddiv.
11051 (CFLAGS-nldbl-ddiv.c): New variable.
11052 (CFLAGS-nldbl-fdiv.c): Likewise.
11053 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11054 __nldbl_ddivl.
11055 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11056 prototype.
11057 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11058 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11059 * math/auto-libm-test-in: Add tests of div.
11060 * math/auto-libm-test-out-narrow-div: New generated file.
11061 * math/libm-test-narrow-div.inc: New file.
11062 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11063 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11064 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11065 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11066 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11067 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11068 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11069 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11070 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11071 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11072 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11073 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11074 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11075 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11076 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11077 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11078 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11079 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11080 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11081 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11091 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11092 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11093 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11094 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11095 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11102 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11103 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11104 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11105 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11106
11107 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11108
11109 [BZ #23178]
11110 * nscd/nscd-client.h (sendfileall): Remove prototype.
11111 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11112 (handle_request): Use writeall instead of sendfileall.
11113 * nscd/aicache.c (addhstaiX): Likewise.
11114 * nscd/grpcache.c (cache_addgr): Likewise.
11115 * nscd/hstcache.c (cache_addhst): Likewise.
11116 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11117 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11118 * nscd/pwdcache.c (cache_addpw): Likewise.
11119 * nscd/servicescache.c (cache_addserv): Likewise.
11120 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11121 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11122 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11123 Remove define.
11124
11125 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11126
11127 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11128 Include <string/strncat.c>.
11129 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11130 alias.
11131 (__GI___strncat): New hidden alias.
11132
11133 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11134
11135 * sysdeps/mips/mips32/libm-test-ulps: Update.
11136 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11137
11138 2018-05-16 Florian Weimer <fweimer@redhat.com>
11139
11140 * support/Makefile (libsupport-routines): Add support_quote_blob,
11141 support_test_compare_blob.
11142 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11143 * support/check.h (TEST_COMPARE_BLOB): Define.
11144 (support_test_compare_blob): Declare.
11145 * support/support.h (support_quote_blob): Declare.
11146 * support/support_quote_blob.c: New file.
11147 * support/support_test_compare_blob.c: Likewise.
11148 * support/tst-support_quote_blob.c: Likewise.
11149 * support/tst-test_compare_blob.c: Likewise.
11150
11151 2018-05-16 Florian Weimer <fweimer@redhat.com>
11152
11153 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11154 of <strtod_nan_double.h>.
11155 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11156 instead of SET_MANTISSA.
11157 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11158 of include <strtod_nan_float.h>.
11159 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11160 instead of <strtod_nan_ldouble.h>.
11161 * stdlib/strtod_nan_double.h: Move to ...
11162 * sysdeps/generic/math-nan-payload-double.h: ... here.
11163 (FLOAT): Remove definition.
11164 (SET_MANTISSA): Rename to ...
11165 (SET_NAN_PAYLOAD): ... this.
11166 * stdlib/strtod_nan_float.h: Move to ...
11167 * sysdeps/generic/math-nan-payload-float.h: ... here.
11168 (FLOAT): Remove definition.
11169 (SET_MANTISSA): Rename to ...
11170 (SET_NAN_PAYLOAD): ... this.
11171 * sysdeps/generic/math-type-macros-double.h: Include
11172 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11173 instead of <math-svid-compat.h>.
11174 * sysdeps/generic/math-type-macros-float.h: Include
11175 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11176 instead of <math-svid-compat.h>.
11177 * sysdeps/generic/math-type-macros-float128.h: Include
11178 <math-nan-payload-float128.h>.
11179 * sysdeps/generic/math-type-macros-ldouble.h: Include
11180 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11181 instead of <math-svid-compat.h>.
11182 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11183 check for definition.
11184 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11185 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11186 Include <ieee754_float128.h>.
11187 (FLOAT): Remove definition.
11188 (SET_MANTISSA): Rename to ...
11189 (SET_NAN_PAYLOAD): ... this.
11190 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11191 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11192 Do not include <float128_private.h>.
11193 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11194 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11195 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11196 (FLOAT): Remove definition.
11197 (SET_MANTISSA): Rename to ...
11198 (SET_NAN_PAYLOAD): ... this.
11199 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11200 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11201 (FLOAT): Remove definition.
11202 (SET_MANTISSA): Rename to ...
11203 (SET_NAN_PAYLOAD): ... this.
11204 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11205 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11206 (FLOAT): Remove definition.
11207 (SET_MANTISSA): Rename to ...
11208 (SET_NAN_PAYLOAD): ... this.
11209 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11210 of "../stdlib/strtod_nan_double.h".
11211 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11212 of "../stdlib/strtod_nan_float.h".
11213 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11214 instead of "../stdlib/strtod_nan_ldouble.h".
11215 * manual/arith.texi (Parsing of Floats): Adjust comment.
11216
11217 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11218
11219 * math/Makefile (libm-narrow-fns): Add mul.
11220 (libm-test-funcs-narrow): Likewise.
11221 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11222 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11223 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11224 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11225 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11226 (NARROW_MUL_TRIVIAL): Likewise.
11227 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11228 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11229 macro.
11230 (__dmull): Likewise.
11231 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11232 dmul.
11233 (CFLAGS-nldbl-dmul.c): New variable.
11234 (CFLAGS-nldbl-fmul.c): Likewise.
11235 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11236 __nldbl_dmull.
11237 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11238 prototype.
11239 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11240 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11241 * math/auto-libm-test-in: Add tests of mul.
11242 * math/auto-libm-test-out-narrow-mul: New generated file.
11243 * math/libm-test-narrow-mul.inc: New file.
11244 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11245 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11246 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11247 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11248 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11249 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11250 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11251 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11252 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11253 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11254 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11255 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11256 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11257 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11258 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11259 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11260 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11261 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11262 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11263 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11264 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11265 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11266 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11267 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11268 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11269 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11270 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11271 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11272 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11273 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11274 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11275 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11278 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11279 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11280 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11281 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11282 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11283 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11284 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11285 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11286 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11287 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11288
11289 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11290
11291 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11292 with *%eax in call.
11293
11294 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11295
11296 * sysdeps/i386/ldsodefs.h: Removed.
11297 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11298 * sysdeps/x86/ldsodefs.h: This.
11299 (La_i86_regs): New.
11300 (La_i86_retval): Likewise.
11301 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11302 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11303
11304 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11305
11306 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11307 unnecessary testl.
11308
11309 2018-05-13 Alan Modra <amodra@gmail.com>
11310
11311 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11312 R_PARISC_TLS_DTPOFF32 reloc addend.
11313
11314 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11315
11316 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11317 * math/math.h: Restrict the prototype definition for the functions
11318 issignaling(_Float128) and iszero(_Float128); and template
11319 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11320 __HAVE_FLOAT128_UNLIKE_LDBL.
11321 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11322 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11323 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11324 __f128() constants; define the type _Float128 as long double;
11325 and reuse long double in __CFLOAT128.
11326
11327 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11328
11329 * sysdeps/generic/math_private.h: Do not include
11330 <math-barriers.h>.
11331 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11332 <math_private.h>.
11333 * math/fromfp.h: Include <math-barriers.h>.
11334 * math/math-narrow.h: Likewise.
11335 * math/s_nextafter.c: Likewise.
11336 * math/s_nexttowardf.c: Likewise.
11337 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11338 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11339 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11340 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11341 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11342 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11343 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11344 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11345 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11346 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11347 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11348 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11349 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11350 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11351 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11352 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11353 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11354 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11355 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11356 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11357 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11358 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11359 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11360 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11361 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11362 * sysdeps/ieee754/k_standardl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11367 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11368 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11369 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11370 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11371 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11372 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11373 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11374 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11375 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11376 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11377 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11378 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11379 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11380 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11381 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11382 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11383 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11384 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11385
11386 2018-05-11 Florian Weimer <fweimer@redhat.com>
11387
11388 Use 64-bit epoch values in the time zone file parser.
11389 * include/time.h (internal_time_t): Define.
11390 (__tzfile_compute): Use it.
11391 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11392 member.
11393 (transitions): Switch to internal_time_t.
11394 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11395 types.
11396 (__tzfile_compute): Use internal_time_t for timer argument. Check
11397 for truncation before calling __offtime.
11398
11399 2018-05-11 Florian Weimer <fweimer@redhat.com>
11400
11401 [BZ #23166]
11402 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11403 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11404 Likewise.
11405 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11406 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11407 export without --enable-obsolete-rpc.
11408 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11409 symbol. This should not have been exported, ever.
11410
11411 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11412
11413 [BZ #23152]
11414 * localedata/locales/gd_GB (abmon): Fix typo in May:
11415 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11416
11417 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11418
11419 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11420 Use multiple registers to copy data in loop tail.
11421
11422 * sysdeps/aarch64/multiarch/memmove_falkor.S
11423 (__memmove_falkor): Use multiple registers to move data in
11424 loop tail.
11425
11426 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11427
11428 * math/math-underflow.h: New file.
11429 * sysdeps/generic/math_private.h: Do not include <float.h>.
11430 (fabs_tg): Remove macro. Moved to math-underflow.h.
11431 (min_of_type_f): Likewise.
11432 (min_of_type_): Likewise.
11433 (min_of_type_l): Likewise.
11434 (min_of_type_f128): Likewise.
11435 (min_of_type): Likewise.
11436 (math_check_force_underflow): Likewise.
11437 (math_check_force_underflow_nonneg): Likewise.
11438 (math_check_force_underflow_complex): Likewise.
11439 * math/e_exp2_template.c: Include <math-underflow.h>.
11440 * math/k_casinh_template.c: Likewise.
11441 * math/s_catan_template.c: Likewise.
11442 * math/s_catanh_template.c: Likewise.
11443 * math/s_ccosh_template.c: Likewise.
11444 * math/s_cexp_template.c: Likewise.
11445 * math/s_clog10_template.c: Likewise.
11446 * math/s_clog_template.c: Likewise.
11447 * math/s_csin_template.c: Likewise.
11448 * math/s_csinh_template.c: Likewise.
11449 * math/s_csqrt_template.c: Likewise.
11450 * math/s_ctan_template.c: Likewise.
11451 * math/s_ctanh_template.c: Likewise.
11452 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11453 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11454 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11455 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11456 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11457 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11458 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11459 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11460 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11461 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11462 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11463 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11464 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11465 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11466 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11467 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11468 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11469 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11470 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11471 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11472 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11473 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11474 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11475 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11476 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11477 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11478 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11479 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11480 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11481 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11482 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11483 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11488 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11490 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11491 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11493 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11495 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11497 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11498 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11499 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11500 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11501 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11504 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11505 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11506 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11507 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11508 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11509 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11510 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11511 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11512 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11513 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11514 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11515 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11516 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11517 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11518 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11519 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11520 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11521 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11522 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11523 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11524 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11525 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11526 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11527 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11528 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11529 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11530 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11531 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11532 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11533 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11534 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11535 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11536
11537 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11538
11539 * sysdeps/generic/math-barriers.h: New file.
11540 * sysdeps/generic/math_private.h [!math_opt_barrier]
11541 (math_opt_barrier): Move to math-barriers.h.
11542 [!math_opt_barrier] (math_force_eval): Likewise.
11543 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11544 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11545 math-barriers.h.
11546 (math_force_eval): Likewise.
11547 * sysdeps/alpha/fpu/math-barriers.h: New file.
11548 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11549 math-barriers.h.
11550 (math_force_eval): Likewise.
11551 * sysdeps/x86/fpu/math-barriers.h: New file.
11552 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11553 math-barriers.h.
11554 (math_force_eval): Likewise.
11555 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11556 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11557 multiple-include guard for rename.
11558 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11559 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11560 math-barriers.h.
11561 (math_force_eval): Likewise.
11562
11563 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11564
11565 [BZ #22786]
11566 CVE-2018-11236
11567 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11568 computation.
11569 * stdlib/Makefile (test-bz22786): New test.
11570 * stdlib/test-bz22786.c: New test.
11571
11572 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11573
11574 * include/math-narrow-eval.h: New file. Contents moved from ....
11575 * sysdeps/generic/math_private.h: ... here.
11576 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11577 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11578 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11579 * stdlib/strtod_l.c: Likewise.
11580 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11581 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11582 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11583 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11584 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11585 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11586 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11587 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11588 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11589 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11590 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11591 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11592 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11593 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11594 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11595 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11596 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11597 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11598 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11599 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11600 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11601 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11602 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11603 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11604 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11605 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11606 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11607 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11608 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11609
11610 2018-05-08 Andreas Schwab <schwab@suse.de>
11611
11612 * sysdeps/nptl/internaltypes.h: Fix comment.
11613
11614 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11615
11616 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11617 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11618 hidden.
11619
11620 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11621
11622 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11623 of I into loop header.
11624 * benchtests/bench-memmove-walk.c
11625 (test_main): Likewise.
11626
11627 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11628
11629 Revert:
11630 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11631 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11632
11633 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11634
11635 [BZ #20419]
11636 * elf/dl-load.c (open_verify): Fix stack overflow.
11637 * elf/Makefile (tst-big-note): New test.
11638 * elf/tst-big-note-lib.S: New.
11639 * elf/tst-big-note.c: New.
11640
11641 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11642
11643 * scripts/abilist.awk: Ignore absolute symbols.
11644 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11645 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11646 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11647 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11648 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11649 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11650 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11651 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11652 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11653 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11654 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11655 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11736 Likewise.
11737 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11750 Likewise.
11751 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11778 Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11799 Likewise.
11800 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11832 Likewise.
11833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11838 Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11840 Likewise.
11841 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11843 Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11846 Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11848 Likewise.
11849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11852 Likewise.
11853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11854 Likewise.
11855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11856 Likewise.
11857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11861 Likewise.
11862 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11868 Likewise.
11869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11871 Likewise.
11872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11873 Likewise.
11874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11875 Likewise.
11876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11877 Likewise.
11878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11881 Likewise.
11882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11883 Likewise.
11884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11885 Likewise.
11886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11889 Likewise.
11890 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11904 Likewise.
11905 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11917 Likewise.
11918 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11943 Likewise.
11944 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11957 Likewise.
11958 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11990 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11991 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11992 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11993 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11994 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11995 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11996
11997 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11998
11999 [BZ #23137]
12000 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12001 Use atomic_load_acquire to load __tid.
12002
12003 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12004
12005 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12006 Restore the pointer into %rdx, after syscall and use %rdx,
12007 instead of %rsi, to restore context.
12008
12009 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12010
12011 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12012 Pop the pointer into %rdx after syscall and use %rdx, instead
12013 of %rsi, to restore context.
12014
12015 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12016
12017 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12018 handlers after setjmp.
12019 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12020 defined.
12021 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12022 <libc-pointer-arith.h>.
12023 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12024 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12025 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12026 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12027 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12028 * sysdeps/x86/__longjmp_cancel.S: New file.
12029 * sysdeps/x86/longjmp.c: Likewise.
12030 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12031
12032 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12033
12034 * NEWS: Add ustat.h deprecation entry.
12035 * bits/ustat.h: Remove file.
12036 * misc/sys/ustat.h: Likewise.
12037 * misc/ustat.h: Likewise.
12038 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12039 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12040 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12041 compatibility mode.
12042 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12043 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12044 generic Linux implementation.
12045
12046 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12047
12048 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12049 * math/w_expl_compat.c: Likewise.
12050 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12051
12052 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12053
12054 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12055
12056 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12057
12058 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12059 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12060 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12061 Remove.
12062 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12064 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12065 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12066 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12067 and SYSCALL_LL64.
12068
12069 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12070
12071 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12072
12073 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12074 * math/w_asin_template.c: Likewise.
12075 * math/w_atanh_template.c: Likewise.
12076
12077 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12078
12079 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12080 to powerpc/powerpc64/be for big-endian.
12081 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12082 little-endian.
12083
12084 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12085 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12112 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12116
12117 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12118 adjusted to imply powerpc64 and older processors on powerpc64/be.
12119 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12136 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12138 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12139 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12140 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12141 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12142 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12143 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12144 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12145 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12146 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12147 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12148 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12149 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12150
12151 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12152 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12153 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12154 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12155
12156 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12157 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12158 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12159 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12160
12161 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12162 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12163 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12164 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12165 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12166 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12167 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12168 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12169 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12170 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12171 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12172
12173 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12174 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12175 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12176 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12177 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12178 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12179 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12180 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12182 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12183 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12184
12185 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12186 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12187 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12188 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12189 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12190 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12191 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12192 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12193 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12194 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12195 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12196 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12197
12198 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12199 and adjusted to imply olders processors.
12200 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12201 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12202 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12203 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12204 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12205 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12206 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12207 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12208 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12209 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12210 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12211
12212 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12213 powerpc64/le.
12214 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12215 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12216
12217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12218 powerpc64le.
12219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12221
12222 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12223 powerpc64/be.
12224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12227
12228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12229 powerpc64 and adjusted.
12230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12231 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12233 Likewise.
12234
12235 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12236
12237 * sysdeps/tile: Remove.
12238 * sysdeps/unix/sysv/linux/tile: Likewise.
12239 * README (tilegx-*-linux-gnu): Remove from list of supported
12240 configurations.
12241 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12242 contribution of support for generic Linux kernel syscall
12243 interface.
12244 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12245 tilegx configurations.
12246 (Config.install_linux_headers): Do not handle tile.
12247 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12248 in comment.
12249 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12250 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12251 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12252 conditional undefine and redefine.
12253 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12254 in comment.
12255 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12256 conditional undefine and redefine.
12257
12258 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12259
12260 * signal/tst-sigaction.c: New file to test BZ #23069.
12261 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12262
12263 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12264
12265 [BZ #22766]
12266 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12267 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12268 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12269 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12270
12271 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12272
12273 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12274 _DIRENT_MATCHES_DIRENT64 is not defined.
12275 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12276 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12277 is defined.
12278 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12279 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12280
12281 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12282
12283 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12284 version to GCC 8 branch.
12285
12286 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12287
12288 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12289 (check_no_hidden): Use type of original function when declaring
12290 alias.
12291
12292 * sysdeps/unix/sysv/linux/sys/ptrace.h
12293 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12294 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12295 (struct __ptrace_seccomp_metadata): New type.
12296 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12297 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12298 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12299 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12300 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12301 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12302 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12303 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12304 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12305 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12306 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12307 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12308 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12309 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12310 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12311 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12312
12313 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12314
12315 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12316 defined.
12317 * dirent/versionsort.c (versionsort): Likewise.
12318 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12319 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12320 * dirent/versionsort64.c (versionsort64): Likewise.
12321 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12322 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12323 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12324 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12325 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12326 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12327 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12328 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12329 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12330 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12331 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12333 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12334 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12335
12336 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12337
12338 * elf/elf.h (NT_PPC_PKEY): New macro.
12339
12340 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12341
12342 [BZ #23094]
12343 * localedata/locales/hr_HR: fix thousands_sep and
12344 mon_thousands_sep
12345
12346 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12347
12348 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12349 (XTABS): Define to TAB3.
12350
12351 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12352
12353 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12354
12355 * dirent/scandir-tail-common.c: New file.
12356 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12357 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12358 * dirent/scandir.c: Use scandir-tail-common.c.
12359 * dirent/scandirat.c: Likewise.
12360 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12361 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12362 if _DIRENT_MATCHES_DIRENT64 is defined.
12363 * dirent/scandirat64.c (scandirat64): Likewise.
12364 * include/dirent.h (__scandir_tail): Only define iff
12365 _DIRENT_MATCHES_DIRENT64 is not defined.
12366 (__scandir64_tail): Define regardless.
12367 (__scandirat, scandirat64): Remove libc_hidden_proto.
12368 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12369 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12371 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12372 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12373 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12374 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12375
12376 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12377
12378 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12379 New macro.
12380 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12381 Increase to 24.
12382 (_dl_aarch64_cap_flags): Add asimdfhm.
12383
12384 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12385
12386 * sysdeps/nios2/libm-test-ulps: Update.
12387
12388 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12389
12390 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12391 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12392
12393 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12394 requirements.
12395 (_DIRENT_MATCHES_DIRENT64): Undef
12396 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12397 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12398 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12399 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12400 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12401 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12402 use getdents64 syscalls as base.
12403 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12404 symbol if required.
12405 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12406 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12407 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12408 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12409 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12410 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12411 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12412 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12413 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12414 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12415 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12416
12417 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12418
12419 * scripts/test_printers_common.py (init_test): Disable lock elision.
12420
12421 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12422
12423 * math/test-tgmath.c (count_double, count_float,
12424 count_ldouble, count_cdouble, count_cfloat,
12425 count_cldouble): Use volatile int.
12426
12427 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12428
12429 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12430 (conformtest-xfail-conds): Add i386-gnu.
12431 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12432 i386-gnu.
12433 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12434 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12435 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12436 msqid_ds.msg_lrpid): Likewise.
12437 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12438 Likewise.
12439 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12440 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12441 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12442 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12443 unsigned int.
12444 (struct statvfs64): Likewise.
12445 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12446 Likewise.
12447 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12448 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12449 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12450 instead of wait_queue.
12451 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12452 instead of vm_area_struct.
12453 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12454 struct sched_param definition to it.
12455 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12456 * bits/types/struct_sched_param.h: New file.
12457 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12458 <bits/types/struct_sched_param.h> instead of <sched.h>.
12459 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12460 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12461 generic version but include <bits/pthreadtypes.h> to make struct
12462 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12463 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12464 non-compliant.
12465 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12466 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12467 [__USE_XOPEN] (OFDEL): New macro.
12468 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12469 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12470 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12471 prototypes.
12472 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12473 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12474 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12475 non-compliant.
12476 * sysdeps/i386/sys/ucontext.h: Likewise.
12477 * sysdeps/m68k/sys/ucontext.h: Likewise.
12478 * sysdeps/mips/sys/ucontext.h: Likewise.
12479 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12480 * sysdeps/mach/hurd/i386/Makefile
12481 (test-xfail-POSIX/fcntl.h/conform): Add.
12482 (test-xfail-POSIX/signal.h/conform): Add.
12483 (test-xfail-POSIX/semaphore.h/conform): Add.
12484 (test-xfail-POSIX/regex.h/conform): Add.
12485 (test-xfail-POSIX/aio.h/conform): Add.
12486 (test-xfail-POSIX/mqueue.h/conform): Add.
12487 (test-xfail-POSIX/sys/types.h/conform): Add.
12488 (test-xfail-UNIX98/fcntl.h/conform): Add.
12489 (test-xfail-UNIX98/netdb.h/conform): Add.
12490 (test-xfail-UNIX98/signal.h/conform): Add.
12491 (test-xfail-UNIX98/semaphore.h/conform): Add.
12492 (test-xfail-UNIX98/regex.h/conform): Add.
12493 (test-xfail-UNIX98/aio.h/conform): Add.
12494 (test-xfail-UNIX98/ftw.h/conform): Add.
12495 (test-xfail-UNIX98/mqueue.h/conform): Add.
12496 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12497 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12498 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12499 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12500 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12501 (test-xfail-UNIX98/sys/types.h/conform): Add.
12502 (test-xfail-UNIX98/stdlib.h/conform): Add.
12503 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12504 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12505 (test-xfail-POSIX2008/netdb.h/conform): Add.
12506 (test-xfail-POSIX2008/signal.h/conform): Add.
12507 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12508 (test-xfail-POSIX2008/regex.h/conform): Add.
12509 (test-xfail-POSIX2008/aio.h/conform): Add.
12510 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12511 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12512 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12513 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12514 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12515 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12516 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12517 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12518 (test-xfail-XOPEN2K/signal.h/conform): Add.
12519 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12520 (test-xfail-XOPEN2K/regex.h/conform): Add.
12521 (test-xfail-XOPEN2K/aio.h/conform): Add.
12522 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12523 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12524 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12525 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12526 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12527 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12528 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12529 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12530 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12531 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12532 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12533 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12534 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12535 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12536 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12537 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12538 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12539 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12540 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12541 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12542 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12543 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12544 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12545 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12546 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12547 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12548 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12549 i386-gnu.
12550 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12551 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12552
12553 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12554
12555 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12556 --enable-obsolete for powerpc-linux-gnuspe.
12557
12558 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12559
12560 * conform/data/sys/un.h-data: Allow sun_ prefix.
12561 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12562 prototypes.
12563 * sysdeps/mach/include/mach.h: Likewise.
12564 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12565 * sysdeps/mach/include/mach_error.h: Likewise.
12566
12567 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12568
12569 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12570 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12571 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12572 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12573
12574 2018-04-16 Andreas Schwab <schwab@suse.de>
12575
12576 [BZ #19527]
12577 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12578
12579 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12580
12581 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12582 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12583
12584 2018-04-12 DJ Delorie <dj@redhat.com>
12585
12586 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12587 version to 4.16.
12588
12589 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12590
12591 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12592 (struct kernel_sigaction): Use the same definition on 31bit as is used
12593 on 64bit.
12594
12595 2018-04-09 Florian Weimer <fweimer@redhat.com>
12596
12597 [BZ #23037]
12598 * resolv/res_send.c (send_dg): Use designated initializers instead
12599 of assignment to zero-initialize other fields of struct mmsghdr.
12600
12601 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12602
12603 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12604 __READDIR_ALIAS): Undefine after usage.
12605 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12606 __READDIR_R_ALIAS): Likewise.
12607 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12608 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12609 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12610 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12611 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12612 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12613 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12614 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12615 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12616 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12617 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12618 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12619 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12620 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12621 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12622 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12623 * sysdeps/unix/sysv/linux/readdir.c: New file.
12624 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12625 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12626 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12627
12628 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12629
12630 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12631
12632 * manual/charset.texi (Converting a Character): Fix typo.
12633
12634 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12635
12636 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12637
12638 * sysdeps/arm/libm-test-ulps: Update.
12639
12640 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12641 as base implementation.
12642 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12643 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12644 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12645 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12646 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12647 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12648 remove unrequired definitions and update comments.
12649 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12650 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12651 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12652 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12653 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12654 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12655 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12656 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12657 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12658 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12659 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12660 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12661 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12662 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12663 and RESET_SA_RESTORER hooks.
12664
12665 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12666
12667 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12668
12669 2018-04-05 Florian Weimer <fweimer@redhat.com>
12670
12671 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12672 integer overflow, memory leak on error, and indeterminate errno
12673 value. Add a null wide character to terminate the result string.
12674 * manual/charset.texi (Converting a Character): Mention embedded
12675 null bytes in the mbrtowc input string. Explain what happens in
12676 the -2 result case. Do not claim that mbrtowc is simple or
12677 obvious to use. Adjust the description of the code example. Use
12678 @code, not @var, for concrete variables.
12679
12680 2018-04-05 Florian Weimer <fweimer@redhat.com>
12681
12682 * manual/examples/mbstouwcs.c: New file.
12683 * manual/charset.texi (Converting a Character): Include it.
12684
12685 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12686
12687 * include/dirent.h (dirfd): Add hidden proto.
12688 * dirent/dirfd.c (dirfd): Add hidden def.
12689 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12690 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12691
12692 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12693
12694 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12695 sin, cos and sincos to 1 ULP.
12696
12697 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12698
12699 [BZ #19818]
12700 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12701 symbols.
12702 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12703 * elf/tst-absolute-sym.c: New file.
12704 * elf/tst-absolute-sym-lib.c: New file.
12705 * elf/tst-absolute-sym-lib.lds: New file.
12706 * elf/Makefile (tests): Add `tst-absolute-sym'.
12707 (modules-names): Add `tst-absolute-sym-lib'.
12708 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12709 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12710 ($(objpfx)tst-absolute-sym): New dependency.
12711
12712 [BZ #19818]
12713 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12714 parameter.
12715 (SYMBOL_ADDRESS): New macro.
12716 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12717 SYMBOL_ADDRESS for symbol address calculation.
12718 * elf/dl-runtime.c (_dl_fixup): Likewise.
12719 (_dl_profile_fixup): Likewise.
12720 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12721 * elf/rtld.c (dl_main): Likewise.
12722 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12723 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12724 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12725 (elf_machine_rela): Likewise.
12726 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12727 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12728 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12729 (elf_machine_rela): Likewise.
12730 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12731 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12732 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12733 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12734 Likewise.
12735 (elf_machine_reloc): Likewise.
12736 (elf_machine_got_rel): Likewise.
12737 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12738 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12739 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12740 Likewise.
12741 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12742 Likewise.
12743 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12744 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12745 Likewise.
12746 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12747 Likewise.
12748 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12749 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12750 Likewise.
12751 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12752 Likewise.
12753 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12754 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12755
12756 2018-04-04 Zack Weinberg <zackw@panix.com>
12757
12758 * sysdeps/generic/internal-signals.h: Include signal.h,
12759 sigsetops.h, and stdbool.h.
12760 (__libc_signal_block_all): Actually block all signals.
12761 (__libc_signal_block_app): Likewise.
12762 (__libc_signal_restore_set): Actually restore the signal mask.
12763
12764 2018-04-04 Florian Weimer <fweimer@redhat.com>
12765
12766 inet: Actually build and run tst-deadline.
12767 * inet/Makefile (tests-internal): Add tst-deadline and do not
12768 overwrite the variable.
12769 (tests-static-internal): Remove variable.
12770
12771 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12772
12773 [BZ #22947]
12774 * bits/uio-ext.h (RWF_APPEND): New.
12775 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12776 * manual/llio.texi: Document RWF_APPEND.
12777 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12778 (RWF_SUPPORTED): Add RWF_APPEND.
12779
12780 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12781
12782 [BZ #22391]
12783 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12784 check for internal nptl signals.
12785 * nptl/sigaction.c (__sigaction): Likewise.
12786 * signal/sigaddset.c (sigaddset): Likewise.
12787 * signal/sigdelset.c (sigdelset): Likewise.
12788 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12789 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12790 value.
12791 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12792 to filter out internal nptl signals.
12793 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12794 also check realtime signals using standard macros.
12795 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12796 __is_internal_signal, __libc_signal_block_all,
12797 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12798 * sysdeps/nptl/sigfillset.c: Remove file.
12799 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12800 Change return to bool.
12801 (__clear_internal_signals): Remove SIGTIMER clean since it is
12802 equal to SIGCANEL on Linux.
12803 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12804 signal set was constructed using standard functions.
12805
12806 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12807
12808 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12809 ifname is too long.
12810 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12811 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12812 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12813 hidden def.
12814 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12815 * signal/sigaddset.c: Include <sigsetopts.h>.
12816 * signal/sigdelset.c: Likewise.
12817
12818 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12819
12820 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12821 (__cos): Likewise.
12822 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12823 logic as sin and cos.
12824
12825 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12826
12827 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12828 inputs. Return correct sign.
12829 (do_sincos): Remove small input check before do_sin, let do_sin set
12830 the sign.
12831 (__sin): Likewise.
12832 (__cos): Likewise.
12833
12834 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12835
12836 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12837 (do_cos_slow): Likewise.
12838 (do_sin_slow): Likewise.
12839 (reduce_and_compute): Likewise.
12840 (slow): Likewise.
12841 (slow1): Likewise.
12842 (slow2): Likewise.
12843 (sloww): Likewise.
12844 (sloww1): Likewise.
12845 (sloww2): Likewise.
12846 (bslow): Likewise.
12847 (bslow1): Likewise.
12848 (bslow2): Likewise.
12849 (cslow2): Likewise.
12850
12851 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12852
12853 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12854 (do_cos): Remove corp parameter and calculations.
12855 (do_sin): Likewise.
12856 (do_sincos): Remove cor variable.
12857 (__sin): Use do_sincos for huge inputs.
12858 (__cos): Likewise.
12859 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12860 (reduce_and_compute_sincos): Remove unused function.
12861
12862 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12863
12864 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12865 reduce_sincos, improve accuracy to 136 bits.
12866 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12867 (__sin): Use improved reduction and simplified do_sincos calculation.
12868 (__cos): Likewise.
12869 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12870
12871 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12872
12873 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12874 (do_sincos_2): Likewise.
12875 (__sin): Remove middle range reduction case.
12876 (__cos): Likewise.
12877 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12878 reduction case.
12879
12880 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12881
12882 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12883 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12884 inputs.
12885 (__cos): Likewise.
12886 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12887
12888 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12889
12890 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12891 version to 4.16
12892
12893 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12894
12895 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12896 Remove definitions.
12897 (opendir_oflags): Use O_DIRECTORY regardless.
12898 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12899 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12900
12901 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12902
12903 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12904 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12905 macros.
12906 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12907 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12908 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12909 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12910 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12911 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12912
12913 * htl/Makefile: Bump licence to LGPL 2.1+.
12914 * htl/alloca_cutoff.c: Likewise.
12915 * htl/cthreads-compat.c: Likewise.
12916 * htl/lockfile.c: Likewise.
12917 * htl/pt-alloc.c: Likewise.
12918 * htl/pt-cancel.c: Likewise.
12919 * htl/pt-cleanup.c: Likewise.
12920 * htl/pt-create.c: Likewise.
12921 * htl/pt-dealloc.c: Likewise.
12922 * htl/pt-detach.c: Likewise.
12923 * htl/pt-exit.c: Likewise.
12924 * htl/pt-getattr.c: Likewise.
12925 * htl/pt-initialize.c: Likewise.
12926 * htl/pt-internal.h: Likewise.
12927 * htl/pt-join.c: Likewise.
12928 * htl/pt-self.c: Likewise.
12929 * htl/pt-setcancelstate.c: Likewise.
12930 * htl/pt-setcanceltype.c: Likewise.
12931 * htl/pt-sigmask.c: Likewise.
12932 * htl/pt-spin-inlines.c: Likewise.
12933 * htl/pt-testcancel.c: Likewise.
12934 * htl/pt-yield.c: Likewise.
12935 * htl/tests/test-1.c: Likewise.
12936 * htl/tests/test-10.c: Likewise.
12937 * htl/tests/test-11.c: Likewise.
12938 * htl/tests/test-12.c: Likewise.
12939 * htl/tests/test-13.c: Likewise.
12940 * htl/tests/test-14.c: Likewise.
12941 * htl/tests/test-15.c: Likewise.
12942 * htl/tests/test-16.c: Likewise.
12943 * htl/tests/test-17.c: Likewise.
12944 * htl/tests/test-2.c: Likewise.
12945 * htl/tests/test-3.c: Likewise.
12946 * htl/tests/test-4.c: Likewise.
12947 * htl/tests/test-5.c: Likewise.
12948 * htl/tests/test-6.c: Likewise.
12949 * htl/tests/test-7.c: Likewise.
12950 * htl/tests/test-8.c: Likewise.
12951 * htl/tests/test-9.c: Likewise.
12952 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12953 * sysdeps/htl/bits/cancelation.h: Likewise.
12954 * sysdeps/htl/bits/pthread-np.h: Likewise.
12955 * sysdeps/htl/bits/pthread.h: Likewise.
12956 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12957 * sysdeps/htl/bits/semaphore.h: Likewise.
12958 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12959 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12960 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12961 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12962 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12963 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12964 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12965 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12966 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12967 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12968 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12969 * sysdeps/htl/old_pt-atfork.c: Likewise.
12970 * sysdeps/htl/pt-atfork.c: Likewise.
12971 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12972 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12973 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12974 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12975 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12976 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12977 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12978 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12979 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12980 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12981 * sysdeps/htl/pt-attr-init.c: Likewise.
12982 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12983 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12984 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12985 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12986 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12987 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12988 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12989 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12990 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12991 * sysdeps/htl/pt-attr.c: Likewise.
12992 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12993 * sysdeps/htl/pt-barrier-init.c: Likewise.
12994 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12995 * sysdeps/htl/pt-barrier.c: Likewise.
12996 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12997 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12998 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12999 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13000 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13001 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13002 * sysdeps/htl/pt-cond-init.c: Likewise.
13003 * sysdeps/htl/pt-cond-signal.c: Likewise.
13004 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13005 * sysdeps/htl/pt-cond-wait.c: Likewise.
13006 * sysdeps/htl/pt-cond.c: Likewise.
13007 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13008 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13009 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13010 * sysdeps/htl/pt-condattr-init.c: Likewise.
13011 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13012 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13013 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13014 * sysdeps/htl/pt-equal.c: Likewise.
13015 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13016 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13017 * sysdeps/htl/pt-getschedparam.c: Likewise.
13018 * sysdeps/htl/pt-getspecific.c: Likewise.
13019 * sysdeps/htl/pt-init-specific.c: Likewise.
13020 * sysdeps/htl/pt-key-create.c: Likewise.
13021 * sysdeps/htl/pt-key-delete.c: Likewise.
13022 * sysdeps/htl/pt-key.h: Likewise.
13023 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13024 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13025 * sysdeps/htl/pt-mutex-init.c: Likewise.
13026 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13027 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13028 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13029 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13030 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13031 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13032 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13033 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13034 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13035 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13036 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13037 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13038 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13039 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13040 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13041 * sysdeps/htl/pt-mutexattr.c: Likewise.
13042 * sysdeps/htl/pt-once.c: Likewise.
13043 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13044 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13045 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13046 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13047 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13048 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13049 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13050 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13051 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13052 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13053 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13054 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13055 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13056 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13057 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13058 * sysdeps/htl/pt-setschedparam.c: Likewise.
13059 * sysdeps/htl/pt-setschedprio.c: Likewise.
13060 * sysdeps/htl/pt-setspecific.c: Likewise.
13061 * sysdeps/htl/pt-spin.c: Likewise.
13062 * sysdeps/htl/pt-startup.c: Likewise.
13063 * sysdeps/htl/pthread.h: Likewise.
13064 * sysdeps/htl/sem-close.c: Likewise.
13065 * sysdeps/htl/sem-destroy.c: Likewise.
13066 * sysdeps/htl/sem-getvalue.c: Likewise.
13067 * sysdeps/htl/sem-init.c: Likewise.
13068 * sysdeps/htl/sem-open.c: Likewise.
13069 * sysdeps/htl/sem-post.c: Likewise.
13070 * sysdeps/htl/sem-timedwait.c: Likewise.
13071 * sysdeps/htl/sem-trywait.c: Likewise.
13072 * sysdeps/htl/sem-unlink.c: Likewise.
13073 * sysdeps/htl/sem-wait.c: Likewise.
13074 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13075 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13076 * sysdeps/mach/htl/pt-block.c: Likewise.
13077 * sysdeps/mach/htl/pt-spin.c: Likewise.
13078 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13079 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13080 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13081 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13082 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13083 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13084 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13085 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13087 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13088 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13089 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13090 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13091 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13092 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13093 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13094 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13095 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13096 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13097 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13098 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13099 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13100 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13101 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13102 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13103 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13104 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13105 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13106 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13107 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13108 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13109 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13110 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13111 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13112 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13113 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13114 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13115 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13116 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13117 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13118 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13119 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13120 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13121
13122 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13123 * README: Remove the mention of out-of-tree patches needed for
13124 GNU/Hurd.
13125
13126 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13127 (UTIME_NOW, UTIME_OMIT): Define macros.
13128
13129 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13130 instead of pthread_detach.
13131 (__cthread_fork): Call __pthread_create instead of pthread_create.
13132 (__cthread_keycreate): Call __pthread_key_create instead of
13133 pthread_key_create.
13134 (__cthread_getspecific): Call __pthread_getspecific instead of
13135 pthread_getspecific.
13136 (__cthread_setspecific): Call __pthread_setspecific instead of
13137 pthread_setspecific.
13138 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13139 __pthread_mutex_unlock instead of pthread_mutex_lock and
13140 pthread_mutex_unlock.
13141 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13142 ___pthread_get_cleanup_stack.
13143 (__pthread_get_cleanup_stack): New strong alias.
13144 * htl/pt-create.c: Include <pthreadP.h>.
13145 (entry_point): Call __pthread_exit instead of pthread_exit.
13146 (pthread_create): Rename to __pthread_create.
13147 (pthread_create): New strong alias.
13148 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13149 (pthread_detach): New strong alias.
13150 (__pthread_detach): Call __pthread_cond_broadcast instead of
13151 pthread_cond_broadcast.
13152 * htl/pt-exit.c: Include <pthreadP.h>.
13153 (__pthread_exit): Call __pthread_setcancelstate and
13154 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13155 __pthread_get_cleanup_stack.
13156 * htl/pt-testcancel.c: Include <pthreadP.h>.
13157 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13158 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13159 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13160 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13161 pthread_attr_getstacksize.
13162 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13163 Rename to __pthread_attr_getstackaddr.
13164 (pthread_attr_getstackaddr): New strong alias.
13165 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13166 Rename to __pthread_attr_getstacksize.
13167 (pthread_attr_getstacksize): New strong alias.
13168 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13169 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13170 (pthread_attr_setstack): New strong alias.
13171 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13172 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13173 pthread_attr_getstacksize, pthread_attr_setstacksize and
13174 pthread_attr_setstackaddr.
13175 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13176 Rename to __pthread_attr_setstackaddr.
13177 (pthread_attr_setstackaddr): New strong alias.
13178 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13179 Rename to __pthread_attr_setstacksize.
13180 (pthread_attr_setstacksize): New strong alias.
13181 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13182 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13183 pthread_exit.
13184 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13185 (__pthread_key_create): New hidden def.
13186 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13187 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13188 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13189 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13190 __pthread_setspecific, __pthread_setcancelstate,
13191 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13192 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13193 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13194 declarations.
13195 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13196 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13197 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13198 (pthread_attr_setstackaddr): New strong alias.
13199 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13200 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13201 (pthread_attr_setstacksize): New strong alias.
13202 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13203 (call_exit): Call __pthread_exit instead of pthread_exit.
13204 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13205 (_pthread_mutex_init): New hidden definition.
13206 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13207 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13208 instead of pthread_attr_init and pthread_attr_setstack.
13209
13210 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13211 __vm_deallocate instead of vm_allocate and vm_deallocate.
13212 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13213 setenv.
13214 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13215 of geteuid.
13216 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13217 strdup.
13218 * hurd/siginfo.c: Include <libioP.h>.
13219 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13220 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13221 munmap.
13222 * mach/devstream.c: Include <libioP.h>.
13223 (dealloc_ref): Call __mach_port_deallocate instead of
13224 mach_port_deallocate.
13225 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13226 Call __mach_port_deallocate instead of mach_port_deallocate.
13227 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13228 pathconf.
13229 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13230 munmap.
13231 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13232 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13233 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13234 of munmap.
13235 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13236 of close.
13237 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13238 instead of sysconf.
13239 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13240 __clock_gettime instead of clock_gettime.
13241 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13242 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13243 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13244 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13245 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13246 tcgetattr.
13247 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13248 __clock_gettime and __nanosleep instead of clock_gettime and
13249 nanosleep.
13250 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13251 __hurd_catch_signal.
13252 (hurd_catch_signal): New strong alias.
13253 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13254 __hurd_catch_signal instead of hurd_catch_signal.
13255 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13256 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13257 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13258 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13259 (_hurd_thread_sigstate): Add hidden def.
13260 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13261 mutex_unlock.
13262 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13263 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13264 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13265 __hurd_file_name_path_lookup.
13266 (hurd_file_name_path_lookup): New strong alias.
13267 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13268 hurd_file_name_path_lookup.
13269 * mach/errstring.c (mach_error_type): Add hidden def.
13270 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13271 * mach/mutex-init.c (__mutex_init): Add hidden def.
13272 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13273 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13274 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13275 * sysdeps/mach/hurd/getcwd.c
13276 (_hurd_canonicalize_directory_name_internal): Rename to
13277 __hurd_canonicalize_directory_name_internal.
13278 (_hurd_canonicalize_directory_name_internal): New strong alias.
13279 (__canonicalize_directory_name_internal, __getcwd): Call
13280 __hurd_canonicalize_directory_name_internal instead of
13281 _hurd_canonicalize_directory_name_internal.
13282 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13283 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13284 hidden defs.
13285 * sysdeps/hurd/include/hurd.h: New file.
13286 * sysdeps/hurd/include/hurd/fd.h: New file.
13287 * sysdeps/hurd/include/hurd/signal.h: New file.
13288 * sysdeps/mach/include/lock-intern.h: New file.
13289 * sysdeps/mach/include/mach.h: New file.
13290 * sysdeps/mach/include/mach/mig_support.h: New file.
13291 * sysdeps/mach/include/mach_error.h: New file.
13292 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13293 prototype.
13294 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13295 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13296 _HEADER_H_HIDDEN_DEF macro.
13297 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13298 _hurd_fd_error_signal): Add hidden prototype.
13299 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13300 hidden def.
13301 * libio/iolibio.h (_IO_puts): New hidden prototype.
13302 * libio/ioputs.c (_IO_puts): New hidden def.
13303 * sysdeps/mach/hurd/localplt.data: New file.
13304
13305 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13306 Amos Jeffries <squid3@treenet.co.nz>
13307 David Michael <fedora.dm0@gmail.com>
13308 Marco Gerards <marco@gnu.org>
13309 Marcus Brinkmann <marcus@gnu.org>
13310 Neal H. Walfield <neal@gnu.org>
13311 Pino Toscano <toscano.pino@tiscali.it>
13312 Richard Braun <rbraun@sceen.net>
13313 Roland McGrath <roland@gnu.org>
13314 Samuel Thibault <samuel.thibault@ens-lyon.org>
13315 Thomas DiModica <ricinwich@yahoo.com>
13316 Thomas Schwinge <tschwinge@gnu.org>
13317
13318 * htl: New directory.
13319 * sysdeps/htl: New directory.
13320 * sysdeps/hurd/htl: New directory.
13321 * sysdeps/i386/htl: New directory.
13322 * sysdeps/mach/htl: New directory.
13323 * sysdeps/mach/hurd/htl: New directory.
13324 * sysdeps/mach/hurd/i386/htl: New directory.
13325 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13326 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13327 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13328
13329 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13330
13331 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13332 signals in thread created for runing timers.
13333
13334 2018-04-01 Florian Weimer <fweimer@redhat.com>
13335
13336 * support/support_format_addrinfo.c (support_format_addrinfo):
13337 Include unknown error number in formatted result.
13338
13339 2018-03-29 Florian Weimer <fweimer@redhat.com>
13340
13341 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13342 capture SIGBUS.
13343
13344 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13345
13346 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13347 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13348 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13349 (__ASSUME_CLONE_BACKWARDS): Define.
13350
13351 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13352
13353 [BZ #23024]
13354 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13355 early when linux sentinel value is set.
13356
13357 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13358
13359 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13360
13361 2018-03-27 Andreas Schwab <schwab@suse.de>
13362
13363 [BZ #23005]
13364 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13365 allocation of private copy of nsaddr_list fails.
13366
13367 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13368
13369 [BZ #16552]
13370 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13371 * sysdeps/unix/sysv/linux/umount.c: ... here.
13372 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13373 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13374 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13375 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13377 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13378 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13379
13380 2018-03-26 Andreas Schwab <schwab@suse.de>
13381
13382 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13383 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13384 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13385 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13386 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13387 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13388 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13389 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13390 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13391 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13392 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13393 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13394 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13395 (R_RISCV_NUM): Define.
13396
13397 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13398
13399 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13400 TLS declaration of errno.
13401 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13402 __libc_setup_tls.
13403 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13404 (ARCH_SETUP_TLS): Likewise.
13405 * sysdeps/mach/hurd/libc-start.h: New file copied from
13406 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13407 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13408 instead of __libc_setup_tls.
13409 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13410 __libc_setup_tls before initializing libpthread and running _hurd_init
13411 which starts the signal thread.
13412 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13413 Declare function.
13414 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13415
13416 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13417
13418 [BZ #22998]
13419 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13420 after it is defined.
13421
13422 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13423 Max Horn <max@quendi.de>
13424
13425 [BZ #22644]
13426 CVE-2017-18269
13427 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13428 branch conditions.
13429 * string/test-memmove.c (do_test2): New testcase.
13430
13431 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13432
13433 * sysdeps/generic/frame.h: Remove file.
13434 * sysdeps/arm/frame.h: Likewise.
13435 * sysdeps/hppa/frame.h: Likewise.
13436 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13437 macro.
13438 (GET_FRAME): Likewise.
13439 (GET_STACK): Likewise.
13440 (CALL_SIGHANDLER): Likewise.
13441 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13442 Likewise.
13443 (GET_FRAME): Likewise.
13444 (GET_STACK): Likewise.
13445 (CALL_SIGHANDLER): Likewise.
13446 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13447 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13448 (GET_FRAME): Likewise.
13449 (GET_STACK): Likewise.
13450 (CALL_SIGHANDLER): Likewise.
13451 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13452 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13453 (GET_FRAME): Likewise.
13454 (GET_STACK): Likewise.
13455 (ADVANCE_STACK_FRAME): Likewise.
13456 (CALL_SIGHANDLER): Likewise.
13457 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13458 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13459 (GET_FRAME): Likewise.
13460 (GET_STACK): Likewise.
13461 (CALL_SIGHANDLER): Likewise.
13462 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13463 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13464 (GET_FRAME): Likewise.
13465 (GET_STACK): Likewise.
13466 (CALL_SIGHANDLER): Likewise.
13467 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13468 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13469 (GET_FRAME): Likewise.
13470 (GET_STACK): Likewise.
13471 (CALL_SIGHANDLER): Likewise.
13472 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13473 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13474 (GET_FRAME): Likewise.
13475 (GET_STACK): Likewise.
13476 (CALL_SIGHANDLER): Likewise.
13477 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13478 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13479 (GET_FRAME): Likewise.
13480 (GET_STACK): Likewise.
13481 (CALL_SIGHANDLER): Likewise.
13482 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13483 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13484 (GET_FRAME): Likewise.
13485 (GET_STACK): Likewise.
13486 (CALL_SIGHANDLER): Likewise.
13487 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13488 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13489 (GET_FRAME): Likewise.
13490 (GET_STACK): Likewise.
13491 (CALL_SIGHANDLER): Likewise.
13492 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13493 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13494 (GET_FRAME): Likewise.
13495 (GET_STACK): Likewise.
13496 (CALL_SIGHANDLER): Likewise.
13497 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13498 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13499 (GET_FRAME): Likewise.
13500 (GET_STACK): Likewise.
13501 (CALL_SIGHANDLER): Likewise.
13502 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13503 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13504 (FIRST_FRAME_POINTER): Likewise.
13505 (ADVANCE_STACK_FRAME): Likewise.
13506 (GET_STACK): Likewise.
13507 (GET_FRAME): Likewise.
13508 (CALL_SIGHANDLER): Likewise.
13509 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13510 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13511 (ADVANCE_STACK_FRAME): Likewise.
13512 (GET_STACK): Likewise.
13513 (GET_FRAME): Likewise.
13514 (CALL_SIGHANDLER): Likewise.
13515 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13516 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13517 (GET_FRAME): Likewise.
13518 (GET_STACK): Likewise.
13519 (CALL_SIGHANDLER): Likewise.
13520 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13521 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13522 (GET_FRAME): Likewise.
13523 (GET_STACK): Likewise.
13524 (CALL_SIGHANDLER): Likewise.
13525
13526 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13527
13528 * sysdeps/x86_64/backtrace.c: Move to ....
13529 * debug/backtrace.c: ... here.
13530 * sysdeps/aarch64/backtrace.c: Remove file.
13531 * sysdeps/alpha/backtrace.c: Likewise.
13532 * sysdeps/hppa/backtrace.c: Likewise.
13533 * sysdeps/ia64/backtrace.c: Likewise.
13534 * sysdeps/mips/backtrace.c: Likewise.
13535 * sysdeps/nios2/backtrace.c: Likewise.
13536 * sysdeps/riscv/backtrace.c: Likewise.
13537 * sysdeps/sh/backtrace.c: Likewise.
13538 * sysdeps/tile/backtrace.c: Likewise.
13539
13540 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13541
13542 [BZ #22987]
13543 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13544 function.
13545 (fdimf): Likewise.
13546 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13547
13548 [BZ #17343]
13549 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13550 possibly overflowing computations.
13551
13552 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13553
13554 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13555 values from Linux-specific section now that it is in the GNU section.
13556 * sysdeps/gnu/errlist.c: Regenerate.
13557
13558 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13559
13560 * math/Makefile (libm-narrow-fns): Add sub.
13561 (libm-test-funcs-narrow): Likewise.
13562 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13563 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13564 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13565 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13566 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13567 (NARROW_SUB_TRIVIAL): Likewise.
13568 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13569 macro.
13570 (__dsubl): Likewise.
13571 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13572 dsub.
13573 (CFLAGS-nldbl-dsub.c): New variable.
13574 (CFLAGS-nldbl-fsub.c): Likewise.
13575 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13576 __nldbl_dsubl.
13577 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13578 prototype.
13579 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13580 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13581 * math/auto-libm-test-in: Add tests of sub.
13582 * math/auto-libm-test-out-narrow-sub: New generated file.
13583 * math/libm-test-narrow-sub.inc: New file.
13584 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13585 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13586 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13587 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13588 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13589 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13590 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13591 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13592 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13593 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13594 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13595 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13596 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13597 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13598 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13599 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13600 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13601 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13602 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13603 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13607 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13608 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13609 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13610 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13611 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13612 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13613 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13614 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13615 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13616 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13620 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13621 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13622 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13623 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13624 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13625 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13626 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13627 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13628 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13629 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13630
13631 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13632
13633 [BZ #20079]
13634 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13635
13636 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13637
13638 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13639
13640 2018-03-18 Richard Braun <rbraun@sceen.net>
13641
13642 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13643 thread reference.
13644
13645 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13646
13647 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13648 (__libc_cleanup_fct): Define function.
13649 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13650 __libc_cleanup_end): Rewrite implementation using
13651 __attribute__ ((__cleanup__)).
13652 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13653 * hurd/Makefile (routines): Add hurdlock.
13654 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13655 interface.
13656 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13657 * hurd/hurdpid.c: Include <lowlevellock.h>
13658 (_S_msg_proc_newids): Use lll_wait to synchronize.
13659 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13660 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13661 * mach/Makefile (lock-headers): Remove machine-lock.h.
13662 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13663 <machine-lock.h>.
13664 (__spin_lock_t): New type.
13665 (__SPIN_LOCK_INITIALIZER): New macro.
13666 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13667 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13668 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13669 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13670 (__mutex_init): Initialize with lll.
13671 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13672 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13673 needing lll.
13674 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13675 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13676 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13677 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13678 (__setpgid): Use lll for synchronization.
13679 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13680 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13681 instead of <cthreads.h>.
13682 (_IO_lock_inexpensive): New macro
13683 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13684 (__libc_lock_self0): New declaration.
13685 (__libc_lock_owner_self): New macro.
13686 (__libc_key_t): Remove type.
13687 (_LIBC_LOCK_INITIALIZER): New macro.
13688 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13689 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13690 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13691 __libc_lock_define_initialized_recursive,
13692 __rtld_lock_define_initialized_recursive,
13693 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13694 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13695 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13696 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13697 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13698 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13699 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13700 New macros.
13701 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13702 * hurd/hurdlock.c: New file.
13703 * hurd/hurdlock.h: New file.
13704 * mach/lowlevellock.h: New file
13705
13706 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13707
13708 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13709 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13710 when opening a symlink with O_NOFOLLOW.
13711 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13712 path when flags contains O_NOFOLLOW.
13713 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13714 if flags contains O_DIRECTORY and the result is a directory.
13715 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13716 oneself when the pointer given in D is nul (as set by ext2fs).
13717 * sysdeps/mach/hurd/mlockall.c: New file.
13718 * sysdeps/mach/hurd/munlockall.c: New file.
13719
13720 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13721
13722 * hurd/hurdsig.c: Include <pthread.h>.
13723 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13724 get the signal thread stack layout.
13725 * hurd/Makefile (headers): Remove threadvar.h.
13726 (inline-headers): Remove threadvar.h.
13727 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13728 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13729 __hurd_threadvar_max, __hurd_errno_location.
13730 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13731 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13732 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13733 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13734 unless TLS is not initialized yet, in which case we do not need a
13735 critical section yet anyway.
13736 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13737 <machine-sp.h>.
13738 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13739 declarations.
13740 (__hurd_threadvar_index): Remove enum.
13741 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13742 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13743 inlines.
13744 (__hurd_reply_port0): New variable declaration.
13745 (__hurd_local_reply_port): New macro.
13746 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13747 (interrupted_reply_port_location): Add thread_t parameter. Use it
13748 with THREAD_TCB to access thread-local variables.
13749 (_hurdsig_abort_rpcs): Pass ss->thread to
13750 interrupted_reply_port_location.
13751 (_hurd_internal_post_signal): Likewise.
13752 (_hurdsig_init): Use presence of cthread_fork instead of
13753 __hurd_threadvar_stack_mask to start signal thread by hand.
13754 Remove signal thread threadvar initialization.
13755 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13756 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13757 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13758 of threadvar.
13759 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13760 __libc_lock_self0.
13761 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13762 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13763 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13764 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13765 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13766 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13767 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13768 define variables.
13769 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13770 <hurd/threadvar.h>.
13771 [IS_IN(rtld)] (rtld_errno): New variable.
13772 [IS_IN(rtld)] (__errno_location): New weak function.
13773 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13774 * sysdeps/mach/hurd/errno.c: Remove file.
13775 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13776 (__fork): Remove THREADVAR_SPACE macro and its use.
13777 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13778 variable.
13779 (init): Do not initialize threadvar.
13780 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13781 symbol.
13782 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13783 __hurd_local_reply_port instead of threadvar.
13784 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13785 _hurd_sigstate fields.
13786 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13787 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13788 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13789 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13790 instead of threadvar.
13791 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13792 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13793 (use_threadvar, global_reply_port): Remove variables.
13794 (__hurd_reply_port0): New variable.
13795 (__mig_get_reply_port): Use __hurd_local_reply_port and
13796 __hurd_reply_port0 instead of threadvar.
13797 (__mig_dealloc_reply_port): Likewise.
13798 (__mig_init): Do not initialize threadvar.
13799 * sysdeps/mach/hurd/profil.c: Fix comment.
13800 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13801 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13802 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13803 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13804 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13805 __cthread_setspecific.
13806 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13807 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13808 __cthread_t instead of cthread_fork, cthread_detach,
13809 pthread_getattr_np, pthread_attr_getstack.
13810 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13811 __cthread_keycreate.
13812 (cthread_getspecific): Rename to __cthread_getspecific.
13813 (cthread_setspecific): Rename to __cthread_setspecific.
13814 (__libc_getspecific): Use __cthread_getspecific instead of
13815 cthread_getspecific.
13816 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13817 __cthread_keycreate instead of cthread_keycreate.
13818 (__libc_setspecific): Use __cthread_setspecific instead of
13819 cthread_setspecific.
13820 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13821 Likewise.
13822 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13823 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13824 testing whether it is defined.
13825
13826 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13827
13828 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13829 Define macro.
13830 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13831 * sysdeps/mach/i386/thread_state.h
13832 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13833 i386_THREAD_STATE.
13834 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13835 i386_THREAD_STATE.
13836 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13837
13838 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13839 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13840
13841 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13842 macros.
13843 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13844 descriptor instead of creating a new one.
13845 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13846
13847 * mach/setup-thread.c: Include <ldsodefs.h>.
13848 (__mach_setup_thread): Call _dl_allocate_tls, pass
13849 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13850 MACHINE_THREAD_STATE_FLAVOR, before getting
13851 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13852 MACHINE_THREAD_STATE_FLAVOR with the result.
13853 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13854 MACHINE_THREAD_STATE_FIX_NEW.
13855 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13856 too. Add original thread parameter.
13857
13858 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13859
13860 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13861 Remove inline function.
13862
13863 * sysdeps/i386/fpu/libm-test-ulps: Update.
13864 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13865
13866 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13867
13868 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13869 commit.
13870
13871 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13872
13873 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13874 (__sincos_code): Remove define and undefine.
13875 [__FAST_MATH__] (__sincos): Remove inline function.
13876 [__FAST_MATH__] (__sincosf): Remove inline function.
13877 [__FAST_MATH__] (__sincosl): Remove inline function.
13878 (__atan2l): Remove inline functions.
13879 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13880 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13881 function.
13882 (floor): Remove inline function.
13883 (ceil): Likewise.
13884 [__FAST_MATH__] (__ldexp_code): Remove macro.
13885 [__FAST_MATH__] (ldexp): Remove inline function.
13886 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13887 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13888 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13889 [__USE_ISOC99] (__lrint_code): Remove macro.
13890 [__USE_ISOC99] (__llrint_code): Likewise.
13891 [__USE_ISOC99] (lrintf): Remove inline function.
13892 [__USE_ISOC99] (lrint): Likewise.
13893 [__USE_ISOC99] (lrintl): Likewise.
13894 [__USE_ISOC99] (llrint): Likewise.
13895 [__USE_ISOC99] (llrintf): Likewise.
13896 [__USE_ISOC99] (llrintl): Likewise.
13897
13898 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13899
13900 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13901 (__ieee754_sqrtf): Remove.
13902 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13903 (__ieee754_sqrtf): Remove.
13904 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13905 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13906 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13907 (__ieee754_sqrtf): Remove.
13908 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13909 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13910 (sqrtf): Remove.
13911 (sqrtl): Remove.
13912 (__ieee754_sqrt): Remove.
13913 (__ieee754_sqrtf): Remove.
13914 (__ieee754_sqrtl): Remove.
13915 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13916 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13917 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13918 (__ieee754_sqrtf): Remove.
13919 (__ieee754_sqrtl): Remove.
13920
13921 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13922
13923 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13924 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13925 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13926 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13927 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13928 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13929 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13930 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13931 Likewise.
13932 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13933 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13934 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13935 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13936 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13937 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13938 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13939 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13940 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13941 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13942 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13943 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13944 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13945 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13946 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13947 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13948 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13949 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13950 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13951 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13952 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13953 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13954 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13955 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13956 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13957 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13958 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13959 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13960 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13961 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13962 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13963 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13964 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13965 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13966 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13967 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13968 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13969 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13970 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13971 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13972
13973 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13974
13975 * include/math.h (sqrt): Declare with asm redirect.
13976 (sqrtf): Likewise.
13977 (sqrtl): Likewise.
13978 (sqrtf128): Likewise.
13979 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13980 nonlib and libnldbl with -fmath-errno.
13981 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13982 * math/w_sqrt_template.c: Likewise.
13983 * math/w_sqrtf_compat.c: Likewise.
13984 * math/w_sqrtl_compat.c: Likewise.
13985 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13986 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13987 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13988 complex.h.
13989
13990 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13991
13992 * benchtests/Makefile: Define _ISOMAC.
13993 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13994 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13995 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13996 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13997 * benchtests/bench-timing.h: Define attribute_hidden.
13998
13999 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14000
14001 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14002 mov + lsr.
14003
14004 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14005
14006 [BZ #22963]
14007 * localedata/locales/cs_CZ (mon): Rename to...
14008 (alt_mon): This.
14009 (mon): Import from CLDR (genitive case).
14010
14011 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14012
14013 [BZ #22937]
14014 * localedata/locales/el_CY (abmon): Rename to...
14015 (ab_alt_mon): This.
14016 (abmon): Import from CLDR (abbreviated genitive case).
14017 * localedata/locales/el_GR (abmon): Rename to...
14018 (ab_alt_mon): This.
14019 (abmon): Import from CLDR (abbreviated genitive case).
14020
14021 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14022
14023 [BZ #22932]
14024 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14025
14026 2018-03-15 Robert Buj <robert.buj@gmail.com>
14027
14028 [BZ #22848]
14029 * localedata/locales/ca_ES (abmon): Rename to...
14030 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14031 (mon): Rename to...
14032 (alt_mon): This.
14033 (abmon): Import from CLDR (genitive case, month names preceded by
14034 "de" or "d’").
14035 (mon): Likewise.
14036 (abday): Synchronize with CLDR.
14037 (d_t_fmt): Likewise.
14038 (d_fmt): Likewise.
14039 (am_pm): Likewise.
14040
14041 (LC_TIME): Improve indentation.
14042 (LC_TELEPHONE): Likewise.
14043 (LC_NAME): Likewise.
14044 (LC_ADDRESS): Likewise.
14045
14046 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14047
14048 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14049 (lrintf): Remove definitions used only with old GCC.
14050 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14051 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14052 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14053 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14054 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14055 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14056 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14057 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14058 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14059 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14060 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14061 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14062 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14063 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14064 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14065 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14066 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14067 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14068 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14069 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14070 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14071 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14072 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14073 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14074 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14075 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14076 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14077 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14078
14079 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14080
14081 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14082 instruction to unbreak builds with binutils 2.26 and older.
14083
14084 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14085
14086 * sysdeps/aarch64/strncmp.S (count): New macro.
14087 (strncmp): Store misaligned length in SRC1 in COUNT.
14088 (mutual_align): Adjust.
14089 (misaligned8): Load dword at a time when it is safe.
14090
14091 2018-03-12 Zack Weinberg <zackw@panix.com>
14092
14093 [BZ #1190]
14094 [BZ #19476]
14095 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14096 if the _IO_EOF_SEEN bit is already set; update commentary.
14097 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14098 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14099
14100 * support/support_openpty.c, support/tty.h: New files.
14101 * support/Makefile (libsupport-routines): Add support_openpty.
14102
14103 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14104 New test cases.
14105 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14106 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14107
14108 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14109
14110 * po/pt_BR.po: Update translations.
14111
14112 2018-03-12 David Michael <fedora.dm0@gmail.com>
14113
14114 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14115 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14116 get a port to the startup server.
14117
14118 2018-03-11 Zack Weinberg <zackw@panix.com>
14119
14120 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14121 before nldbl-compat.h.
14122
14123 2018-03-10 Zack Weinberg <zackw@panix.com>
14124
14125 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14126 math.h or math_private.h.
14127
14128 * sysdeps/alpha/fpu/s_isnan.c
14129 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14130 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14131 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14132 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14133 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14134 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14135 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14136 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14137 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14138 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14139 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14140 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14141 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14142 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14143 Include math_private.h.
14144
14145 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14146 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14147 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14148 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14149 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14150 * sysdeps/powerpc/power7/fpu/s_logb.c:
14151 Include math.h and math_private.h.
14152
14153 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14154 uses of $at in .set noat / .set at.
14155
14156 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14157
14158 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14159 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14160 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14161 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14162 Likewise.
14163
14164 2018-03-09 Florian Weimer <fweimer@redhat.com>
14165
14166 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14167 in comment.
14168
14169 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14170
14171 [BZ #22919]
14172 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14173 Add nop before __startcontext, add explaining comments.
14174
14175 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14176
14177 [BZ #22926]
14178 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14179 empty for __SPE__.
14180 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14181 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14182 Do not build hardware transactional code for __SPE__.
14183 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14184 (__lll_trylock_elision): Likewise.
14185 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14186 (__lll_unlock_elision): Likewise.
14187
14188 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14189 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14190 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14191 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14192 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14193 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14194 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14195 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14196 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14197 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14198 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14199 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14200 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14201 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14202 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14203 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14204 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14205 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14206 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14207 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14208 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14209 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14210 (__ASSUME_CLONE_BACKWARDS): Define.
14211 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14212 __clone2 if __NR_clone2 is defined.
14213 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14214 (__ASSUME_CLONE_BACKWARDS): Likewise.
14215 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14216 (__ASSUME_CLONE_BACKWARDS): Likewise.
14217 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14218 (__ASSUME_CLONE2): Likewise.
14219 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14220 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14221 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14222 variants and the define architecture can use.
14223 (__ASSUME_CLONE_DEFAULT): Define as default.
14224 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14225 (__ASSUME_CLONE_BACKWARDS): Likewise.
14226 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14227 (__ASSUME_CLONE_BACKWARDS): Likewise.
14228 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14229 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14230
14231 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14232
14233 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14234
14235 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14236 time.
14237
14238 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14239 (do_test_limit): Likewise.
14240
14241 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14242 for every implementation.
14243 (do_test): Likewise.
14244
14245 * benchtests/bench-strncmp.c: Convert output to json.
14246
14247 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14248
14249 * io/futimens.c: Add missing start-of-file descriptive comment.
14250 * io/utime.c: Likewise.
14251 * misc/futimesat.c: Likewise.
14252 * misc/utimes.c: Likewise.
14253 * sysdeps/mach/hurd/futimesat.c: Likewise.
14254 * sysdeps/mach/hurd/utimes.c: Likewise.
14255 * sysdeps/posix/utime.c: Likewise.
14256 * sysdeps/posix/utimes.c: Likewise.
14257 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14258 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14259 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14260 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14261
14262 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14263
14264 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14265 hurd_futimes.
14266 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14267 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14268 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14269 (__futimens): Move implementation to...
14270 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14271 utime_tvalue_from_tspec): ... new helper functions.
14272 (hurd_futimens): New function.
14273 * sysdeps/mach/hurd/futimesat.c: New file.
14274 * sysdeps/mach/hurd/utimensat.c: New file.
14275
14276 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14277
14278 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14279 UTIME_OMIT): New macros.
14280 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14281 before reverting to converting time spec to time value and calling
14282 __file_utimes.
14283 * sysdeps/mach/hurd/utime-helper.c: New file.
14284 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14285 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14286 reverting to utime_tvalue_from_tval and __file_utimes.
14287 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14288 (__lutimes): Just call hurd_futimens after lookup.
14289 * sysdeps/mach/hurd/utimes.c: Likewise.
14290
14291 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14292
14293 * bits/sigaction.h: Add include guard.
14294 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14295 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14296 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14297 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14298 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14299 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14300 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14301 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14302 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14303
14304 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14305
14306 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14307 -Wmaybe-uninitialized for -Os.
14308 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14309 this disabling.
14310
14311 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14312
14313 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14314 __INO_T_MATCHES_INO64_T is defined.
14315 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14316 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14317 of definition.
14318 * dirent/alphasort64.c: Likewise.
14319 * dirent/scandir.c: Likewise.
14320 * dirent/scandir64-tail.c: Likewise.
14321 * dirent/scandir64.c: Likewise.
14322 * dirent/scandirat.c: Likewise.
14323 * dirent/scandirat64.c: Likewise.
14324 * dirent/versionsort.c: Likewise.
14325 * dirent/versionsort64.c: Likewise.
14326 * include/dirent.h: Likewise.
14327
14328 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14329 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14330 for socketpair endpoint.
14331 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14332 WRITE_BUFFER_SIZE as buffer size for sending socket.
14333 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14334 issue on system where send is implemented with sendto syscall.
14335 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14336 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14337 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14338 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14339
14340 [BZ #21269]
14341 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14342 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14343 sa_restorer for vDSO case.
14344 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14345
14346 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14347
14348 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14349 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14350 * hurd/hurd/ioctl.h: Include <mach/port.h>
14351 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14352 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14353 <mach/mach_types.h> and <mach/message.h>.
14354 (headers): Move mach/param.h to bits/mach/param.h.
14355 * sysdeps/mach/i386/mach/param.h: Move file to ...
14356 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14357 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14358 of <mach/param.h>.
14359 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14360 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14361 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14362 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14363 trivial, for C++ conformity.
14364 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14365 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14366 Process mig output through $(migheadersed).
14367 * hurd/Makefile (migheadersed): Define variable.
14368 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14369 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14370 headers.
14371 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14372 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14373 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14374 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14375 <bits/types/sigset_t.h>.
14376 [!defined __USE_GNU]: Do not #error out.
14377 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14378 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14379 Include <stddef.h> and <bits/types/sigset_t.h>
14380 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14381 instead of sighandler_t.
14382 * stdlib/errno.h (error_t): Move definition to...
14383 * bits/types/error_t.h: ... new header.
14384 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14385 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14386 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14387 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14388 * hurd/hurd.h: Include <bits/types/error_t.h>
14389 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14390 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14391 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14392 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14393 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14394 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14395 * sysdeps/mach/hurd/futimens.c: New file.
14396
14397 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14398
14399 [BZ #22918]
14400 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14401 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14402 * nscd/gai.c (__nss_hosts_database): Readd definition.
14403 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14404 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14405 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14406
14407 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14408
14409 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14410 (ifunc_one): Likewise.
14411
14412 2018-03-01 DJ Delorie <dj@delorie.com>
14413
14414 [BZ #22342]
14415 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14416 key value.
14417
14418 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14419
14420 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14421 `match_pid' parameter.
14422 (td_ta_thr_iter): Update accordingly.
14423
14424 2018-03-01 Florian Weimer <fweimer@redhat.com>
14425
14426 * nptl/Makefile (install-lib-ldscripts): Remove.
14427 (install): Remove rule.
14428 ($(inst_libdir)/libpthread.so): Likewise.
14429
14430 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14431
14432 [BZ #22896]
14433 * localedata/locales/an_ES: update month and day names,
14434 improve d_fmt, improve postal_fmt, add country_post,
14435 add country_isbn
14436
14437 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14438
14439 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14440 Ukrainian instead of Bulgarian.
14441
14442 2018-03-01 Florian Weimer <fweimer@redhat.com>
14443
14444 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14445 reference.
14446
14447 2018-03-01 Florian Weimer <fweimer@redhat.com>
14448
14449 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14450 * nptl/Makefile (routines): Add pthread_atfork.
14451 (static-only-routines): Set to pthread_atfork.
14452 (libpthread-routines): Remove pthread_atfork.
14453 (libpthread-static-only-routines): Remove.
14454 (install): Update comment.
14455 (libpthread.so): Do not install libpthread_nonshared.a.
14456 (tests): Do not link with libpthread_nonshared.a.
14457 (generated): Remove libpthread_nonshared.a.
14458 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14459 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14460 with libpthread_nonshared.a.
14461
14462 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14463
14464 [BZ #22902]
14465 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14466 (libc_feholdexcept_setroundf128): New macro.
14467 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14468
14469 [BZ #15105]
14470 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14471 libc_hidden_def.
14472 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14473 * include/inttypes.h: New file.
14474
14475 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14476
14477 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14478 -Os in two more places.
14479
14480 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14481
14482 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14483 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14484 be sorted correctly at the moment because of a bug.
14485
14486 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14487
14488 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14489 treat ñ as a primary different character, sync the collation
14490 for Spanish with CLDR.
14491 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14492 * localedata/Makefile: Add new test files.
14493 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14494 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14495 collation order.
14496 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14497 * localedata/am_ET.UTF-8.in: New test file.
14498 * localedata/az_AZ.UTF-8.in: Likewise.
14499 * localedata/be_BY.UTF-8.in: Likewise.
14500 * localedata/ber_DZ.UTF-8.in: Likewise.
14501 * localedata/ber_MA.UTF-8.in: Likewise.
14502 * localedata/bg_BG.UTF-8.in: Likewise.
14503 * localedata/br_FR.UTF-8.in: Likewise.
14504 * localedata/cmn_TW.UTF-8.in: Likewise.
14505 * localedata/crh_UA.UTF-8.in: Likewise.
14506 * localedata/csb_PL.UTF-8.in: Likewise.
14507 * localedata/cv_RU.UTF-8.in: Likewise.
14508 * localedata/cy_GB.UTF-8.in: Likewise.
14509 * localedata/dz_BT.UTF-8.in: Likewise.
14510 * localedata/eo.UTF-8.in: Likewise.
14511 * localedata/es_ES.UTF-8.in: Likewise.
14512 * localedata/fa_IR.UTF-8.in: Likewise.
14513 * localedata/fi_FI.UTF-8.in: Likewise.
14514 * localedata/fil_PH.UTF-8.in: Likewise.
14515 * localedata/fur_IT.UTF-8.in: Likewise.
14516 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14517 * localedata/ha_NG.UTF-8.in: Likewise.
14518 * localedata/ig_NG.UTF-8.in: Likewise.
14519 * localedata/ik_CA.UTF-8.in: Likewise.
14520 * localedata/kk_KZ.UTF-8.in: Likewise.
14521 * localedata/ku_TR.UTF-8.in: Likewise.
14522 * localedata/ky_KG.UTF-8.in: Likewise.
14523 * localedata/ln_CD.UTF-8.in: Likewise.
14524 * localedata/mi_NZ.UTF-8.in: Likewise.
14525 * localedata/ml_IN.UTF-8.in: Likewise.
14526 * localedata/mn_MN.UTF-8.in: Likewise.
14527 * localedata/mr_IN.UTF-8.in: Likewise.
14528 * localedata/mt_MT.UTF-8.in: Likewise.
14529 * localedata/nb_NO.UTF-8.in: Likewise.
14530 * localedata/om_KE.UTF-8.in: Likewise.
14531 * localedata/os_RU.UTF-8.in: Likewise.
14532 * localedata/ps_AF.UTF-8.in: Likewise.
14533 * localedata/ro_RO.UTF-8.in: Likewise.
14534 * localedata/ru_RU.UTF-8.in: Likewise.
14535 * localedata/sc_IT.UTF-8.in: Likewise.
14536 * localedata/se_NO.UTF-8.in: Likewise.
14537 * localedata/sq_AL.UTF-8.in: Likewise.
14538 * localedata/sv_SE.UTF-8.in: Likewise.
14539 * localedata/szl_PL.UTF-8.in: Likewise.
14540 * localedata/tg_TJ.UTF-8.in: Likewise.
14541 * localedata/tk_TM.UTF-8.in: Likewise.
14542 * localedata/tt_RU.UTF-8.in: Likewise.
14543 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14544 * localedata/ug_CN.UTF-8.in: Likewise.
14545 * localedata/uz_UZ.UTF-8.in: Likewise.
14546 * localedata/vi_VN.UTF-8.in: Likewise.
14547 * localedata/yi_US.UTF-8.in: Likewise.
14548 * localedata/yo_NG.UTF-8.in: Likewise.
14549 * localedata/zh_CN.UTF-8.in: Likewise.
14550 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14551 file and fix bugs in the collation.
14552 * localedata/locales/az_AZ: Likewise.
14553 * localedata/locales/be_BY: Likewise.
14554 * localedata/locales/ber_DZ: Likewise.
14555 * localedata/locales/ber_MA: Likewise.
14556 * localedata/locales/bg_BG: Likewise.
14557 * localedata/locales/br_FR: Likewise.
14558 * localedata/locales/br_FR@euro: Likewise.
14559 * localedata/locales/ca_ES: Likewise.
14560 * localedata/locales/cns11643_stroke: Likewise.
14561 * localedata/locales/crh_UA: Likewise.
14562 * localedata/locales/cs_CZ: Likewise.
14563 * localedata/locales/csb_PL: Likewise.
14564 * localedata/locales/cv_RU: Likewise.
14565 * localedata/locales/cy_GB: Likewise.
14566 * localedata/locales/da_DK: Likewise.
14567 * localedata/locales/dz_BT: Likewise.
14568 * localedata/locales/en_CA: Likewise.
14569 * localedata/locales/eo: Likewise.
14570 * localedata/locales/es_CU: Likewise.
14571 * localedata/locales/es_EC: Likewise.
14572 * localedata/locales/es_ES: Likewise.
14573 * localedata/locales/es_US: Likewise.
14574 * localedata/locales/et_EE: Likewise.
14575 * localedata/locales/fa_IR: Likewise.
14576 * localedata/locales/fi_FI: Likewise.
14577 * localedata/locales/fil_PH: Likewise.
14578 * localedata/locales/fur_IT: Likewise.
14579 * localedata/locales/gez_ER@abegede: Likewise.
14580 * localedata/locales/ha_NG: Likewise.
14581 * localedata/locales/hr_HR: Likewise.
14582 * localedata/locales/hsb_DE: Likewise.
14583 * localedata/locales/hu_HU: Likewise.
14584 * localedata/locales/ig_NG: Likewise.
14585 * localedata/locales/ik_CA: Likewise.
14586 * localedata/locales/is_IS: Likewise.
14587 * localedata/locales/iso14651_t1_pinyin: Likewise.
14588 * localedata/locales/kk_KZ: Likewise.
14589 * localedata/locales/ku_TR: Likewise.
14590 * localedata/locales/ky_KG: Likewise.
14591 * localedata/locales/ln_CD: Likewise.
14592 * localedata/locales/lt_LT: Likewise.
14593 * localedata/locales/lv_LV: Likewise.
14594 * localedata/locales/mi_NZ: Likewise.
14595 * localedata/locales/ml_IN: Likewise.
14596 * localedata/locales/mn_MN: Likewise.
14597 * localedata/locales/mr_IN: Likewise.
14598 * localedata/locales/mt_MT: Likewise.
14599 * localedata/locales/nb_NO: Likewise.
14600 * localedata/locales/om_KE: Likewise.
14601 * localedata/locales/os_RU: Likewise.
14602 * localedata/locales/pl_PL: Likewise.
14603 * localedata/locales/ps_AF: Likewise.
14604 * localedata/locales/ro_RO: Likewise.
14605 * localedata/locales/ru_RU: Likewise.
14606 * localedata/locales/ru_UA: Likewise.
14607 * localedata/locales/sc_IT: Likewise.
14608 * localedata/locales/se_NO: Likewise.
14609 * localedata/locales/si_LK: Likewise.
14610 * localedata/locales/sq_AL: Likewise.
14611 * localedata/locales/sv_FI: Likewise.
14612 * localedata/locales/sv_FI@euro: Likewise.
14613 * localedata/locales/sv_SE: Likewise.
14614 * localedata/locales/szl_PL: Likewise.
14615 * localedata/locales/tg_TJ: Likewise.
14616 * localedata/locales/ti_ER: Likewise.
14617 * localedata/locales/tk_TM: Likewise.
14618 * localedata/locales/tl_PH: Likewise.
14619 * localedata/locales/tr_TR: Likewise.
14620 * localedata/locales/tt_RU: Likewise.
14621 * localedata/locales/tt_RU@iqtelif: Likewise.
14622 * localedata/locales/ug_CN: Likewise.
14623 * localedata/locales/uk_UA: Likewise.
14624 * localedata/locales/uz_UZ: Likewise.
14625 * localedata/locales/uz_UZ@cyrillic: Likewise.
14626 * localedata/locales/vi_VN: Likewise.
14627 * localedata/locales/yi_US: Likewise.
14628 * localedata/locales/yo_NG: Likewise.
14629
14630 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14631
14632 * gen-locales.mk: Make test files which contain @ modifiers in their
14633 name work.
14634 * localedata/gen-locale.sh: Likewise.
14635
14636 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14637
14638 * posix/tst-fnmatch.input: Fix results for range expressions
14639 for non C locales.
14640 * posix/tst-regexloc.c: Do not use a range expression for
14641 de_DE.ISO-8859-1 locale.
14642
14643 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14644
14645 * posix/bug-regex5.c: Fix test case because with the new
14646 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14647 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14648 file.
14649
14650 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14651
14652 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14653 downloaded from ISO, the collation order of @-. and space has changed.
14654 Therefore, this test file needed to be adapted.
14655 * localedata/fr_CA.UTF-8.in: Likewise.
14656 * localedata/fr_FR.UTF-8.in: Likewise.
14657 * localedata/uk_UA.UTF-8.in: Likewise.
14658
14659 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14660
14661 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14662 order of ȥ in the new iso14651_t1_common file.
14663 * localedata/pl_PL.UTF-8.in: Likewise.
14664
14665 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14666
14667 * localedata/locales/iso14651_t1_common: Add sections for various
14668 scripts to the iso14651_t1_common file.
14669
14670 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14671
14672 * localedata/locales/iso14651_t1_common: Use the code point of a
14673 character in the fourth collation level instead of IGNORE for all
14674 entries which have IGNORE on all 4 levels.
14675
14676 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14677
14678 * localedata/locales/iso14651_t1_common: Add some convenient collation
14679 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14680 rules similar to those in CLDR.
14681
14682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14683
14684 * localedata/locales/iso14651_t1_common: The new version of this
14685 file downloaded from ISO contained several syntax errors which
14686 are fixed by this patch.
14687
14688 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14689
14690 * localedata/locales/iso14651_t1_common: replace all <U.....>
14691 with <U000.....> because glibc understands only 4 digit or 8 digit
14692
14693 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14694
14695 * localedata/locales/iso14651_t1_common: Necessary changes
14696 to make the file downloaded from ISO usable by glibc.
14697
14698 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14699
14700 [BZ #14095]
14701 * localedata/locales/iso14651_t1_common: Update file to
14702 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14703
14704 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14705
14706 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14707 of <nptl/pthreadP.h>
14708 (thread_attr_compare): Move function to...
14709 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14710 * sysdeps/nptl/timer_routines.h: ... new header.
14711 * sysdeps/mach/hurd/gai_misc.h: New file.
14712
14713 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14714
14715 * string/strcoll_l.c: Include <libc-diag.h>.
14716 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14717 declarations of seq1 and seq2.
14718
14719 [BZ #15105]
14720 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14721 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14722
14723 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14724
14725 [BZ #22433]
14726 [BZ #22807]
14727 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14728 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14729 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14730 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14731 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14732 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14733
14734 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14735
14736 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14737 macros used in __ptrace_request.
14738
14739 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14740
14741 [BZ #22792]
14742 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14743 to $(CC).
14744 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14745 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14746 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14747 <tcb-offsets.h>.
14748
14749 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14750
14751 [BZ #15105]
14752 * ctype/ctype.c (tolower): Use libc_hidden_def.
14753 (toupper): Likewise.
14754 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14755 [!_ISOMAC] (toupper): Likewise.
14756
14757 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14758
14759 * localedata/Makefile: Remove --quiet argument when
14760 installing locales
14761
14762 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14763
14764 [BZ #17438]
14765 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14766 in d_fmt.
14767 * localedata/locales/pt_PT (LC_TIME): likewise
14768
14769 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14770
14771 [BZ #22646]
14772 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14773 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14774 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14775
14776 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14777
14778 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14779
14780 * nptl/Makefile (routines): Remove unregister-atfork.
14781 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14782 (fork_handler_alloc): Remove function.
14783 (fork_handlers, fork_handler_init): New variables.
14784 (__fork_lock): Rename to atfork_lock.
14785 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14786 to use a dynamic array to add/remove atfork handlers.
14787 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14788 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14789 Remove declaration.
14790 (fork_handler): Remove next, refcntr, and need_signal member.
14791 (__run_fork_handler_type): New enum.
14792 (__run_fork_handlers): New prototype.
14793 * nptl/register-atfork.c: Remove file.
14794 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14795
14796 * sysdeps/nptl/nptl-signals.h: Move to ...
14797 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14798 comments.
14799 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14800 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14801 unnecessary check for SIGTIMER.
14802 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14803 remove unnecessary removal of SIGTIMER.
14804 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14805 include-signals.h rename.
14806 * nptl/pthreadP.h: Likewise.
14807 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14808 __is_internal_signal instead of __nptl_is_internal_signal.
14809
14810 2018-02-22 Andrew Waterman <andrew@sifive.com>
14811
14812 [BZ # 22884]
14813 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14814 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14815 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14816 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14817
14818 2018-02-22 DJ Delorie <dj@delorie.com>
14819
14820 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14821
14822 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14823
14824 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14825 do_misaligned, not misaligned8.
14826
14827 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14828
14829 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14830 Add memcpy_thunderx2.
14831 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14832 Increment to 4.
14833 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14834 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14835 and IS_THUNDERX2PA checks.
14836 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14837 Use macro to set name appropriately.
14838 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14839 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14840 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14841 New macro.
14842 (IS_THUNDERX2): New macro.
14843
14844 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14845
14846 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14847
14848 2018-02-21 Zack Weinberg <zackw@panix.com>
14849
14850 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14851 Define here, unconditionally.
14852 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14853 * libio/libioP.h: Remove #if 0 blocks.
14854 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14855 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14856 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14857
14858 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14859 Assume weak_alias is always defined.
14860
14861 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14862 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14863 Remove #if 0 and #ifdef TODO blocks.
14864 Assume text_set_element is always defined.
14865
14866 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14867 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14868 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14869
14870 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14871 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14872 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14873 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14874 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14875 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14876 Reformat bit flags for _flags field to make occupancy clearer.
14877 Update commentary.
14878 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14879 Keep definitions consistent with those in libio/libio.h.
14880
14881 * libio/libio.h (_IO_file_flags): Remove macro.
14882 All uses changed to _flags.
14883
14884 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14885 (__HAVE_COLUMN, _IO_BE): Don't define.
14886 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14887 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14888 * libio/libioP.h (EOF): Don't define.
14889 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14890 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14891 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14892 testing _IO_UNIFIED_JUMPTABLES.
14893
14894 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14895 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14896 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14897 (_IO_size_t): Delete; all uses changed to size_t.
14898 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14899 (_IO_off_t): Delete; all uses changed to off_t.
14900 (_IO_off64_t): Delete; all uses changed to off64_t.
14901 (_IO_pid_t): Delete; all uses changed to pid_t.
14902 (_IO_uid_t): Delete; all uses changed to uid_t.
14903 (_IO_wint_t): Delete; all uses changed to wint_t.
14904 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14905 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14906 (_IO_cookie_io_functions_t): Delete; all uses changed to
14907 cookie_io_functions_t.
14908 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14909 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14910 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14911 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14912
14913 * libio/iofopncook.c: Remove unnecessary forward declarations.
14914 * libio/iolibio.h: Correct outdated commentary.
14915 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14916 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14917 Remove unnecessary casts.
14918 * stdio-common/getline.c: Use _IO_getdelim directly.
14919 Don't redefine ssize_t.
14920 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14921 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14922 Remove outdated comments.
14923 * stdio-common/vfscanf.c: Don't redefine va_list.
14924
14925 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14926 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14927 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14928 which are always true, and __cplusplus, which is always false.
14929
14930 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14931
14932 [BZ #15105]
14933 [BZ #19463]
14934 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14935 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14936 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14937 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14938 libc_hidden_proto.
14939 [!_ISOMAC] (putc_unlocked): Likewise.
14940 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14941 define inline if [__USE_EXTERN_INLINES].
14942 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14943 putc_unlocked.
14944
14945 [BZ #15105]
14946 [BZ #19463]
14947 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14948 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14949 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14950 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14951 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14952 getc_unlocked.
14953 * time/tzfile.c (__tzfile_read): Likewise.
14954
14955 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14956
14957 [BZ #22517]
14958 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14959
14960 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14961
14962 * io/fcntl.h: Fix a typo in a comment.
14963
14964 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14965
14966 [BZ #22862]
14967 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14968 define _DEFAULT_SOURCE.
14969 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14970
14971 2018-02-21 Florian Weimer <fweimer@redhat.com>
14972
14973 [BZ #20890]
14974 * elf/cache.c (save_cache): Call fsync on temporary file before
14975 renaming it.
14976 (save_aux_cache): Call fdatasync on temporary file before renaming
14977 it.
14978
14979 2018-02-21 Florian Weimer <fweimer@redhat.com>
14980
14981 [BZ #22787]
14982 * include/caller.h: Remove file.
14983 * elf/dl-caller.c: Likewise.
14984 * elf/Makefile (dl-routines): Remove dl-caller.
14985 (shared-only-routines): Do not add dl-caller.
14986 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14987 __check_caller.
14988 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14989 member.
14990 (dl_open_worker): Do not call __check_caller.
14991 (_dl_open): Do not set caller_dl_open member.
14992 * elf/rtld.c (_rtld_global_ro): Do not initialize
14993 _dl_check_caller member.
14994 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14995 _dl_check_caller member.
14996 (_dl_check_caller): Remove declaration.
14997 * sysdeps/unix/sysv/linux/dl-execstack.c
14998 (_dl_make_stack_executable): Do not call __check_caller.
14999
15000 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15001
15002 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15003 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15004
15005 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15006
15007 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15008 description.
15009
15010 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15011
15012 [BZ #16335]
15013 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15014 of 199606L, 200112L, and 200809L.
15015 (_XOPEN_SOURCE): Document special values of 600 and 700.
15016 (_ISOC11_SOURCE): Document macro.
15017 (_ATFILE_SOURCE): Likewise.
15018 (_FORTIFY_SOURCE): Likewise.
15019
15020 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15021
15022 [BZ #15105]
15023 [BZ #19463]
15024 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15025 and define as weak alias of __ferror_unlocked. Use
15026 libc_hidden_weak.
15027 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15028 libc_hidden_proto.
15029 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15030 function if [__USE_EXTERN_INLINES].
15031 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15032 ferror_unlocked.
15033
15034 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15035
15036 [BZ #6889]
15037 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15038
15039 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15040
15041 [BZ #22818]
15042 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15043 the GLIBC_2.1 version.
15044
15045 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15046
15047 [BZ #21508]
15048 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15049 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15050 intl/tst-gettext-de.po from po/de.po by removing the
15051 POT-Creation-Date line.
15052 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15053 ../po/de.po.
15054 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15055 ../po/de.po.
15056
15057 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15058
15059 * mach/Makefile (headers): Add mach/param.h.
15060 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15061 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15062 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15063 (__ptsname_r): Move implementation to...
15064 (__ptsname_internal): ... new function. Add filling the STP
15065 structure.
15066
15067 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15068
15069 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15070 idouble to 1 ULP.
15071
15072 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15073
15074 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15075 syntax.
15076
15077 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15078
15079 * nptl/Makefile (tst-mutex8-ENV): Delete.
15080 * nptl/tst-mutex8.c (check_type):
15081 Add runtime check if mutex will be elided.
15082
15083 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15084
15085 [BZ #20980]
15086 [BZ #21234]
15087 * manual/install.texi (Configuring and compiling): Describe
15088 passing CC and CFLAGS on configure command line, not as
15089 environment variables. Use @code markup on those variables.
15090 Specify what options go in CC and what go in CFLAGS. Note the
15091 requirement to compile with optimization.
15092 * INSTALL: Regenerated.
15093
15094 [BZ #18124]
15095 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15096 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15097 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15098 __sigprocmask instead of sigprocmask.
15099 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15100 Likewise.
15101 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15102 __sigsetjmp and sigprocmask.
15103
15104 [BZ #15105]
15105 * include/argz.h (argz_next): Use libc_hidden_proto.
15106 (__argz_next): Likewise.
15107 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15108 (argz_next): Use libc_hidden_weak.
15109
15110 [BZ #15105]
15111 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15112 libc_hidden_proto.
15113 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15114 libc_hidden_def.
15115
15116 [BZ #15105]
15117 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15118 libc_hidden_proto.
15119 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15120
15121 [BZ #15105]
15122 [BZ #19463]
15123 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15124 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15125 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15126 (__feof_unlocked): New declaration, and inline function if
15127 [__USE_EXTERN_INLINES].
15128 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15129 instead of feof_unlocked.
15130 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15131 * nss/nsswitch.c (nss_parse_file): Likewise.
15132 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15133 Likewise.
15134 * time/getdate.c (__getdate_r): Likewise.
15135 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15136 Define as macro to call __feof_unlocked.
15137
15138 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15139
15140 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15141
15142 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15143
15144 * math/Makefile: Remove mpexp.c and mplog.c
15145 * sysdeps/i386/fpu/mpexp.c: Delete file.
15146 * sysdeps/i386/fpu/mplog.c: Likewise.
15147 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15148 * sysdeps/ia64/fpu/mplog.c: Likewise.
15149 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15150 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15151 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15152 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15153 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15154 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15155 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15156 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15157 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15158 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15159 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15160 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15161 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15162 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15163 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15164 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15165
15166 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15167
15168 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15169
15170 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15171
15172 * sysdeps/sh/libm-test-ulps: Update.
15173
15174 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15175
15176 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15177 idouble to 1 ULP.
15178
15179 2018-02-12 Zack Weinberg <zackw@panix.com>
15180
15181 [BZ #19239]
15182 * posix/sys/types.h: Don't include sys/sysmacros.h.
15183 * misc/sys/sysmacros.h: Remove the conditional deprecation
15184 warnings for the macros defined by this header.
15185
15186 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15187
15188 * manual/probes.texi: Remove slowexp probes.
15189 * math/Makefile: Remove slowexp.
15190 * sysdeps/generic/math_private.h (__slowexp): Remove.
15191 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15192 document error bounds.
15193 * sysdeps/i386/fpu/slowexp.c: Remove.
15194 * sysdeps/ia64/fpu/slowexp.c: Remove.
15195 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15196 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15197 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15198 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15199 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15200 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15201 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15202 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15203 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15204 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15205 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15206
15207 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15208
15209 [BZ #13932]
15210 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15211 * benchtests/pow-inputs: Update comment for slow path cases.
15212 * manual/probes.texi (slowpow_p10): Delete removed probe.
15213 (slowpow_p10): Likewise.
15214 * math/Makefile: Remove halfulp.c and slowpow.c.
15215 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15216 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15217 (__halfulp): Remove.
15218 (__slowpow): Remove.
15219 * sysdeps/i386/fpu/halfulp.c: Delete file.
15220 * sysdeps/i386/fpu/slowpow.c: Likewise.
15221 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15222 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15223 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15224 improve comments and add error analysis.
15225 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15226 (power1): Remove function:
15227 (log1): Remove error argument, add error analysis.
15228 (my_log2): Remove function.
15229 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15230 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15231 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15232 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15233 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15234 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15235 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15236 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15237 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15238 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15239 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15240 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15241 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15242 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15243
15244 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15245
15246 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15247 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15248
15249 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15250
15251 [BZ #22433]
15252 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15253 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15254 and PTRACE_SETHBPREGS.
15255
15256 2018-02-10 Zack Weinberg <zackw@panix.com>
15257
15258 [BZ #22830]
15259 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15260 correctly.
15261 * malloc/tst-malloc-stats-cancellation.c: New test case.
15262 * malloc/Makefile: Add new test case.
15263
15264 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15265
15266 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15267
15268 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15269
15270 * math/Makefile (libm-narrow-fns): Add add.
15271 (libm-test-funcs-narrow): Likewise.
15272 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15273 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15274 * math/gen-auto-libm-tests.c (test_functions): Add add.
15275 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15276 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15277 (NARROW_ADD_TRIVIAL): Likewise.
15278 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15279 macro.
15280 (__daddl): Likewise.
15281 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15282 dadd.
15283 (CFLAGS-nldbl-dadd.c): New variable.
15284 (CFLAGS-nldbl-fadd.c): Likewise.
15285 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15286 __nldbl_daddl.
15287 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15288 prototype.
15289 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15290 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15291 * math/auto-libm-test-in: Add tests of add.
15292 * math/auto-libm-test-out-narrow-add: New generated file.
15293 * math/libm-test-narrow-add.inc: New file.
15294 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15295 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15296 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15297 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15298 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15299 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15300 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15301 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15302 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15303 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15304 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15305 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15306 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15307 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15308 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15309 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15310 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15311 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15312 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15313 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15315 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15316 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15317 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15318 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15319 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15320 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15321 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15322 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15323 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15324 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15325 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15330 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15331 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15332 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15333 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15334 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15335 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15336 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15337 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15338 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15339 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15340
15341 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15342 (f128-pairs): New variable.
15343 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15344 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15345 to CFLAGS.
15346 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15347 Also make tests add $(f128-loader-link) to gnulib-tests.
15348
15349 2018-02-09 DJ Delorie <dj@redhat.com>
15350
15351 [BZ #22827]
15352 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15353 64-bit ELF type for 64-bit ELF objects.
15354
15355 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15356
15357 * math/libm-test-driver.c (snan_tests_arg): New variable.
15358 * math/libm-test-support.h (snan_tests_arg): New declaration.
15359 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15360
15361 * math/Makefile (test-type-pairs): New variable.
15362 (test-type-pairs-f64xf128-yes): Likewise.
15363 (tests): Add test-narrow-macros.
15364 (libm-test-funcs-narrow): New variable.
15365 (libm-test-c-narrow): Likewise.
15366 (generated): Add $(libm-test-c-narrow).
15367 (libm-tests-base-narrow): New variable.
15368 (libm-tests-narrow): Likewise.
15369 (libm-tests): Add $(libm-tests-narrow).
15370 (libm-tests-for-type): Handle $(libm-tests-narrow).
15371 (libm-test-c-narrow-obj): New variable.
15372 ($(libm-test-c-narrow-obj)): New rule.
15373 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15374 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15375 $(o-iterator) to set dependencies and CFLAGS.
15376 * math/gen-auto-libm-tests.c: Document use for narrowing
15377 functions.
15378 (output_for_one_input_case): Take argument NARROW.
15379 (generate_output): Likewise. Update call to
15380 output_for_one_input_case.
15381 (main): Take --narrow option. Update call to generate_output.
15382 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15383 (apply_lit): Update call to _apply_lit.
15384 (apply_arglit): New function.
15385 (parse_args): Handle "a" arguments.
15386 (parse_auto_input): Handle format names using ":".
15387 * math/README.libm-test: Document "a" parameter type.
15388 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15389 (ARG_TYPE_TRUE_MIN): Likewise.
15390 (ARG_TYPE_MAX): Likwise.
15391 (ARG_MIN_EXP): Likewise.
15392 (ARG_MAX_EXP): Likewise.
15393 (ARG_MANT_DIG): Likewise.
15394 (TEST_COND_arg_ibm128): Likewise.
15395 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15396 (TEST_COND_arg_fmt): New macro.
15397 (init_max_error): Update prototype.
15398 * math/libm-test-support.c (test_ibm128): New variable.
15399 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15400 instead of using [TEST_COND_ibm128] conditional.
15401 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15402 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15403 [TEST_NARROW] (TEST_MSG): New definition.
15404 (arg_plus_zero): New macro.
15405 (arg_minus_zero): Likewise.
15406 (arg_plus_infty): Likewise.
15407 (arg_minus_infty): Likewise.
15408 (arg_qnan_value_pl): Likewise.
15409 (arg_qnan_value): Likewise.
15410 (arg_snan_value_pl): Likewise.
15411 (arg_snan_value): Likewise.
15412 (arg_max_value): Likewise.
15413 (arg_min_value): Likewise.
15414 (arg_min_subnorm_value): Likewise.
15415 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15416 (RUN_TEST_LOOP_aa_f): New macro.
15417 (TEST_SUFF): New macro.
15418 (TEST_SUFF_STR): Likewise.
15419 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15420 (TEST_COND_any_ibm128): New macro.
15421 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15422 this_func. Update call to init_max_error.
15423 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15424 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15425 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15426 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15427 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15428 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15429 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15430 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15431 * math/test-math-vector.h (TEST_NARROW): Likewise.
15432 * math/test-arg-double.h: New file.
15433 * math/test-arg-float128.h: Likewise.
15434 * math/test-arg-float32x.h: Likewise.
15435 * math/test-arg-float64.h: Likewise.
15436 * math/test-arg-float64x.h: Likewise.
15437 * math/test-arg-ldouble.h: Likewise.
15438 * math/test-math-narrow.h: Likewise.
15439 * math/test-narrow-macros.c: Likewise.
15440 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15441 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15442 test-narrow-macros-ldbl-64.
15443 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15444
15445 * math/bits/mathcalls-narrow.h: New file.
15446 * include/bits/mathcalls-narrow.h: Likewise.
15447 * math/math-narrow.h: Likewise.
15448 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15449 (__MATHCALL_NARROW_ARGS_2): Likewise.
15450 (__MATHCALL_NARROW_ARGS_3): Likewise.
15451 (__MATHCALL_NARROW_NORMAL): Likewise.
15452 (__MATHCALL_NARROW_REDIR): Likewise.
15453 (__MATHCALL_NARROW): Likewise.
15454 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15455 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15456 defined.
15457 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15458 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15459 (libm-narrow-fns): New variable.
15460 (libm-narrow-types-basic): Likewise.
15461 (libm-narrow-types-ldouble-yes): Likewise.
15462 (libm-narrow-types-float128-yes): Likewise.
15463 (libm-narrow-types-float128-alias-yes): Likewise.
15464 (libm-narrow-types): Likewise.
15465 (libm-routines): Add narrowing functions.
15466 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15467 (libc_feholdexcept_setroundf128): New macro.
15468 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15469 * sysdeps/ieee754/float128/float128_private.h: Include
15470 <math/math-narrow.h>.
15471 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15472 Undefine and redefine.
15473 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15474 (libm_alias_float_ldouble): Undefine and redefine.
15475 (libm_alias_double_ldouble): Likewise.
15476
15477 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15478
15479 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15480
15481 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15482 FPCR/FPSR.
15483
15484 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15485
15486 * manual/creature.texi: Convert references to gcc.info to gcc.
15487 * manual/stdio.texi: Likewise.
15488 * manual/string.texi: Likewise.
15489
15490 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15491
15492 [BZ #17979]
15493 * posix/bits/types.h (__int_least8_t): New typedef.
15494 (__uint_least8_t): Likewise.
15495 (__int_least16_t): Likewise.
15496 (__uint_least16_t): Likewise.
15497 (__int_least32_t): Likewise.
15498 (__uint_least32_t): Likewise.
15499 (__int_least64_t): Likewise.
15500 (__uint_least64_t): Likewise.
15501 * sysdeps/generic/stdint.h (int_least8_t): Define using
15502 __int_least8_t.
15503 (int_least16_t): Define using __int_least16_t.
15504 (int_least32_t): Define using __int_least32_t.
15505 (int_least64_t): Define using __int_least64_t.
15506 (uint_least8_t): Define using __uint_least8_t.
15507 (uint_least16_t): Define using __uint_least16_t.
15508 (uint_least32_t): Define using __uint_least32_t.
15509 (uint_least64_t): Define using __uint_least64_t.
15510 * wcsmbs/uchar.h: Include <bits/types.h>.
15511 (char16_t): Define using __uint_least16_t conditional only on
15512 [!__USE_ISOCXX11].
15513 (char32_t): Define using __uint_least32_t conditional only on
15514 [!__USE_ISOCXX11].
15515 * wcsmbs/test-char-types.c: New file.
15516 * wcsmbs/Makefile (tests): Add test-char-types.
15517
15518 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15519 version to 4.0.1.
15520
15521 2018-02-07 Zack Weinberg <zackw@panix.com>
15522
15523 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15524 Delete all contents except for definitions of _G_HAVE_MMAP and
15525 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15526 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15527 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15528 change as above.
15529
15530 * libio/libio.h: Don't include bits/_G_config.h here.
15531 Include stddef.h with __need_wchar_t defined. Include
15532 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15533 Define _IO_iconv_t here, directly.
15534 Don't define _IO_HAVE_ST_BLKSIZE.
15535 * libio/libioP.h: Include _G_config.h here. Move include of
15536 shlib-compat.h up with rest of includes. Simplify conditionals
15537 controlling definition of _IO_JUMPS_OFFSET.
15538
15539 * csu/init.c: Remove always-true #if around entire file.
15540 Don't include stdio.h. Set _IO_stdin_used to hardwired
15541 constant 0x20001, and update commentary.
15542 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15543 Replace all uses of _G_va_list with __gnuc_va_list.
15544 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15545 instead of #if _IO_HAVE_ST_BLKSIZE.
15546 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15547 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15548 not #ifdef.
15549
15550 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15551 multiple-include guard to match.
15552 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15553 into this file.
15554 Remove preprocessor conditionals that are always true and/or
15555 redundant to other preprocessor conditionals in the same nest.
15556 Include shlib-compat.h unconditionally.
15557 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15558 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15559 defined after including stdio.h.
15560 Use __BEGIN_DECLS/__END_DECLS.
15561
15562 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15563 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15564 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15565
15566 2018-02-07 Zack Weinberg <zackw@panix.com>
15567
15568 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15569 New single-type headers split from _G_config.h.
15570 * libio/bits/types/cookie_io_functions_t.h
15571 * libio/bits/types/struct_FILE.h
15572 New single-type headers split from libio.h.
15573
15574 * libio/Makefile: Install the above new headers. Don't install
15575 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15576 bits/libio-ldbl.h.
15577 * libio/_G_config.h, libio/libio.h: Delete file.
15578
15579 * libio/bits/libio.h: Remove improper-inclusion guard.
15580 Include stdio.h and don't repeat anything that it does.
15581 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15582 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15583 __io_read_fn as cookie_read_function_t,
15584 __io_write_fn as cookie_write_function_t,
15585 __io_seek_fn as cookie_seek_function_t,
15586 __io_close_fn as cookie_close_function_t,
15587 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15588 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15589 here, in the "compatibility defines" section. Remove an #if 0
15590 block. Use the "body" macros from bits/types/struct_FILE.h to
15591 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15592 and _IO_ferror_unlocked.
15593 Move prototypes of __uflow and __overflow...
15594
15595 * libio/stdio.h: ...here. Don't include bits/libio.h.
15596 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15597 directly from stdarg.h. Include bits/types/__fpos_t.h,
15598 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15599 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15600 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15601 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15602 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15603 __ssize_t, not _IO_ssize_t. Unconditionally define
15604 BUFSIZ as 8192 and EOF as (-1).
15605
15606 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15607 macros from bits/types/struct_FILE.h instead of _IO_* macros
15608 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15609 instead of _IO_ssize_t.
15610 * libio/bits/stdio2.h: Similarly.
15611
15612 * libio/iolibio.h: Add multiple-include guard.
15613 Include bits/libio.h after stdio.h.
15614 * libio/libioP.h: Add multiple-include guard.
15615 Include stdio.h and bits/libio.h before iolibio.h.
15616
15617 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15618 * include/bits/types/cookie_io_functions_t.h
15619 * include/bits/types/struct_FILE.h: New wrappers.
15620
15621 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15622 Get definitions of _G_fpos_t and _G_fpos64_t from
15623 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15624 respectively. Remove improper-inclusion guards.
15625
15626 * conform/data/stdio.h-data: Update expectations of va_list.
15627 * scripts/check-installed-headers.sh: Remove special case for
15628 libio.h and _G_config.h.
15629
15630 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15631
15632 [BZ #15105]
15633 [BZ #19463]
15634 * include/sys/sysmacros.h [!_ISOMAC]
15635 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15636 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15637 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15638 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15639 libc_hidden_proto.
15640 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15641 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15642 Likewise.
15643 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15644 Undefine and redefine to add use __gnu_dev_ prefix.
15645 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15646 Likewise.
15647 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15648 and define as hidden inline function.
15649 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15650 Likewise.
15651 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15652 Likewise.
15653 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15654 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15655 (gnu_dev_minor): Likewise.
15656 (gnu_dev_makedev): Likewise.
15657 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15658 makedev.
15659 * posix/wordexp.c (exec_comm_child): Likewise.
15660 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15661 instead of minor and __gnu_dev_major instead of major.
15662 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15663 __gnu_dev_major instead of major.
15664 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15665 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15666 instead of gnu_dev_minor.
15667 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15668 (SLAVE_P): Likewise.
15669 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15670 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15671 instead of major.
15672
15673 [BZ #21313]
15674 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15675 in another place.
15676 * locale/weightwc.h (findidx): Likewise.
15677
15678 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15679
15680 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15681 (slowlog_inexact): Likewise
15682 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15683 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15684
15685 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15686
15687 [BZ #22797]
15688 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15689 missing second underscore to parameter name.
15690
15691 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15692
15693 [BZ #14508]
15694 [BZ #15512]
15695 [BZ #17082]
15696 [BZ #20530]
15697 * bits/byteswap.h: Update file comment. Do not include
15698 <bits/byteswap-16.h>.
15699 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15700 constant.
15701 (__bswap_16): Define as inline function.
15702 (__bswap_constant_32): Reformat definition.
15703 (__bswap_32): Always define as inline function, not macro, using
15704 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15705 otherwise __bswap_constant_32.
15706 (__bswap_constant_64): Reformat definition. Do not use
15707 __extension__ here.
15708 (__bswap_64): Always define as inline function, not macro. Use
15709 __extension__ on function definition. Use __builtin_bswap64 if
15710 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15711 * string/test-endian-file-scope.c: New file.
15712 * string/test-endian-sign-conversion.c: Likewise.
15713 * string/Makefile (headers): Remove bits/byteswap-16.h.
15714 (tests): Add test-endian-file-scope and
15715 test-endian-sign-conversion.
15716 (CFLAGS-test-endian-sign-conversion.c): New variable.
15717 * bits/byteswap-16.h: Remove file.
15718 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15719 * sysdeps/ia64/bits/byteswap.h: Likewise.
15720 * sysdeps/m68k/bits/byteswap.h: Likewise.
15721 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15722 * sysdeps/s390/bits/byteswap.h: Likewise.
15723 * sysdeps/tile/bits/byteswap.h: Likewise.
15724 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15725 * sysdeps/x86/bits/byteswap.h: Likewise.
15726
15727 [BZ #17721]
15728 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15729 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15730 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15731 199901L] (__restrict): Define to restrict.
15732
15733 [BZ #19667]
15734 * string/testcopy.c: Include <support/support.h>. Do not include
15735 <malloc.h>. Use <support/test-driver.c>.
15736 (main): Rename to do_test. Make static. Use xmalloc instead of
15737 malloc.
15738
15739 [BZ #13575]
15740 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15741 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15742 (SSIZE_MAX): Define to INT_MAX.
15743 * posix/test-ssize-max.c: New file.
15744 * posix/Makefile (tests): Add test-ssize-max.
15745
15746 [BZ #19668]
15747 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15748 <support/support.h>. Do not include <malloc.h>.
15749 (query_auxv): Use xmalloc instead of malloc.
15750
15751 [BZ #14553]
15752 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15753 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15754 instead of loff_t.
15755
15756 2018-02-06 Florian Weimer <fweimer@redhat.com>
15757
15758 [BZ #18023]
15759 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15760 Use scratch_buffer instead of extend_alloca.
15761
15762 2018-02-06 Zack Weinberg <zackw@panix.com>
15763
15764 * libio/stdio.h: Don't define getc or putc as macros.
15765 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15766 not _IO_getc and _IO_putc.
15767
15768 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15769 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15770
15771 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15772
15773 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15774 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15775
15776 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15777
15778 [BZ #14890]
15779 * elf/elf.h (NT_PRFPREG): New macro.
15780 (NT_S390_VXRS_LOW): Likewise.
15781 (NT_S390_VXRS_HIGH): Likewise.
15782 (NT_S390_GS_CB): Likewise.
15783 (NT_S390_GS_BC): Likewise.
15784 (NT_S390_RI_CB): Likewise.
15785
15786 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15787 (MAP_SYNC): New macro.
15788 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15789 Likewise.
15790 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15791 (MAP_SYNC): Likewise.
15792 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15793 (MAP_SYNC): Likewise.
15794 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15795 (MAP_SYNC): Likewise.
15796 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15797 (MAP_SYNC): Likewise.
15798 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15799 (MAP_SYNC): Likewise.
15800 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15801 (MAP_SYNC): Likewise.
15802 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15803 Likewise.
15804 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15805 Likewise.
15806
15807 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15808 (MAP_SHARED_VALIDATE): New macro.
15809 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15810 (MAP_SHARED_VALIDATE): Likewise.
15811
15812 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15813
15814 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15815 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15816 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15817
15818 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15819
15820 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15821 (DT_NUM): Updated to 35.
15822
15823 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15824
15825 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15826 __builtin_expect with __glibc_likely and __glibc_unlikely.
15827 (elf_machine_rela): Likewise.
15828 (elf_machine_lazy_rel): Likewise.
15829
15830 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15831
15832 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15833 __builtin_expect with __glibc_likely and __glibc_unlikely.
15834 (elf_machine_lazy_rel): Likewise.
15835
15836 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15837
15838 [BZ #22638]
15839 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15840 SHARED.
15841 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15842
15843 2018-02-05 Andreas Schwab <schwab@suse.de>
15844
15845 [BZ #22761]
15846 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15847 string.
15848
15849 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15850
15851 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15852 not check against PTHREAD_STACK_MIN.
15853
15854 2018-02-02 Sean McKean <smckean83@gmail.com>
15855
15856 [BZ #22735]
15857 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15858
15859 2018-02-02 Florian Weimer <fweimer@redhat.com>
15860
15861 [BZ #22753]
15862 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15863 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15864 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15865 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15866 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15867 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15868 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15869 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15870 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15871 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15872 * misc/tst-preadvwritev2.c (do_test): Call it.
15873 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15874
15875 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15876
15877 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15878
15879 * benchtests/bench-memcmp.c: Print json instead of plain text.
15880
15881 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15882 every test run.
15883
15884 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15885
15886 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15887 version to 4.15.
15888 (s390_sthyi): New syscall.
15889
15890 * sysdeps/generic/ldbl-classify-compat.h: New file.
15891 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15892 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15893 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15894 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15895 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15896 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15897 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15898 <ldbl-classify-compat.h>.
15899 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15900 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15901 <ldbl-classify-compat.h>.
15902 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15903 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15904 <ldbl-classify-compat.h>.
15905 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15906 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15907 <ldbl-classify-compat.h>.
15908 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15909 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15910 <ldbl-classify-compat.h>.
15911 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15912 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15913 <ldbl-classify-compat.h>.
15914 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15915 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15916 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15917 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15918 * sysdeps/microblaze/math_private.h: Likewise.
15919 * sysdeps/nios2/math_private.h: Likewise.
15920 * sysdeps/sh/math_private.h: Likewise.
15921
15922 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15923 * sysdeps/m68k/coldfire/math_private.h: ... here.
15924 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15925 * sysdeps/tile/math_private.h: Likewise.
15926 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15927 Remove macro.
15928 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15929 Likewise.
15930
15931 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15932 Remove macro.
15933 (libc_fetestexcept): Likewise.
15934 (libc_feupdateenv_test): Likewise.
15935 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15936 (libc_fetestexcept): Likewise.
15937 (libc_feupdateenv_test): Likewise.
15938 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15939 (libc_fetestexcept): Likewise.
15940 (libc_feupdateenv_test): Likewise.
15941 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15942 (libc_fetestexcept): Likewise.
15943 (libc_feupdateenv_test): Likewise.
15944
15945 * sysdeps/generic/math_private.h
15946 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15947 New inline function.
15948 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15949 Likewise.
15950
15951 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15952 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15953 * sysdeps/generic/math_private.h
15954 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15955 inline function.
15956 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15957 Likewise.
15958 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15959 Likewise.
15960 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15961 Likewise.
15962 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15963 Likewise.
15964 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15965 Likewise.
15966 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15967 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15968 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15969 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15970 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15971 (__fegetenv): Likewise.
15972 (fesetenv): Likewise.
15973 (__fesetenv): Likewise.
15974 (feupdateenv): Likewise.
15975 (__feupdateenv): Likewise.
15976 (fegetround): Likewise.
15977 (__fegetround): Likewise.
15978 (fesetround): Likewise.
15979 (__fesetround): Likewise.
15980
15981 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15982 (feraiseexcept): New macro.
15983 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15984 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15985 Remove macro.
15986 (__feraiseexcept): Likewise.
15987 (feclearexcept): Likewise.
15988 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15989 (__feraiseexcept): Likewise.
15990 (feclearexcept): Likewise.
15991 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15992 (__feraiseexcept): Likewise.
15993 (feclearexcept): Likewise.
15994 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15995 (__feraiseexcept): Likewise.
15996 (feclearexcept): Likewise.
15997 (fetestexcept): Likewise.
15998
15999 * sysdeps/m68k/coldfire/math-tests.h: New file.
16000
16001 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16002 * sysdeps/m68k/bits/fenv.h: ... here.
16003 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16004 not define.
16005 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16006 Likewise.
16007 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16008 Likewise.
16009 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16010 Likewise.
16011 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16012 Likewise.
16013 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16014 Define to 0.
16015 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16016 (__FE_UNDEFINED): New enum constant.
16017 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16018 Do not define.
16019 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16020 Likewise.
16021 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16022 Likewise.
16023 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16024 to match generic bits/fenv.h.
16025 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16026 Do not define.
16027
16028 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16029 packed on bits.
16030 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16031 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16032 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16033 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16034
16035 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16036 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16037 Joseph Myers <joseph@codesourcery.com>
16038
16039 [BZ #21314]
16040 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16041 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16042 computation using c.
16043 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16044 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16045 computation using c.
16046
16047 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16048
16049 * version.h (RELEASE): Set to "development".
16050 (VERSION): Set to "2.27.9000".
16051 * NEWS (2.28): New section.
16052
16053 * version.h (RELEASE): Set to "stable".
16054 (VERSION): Set to "2.27".
16055 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16056
16057 * NEWS: Add the list of bugs fixed in 2.27.
16058
16059 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16060
16061 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16062 against PTHREAD_STACK_MIN.
16063
16064 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16065
16066 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16067 New entries.
16068 (Rafal Luzynski, Andreas Schwab): Update.
16069
16070 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16071
16072 [BZ #10871]
16073 * NEWS: List the languages which actually use the alternative
16074 months feature in this release. Also explain that "alt_mon" and
16075 "ab_alt_mon" are optional.
16076
16077 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16078
16079 [BZ #22765]
16080 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16081
16082 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16083
16084 * manual/install.texi (Tools for Compilation): Update the newest
16085 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16086 * INSTALL: Regenerated.
16087
16088 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16089
16090 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16091 instead of __builtin_expect.
16092
16093 2018-01-30 Florian Weimer <fweimer@redhat.com>
16094
16095 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16096 data.
16097 * nss/tst-nss-getpwent.c (do_test): Likewise.
16098
16099 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16100
16101 [BZ #10871]
16102 * localedata/locales/hr_HR (mon): Rename to...
16103 (alt_mon): This.
16104 (mon): Import from CLDR (genitive case).
16105 (d_t_fmt): Update the comment.
16106
16107 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16108
16109 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16110 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16111 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16112
16113 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16114
16115 * mach/Versions: Fix version when __mach_host_self_ was added.
16116 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16117 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16118 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16119 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16120 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16121 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16122 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16123 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16124 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16125 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16126 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16127 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16128 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16129 || to respect codestyle.
16130 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16131 (do_test_bz20181): Rename accordingly.
16132 * malloc/malloc.c: Include <assert.h>.
16133 (assert): Do not define.
16134 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16135 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16136 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16137 * sysdeps/mach/hurd/hp-timing.h: New file.
16138 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16139
16140 2018-01-29 Darius Rad <darius@bluespec.com>
16141
16142 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16143
16144 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16145
16146 * sysdeps/init_array/crti.S (.section .init_array): Add
16147 PREINIT_FUNCTION when defined.
16148 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16149 * config.h.in: Regenerate.
16150 * manual/platform.texi: Add RISC-V documenation for
16151 __riscv_flush_icache.
16152 * sysdeps/riscv/__longjmp.S: New file.
16153 * sysdeps/riscv/backtrace.c: Likewise.
16154 * sysdeps/riscv/bits/endian.h: Likewise.
16155 * sysdeps/riscv/bits/setjmp.h: Likewise.
16156 * sysdeps/riscv/bits/wordsize.h: Likewise.
16157 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16158 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16159 * sysdeps/riscv/dl-trampoline.S: Likewise.
16160 * sysdeps/riscv/gccframe.h: Likewise.
16161 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16162 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16163 * sysdeps/riscv/machine-gmon.h: Likewise.
16164 * sysdeps/riscv/memusage.h: Likewise.
16165 * sysdeps/riscv/setjmp.S: Likewise.
16166 * sysdeps/riscv/sys/asm.h: Likewise.
16167 * sysdeps/riscv/tls-macros.h: Likewise.
16168 * sysdeps/riscv/dl-tls.h: New file.
16169 * sysdeps/riscv/libc-tls.c: Likewise.
16170 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16171 * sysdeps/riscv/nptl/tls.h: Likewise.
16172 * sysdeps/riscv/stackinfo.h: Likewise.
16173 * sysdeps/riscv/bits/fenv.h: New file.
16174 * sysdeps/riscv/e_sqrtl.c: Likewise.
16175 * sysdeps/riscv/fpu_control.h: Likewise.
16176 * sysdeps/riscv/math-tests.h: Likewise.
16177 * sysdeps/riscv/nofpu/Implies: Likewise.
16178 * sysdeps/riscv/sfp-machine.h: Likewise.
16179 * sysdeps/riscv/tininess.h: Likewise.
16180 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16181 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16182 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16183 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16184 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16185 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16186 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16187 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16188 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16189 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16190 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16191 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16192 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16193 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16194 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16195 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16196 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16197 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16198 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16199 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16200 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16201 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16202 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16203 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16204 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16205 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16206 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16207 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16208 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16209 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16210 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16211 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16212 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16213 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16214 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16215 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16216 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16217 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16218 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16219 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16220 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16221 * sysdeps/riscv/rvf/math_private.h: Likewise.
16222 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16223 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16224 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16225 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16226 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16227 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16228 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16229 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16230 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16231 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16232 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16233 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16234 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16235 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16236 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16237 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16238 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16239 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16240 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16242 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16243 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16245 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16246 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16247 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16249 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16251 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16252 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16253 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16254 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16258 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16259 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16260 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16261 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16262 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16263 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16264 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16265 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16266 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16267 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16268 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16269 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16270 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16271 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16272 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16273 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16274 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16275 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16276 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16277 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16278 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16279 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16280 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16281 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16282 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16283 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16284 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16285 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16286 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16287 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16288 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16289 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16290 * sysdeps/riscv/Implies: New file.
16291 * sysdeps/riscv/Makefile: Likewise.
16292 * sysdeps/riscv/configure: Likewise.
16293 * sysdeps/riscv/configure.ac: Likewise.
16294 * sysdeps/riscv/nptl/Makefile: Likewise.
16295 * sysdeps/riscv/preconfigure: Likewise.
16296 * sysdeps/riscv/rv64/Implies-after: Likewise.
16297 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16298 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16299 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16300 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16301 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16302 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16303 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16304 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16305 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16306 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16307 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16308 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16309 (Config): Likewise.
16310
16311 2018-01-29 Florian Weimer <fweimer@redhat.com>
16312
16313 [BZ #22701]
16314 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16315 libnsl_hidden_proto.
16316 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16317 libnsl_hidden_proto.
16318 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16319 * nis/Makefile (libnsl-routines): Add nss-default only for
16320 build-obsolete-nsl.
16321 * nis/nis_defaults.c (__nis_default_ttl): Add
16322 libnsl_hidden_nolink_def.
16323 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16324 declaration.
16325 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16326 * nis/ypclnt.c (yp_maplist): Likewise.
16327
16328 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16329
16330 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16331 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16332
16333 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16334
16335 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16336 clean -dxfq for git updates when replacing sources.
16337
16338 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16339 --disable-libcilkrts unconditionally, not just for the final GCC
16340 build for Hurd.
16341
16342 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16343 version to 4.15.
16344
16345 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16346
16347 [BZ #10871]
16348 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16349 case).
16350
16351 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16352
16353 [BZ #10871]
16354 * localedata/locales/be_BY (mon): Rename to...
16355 (alt_mon): This, then synchronize with CLDR (nominative case).
16356 (abmon): Rename to...
16357 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16358 (mon): Import from CLDR (genitive case).
16359 (abmon): Likewise.
16360 * localedata/locales/be_BY@latin (mon): Rename to...
16361 (alt_mon): This.
16362 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16363
16364 * localedata/locales/be_BY@latin (lang_name): Reworded to
16365 "biełaruskaja mova".
16366
16367 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16368
16369 [BZ #10871]
16370 * localedata/locales/el_CY (mon): Renamed to...
16371 (alt_mon): This.
16372 (mon): Import from CLDR (genitive case).
16373 * localedata/locales/el_GR: Likewise.
16374
16375 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16376
16377 [BZ #10871]
16378 * localedata/locales/ru_RU (mon): Rename to...
16379 (alt_mon): This.
16380 (abmon): Rename to...
16381 (ab_alt_mon): This.
16382 (mon): Import from CLDR (genitive case).
16383 (abmon): Copy from the old content except the 5th month which is
16384 now in the genitive case, even when abbreviated.
16385 * localedata/locales/ru_UA: Likewise.
16386 * time/tst-strptime.c (day_tests): Add an actual example of
16387 a difference between %b and %Ob in Russian.
16388
16389 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16390
16391 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16392 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16393 a `c' variable.
16394 * resolv/res-close.c: Include <stdlib.h>.
16395 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16396 <sys/wait.h>, <time.h>, <sys/uio.h>.
16397 (NOT_CANCEL_H): Add inclusion guard.
16398 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16399 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16400 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16401 return 0.
16402 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16403 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16404 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16405 instead of void *.
16406 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16407 timer_ptr2id to cast struct timer_node * to void *.
16408 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16409 --disable-libcilkrts to gcc configure.
16410 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16411 and make them the default for now.
16412 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16413 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16414 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16415 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16416 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16417 MACH_IPC_COMPAT.
16418 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16419 __task_terminate would ever return successfully.
16420 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16421 to global scope.
16422 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16423 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16424 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16425 critical section to make code simpler and avoid warning.
16426 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16427 critical section to make code simpler and avoid warning.
16428 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16429 const char * instead of char *.
16430 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16431 __hurd_file_name_split, hurd_file_name_split,
16432 __hurd_directory_name_split, hurd_directory_name_split,
16433 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16434 hurd_file_name_path_lookup): Make lookup function parameter take a
16435 const char *name instead of char *name.
16436 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16437 __hurd_directory_name_split): Likewise.
16438 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16439 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16440 * sysdeps/mach/hurd/check_native.c: New file.
16441 * sysdeps/mach/hurd/check_pf.c: New file.
16442 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16443 (__freeifaddrs): Define macro to freeifaddrs.
16444 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16445 * sysdeps/mach/libmachuser.abilist: New file.
16446 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16447 (do_test_bz20181): Rename accordingly.
16448 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16449 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16450 <sys/mount.h>.
16451 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16452 version only if __USE_EXTERN_INLINES is defined.
16453 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16454 __hurd_sockfail): Likewise.
16455 (_hurd_fd_get): Always declare functions, and provide inline versions
16456 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16457 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16458 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16459 _hurd_port_set): Always declare functions, and provide inline versions
16460 only if __USE_EXTERN_INLINES and _LIBC are defined and
16461 IS_IN(libc).
16462 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16463 _hurd_critical_section_unlock): Likewise.
16464 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16465 * __hurd_threadvar_location): Likewise.
16466 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16467 _hurd_userlink_clear): Likewise.
16468 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16469 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16470 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16471 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16472 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16473 __spin_lock_locked): Likewise.
16474 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16475 __spin_lock_locked): Likewise.
16476 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16477 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16478 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16479 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16480 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16481 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16482 _POSIX_NO_TRUNC): Define to 0.
16483 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16484 check size against PTHREAD_STACK_MIN.
16485 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16486 IS_IN(libpthread)]: Include <sigsetops.h>.
16487 * mach/Makefile (user-interfaces): Add mach/gnumach.
16488 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16489 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16490 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16491 instead of invalid -1.
16492 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16493 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16494 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16495 <net/ppp_defs.h>.
16496
16497 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16498
16499 * hurd/fcntl-internal.h: New file.
16500
16501 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16502
16503 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16504
16505 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16506
16507 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16508
16509 [BZ #22701]
16510 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16511 Build only shared objects.
16512
16513 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16514
16515 * README: Update for hppa.
16516
16517 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16518
16519 * sysdeps/sparc/fpu/libm-test-ulps: Update
16520 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16521
16522 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16523
16524 Revert:
16525
16526 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16527
16528 [BZ #22563]
16529 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16530 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16531 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16532 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16533 to feature_1.
16534
16535 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16536
16537 [BZ #22563]
16538 * bits/types/__cancel_jmp_buf_tag.h: New file.
16539 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16540 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16541 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16542 * nptl/Makefile (headers): Add
16543 bits/types/__cancel_jmp_buf_tag.h.
16544 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16545 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16546 * sysdeps/nptl/pthread.h: Include
16547 <bits/types/__cancel_jmp_buf_tag.h>.
16548 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16549 __cancel_jmp_buf.
16550 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16551
16552 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16553
16554 [BZ #10871]
16555 * localedata/locales/uk_UA (mon): Renamed to...
16556 (alt_mon): This.
16557 (alt_digits): "0" removed and then renamed to...
16558 (mon): This.
16559 (date_fmt): Definition changed not to use the alternative
16560 digits hack.
16561
16562 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16563
16564 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16565 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16566 * elf/elf.h (EF_RISCV_RVC): New define.
16567 (EF_RISCV_FLOAT_ABI): Likewise.
16568 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16569 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16570 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16571 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16572 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16573 define.
16574 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16575
16576 2018-01-25 Andreas Schwab <schwab@suse.de>
16577
16578 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16579 single quotes.
16580 * sysdeps/gnu/configure: Regenerate.
16581 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16582 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16584 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16585 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16586 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16587 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16588 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16589
16590 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16591
16592 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16593 URL, and run autoconf, make it the default for now.
16594
16595 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16596
16597 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16598 soft-float ColdFire configuration.
16599
16600 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16601 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16602 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16603
16604 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16605 MicroBlaze file.
16606
16607 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16608 ....
16609 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16610 ... here.
16611 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16612 New file.
16613
16614 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16615 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16616 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16617 file.
16618
16619 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16620
16621 [BZ #22742]
16622 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16623 Rename to __reserved and add comment.
16624 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16625 Rename to __reserved.
16626
16627 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16628
16629 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16630 i686-gnu configurations.
16631 (Context.run_builds): Include mig, gnumach and hurd in components
16632 considered.
16633 (Context.checkout): Add mig, gnumach and hurd to components.
16634 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16635 hurd.
16636 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16637 (Config.build): Install gnumach headers, build mig and install
16638 hurd headers for 'gnu' OS.
16639 (Config.install_gnumach_headers): New function.
16640 (Config.install_hurd_headers): Likewise.
16641 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16642 when building for 'gnu' OS.
16643
16644 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16645
16646 * manual/tunables.texi (Hardware Capability Tunables): Fix
16647 spelling.
16648
16649 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16650
16651 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16652 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16653 (ALTMON_11, ALTMON_12): Improve documentation.
16654 * manual/time.texi (strftime): Likewise.
16655
16656 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16657
16658 [BZ #10871]
16659 * localedata/locales/pl_PL: Alternative month names added,
16660 primary month names are genitive now.
16661 * time/tst-strptime.c (day_tests): Actually use a genitive case
16662 of a month name in Polish language.
16663
16664 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16665
16666 [BZ #10871]
16667 * manual/locale.texi: Document ALTMON_1..12 constants for
16668 nl_langinfo. Specify when to use ALTMON instead of MON.
16669 * manual/time.texi (strftime, strptime): Document GNU extension
16670 permitting O modifier with %B and %b. Specify when to use
16671 %OB instead of %B.
16672
16673 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16674
16675 [BZ #10871]
16676 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16677 names, define them as the same as abbreviated month names explicitly.
16678 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16679 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16680 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16681 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16682 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16683 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16684 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16685 _NL_WABALTMON_12): New enum constants.
16686 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16687 wab_alt_mon, and ab_alt_mon_defined members.
16688 (time_output): Output ab_alt_mon and wab_alt_mon members.
16689 (time_read): Read them, initialize them as copies of abmon and wabmon
16690 respectively if they are missing, initialize ab_alt_mon_defined.
16691 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16692 * locale/programs/locfile-kw.h: Regenerate.
16693 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16694 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16695 and ru_RU.UTF-8.
16696 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16697 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16698 (__strftime_internal): Handle %Ob and %Oh formats.
16699 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16700 (__strptime_internal): Handle %Ob and %Oh formats.
16701 * time/tst-strptime.c (day_tests): Add more tests to parse different
16702 forms of month names including the new %Ob format specifier.
16703
16704 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16705
16706 [BZ #10871]
16707 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16708 define them as the same as primary full month names explicitly.
16709 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16710 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16711 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16712 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16713 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16714 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16715 _NL_WALTMON_12): New enum constants.
16716 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16717 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16718 macros.
16719 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16720 walt_mon, and alt_mon_defined members.
16721 (time_output): Output alt_mon and walt_mon members.
16722 (time_read): Read them, initialize them as copies of mon and wmon
16723 respectively if they are missing, initialize alt_mon_defined.
16724 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16725 * locale/programs/locfile-kw.h: Regenerate.
16726 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16727 * localedata/tst-langinfo.c (map): Add tests for the new constants
16728 ALTMON_1 .. ALTMON_12.
16729 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16730 and pl_PL.UTF-8.
16731 * time/strftime_l.c (f_altmonth): New macro.
16732 (__strftime_internal): Handle %OB format.
16733 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16734 (__strptime_internal): Handle %OB format.
16735 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16736 of month names including the new %OB format specifier.
16737
16738 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16739
16740 [BZ #22685]
16741 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16742 from ABORT_TRANSACTION.
16743 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16744 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16745 ABORT_TRANSACTION_IMPL): Likewise.
16746 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16747 Linux code, but remove the code that aborts transactions.
16748
16749 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16750
16751 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16752
16753 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16754
16755 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16756 in date: "2004-14-09" should be "2004-09-14".
16757 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16758 "2003-15-09" should be "2003-09-15".
16759
16760 2018-01-18 Arjun Shankar <arjun@redhat.com>
16761
16762 [BZ #22343]
16763 [BZ #22774]
16764 CVE-2018-6485
16765 CVE-2018-6551
16766 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16767 after padding.
16768 (_int_memalign): check for integer overflow before calling
16769 _int_malloc.
16770 * malloc/tst-malloc-too-large.c: New test.
16771 * malloc/Makefile: Add tst-malloc-too-large.
16772
16773 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16774
16775 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16776 in date: "2017-24-07" should be "2017-07-24".
16777 * localedata/locales/mai_IN: Likewise.
16778 * localedata/locales/mai_NP: Likewise.
16779
16780 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16781
16782 * po/ru.po: Update translations.
16783
16784 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16785
16786 [BZ #22719]
16787 * sysdeps/hppa/backtrace.c: New file.
16788
16789 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16790
16791 [BZ #22715]
16792 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16793 align La_x86_64_retval to VEC_SIZE.
16794
16795 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16796
16797 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16798 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16799
16800 2018-01-16 Florian Weimer <fweimer@redhat.com>
16801
16802 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16803 Move tst-thread-exit-clobber ...
16804 [$(CXX)] (tests-unsupported): ... to here.
16805
16806 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16807
16808 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16809 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16810 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16811 (_dl_aarch64_cap_flags): Update.
16812 (_DL_HWCAP_COUNT): Update.
16813
16814 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16815
16816 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16817 (_DL_HWCAP_LAST): Remove.
16818 (_DL_HWCAP_COUNT): Move to ...
16819 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16820 (_DL_HWCAP_COUNT): ... here.
16821
16822 2018-01-16 Florian Weimer <fweimer@redhat.com>
16823
16824 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16825 mode with GNU extensions.
16826
16827 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16828
16829 * elf/elf.h (NT_ARM_SVE): Define.
16830
16831 2018-01-15 Florian Weimer <fweimer@redhat.com>
16832
16833 [BZ #22636]
16834 * nptl/tst-minstack-throw.cc: New file.
16835 * nptl/Makefile (tests): Add tst-minstack-throw.
16836 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16837 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16838
16839 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16840
16841 * scripts/build-many-glibcs.py (Context.checkout): Default
16842 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16843 version to 1.1.0.
16844
16845 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16846
16847 [BZ #22707]
16848 * elf/elf.h (DF_1_STUB): Define.
16849 (DF_1_PIE): Define.
16850
16851 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16852
16853 [BZ #22697]
16854 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16855 Do not add 0.5 to integer or out-of-range arguments.
16856
16857 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16858
16859 * po/bg.po: Update translations.
16860 * po/cs.po: Likewise.
16861 * po/de.po: Likewise.
16862 * po/ko.po: Likewise.
16863 * po/pl.po: Likewise.
16864 * po/sv.po: Likewise.
16865 * po/uk.po: Likewise.
16866 * po/vi.po: Likewise.
16867
16868 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16869
16870 * aarch64/start.S (_start): Use __wrap_main.
16871 (__wrap_main): New local symbol.
16872
16873 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16874
16875 [BZ #22679]
16876 CVE-2018-1000001
16877 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16878 generic_getcwd if the path returned by getcwd syscall is not absolute.
16879 * io/tst-getcwd-abspath.c: New test.
16880 * io/Makefile (tests): Add tst-getcwd-abspath.
16881
16882 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16883
16884 * malloc/malloc.c (malloc_consolidate): Add size check.
16885
16886 2018-01-12 Florian Weimer <fweimer@redhat.com>
16887
16888 * support/write_message.c (write_message): Preserve errno.
16889 * support/check.c (print_failure): Likewise.
16890 * support/support_test_verify_impl.c (support_test_verify_impl):
16891 Likewise.
16892 * support/support_test_compare_failure.c
16893 (support_test_compare_failure): Likewise.
16894
16895 2018-01-12 Florian Weimer <fweimer@redhat.com>
16896
16897 [BZ #22701]
16898 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16899 Prevent installation of libnsl.so.
16900 (libnsl-inhibit-o): Do not build (or install) static libraries.
16901
16902 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16903
16904 [BZ #22657]
16905 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16906 before the day number which may produce a double space.
16907 (date_fmt): Likewise.
16908
16909 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16910
16911 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16912 instead of fegetenv.
16913
16914 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16915
16916 [BZ #22702]
16917 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16918 comment to say exceptions are discarded.
16919 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16920 __fegetenv.
16921 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16922 be enabled.
16923
16924 2018-01-11 Florian Weimer <fweimer@redhat.com>
16925
16926 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16927 and error message.
16928
16929 2018-01-11 Florian Weimer <fweimer@redhat.com>
16930
16931 [BZ #22636]
16932 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16933 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16934
16935 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16936
16937 [BZ #22693]
16938 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16939 negative arguments in test for NaN or infinity argument.
16940
16941 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16942
16943 * po/libc.pot: Regenerate.
16944
16945 2018-01-10 Florian Weimer <fweimer@redhat.com>
16946
16947 [BZ #22636]
16948 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16949 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16950
16951 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16952
16953 * hurd/hurd/fd.h: Include <fcntl.h>
16954 (__hurd_at_flags): New function.
16955 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16956 with call to __hurd_at_flags.
16957 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16958 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16959 __faccessat
16960 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16961 (__access_noerrno): Use __faccessat_common instead of access_common.
16962 (__access): Likewise.
16963 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16964 with a call to __faccessat.
16965 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16966 (__faccessat_common): ... this. Move implementation of __access into it when
16967 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16968 reauthenticate_cwdir_at helper to implement AT mechanism.
16969 (__faccessat_noerrno): New function, just calls __faccessat_common.
16970 (__faccessat): New function, just calls __faccessat_common.
16971 (faccessat): Define weak alias.
16972
16973 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16974
16975 [BZ #22691]
16976 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16977 (CFLAGS-s_fmaxmagl.c): New variable.
16978 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16979
16980 [BZ #22690]
16981 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16982 long int for arguments of possibly overflowing addition or
16983 subtraction.
16984 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16985
16986 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16987
16988 [BZ #22688]
16989 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16990 (CFLAGS-e_remainderl.c): New variable.
16991
16992 [BZ #22687]
16993 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16994 variable.
16995 (CFLAGS-s_cacoshl.c): Likewise.
16996 (CFLAGS-s_casinhl.c): Likewise.
16997 (CFLAGS-s_catanl.c): Likewise.
16998 (CFLAGS-s_catanhl.c): Likewise.
16999 (CFLAGS-s_cexpl.c): Likewise.
17000 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17001 (CFLAGS-s_csinhl.c): Likewise.
17002 (CFLAGS-s_clogl.c): Likewise.
17003 (CFLAGS-s_clog10l.c): Likewise.
17004 (CFLAGS-s_csinl.c): Likewise.
17005 (CFLAGS-s_csqrtl.c): Likewise.
17006
17007 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17008 2017-01-09 Svante Signell <svante.signell@gmail.com>
17009
17010 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17011 (_hurd_exec_paths): New function.
17012 * hurd/hurd.h (_hurd_exec): Deprecate function.
17013 (_hurd_exec_paths): Declare function.
17014 * hurd/Versions: Export _hurd_exec_paths.
17015 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17016 (__execve): Use __getcwd to build absolute path, and use
17017 _hurd_exec_paths instead of _hurd_exec.
17018 * sysdeps/mach/hurd/spawni.c: Likewise.
17019 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17020 _hurd_exec.
17021
17022 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17023
17024 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17025 test instead of failing in case of ENOENT returned by posix_openpt.
17026
17027 2018-01-08 Florian Weimer <fweimer@redhat.com>
17028
17029 resolv: Support binary labels in test framework.
17030 * support/resolv_test.c (struct to_be_freed): Remove.
17031 (struct compressed_name): New.
17032 (allocate_compressed_name, ascii_tolower)
17033 (compare_compressed_name): New functions.
17034 (struct resolv_response_builder): Update type of
17035 compression_offsets for use with tsearch. Rempve to_be_freed.
17036 (response_push_pointer_to_free): Remove function.
17037 (resolv_response_add_name): Rewrite using struct compressed_name
17038 and tsearch instead of hsearch_r.
17039 (response_builder_allocate): Remove initialization of
17040 compression_offsets.
17041 (response_builder_free): Update for removal of to_be_freed. Use
17042 tdestroy instead of hdestroy_r.
17043 * resolv/Makefile (tests): Add tst-resolv-binary.
17044 (tst-resolv-binary): Link with -lresolv -lpthread.
17045
17046 2018-01-08 Florian Weimer <fweimer@redhat.com>
17047
17048 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17049 time. Pass positive flag instead of negative flag to
17050 support_test_compare_failure.
17051 (support_test_compare_failure): Change negative parameter to
17052 positive.
17053 * support/support_test_compare_failure.c (report)
17054 (support_test_compare_failure): Likewise.
17055 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17056 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17057
17058 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17059
17060 [BZ #22637]
17061 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17062 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17063 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17064 stacksize.
17065 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17066
17067 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17068
17069 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17070 Add s_sincosf-sse2 and s_sincosf-fma.
17071 (CFLAGS-s_sincosf-fma.c): New.
17072 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17073 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17074 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17075 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17076 __sincosf is defined.
17077
17078 2018-01-08 Florian Weimer <fweimer@redhat.com>
17079
17080 * nptl/tst-thread-exit-clobber.cc: New file.
17081 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17082 C++11 mode.
17083 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17084 (tests): Add tst-thread-exit-clobber.
17085 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17086
17087 2018-01-08 Florian Weimer <fweimer@redhat.com>
17088
17089 * support/check.h (support_static_assert): Define.
17090 (TEST_COMPARE): Use it.
17091
17092 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17093
17094 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17095 [!__RLIM_T_MATCHES_RLIM64_T]
17096 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17097 __getrlimit64. Add libc_hidden_weak.
17098
17099 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17100
17101 * elf/elf.h (R_RISCV_NONE): New define.
17102 (R_RISCV_32): Likewise.
17103 (R_RISCV_64): Likewise.
17104 (R_RISCV_RELATIVE): Likewise.
17105 (R_RISCV_COPY): Likewise.
17106 (R_RISCV_JUMP_SLOT): Likewise.
17107 (R_RISCV_TLS_DTPMOD32): Likewise.
17108 (R_RISCV_TLS_DTPMOD64): Likewise.
17109 (R_RISCV_TLS_DTPREL32): Likewise.
17110 (R_RISCV_TLS_DTPREL64): Likewise.
17111 (R_RISCV_TLS_TPREL32): Likewise.
17112 (R_RISCV_TLS_TPREL64): Likewise.
17113 * Makerules (make-link-multidir): Make directories before linking into
17114 them.
17115 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17116 define.
17117 (VDSO_HASH_LINUX_4_15): Likewise.
17118 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17119 in subdirectories of lib.
17120 * nptl/Makefile (/librt.so): Always depend on
17121 "$(shared-thread-library)".
17122
17123 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17124
17125 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17126 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17127 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17128 (___tls_get_addr).
17129 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17130 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17131 "-O2 -march=i686".
17132 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17133 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17134 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17135 * sysdeps/gnu/glob-lstat-compat.c: New file.
17136 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17137 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17138
17139 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17140
17141 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17142 Reserve 16 chars to reloc_addr before calling _itoa_word.
17143
17144 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17145
17146 [BZ #22678]
17147 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17148 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17149
17150 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17151 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17152
17153 * resource/tst-getrlimit.c: Add copyright header.
17154
17155 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17156 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17157
17158 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17159 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17160 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17161 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17162 instead.
17163 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17164 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17165 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17166 RLIM64_INFINITY): Fix values to match the kernel ones.
17167 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17168 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17169 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17170 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17171 getrlimit64@@GLIBC_2_27.
17172 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17173 and setrlimit64.
17174 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17175 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17176 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17177 setrlimit, getrlimit64 and setrlimit64.
17178
17179 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17180
17181 [BZ #22648]
17182 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17183 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17184
17185 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17186
17187 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17188 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17189 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17190
17191 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17192
17193 [BZ #15479]
17194 [BZ #22666]
17195 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17196 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17197
17198 [BZ #15479]
17199 [BZ #22665]
17200 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17201 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17202 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17203 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17204
17205 2018-01-04 Florian Weimer <fweimer@redhat.com>
17206
17207 [BZ #22667]
17208 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17209 Align the stack before calling exit.
17210 * stdlib/tst-makecontext-align.c: New file.
17211 * stdlib/Makefile (tests): Add tst-makecontext-align.
17212
17213 2018-01-04 Florian Weimer <fweimer@redhat.com>
17214
17215 Add support for calling dlvsym from libc.so.
17216 * include/dlfcn.h (__libc_dlvsym): Declare.
17217 * elf/Makefile (tests-static-internal): Add
17218 tst-libc_dlvsym-static.
17219 (tests-internal): Add tst-libc_dlvsym.
17220 (modules-names): Add tst-libc_dlvsym-dso.
17221 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17222 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17223 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17224 object tst-libc_dlvsym-dso.so needs to be built before running
17225 these tests.
17226 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17227 * elf/Versions: Export __libc_dlvsym.
17228 * elf/dl-libc.c (struct do_dlvsym_args): New.
17229 (do_dlvsym, __libc_dlvsym): New functions.
17230 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17231 (_dl_open_hook2): New variable.
17232 (__libc_register_dl_open_hook): Set it.
17233 * elf/tst-libc_dlvsym-dso.c: New file.
17234 * elf/tst-libc_dlvsym-static.c: Likewise.
17235 * elf/tst-libc_dlvsym.c: Likewise.
17236 * elf/tst-libc_dlvsym.h: Likewise.
17237
17238 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17239
17240 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17241 include <sys/mount.h>.
17242
17243 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17244
17245 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17246 Add __NO_MATH_ERRNO__ check.
17247
17248 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17249
17250 * sysdeps/mips/mips32/libm-test-ulps: Update.
17251 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17252
17253 2018-01-02 Florian Weimer <fweimer@redhat.com>
17254
17255 * misc/tst-pselect.c: Add copyright header.
17256
17257 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17258
17259 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17260 comment.
17261 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17262 comment.
17263 (settrlimit): Rename into setrlimit.
17264 (__sttrlimit): Rename into __setrlimit.
17265
17266 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17267 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17268 never defined in that case.
17269
17270 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17271
17272 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17273
17274 * sysdeps/arm/libm-test-ulps: Update.
17275
17276 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17277 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17278
17279 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17280
17281 * NEWS: Add cosf and sincosf to list of optimized functions.
17282
17283 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17284
17285 [BZ #22660]
17286 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17287 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17288 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17289 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17290
17291 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17292
17293 [BZ #22433]
17294 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17295
17296 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17297 making a copy of it.
17298
17299 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17300
17301 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17302 trailing whitespace removed.
17303 * scripts/config.guess: Update to version 2018-01-01.
17304 * scripts/config.sub: Update to version 2018-01-01.
17305 * scripts/move-if-change: Update from gnulib.
17306
17307 * NEWS: Update copyright dates.
17308 * catgets/gencat.c (print_version): Likewise.
17309 * csu/version.c (banner): Likewise.
17310 * debug/catchsegv.sh: Likewise.
17311 * debug/pcprofiledump.c (print_version): Likewise.
17312 * debug/xtrace.sh (do_version): Likewise.
17313 * elf/ldconfig.c (print_version): Likewise.
17314 * elf/ldd.bash.in: Likewise.
17315 * elf/pldd.c (print_version): Likewise.
17316 * elf/sotruss.sh: Likewise.
17317 * elf/sprof.c (print_version): Likewise.
17318 * iconv/iconv_prog.c (print_version): Likewise.
17319 * iconv/iconvconfig.c (print_version): Likewise.
17320 * locale/programs/locale.c (print_version): Likewise.
17321 * locale/programs/localedef.c (print_version): Likewise.
17322 * login/programs/pt_chown.c (print_version): Likewise.
17323 * malloc/memusage.sh (do_version): Likewise.
17324 * malloc/memusagestat.c (print_version): Likewise.
17325 * malloc/mtrace.pl: Likewise.
17326 * manual/libc.texinfo: Likewise.
17327 * nptl/version.c (banner): Likewise.
17328 * nscd/nscd.c (print_version): Likewise.
17329 * nss/getent.c (print_version): Likewise.
17330 * nss/makedb.c (print_version): Likewise.
17331 * posix/getconf.c (main): Likewise.
17332 * scripts/test-installation.pl: Likewise.
17333 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17334
17335 * All files with FSF copyright notices: Update copyright dates
17336 using scripts/update-copyrights.
17337 * locale/programs/charmap-kw.h: Regenerated.
17338 * locale/programs/locfile-kw.h: Likewise.
17339
17340 2017-12-31 Zack Weinberg <zackw@panix.com>
17341
17342 * libio/bits/libio-ldbl.h: Correct check for improper
17343 inclusion. Add own multiple include guard.
17344
17345 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17346 Dmitry V. Levin <ldv@altlinux.org>
17347
17348 [BZ #22625]
17349 CVE-2017-16997
17350 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17351 string token expansion. Check for NULL pointer or empty string possibly
17352 returned by expand_dynamic_string_token.
17353 (decompose_rpath): Check for empty path after dynamic string
17354 token expansion.
17355
17356 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17357
17358 [BZ #22433]
17359 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17360
17361 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17362 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17363 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17364 and PTRACE_SYSCALL.
17365 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17366 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17367 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17368 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17369 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17370 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17371
17372 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17373 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17374 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17375 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17376 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17377 bits/ptrace-shared.h.
17378 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17379 <bits/ptrace-shared.h>.
17380 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17381 __ptrace_peeksiginfo_flags, ptrace): Remove.
17382 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17383 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17384 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17385 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17386 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17387
17388 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17389
17390 [BZ #17804]
17391 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17392 end of the loop. Improve comments.
17393
17394 2017-12-29 Zack Weinberg <zackw@panix.com>
17395
17396 [BZ #22615]
17397 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17398 might be set on success.
17399
17400 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17401
17402 [BZ #22611]
17403 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17404 is unchanged on success.
17405
17406 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17407
17408 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17409 updated.
17410 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17411 expand_dynamic_string_token): Likewise.
17412 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17413 is_path argument.
17414
17415 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17416 contains ':'.
17417
17418 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17419 is set and name contains ':', and all code depending on these checks.
17420
17421 2017-12-24 Zack Weinberg <zackw@panix.com>
17422
17423 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17424 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17425 respectively.
17426 * libio/libio.h: Rename the original version of this file to
17427 libio/bits/libio.h. Error out if not included by stdio.h or the
17428 stub libio.h.
17429 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17430 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17431 if not included by bits/libio.h or the stub _G_config.h.
17432 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17433 sysdeps/unix/sysv/linux/bits. Error out if not included by
17434 bits/libio.h or the stub _G_config.h.
17435 * libio/stdio.h: Include bits/libio.h, not libio.h.
17436 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17437 well as libio.h and _G_config.h.
17438
17439 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17440 * libio/strfile.h, stdio-common/vfscanf.c
17441 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17442 Include stdio.h, not _G_config.h nor libio.h.
17443 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17444 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17445
17446 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17447
17448 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17449
17450 [BZ #22347]
17451 * stdlib/getrandom.c (getrandom): Fix comment.
17452 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17453
17454 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17455
17456 [BZ #21161]
17457 * manual/arith.texi (strtoul): Fix a typo.
17458
17459 [BZ #22596]
17460 * manual/arith.texi (finite): Fix the description of the return
17461 value.
17462
17463 2017-12-22 Eric Blake <ebb9@byu.net>
17464
17465 Avoid gcc warnings on cygwin
17466 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17467 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17468 Avoid unused variable.
17469
17470 2017-12-22 Florian Weimer <fweimer@redhat.com>
17471
17472 * io/Makefile (routines): Add copy_file_range.
17473 (tests): Add tst-copy_file_range.
17474 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17475 * io/Versions (GLIBC_2.27): Export copy_file_range.
17476 * io/copy_file_range-compat.c: New file.
17477 * io/copy_file_range.c: Likewise.
17478 * io/tst-copy_file_range-compat.c: Likewise.
17479 * io/tst-copy_file_range.c: Likewise.
17480 * manual/llio.texi (Copying File Data): New section.
17481 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17482 * support/Makefile (libsupport-routines): Add support-xfstat,
17483 xftruncate, xlseek.
17484 * support/support-xfstat.c: New file.
17485 * support/xftruncate.c: Likewise.
17486 * support/xlseek.c: Likewise.
17487 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17488 * sysdeps/unix/sysv/linux/**.abilist: Update.
17489 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17490
17491 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17492
17493 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17494 disable-multi-arch variant to aarch64-linux-gnu.
17495
17496 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17497
17498 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17499 trailing whitespace removed.
17500 * scripts/config.guess: Update to version 2017-12-17.
17501 * scripts/config.sub: Update to version 2017-11-23.
17502 * scripts/install-sh: Update to version 2017-09-23.17.
17503 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17504
17505 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17506
17507 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17508 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17509 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17510 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17511 * sysdeps/tile/crtn.S: Likewise.
17512 * sysdeps/tile/dl-start.S (_start): Likewise.
17513 * sysdeps/tile/dl-trampoline.S: Likewise.
17514 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17515 * sysdeps/tile/start.S (_start): Likewise.
17516 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17517 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17518 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17519 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17520 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17521 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17522 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17523
17524 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17525 comment.
17526 * sysdeps/tile/preconfigure: Remove tilegx folder.
17527 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17528 * sysdeps/tile/Implies: ... here.
17529 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17530 * sysdeps/tile/Makefile: ... here.
17531 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17532 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17533 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17534 * sysdeps/tile/bits/wordsize.h: ... here.
17535 * sysdeps/tile/tilegx/*: Move to ...
17536 * sysdeps/tile/*: ... here.
17537 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17538 * sysdeps/tile/tilegx32/Implies: ... here.
17539 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17540 * sysdeps/tile/tilegx64/Implies: ... here.
17541 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17542 to ...
17543 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17544 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17545 * sysdeps/unix/sysv/linux/tile/*: ... here.
17546 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17547 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17548 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17549 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17550
17551 * README: Remove tilepro-*-linux-gnu from supported architecture.
17552 * scripts/build-many-glibcs.py: Likewise.
17553 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17554 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17555 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17556 elf_machine_matches_host, elf_machine_dynamic,
17557 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17558 howto, elf_machine_rela): Likewise.
17559 * sysdeps/tile/dl-start.S (_start): Likewise.
17560 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17561 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17562 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17563 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17564 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17565 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17566 Likewise.
17567 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17568 * sysdeps/tile/preconfigure: Likewise.
17569 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17570 POINTER_CHK_GUARD): Likewise.
17571 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17572 * sysdeps/tile/start.S (_start): Likewise.
17573 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17574 Likewise.
17575 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17576 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17577 CMOVNEZ): Remove.
17578 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17579 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17580 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17581 Likewise.
17582 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17583 * sysdeps/tile/tilepro/Implies: Remove file.
17584 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17585 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17586 * sysdeps/tile/tilepro/memchr.c: Likewise.
17587 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17588 * sysdeps/tile/tilepro/memset.c: Likewise.
17589 * sysdeps/tile/tilepro/memusage.h: Likewise.
17590 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17591 * sysdeps/tile/tilepro/strchr.c: Likewise.
17592 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17593 * sysdeps/tile/tilepro/strlen.c: Likewise.
17594 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17595 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17596 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17597 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17598 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17600 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17601 Likewise.
17602 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17603 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17604 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17605 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17606 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17607 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17608 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17609 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17610 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17611 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17612 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17613 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17614 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17615 tilepro mention in comment.
17616
17617 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17618 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17619 * nptl/pthread_join_common.c: New file: common function used on
17620 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17621 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17622 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17623 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17624 (cleanup): Move definition to pthread_join_common.c.
17625 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17626 Remove superflous checks.
17627 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17628 Likewise.
17629
17630 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17631
17632 * sysdeps/aarch64/libm-test-ulps: Update.
17633
17634 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17635
17636 * sysdeps/aarch64/memset.S (MEMSET): Define.
17637
17638 2017-12-20 Florian Weimer <fweimer@redhat.com>
17639
17640 [BZ #22635]
17641 nptl: Provide full implementation of pthread_self in libc.so.
17642 * nptl/Makefile (routines): Add pthread_self.
17643 (libpthread-routines): Replace pthread_self with
17644 compat-pthread_self.
17645 * nptl/forward.c (pthread_self): Remove.
17646 * nptl/nptl-init.c (pthread_functions): Do not initialize
17647 ptr_pthread_self.
17648 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17649 * nptl/compat-pthread_self.c: New file.
17650 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17651 Remove ptr_pthread_self.
17652
17653 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17654
17655 * posix/regcomp.c: Fix spelling in comments.
17656 * posix/regex.h: Likewise.
17657 * posix/regex_internal.c: Likewise.
17658 * posix/regexec.c: Likewise.
17659
17660 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17661
17662 [BZ #22377]
17663 * math/Makefile [C++] (tests): Add test for iseqsig.
17664 * math/math.h [C++] (iseqsig): New implementation, which does
17665 not rely on __MATH_TG/__builtin_types_compatible_p.
17666 * math/test-math-iseqsig.cc: New file.
17667 * sysdeps/powerpc/powerpc64le/Makefile
17668 (CFLAGS-test-math-iseqsig.cc): New variable.
17669
17670 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17671
17672 * elf/dl-load.c (is_trusted_path): Remove.
17673 (fillin_rpath): Remove check_trusted argument and its use,
17674 all callers changed.
17675
17676 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17677
17678 [BZ #22630]
17679 * Makeconfig (link-pie-before-libc): Replace -pie with
17680 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17681 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17682 (tst-dlopen-aout-no-pie): New.
17683 (LDFLAGS-tst-prelink): Removed.
17684 (tst-prelink-no-pie): New.
17685 (LDFLAGS-tst-main1): Removed.
17686 (tst-main1-no-pie): New.
17687 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17688 (tst-gmon-no-pie): New.
17689
17690 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17691
17692 * manual/install.texi: Document that --enable-static-pie
17693 implies PIE.
17694 * INSTALL: Regenerated.
17695
17696 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17697
17698 [BZ #21309]
17699 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17700 unsigned.
17701
17702 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17703
17704 Revert:
17705
17706 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17707
17708 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17709
17710 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17711
17712 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17713 <errno.h>. Include "eexp.tbl".
17714 (half): New constant.
17715 (one): Likewise.
17716 (__ieee754_exp): Rewrite.
17717 (__slowexp): Remove prototype.
17718 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17719 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17720 * sysdeps/i386/fpu/slowexp.c: Likewise.
17721 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17722 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17723 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17724 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17725 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17726 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17727 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17728 comment.
17729 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17730 (CPPFLAGS-slowexp.c): Remove variable.
17731 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17732 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17733 (CFLAGS-slowexp-fma.c): Remove variable.
17734 (CFLAGS-slowexp-fma4.c): Likewise.
17735 (CFLAGS-slowexp-avx.c): Likewise.
17736 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17737 define as macro.
17738 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17739 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17740 * math/Makefile (type-double-routines): Remove slowexp.
17741 * manual/probes.texi (slowexp_p6): Remove.
17742 (slowexp_p32): Likewise.
17743
17744 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17745
17746 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17747 arithmetic.
17748
17749 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17750
17751 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17752
17753 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17754
17755 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17756
17757 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17758 <errno.h>. Include "eexp.tbl".
17759 (half): New constant.
17760 (one): Likewise.
17761 (__ieee754_exp): Rewrite.
17762 (__slowexp): Remove prototype.
17763 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17764 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17765 * sysdeps/i386/fpu/slowexp.c: Likewise.
17766 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17767 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17768 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17769 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17770 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17771 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17772 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17773 comment.
17774 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17775 (CPPFLAGS-slowexp.c): Remove variable.
17776 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17777 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17778 (CFLAGS-slowexp-fma.c): Remove variable.
17779 (CFLAGS-slowexp-fma4.c): Likewise.
17780 (CFLAGS-slowexp-avx.c): Likewise.
17781 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17782 define as macro.
17783 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17784 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17785 * math/Makefile (type-double-routines): Remove slowexp.
17786 * manual/probes.texi (slowexp_p6): Remove.
17787 (slowexp_p32): Likewise.
17788
17789 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17790 James Clarke <jrtc27@jrtc27.com>
17791
17792 [BZ #22603]
17793 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17794 addition.
17795
17796 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17797
17798 [BZ #22605]
17799 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17800 code.
17801
17802 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17803
17804 [BZ #22563]
17805 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17806 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17807 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17808 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17809 to feature_1.
17810
17811 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17812
17813 [BZ #22563]
17814 * bits/types/__cancel_jmp_buf_tag.h: New file.
17815 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17816 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17817 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17818 * nptl/Makefile (headers): Add
17819 bits/types/__cancel_jmp_buf_tag.h.
17820 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17821 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17822 * sysdeps/nptl/pthread.h: Include
17823 <bits/types/__cancel_jmp_buf_tag.h>.
17824 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17825 __cancel_jmp_buf.
17826 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17827
17828 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17829
17830 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17831 --enable-static-pie variants to x86_64, x32 and i686.
17832
17833 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17834
17835 [BZ #22631]
17836 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17837 argument for attrubutes. All callers changed.
17838 (__inline_mathop1): Likewise. All callers changed.
17839 (__inline_mathop): Likewise. All callers changed.
17840 [__USE_MISC] (scalbn): Use __inline_forward instead of
17841 __inline_forward_c.
17842 [__USE_ISOC99] (scalbln): Likewise.
17843 [__USE_ISOC99] (nearbyint): Likewise.
17844 [__USE_ISOC99] (lrint): Likewise.
17845 [__USE_MISC] (scalbnf): Likewise.
17846 [__USE_ISOC99] (scalblnf): Likewise.
17847 [__USE_ISOC99] (nearbyintf): Likewise.
17848 [__USE_ISOC99] (lrintf): Likewise.
17849 [__USE_MISC] (scalbnl): Likewise.
17850 [__USE_ISOC99] (scalblnl): Likewise.
17851 [__USE_ISOC99] (nearbyintl): Likewise.
17852 [__USE_ISOC99] (lrintl): Likewise.
17853 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17854 __inline_mathop and __m81_defun changed.
17855
17856 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17857 CPU or FPU for ARM hard-float configurations.
17858
17859 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17860
17861 * nptl/tst-attr3.c: Include <libc-diag.h>.
17862 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17863
17864 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17865
17866 * string/tester.c (test_strncat): Also disable -Warray-bounds
17867 warnings for two tests.
17868
17869 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17870
17871 [BZ #22614]
17872 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17873 $(cc-pie-default) == yes.
17874 * config.make.in (cc-pie-default): New.
17875 * configure.ac (libc_cv_pie_default): Renamed to ...
17876 (libc_cv_cc_pie_default): This.
17877 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17878 * configure: Regenerated.
17879
17880 2017-12-18 Florian Weimer <fweimer@redhat.com>
17881
17882 [BZ #20204]
17883 ld.so: Harden dl-libc/libdl hooks.
17884 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17885 (rtld_active): New function.
17886 * dlfcn/dladdr.c (__dladdr): Call it.
17887 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17888 * dlfcn/dlclose.c (__dlcose): Likewise.
17889 * dlfcn/dlerror.c (__dlerror): Likewise.
17890 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17891 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17892 * dlfcn/dlopen.c (__dlopen): Likewise.
17893 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17894 * dlfcn/dlsym.c (__dlsym): Likewise.
17895 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17896 * libio/vtables.c (_IO_vtable_check): Likewise.
17897 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17898 (__libc_dlclose): Likewise.
17899 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17900 assignment.
17901
17902 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17903
17904 [BZ #22446]
17905 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17906 buffers for readlink input and output.
17907
17908 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17909
17910 [BZ #22624]
17911 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17912 inhibit_stack_protector.
17913
17914 [BZ #22624]
17915 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17916 inhibit_stack_protector.
17917
17918 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17919
17920 [BZ #22627]
17921 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17922 code and invocation.
17923
17924 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17925
17926 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17927
17928 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17929
17930 [BZ #22505]
17931 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17932
17933 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17934
17935 * sysdeps/s390/fpu/libm-test-ulps: Update.
17936
17937 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17938
17939 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17940
17941 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17942
17943 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17944 constants to s_sincosf.h file.
17945 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17946 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17947 implementation.
17948 * sysdeps/ieee754/flt-32/s_sincosf.h:
17949 New file.
17950
17951 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17952
17953 [BZ #14681]
17954 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17955 before mtrace.
17956
17957 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17958
17959 [BZ #19574]
17960 * INSTALL: Regenerated.
17961 * Makeconfig (real-static-start-installed-name): New.
17962 (pic-default): Updated for --enable-static-pie.
17963 (pie-default): New for --enable-static-pie.
17964 (default-pie-ldflag): Likewise.
17965 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17966 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17967 Replace $(static-start-installed-name) with
17968 $(real-static-start-installed-name).
17969 (+prectorT): Updated for --enable-static-pie.
17970 (+postctorT): Likewise.
17971 (CFLAGS-.o): Add $(pie-default).
17972 (CFLAGS-.op): Likewise.
17973 * NEWS: Mention --enable-static-pie.
17974 * config.h.in (ENABLE_STATIC_PIE): New.
17975 * configure.ac (--enable-static-pie): New configure option.
17976 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17977 (have-static-pie): Likewise.
17978 Enable static PIE if linker supports --no-dynamic-linker.
17979 (ENABLE_STATIC_PIE): New AC_DEFINE.
17980 (enable-static-pie): New LIBC_CONFIG_VAR.
17981 * configure: Regenerated.
17982 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17983 gr$(start-installed-name) for --enable-static-pie.
17984 (extra-objs): Likewise.
17985 (install-lib): Likewise.
17986 (extra-objs): Add static-reloc.o and static-reloc.os
17987 ($(objpfx)$(start-installed-name)): Also depend on
17988 $(objpfx)static-reloc.o.
17989 ($(objpfx)r$(start-installed-name)): New.
17990 ($(objpfx)g$(start-installed-name)): Also depend on
17991 $(objpfx)static-reloc.os.
17992 ($(objpfx)gr$(start-installed-name)): New.
17993 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17994 in libc.a.
17995 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17996 initimage.
17997 * csu/static-reloc.c: New file.
17998 * elf/Makefile (routines): Add dl-reloc-static-pie.
17999 (elide-routines.os): Likewise.
18000 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18001 (tst-tls1-static-non-pie-no-pie): New.
18002 * elf/dl-reloc-static-pie.c: New file.
18003 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18004 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18005 STATIC_PIE_BOOTSTRAP.
18006 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18007 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18008 (tests-static): Likewise.
18009 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18010 (tst-gmon-static-no-pie): New.
18011 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18012 (CRT-tst-gmon-static-pie): Likewise.
18013 (tst-gmon-static-pie-ENV): Likewise.
18014 (tests-special): Likewise.
18015 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18016 (clean-tst-gmon-static-pie-data): Likewise.
18017 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18018 * gmon/tst-gmon-static-pie.c: New file.
18019 * manual/install.texi: Document --enable-static-pie.
18020 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18021 (_dl_get_dl_main_map): Likewise.
18022 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18023 * sysdeps/x86_64/configure.ac: Likewise.
18024 * sysdeps/i386/configure: Regenerated.
18025 * sysdeps/x86_64/configure: Likewise.
18026 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18027 (ASFLAGS-.op): Likewise.
18028
18029 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18030
18031 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18032 * posix/tst-mmap-offset.c (fname): Use /tmp.
18033 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18034
18035 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18036
18037 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18038
18039 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18040
18041 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18042 errno.
18043
18044 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18045
18046 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18047 --with-float=hard for arm-linux-gnueabihf configurations.
18048
18049 [BZ #14121]
18050 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18051 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18052 ($(mo-installed)): Use $(objpfx)%.mo.
18053 (realclean): Remove rule.
18054
18055 * po/Makefile (linguas): Remove rule and dependencies.
18056 (linguas.mo): Likewise.
18057 (.PHONY): Do not depend on linguas and linguas.mo.
18058 (podir): Remove variable.
18059 (pofiles): Likewise.
18060 [$(pofiles)] (%.po): Remove rule.
18061
18062 * sysdeps/sparc/sparc32/Makefile
18063 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18064 start-of-line whitespace in argument of echo.
18065 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18066 with whitespace. Generate __wrap_.udiv alias.
18067 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18068 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18069 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18070 * sysdeps/sparc/sparc32/urem.S: Likewise.
18071
18072 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18073
18074 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18075 for aligned inputs.
18076
18077 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18078
18079 * benchtests/bench-strcmp.c: Print output in JSON format.
18080
18081 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18082
18083 2017-12-14 Florian Weimer <fweimer@redhat.com>
18084
18085 [BZ #22607]
18086 CVE-2017-1000409
18087 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18088 the expanded path string.
18089
18090 2017-12-14 Florian Weimer <fweimer@redhat.com>
18091
18092 [BZ #22606]
18093 CVE-2017-1000408
18094 * elf/dl-load.c (system_dirs): Update comment.
18095 (nsystem_dirs_len): Use array_length.
18096 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18097
18098 2017-12-14 Florian Weimer <fweimer@redhat.com>
18099
18100 Simplify compiling most of support/ outside of glibc.
18101 * support/check_addrinfo.c: Include <string.h>.
18102 * support/check_dns_packet.c: Likewise.
18103 * support/check_hostent.c: Likewise.
18104 * support/support_can_chroot.c: Include <support/xunistd.h>.
18105 * support/support_format_addrinfo.c: Include <stdlib.h>
18106 * support/support_format_dns_packet.c: Include <stdbool.h>.
18107 * support/support_format_hostent.c: Include <stdlib.h>.
18108 * support/support_format_netent.c: Likewise.
18109 * support/support_write_string.c: Include <support/xunistd.h>.
18110 * support/xdlfcn.c: Include <stddef.h>.
18111
18112 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18113
18114 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18115
18116 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18117 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18118
18119 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18120 (sysdeps_routines): Add memset-niagara7.
18121 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18122 Likewise.
18123 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18124 file.
18125 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18126 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18127 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18128 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18129 Add niagara7 option.
18130 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18131 memset.
18132
18133 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18134 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18135 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18136 Likewise.
18137 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18138 New file.
18139 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18140 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18141 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18142 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18143 and __memmove_niagara7.
18144 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18145 Add niagara7 option.
18146 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18147 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18148 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18149 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18150 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18151
18152 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18153
18154 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18155 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18156 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18157 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18158
18159 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18160 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18161 _dl_sparc_cap_flags array.
18162 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18163
18164 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18165
18166 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18167 time whenever possible.
18168
18169 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18170
18171 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18172 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18173
18174 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18175
18176 * soft-fp/fmadf4.c: Move to ....
18177 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18178 * soft-fp/fmasf4.c: Move to ....
18179 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18180 * soft-fp/fmatf4.c: Move to ....
18181 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18182 * sysdeps/ieee754/soft-fp/Makefile: New file.
18183 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18184 * sysdeps/arm/preconfigure: Regenerated.
18185 * sysdeps/arm/nofpu/Implies: New file.
18186 * sysdeps/arm/s_fma.c: Remove file.
18187 * sysdeps/arm/s_fmaf.c: Likewise.
18188 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18189 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18190 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18191 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18192 * sysdeps/microblaze/s_fma.c: Remove file.
18193 * sysdeps/microblaze/s_fmaf.c: Likewise.
18194 * sysdeps/mips/mips32/nofpu/Implies: New file.
18195 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18196 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18197 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18198 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18199 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18200 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18201 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18202 implementation.
18203 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18204 * sysdeps/nios2/s_fma.c: Remove file.
18205 * sysdeps/nios2/s_fmaf.c: Likewise.
18206 * sysdeps/sh/nofpu/Implies: New file.
18207 * sysdeps/sh/s_fma.c: Remove file.
18208 * sysdeps/sh/s_fmaf.c: Likewise.
18209 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18210 * sysdeps/tile/s_fma.c: Remove file.
18211 * sysdeps/tile/s_fmaf.c: Likewise.
18212
18213 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18214
18215 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18216 Add s_cosf-sse2 and s_cosf-fma.
18217 (CFLAGS-s_cosf-fma.c): New.
18218 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18219 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18220 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18221
18222 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18223
18224 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18225
18226 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18227
18228 * libio/Makefile (tests): Add tst-bz22415.
18229 (tst-bz22415-ENV): New rule.
18230 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18231 (tests-special): Add tst-bz22415-mem.out.
18232 ($(objpfx)tst-bz22415-mem.out): New rule.
18233 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18234 in case of a successful seek operation.
18235 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18236 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18237 buffer is required.
18238 * libio/tst-bz22415.c: New test.
18239
18240 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18241
18242 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18243
18244 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18245 __IPC_64 to 0 to avoid IPC_64 being set.
18246
18247 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18248
18249 [BZ #22593]
18250 * math/bits/mathcalls.h (nextafter): Remove const.
18251 (nexttoward): Likewise.
18252
18253 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18254
18255 * configure.ac (--with-fp): Remove configure option.
18256 (with_fp_cond): New variable.
18257 (libc_cv_with_fp): New configure test. Use this variable instead
18258 of with_fp.
18259 * configure: Regenerated.
18260 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18261 * manual/install.texi (Configuring and compiling): Remove
18262 --without-fp.
18263 * INSTALL: Regenerated.
18264 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18265 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18266 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18267 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18268 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18269 use --without-fp to configure glibc.
18270
18271 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18272
18273 * manual/locale.texi (nl_langinfo): Fix a typo.
18274
18275 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18276
18277 [BZ #22588]
18278 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18279
18280 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18281
18282 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18283 (CFLAGS-argp-parse.c): Likewise.
18284 (CFLAGS-argp-fmtstream.c): Likewise.
18285 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18286 (CPPFLAGS-sha512-crypt.c): Likewise.
18287 (CPPFLAGS-md5-crypt.c): Likewise.
18288 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18289 (CFLAGS-stack_chk_fail_local.c): Likewise.
18290 (CFLAGS-backtrace.c): Likewise.
18291 (CFLAGS-sprintf_chk.c): Likewise.
18292 (CFLAGS-snprintf_chk.c): Likewise.
18293 (CFLAGS-vsprintf_chk.c): Likewise.
18294 (CFLAGS-vsnprintf_chk.c): Likewise.
18295 (CFLAGS-asprintf_chk.c): Likewise.
18296 (CFLAGS-vasprintf_chk.c): Likewise.
18297 (CFLAGS-obprintf_chk.c): Likewise.
18298 (CFLAGS-dprintf_chk.c): Likewise.
18299 (CFLAGS-vdprintf_chk.c): Likewise.
18300 (CFLAGS-printf_chk.c): Likewise.
18301 (CFLAGS-fprintf_chk.c): Likewise.
18302 (CFLAGS-vprintf_chk.c): Likewise.
18303 (CFLAGS-vfprintf_chk.c): Likewise.
18304 (CFLAGS-gets_chk.c): Likewise.
18305 (CFLAGS-fgets_chk.c): Likewise.
18306 (CFLAGS-fgets_u_chk.c): Likewise.
18307 (CFLAGS-fread_chk.c): Likewise.
18308 (CFLAGS-fread_u_chk.c): Likewise.
18309 (CFLAGS-swprintf_chk.c): Likewise.
18310 (CFLAGS-vswprintf_chk.c): Likewise.
18311 (CFLAGS-wprintf_chk.c): Likewise.
18312 (CFLAGS-fwprintf_chk.c): Likewise.
18313 (CFLAGS-vwprintf_chk.c): Likewise.
18314 (CFLAGS-vfwprintf_chk.c): Likewise.
18315 (CFLAGS-fgetws_chk.c): Likewise.
18316 (CFLAGS-fgetws_u_chk.c): Likewise.
18317 (CFLAGS-read_chk.c): Likewise.
18318 (CFLAGS-pread_chk.c): Likewise.
18319 (CFLAGS-pread64_chk.c): Likewise.
18320 (CFLAGS-recv_chk.c): Likewise.
18321 (CFLAGS-recvfrom_chk.c): Likewise.
18322 (CFLAGS-tst-longjmp_chk.c): Likewise.
18323 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18324 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18325 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18326 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18327 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18328 (CFLAGS-tst-chk1.c): Likewise.
18329 (CFLAGS-tst-chk2.c): Likewise.
18330 (CFLAGS-tst-chk3.c): Likewise.
18331 (CFLAGS-tst-chk4.cc): Likewise.
18332 (CFLAGS-tst-chk5.cc): Likewise.
18333 (CFLAGS-tst-chk6.cc): Likewise.
18334 (CFLAGS-tst-lfschk1.c): Likewise.
18335 (CFLAGS-tst-lfschk2.c): Likewise.
18336 (CFLAGS-tst-lfschk3.c): Likewise.
18337 (CFLAGS-tst-lfschk4.cc): Likewise.
18338 (CFLAGS-tst-lfschk5.cc): Likewise.
18339 (CFLAGS-tst-lfschk6.cc): Likewise.
18340 (CFLAGS-tst-ssp-1.c): Likewise.
18341 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18342 (CFLAGS-scandir64.c): Likewise.
18343 (CFLAGS-scandir-tail.c): Likewise.
18344 (CFLAGS-scandir64-tail.c): Likewise.
18345 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18346 (CFLAGS-dl-tunables.c): Likewise.
18347 (CFLAGS-dl-runtime.c): Likewise.
18348 (CFLAGS-dl-lookup.c): Likewise.
18349 (CFLAGS-dl-iterate-phdr.c): Likewise.
18350 (CFLAGS-vismain.c): Likewise.
18351 (CFLAGS-tst-linkall-static.c): Likewise.
18352 (CFLAGS-tst-linkall-static.c): Likewise.
18353 (CPPFLAGS-dl-load.c): Likewise.
18354 (CFLAGS-ldconfig.c): Likewise.
18355 (CFLAGS-dl-cache.c): Likewise.
18356 (CFLAGS-cache.c): Likewise.
18357 (CFLAGS-rtld.c): Likewise.
18358 (CFLAGS-multiload.c): Likewise.
18359 (CFLAGS-filtmod1.c): Likewise.
18360 (CFLAGS-tst-align.c): Likewise.
18361 (CFLAGS-tst-align2.c): Likewise.
18362 (CFLAGS-tst-alignmod.c): Likewise.
18363 (CFLAGS-tst-alignmod2.c): Likewise.
18364 (CPPFLAGS-tst-execstack.c): Likewise.
18365 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18366 (CFLAGS-tst-latepthreadmod.c): Likewise.
18367 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18368 (CFLAGS-getgrnam_r.c): Likewise.
18369 (CFLAGS-getgrent_r.c): Likewise.
18370 (CFLAGS-getgrent.c): Likewise.
18371 (CFLAGS-fgetgrent.c): Likewise.
18372 (CFLAGS-fgetgrent_r.c): Likewise.
18373 (CFLAGS-putgrent.c): Likewise.
18374 (CFLAGS-initgroups.c): Likewise.
18375 (CFLAGS-getgrgid.c): Likewise.
18376 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18377 (CFLAGS-getsgent.c): Likewise.
18378 (CFLAGS-fgetsgent.c): Likewise.
18379 (CFLAGS-fgetsgent_r.c): Likewise.
18380 (CFLAGS-putsgent.c): Likewise.
18381 (CFLAGS-getsgnam.c): Likewise.
18382 (CFLAGS-getsgnam_r.c): Likewise.
18383 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18384 (CFLAGS-iconv_charmap.c): Likewise.
18385 (CFLAGS-dummy-repertoire.c): Likewise.
18386 (CFLAGS-charmap.c): Likewise.
18387 (CFLAGS-linereader.c): Likewise.
18388 (CFLAGS-simple-hash.c): Likewise.
18389 (CFLAGS-gconv_conf.c): Likewise.
18390 (CFLAGS-iconvconfig.c): Likewise.
18391 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18392 (CFLAGS-gethstbyad.c): Likewise.
18393 (CFLAGS-gethstbynm_r.c): Likewise.
18394 (CFLAGS-gethstbynm.c): Likewise.
18395 (CFLAGS-gethstbynm2_r.c): Likewise.
18396 (CFLAGS-gethstbynm2.c): Likewise.
18397 (CFLAGS-gethstent_r.c): Likewise.
18398 (CFLAGS-gethstent.c): Likewise.
18399 (CFLAGS-rcmd.c): Likewise.
18400 (CFLAGS-getnetbynm_r.c): Likewise.
18401 (CFLAGS-getnetbynm.c): Likewise.
18402 (CFLAGS-getnetbyad_r.c): Likewise.
18403 (CFLAGS-getnetbyad.c): Likewise.
18404 (CFLAGS-getnetent_r.c): Likewise.
18405 (CFLAGS-getnetent.c): Likewise.
18406 (CFLAGS-getaliasent_r.c): Likewise.
18407 (CFLAGS-getaliasent.c): Likewise.
18408 (CFLAGS-getrpcent_r.c): Likewise.
18409 (CFLAGS-getrpcent.c): Likewise.
18410 (CFLAGS-getservent_r.c): Likewise.
18411 (CFLAGS-getservent.c): Likewise.
18412 (CFLAGS-getprtent_r.c): Likewise.
18413 (CFLAGS-getprtent.c): Likewise.
18414 (CFLAGS-either_ntoh.c): Likewise.
18415 (CFLAGS-either_hton.c): Likewise.
18416 (CFLAGS-getnetgrent.c): Likewise.
18417 (CFLAGS-getnetgrent_r.c): Likewise.
18418 (CFLAGS-tst-checks-posix.c): Likewise.
18419 (CFLAGS-tst-sockaddr.c): Likewise.
18420 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18421 (CFLAGS-tst-translit.c): Likewise.
18422 (CFLAGS-tst-gettext2.c): Likewise.
18423 (CFLAGS-tst-codeset.c): Likewise.
18424 (CFLAGS-tst-gettext3.c): Likewise.
18425 (CFLAGS-tst-gettext4.c): Likewise.
18426 (CFLAGS-tst-gettext5.c): Likewise.
18427 (CFLAGS-tst-gettext6.c): Likewise.
18428 * io/Makefile (CFLAGS-open.c): Likewise.
18429 (CFLAGS-open64.c): Likewise.
18430 (CFLAGS-creat.c): Likewise.
18431 (CFLAGS-creat64.c): Likewise.
18432 (CFLAGS-fcntl.c): Likewise.
18433 (CFLAGS-poll.c): Likewise.
18434 (CFLAGS-ppoll.c): Likewise.
18435 (CFLAGS-lockf.c): Likewise.
18436 (CFLAGS-statfs.c): Likewise.
18437 (CFLAGS-fstatfs.c): Likewise.
18438 (CFLAGS-statvfs.c): Likewise.
18439 (CFLAGS-fstatvfs.c): Likewise.
18440 (CFLAGS-fts.c): Likewise.
18441 (CFLAGS-fts64.c): Likewise.
18442 (CFLAGS-ftw.c): Likewise.
18443 (CFLAGS-ftw64.c): Likewise.
18444 (CFLAGS-lockf.c): Likewise.
18445 (CFLAGS-posix_fallocate.c): Likewise.
18446 (CFLAGS-posix_fallocate64.c): Likewise.
18447 (CFLAGS-fallocate.c): Likewise.
18448 (CFLAGS-fallocate64.c): Likewise.
18449 (CFLAGS-read.c): Likewise.
18450 (CFLAGS-write.c): Likewise.
18451 (CFLAGS-test-stat.c): Likewise.
18452 (CFLAGS-test-lfs.c): Likewise.
18453 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18454 (CFLAGS-fputc.c): Likewise.
18455 (CFLAGS-fputwc.c): Likewise.
18456 (CFLAGS-freopen64.c): Likewise.
18457 (CFLAGS-freopen.c): Likewise.
18458 (CFLAGS-fseek.c): Likewise.
18459 (CFLAGS-fseeko64.c): Likewise.
18460 (CFLAGS-fseeko.c): Likewise.
18461 (CFLAGS-ftello64.c): Likewise.
18462 (CFLAGS-ftello.c): Likewise.
18463 (CFLAGS-fwide.c): Likewise.
18464 (CFLAGS-genops.c): Likewise.
18465 (CFLAGS-getc.c): Likewise.
18466 (CFLAGS-getchar.c): Likewise.
18467 (CFLAGS-getwc.c): Likewise.
18468 (CFLAGS-getwchar.c): Likewise.
18469 (CFLAGS-iofclose.c): Likewise.
18470 (CFLAGS-iofflush.c): Likewise.
18471 (CFLAGS-iofgetpos64.c): Likewise.
18472 (CFLAGS-iofgetpos.c): Likewise.
18473 (CFLAGS-iofgets.c): Likewise.
18474 (CFLAGS-iofgetws.c): Likewise.
18475 (CFLAGS-iofputs.c): Likewise.
18476 (CFLAGS-iofputws.c): Likewise.
18477 (CFLAGS-iofread.c): Likewise.
18478 (CFLAGS-iofsetpos64.c): Likewise.
18479 (CFLAGS-iofsetpos.c): Likewise.
18480 (CFLAGS-ioftell.c): Likewise.
18481 (CFLAGS-iofwrite.c): Likewise.
18482 (CFLAGS-iogetdelim.c): Likewise.
18483 (CFLAGS-iogetline.c): Likewise.
18484 (CFLAGS-iogets.c): Likewise.
18485 (CFLAGS-iogetwline.c): Likewise.
18486 (CFLAGS-ioputs.c): Likewise.
18487 (CFLAGS-ioseekoff.c): Likewise.
18488 (CFLAGS-ioseekpos.c): Likewise.
18489 (CFLAGS-iosetbuffer.c): Likewise.
18490 (CFLAGS-iosetvbuf.c): Likewise.
18491 (CFLAGS-ioungetc.c): Likewise.
18492 (CFLAGS-ioungetwc.c): Likewise.
18493 (CFLAGS-oldfileops.c): Likewise.
18494 (CFLAGS-oldiofclose.c): Likewise.
18495 (CFLAGS-oldiofgetpos64.c): Likewise.
18496 (CFLAGS-oldiofgetpos.c): Likewise.
18497 (CFLAGS-oldiofsetpos64.c): Likewise.
18498 (CFLAGS-oldiofsetpos.c): Likewise.
18499 (CFLAGS-peekc.c): Likewise.
18500 (CFLAGS-putc.c): Likewise.
18501 (CFLAGS-putchar.c): Likewise.
18502 (CFLAGS-putwc.c): Likewise.
18503 (CFLAGS-putwchar.c): Likewise.
18504 (CFLAGS-rewind.c): Likewise.
18505 (CFLAGS-wfileops.c): Likewise.
18506 (CFLAGS-wgenops.c): Likewise.
18507 (CFLAGS-oldiofopen.c): Likewise.
18508 (CFLAGS-iofopen.c): Likewise.
18509 (CFLAGS-iofopen64.c): Likewise.
18510 (CFLAGS-oldtmpfile.c): Likewise.
18511 (CFLAGS-tst_putwc.c): Likewise.
18512 * locale/Makefile (CFLAGS-md5.c): Likewise.
18513 (CFLAGS-charmap.c): Likewise.
18514 (CFLAGS-locfile.c): Likewise.
18515 (CFLAGS-charmap-dir.c): Likewise.
18516 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18517 (CFLAGS-getpt.c): Likewise.
18518 (CFLAGS-pt_chown.c): Likewise.
18519 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18520 (CFLAGS-obstack.c): Likewise.
18521 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18522 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18523 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18524 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18525 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18526 (CFLAGS-test-tgmath.c): Likewise.
18527 (CFLAGS-test-tgmath2.c): Likewise.
18528 (CFLAGS-test-tgmath-ret.c): Likewise.
18529 (CFLAGS-test-powl.c): Likewise.
18530 (CFLAGS-test-snan.c): Likewise.
18531 (CFLAGS-test-signgam-finite.c): Likewise.
18532 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18533 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18534 (CFLAGS-test-signgam-uchar.c): Likewise.
18535 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18536 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18537 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18538 (CFLAGS-test-signgam-uint.c): Likewise.
18539 (CFLAGS-test-signgam-uint-init.c): Likewise.
18540 (CFLAGS-test-signgam-uint-static.c): Likewise.
18541 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18542 (CFLAGS-test-signgam-ullong.c): Likewise.
18543 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18544 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18545 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18546 (CFLAGS-test-math-cxx11.cc): Likewise.
18547 (CFLAGS-test-math-isinff.cc): Likewise.
18548 (CFLAGS-test-math-iszero.cc): Likewise.
18549 (CFLAGS-test-math-issignaling.cc): Likewise.
18550 (CFLAGS-test-math-iscanonical.cc): Likewise.
18551 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18552 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18553 (CFLAGS-test-flt-eval-method.c): Likewise.
18554 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18555 (CFLAGS-test-finite-macros.c): Likewise.
18556 * misc/Makefile (CFLAGS-select.c): Likewise.
18557 (CFLAGS-tsearch.c): Likewise.
18558 (CFLAGS-lsearch.c): Likewise.
18559 (CFLAGS-pselect.c): Likewise.
18560 (CFLAGS-readv.c): Likewise.
18561 (CFLAGS-writev.c): Likewise.
18562 (CFLAGS-preadv.c): Likewise.
18563 (CFLAGS-preadv64.c): Likewise.
18564 (CFLAGS-pwritev.c): Likewise.
18565 (CFLAGS-pwritev64.c): Likewise.
18566 (CFLAGS-preadv2.c): Likewise.
18567 (CFLAGS-preadv64v2.c): Likewise.
18568 (CFLAGS-pwritev2.c): Likewise.
18569 (CFLAGS-pwritev64v2.c): Likewise.
18570 (CFLAGS-usleep.c): Likewise.
18571 (CFLAGS-syslog.c): Likewise.
18572 (CFLAGS-error.c): Likewise.
18573 (CFLAGS-getpass.c): Likewise.
18574 (CFLAGS-mkstemp.c): Likewise.
18575 (CFLAGS-mkstemp64.c): Likewise.
18576 (CFLAGS-getsysstats.c): Likewise.
18577 (CFLAGS-getusershell.c): Likewise.
18578 (CFLAGS-err.c): Likewise.
18579 (CFLAGS-tst-tsearch.c): Likewise.
18580 (CFLAGS-msync.c): Likewise.
18581 (CFLAGS-fdatasync.c): Likewise.
18582 (CFLAGS-fsync.c): Likewise.
18583 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18584 (CFLAGS-unwind.c): Likewise.
18585 (CFLAGS-unwind-forcedunwind.c): Likewise.
18586 (CFLAGS-pthread_cancel.c): Likewise.
18587 (CFLAGS-pthread_setcancelstate.c): Likewise.
18588 (CFLAGS-pthread_setcanceltype.c): Likewise.
18589 (CFLAGS-cancellation.c): Likewise.
18590 (CFLAGS-libc-cancellation.c): Likewise.
18591 (CFLAGS-pthread_exit.c): Likewise.
18592 (CFLAGS-forward.c): Likewise.
18593 (CFLAGS-pthread_testcancel.c): Likewise.
18594 (CFLAGS-pthread_join.c): Likewise.
18595 (CFLAGS-pthread_timedjoin.c): Likewise.
18596 (CFLAGS-pthread_once.c): Likewise.
18597 (CFLAGS-pthread_cond_wait.c): Likewise.
18598 (CFLAGS-sem_wait.c): Likewise.
18599 (CFLAGS-sem_timedwait.c): Likewise.
18600 (CFLAGS-fcntl.c): Likewise.
18601 (CFLAGS-lockf.c): Likewise.
18602 (CFLAGS-pread.c): Likewise.
18603 (CFLAGS-pread64.c): Likewise.
18604 (CFLAGS-pwrite.c): Likewise.
18605 (CFLAGS-pwrite64.c): Likewise.
18606 (CFLAGS-wait.c): Likewise.
18607 (CFLAGS-waitpid.c): Likewise.
18608 (CFLAGS-sigwait.c): Likewise.
18609 (CFLAGS-msgrcv.c): Likewise.
18610 (CFLAGS-msgsnd.c): Likewise.
18611 (CFLAGS-tcdrain.c): Likewise.
18612 (CFLAGS-open.c): Likewise.
18613 (CFLAGS-open64.c): Likewise.
18614 (CFLAGS-pause.c): Likewise.
18615 (CFLAGS-recv.c): Likewise.
18616 (CFLAGS-send.c): Likewise.
18617 (CFLAGS-accept.c): Likewise.
18618 (CFLAGS-sendto.c): Likewise.
18619 (CFLAGS-connect.c): Likewise.
18620 (CFLAGS-recvfrom.c): Likewise.
18621 (CFLAGS-recvmsg.c): Likewise.
18622 (CFLAGS-sendmsg.c): Likewise.
18623 (CFLAGS-close.c): Likewise.
18624 (CFLAGS-read.c): Likewise.
18625 (CFLAGS-write.c): Likewise.
18626 (CFLAGS-nanosleep.c): Likewise.
18627 (CFLAGS-sigsuspend.c): Likewise.
18628 (CFLAGS-msync.c): Likewise.
18629 (CFLAGS-fdatasync.c): Likewise.
18630 (CFLAGS-fsync.c): Likewise.
18631 (CFLAGS-pt-system.c): Likewise.
18632 (CFLAGS-tst-cleanup2.c): Likewise.
18633 (CFLAGS-tst-cleanupx2.c): Likewise.
18634 (CFLAGS-flockfile.c): Likewise.
18635 (CFLAGS-ftrylockfile.c): Likewise.
18636 (CFLAGS-funlockfile.c): Likewise.
18637 (CFLAGS-tst-initializers1.c): Likewise.
18638 (CFLAGS-tst-initializers1-c89.c): Likewise.
18639 (CFLAGS-tst-initializers1-c99.c): Likewise.
18640 (CFLAGS-tst-initializers1-c11.c): Likewise.
18641 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18642 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18643 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18644 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18645 (CFLAGS-nscd_getgr_r.c): Likewise.
18646 (CFLAGS-nscd_gethst_r.c): Likewise.
18647 (CFLAGS-nscd_getai.c): Likewise.
18648 (CFLAGS-nscd_initgroups.c): Likewise.
18649 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18650 (CFLAGS-pause.c): Likewise.
18651 (CFLAGS-pread.c): Likewise.
18652 (CFLAGS-pread64.c): Likewise.
18653 (CFLAGS-pwrite.c): Likewise.
18654 (CFLAGS-pwrite64.c): Likewise.
18655 (CFLAGS-sleep.c): Likewise.
18656 (CFLAGS-wait.c): Likewise.
18657 (CFLAGS-waitid.c): Likewise.
18658 (CFLAGS-waitpid.c): Likewise.
18659 (CFLAGS-getopt.c): Likewise.
18660 (CFLAGS-wordexp.c): Likewise.
18661 (CFLAGS-sysconf.c): Likewise.
18662 (CFLAGS-pathconf.c): Likewise.
18663 (CFLAGS-fpathconf.c): Likewise.
18664 (CFLAGS-spawn.c): Likewise.
18665 (CFLAGS-spawnp.c): Likewise.
18666 (CFLAGS-spawni.c): Likewise.
18667 (CFLAGS-glob.c): Likewise.
18668 (CFLAGS-glob64.c): Likewise.
18669 (CFLAGS-getconf.c): Likewise.
18670 (CFLAGS-nanosleep.c): Likewise.
18671 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18672 (CFLAGS-getpwent.c): Likewise.
18673 (CFLAGS-getpw.c): Likewise.
18674 (CFLAGS-fgetpwent_r.c): Likewise.
18675 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18676 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18677 (CFLAGS-mq_timedreceive.c): Likewise.
18678 (CFLAGS-mq_timedsend.c): Likewise.
18679 (CFLAGS-clock_nanosleep.c): Likewise.
18680 (CFLAGS-librt-cancellation.c): Likewise.
18681 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18682 (CFLAGS-getspent.c): Likewise.
18683 (CFLAGS-fgetspent.c): Likewise.
18684 (CFLAGS-fgetspent_r.c): Likewise.
18685 (CFLAGS-putspent.c): Likewise.
18686 (CFLAGS-getspnam.c): Likewise.
18687 (CFLAGS-getspnam_r.c): Likewise.
18688 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18689 (CFLAGS-sigsuspend.c): Likewise.
18690 (CFLAGS-sigtimedwait.c): Likewise.
18691 (CFLAGS-sigwait.c): Likewise.
18692 (CFLAGS-sigwaitinfo.c): Likewise.
18693 (CFLAGS-sigreturn.c): Likewise.
18694 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18695 (CFLAGS-vfwprintf.c): Likewise.
18696 (CFLAGS-tmpfile.c): Likewise.
18697 (CFLAGS-tmpfile64.c): Likewise.
18698 (CFLAGS-tempname.c): Likewise.
18699 (CFLAGS-psignal.c): Likewise.
18700 (CFLAGS-vprintf.c): Likewise.
18701 (CFLAGS-cuserid.c): Likewise.
18702 (CFLAGS-errlist.c): Likewise.
18703 (CFLAGS-siglist.c): Likewise.
18704 (CFLAGS-scanf15.c): Likewise.
18705 (CFLAGS-scanf17.c): Likewise.
18706 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18707 (CFLAGS-msort.c): Likewise.
18708 (CFLAGS-qsort.c): Likewise.
18709 (CFLAGS-system.c): Likewise.
18710 (CFLAGS-fmtmsg.c): Likewise.
18711 (CFLAGS-strfmon.c): Likewise.
18712 (CFLAGS-strfmon_l.c): Likewise.
18713 (CFLAGS-strfromd.c): Likewise.
18714 (CFLAGS-strfromf.c): Likewise.
18715 (CFLAGS-strfroml.c): Likewise.
18716 (CFLAGS-tst-bsearch.c): Likewise.
18717 (CFLAGS-tst-qsort.c): Likewise.
18718 (CFLAGS-tst-makecontext2.c): Likewise.
18719 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18720 (CFLAGS-xnlm_prot.c): Likewise.
18721 (CFLAGS-xrstat.c): Likewise.
18722 (CFLAGS-xyppasswd.c): Likewise.
18723 (CFLAGS-xklm_prot.c): Likewise.
18724 (CFLAGS-xrex.c): Likewise.
18725 (CFLAGS-xsm_inter.c): Likewise.
18726 (CFLAGS-xmount.c): Likewise.
18727 (CFLAGS-xrusers.c): Likewise.
18728 (CFLAGS-xspray.c): Likewise.
18729 (CFLAGS-xnfs_prot.c): Likewise.
18730 (CFLAGS-xrquota.c): Likewise.
18731 (CFLAGS-xkey_prot.c): Likewise.
18732 (CFLAGS-auth_unix.c): Likewise.
18733 (CFLAGS-key_call.c): Likewise.
18734 (CFLAGS-pmap_rmt.c): Likewise.
18735 (CFLAGS-clnt_perr.c): Likewise.
18736 (CFLAGS-openchild.c): Likewise.
18737 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18738 (CFLAGS-msgsnd.c): Likewise.
18739 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18740 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18741 (CFLAGS-tzset.c): Likewise.
18742 (CFLAGS-getdate.c): Likewise.
18743 (CFLAGS-test_time.c): Likewise.
18744 (CPPFLAGS-tst-tzname.c): Likewise.
18745 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18746 (CFLAGS-zic.c): Likewise.
18747 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18748 (CFLAGS-wcswidth.c): Likewise.
18749 (CFLAGS-wcstol.c): Likewise.
18750 (CFLAGS-wcstoul.c): Likewise.
18751 (CFLAGS-wcstoll.c): Likewise.
18752 (CFLAGS-wcstoull.c): Likewise.
18753 (CFLAGS-wcstod.c): Likewise.
18754 (CFLAGS-wcstold.c): Likewise.
18755 (CFLAGS-wcstof128.c): Likewise.
18756 (CFLAGS-wcstof.c): Likewise.
18757 (CFLAGS-wcstol_l.c): Likewise.
18758 (CFLAGS-wcstoul_l.c): Likewise.
18759 (CFLAGS-wcstoll_l.c): Likewise.
18760 (CFLAGS-wcstoull_l.c): Likewise.
18761 (CFLAGS-wcstod_l.c): Likewise.
18762 (CFLAGS-wcstold_l.c): Likewise.
18763 (CFLAGS-wcstof128_l.c): Likewise.
18764 (CFLAGS-wcstof_l.c): Likewise.
18765 (CPPFLAGS-tst-wchar-h.c): Likewise.
18766 (CPPFLAGS-wcstold_l.c): Likewise.
18767
18768 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18769
18770 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18771
18772 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18773 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18774
18775 * manual/tunables.texi (Hardware Capability Tunables): Document
18776 glibc.tune.cached_memopt.
18777 * sysdeps/powerpc/cpu-features.c: New file.
18778 * sysdeps/powerpc/cpu-features.h: New file.
18779 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18780 _dl_powerpc_cpu_features.
18781 * sysdeps/powerpc/dl-tunables.list: New file.
18782 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18783 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18784 (INIT_ARCH): Initialize use_aligned_memopt.
18785 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18786 IS_IN(rtld))]: Restrict dl_platform_init availability and
18787 initialize CPU features used by tunables.
18788 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18789 Add memcpy-power8-cached.
18790 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18791 __memcpy_power8_cached.
18792 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18793 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18794 New file.
18795
18796 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18797
18798 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18799 (CFLAGS-noinl-tester.c): Likewise.
18800 (CFLAGS-tst-strlen.c): Likewise.
18801 (CFLAGS-stratcliff.c): Likewise.
18802 (CFLAGS-test-ffs.c): Likewise.
18803 (CFLAGS-tst-inlcall.c): Likewise.
18804 (CFLAGS-tst-xbzero-opt.c): Likewise.
18805 (CFLAGS-memcpy.c): Likewise.
18806 (CFLAGS-wordcopy.c): Likewise.
18807
18808 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18809
18810 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18811 Store r15 on stack and add cfi rule.
18812 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18813 Likewise.
18814
18815 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18816
18817 [BZ #22577]
18818 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18819 call.
18820
18821 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18822
18823 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18824 Add s_sinf-sse2 and s_sinf-fma.
18825 (CFLAGS-s_sinf-fma.c): New.
18826 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18827 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18828 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18829
18830 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18831
18832 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18833
18834 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18835
18836 [BZ #22568]
18837 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18838 part of result to imaginary part of argument if it is zero and the
18839 real part of the argument is not finite.
18840 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18841 of result to real part of argument if it is zero and the imaginary
18842 part of the argument is not finite.
18843
18844 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18845
18846 [BZ #22524]
18847 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18848 and to the list of locales to be built for testing.
18849 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18850 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18851 and build the collation rules upon that.
18852
18853 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18854
18855 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18856 * manual/math.texi (Mathematics): Document support for _Float32.
18857 * math/Makefile (test-types): Add float32.
18858 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18859 * stdlib/Versions (GLIBC_2.27): Likewise.
18860 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18861 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18862 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18868 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18870 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18871 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18872 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18873 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18874 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18875 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18876 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18877 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18878 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18879 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18880 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18881 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18882 Likewise.
18883 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18884 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18885 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18886 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18887 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18888 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18889 Likewise.
18890 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18891 Likewise.
18892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18893 Likewise.
18894 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18895 Likewise.
18896
18897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18898 Likewise.
18899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18900 Likewise.
18901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18902 Likewise.
18903 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18904 Likewise.
18905 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18906 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18907 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18908 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18916 Likewise.
18917 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18918 Likewise.
18919 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18920 Likewise.
18921 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18922 Likewise.
18923 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18924 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18925 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18926 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18927 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18928 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18929 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18930 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18931
18932 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18933
18934 * stdlib/strtof.c: Include <bits/floatn.h>
18935 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18936 and later undefine as macro. Define as weak alias if
18937 [!USE_WIDE_CHAR].
18938 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18939 and later undefine as macro. Define as weak alias if
18940 [USE_WIDE_CHAR].
18941 * stdlib/strtof_l.c: Include <bits/floatn.h>
18942 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18943 and later undefine as macro. Define as weak alias if
18944 [!USE_WIDE_CHAR].
18945 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18946 and later undefine as macro. Define as weak alias if
18947 [USE_WIDE_CHAR].
18948
18949 * stdlib/strfromf.c: Include <bits/floatn.h>.
18950 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18951 and later undefine as macro and define as weak alias.
18952
18953 * math/test-float32.h: New file.
18954
18955 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18956 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18957 (libm_alias_float_other_r): Create f32 alias.
18958 (libm_alias_float_r): Use semicolon before call to
18959 libm_alias_float_other_r.
18960
18961 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18962 second argument to libm_alias_float_other.
18963 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18964 second argument to libm_alias_float_other.
18965 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18966 argument to libm_alias_float_other.
18967
18968 [BZ #22561]
18969 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18970 real part of result for argument 0 + i * NaN.
18971 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18972 results for tests of 0 + i * NaN.
18973
18974 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18975
18976 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18977
18978 2017-12-06 David S. Miller <davem@davemloft.net>
18979
18980 * sysdeps/sparc/fpu/libm-test-ulps: Update
18981 exp_{downward,towardzero,upward} ulps.
18982
18983 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18984
18985 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18986 variables static.
18987
18988 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18989 (Y0_2D): Likewise.
18990 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18991 (Y0_2D): Likewise.
18992 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18993 (Y0_2D): Likewise.
18994 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18995 (Y0_2D): Likewise.
18996
18997 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18998
18999 [BZ #22515]
19000 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19001 and to the list of locales to be built for testing.
19002 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19003 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19004 and build the collation rules upon that.
19005
19006 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19007
19008 * NEWS: Add sinf to list of optimized functions.
19009
19010 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19011
19012 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19013 (__HAVE_FLOAT32X): Likewise.
19014 * manual/math.texi (Mathematics): Document support for _Float64
19015 and _Float32x.
19016 * math/Makefile (test-types): Add float64 and float32x.
19017 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19018 functions.
19019 * stdlib/Versions (GLIBC_2.27): Likewise.
19020 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19021 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19022 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19024 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19025 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19026 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19027 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19028 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19029 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19030 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19031 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19032 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19034 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19035 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19036 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19037 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19038 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19039 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19040 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19041 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19042 Likewise.
19043 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19044 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19045 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19046 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19047 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19049 Likewise.
19050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19051 Likewise.
19052 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19053 Likewise.
19054 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19055 Likewise.
19056 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19057 Likewise.
19058 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19059 Likewise.
19060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19061 Likewise.
19062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19063 Likewise.
19064 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19065 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19066 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19067 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19068 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19069 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19070 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19071 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19072 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19073 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19075 Likewise.
19076 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19077 Likewise.
19078 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19079 Likewise.
19080 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19081 Likewise.
19082 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19083 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19084 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19085 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19086 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19087 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19088 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19089 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19090
19091 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19092
19093 * bits/floatn-common.h: Include <bits/long-double.h>.
19094 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19095 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19096 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19097 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19098 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19099 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19100 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19101 (__builtin_huge_valf64): Use __builtin_huge_vall.
19102 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19103 (__builtin_inff64): Use __builtin_infl.
19104 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19105 (__builtin_nanf64): Use __builtin_nanl.
19106 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19107 (__builtin_nansf64): Use __builtin_nansl.
19108
19109 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19110 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19111 Carlos O'Donnell <carlos@redhat.com>
19112
19113 * elf/dl-tunables.list: Add elision parameters.
19114 * manual/tunables.texi: Add entries about elision tunable.
19115 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19116 Add callback functions to dynamically enable/disable elision.
19117 Add multiple callbacks functions to set elision parameters.
19118 Deleted __libc_enable_secure check.
19119 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19120 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19121 * configure: Regenerated.
19122 * configure.ac: Option enable_lock_elision was deleted.
19123 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19124 * config.make.in: Remove references to enable_lock_elision.
19125 * manual/install.texi: Elision configure option was removed.
19126 * INSTALL: Regenerated to remove enable_lock_elision.
19127 * nptl/Makefile:
19128 Disable elision so it can verify error case for destroying a mutex.
19129 * sysdeps/powerpc/nptl/elide.h:
19130 Cleanup ENABLE_LOCK_ELISION check.
19131 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19132 * sysdeps/s390/configure: Regenerated.
19133 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19134 * nptl/tst-mutex8.c:
19135 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19136 * sysdeps/powerpc/powerpc32/sysdep.h:
19137 Deleted all ENABLE_LOCK_ELISION checks.
19138 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19139 * sysdeps/powerpc/sysdep.h: Likewise.
19140 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19141 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19142 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19143 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19144 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19145 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19146 enable-lock-elision.
19147
19148 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19149
19150 * stdlib/strtod.c: Include <bits/floatn.h>.
19151 (BUILD_DOUBLE): New macro.
19152 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19153 (strtof64): Define and later undefine as macro. Define as weak
19154 alias if [!USE_WIDE_CHAR].
19155 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19156 (wcstof64): Define and later undefine as macro. Define as weak
19157 alias if [USE_WIDE_CHAR].
19158 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19159 (strtof32x): Define and later undefine as macro. Define as weak
19160 alias if [!USE_WIDE_CHAR].
19161 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19162 (wcstof32x): Define and later undefine as macro. Define as weak
19163 alias if [USE_WIDE_CHAR].
19164 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19165 (BUILD_DOUBLE): New macro.
19166 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19167 (strtof64_l): Define and later undefine as macro. Define as weak
19168 alias if [!USE_WIDE_CHAR].
19169 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19170 (wcstof64_l): Define and later undefine as macro. Define as weak
19171 alias if [USE_WIDE_CHAR].
19172 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19173 (strtof32x_l): Define and later undefine as macro. Define as weak
19174 alias if [!USE_WIDE_CHAR].
19175 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19176 (wcstof32x_l): Define and later undefine as macro. Define as weak
19177 alias if [USE_WIDE_CHAR].
19178
19179 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19180
19181 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19182 (reduced): Use ones as double instead of integer.
19183
19184 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19185
19186 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19187
19188 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19189
19190 * stdlib/strfromd.c: Include <bits/floatn.h>.
19191 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19192 and later undefine as macro and define as weak alias.
19193 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19194 Likewise.
19195
19196 * math/test-float32x.h: New file.
19197 * math/test-float64.h: Likewise.
19198
19199 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19200 (libm_alias_double_other_r_f64): New macro.
19201 (libm_alias_double_other_r_f32x): Likewise.
19202 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19203 libm_alias_double_other_r_f32x.
19204 (libm_alias_double_r): Use semicolon before call to
19205 libm_alias_double_other_r.
19206 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19207 <bits/floatn.h>.
19208 (libm_alias_double_other_r_f64): New macro.
19209 (libm_alias_double_other_r_f32x): Likewise.
19210 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19211 libm_alias_double_other_r_f32x.
19212
19213 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19214
19215 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19216 int.
19217 (SINF_FUNC): Likewise. Replace floor with simple casts.
19218
19219 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19220
19221 [BZ #22517]
19222 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19223 and to the list of locales to be built for testing.
19224 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19225 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19226 and build the collation rules upon that.
19227
19228 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19229
19230 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19231 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19232 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19233 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19234 instead of __insn__xxx.
19235 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19236 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19237 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19238 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19239 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19240 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19241
19242 2017-12-05 Florian Weimer <fweimer@redhat.com>
19243
19244 Linux: Implement interfaces for memory protection keys
19245 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19246 xsignal, xsysconf.
19247 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19248 * support/xunistd.h (xsysconf): Declare.
19249 * support/xraise.c: New file.
19250 * support/xsigaction.c: Likewise.
19251 * support/xsignal.c: Likewise.
19252 * support/xsysconf.c: Likewise.
19253 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19254 pkey_set, pkey_get, pkey_mprotect.
19255 [misc] (tests): Add tst-pkey.
19256 (tst-pkey): Link with -lpthread.
19257 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19258 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19259 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19260 (PKEY_DISABLE_WRITE): Define.
19261 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19262 Declare.
19263 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19264 (SEGV_PKUERR): Add.
19265 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19266 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19267 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19268 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19269 Add.
19270 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19271 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19272 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19273 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19274 * sysdeps/unix/sysv/linux/**.abilist: Update.
19275
19276 2017-12-05 Florian Weimer <fweimer@redhat.com>
19277
19278 * support/tst-test_compare.c (subprocess): Use long long instead
19279 of long argument for consistent type width across 32-bit and
19280 64-bit architectures.
19281 (do_test): Adjust expected output.
19282
19283 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19284
19285 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19286 (cosf): Define using libm_alias_float.
19287 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19288 (fabsf): Define using libm_alias_float.
19289 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19290 (fmaf): Define using libm_alias_float.
19291 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19292 (rintf): Define using libm_alias_float.
19293 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19294 (sinf): Define using libm_alias_float.
19295 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19296 <libm-alias-float.h>.
19297 (modff): Define using libm_alias_float.
19298 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19299 <libm-alias-float.h>.
19300 (logbf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19302 <libm-alias-float.h>.
19303 (ceilf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19305 <libm-alias-float.h>.
19306 (copysignf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19308 <libm-alias-float.h>.
19309 (floorf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19311 <libm-alias-float.h>.
19312 (llrintf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19314 <libm-alias-float.h>.
19315 (llroundf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19317 <libm-alias-float.h>.
19318 (lrintf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19320 <libm-alias-float.h>.
19321 (lroundf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19323 <libm-alias-float.h>.
19324 (nearbyintf): Define using libm_alias_float.
19325 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19326 <libm-alias-float.h>.
19327 (rintf): Define using libm_alias_float.
19328 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19329 <libm-alias-float.h>.
19330 (roundf): Define using libm_alias_float.
19331 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19332 <libm-alias-float.h>.
19333 (truncf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19335 Include <libm-alias-float.h>.
19336 (ceilf): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19338 Include <libm-alias-float.h>.
19339 (copysignf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19341 Include <libm-alias-float.h>.
19342 (floorf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19344 Include <libm-alias-float.h>.
19345 (llrintf): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19347 Include <libm-alias-float.h>.
19348 (llroundf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19350 Include <libm-alias-float.h>.
19351 (logbf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19353 Include <libm-alias-float.h>.
19354 (lrintf): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19356 Include <libm-alias-float.h>.
19357 (lroundf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19359 Include <libm-alias-float.h>.
19360 (modff): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19362 Include <libm-alias-float.h>.
19363 (roundf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19365 Include <libm-alias-float.h>.
19366 (truncf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19368 <libm-alias-float.h>.
19369 (llrintf): Define using libm_alias_float.
19370 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19371 <libm-alias-float.h>.
19372 (llroundf): Define using libm_alias_float.
19373 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19374 <libm-alias-float.h>.
19375 (ceilf): Define using libm_alias_float.
19376 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19377 <libm-alias-float.h>.
19378 (floorf): Define using libm_alias_float.
19379 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19380 <libm-alias-float.h>.
19381 (llroundf): Define using libm_alias_float.
19382 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19383 <libm-alias-float.h>.
19384 (lroundf): Define using libm_alias_float.
19385 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19386 <libm-alias-float.h>.
19387 (roundf): Define using libm_alias_float.
19388 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19389 <libm-alias-float.h>.
19390 (truncf): Define using libm_alias_float.
19391 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19392 <libm-alias-float.h>.
19393 (copysignf): Define using libm_alias_float.
19394 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19395 <libm-alias-float.h>.
19396 (llrintf): Define using libm_alias_float.
19397 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19398 <libm-alias-float.h>.
19399 (llroundf): Define using libm_alias_float.
19400 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19401 <libm-alias-float.h>.
19402 (lrintf): Define using libm_alias_float.
19403 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19404 <libm-alias-float.h>.
19405 (lroundf): Define using libm_alias_float.
19406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19407 <libm-alias-float.h>.
19408 (ceilf): Define using libm_alias_float.
19409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19410 <libm-alias-float.h>.
19411 (copysignf): Define using libm_alias_float.
19412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19413 <libm-alias-float.h>.
19414 (cosf): Define using libm_alias_float.
19415 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19416 <libm-alias-float.h>.
19417 (floorf): Define using libm_alias_float.
19418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19419 <libm-alias-float.h>.
19420 (llrintf): Define using libm_alias_float.
19421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19422 <libm-alias-float.h>.
19423 (llroundf): Define using libm_alias_float.
19424 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19425 <libm-alias-float.h>.
19426 (logbf): Define using libm_alias_float.
19427 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19428 <libm-alias-float.h>.
19429 (modff): Define using libm_alias_float.
19430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19431 <libm-alias-float.h>.
19432 (roundf): Define using libm_alias_float.
19433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19434 <libm-alias-float.h>.
19435 (sinf): Define using libm_alias_float.
19436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19437 <libm-alias-float.h>.
19438 (truncf): Define using libm_alias_float.
19439 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19440 <libm-alias-float.h>.
19441 (ceilf): Define using libm_alias_float.
19442 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19443 <libm-alias-float.h>.
19444 (copysignf): Define using libm_alias_float.
19445 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19446 <libm-alias-float.h>.
19447 (floorf): Define using libm_alias_float.
19448 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19449 <libm-alias-float.h>.
19450 (llrintf): Define using libm_alias_float.
19451 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19452 <libm-alias-float.h>.
19453 (llroundf): Define using libm_alias_float.
19454 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19455 <libm-alias-float.h>.
19456 (nearbyintf): Define using libm_alias_float.
19457 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19458 <libm-alias-float.h>.
19459 (rintf): Define using libm_alias_float.
19460 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19461 <libm-alias-float.h>.
19462 (roundf): Define using libm_alias_float.
19463 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19464 <libm-alias-float.h>.
19465 (truncf): Define using libm_alias_float.
19466 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19467 <libm-alias-float.h>.
19468 (ceilf): Define using libm_alias_float.
19469 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19470 <libm-alias-float.h>.
19471 (floorf): Define using libm_alias_float.
19472 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19473 <libm-alias-float.h>.
19474 (llroundf): Define using libm_alias_float.
19475 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19476 <libm-alias-float.h>.
19477 (roundf): Define using libm_alias_float.
19478 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19479 <libm-alias-float.h>.
19480 (truncf): Define using libm_alias_float.
19481 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19482 <libm-alias-float.h>.
19483 (copysignf): Define using libm_alias_float.
19484 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19485 <libm-alias-float.h>.
19486 (llrintf): Define using libm_alias_float.
19487 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19488 <libm-alias-float.h>.
19489 (llroundf): Define using libm_alias_float.
19490 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19491 <libm-alias-float.h>.
19492 (cosf): Define using libm_alias_float.
19493 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19494 <libm-alias-float.h>.
19495 (llrintf): Define using libm_alias_float.
19496 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19497 <libm-alias-float.h>.
19498 (llroundf): Define using libm_alias_float.
19499 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19500 <libm-alias-float.h>.
19501 (sinf): Define using libm_alias_float.
19502
19503 2017-12-04 Florian Weimer <fweimer@redhat.com>
19504
19505 * support/check.h (TEST_COMPARE): Define.
19506 (support_test_compare_failure): Declare.
19507 * support/Makefile (libsupport-routines): Add
19508 support_test_compare_failure.
19509 (tests): Add tst-test_compare.
19510 * support /support_test_compare_failure.c: New file.
19511 * support/tst-test_compare.c: Likewise.
19512
19513 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19514
19515 [BZ #22527]
19516 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19517 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19518 available, this rewrite of the collation rules does reproduce
19519 the test file in the same order.
19520
19521 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19522
19523 [BZ #10580]
19524 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19525 digraphs in the month and day names. Using single code points for
19526 digraphs is deprecated. While there are dedicated Unicode
19527 codepoints, for the digraphs, these are included for backwards
19528 compatibility and modern texts use a sequence of Basic Latin
19529 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19530 This makes the month and day names agree exactly with CLDR now,
19531 CLDR does not use the single code points for the digraphs either.
19532
19533 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19534
19535 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19536
19537 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19538
19539 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19540 of floor.
19541
19542 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19543
19544 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19545 Define only for libc.so.
19546
19547 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19548
19549 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19550 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19551 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19552 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19553 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19554
19555 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19556
19557 [BZ #5997]
19558 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19559
19560 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19561
19562 [BZ libc/19170]
19563 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19564 PREINIT_FUNCTION_WEAK is nonzero.
19565 (gmon_initializer): New function. Put procedure label for it in
19566 .init_array section.
19567 (_init): Don't call PREINIT_FUNCTION.
19568 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19569 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19570 value when map argument is null.
19571
19572 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19573 depi instruction from PIC pc-relative sequence.
19574 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19575 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19576 (elf_machine_load_address): Likewise.
19577 (elf_machine_runtime_setup): Likewise.
19578
19579 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19580
19581 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19582 <libm-alias-double.h>.
19583 (logb): Define using libm_alias_double.
19584 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19585 <libm-alias-double.h>.
19586 (copysign): Define using libm_alias_double.
19587 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19588 <libm-alias-double.h>.
19589 (llrint): Define using libm_alias_double.
19590 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19591 <libm-alias-double.h>.
19592 (llround): Define using libm_alias_double.
19593 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19594 <libm-alias-double.h>.
19595 (lrint): Define using libm_alias_double.
19596 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19597 <libm-alias-double.h>.
19598 (lround): Define using libm_alias_double.
19599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19600 Include <libm-alias-double.h>.
19601 (copysign): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19603 Include <libm-alias-double.h>.
19604 (llrint): Define using libm_alias_double.
19605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19606 Include <libm-alias-double.h>.
19607 (llround): Define using libm_alias_double.
19608 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19609 <libm-alias-double.h>.
19610 (logb): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19612 Include <libm-alias-double.h>.
19613 (lrint): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19615 Include <libm-alias-double.h>.
19616 (lround): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19618 <libm-alias-double.h>.
19619 (llrint): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19621 <libm-alias-double.h>.
19622 (llround): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19624 <libm-alias-double.h>.
19625 (llround): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19627 <libm-alias-double.h>.
19628 (lround): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19630 <libm-alias-double.h>.
19631 (copysign): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19633 <libm-alias-double.h>.
19634 (llrint): Define using libm_alias_double.
19635 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19636 <libm-alias-double.h>.
19637 (llround): Define using libm_alias_double.
19638 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19639 <libm-alias-double.h>.
19640 (lrint): Define using libm_alias_double.
19641 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19642 <libm-alias-double.h>.
19643 (lround): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19645 <libm-alias-double.h>.
19646 (copysign): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19648 <libm-alias-double.h>.
19649 (llrint): Define using libm_alias_double.
19650 (lrint): Likewise.
19651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19652 <libm-alias-double.h>.
19653 (llround): Define using libm_alias_double.
19654 (lround): Likewise.
19655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19656 <libm-alias-double.h>.
19657 (logb): Define using libm_alias_double.
19658 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19659 <libm-alias-double.h>.
19660 (copysign): Define using libm_alias_double.
19661 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19662 <libm-alias-double.h>.
19663 (llrint): Define using libm_alias_double.
19664 (lrint): Likewise.
19665 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19666 <libm-alias-double.h>.
19667 (llround): Define using libm_alias_double.
19668 (lround): Likewise.
19669 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19670 <libm-alias-double.h>.
19671 (llround): Define using libm_alias_double.
19672 (lround): Likewise.
19673 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19674 <libm-alias-double.h>.
19675 (copysign): Define using libm_alias_double.
19676 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19677 <libm-alias-double.h>.
19678 (llrint): Define using libm_alias_double.
19679 (lrint): Likewise.
19680 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19681 <libm-alias-double.h>.
19682 (llround): Define using libm_alias_double.
19683 (lround): Likewise.
19684 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19685 <libm-alias-double.h>.
19686 (llrint): Define using libm_alias_double.
19687 (lrint): Likewise.
19688 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19689 <libm-alias-double.h>.
19690 (llround): Define using libm_alias_double.
19691 (lround): Likewise.
19692
19693 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19694
19695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19696 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19697 compat symbol based on llround.
19698
19699 * sysdeps/powerpc/power7/fpu/s_logb.c
19700 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19701 symbol based on __logb, not on logb.
19702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19703 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19705 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19706
19707 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19708 (rint): Define using libm_alias_double.
19709 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19710 <libm-alias-double.h>.
19711 (modf): Define using libm_alias_double.
19712 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19713 <libm-alias-double.h>.
19714 (ceil): Define using libm_alias_double.
19715 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19716 <libm-alias-double.h>.
19717 (floor): Define using libm_alias_double.
19718 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19719 <libm-alias-double.h>.
19720 (nearbyint): Define using libm_alias_double.
19721 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19722 <libm-alias-double.h>.
19723 (rint): Define using libm_alias_double.
19724 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19725 <libm-alias-double.h>.
19726 (round): Define using libm_alias_double.
19727 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19728 <libm-alias-double.h>.
19729 (trunc): Define using libm_alias_double.
19730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19731 <libm-alias-double.h>.
19732 (ceil): Define using libm_alias_double.
19733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19734 Include <libm-alias-double.h>.
19735 (floor): Define using libm_alias_double.
19736 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19737 <libm-alias-double.h>.
19738 (modf): Define using libm_alias_double.
19739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19740 Include <libm-alias-double.h>.
19741 (round): Define using libm_alias_double.
19742 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19743 Include <libm-alias-double.h>.
19744 (trunc): Define using libm_alias_double.
19745 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19746 <libm-alias-double.h>.
19747 (ceil): Define using libm_alias_double.
19748 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19749 <libm-alias-double.h>.
19750 (floor): Define using libm_alias_double.
19751 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19752 <libm-alias-double.h>.
19753 (round): Define using libm_alias_double.
19754 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19755 <libm-alias-double.h>.
19756 (trunc): Define using libm_alias_double.
19757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19758 <libm-alias-double.h>.
19759 (ceil): Define using libm_alias_double.
19760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19761 <libm-alias-double.h>.
19762 (floor): Define using libm_alias_double.
19763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19764 <libm-alias-double.h>.
19765 (modf): Define using libm_alias_double.
19766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19767 <libm-alias-double.h>.
19768 (round): Define using libm_alias_double.
19769 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19770 <libm-alias-double.h>.
19771 (trunc): Define using libm_alias_double.
19772 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19773 <libm-alias-double.h>.
19774 (ceil): Define using libm_alias_double.
19775 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19776 <libm-alias-double.h>.
19777 (floor): Define using libm_alias_double.
19778 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19779 <libm-alias-double.h>.
19780 (nearbyint): Define using libm_alias_double.
19781 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19782 <libm-alias-double.h>.
19783 (rint): Define using libm_alias_double.
19784 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19785 <libm-alias-double.h>.
19786 (round): Define using libm_alias_double.
19787 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19788 <libm-alias-double.h>.
19789 (trunc): Define using libm_alias_double.
19790 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19791 <libm-alias-double.h>.
19792 (ceil): Define using libm_alias_double.
19793 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19794 <libm-alias-double.h>.
19795 (floor): Define using libm_alias_double.
19796 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19797 <libm-alias-double.h>.
19798 (round): Define using libm_alias_double.
19799 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19800 <libm-alias-double.h>.
19801 (trunc): Define using libm_alias_double.
19802
19803 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19804 (fabs): Define using libm_alias_double.
19805 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19806 (fma): Define using libm_alias_double.
19807 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19808 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19809 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19810 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19811
19812 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19813
19814 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19815
19816 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19817 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19818 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19819
19820 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19821 due redirect macro.
19822
19823 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19824
19825 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19826
19827 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19828
19829 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19830 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19831 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19832 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19833
19834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19835 (libm-sysdep_routines): Add s_nearbyintf-generic and
19836 s_nearbyint-generic.
19837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19838 New file.
19839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19841 Likewise.
19842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19843 Likewise.
19844 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19845 file.
19846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19847 Likewise.
19848
19849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19850 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19852 file.
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19855 Likewise.
19856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19859
19860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19861 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19863 file.
19864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19866 Likewise.
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19870
19871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19872 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19874 file.
19875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19877 Likewise.
19878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19881
19882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19883 (sysdep_calls): New rule.
19884 (sysdep_routines): Use sysdep_calls as base.
19885 (libm-sysdep_routines): Add generic rule for symbols shared with
19886 libc. Add s_copysign-generic and s_copysign-generic objects.
19887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19888 New file.
19889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19891 Likewise.
19892 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19895
19896 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19897
19898 [BZ #22519]
19899 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19900 the list of locales to be built for testing.
19901 * localedata/is_IS.UTF-8.in: New file.
19902 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19903 on iso14651_t1.
19904
19905 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19906
19907 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19908 <libm-alias-float.h>.
19909 (fabsf): Define using libm_alias_float.
19910
19911 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19912
19913 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19914
19915 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19916
19917 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19918 <libm-alias-float.h>.
19919 (fabsf): Define using libm_alias_float.
19920 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19921 <libm-alias-float.h>.
19922 (lrintf): Define using libm_alias_float.
19923 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19924 <libm-alias-float.h>.
19925 (rintf): Define using libm_alias_float.
19926
19927 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19928 <libm-alias-double.h>.
19929 (fabs): Define using libm_alias_double.
19930 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19931 <libm-alias-double.h>.
19932 (lrint): Define using libm_alias_double.
19933 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19934 <libm-alias-double.h>.
19935 (rint): Define using libm_alias_double.
19936
19937 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19938 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19940 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19941 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19944 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19945 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19948 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19949 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19950 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19952 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19953 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19954 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19955 s_atan_template.c.
19956 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19957 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19958 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19959 s_ceil_template.c.
19960 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19961 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19962 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19963 s_cos_template.c.
19964 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19965 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19966 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19967 s_expm1_template.c.
19968 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19969 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19970 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19971 s_fabs_template.c.
19972 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19974 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19975 s_floor_template.c.
19976 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19977 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19978 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19979 s_frexp_template.c.
19980 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19981 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19982 s_lrint_template.c.
19983 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19984 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19985 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19986 s_modf_template.c.
19987 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19988 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19989 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19990 s_nearbyint_template.c.
19991 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19992 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19993 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19994 s_remquo_template.c.
19995 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19996 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19997 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19998 s_rint_template.c.
19999 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20000 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20001 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20002 s_sin_template.c.
20003 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20004 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20005 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20006 s_sincos_template.c.
20007 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20008 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20009 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20010 s_tan_template.c.
20011 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20012 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20013 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20014 s_tanh_template.c.
20015 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20016 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20017 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20018 s_trunc_template.c.
20019 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20020 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20021 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20022 s_atan.c instead of including s_atan.c.
20023 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20024 s_atanf.c instead of including s_atanf.c.
20025 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20026 s_atanl.c instead of including s_atanl.c.
20027 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20028 instead of s_atan.c.
20029 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20030 instead of s_atanf.c.
20031 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20032 instead of s_atanl.c.
20033
20034 * scripts/update-copyrights: Do not handle intl/plural.c
20035 specially.
20036
20037 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20038
20039 [BZ #22432]
20040 * configure.ac (BISON): Require to be present.
20041 * configure: Regenerated.
20042 * intl/Makefile (generated): Add plural.c.
20043 [$(BISON) != no]: Make code unconditional.
20044 (plural.c): Change rule to $(objpfx)plural.c.
20045 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20046 * intl/plural.c: Remove.
20047 * manual/install.texi (Tools for Compilation): Document bison as
20048 required.
20049 * INSTALL: Regenerated.
20050
20051 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20052
20053 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20054 <libm-alias-double.h>.
20055 (llrint): Define using libm_alias_double.
20056 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20057 <libm-alias-float.h>.
20058 (llrintf): Define using libm_alias_float.
20059 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20060 <libm-alias-ldouble.h>.
20061 (llrintl): Define using libm_alias_ldouble.
20062
20063 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20064 declare_mgen_alias instead of weak_alias.
20065 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20066 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20067 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20068
20069 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20070
20071 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20072 Add add_n-generic.
20073 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20074 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20075 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20076
20077 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20078 Add submul_1-generic.
20079 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20080 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20081 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20082
20083 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20084 Add addmul_1-generic.
20085 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20086 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20087 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20088
20089 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20090 Add sub_n-generic.
20091 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20092 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20093 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20094
20095 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20096 Add mul_1-generic.
20097 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20098 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20099 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20100
20101 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20102
20103 According to CLDR, collation rules for Serbian and Bosnian
20104 should be the same as for Croatian.
20105
20106 [BZ #22534]
20107 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20108 and to the list of locales to be built for testing.
20109 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20110 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20111 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20112 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20113
20114 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20115
20116 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20117 to make test case pass.
20118 * localedata/hr_HR.UTF-8.in: Add more test strings.
20119
20120 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20121
20122 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20123
20124 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20125
20126 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20127 the list of locales to built for testing.
20128 * localedata/hr_HR.UTF-8.in: New file.
20129
20130 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20131
20132 [BZ #10580]
20133 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20134 iso14651_t1.
20135 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20136 CLDR (except use ligatures for the digraphs, CLDR does not use
20137 the ligatures), add first_workday, some fixes in the date and time
20138 formats.
20139 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20140 for Đ and đ.
20141 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20142 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20143 Add int_p_cs_precedes and int_n_cs_precedes.
20144 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20145 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20146 LC_MONETARY now).
20147 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20148 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20149 name_miss.
20150 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20151 and lang_lib. Change postal_fmt.
20152
20153 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20154
20155 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20156 <setjmp.h>.
20157 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20158 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20159 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20160 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20161 * sysdeps/generic/setjmpP.h: New file.
20162 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20163 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20164 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20165 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20166 Add jmp_buf-ssp.sym.
20167 (tests): Add tst-saved_mask-1.
20168
20169 2017-11-30 Arjun Shankar <arjun@redhat.com>
20170
20171 [BZ #22375]
20172 CVE-2017-17426
20173 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20174 instead of request2size.
20175
20176 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20177
20178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20179 (__lllrint): Remove alias.
20180 (lllrint): Likewise.
20181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20182 (__lllrintf): Likewise.
20183 (lllrintf): Likewise.
20184
20185 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20186 <libm-alias-float.h>.
20187 (copysignf): Define using libm_alias_float.
20188 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20189 <libm-alias-float.h>.
20190 (fabsf): Define using libm_alias_float.
20191 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20192 Include <libm-alias-float.h>.
20193 (copysignf): Define using libm_alias_float.
20194 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20195 <libm-alias-float.h>.
20196 (fabsf): Define using libm_alias_float.
20197 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20198 <libm-alias-float.h>.
20199 (fdimf): Define using libm_alias_float.
20200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20201 <libm-alias-float.h>.
20202 (fmaf): Define using libm_alias_float.
20203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20204 <libm-alias-float.h>.
20205 (llrintf): Define using libm_alias_float.
20206 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20207 Include <libm-alias-float.h>.
20208 (nearbyintf): Define using libm_alias_float.
20209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20210 <libm-alias-float.h>.
20211 (rintf): Define using libm_alias_float.
20212 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20213 <libm-alias-float.h>.
20214 (llrintf): Define using libm_alias_float.
20215 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20216 <libm-alias-float.h>.
20217 (lrintf): Define using libm_alias_float.
20218 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20219 <libm-alias-float.h>.
20220 (nearbyintf): Define using libm_alias_float.
20221 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20222 <libm-alias-float.h>.
20223 (rintf): Define using libm_alias_float.
20224 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20225 <libm-alias-float.h>.
20226 (ceilf): Define using libm_alias_float.
20227 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20228 <libm-alias-float.h>.
20229 (floorf): Define using libm_alias_float.
20230 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20231 <libm-alias-float.h>.
20232 (fmaf): Define using libm_alias_float.
20233 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20234 <libm-alias-float.h>.
20235 (lrintf): Define using libm_alias_float.
20236 (llrintf): Likewise.
20237 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20238 <libm-alias-float.h>.
20239 (nearbyintf): Define using libm_alias_float.
20240 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20241 <libm-alias-float.h>.
20242 (rintf): Define using libm_alias_float.
20243 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20244 <libm-alias-float.h>.
20245 (truncf): Define using libm_alias_float.
20246 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20247 <libm-alias-float.h>.
20248 (copysignf): Define using libm_alias_float.
20249 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20250 <libm-alias-float.h>.
20251 (fabsf): Define using libm_alias_float.
20252 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20253 <libm-alias-float.h>.
20254 (lrintf): Define using libm_alias_float.
20255 (llrintf): Likewise.
20256 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20257 <libm-alias-float.h>.
20258 (nearbyintf): Define using libm_alias_float.
20259 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20260 <libm-alias-float.h>.
20261 (rintf): Define using libm_alias_float.
20262
20263 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20264
20265 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20266 <libm-alias-double.h>.
20267 (copysign): Define using libm_alias_double.
20268 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20269 <libm-alias-double.h>.
20270 (fabs): Define using libm_alias_double.
20271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20272 Include <libm-alias-double.h>.
20273 (copysign): Define using libm_alias_double.
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20275 <libm-alias-double.h>.
20276 (fabs): Define using libm_alias_double.
20277 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20278 <libm-alias-double.h>.
20279 (fdim): Define using libm_alias_double.
20280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20281 <libm-alias-double.h>.
20282 (fma): Define using libm_alias_double.
20283 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20284 <libm-alias-double.h>.
20285 (llrint): Define using libm_alias_double.
20286 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20287 Include <libm-alias-double.h>.
20288 (nearbyint): Define using libm_alias_double.
20289 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20290 <libm-alias-double.h>.
20291 (rint): Define using libm_alias_double.
20292 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20293 <libm-alias-double.h>.
20294 (fabs): Define using libm_alias_double.
20295 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20296 <libm-alias-double.h>.
20297 (llrint): Define using libm_alias_double.
20298 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20299 <libm-alias-double.h>.
20300 (nearbyint): Define using libm_alias_double.
20301 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20302 <libm-alias-double.h>.
20303 (rint): Define using libm_alias_double.
20304 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20305 <libm-alias-double.h>.
20306 (ceil): Define using libm_alias_double.
20307 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20308 <libm-alias-double.h>.
20309 (floor): Define using libm_alias_double.
20310 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20311 <libm-alias-double.h>.
20312 (fma): Define using libm_alias_double.
20313 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20314 <libm-alias-double.h>.
20315 (lrint): Define using libm_alias_double.
20316 (llrint): Likewise.
20317 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20318 <libm-alias-double.h>.
20319 (nearbyint): Define using libm_alias_double.
20320 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20321 <libm-alias-double.h>.
20322 (rint): Define using libm_alias_double.
20323 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20324 <libm-alias-double.h>.
20325 (trunc): Define using libm_alias_double.
20326 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20327 <libm-alias-double.h>.
20328 (copysign): Define using libm_alias_double.
20329 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20330 <libm-alias-double.h>.
20331 (fabs): Define using libm_alias_double.
20332 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20333 <libm-alias-double.h>.
20334 (lrint): Define using libm_alias_double.
20335 (llrint): Likewise.
20336 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20337 <libm-alias-double.h>.
20338 (nearbyint): Define using libm_alias_double.
20339 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20340 <libm-alias-double.h>.
20341 (rint): Define using libm_alias_double.
20342
20343 [BZ #22229]
20344 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20345 <math_ldbl_opt.h>.
20346 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20347
20348 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20349 SPARC --disable-multi-arch glibc variants.
20350
20351 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20352 <libm-alias-float.h>.
20353 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20354 if [SHARED].
20355 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20356 <libm-alias-float.h>.
20357 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20358 if [SHARED].
20359 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20360 <libm-alias-float.h>.
20361 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20362 if [SHARED].
20363 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20364 <libm-alias-float.h>.
20365 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20366 if [SHARED].
20367 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20368 <libm-alias-float.h>.
20369 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20370 if [SHARED].
20371 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20372 <libm-alias-float.h>.
20373 (ceilf): Define using libm_alias_float.
20374 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20375 <libm-alias-float.h>.
20376 (floorf): Define using libm_alias_float.
20377 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20378 <libm-alias-float.h>.
20379 (fmaf): Define using libm_alias_float.
20380 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20381 <libm-alias-float.h>.
20382 (nearbyintf): Define using libm_alias_float.
20383 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20384 <libm-alias-float.h>.
20385 (rintf): Define using libm_alias_float.
20386 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20387 <libm-alias-float.h>.
20388 (truncf): Define using libm_alias_float.
20389 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20390 (copysignf): Define using libm_alias_float.
20391 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20392 (cosf): Define using libm_alias_float.
20393 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20394 (fabsf): Define using libm_alias_float.
20395 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20396 (fmaxf): Define using libm_alias_float.
20397 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20398 (fminf): Define using libm_alias_float.
20399 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20400 (llrintf): Define using libm_alias_float.
20401 [!__ILP32__] (lrintf): Likewise.
20402 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20403 (sincosf): Define using libm_alias_float.
20404 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20405 (sinf): Define using libm_alias_float.
20406 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20407 (lrintf): Define using libm_alias_float.
20408
20409 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20410 <libm-alias-double.h>.
20411 (atan): Define using libm_alias_double.
20412 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20413 <libm-alias-double.h>.
20414 (ceil): Define using libm_alias_double.
20415 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20416 <libm-alias-double.h>.
20417 (floor): Define using libm_alias_double.
20418 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20419 <libm-alias-double.h>.
20420 (fma): Define using libm_alias_double.
20421 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20422 <libm-alias-double.h>.
20423 (nearbyint): Define using libm_alias_double.
20424 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20425 <libm-alias-double.h>.
20426 (rint): Define using libm_alias_double.
20427 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20428 <libm-alias-double.h>.
20429 (sin): Define using libm_alias_double.
20430 (cos): Likewise.
20431 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20432 <libm-alias-double.h>.
20433 (tan): Define using libm_alias_double.
20434 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20435 <libm-alias-double.h>.
20436 (trunc): Define using libm_alias_double.
20437 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20438 (copysign): Define using libm_alias_double.
20439 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20440 (fabs): Define using libm_alias_double.
20441 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20442 (fmax): Define using libm_alias_double.
20443 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20444 (fmin): Define using libm_alias_double.
20445 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20446 (llrint): Define using libm_alias_double.
20447 [!__ILP32__] (lrint): Likewise.
20448 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20449 (lrint): Define using libm_alias_double.
20450
20451 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20452
20453 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20454 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20455 objects.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20457 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20458 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20459 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20462
20463 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20464 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20465 objects.
20466 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20467 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20468 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20469 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20470 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20471 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20472
20473 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20474 (libm-sysdep_routines): Add s_nearbyint-generic and
20475 s_nearbyintf-generic objects.
20476 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20477 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20478 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20482
20483 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20484 Add s_finitef-generic and s_finite-generic objects.
20485 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20486 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20487 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20489 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20491
20492 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20493 Add s_isinff-generic and s_isinf-generic objects.
20494 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20495 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20496 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20498 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20499 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20500
20501 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20502 Add s_isnanf-generic and s_isnan-generic objects.
20503 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20504 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20505 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20507 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20508 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20509
20510 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20511 macro.
20512 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20513 rule.
20514 (sysdep_routines): Use sysdep_calls as base.
20515 (libm-sysdep_routines): Add generic rule for symbols shared with
20516 libc. Add s_signbit-generic and s_signbitf-generic objects.
20517 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20518 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20519 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20520 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20521 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20522 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20523
20524 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20525
20526 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20527 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20528 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20529 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20530 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20531 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20532 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20533 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20534 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20535 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20536 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20537 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20538 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20539 libm_alias_float_r.
20540 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20541 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20542 (logf): Likewise.
20543 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20544 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20545 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20546 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20547 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20548 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20549 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20550 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20551 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20552 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20553 libm_alias_float.
20554 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20555 (cosf): Likewise.
20556 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20557 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20558 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20559 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20560 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20561 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20562 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20563 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20564 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20565 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20566 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20567 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20568 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20569 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20570 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20571 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20572 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20573 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20574 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20575 libm_alias_float.
20576 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20577 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20578 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20579 * sysdeps/ia64/fpu/w_lgammaf_main.c
20580 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20581 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20582
20583 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20584 Alexandre Oliva <aoliva@redhat.com>
20585
20586 [BZ #17750]
20587 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20588 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20589 accents sorting.
20590 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20591 sorting.
20592 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20593 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20594 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20595 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20596 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20597 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20598 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20599 instead of “ifdef DIACRIT_BACKWARD”.
20600
20601 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20602
20603 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20604 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20605 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20606 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20607 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20608 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20609 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20610 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20611 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20612 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20613 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20614 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20615 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20616 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20617 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20618 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20619 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20620 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20622 ($(have-as-vis3) == yes): Remove conditional.
20623 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20624 Likewise.
20625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20626 file.
20627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20628 file.
20629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20630 file.
20631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20632 file.
20633 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20634 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20635 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20636 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20637 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20638 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20639 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20640 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20641
20642 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20643
20644 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20645 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20646 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20647 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20648 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20649 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20650 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20651 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20652 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20653 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20654 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20655 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20656 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20657 libm_alias_double_r.
20658 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20659 (log): Likewise.
20660 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20661 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20662 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20663 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20664 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20665 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20666 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20667 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20668 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20669 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20670 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20671 libm_alias_double.
20672 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20673 (cos): Likewise.
20674 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20675 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20676 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20677 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20678 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20679 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20680 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20681 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20682 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20683 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20684 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20685 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20686 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20687 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20688 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20689 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20690 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20691 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20692 libm_alias_double.
20693 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20694 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20695 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20696 * sysdeps/ia64/fpu/w_lgamma_main.c
20697 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20698 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20699
20700 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20701
20702 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20703 address of $global$ into %dp register earlier. Use pc-relative
20704 instruction sequence for PIC case.
20705
20706 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20707
20708 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20709 (asinhf): Define using libm_alias_float.
20710 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20711 (atanf): Define using libm_alias_float.
20712 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20713 (cbrtf): Define using libm_alias_float.
20714 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20715 (ceilf): Define using libm_alias_float.
20716 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20717 (copysignf): Define using libm_alias_float.
20718 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20719 (expm1f): Define using libm_alias_float.
20720 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20721 (fabsf): Define using libm_alias_float.
20722 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20723 (floorf): Define using libm_alias_float.
20724 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20725 (fmaxf): Define using libm_alias_float.
20726 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20727 (fminf): Define using libm_alias_float.
20728 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20729 (frexpf): Define using libm_alias_float.
20730 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20731 (llrintf): Define using libm_alias_float.
20732 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20733 (logbf): Define using libm_alias_float.
20734 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20735 (lrintf): Define using libm_alias_float.
20736 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20737 (nearbyintf): Define using libm_alias_float.
20738 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20739 (remquof): Define using libm_alias_float.
20740 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20741 (rintf): Define using libm_alias_float.
20742 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20743 (truncf): Define using libm_alias_float.
20744 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20745 <libm-alias-float.h>.
20746 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20747 if [SHARED].
20748 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20749 <libm-alias-float.h>.
20750 (expf): Define using libm_alias_float, or libm_alias_float_other
20751 if [SHARED].
20752 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20753 <libm-alias-float.h>.
20754 (log2f): Define using libm_alias_float, or libm_alias_float_other
20755 if [SHARED].
20756 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20757 <libm-alias-float.h>.
20758 (logf): Define using libm_alias_float, or libm_alias_float_other
20759 if [SHARED].
20760 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20761 <libm-alias-float.h>.
20762 (powf): Define using libm_alias_float, or libm_alias_float_other
20763 if [SHARED].
20764 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20765 <libm-alias-float.h>.
20766 (cosf): Define using libm_alias_float.
20767 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20768 <libm-alias-float.h>.
20769 (sincosf): Define using libm_alias_float.
20770 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20771 <libm-alias-float.h>.
20772 (sinf): Define using libm_alias_float.
20773 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20774 (fmaxf): Define using libm_alias_float.
20775 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20776 (fminf): Define using libm_alias_float.
20777 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20778 <libm-alias-float.h>.
20779 (fmaf): Define using libm_alias_float.
20780
20781 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20782 (asinh): Define using libm_alias_double.
20783 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20784 (atan): Define using libm_alias_double.
20785 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20786 (cbrt): Define using libm_alias_double.
20787 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20788 (ceil): Define using libm_alias_double.
20789 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20790 (copysign): Define using libm_alias_double.
20791 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20792 (expm1): Define using libm_alias_double.
20793 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20794 (fabs): Define using libm_alias_double.
20795 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20796 (fdim): Define using libm_alias_double.
20797 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20798 (floor): Define using libm_alias_double.
20799 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20800 (fmax): Define using libm_alias_double.
20801 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20802 (fmin): Define using libm_alias_double.
20803 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20804 (frexp): Define using libm_alias_double.
20805 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20806 (llrint): Define using libm_alias_double.
20807 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20808 (logb): Define using libm_alias_double.
20809 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20810 (lrint): Define using libm_alias_double.
20811 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20812 (nearbyint): Define using libm_alias_double.
20813 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20814 (remquo): Define using libm_alias_double.
20815 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20816 (rint): Define using libm_alias_double.
20817 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20818 (trunc): Define using libm_alias_double.
20819 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20820 (fmax): Define using libm_alias_double.
20821 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20822 (fmin): Define using libm_alias_double.
20823 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20824 (fma): Define using libm_alias_double.
20825
20826 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20827
20828 [BZ #22370]
20829 * elf/dl-hwcaps.c (ROUND): Removed.
20830 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20831 and ELF_NOTE_NEXT_OFFSET.
20832 * elf/dl-load.c (ROUND): Removed.
20833 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20834 * elf/readelflib.c (ROUND): Removed.
20835 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20836 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20837 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20838 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20839
20840 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20841
20842 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20843 [!__fmaf] (fmaf): Define using libm_alias_float.
20844
20845 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20846 [!__fma] (fma): Define using libm_alias_double.
20847 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20848
20849 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20850
20851 [BZ #22336]
20852 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20853 and implement the collation rules for cs from CLDR on top of that.
20854 * Makefile: Add cs_CZ.UTF-8 to test-input.
20855 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20856
20857 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20858
20859 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20860
20861 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20862 Icarus Sparry <icarus.w.sparry@intel.com>
20863
20864 * benchtests/Makefile:Add BENCHSET to allow subsets of
20865 benchmarks to be run.
20866 * benchtests/README: Add documentation for: Running subsets of
20867 benchmarks.
20868
20869 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20870
20871 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20872 range of tests names.
20873
20874 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20875 result from property and remove "max", min" and "mean" from
20876 required properties based on benchtests/bench-skeleton.c.
20877
20878 2017-11-28 Florian Weimer <fweimer@redhat.com>
20879
20880 [BZ #20826]
20881 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20882 due to Internet requirement.
20883 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20884 tst-getaddrinfo5.
20885 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20886
20887 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20888
20889 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20890 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20891 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20892 (sysdep_routines): Add memset-ultra1.
20893 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20894 file.
20895 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20896 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20897 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20898 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20899 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20900 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20901 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20902 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20903
20904 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20905 file.
20906 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20907 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20908 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20909 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20910 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20911 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20912 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20913 macro.
20914 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20915 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20916 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20917 (sysdep_routines): Add memcpy-ultra1.
20918 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20919 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20920
20921 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20922
20923 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20924 (cfloat_versions): Take function argument without trailing 'f'.
20925 Call libm_alias_float_other.
20926 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20927 * sysdeps/alpha/fpu/cargf.c: Likewise.
20928 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20929 * sysdeps/alpha/fpu/conjf.c: Likewise.
20930 * sysdeps/alpha/fpu/crealf.c: Likewise.
20931 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20932 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20933 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20934 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20935 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20936 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20937 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20938 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20939 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20940 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20941 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20942 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20943 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20944 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20945 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20946 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20947 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20948 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20949 (clog10f): Use libm_alias_float_other.
20950 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20951 (ceilf): Define using libm_alias_float.
20952 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20953 (copysignf): Define using libm_alias_float.
20954 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20955 (fabsf): Define using libm_alias_float.
20956 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20957 (floorf): Define using libm_alias_float.
20958 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20959 (fmaxf): Define using libm_alias_float.
20960 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20961 (fminf): Define using libm_alias_float.
20962 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20963 (lrintf): Define using libm_alias_float.
20964 (llrintf): Likewise.
20965 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20966 (lroundf): Define using libm_alias_float.
20967 (llroundf): Likewise.
20968 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20969 (rintf): Define using libm_alias_float.
20970 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20971 (truncf): Define using libm_alias_float.
20972
20973 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20974 (ceilf): Define using libm_alias_float.
20975 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20976 (floorf): Define using libm_alias_float.
20977 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20978 (fmaf): Define using libm_alias_float.
20979 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20980 (fmaxf): Define using libm_alias_float.
20981 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20982 (fminf): Define using libm_alias_float.
20983 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20984 (llrintf): Define using libm_alias_float.
20985 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20986 (llroundf): Define using libm_alias_float.
20987 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20988 (lrintf): Define using libm_alias_float.
20989 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20990 (lroundf): Define using libm_alias_float.
20991 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20992 <libm-alias-float.h>.
20993 (nearbyintf): Define using libm_alias_float.
20994 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20995 (rintf): Define using libm_alias_float.
20996 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20997 (roundf): Define using libm_alias_float.
20998 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20999 (truncf): Define using libm_alias_float.
21000
21001 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21002 (ceil): Define using libm_alias_double.
21003 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21004 (copysign): Define using libm_alias_double.
21005 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21006 (fabs): Define using libm_alias_double.
21007 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21008 (floor): Define using libm_alias_double.
21009 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21010 (fmax): Define using libm_alias_double.
21011 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21012 (fmin): Define using libm_alias_double.
21013 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21014 (lrint): Define using libm_alias_double.
21015 (llrint): Likewise.
21016 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21017 (lround): Define using libm_alias_double.
21018 (llround): Likewise.
21019 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21020 (rint): Define using libm_alias_double.
21021 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21022 (trunc): Define using libm_alias_double.
21023
21024 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21025 (libm_alias_double_r): Add semicolon after weak_alias call.
21026
21027 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21028
21029 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21030 (ceil): Define using libm_alias_double.
21031 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21032 (floor): Define using libm_alias_double.
21033 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21034 (fma): Define using libm_alias_double.
21035 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21036 (fmax): Define using libm_alias_double.
21037 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21038 (fmin): Define using libm_alias_double.
21039 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21040 (llrint): Define using libm_alias_double.
21041 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21042 (llround): Define using libm_alias_double.
21043 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21044 (lrint): Define using libm_alias_double.
21045 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21046 (lround): Define using libm_alias_double.
21047 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21048 (nearbyint): Define using libm_alias_double.
21049 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21050 (rint): Define using libm_alias_double.
21051 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21052 (round): Define using libm_alias_double.
21053 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21054 (trunc): Define using libm_alias_double.
21055
21056 2017-11-27 Florian Weimer <fweimer@redhat.com>
21057
21058 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21059 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21060 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21061 (tests): Add tst-mlock2.
21062 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21063 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21064 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21065 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21066 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21067 for mlock. Document mlock2.
21068
21069 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21070
21071 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21072 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21073 Likewise.
21074 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21075 Likewise.
21076 * sysdeps/x86/Makeconfig: New file.
21077 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21078 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21079 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21080 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21081 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21082 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21083 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21084 Likewise.
21085 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21086 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21087 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21088 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21089 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21090 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21091 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21092 * manual/math.texi (Mathematics): Document support for _Float64x.
21093 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21094 * stdlib/Versions (GLIBC_2.27): Likewise.
21095 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21096 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21097 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21098 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21099 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21100 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21108 Likewise.
21109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21110 Likewise.
21111 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21112 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21113 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21114 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21115 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21116 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21117 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21118 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21119 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21120 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21121 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21122 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21123 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21124 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21125
21126 2017-11-27 Andreas Schwab <schwab@suse.de>
21127
21128 * elf/Makefile (dl-routines): Add dl-sort-maps.
21129 * elf/dl-sort-maps.c: New file.
21130 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21131 (_dl_sort_maps): Declare.
21132 * elf/dl-fini.c (_dl_sort_fini): Remove.
21133 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21134 * elf/dl-close.c (_dl_close_worker): Likewise.
21135 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21136 open-coding it.
21137 * elf/dl-open.c (dl_open_worker): Likewise.
21138
21139 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21140
21141 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21142 using libm_alias_float128.
21143 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21144 Likewise.
21145 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21146 Likewise.
21147 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21148 (setpayloadsigf128): Likewise.
21149 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21150 Likewise.
21151 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21152 Likewise.
21153
21154 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21155 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21156 -mfloat128 to CFLAGS.
21157 ($(foreach
21158 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21159 Likewise.
21160 (CFLAGS-libm-test-support-float64x.c): New variable.
21161 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21162 $(f128-loader-link) to gnulib-tests.
21163
21164 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21165 (libm_alias_float128_other_r): If
21166 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21167 alias.
21168 (libm_alias_float128_r): Add semicolon after weak_alias call.
21169 * sysdeps/generic/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 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21175 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21176 (libm_alias_ldouble_other_r_f128): New macro.
21177 (libm_alias_ldouble_other_r_f64x): Likewise.
21178 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21179 and libm_alias_ldouble_other_r_f64x.
21180
21181 * stdlib/strfroml.c: Always include <stdlib.h>.
21182 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21183 undefine as macro and define as weak alias.
21184 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21185 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21186 <stdlib.h>.
21187 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21188 Define and later undefine as macro and define as weak alias.
21189
21190 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21191 Define and later undefine as macro. Define as weak alias if
21192 [!USE_WIDE_CHAR].
21193 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21194 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21195 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21196 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21197 Define and later undefine as macro. Define as weak alias if
21198 [!USE_WIDE_CHAR].
21199 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21200 Define and later undefine as macro. Define as weak alias if
21201 [USE_WIDE_CHAR].
21202 * sysdeps/ieee754/float128/strtof128_l.c
21203 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21204 Define and later undefine as macro. Define as weak alias if
21205 [!USE_WIDE_CHAR].
21206 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21207 Define and later undefine as macro. Define as weak alias if
21208 [USE_WIDE_CHAR].
21209 * sysdeps/ieee754/ldbl-128/strtold_l.c
21210 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21211 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21212 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21213 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21214 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21215 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21216 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21217 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21218 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21219 * sysdeps/ieee754/ldbl-96/strtold_l.c
21220 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21221 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21222 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21223 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21224
21225 * math/test-float64x.h: New file.
21226 * math/Makefile (type-float64x-yes): New variable.
21227 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21228
21229 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21230 function-like macro.
21231 (min_of_type_): Likewise.
21232 (min_of_type_l): Likewise.
21233 (min_of_type_f128): Likewise.
21234 (min_of_type): Pass () as last argument of __MATH_TG.
21235
21236 * stdlib/tst-strtod-round-skeleton.c
21237 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21238 headers.
21239
21240 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21241 for combinations of long double with _Float64 and _Float64x.
21242
21243 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21244 (__DECL_SIMD_cosf32): Likewise.
21245 (__DECL_SIMD_cosf64): Likewise.
21246 (__DECL_SIMD_cosf32x): Likewise.
21247 (__DECL_SIMD_cosf64x): Likewise.
21248 (__DECL_SIMD_cosf128x): Likewise.
21249 (__DECL_SIMD_sinf16): Likewise.
21250 (__DECL_SIMD_sinf32): Likewise.
21251 (__DECL_SIMD_sinf64): Likewise.
21252 (__DECL_SIMD_sinf32x): Likewise.
21253 (__DECL_SIMD_sinf64x): Likewise.
21254 (__DECL_SIMD_sinf128x): Likewise.
21255 (__DECL_SIMD_sincosf16): Likewise.
21256 (__DECL_SIMD_sincosf32): Likewise.
21257 (__DECL_SIMD_sincosf64): Likewise.
21258 (__DECL_SIMD_sincosf32x): Likewise.
21259 (__DECL_SIMD_sincosf64x): Likewise.
21260 (__DECL_SIMD_sincosf128x): Likewise.
21261 (__DECL_SIMD_logf16): Likewise.
21262 (__DECL_SIMD_logf32): Likewise.
21263 (__DECL_SIMD_logf64): Likewise.
21264 (__DECL_SIMD_logf32x): Likewise.
21265 (__DECL_SIMD_logf64x): Likewise.
21266 (__DECL_SIMD_logf128x): Likewise.
21267 (__DECL_SIMD_expf16): Likewise.
21268 (__DECL_SIMD_expf32): Likewise.
21269 (__DECL_SIMD_expf64): Likewise.
21270 (__DECL_SIMD_expf32x): Likewise.
21271 (__DECL_SIMD_expf64x): Likewise.
21272 (__DECL_SIMD_expf128x): Likewise.
21273 (__DECL_SIMD_powf16): Likewise.
21274 (__DECL_SIMD_powf32): Likewise.
21275 (__DECL_SIMD_powf64): Likewise.
21276 (__DECL_SIMD_powf32x): Likewise.
21277 (__DECL_SIMD_powf64x): Likewise.
21278 (__DECL_SIMD_powf128x): Likewise.
21279
21280 * stdlib/Versions (libc): Move entries for wcstof128 and
21281 wcstof128_l to ....
21282 * wcsmbs/Versions (libc): ... here.
21283 Include <float128-abi.h>.
21284
21285 2017-11-24 Florian Weimer <fweimer@redhat.com>
21286
21287 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21288 bits/mman-shared.h.
21289 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21290 <bits/mman-shared.h>.
21291 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21292 to ...
21293 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21294 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21295 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21296 <bits/mman-shared.h>.
21297
21298 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21299
21300 [BZ #22457]
21301 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21302 posix_memalign/free.
21303 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21304
21305 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21306
21307 [BZ #22469]
21308 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21309 and implement the collation rules for pl from CLDR on top of that.
21310 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21311 of locales to be built for testing.
21312 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21313
21314 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21315
21316 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21317 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21318 libm_alias_ldouble_other.
21319 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21320 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21321 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21322 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21323 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21324 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21325 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21326 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21327 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21328 libm_alias_ldouble_r.
21329 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21330 libm_alias_ldouble_other.
21331 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21332 (log10l): Likewise.
21333 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21334 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21335 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21336 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21337 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21338 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21339 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21340 (atan2l): Likewise.
21341 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21342 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21343 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21344 libm_alias_ldouble.
21345 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21346 (cosl): Likewise.
21347 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21348 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21349 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21350 (expl): Likewise.
21351 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21352 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21353 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21354 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21355 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21356 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21357 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21358 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21359 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21360 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21361 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21362 libm_alias_ldouble.
21363 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21364 libm_alias_ldouble_other.
21365 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21366 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21367 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21368 libm_alias_ldouble.
21369 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21370 libm_alias_ldouble_other.
21371 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21372 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21373 * sysdeps/ia64/fpu/w_lgammal_main.c
21374 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21375 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21376
21377 2017-11-23 Florian Weimer <fweimer@redhat.com>
21378
21379 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21380 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21381 alike. Remove freeres marker.
21382 * malloc/arena.c (arena_thread_freeres): Call
21383 tcache_thread_shutdown.
21384
21385 2017-11-23 Florian Weimer <fweimer@redhat.com>
21386
21387 [BZ #22459]
21388 Export nscd hash function as __nss_hash.
21389 * include/nss.h (__nss_hash): Declare.
21390 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21391 symbol.
21392 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21393 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21394 of __nscd_hash.
21395 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21396 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21397 * nss/Makefiles (routines): Add nss_hash.
21398 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21399 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21400 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21401 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21402
21403 2017-11-23 Florian Weimer <fweimer@redhat.com>
21404
21405 [BZ #22478]
21406 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21407 Return error code, not -1.
21408 * signal/tst-sigwait-eintr.c: New file.
21409 * signal/Makefile (tests): Add tst-sigwait-eintr.
21410
21411 2017-11-23 Florian Weimer <fweimer@redhat.com>
21412
21413 Linux: Add memfd_create system call wrapper
21414 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21415 tst-memfd_create.
21416 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21417 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21418 [__USE_GNU] (memfd_create): Declare.
21419 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21420 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21421 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21422 * sysdeps/unix/sysv/linux/**.abilist: Update.
21423 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21424
21425 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21426
21427 * localedata/gen-locale.sh: Fix typo in variable name.
21428
21429 * resolv/res_debug.c (p_secstodate): Condition definition on
21430 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21431 directly as __p_secstodate, and as a compat symbol. Do not use
21432 libresolv_hidden_def.
21433 * resolv/resolv.h (p_secstodate): Remove macro and function
21434 declaration.
21435 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21436 using p_secstodate.
21437 * include/resolv.h (__p_secstodate): Do not use
21438 libresolv_hidden_proto.
21439 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21440 (tests-internal): ... here.
21441 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21442 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21443 and declare and use __p_secstodate and use compat_symbol_reference
21444 in that case.
21445 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21446 implementation returning 77.
21447
21448 [BZ #22463]
21449 * resolv/res_debug.c: Include <libc-diag.h>.
21450 (p_secstodate): Assert time_t at least as wide as u_long. On
21451 overflow, use integer seconds since the epoch as output, or use
21452 "<overflow>" as output and set errno to EOVERFLOW if integer
21453 seconds since the epoch would be 14 or more characters.
21454 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21455 for sprintf call.
21456 * resolv/tst-p_secstodate.c: New file.
21457 * resolv/Makefile (tests): Add tst-p_secstodate.
21458 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21459
21460 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21461 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21462 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21463
21464 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21465
21466 * posix/regcomp.c (init_word_char): Add comments.
21467
21468 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21469
21470 [BZ #22447]
21471 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21472 strlen to compute length of ut_user and set trailing NUL byte of
21473 result explicitly.
21474
21475 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21476
21477 [BZ #15537]
21478 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21479 using “copy "iso14651_t1"” and then implementing the
21480 collation rules for lv from CLDR on top of that.
21481 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21482 of locales to be built for testing.
21483 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21484 sorting.
21485
21486 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21487
21488 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21489 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21490 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21491 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21492 [__USE_MISC] (MADV_HWPOISON): New macro.
21493 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21494
21495 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21496
21497 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21498 -Wmissing-braces on GCC 4.9.
21499
21500 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21501
21502 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21503 * sysdeps/s390/s390-32/start.S (_start): Likewise
21504 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21505 (thread_start): Likewise.
21506 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21507 (thread_start): Likewise.
21508 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21509 (__makecontext_ret): Likewise.
21510 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21511 (__makecontext_ret): Likewise.
21512
21513 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21514
21515 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21516 __wcschrnul): Remove attribute_hidden.
21517
21518 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21519
21520 regex: don't assume uint64_t or uint32_t
21521 This avoids -Werror=overflow errors for 32-bit systems in
21522 the 64-bit case. Problem reported by Joseph Myers in:
21523 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21524 Also, when this code is used in Gnulib it ports to platforms
21525 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21526 them, and on some 32-bit compilers there is no uint64_t.
21527 Problem reported by Gianluigi Tiesi in:
21528 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21529 * posix/regcomp.c (init_word_char): Don't assume that the types
21530 uint64_t and uint32_t exist. Adapted from Gnulib patch
21531 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21532 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21533
21534 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21535
21536 * sysdeps/aarch64/memset-reg.h: New file.
21537 * sysdeps/aarch64/memset.S: Use it.
21538 (__memset): Rename to MEMSET macro.
21539 [ZVA_MACRO]: Use zva_macro.
21540 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21541 Add memset_generic and memset_falkor.
21542 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21543 (__libc_ifunc_impl_list): Add memset ifuncs.
21544 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21545 local variable zva_size.
21546 * sysdeps/aarch64/multiarch/memset.c: New file.
21547 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21548 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21549 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21550 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21551 (DCZID_DZP_MASK): New macro.
21552 (DCZID_BS_MASK): Likewise.
21553 (init_cpu_features): Read and set zva_size.
21554 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21555 (struct cpu_features): New member zva_size.
21556
21557 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21558 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21559 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21560
21561 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21562 backwards. Fix timing computation.
21563 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21564 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21565 on memset by N at a time. Fix timing computation.
21566
21567 2017-11-20 Florian Weimer <fweimer@redhat.com>
21568
21569 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21570 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21571
21572 2017-11-19 Florian Weimer <fweimer@redhat.com>
21573
21574 manual: Document mprotect
21575 * manual/memory.texi (Memory Protection): New section.
21576 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21577 documentation of PROT_* flags and reference the Memory Protection
21578 section instead.
21579
21580 2017-11-19 Florian Weimer <fweimer@redhat.com>
21581
21582 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21583 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21584 (Scatter-Gather): ... to here. Remove misleading comment.
21585
21586 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21587
21588 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21589 style.
21590
21591 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21592 when /proc/<pid>/setgroups does not exist.
21593
21594 2017-11-18 Florian Weimer <fweimer@redhat.com>
21595
21596 * sysdeps/unix/sysv/linux/tst-ttyname.c
21597 (become_root_in_mount_ns): Remove.
21598 (do_in_chroot_1): Call support_enter_mount_namespace.
21599 (do_in_chroot_2): Likewise.
21600 (do_test): Call support_become_root early.
21601
21602 2017-11-18 Florian Weimer <fweimer@redhat.com>
21603
21604 * support/namespace.h (support_enter_mount_namespace): Declare.
21605 * support/support_enter_mount_namespace.c: New file.
21606 * support/Makefile (libsupport-routines): Add
21607 support_enter_mount_namespace.
21608
21609 2017-11-18 Florian Weimer <fweimer@redhat.com>
21610
21611 * support/temp_file.c (support_create_temp_directory): Use
21612 test_dir and do not rely on the presence of the XXXXXX suffix.
21613 * support/temp_file.h (support_create_temp_directory): Update
21614 comment.
21615 * support/tst-xreadlink.c (do_test): Adjust.
21616 * support/support_chroot.c (support_chroot_create): Likewise.
21617
21618 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21619
21620 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21621 macro.
21622 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21623 htm-no-suspend.
21624
21625 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21626
21627 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21628 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21629 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21630 (ceill): Define using libm_alias_ldouble.
21631 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21632 <libm-alias-ldouble.h>.
21633 (copysignl): Define using libm_alias_ldouble.
21634 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21635 (fabsl): Define using libm_alias_ldouble.
21636 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21637 (floorl): Define using libm_alias_ldouble.
21638 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21639 (fmaxl): Define using libm_alias_ldouble.
21640 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21641 (fminl): Define using libm_alias_ldouble.
21642 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21643 (llrintl): Define using libm_alias_ldouble.
21644 (lrintl): Likewise.
21645 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21646 <libm-alias-ldouble.h>.
21647 (nearbyintl): Define using libm_alias_ldouble.
21648 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21649 (truncl): Define using libm_alias_ldouble.
21650 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21651 <libm-alias-ldouble.h>.
21652 (lrintl): Define using libm_alias_ldouble.
21653
21654 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21655 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21656 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21657 (asinhl): Define using libm_alias_ldouble.
21658 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21659 (atanl): Define using libm_alias_ldouble.
21660 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21661 (cbrtl): Define using libm_alias_ldouble.
21662 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21663 (ceill): Define using libm_alias_ldouble.
21664 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21665 (copysignl): Define using libm_alias_ldouble.
21666 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21667 (fabsl): Define using libm_alias_ldouble.
21668 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21669 (floorl): Define using libm_alias_ldouble.
21670 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21671 (fmaxl): Define using libm_alias_ldouble.
21672 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21673 (fminl): Define using libm_alias_ldouble.
21674 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21675 (frexpl): Define using libm_alias_ldouble.
21676 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21677 (llrintl): Define using libm_alias_ldouble.
21678 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21679 (logbl): Define using libm_alias_ldouble.
21680 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21681 (lrintl): Define using libm_alias_ldouble.
21682 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21683 (nearbyintl): Define using libm_alias_ldouble.
21684 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21685 (nextafterl): Define using libm_alias_ldouble.
21686 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21687 (remquol): Define using libm_alias_ldouble.
21688 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21689 (rintl): Define using libm_alias_ldouble.
21690 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21691 (truncl): Define using libm_alias_ldouble.
21692 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21693 (fmaxl): Define using libm_alias_ldouble.
21694 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21695 (fminl): Define using libm_alias_ldouble.
21696
21697 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21698 to C syntax instead of availability and properties of types.
21699 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21700 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21701 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21702 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21703 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21704 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21705
21706 2017-11-17 Florian Weimer <fweimer@redhat.com>
21707
21708 support_become_root: Enable file creation in namespaces.
21709 * support/support_become_root.c (setup_mapping): New function.
21710 (support_become_root): Call it.
21711
21712 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21713
21714 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21715 macro.
21716
21717 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21718
21719 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21720 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21721
21722 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21723
21724 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21725
21726 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21727 version to 4.14.
21728
21729 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21730
21731 * INSTALL: Fix botched up regeneration.
21732
21733 * NEWS: Update sourceare link to https.
21734 * configure.ac: Likewise.
21735 * crypt/md5test-giant.c: Likewise.
21736 * dlfcn/bug-atexit1.c: Likewise.
21737 * dlfcn/bug-atexit2.c: Likewise.
21738 * localedata/README: Likewise.
21739 * malloc/tst-mallocfork.c: Likewise.
21740 * manual/install.texi: Likewise.
21741 * nptl/tst-pthread-getattr.c: Likewise.
21742 * stdio-common/tst-fgets.c: Likewise.
21743 * stdio-common/tst-fwrite.c: Likewise.
21744 * sunrpc/Makefile: Likewise.
21745 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21746 * wcsmbs/tst-mbrtowc2.c: Likewise.
21747 * configure: Regenerate.
21748 * INSTALL: Regenerate.
21749
21750 2017-11-15 Martin Sebor <msebor@redhat.com>
21751
21752 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21753 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21754 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21755
21756 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21757
21758 [BZ #22145]
21759 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21760 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21761
21762 [BZ #22145]
21763 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21764 Defer is_pty check until end of the function.
21765 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21766
21767 [BZ #22145]
21768 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21769 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21770 (ttyname): Likewise.
21771 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21772 (__ttyname_r): Likewise.
21773
21774 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21775 int to bool.
21776
21777 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21778
21779 * manual/terminal.texi (Is It a Terminal):
21780 Mention ENODEV for ttyname and ttyname_r.
21781
21782 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21783
21784 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21785 constant and macro.
21786
21787 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21788 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21789 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21790 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21791 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21792 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21793
21794 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21795
21796 * signal/sigrelse.c (sigrelse): Optimize implementation.
21797
21798 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21799 (__sigpause): Rely on __sigsuspend to implement single thread
21800 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21801
21802 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21803
21804 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21805 kernel version to 4.14.
21806
21807 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21808
21809 [BZ #22442]
21810 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21811 Check if ifname is too long.
21812
21813 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21814
21815 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21816
21817 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21818
21819 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21820 was accidentally lost.
21821
21822 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21823
21824 * localedata/locales/az_IR: Add standard copyright header.
21825
21826 2017-11-15 Florian Weimer <fweimer@redhat.com>
21827
21828 [BZ #22439]
21829 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21830 not just the top one. Output a new "subheaps" statistic.
21831
21832 2017-11-15 Florian Weimer <fweimer@redhat.com>
21833
21834 [BZ #22408]
21835 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21836 under the per-arena lock.
21837 * malloc/Makefile (tests): Add tst-malloc_info.
21838 (tst-malloc_info): Link with libpthread.
21839 * malloc/tst-malloc_info.c: New file.
21840
21841 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21842
21843 [BZ #21660]
21844 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21845 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21846 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21847 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21848 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21849 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21850 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21851 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21852 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21853 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21854 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21855 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21857 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21859 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21860 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21861 (__floating_type): Likewise.
21862 (__real_integer_type): Likewise.
21863 (__complex_integer_type): Likewise.
21864 (__expr_is_real): Likewise.
21865 (__tgmath_real_type_sub): Likewise.
21866 (__tgmath_real_type): Likewise.
21867 (__tgmath_complex_type_sub): Likewise.
21868 (__tgmath_complex_type): Likewise.
21869 (__TGMATH_F128): Likewise.
21870 (__TGMATH_CF128): Likewise.
21871 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21872 new macros.
21873 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21874 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21875 Likewise.
21876 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21877 Likewise.
21878 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21879 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21881 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21882 Likewise.
21883 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21884 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21885 Likewise.
21886 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21887 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21888 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21889 Likewise.
21890 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21891 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21892 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21893 (cimag): Likewise.
21894 (creal): Likewise.
21895
21896 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21897
21898 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21899 for stpncpy calls for GCC 8.
21900 (test_strncat): Disable -Wstringop-truncation warning for strncat
21901 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21902 strncat call for GCC 7.
21903 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21904 calls for GCC 8.
21905 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21906 trailing NUL.
21907
21908 * string/bug-strncat1.c: Include <libc-diag.h>.
21909 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21910
21911 2017-11-13 Claude Paroz <claude@2xlibre.net>
21912
21913 [BZ #22387]
21914 * localedata/locales/aa_DJ: Improved readibility by replacing
21915 <Uxxxx> sequences in the ASCII printable range by their ASCII
21916 character equivalents.
21917 * localedata/locales/aa_ER: Likewise.
21918 * localedata/locales/aa_ER@saaho: Likewise.
21919 * localedata/locales/aa_ET: Likewise.
21920 * localedata/locales/af_ZA: Likewise.
21921 * localedata/locales/agr_PE: Likewise.
21922 * localedata/locales/ak_GH: Likewise.
21923 * localedata/locales/am_ET: Likewise.
21924 * localedata/locales/anp_IN: Likewise.
21925 * localedata/locales/ar_AE: Likewise.
21926 * localedata/locales/ar_BH: Likewise.
21927 * localedata/locales/ar_DZ: Likewise.
21928 * localedata/locales/ar_EG: Likewise.
21929 * localedata/locales/ar_IN: Likewise.
21930 * localedata/locales/ar_IQ: Likewise.
21931 * localedata/locales/ar_JO: Likewise.
21932 * localedata/locales/ar_KW: Likewise.
21933 * localedata/locales/ar_LB: Likewise.
21934 * localedata/locales/ar_LY: Likewise.
21935 * localedata/locales/ar_MA: Likewise.
21936 * localedata/locales/ar_OM: Likewise.
21937 * localedata/locales/ar_QA: Likewise.
21938 * localedata/locales/ar_SA: Likewise.
21939 * localedata/locales/ar_SD: Likewise.
21940 * localedata/locales/ar_SS: Likewise.
21941 * localedata/locales/ar_SY: Likewise.
21942 * localedata/locales/ar_TN: Likewise.
21943 * localedata/locales/ar_YE: Likewise.
21944 * localedata/locales/as_IN: Likewise.
21945 * localedata/locales/ast_ES: Likewise.
21946 * localedata/locales/ayc_PE: Likewise.
21947 * localedata/locales/az_AZ: Likewise.
21948 * localedata/locales/az_IR: Likewise.
21949 * localedata/locales/be_BY: Likewise.
21950 * localedata/locales/be_BY@latin: Likewise.
21951 * localedata/locales/bem_ZM: Likewise.
21952 * localedata/locales/ber_DZ: Likewise.
21953 * localedata/locales/ber_MA: Likewise.
21954 * localedata/locales/bg_BG: Likewise.
21955 * localedata/locales/bhb_IN: Likewise.
21956 * localedata/locales/bho_IN: Likewise.
21957 * localedata/locales/bi_VU: Likewise.
21958 * localedata/locales/bn_BD: Likewise.
21959 * localedata/locales/bn_IN: Likewise.
21960 * localedata/locales/bo_CN: Likewise.
21961 * localedata/locales/bo_IN: Likewise.
21962 * localedata/locales/br_FR: Likewise.
21963 * localedata/locales/brx_IN: Likewise.
21964 * localedata/locales/bs_BA: Likewise.
21965 * localedata/locales/byn_ER: Likewise.
21966 * localedata/locales/ca_AD: Likewise.
21967 * localedata/locales/ca_ES: Likewise.
21968 * localedata/locales/ca_FR: Likewise.
21969 * localedata/locales/ca_IT: Likewise.
21970 * localedata/locales/ce_RU: Likewise.
21971 * localedata/locales/chr_US: Likewise.
21972 * localedata/locales/cmn_TW: Likewise.
21973 * localedata/locales/crh_UA: Likewise.
21974 * localedata/locales/cs_CZ: Likewise.
21975 * localedata/locales/csb_PL: Likewise.
21976 * localedata/locales/cv_RU: Likewise.
21977 * localedata/locales/cy_GB: Likewise.
21978 * localedata/locales/da_DK: Likewise.
21979 * localedata/locales/de_AT: Likewise.
21980 * localedata/locales/de_BE: Likewise.
21981 * localedata/locales/de_CH: Likewise.
21982 * localedata/locales/de_DE: Likewise.
21983 * localedata/locales/de_IT: Likewise.
21984 * localedata/locales/de_LI: Likewise.
21985 * localedata/locales/de_LU: Likewise.
21986 * localedata/locales/doi_IN: Likewise.
21987 * localedata/locales/dv_MV: Likewise.
21988 * localedata/locales/dz_BT: Likewise.
21989 * localedata/locales/el_CY: Likewise.
21990 * localedata/locales/el_GR: Likewise.
21991 * localedata/locales/en_AG: Likewise.
21992 * localedata/locales/en_AU: Likewise.
21993 * localedata/locales/en_BW: Likewise.
21994 * localedata/locales/en_CA: Likewise.
21995 * localedata/locales/en_DK: Likewise.
21996 * localedata/locales/en_GB: Likewise.
21997 * localedata/locales/en_HK: Likewise.
21998 * localedata/locales/en_IE: Likewise.
21999 * localedata/locales/en_IL: Likewise.
22000 * localedata/locales/en_IN: Likewise.
22001 * localedata/locales/en_NG: Likewise.
22002 * localedata/locales/en_NZ: Likewise.
22003 * localedata/locales/en_PH: Likewise.
22004 * localedata/locales/en_SG: Likewise.
22005 * localedata/locales/en_US: Likewise.
22006 * localedata/locales/en_ZA: Likewise.
22007 * localedata/locales/en_ZM: Likewise.
22008 * localedata/locales/en_ZW: Likewise.
22009 * localedata/locales/eo: Likewise.
22010 * localedata/locales/es_AR: Likewise.
22011 * localedata/locales/es_BO: Likewise.
22012 * localedata/locales/es_CL: Likewise.
22013 * localedata/locales/es_CO: Likewise.
22014 * localedata/locales/es_CR: Likewise.
22015 * localedata/locales/es_CU: Likewise.
22016 * localedata/locales/es_DO: Likewise.
22017 * localedata/locales/es_EC: Likewise.
22018 * localedata/locales/es_ES: Likewise.
22019 * localedata/locales/es_GT: Likewise.
22020 * localedata/locales/es_HN: Likewise.
22021 * localedata/locales/es_MX: Likewise.
22022 * localedata/locales/es_NI: Likewise.
22023 * localedata/locales/es_PA: Likewise.
22024 * localedata/locales/es_PE: Likewise.
22025 * localedata/locales/es_PR: Likewise.
22026 * localedata/locales/es_PY: Likewise.
22027 * localedata/locales/es_SV: Likewise.
22028 * localedata/locales/es_US: Likewise.
22029 * localedata/locales/es_UY: Likewise.
22030 * localedata/locales/es_VE: Likewise.
22031 * localedata/locales/et_EE: Likewise.
22032 * localedata/locales/eu_ES: Likewise.
22033 * localedata/locales/eu_ES@euro: Likewise.
22034 * localedata/locales/fa_IR: Likewise.
22035 * localedata/locales/ff_SN: Likewise.
22036 * localedata/locales/fi_FI: Likewise.
22037 * localedata/locales/fil_PH: Likewise.
22038 * localedata/locales/fo_FO: Likewise.
22039 * localedata/locales/fr_BE: Likewise.
22040 * localedata/locales/fr_CA: Likewise.
22041 * localedata/locales/fr_CH: Likewise.
22042 * localedata/locales/fr_FR: Likewise.
22043 * localedata/locales/fr_LU: Likewise.
22044 * localedata/locales/fur_IT: Likewise.
22045 * localedata/locales/fy_DE: Likewise.
22046 * localedata/locales/fy_NL: Likewise.
22047 * localedata/locales/ga_IE: Likewise.
22048 * localedata/locales/gd_GB: Likewise.
22049 * localedata/locales/gez_ER: Likewise.
22050 * localedata/locales/gez_ET: Likewise.
22051 * localedata/locales/gl_ES: Likewise.
22052 * localedata/locales/gu_IN: Likewise.
22053 * localedata/locales/gv_GB: Likewise.
22054 * localedata/locales/ha_NG: Likewise.
22055 * localedata/locales/hak_TW: Likewise.
22056 * localedata/locales/he_IL: Likewise.
22057 * localedata/locales/hi_IN: Likewise.
22058 * localedata/locales/hif_FJ: Likewise.
22059 * localedata/locales/hne_IN: Likewise.
22060 * localedata/locales/hr_HR: Likewise.
22061 * localedata/locales/hsb_DE: Likewise.
22062 * localedata/locales/ht_HT: Likewise.
22063 * localedata/locales/hu_HU: Likewise.
22064 * localedata/locales/hy_AM: Likewise.
22065 * localedata/locales/i18n: Likewise.
22066 * localedata/locales/ia_FR: Likewise.
22067 * localedata/locales/id_ID: Likewise.
22068 * localedata/locales/ig_NG: Likewise.
22069 * localedata/locales/ik_CA: Likewise.
22070 * localedata/locales/is_IS: Likewise.
22071 * localedata/locales/it_CH: Likewise.
22072 * localedata/locales/it_IT: Likewise.
22073 * localedata/locales/iu_CA: Likewise.
22074 * localedata/locales/ja_JP: Likewise.
22075 * localedata/locales/ka_GE: Likewise.
22076 * localedata/locales/kk_KZ: Likewise.
22077 * localedata/locales/kl_GL: Likewise.
22078 * localedata/locales/kn_IN: Likewise.
22079 * localedata/locales/ko_KR: Likewise.
22080 * localedata/locales/kok_IN: Likewise.
22081 * localedata/locales/ks_IN: Likewise.
22082 * localedata/locales/ks_IN@devanagari: Likewise.
22083 * localedata/locales/ku_TR: Likewise.
22084 * localedata/locales/kw_GB: Likewise.
22085 * localedata/locales/ky_KG: Likewise.
22086 * localedata/locales/lb_LU: Likewise.
22087 * localedata/locales/lg_UG: Likewise.
22088 * localedata/locales/li_BE: Likewise.
22089 * localedata/locales/li_NL: Likewise.
22090 * localedata/locales/lij_IT: Likewise.
22091 * localedata/locales/ln_CD: Likewise.
22092 * localedata/locales/lo_LA: Likewise.
22093 * localedata/locales/lt_LT: Likewise.
22094 * localedata/locales/lv_LV: Likewise.
22095 * localedata/locales/lzh_TW: Likewise.
22096 * localedata/locales/mag_IN: Likewise.
22097 * localedata/locales/mai_IN: Likewise.
22098 * localedata/locales/mg_MG: Likewise.
22099 * localedata/locales/mhr_RU: Likewise.
22100 * localedata/locales/mi_NZ: Likewise.
22101 * localedata/locales/mk_MK: Likewise.
22102 * localedata/locales/ml_IN: Likewise.
22103 * localedata/locales/mn_MN: Likewise.
22104 * localedata/locales/mni_IN: Likewise.
22105 * localedata/locales/mr_IN: Likewise.
22106 * localedata/locales/ms_MY: Likewise.
22107 * localedata/locales/mt_MT: Likewise.
22108 * localedata/locales/my_MM: Likewise.
22109 * localedata/locales/nan_TW: Likewise.
22110 * localedata/locales/nan_TW@latin: Likewise.
22111 * localedata/locales/nb_NO: Likewise.
22112 * localedata/locales/nds_DE: Likewise.
22113 * localedata/locales/nds_NL: Likewise.
22114 * localedata/locales/ne_NP: Likewise.
22115 * localedata/locales/nhn_MX: Likewise.
22116 * localedata/locales/niu_NU: Likewise.
22117 * localedata/locales/niu_NZ: Likewise.
22118 * localedata/locales/nl_AW: Likewise.
22119 * localedata/locales/nl_BE: Likewise.
22120 * localedata/locales/nl_NL: Likewise.
22121 * localedata/locales/nn_NO: Likewise.
22122 * localedata/locales/nr_ZA: Likewise.
22123 * localedata/locales/nso_ZA: Likewise.
22124 * localedata/locales/oc_FR: Likewise.
22125 * localedata/locales/om_ET: Likewise.
22126 * localedata/locales/om_KE: Likewise.
22127 * localedata/locales/or_IN: Likewise.
22128 * localedata/locales/os_RU: Likewise.
22129 * localedata/locales/pa_IN: Likewise.
22130 * localedata/locales/pa_PK: Likewise.
22131 * localedata/locales/pap_AW: Likewise.
22132 * localedata/locales/pap_CW: Likewise.
22133 * localedata/locales/pl_PL: Likewise.
22134 * localedata/locales/ps_AF: Likewise.
22135 * localedata/locales/pt_BR: Likewise.
22136 * localedata/locales/pt_PT: Likewise.
22137 * localedata/locales/quz_PE: Likewise.
22138 * localedata/locales/raj_IN: Likewise.
22139 * localedata/locales/ro_RO: Likewise.
22140 * localedata/locales/ru_RU: Likewise.
22141 * localedata/locales/ru_UA: Likewise.
22142 * localedata/locales/rw_RW: Likewise.
22143 * localedata/locales/sa_IN: Likewise.
22144 * localedata/locales/sat_IN: Likewise.
22145 * localedata/locales/sc_IT: Likewise.
22146 * localedata/locales/sd_IN: Likewise.
22147 * localedata/locales/sd_IN@devanagari: Likewise.
22148 * localedata/locales/se_NO: Likewise.
22149 * localedata/locales/sgs_LT: Likewise.
22150 * localedata/locales/shs_CA: Likewise.
22151 * localedata/locales/si_LK: Likewise.
22152 * localedata/locales/sid_ET: Likewise.
22153 * localedata/locales/sk_SK: Likewise.
22154 * localedata/locales/sl_SI: Likewise.
22155 * localedata/locales/sm_WS: Likewise.
22156 * localedata/locales/so_DJ: Likewise.
22157 * localedata/locales/so_ET: Likewise.
22158 * localedata/locales/so_KE: Likewise.
22159 * localedata/locales/so_SO: Likewise.
22160 * localedata/locales/sq_AL: Likewise.
22161 * localedata/locales/sq_MK: Likewise.
22162 * localedata/locales/sr_ME: Likewise.
22163 * localedata/locales/sr_RS: Likewise.
22164 * localedata/locales/sr_RS@latin: Likewise.
22165 * localedata/locales/ss_ZA: Likewise.
22166 * localedata/locales/st_ZA: Likewise.
22167 * localedata/locales/sv_FI: Likewise.
22168 * localedata/locales/sv_SE: Likewise.
22169 * localedata/locales/sw_KE: Likewise.
22170 * localedata/locales/sw_TZ: Likewise.
22171 * localedata/locales/szl_PL: Likewise.
22172 * localedata/locales/ta_IN: Likewise.
22173 * localedata/locales/ta_LK: Likewise.
22174 * localedata/locales/tcy_IN: Likewise.
22175 * localedata/locales/te_IN: Likewise.
22176 * localedata/locales/tg_TJ: Likewise.
22177 * localedata/locales/th_TH: Likewise.
22178 * localedata/locales/the_NP: Likewise.
22179 * localedata/locales/ti_ER: Likewise.
22180 * localedata/locales/ti_ET: Likewise.
22181 * localedata/locales/tig_ER: Likewise.
22182 * localedata/locales/tk_TM: Likewise.
22183 * localedata/locales/tl_PH: Likewise.
22184 * localedata/locales/tn_ZA: Likewise.
22185 * localedata/locales/to_TO: Likewise.
22186 * localedata/locales/tpi_PG: Likewise.
22187 * localedata/locales/tr_CY: Likewise.
22188 * localedata/locales/tr_TR: Likewise.
22189 * localedata/locales/ts_ZA: Likewise.
22190 * localedata/locales/tt_RU: Likewise.
22191 * localedata/locales/tt_RU@iqtelif: Likewise.
22192 * localedata/locales/ug_CN: Likewise.
22193 * localedata/locales/uk_UA: Likewise.
22194 * localedata/locales/unm_US: Likewise.
22195 * localedata/locales/ur_IN: Likewise.
22196 * localedata/locales/ur_PK: Likewise.
22197 * localedata/locales/uz_UZ: Likewise.
22198 * localedata/locales/uz_UZ@cyrillic: Likewise.
22199 * localedata/locales/ve_ZA: Likewise.
22200 * localedata/locales/vi_VN: Likewise.
22201 * localedata/locales/wa_BE: Likewise.
22202 * localedata/locales/wae_CH: Likewise.
22203 * localedata/locales/wal_ET: Likewise.
22204 * localedata/locales/wo_SN: Likewise.
22205 * localedata/locales/xh_ZA: Likewise.
22206 * localedata/locales/yi_US: Likewise.
22207 * localedata/locales/yo_NG: Likewise.
22208 * localedata/locales/yue_HK: Likewise.
22209 * localedata/locales/yuw_PG: Likewise.
22210 * localedata/locales/zh_CN: Likewise.
22211 * localedata/locales/zh_HK: Likewise.
22212 * localedata/locales/zh_SG: Likewise.
22213 * localedata/locales/zh_TW: Likewise.
22214 * localedata/locales/zu_ZA: Likewise.
22215
22216 2017-11-13 Florian Weimer <fweimer@redhat.com>
22217
22218 * support/next_to_fault.h, support/next_to_fault.c: New files.
22219 * support/Makefile (libsupport-routines): Add next_to_fault.
22220 * resolv/tst-inet_pton.c (struct next_to_fault)
22221 (next_to_fault_allocate, next_to_fault_free): Remove.
22222 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22223
22224 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22225
22226 * elf/dl-support.c: Include <dl-procruntime.c>.
22227 * include/link.h: Include <link_map.h>.
22228 * sysdeps/generic/dl-procruntime.c: New file.
22229 * sysdeps/generic/link_map.h: Likewise.
22230 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22231 the writable ld.so namespace.
22232
22233 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22234
22235 timezone: pacify GCC -Wstringop-truncation
22236 Problem reported by Martin Sebor in:
22237 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22238 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22239
22240 2017-11-12 Florian Weimer <fweimer@redhat.com>
22241
22242 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22243 tst-xreadlink.
22244 (tests): Add tst-xreadlink.
22245 * support/support.h (xstrndup): Declare.
22246 * support/xunistd.h (xunlink, xreadlink): Declare.
22247 * support/temp_file.h (support_create_temp_directory): Declare.
22248 * support/temp_file.c (support_create_temp_directory): New function.
22249 * support/support_chroot.c (support_chroot_create): Use it.
22250 * support/xreadlink.c: New file.
22251 * support/xstrndup.c: Likewise.
22252 * support/xunlink.c: Likewise.
22253 * support/tst-xreadlink.c: Likewise.
22254
22255 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22256
22257 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22258
22259 2017-11-11 Florian Weimer <fweimer@redhat.com>
22260
22261 [BZ #22409]
22262 [BZ #22412]
22263 * resolv/res_comp.c (printable_string, binary_hnok)
22264 (binary_leading_dash): New functions.
22265 (res_hnok): Reimplement using these functions and ns_name_pton.
22266 (res_ownok): Likewise.
22267 (res_mailok): Reimplement using printable_string, ns_name_pton and
22268 binary_hnok.
22269 (res_dnok): Reimplement using printable_string and ns_name_pton.
22270 * resolv/tst-res_hnok.c (tests): Add additional tests.
22271 (LETTERDIGITS, PRINTABLE): Define.
22272 (do_test): Adjust one_char results.
22273
22274 2017-11-11 Florian Weimer <fweimer@redhat.com>
22275
22276 [BZ #22413]
22277 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22278 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22279
22280 2017-11-11 Florian Weimer <fweimer@redhat.com>
22281
22282 * resolv/tst-ns_name_pton.c: New file.
22283 * resolv/Makefile (tests): Add tst-ns_name_pton.
22284 (tst-ns_name_pton): Link against libresolv.
22285
22286 2017-11-11 Florian Weimer <fweimer@redhat.com>
22287
22288 * resolv/tst-res_hnok.c: New file.
22289 * resolv/Makefile (tests): Add tst-res_hnok.
22290 (tst-res_hnok): Link against libresolv.
22291
22292 2017-11-11 Florian Weimer <fweimer@redhat.com>
22293
22294 * resolv/tst-resolv-network.c: Use test framework instead explicit
22295 main function.
22296
22297 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22298
22299 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22300 <jmp_buf-macros.h>.
22301 [!_ISOMAC] (STR_HELPER): New.
22302 [!_ISOMAC] (STR): Likewise.
22303 [!_ISOMAC] (TEST_SIZE): Likewise.
22304 [!_ISOMAC] (TEST_ALIGN): Likewise.
22305 [!_ISOMAC] (TEST_OFFSET): Likewise.
22306 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22307 field offsets of jmp_buf as well as sigjmp_buf.
22308 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22309 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22310 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22311 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22312 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22313 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22314 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22315 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22316 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22317 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22318 Likewise.
22319 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22320 Likewise.
22321 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22322 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22323 Likewise.
22324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22325 Likewise.
22326 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22327 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22328 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22329 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22330 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22331 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22332 Likewise.
22333 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22334 Likewise.
22335 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22336 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22337 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22338
22339 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22340
22341 * include/float.h
22342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22343 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22345 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22347 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22349 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22351 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22353 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22355 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22357 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22359 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22361 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22363 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22365 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22367 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22369 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22371 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22373 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22375 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22377 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22379 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22381 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22383 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22385 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22387 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22389 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22391 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22393 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22395 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22397 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22399 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22401 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22403 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22405 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22407 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22409 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22411 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22413 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22415 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22417 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22419 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22421 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22423 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22425 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22427 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22429 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22430
22431 * stdlib/tst-strtod.h (F16): New macro.
22432 (F32): Likewise.
22433 (F64): Likewise.
22434 (F32X): Likewise.
22435 (F64X): Likewise.
22436 (F128X): Likewise.
22437 (IF_FLOAT16): Likewise.
22438 (IF_FLOAT32): Likewise.
22439 (IF_FLOAT64): Likewise.
22440 (IF_FLOAT32X): Likewise.
22441 (IF_FLOAT64X): Likewise.
22442 (IF_FLOAT128X): Likewise.
22443 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22444 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22445 (STRTOD_TEST_FOREACH): Likewise.
22446 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22447 (CHOOSE_f64): Likewise.
22448 (CHOOSE_f32x): Likewise.
22449 (CHOOSE_f64x): Likewise.
22450
22451 2017-11-07 Andreas Schwab <schwab@suse.de>
22452
22453 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22454
22455 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22456
22457 [BZ #22403]
22458 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22459 to be escaped.
22460 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22461 to be escaped.
22462
22463 2017-11-07 Claude Paroz <claude@2xlibre.net>
22464
22465 [BZ #22403]
22466 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22467 to be escaped.
22468 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22469 to be escaped.
22470 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22471 to be escaped.
22472
22473 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22474
22475 [BZ #22298]
22476 * nptl/allocatestack.c (allocate_stack): Check if
22477 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22478 __PTHREAD_MUTEX_HAVE_PREV is defined.
22479 * nptl/descr.h (pthread): Likewise.
22480 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22481 Likewise.
22482 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22483 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22484 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22485 * sysdeps/nptl/bits/thread-shared-types.h
22486 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22487 defines.
22488 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22489 of __WORDSIZE for internal layout.
22490 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22491 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22492 instead of __WORDSIZE whether to use an union for __spins and __list
22493 fields.
22494 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22495 case.
22496 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22497 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22498 defines.
22499 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22500 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22501 Likewise.
22502 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22503 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22504 Likewise.
22505 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22506 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22507 Likewise.
22508 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22509 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22510 Likewise.
22511 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22512 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22513 Likewise.
22514 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22515 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22516 Likewise.
22517 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22518 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22519 Likewise.
22520 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22521 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22522 Likewise.
22523 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22524 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22525 Likewise.
22526 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22527 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22528 Likewise.
22529 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22530 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22531 Likewise.
22532 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22533 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22534 Likewise.
22535 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22536 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22537 Likewise.
22538 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22539 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22540 Likewise.
22541
22542 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22543 New macros.
22544 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22545 checks for expected input type size.
22546 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22547 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22548 Likewise.
22549 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22550 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22551 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22552 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22553 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22554 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22555 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22556 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22557 superflous runtime assert check.
22558 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22559 Likewise.
22560 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22561 Likewise.
22562 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22563 Likewise.
22564 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22565 Likewise.
22566 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22567 Likewise.
22568 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22569 Likewise.
22570 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22571 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22572 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22573 Likewise.
22574 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22575 Likewise.
22576 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22577 Likewise.
22578 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22579 Likewise.
22580 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22581 Likewise.
22582 * nptl/pthread_attr_setinheritsched.c
22583 (__pthread_attr_setinheritsched): Likewise.
22584 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22585 Likewise.
22586 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22587 Likewise.
22588 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22589 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22590 __old_pthread_attr_setstack): Likewise.
22591 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22592 Likewise.
22593 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22594 Likewise.
22595 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22596 Likewise.
22597 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22598 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22599 Likewise.
22600 * nptl/tst-typesizes.c: Remove file.
22601
22602 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22603 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22604 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22605 checks for internal pthread_mutex_t offsets.
22606 * sysdeps/aarch64/nptl/pthread-offsets.h
22607 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22608 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22609 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22610 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22611 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22612 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22613 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22614 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22615 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22616 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22617 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22618 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22619 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22620 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22621 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22622 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22623 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22624 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22625
22626 2017-11-07 Florian Weimer <fweimer@redhat.com>
22627
22628 * bits/mman-linux.h: Move ...
22629 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22630 comment.
22631 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22632 outdated comment.
22633
22634 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22635
22636 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22637 Redefine STRNLEN as __strnlen_power8.
22638
22639 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22640
22641 * signal/sighold.c (sighold): Optimize implementation.
22642
22643 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22644 __NR_rt_sigqueueinfo.
22645
22646 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22647 __sigtimedwait.
22648 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22649 assume __NR_rt_sigtimedwait.
22650 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22651 and add LIBC_CANCEL_HANDLED for cancellation marking.
22652 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22653
22654 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22655 (sysdeps_routines): Add memchr_noneon.
22656 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22657 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22658 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22659 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22660 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22661 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22662 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22663
22664 * sysdeps/arm/arm-ifunc.h: New file.
22665 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22666 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22667 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22668 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22669 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22670 (__memcpy_neon): Avoid create hidden alias.
22671 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22672 (__memcpy_vfp): Likewise.
22673 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22674 (sysdep_routines): Add memcpy_arm.
22675 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22676
22677 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22678
22679 [BZ #22362]
22680 * Makerules (make-link-multidir): New.
22681 * config.make.in (multidir): New.
22682 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22683 * configure: Regenerated.
22684 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22685 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22686 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22687 New target.
22688
22689 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22690
22691 [BZ #22402]
22692 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22693 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22694
22695 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22696
22697 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22698 to be escaped.
22699
22700 2017-11-04 Florian Weimer <fweimer@redhat.com>
22701
22702 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22703
22704 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22705
22706 * math/math.h [__HAVE_DISTINCT_FLOAT16
22707 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22708 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22709 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22710 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22711 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22712 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22713 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22714 (__MATH_TG_F32): New macro.
22715 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22716 (__MATH_TG_F64X): Likewise.
22717 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22718 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22719
22720 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22721
22722 * po/de.po: Update translations.
22723 * po/ru.po: Likewise.
22724
22725 2017-11-03 Florian Weimer <fweimer@redhat.com>
22726
22727 * manual/filesys.texi (Hard Links): Document linkat.
22728
22729 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22730
22731 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22732 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22733 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22734 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22735 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22736 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22737 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22738 the same as _Float128.
22739 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22740 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22741 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22742
22743 * stdlib/stdlib.h
22744 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22745 Declare.
22746 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22747 Likewise.
22748 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22749 Likewise.
22750 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22751 (strtof32x): Likewise.
22752 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22753 (strtof64x): Likewise.
22754 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22755 (strtof128x): Likewise.
22756 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22757 (strfromf16): Likewise.
22758 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22759 (strfromf32): Likewise.
22760 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22761 (strfromf64): Likewise.
22762 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22763 (strfromf32x): Likewise.
22764 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22765 (strfromf64x): Likewise.
22766 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22767 (strfromf128x): Likewise.
22768 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22769 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22770 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22771 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22772 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22773 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22774
22775 2017-11-03 Richard Henderson <rth@twiddle.net>
22776
22777 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22778
22779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22780
22781 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22782
22783 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22784
22785 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22786 DT_TLSDESC_GOT initialization.
22787 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22788 (_dl_tlsdesc_resolve_hold): Likewise.
22789 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22790 (_dl_tlsdesc_resolve_hold): Likewise.
22791 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22792 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22793
22794 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22795
22796 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22797
22798 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22799
22800 [BZ #18572]
22801 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22802 non-lazily for R_ARM_TLS_DESC.
22803
22804 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22805
22806 [BZ #17078]
22807 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22808 R_ARM_TLS_DESC case.
22809 (elf_machine_lazy_rel): Remove the prelink check.
22810
22811 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22812
22813 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22814 DT_TLSDESC_GOT initialization.
22815 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22816 (_dl_tlsdesc_resolve_rela): Likewise.
22817 (_dl_tlsdesc_resolve_hold): Likewise.
22818 (_dl_tlsdesc_undefweak): Remove ldar.
22819 (_dl_tlsdesc_dynamic): Likewise.
22820 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22821 (_dl_tlsdesc_resolve_rela): Likewise.
22822 (_dl_tlsdesc_resolve_hold): Likewise.
22823 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22824 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22825 (_dl_tlsdesc_resolve_rela): Likewise.
22826 (_dl_tlsdesc_resolve_hold): Likewise.
22827
22828 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22829
22830 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22831 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22832
22833 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22834
22835 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22836 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22837
22838 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22839
22840 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22841 Declare.
22842 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22843 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22844 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22845 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22846 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22847 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22848 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22849 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22850 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22851 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22852 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22853
22854 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22855
22856 [BZ #22382]
22857 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22858 * localedata/locales/tpi_PG: Add standard header.
22859
22860 2017-11-02 Florian Weimer <fweimer@redhat.com>
22861
22862 test-errno-linux: quotactl can fail with EPERM in containers.
22863 * sysdeps/unix/sysv/linux/test-errno-linux.c
22864 (LIST, LIST_FORWARD): New macros.
22865 (check_error_in_list): New function.
22866 (test_wrp_rv): Accept list of permitted error codes.
22867 (test_wrp_rv2): Remove.
22868 (test_wrp): Call test_wrp_rv with list of error codes.
22869 (test_wrp2): Accept list of error codes.
22870 (do_test): Adjust. Allow EPERM for quotactl.
22871
22872 2017-11-02 Florian Weimer <fweimer@redhat.com>
22873
22874 * stdio-common/bug16.c (do_test): Use array_length.
22875 * stdio-common/errlist.c (_sys_nerr): Likewise.
22876 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22877 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22878 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22879 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22880 (do_test): Use array_length.
22881 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22882 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22883 * stdio-common/tst-printf-round.c (do_test): Likewise.
22884 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22885 (CHECK): Use array_length.
22886 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22887 * stdio-common/tstscanf.c (main): Likewise.
22888 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22889
22890 2017-11-02 Florian Weimer <fweimer@redhat.com>
22891
22892 Add array_length and array_end macros.
22893 * include/array_length.h: New file.
22894
22895 2017-11-02 Florian Weimer <fweimer@redhat.com>
22896
22897 [BZ #22332]
22898 * posix/tst-glob-tilde.c (do_noescape): New variable.
22899 (one_test): Process it.
22900 (do_test): Set do_noescape. Add unescaping test case.
22901
22902 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22903
22904 * math/complex.h
22905 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22906 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22907 with appropriate macros defined and undefined.
22908 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22909 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22910 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22911 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22912 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22913 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22914 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22915 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22916 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22917 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22918
22919 * math/complex.h
22920 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22921 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22922 that for long double. Do not condition define and undefine of
22923 _Mdouble_complex_ on [__CFLOAT128].
22924
22925 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22926
22927 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22928 of <sysdeps/generic/sysdep.h>.
22929 (ALIGNARG): Removed.
22930 (ASM_SIZE_DIRECTIVE): Likewise.
22931 (ENTRY): Likewise.
22932 (END): Likewise.
22933 (ENTRY_CHK): Likewise.
22934 (END_CHK): Likewise.
22935 (syscall_error): Likewise.
22936 (mcount): Likewise.
22937 (PSEUDO_END): Likewise.
22938 (L): Likewise.
22939 (atom_text_section): Likewise.
22940 * sysdeps/x86/sysdep.h: New file.
22941 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22942 of <sysdeps/generic/sysdep.h>.
22943 (ALIGNARG): Removed.
22944 (ASM_SIZE_DIRECTIVE): Likewise.
22945 (ENTRY): Likewise.
22946 (END): Likewise.
22947 (ENTRY_CHK): Likewise.
22948 (END_CHK): Likewise.
22949 (syscall_error): Likewise.
22950 (mcount): Likewise.
22951 (PSEUDO_END): Likewise.
22952 (L): Likewise.
22953 (atom_text_section): Likewise.
22954
22955 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22956
22957 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22958 category of LC_CTYPE set to "i18n:2012".
22959 * localedata/locales/i18n_ctype: Regenerate.
22960
22961 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22962
22963 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22964 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22965 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22966 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22967
22968 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22969 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22970 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22971 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22972
22973 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22974
22975 * math/complex.h
22976 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22977 New macro.
22978 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22979 Likewise.
22980 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22981 Likewise.
22982 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22983 (CMPLXF32X): Likewise.
22984 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22985 (CMPLXF64X): Likewise.
22986 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22987 (CMPLXF128X): Likewise.
22988
22989 * math/math.h
22990 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22991 (__MATH_EVAL_FMT2): Define to add 0.0f.
22992
22993 2017-10-31 Alan Modra <amodra@gmail.com>
22994
22995 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22996 include sysdep.h.
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23001 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23009 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23042 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23060 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23061 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23064 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23065 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23066
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23068 include sysdep.h and math_ldbl_opt.h.
23069
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23071 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23085 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23086 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23091 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23096
23097 2017-10-31 Alan Modra <amodra@gmail.com>
23098
23099 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23100 string/strncase_l.c, not string/strncase.c.
23101 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23102 (libc_hidden_def): Redefine.
23103
23104 2017-10-31 Alan Modra <amodra@gmail.com>
23105
23106 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23107 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23108 (__strcasecmp): Don't define.
23109
23110 2017-10-31 Alan Modra <amodra@gmail.com>
23111
23112 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23113 IS_IN (libc).
23114 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23115 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23116 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23117
23118 2017-10-31 Alan Modra <amodra@gmail.com>
23119
23120 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23121 USE_AS_STPNCPY.
23122
23123 2017-10-31 Alan Modra <amodra@gmail.com>
23124
23125 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23126 Redefine only when SHARED.
23127
23128 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23129
23130 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23131 Include <bits/math-finite.h> with appropriate macros defined and
23132 undefined.
23133 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23134 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23135 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23136 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23137 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23138
23139 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23140 [!_Mlong_double_] (_Mlong_double_): Likewise.
23141 [!_Mfloat16_] (_Mfloat16_): Likewise.
23142 [!_Mfloat32_] (_Mfloat32_): Likewise.
23143 [!_Mfloat64_] (_Mfloat64_): Likewise.
23144 [!_Mfloat128_] (_Mfloat128_): Likewise.
23145 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23146 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23147 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23148 (_Mdouble_): Define without indirection through those macros.
23149 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23150 [!_Mfloat128_] (_Mfloat128_): Likewise.
23151 [_Mlong_double_] (_Mlong_double_): Likewise.
23152 (_Mdouble_): Define without indirection through those macros.
23153 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23154 not add -D_Mlong_double_=double.
23155 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23156 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23157
23158 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23159
23160 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23161
23162 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23163
23164 * sysdeps/x86/libc-start.c: Reformat.
23165
23166 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23167
23168 [BZ #22353]
23169 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23170 (1): Renamed to ...
23171 (L(Src0)): This.
23172 (L(Src1)): New.
23173 (L(Src2)): Likewise.
23174 (L(1)): Renamed to ...
23175 (L(Src3)): This.
23176
23177 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23178
23179 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23180 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23181 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23182 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23183 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23184 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23185 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23186 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23187 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23188 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23189 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23190 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23191 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23192 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23193 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23194 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23195 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23196 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23197 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23198 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23199 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23200 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23201 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23202 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23203 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23204 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23205 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23206 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23207 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23208 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23209 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23210 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23211 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23212 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23213 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23214 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23215 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23216 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23217 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23218 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23219 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23220 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23221 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23222 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23223 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23224 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23225 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23226 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23227 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23228 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23229 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23230 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23231 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23232 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23233 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23234 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23235 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23236 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23237 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23238 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23239 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23240 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23241 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23242 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23243 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23244 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23245
23246 2017-10-30 Florian Weimer <fweimer@redhat.com>
23247
23248 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23249 always defined.
23250 * io/tst-mkdirat.c (do_test): Likewise.
23251 * io/tst-mkfifoat.c (do_test): Likewise.
23252 * io/tst-mknodat.c (do_test): Likewise.
23253 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23254 * locale/programs/locale.c (select_dirs): Likewise.
23255 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23256 * posix/bug-glob2.c (my_readdir): Likewise.
23257 * posix/tst-dir.c (main): Likewise.
23258 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23259 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23260
23261 2017-10-30 Florian Weimer <fweimer@redhat.com>
23262
23263 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23264 just __USE_GNU.
23265
23266 2017-10-30 Florian Weimer <fweimer@redhat.com>
23267
23268 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23269 Convert to support/test-driver.c.
23270 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23271 New macro parameters.
23272 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23273 * posix/tst-gnuglob.c: New file.
23274 * posix/tst-gnuglob64.c: Likewise.
23275 * posix/Makefile (tests): Add tst-gnuglob64.
23276
23277 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23278
23279 [BZ #19485]
23280 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23281 and use a better translation for March in “mon”.
23282 * localedata/locales/csb_PL: Use more ASCII to improve the
23283 readability of the source.
23284
23285 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23286
23287 [BZ #13953]
23288 * localedata/locales/km_KH: Use ASCII as much
23289 as possible for better readability of the source and
23290 remove useless comments.
23291 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23292 was commented out and apparently wrong anyway because it was
23293 using Lao characters. If Buddhist era should be used
23294 for km_KH, a native speaker should write the correct formaat
23295 for Khmer.
23296 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23297 (According to CLDR, the first weekday for Cambodia is Sunday).
23298 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23299 (These were using Lao characters which must be wrong. If we get
23300 the correct data from a native speaker, we could add it back, until
23301 then it is better not to have name_mr and name_mrs at all than
23302 having it wrong).
23303
23304 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23305
23306 * locale/loadlocale.c: Correct size of
23307 _nl_value_type_LC_<category> arrays.
23308
23309 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23310
23311 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23312 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23313 with appropriate macros defined and undefined.
23314 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23315 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23316 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23317 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23318 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23319
23320 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23321
23322 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23323 "-O2 -march=i586".
23324
23325 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23326
23327 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23328 with lowercase letters to make it agree with CLDR.
23329
23330 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23331
23332 [BZ #15260]
23333 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23334 first letters of yesstr and nostr in yesexpr and noexpr,
23335 not for the full words.
23336 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23337 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23338 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23339 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23340 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23341 first letters of yesstr and nostr in yesexpr and noexpr,
23342 until now only English was matched in yesexpr and noexpr.
23343 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23344 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23345 fil but not for tl. As tl and fil are very similar, using fil
23346 is probably better than using English.
23347
23348 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23349
23350 [BZ #21706]
23351 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23352 in yesstr and nostr.
23353
23354 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23355
23356 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23357 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23358 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23359 Likewise.
23360 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23361 Likewise.
23362 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23363 Likewise.
23364 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23365 Likewise.
23366 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23367 (SNANF128X): Likewise.
23368
23369 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23370 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23371 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23372 (HUGE_VAL_F32): Likewise.
23373 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23374 (HUGE_VAL_F64): Likewise.
23375 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23376 (HUGE_VAL_F32X): Likewise.
23377 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23378 (HUGE_VAL_F64X): Likewise.
23379 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23380 (HUGE_VAL_F128X): Likewise.
23381
23382 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23383
23384 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23385 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23386 for the br_FR locale.
23387
23388 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23389
23390 [BZ #21706]
23391 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23392
23393 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23394
23395 * locale/programs/record-status.h: Define globals, and function
23396 prototypes. Move function bodies...
23397 * locale/programs/record-status.c: ... to here. New file.
23398 * iconv/Makefile (iconv_prog-modules): Add record-status.
23399 * locale/Makefile (lib-modules): Likewise.
23400 * iconv/iconv_prog.c: Remove verbose.
23401 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23402 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23403 record a warning about ASCII compatibility.
23404 * locale/programs/ld-monetary.c (monetary_finish): If
23405 warn_int_curr_symbol is true then record a warning about the symbol
23406 not being in our ISO 4217 list.
23407 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23408 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23409 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23410 (OPT_NO_WARN): Define.
23411 (OPT_WARN): Define.
23412 (options): Add entry for --no-warnings, and --warnings.
23413 (set_warnings): New function to enable/disable warnings.
23414 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23415 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23416 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23417 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23418 Pass flags to generate_locale.
23419 (generate_locale): Accept new flag argument and pass it to localedef
23420 invocation.
23421 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23422 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23423
23424 * localedata/Makefile (test-input-data): Use full file name.
23425 * localedata/da_DK.in: Rename to...
23426 * localedata/da_DK.ISO-8859-1.in: ...this.
23427 * localedata/de_DE.in: Rename to...
23428 * localedata/de_DE.ISO-8859-1.in: ...this.
23429 * localedata/en_US.in: Rename to...
23430 * localedata/en_US.ISO-8859-1.in: ...this.
23431 * localedata/fr_FR.in: Rename to...
23432 * localedata/fr_FR.UTF-8.in: ... this.
23433 * localedata/hr_HR.in: Rename to...
23434 * localedata/hr_HR.ISO-8859-2.in: ...this.
23435 * localedata/hu_HU.in: Rename to...
23436 * localedata/hu_HU.UTF-8.in: ...this.
23437 * localedata/si_LK.in: Rename to...
23438 * localedata/si_LK.UTF-8.in: ...this.
23439 * localedata/sv_SE.in: Rename to...
23440 * localedata/sv_SE.ISO-8859-1.in: ...this.
23441 * localedata/tr_TR.in: Rename to...
23442 * localedata/tr_TR.UTF-8.in: ...this.
23443 * localedata/uk_UA.in: Rename to...
23444 * localedata/uk_UA.UTF-8.in: ...this.
23445 * localedata/sort-test.sh: Test file is locale name with the
23446 suffix.
23447
23448 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23449 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23450 file.
23451 * localedata/locales/i18n_ctype: Regenerate.
23452 * localedata/locales/tr_TR: Likewise.
23453 * localedata/locales/translit_circle: Likewise.
23454 * localedata/locales/translit_cjk_compat: Likewise.
23455 * localedata/locales/translit_combining: Likewise.
23456 * localedata/locales/translit_compat: Likewise.
23457 * localedata/locales/translit_font: Likewise.
23458 * localedata/locales/translit_fraction: Likewise.
23459
23460 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23461
23462 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23463 lxvd2x/stxvd2x with lvx/stvx.
23464 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23465
23466 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23467
23468 * include/alloc_buffer.h: Replace "if if " with "if " in
23469 comments.
23470 * sysdeps/mips/memcpy.S: Likkewise.
23471 * sysdeps/mips/memset.S: Likewise.
23472 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23473 Likewise.
23474 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23475 Likewise.
23476 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23477 Likewise.
23478
23479 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23480
23481 [BZ #15261]
23482 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23483 yesexpr and noexpr.
23484 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23485 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23486 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23487 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23488 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23489 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23490 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23491
23492 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23493
23494 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23495 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23496 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23497 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23498 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23499 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23500 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23501 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23502 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23503 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23504 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23505 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23506
23507 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23508
23509 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23510 as possible for better readability of the source.
23511 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23512 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23513 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23514 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23515 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23516 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23517 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23518 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23519 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23520 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23521 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23522 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23523 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23524 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23525 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23526 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23527 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23528 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23529 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23530 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23531 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23532 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23533 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23534 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23535 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23536 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23537 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23538 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23539 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23540 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23541 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23542 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23543 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23544 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23545 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23546 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23547 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23548 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23549 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23550 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23551 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23552 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23553 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23554 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23555 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23556 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23557 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23558 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23559 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23560 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23561 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23562 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23563 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23564 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23565 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23566 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23567 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23568 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23569 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23570 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23571 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23572 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23573 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23574 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23575 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23576 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23577 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23578 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23579 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23580 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23581 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23582 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23583 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23584 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23585 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23586 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23587 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23588 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23589 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23590 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23591 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23592 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23593 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23594 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23595 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23596 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23597 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23598 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23599 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23600 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23601 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23602 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23603 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23604 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23605 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23606 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23607 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23608 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23609 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23610 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23611 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23612 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23613 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23614 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23615 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23616 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23617 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23618 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23619 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23620 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23621 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23622 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23623 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23624 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23625 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23626 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23627 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23628 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23629 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23630 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23631 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23632 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23633 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23634 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23635 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23636 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23637 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23638 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23639 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23640 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23641 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23642 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23643 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23644 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23645 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23646 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23647 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23648 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23649 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23650 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23651 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23652 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23653 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23654 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23655 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23656 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23657 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23658 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23659 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23660 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23661 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23662 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23663 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23664 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23665 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23666 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23667 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23668 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23669 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23670 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23671 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23672 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23673 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23674 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23675 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23676 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23677 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23678 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23679 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23680 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23681 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23682 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23683 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23684 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23685
23686 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23687
23688 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23689 (Use first letters of yesstr and nostr correctly instead of using
23690 full words).
23691
23692 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23693
23694 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23695 (Use first letters of yesstr and nostr correctly).
23696
23697 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23698
23699 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23700 also check for the first characters of yesstr and nostr.
23701 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23702 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23703
23704 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23705
23706 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23707 also check for Chinese characters.
23708
23709 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23710
23711 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23712 match also for the contents of yesstr and nostr. As the first letter
23713 of yesstr and nostr is equal, checking only for the first letter
23714 is not enough.
23715
23716 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23717
23718 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23719 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23720
23721 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23722
23723 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23724 of main contributor.
23725
23726 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23727
23728 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23729 instead of using English.
23730
23731 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23732
23733 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23734 by including the first letters of nostr and yesexpr in the regexp.
23735 Also make it more readable by using ASCII where possible.
23736
23737 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23738
23739 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23740 the first letter of nostr in the regexp. It agrees with CLDR now.
23741 Also make it more readable by using ASCII where possible.
23742
23743 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23744
23745 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23746 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23747 these strings contain a U+17D6 (which somewhat looks like a colon)
23748 instead of a real colon to separate the full words for “yes”
23749 and “no” from the single letter responses.
23750
23751 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23752
23753 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23754 it agree with CLDR (include the first letter of yesstr).
23755 Also make it more readable by using ASCII where possible.
23756
23757 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23758
23759 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23760 and improve yesexpr and noexpr. The yesstr and nostr apparently
23761 came from CLDR. And CLDR has a bug there: these strings contain
23762 a U+0903 (which looks like a colon) instead of a real colon
23763 to separate the full words for “yes” and “no” from the single
23764 letter responses.
23765
23766 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23767
23768 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23769 letters of the full yesstr and nostr in yesexpr and noexpr.
23770
23771 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23772
23773 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23774 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23775 * localedata/locales/an_ES: Make source more readable by using ASCII
23776 where possible.
23777
23778 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23779
23780 [BZ #20952]
23781 * localedata/locales/yuw_PG: New file.
23782 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23783 * locale/iso-639.def: Add Yau (Uruwa).
23784
23785 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23786
23787 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23788
23789 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23790
23791 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23792 (__libc_realloc): Likewise.
23793 (_mid_memalign): Likewise.
23794 (__libc_calloc): Likewise.
23795
23796 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23797
23798 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23799 by adding the generic +1 and -0 as in all other locales.
23800 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23801 day names and make it more readable by using ASCII where possible.
23802
23803 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23804
23805 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23806 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23807
23808 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23809
23810 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23811 WNOHANG in waitpid call.
23812
23813 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23814
23815 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23816 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23817
23818 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23819 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23820 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23821 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23822 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23823 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23824 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23825 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23826 variables.
23827
23828 2017-10-23 Michael Collison <michael.collison@arm.com>
23829
23830 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23831 with __builtin_sqrt.
23832 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23833 with __builtin_sqrtf.
23834 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23835 with __builtin_ceil.
23836 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23837 with __builtin_ceilf.
23838 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23839 with __builtin_floor.
23840 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23841 with __builtin_floorf.
23842 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23843 with __builtin_fma.
23844 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23845 with __builtin_fmaf.
23846 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23847 with __builtin_fmax.
23848 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23849 with __builtin_fmaxf.
23850 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23851 with __builtin_fmin.
23852 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23853 with __builtin_fminf.
23854 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23855 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23856 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23857 with builtin_rint and conversion to int.
23858 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23859 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23860 with builtin_llround.
23861 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23862 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23863 with builtin_rint and conversion to long int.
23864 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23865 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23866 with builtin_lround.
23867 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23868 with builtin_lroundf.
23869 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23870 statements with __builtin_nearbyint.
23871 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23872 statements with __builtin_nearbyintf.
23873 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23874 with __builtin_rint.
23875 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23876 with __builtin_rintf.
23877 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23878 with __builtin_round.
23879 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23880 with __builtin_roundf.
23881 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23882 with __builtin_trunc.
23883 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23884 with __builtin_truncf.
23885 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23886 and s_l[l]round[f].c too.
23887
23888 2017-10-23 Alan Modra <amodra@gmail.com>
23889
23890 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23891 Adjust stack after restoring regs. Add missing LR cfi_restore.
23892
23893 2017-10-23 Alan Modra <amodra@gmail.com>
23894
23895 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23896 Move LR save and frame setup/teardown and LR restore to
23897 immediately around memset call. Provide cfi.
23898
23899 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23900
23901 * sysdeps/i386/fpu/e_powf.S: Removed.
23902 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23903 * sysdeps/i386/fpu/w_powf.c: Likewise.
23904 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23905 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23906 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23907 Add e_powf-sse2.
23908 (CFLAGS-e_powf-sse2.c): New.
23909 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23910 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23911
23912 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23913
23914 * sysdeps/i386/fpu/e_log2f.S: Removed.
23915 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23916 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23917 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23918 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23919 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23920 Add e_log2f-sse2.
23921 (CFLAGS-e_log2f-sse2.c): New.
23922 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23923 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23924
23925 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23926
23927 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23928 Add e_powf-fma.
23929 (CFLAGS-e_powf-fma.c): New.
23930 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23931 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23932
23933 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23934
23935 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23936 Add e_log2f-fma.
23937 (CFLAGS-e_log2f-fma.c): New.
23938 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23939 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23940
23941 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23942
23943 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23944 Add e_logf-fma.
23945 (CFLAGS-e_logf-fma.c): New.
23946 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23947 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23948
23949 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23950
23951 * sysdeps/i386/fpu/e_logf.S: Removed.
23952 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23953 * sysdeps/i386/fpu/w_logf.c: Likewise.
23954 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23955 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23956 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23957 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23958 Add e_logf-sse2.
23959 (CFLAGS-e_logf-sse2.c): New.
23960 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23961 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23962
23963 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23964
23965 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23966 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23967 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23968 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23969 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23970 Add e_exp2f-sse2.
23971 (CFLAGS-e_exp2f-sse2.c): New.
23972 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23973 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23974
23975 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23976
23977 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23978 Add e_exp2f-fma.
23979 (CFLAGS-e_exp2f-fma.c): New.
23980 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23981 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23982
23983 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23984
23985 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23986 * sysdeps/i386/fpu/e_expf.S: Likewise.
23987 * sysdeps/i386/fpu/math_errf.c: Likewise.
23988 * sysdeps/i386/fpu/w_expf.c: Likewise.
23989 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23990 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23991 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23992 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23993 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23994 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23995 Remove e_expf-ia32.
23996 (CFLAGS-e_expf-sse2.c): New.
23997 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23998 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23999
24000 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24001
24002 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24003 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24004 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24005 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24006 e_expf.c.
24007 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24008 New.
24009 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24010 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24011 Renamed to ...
24012 (__redirect_expf): This.
24013 (SYMBOL_NAME): Changed to expf.
24014 (__ieee754_expf): Renamed to ...
24015 (__expf): This.
24016 (__GI___expf): This.
24017 (__ieee754_expf): Add strong_alias.
24018 (__expf_finite): Likewise.
24019 (__expf): New.
24020 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24021
24022 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24023
24024 [BZ #22332]
24025 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24026 unescaping.
24027
24028 2017-10-21 Florian Weimer <fweimer@redhat.com>
24029
24030 * posix/Makefile (tests): Add tst-glob-tilde.
24031 (tests-special): Add tst-glob-tilde-mem.out
24032 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24033 (tst-glob-tilde-mem.out): Add mtrace check.
24034 * posix/tst-glob-tilde.c: New file.
24035
24036 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24037
24038 * bits/floatn-common.h: New file.
24039 * math/Makefile (headers): Add bits/floatn-common.h.
24040 * bits/floatn.h: Include <bits/floatn-common.h>.
24041 * sysdeps/ia64/bits/floatn.h: Likewise.
24042 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24043 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24044 * sysdeps/powerpc/bits/floatn.h: Likewise.
24045 * sysdeps/x86/bits/floatn.h: Likewise.
24046
24047 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24048
24049 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24050 indicates whether compiler emits an warning for alias for
24051 functions with incompatible types.
24052
24053 [BZ #22273]
24054 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24055 the auxiliary process is terminated by a signal before calling _exit
24056 or execve.
24057
24058 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24059
24060 [BZ #21265]
24061 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24062 New.
24063 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24064 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24065 and bit_arch_XSAVEC_Usable if needed.
24066 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24067 and bit_arch_Use_dl_runtime_resolve_opt.
24068 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24069 Removed.
24070 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24071 (bit_arch_Prefer_No_AVX512): Updated.
24072 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24073 (bit_arch_XSAVEC_Usable): New.
24074 (STATE_SAVE_OFFSET): Likewise.
24075 (STATE_SAVE_MASK): Likewise.
24076 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24077 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24078 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24079 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24080 (index_arch_XSAVEC_Usable): New.
24081 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24082 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24083 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24084 is enabled.
24085 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24086 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24087 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24088 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24089 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24090 _dl_runtime_resolve_xsavec.
24091 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24092 Removed.
24093 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24094 instead of VEC_SIZE.
24095 (REGISTER_SAVE_BND0): Removed.
24096 (REGISTER_SAVE_BND1): Likewise.
24097 (REGISTER_SAVE_BND3): Likewise.
24098 (REGISTER_SAVE_RAX): Always defined to 0.
24099 (VMOV): Removed.
24100 (_dl_runtime_resolve_avx): Likewise.
24101 (_dl_runtime_resolve_avx_slow): Likewise.
24102 (_dl_runtime_resolve_avx_opt): Likewise.
24103 (_dl_runtime_resolve_avx512): Likewise.
24104 (_dl_runtime_resolve_avx512_opt): Likewise.
24105 (_dl_runtime_resolve_sse): Likewise.
24106 (_dl_runtime_resolve_sse_vex): Likewise.
24107 (USE_FXSAVE): New.
24108 (_dl_runtime_resolve_fxsave): Likewise.
24109 (USE_XSAVE): Likewise.
24110 (_dl_runtime_resolve_xsave): Likewise.
24111 (USE_XSAVEC): Likewise.
24112 (_dl_runtime_resolve_xsavec): Likewise.
24113 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24114 Removed.
24115 (_dl_runtime_resolve_avx512_opt): Likewise.
24116 (_dl_runtime_resolve_avx): Likewise.
24117 (_dl_runtime_resolve_avx_opt): Likewise.
24118 (_dl_runtime_resolve_sse): Likewise.
24119 (_dl_runtime_resolve_sse_vex): Likewise.
24120 (_dl_runtime_resolve_fxsave): New.
24121 (_dl_runtime_resolve_xsave): Likewise.
24122 (_dl_runtime_resolve_xsavec): Likewise.
24123
24124 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24125
24126 [BZ #22320]
24127 CVE-2017-15670
24128 * posix/glob.c (__glob): Fix one-byte overflow.
24129
24130 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24131
24132 * malloc/malloc.c (sysdep-cancel.h): Add include.
24133
24134 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24135
24136 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24137
24138 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24139
24140 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24141 (tests): Remove $(objpfx)ga_test depdendency.
24142 * resolv/ga_test.c: Remove file.
24143
24144 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24145
24146 [BZ #18812]
24147 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24148 * localedata/locales/kab_DZ: New file.
24149
24150 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24151
24152 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24153 _dl_relocate_static_pie instead of _dl_start to compute load
24154 address in static PIE.
24155
24156 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24157
24158 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24159
24160 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24161
24162 [BZ #13605]
24163 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24164 * localedata/locales/shn_MM: New file.
24165
24166 2017-10-20 Florian Weimer <fweimer@redhat.com>
24167
24168 [BZ #22321]
24169 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24170 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24171 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24172 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24173 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24174 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24175
24176 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24177
24178 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24179
24180 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24181
24182 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24183
24184 [BZ #22322]
24185 * sysdeps/mips/bits/long-double.h: Move to ....
24186 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24187
24188 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24189
24190 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24191
24192 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24193 H.J. Lu <hongjiu.lu@intel.com>
24194
24195 [BZ #22299]
24196 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24197 GLRO(dl_platform) to NULL.
24198 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24199 (modules-names): Add tst-platformmod-1 and
24200 x86_64/tst-platformmod-2.
24201 (CFLAGS-tst-platform-1.c): New.
24202 (CFLAGS-tst-platformmod-1.c): Likewise.
24203 (CFLAGS-tst-platformmod-2.c): Likewise.
24204 (LDFLAGS-tst-platformmod-2.so): Likewise.
24205 ($(objpfx)tst-platform-1): Likewise.
24206 ($(objpfx)tst-platform-1.out): Likewise.
24207 (tst-platform-1-ENV): Likewise.
24208 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24209 * sysdeps/x86_64/tst-platform-1.c: New file.
24210 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24211 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24212
24213 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24214
24215 [BZ #13994]
24216 * locale/iso-639.def: Add Karbi.
24217 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24218 * localedata/locales/mjw_IN: New file.
24219
24220 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24221
24222 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24223 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24224 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24225 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24226 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24227 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24228 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24229 <bits/floatn.h>.
24230 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24231 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24232 * manual/math.texi (Mathematics): Document additional architecture
24233 support for _Float128.
24234 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24235 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24236 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24237 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24238 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24239 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24240 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24241 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24242 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24243 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24244 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24245 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24246 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24247 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24248 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24249
24250 2017-10-18 Renlin Li <renlin.li@arm.com>
24251
24252 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24253 _DYNAMIC symbol to calculate load address.
24254
24255 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24256
24257 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24258 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24259 summary bits.
24260 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24261 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24262
24263 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24264
24265 [BZ #16777]
24266 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24267 and improve readability by using more ASCII.
24268 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24269 and improve readability by using more ASCII.
24270
24271 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24272
24273 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24274 not all targets support atomics on bool.
24275
24276 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24277
24278 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24279 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24280 __f128.
24281 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24282 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24283 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24284 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24285 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24286 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24287
24288 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24289
24290 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24291 defines.
24292
24293 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24294
24295 [BZ #22159]
24296 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24297 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24298 (do_check_remalloced_chunk): Fix build bug.
24299 (do_check_malloc_state): Add assert that checks arena->top.
24300 (malloc_consolidate): Remove initialization.
24301 (int_mallinfo): Remove call to malloc_consolidate.
24302 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24303
24304 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24305
24306 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24307 (have_fastchunks): Remove.
24308 (clear_fastchunks): Remove.
24309 (set_fastchunks): Remove.
24310 (malloc_state): Add have_fastchunks.
24311 (malloc_init_state): Use have_fastchunks.
24312 (do_check_malloc_state): Remove incorrect invariant checks.
24313 (_int_malloc): Use have_fastchunks.
24314 (_int_free): Likewise.
24315 (malloc_consolidate): Likewise.
24316
24317 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24318
24319 * malloc/malloc.c (tcache_put): Inline.
24320 (tcache_get): Inline.
24321
24322 2017-10-17 Jordi Mallach <jordi@gnu.org>
24323
24324 Aurelien Jarno <aurelien@aurel32.net>
24325 [BZ #2522]
24326 * localedata/locales/ca_ES@valencia: New file.
24327 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24328
24329 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24330
24331 [BZ #22296]
24332 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24333 < 6.x
24334
24335 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24336
24337 * scripts/build-many-glibcs.py (Context.add_all_configs):
24338 Add arm-linux-gnueabihf multiarch extra_glibcs.
24339
24340 * sysdeps/generic/ifunc-init.h: New file.
24341 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24342
24343 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24344
24345 [BZ #22019]
24346 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24347 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24348 * stdlib/tst-strfmon_l.c: adapt test case.
24349
24350 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24351
24352 * sysdeps/generic/float128-abi.h: New file.
24353 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24354 non-__prefixed symbols to ....
24355 * math/Versions: ... here. Include <float128-abi.h>.
24356 * stdlib/Versions ... and here. Include <float128-abi.h>
24357
24358 2017-10-16 Florian Weimer <fweimer@redhat.com>
24359
24360 * version.h (VERSION): Switch to ".9000" as the development
24361 version suffix.
24362
24363 2017-10-16 Florian Weimer <fweimer@redhat.com>
24364
24365 [BZ #22050]
24366 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24367 compat_symbol_reference to access non-default version.
24368
24369 2017-10-16 Florian Weimer <fweimer@redhat.com>
24370
24371 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24372
24373 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24374
24375 * include/shlib-compat.h (compat_symbol_reference): Update
24376 comment.
24377
24378 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24379
24380 * math/Makefile (test-types): Add
24381 $(type-float128-$(float128-alias-fcts)).
24382 * math/test-float128.h (TYPE_STR): Define conditional on
24383 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24384 (ULP_IDX): Likewise.
24385 (ULP_I_IDX): Likewise.
24386
24387 * stdlib/strtold.c: Include <bits/floatn.h>
24388 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24389 and later undefine as macro. Define as weak alias if
24390 [!USE_WIDE_CHAR].
24391 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24392 and later undefine as macro. Define as weak alias if
24393 [USE_WIDE_CHAR].
24394 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24395 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24396 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24397 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24398 Define and later undefine as macro. Define as weak alias if
24399 [USE_WIDE_CHAR].
24400 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24401 <bits/floatn.h>.
24402 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24403 Define and later undefine as macro. Define as weak alias if
24404 [!USE_WIDE_CHAR].
24405 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24406 Define and later undefine as macro. Define as weak alias if
24407 [USE_WIDE_CHAR].
24408
24409 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24410
24411 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24412 record_verbose messages.
24413
24414 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24415
24416 [BZ #22052]
24417 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24418 to silence -O3 -Wall warning with GCC 7.
24419
24420 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24421
24422 * Makeconfig (+link-static-before-libc): Use the first of
24423 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24424 * gmon/Makefile (tests): Add tst-gmon-static.
24425 (tests-static): Likewise.
24426 (CFLAGS-tst-gmon-static.c): New.
24427 (CRT-tst-gmon-static): Likewise.
24428 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24429 (tst-gmon-static-ENV): Likewise.
24430 (tests-special): Likewise.
24431 ($(objpfx)tst-gmon-static.out): Likewise.
24432 (clean-tst-gmon-static-data): Likewise.
24433 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24434 * gmon/tst-gmon-static-gprof.sh: New file.
24435 * gmon/tst-gmon-static.c: Likewise.
24436
24437 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24438
24439 [BZ #22295]
24440 * locale/programs/linereader.c (get_string): Don't warn on
24441 non-symbolic character.
24442
24443 [BZ #22294]
24444 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24445 int_curr_symbol.
24446
24447 [BZ #22292]
24448 * locale/programs/record-status.h: New file
24449 * locale/programs/locale.c: Add comment.
24450 * locale/programs/charmap-dir.c: Don't include error.h.
24451 (charmap_opendir): Use record_error.
24452 * locale/programs/charmap.c: Don't include error.h.
24453 (charmap_read): Use record_error, and record_warning.
24454 (parse_charmap): Likewise.
24455 * locale/programs/ld-address.c: Don't include error.h.
24456 (address_finish): Use record_error, and record_warning.
24457 * locale/programs/ld-collate.c: Don't include error.h.
24458 (collate_finish): Use record_error, and record_error_at_line.
24459 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24460 (ctype_class_new): Likewise.
24461 (ctype_map_new): Likewise.
24462 (set_one_default): Likewise.
24463 (set_class_defaults): Likewise.
24464 (translit_flatten): Likewise.
24465 (allocate_arrays): Use record_error, and record_verbose.
24466 * locale/programs/ld-identification.c: Don't include error.h.
24467 (indentation_finish): Use record_error and record_warning.
24468 * locale/programs/ld-measurement.c: Don't include error.h.
24469 (measurement_finish): Use record_error.
24470 * locale/programs/ld-messages.c
24471 (message_finish): Likewise.
24472 * locale/programs/ld-monetary.c
24473 (monetary_finish): Likewise.
24474 * locale/programs/ld-name.c (name_finish): Use record_error
24475 and record_warning.
24476 * locale/programs/ld-numeric.c
24477 (numeric_finish): Use record_error.
24478 * locale/programs/ld-paper.c: Don't include error.h.
24479 (paper_finish): Use record_error.
24480 * locale/programs/ld-telephone.c: Don't include error.h.
24481 (telephone_finish): Use record_error.
24482 * locale/programs/ld-time.c (time_finish): Likewise.
24483 * locale/programs/linereader.h (lr_error): Make inline func.
24484 * locale/programs/localedef.c: Define recorded_warning_count,
24485 and recorded_error_count.
24486 (main): Use record_error. Use recorded_error_count and
24487 recorded_warning_count to issue correct error returns.
24488 (add_to_readlist): Use record_error.
24489 (find_locale): Likewise.
24490 (load_locale): Likewise.
24491 * locale/programs/localedef.h: Remove be_quiet
24492 and WITH_CUR_LOCALE.
24493 * locale/programs/locarchive.c (compare_from_file): Use
24494 record_error.
24495 * locale/programs/locfile.c (write_locale_data): Use
24496 record_error.
24497 * locale/programs/repertoire.c: Dont include error.h.
24498 (repertoire_complain): Use record_error.
24499 * localedata/tst-fmon.sh: Expect failures from localedef.
24500 * localedata/tst-locale.sh: Likewise.
24501 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24502
24503 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24504 (REPORTS): Likewise.
24505 (check): Likewise.
24506 (i18n): Rename to...
24507 (i18n_ctype): ...this.
24508 (i18n-report): Rename to...
24509 (i18n_ctype-report): ...this.
24510 * localedata/locales/i18n_ctype: Regenerate.
24511 * localedata/locales/i18n: copy i18n_ctype.
24512
24513 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24514
24515 * stdlib/strfroml.c: Include <bits/floatn.h>.
24516 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24517 Define before include of <stdlib.h> and undefine afterwards, then
24518 define as weak alias.
24519
24520 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24521 Undefine and restore default definition. Use
24522 libm_alias_ldouble_other.
24523
24524 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24525
24526 [BZ #22153]
24527 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24528 in coredumps.
24529
24530 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24531
24532 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24533 Assign sym_map to be map for local symbols, as TLS relocations
24534 use sym_map to determine whether the symbol is defined and to
24535 extract the TLS information.
24536 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24537 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24538
24539 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24540
24541 [BZ #22189]
24542 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24543 (math_force_eval): Add powerpc version.
24544
24545 [BZ #22142]
24546 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24547 -DBL_MAX.
24548 (do_test): Likewise.
24549 * stdio-common/tst-printf.sh: Likewise.
24550 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24551 ifdef clause in order to set the carry bit right. Replace r0 by
24552 0 without changing the behavior.
24553
24554 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24555
24556 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24557 <libm-alias-ldouble.h>.
24558 (fabsl): Define using libm_alias_ldouble.
24559 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24560 <libm-alias-ldouble.h>.
24561 (fabsl): Define using libm_alias_ldouble.
24562
24563 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24564 Remove conditional code.
24565
24566 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24567 Rename to __clog10_internal_l.
24568 (__clog10_internal_l): Define aliases using
24569 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24570 with __clog10.
24571
24572 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24573
24574 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24575 * benchtests/sincosf-inputs: New file.
24576 * benchtests/cosf-inputs: New file.
24577 * benchtests/sinf-inputs: New file.
24578
24579 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24580
24581 * posix/tst-spawn.c (do_test): Wait for both children.
24582
24583 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24584
24585 [BZ #22284]
24586 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24587 tests-pie): Add tst-gmon-pie.
24588 (CFLAGS-tst-gmon-pie.c): New.
24589 (CRT-tst-gmon-pie): Likewise.
24590 (tst-gmon-pie-ENV): Likewise.
24591 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24592 ($(objpfx)tst-gmon-pie.out): Likewise.
24593 (clean-tst-gmon-pie-data): Likewise.
24594 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24595 * gmon/gmon.c [PIC]: Include <link.h>.
24596 [PIC] (callback): New function.
24597 (write_hist): Add an argument for load address. Subtract load
24598 address from PCs.
24599 (write_call_graph): Likewise.
24600 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24601 it to write_hist and write_call_graph.
24602 * gmon/tst-gmon-pie.c: New file.
24603
24604 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24605
24606 * math/Makefile (test-types-basic): New variable.
24607 (test-types): Likewise.
24608 (libm-test-support): Use $(test-types) instead of $(types).
24609 (libm-tests-base-normal): Likewise.
24610 (libm-tests-base-finite): Likewise.
24611 (libm-tests-base-inline): Likewise.
24612 (generated): Likewise.
24613 ($(objpfx)libm-test-support-$(t).c): Likewise.
24614 (libm-tests-for-type iterator): Likewise.
24615 (libm-test-support iterator): Likewise.
24616 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24617 (ulp_idx): Use ULP_IDX.
24618 * math/test-ldouble.h: Include <float.h>.
24619 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24620 (ULP_IDX): New macro.
24621 (ULP_I_IDX): Likewise.
24622 * math/test-double.h (ULP_IDX): Likewise.
24623 (ULP_I_IDX): Likewise.
24624 * math/test-float.h (ULP_IDX): Likewise.
24625 (ULP_I_IDX): Likewise.
24626 * math/test-float128.h (ULP_IDX): Likewise.
24627 (ULP_I_IDX): Likewise.
24628
24629 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24630
24631 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24632 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24633 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24634 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24635 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24636 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24637 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24638 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24639 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24640 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24641 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24642 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24643 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24644 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24645 (SINGLE_THREAD_BY_GLOBAL): Define.
24646 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24647 Likewise.
24648 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24649 Likewise.
24650 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24651 Likewise.
24652 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24653 Likewise.
24654 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24655 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24656 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24657 Likewise.
24658
24659 2017-10-11 Andreas Schwab <schwab@suse.de>
24660
24661 * nis/Makefile (aux): Remove.
24662 * nscd/Makefile (aux): Add nscd_hash.
24663 (nscd-modules): Likewise.
24664 ($(objpfx)nscd): Don't depend on libnsl.
24665 * nscd/nscd_hash.c: New file.
24666 * nscd/nscd_hash.h: Likewise.
24667 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24668 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24669 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24670 instead of <nis/rpcsvc/nis.h>.
24671 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24672
24673 2017-10-11 Florian Weimer <fweimer@redhat.com>
24674
24675 [BZ #22078]
24676 Avoid large NSS buffers with many addresses, aliases.
24677 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24678 using dynarrays and struct alloc_buffer.
24679 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24680 (tst-nss-files-hosts-multi): Link with -ldl.
24681 * nss/tst-nss-files-hosts-multi.c: New file.
24682
24683 2017-10-11 Florian Weimer <fweimer@redhat.com>
24684
24685 [BZ #18023]
24686 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24687 scratch_buffer. Eliminate gotos.
24688
24689 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24690
24691 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24692 libm_alias_ldouble_other.
24693 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24694 undefine and redefine.
24695 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24696 (exp10l): Do not define here.
24697 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24698 (weak_alias): Undefine and redefine.
24699 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24700 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24701 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24702 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24703
24704 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24705 [!__fma] (fma): Define using libm_alias_double.
24706 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24707 [!__fmaf] (fmaf): Define using libm_alias_float.
24708 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24709 (fmal): Define using libm_alias_ldouble.
24710
24711 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24712
24713 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24714 New macro.
24715 (libm_alias_double_other): Likewise.
24716 (libm_alias_double_r): Use libm_alias_double_other_r.
24717 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24718 New macro.
24719 (libm_alias_float_other): Likewise.
24720 (libm_alias_float_r): Use libm_alias_float_other_r.
24721 * sysdeps/generic/libm-alias-float128.h
24722 (libm_alias_float128_other_r): New macro.
24723 (libm_alias_float128_other): Likewise.
24724 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24725 * sysdeps/generic/libm-alias-ldouble.h
24726 (libm_alias_ldouble_other_r): New macro.
24727 (libm_alias_ldouble_other): Likewise.
24728 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24729 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24730 (libm_alias_double_other_r): New macro.
24731 (libm_alias_double_other): Likewise.
24732 (libm_alias_double_r): Use libm_alias_double_other_r.
24733 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24734 (libm_alias_ldouble_other_r): New macro.
24735 (libm_alias_ldouble_other): Likewise.
24736 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24737 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24738 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24739 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24740 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24741 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24742 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24743 * math/w_exp2f.c: Use libm_alias_float_other.
24744 * math/w_expf.c: Likewise.
24745 * math/w_log2f.c: Likewise.
24746 * math/w_logf.c: Likewise.
24747 * math/w_powf.c: Likewise.
24748 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24749 [!__exp2f]: Use libm_alias_float_other.
24750 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24751 [!__expf]: Use libm_alias_float_other.
24752 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24753 [!__log2f]: Use libm_alias_float_other.
24754 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24755 [!__logf]: Use libm_alias_float_other.
24756 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24757 [!__powf]: Use libm_alias_float_other.
24758
24759 2017-10-10 Florian Weimer <fweimer@redhat.com>
24760
24761 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24762 function.
24763 (_nss_files_gethostbyname3_r): Call it.
24764
24765 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24766
24767 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24768 error. Remove default definition of declare_mgen_alias.
24769 [!declare_mgen_alias_r]: Likewise.
24770 * sysdeps/generic/math-type-macros-double.h
24771 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24772 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24773 (declare_mgen_alias_r): Likewise.
24774 * sysdeps/generic/math-type-macros-float128.h
24775 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24776 * sysdeps/generic/math-type-macros-ldouble.h
24777 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24778 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24779 macro.
24780 (declare_mgen_alias_r_s): Likewise.
24781 (declare_mgen_alias_r): Likewise.
24782 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24783 (lgamma_r): Define using libm_alias_double_r.
24784 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24785 (lgammaf_r): Define using libm_alias_float_r.
24786 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24787 (lgammal_r): Define using libm_alias_ldouble_r.
24788 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24789 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24790
24791 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24792
24793 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24794 extern declaration.
24795
24796 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24797
24798 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24799
24800 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24801
24802 [BZ #21326]
24803 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24804 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24805 * math/Makefile (test-math-cxx11): New test.
24806 * math/test-math-cxx11.cc: New file.
24807
24808 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24809
24810 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24811
24812 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24813 call to allocate the slave pty file descriptor.
24814
24815 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24816
24817 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24818 [!__fma] (fma): Define using libm_alias_double.
24819 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24820 [!__fma] (fma): Define using libm_alias_double.
24821
24822 * sysdeps/ieee754/float128/float128_private.h: Include
24823 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24824 (libm_alias_ldouble_r): Undefine and redefine.
24825 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (asinhl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24829 <libm-alias-ldouble.h>.
24830 (atanl): Define using libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24832 <libm-alias-ldouble.h>.
24833 (cbrtl): Define using libm_alias_ldouble.
24834 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24835 <libm-alias-ldouble.h>.
24836 (ceill): Define using libm_alias_ldouble.
24837 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24838 <libm-alias-ldouble.h>.
24839 (copysignl): Define using libm_alias_ldouble.
24840 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24841 <libm-alias-ldouble.h>.
24842 (cosl): Define using libm_alias_ldouble.
24843 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24844 <libm-alias-ldouble.h>.
24845 (erfl): Define using libm_alias_ldouble.
24846 (erfcl): Likewise.
24847 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24848 <libm-alias-ldouble.h>.
24849 (expm1l): Define using libm_alias_ldouble.
24850 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24851 <libm-alias-ldouble.h>.
24852 (fabsl): Define using libm_alias_ldouble.
24853 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24854 <libm-alias-ldouble.h>.
24855 (floorl): Define using libm_alias_ldouble.
24856 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24857 <libm-alias-ldouble.h>.
24858 (fmal): Define using libm_alias_ldouble.
24859 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24860 <libm-alias-ldouble.h>.
24861 (frexpl): Define using libm_alias_ldouble.
24862 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24863 libm_alias_ldouble.
24864 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24865 <libm-alias-ldouble.h>.
24866 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24867 libm_alias_ldouble.
24868 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24869 <libm-alias-ldouble.h>.
24870 (getpayloadl): Define using libm_alias_ldouble.
24871 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24872 <libm-alias-ldouble.h>.
24873 (llrintl): Define using libm_alias_ldouble.
24874 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24875 <libm-alias-ldouble.h>.
24876 (llroundl): Define using libm_alias_ldouble.
24877 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24878 <libm-alias-ldouble.h>.
24879 (logbl): Define using libm_alias_ldouble.
24880 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24881 <libm-alias-ldouble.h>.
24882 (lrintl): Define using libm_alias_ldouble.
24883 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24884 <libm-alias-ldouble.h>.
24885 (lroundl): Define using libm_alias_ldouble.
24886 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (modfl): Define using libm_alias_ldouble.
24889 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24890 <libm-alias-ldouble.h>.
24891 (nearbyintl): Define using libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24893 <libm-alias-ldouble.h>.
24894 (nextafterl): Define using libm_alias_ldouble.
24895 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24896 <libm-alias-ldouble.h>.
24897 (nextupl): Define using libm_alias_ldouble.
24898 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24899 <libm-alias-ldouble.h>.
24900 (remquol): Define using libm_alias_ldouble.
24901 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24902 <libm-alias-ldouble.h>.
24903 (rintl): Define using libm_alias_ldouble.
24904 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24905 <libm-alias-ldouble.h>.
24906 (roundevenl): Define using libm_alias_ldouble.
24907 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24908 <libm-alias-ldouble.h>.
24909 (roundl): Define using libm_alias_ldouble.
24910 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24911 using libm_alias_ldouble.
24912 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24913 <libm-alias-ldouble.h>.
24914 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24915 Define using libm_alias_ldouble.
24916 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24917 <libm-alias-ldouble.h>.
24918 (sincosl): Define using libm_alias_ldouble.
24919 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24920 <libm-alias-ldouble.h>.
24921 (sinl): Define using libm_alias_ldouble.
24922 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24923 <libm-alias-ldouble.h>.
24924 (tanhl): Define using libm_alias_ldouble.
24925 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24926 <libm-alias-ldouble.h>.
24927 (tanl): Define using libm_alias_ldouble.
24928 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24929 <libm-alias-ldouble.h>.
24930 (totalorderl): Define using libm_alias_ldouble.
24931 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24932 <libm-alias-ldouble.h>.
24933 (totalordermagl): Define using libm_alias_ldouble.
24934 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24935 <libm-alias-ldouble.h>.
24936 (truncl): Define using libm_alias_ldouble.
24937 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24938 libm_alias_ldouble.
24939 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24940 libm_alias_ldouble.
24941 * sysdeps/ieee754/ldbl-64-128/s_copysignl.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 (copysignl): Define with long_double_symbol only if [IS_IN
24946 (libc)].
24947 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24948 <libm-alias-ldouble.h>.
24949 (weak_alias): Do not undefine and redefine.
24950 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24951 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24952 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24953 <libm-alias-ldouble.h>.
24954 (weak_alias): Do not undefine and redefine.
24955 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24956 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24957 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24958 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24959 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24960 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24961 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24962 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24963 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24964 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24965 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24966 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24967 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24968 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24969 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24970 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24971 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24972 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24973 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24974 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24975 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24976 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24977 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24978 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24979 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24980 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24981
24982 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24983
24984 [BZ #22111]
24985 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24986 (tcache_thread_freeres): Set tcache_shutting_down before
24987 freeing the tcache.
24988 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24989 * malloc/tst-malloc-tcache-leak.c: New file.
24990
24991 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24992
24993 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24994 back to powerpc32 file.
24995 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24996 (memrchr): Add __memrchr_power8 to ifunc list.
24997 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24998 extra bytes for unaligned inputs.
24999
25000 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25001
25002 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25003 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25004 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25005 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25006 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25007
25008 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25009
25010 * sysdeps/arm/libm-test-ulps: Update.
25011
25012 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25013 <libm-alias-ldouble.h>.
25014 (asinhl): Define using libm_alias_ldouble.
25015 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25016 <libm-alias-ldouble.h>.
25017 (cbrtl): Define using libm_alias_ldouble.
25018 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25019 <libm-alias-ldouble.h>.
25020 (copysignl): Define using libm_alias_ldouble.
25021 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25022 <libm-alias-ldouble.h>.
25023 (cosl): Define using libm_alias_ldouble.
25024 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25025 <libm-alias-ldouble.h>.
25026 (erfl): Define using libm_alias_ldouble.
25027 (erfcl): Likewise.
25028 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25029 <libm-alias-ldouble.h>.
25030 (fmal): Define using libm_alias_ldouble.
25031 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25032 <libm-alias-ldouble.h>.
25033 (frexpl): Define using libm_alias_ldouble.
25034 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25035 libm_alias_ldouble.
25036 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25037 <libm-alias-ldouble.h>.
25038 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25039 libm_alias_ldouble.
25040 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25041 <libm-alias-ldouble.h>.
25042 (getpayloadl): Define using libm_alias_ldouble.
25043 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25044 <libm-alias-ldouble.h>.
25045 (llrintl): Define using libm_alias_ldouble.
25046 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25047 <libm-alias-ldouble.h>.
25048 (llroundl): Define using libm_alias_ldouble.
25049 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25050 <libm-alias-ldouble.h>.
25051 (lrintl): Define using libm_alias_ldouble.
25052 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25053 <libm-alias-ldouble.h>.
25054 (lroundl): Define using libm_alias_ldouble.
25055 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25056 <libm-alias-ldouble.h>.
25057 (modfl): Define using libm_alias_ldouble.
25058 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25059 <libm-alias-ldouble.h>.
25060 (nextupl): Define using libm_alias_ldouble.
25061 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25062 <libm-alias-ldouble.h>.
25063 (remquol): Define using libm_alias_ldouble.
25064 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25065 <libm-alias-ldouble.h>.
25066 (roundevenl): Define using libm_alias_ldouble.
25067 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25068 <libm-alias-ldouble.h>.
25069 (roundl): Define using libm_alias_ldouble.
25070 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25071 using libm_alias_ldouble.
25072 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25073 <libm-alias-ldouble.h>.
25074 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25075 <libm-alias-ldouble.h>.
25076 (setpayloadsigl): Define using libm_alias_ldouble.
25077 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25078 <libm-alias-ldouble.h>.
25079 (sincosl): Define using libm_alias_ldouble.
25080 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25081 <libm-alias-ldouble.h>.
25082 (sinl): Define using libm_alias_ldouble.
25083 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25084 <libm-alias-ldouble.h>.
25085 (tanhl): Define using libm_alias_ldouble.
25086 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25087 <libm-alias-ldouble.h>.
25088 (tanl): Define using libm_alias_ldouble.
25089 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25090 <libm-alias-ldouble.h>.
25091 (totalorderl): Define using libm_alias_ldouble.
25092 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25093 <libm-alias-ldouble.h>.
25094 (totalordermagl): Define using libm_alias_ldouble.
25095 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25096 libm_alias_ldouble.
25097 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25098 libm_alias_ldouble.
25099
25100 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25101
25102 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25103 memmove_falkor.
25104 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25105 (__libc_ifunc_impl_list): Likewise.
25106 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25107 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25108
25109 * benchtests/bench-memmove-walk.c: New file.
25110 * benchtests/Makefile (string-benchset): Add it.
25111
25112 * benchtests/bench-memset-walk.c: New file.
25113 * benchtests/Makefile (string-benchset): Add it.
25114
25115 * benchtests/bench-memcpy-walk.c: New file.
25116 * benchtests/Makefile (string-benchset): Add it.
25117
25118 2017-10-05 Florian Weimer <fweimer@redhat.com>
25119
25120 nscd: Eliminate compilation time dependency in the build output.
25121 * nscd/nscd_stat.c (STATDATA_VERSION)
25122 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25123 (STATDATA_VERSION_FULL): New macro definitions.
25124 (compilation): Remove.
25125 (struct statdata): Adjust version member.
25126 (send_stats): Set version from STATDATA_VERSION_FULL.
25127 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25128
25129 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25130
25131 * configure.ac (--enable-add-ons): Remove option.
25132 (machine): Do not mention add-ons in comment.
25133 (LIBC_PRECONFIGURE): Likewise.
25134 (add_ons): Remove variable and sanity checks and logic to locate
25135 add-ons.
25136 (add_ons_automatic): Remove variable.
25137 (configured_add_ons): Likewise.
25138 (add_ons_sfx): Likewise.
25139 (add_ons_pfx): Likewise.
25140 (add_on_subdirs): Likewise.
25141 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25142 consideration of add-ons in Implies handling.
25143 (sysdeps_add_ons): Likewise.
25144 * configure: Regenerated.
25145 * libidn/configure.ac: Remove.
25146 * libidn/configure: Likewise.
25147 * sysdeps/unix/inet/configure.ac: New file.
25148 * sysdeps/unix/inet/configure: New generated file.
25149 * sysdeps/unix/inet/Subdirs: Add libidn.
25150 * Makeconfig (sysdeps-srcdirs): Remove variable.
25151 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25152 ($(common-objpfx)config.status): Do not depend on add-on files.
25153 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25154 comment.
25155 (all-subdirs): Do not include $(add-on-subdirs).
25156 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25157 * config.make.in (add-ons): Remove variable.
25158 (add-on-subdirs): Likewise.
25159 (sysdeps-add-ons): Likewise.
25160 * manual/Makefile (add-chapters): Remove.
25161 ($(objpfx)texis): Do not depend on $(add-chapters).
25162 (nonexamples): Do not handle $(add-chapters).
25163 (examples): Do not handle $(add-ons).
25164 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25165 libc-texinfo.sh.
25166 * manual/install.texi (Installation): Do not mention add-ons.
25167 (--enable-add-ons): Do not document configure option.
25168 * INSTALL: Regenerated.
25169 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25170 * manual/maint.texi (Hierarchy Conventions): Do not mention
25171 add-ons.
25172 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25173 --enable-add-ons.
25174 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25175 add-ons.
25176 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25177 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25178
25179 2017-10-05 Andreas Schwab <schwab@suse.de>
25180
25181 [BZ #15142]
25182 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25183 (_IO_flush_all_lockp): Always lock list_all_lock.
25184 (_IO_flush_all_linebuffered): Likewise.
25185 (_IO_unbuffer_all): Likewise.
25186
25187 2017-10-05 Florian Weimer <fweimer@redhat.com>
25188
25189 [BZ #15436]
25190 Do not flush stdio streams on abort.
25191 * stdlib/abort.c (fflush): Remove macro definition.
25192 (abort): Remove stages related to stdio flushing.
25193
25194 2017-10-05 Florian Weimer <fweimer@redhat.com>
25195
25196 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25197
25198 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25199
25200 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25201
25202 2017-10-05 Florian Weimer <fweimer@redhat.com>
25203
25204 * support/support_format_hostent.c (support_format_hostent): Add
25205 more error information for NETDB_INTERNAL.
25206
25207 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25208
25209 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25210 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25211 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25212 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25213 AC_DEFINE if multi-arch is enabled.
25214 * sysdeps/i386/configure: Regenerated.
25215
25216 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25217
25218 * Makeconfig (+link-static-before-libc): Use
25219 $(DEFAULT-LDFLAGS-$(@F)).
25220 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25221 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25222 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25223
25224 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25225
25226 * elf/Makefile (tests): Add tst-main1.
25227 (modules-names): Add tst-main1mod.
25228 ($(objpfx)tst-main1): New.
25229 (CRT-tst-main1): Likewise.
25230 (LDFLAGS-tst-main1): Likewise.
25231 (LDLIBS-tst-main1): Likewise.
25232 (tst-main1mod.so-no-z-defs): Likewise.
25233 * elf/tst-main1.c: New file.
25234 * elf/tst-main1mod.c: Likewise.
25235
25236 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25237
25238 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25239
25240 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25241
25242 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25243 (fma): Define using libm_alias_double.
25244 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25245 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25246 <math_ldbl_opt.h>.
25247 (fmal): Do not define as compat symbol here.
25248 * sysdeps/alpha/fpu/s_fma.c: New file.
25249
25250 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25251
25252 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25253
25254 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25255
25256 [BZ #22229]
25257 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25258 <math_ldbl_opt.h>
25259 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25260 and libc.
25261 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25262 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25263 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25264 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25266 Include <math_ldbl_opt.h>
25267 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25268 and libc.
25269 (compat_symbol): Undefine and redefine.
25270 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25271 <math_ldbl_opt.h>
25272 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25273 (compat_symbol): Undefine and redefine.
25274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25275 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25276 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25277 GLIBC_2_1 for libm.
25278 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25279 GLIBC_2.0 copysignl symbol.
25280 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25281 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25282
25283 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25284
25285 2017-10-04 Florian Weimer <fweimer@redhat.com>
25286
25287 * scripts/check-local-headers.sh: Ignore nspr4 header file
25288 directory in addition to nspr.
25289
25290 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25291
25292 [BZ #17956]
25293 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25294 * configure: Regenerate.
25295 * crypt/Makefile (nss-cpp-flags): New variable.
25296 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25297 (CPPFLAGS-md5-crypt.c): Use it.
25298 * scripts/check-local-headers.sh: Ignore nspr header file
25299 directory.
25300
25301 2017-10-04 Andreas Schwab <schwab@suse.de>
25302
25303 * nis/Makefile (services): Remove compat.
25304 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25305 ($(objpfx)libnss_compat.so): Remove rule.
25306 * nis/Versions (libnss_compat): Remove.
25307 * nss/Makefile (services): Add compat.
25308 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25309 * nss/Versions (libnss_compat): Define.
25310 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25311 Don't include <rpc/types.h>. Replace bool_t by bool.
25312 * nss/nss_compat/compat-initgroups.c: Likewise.
25313 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25314 instead of <rpcsrv/ypclnt.h>.
25315 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25316 yp_get_default_domain.
25317 * nss/nss_compat/compat-pwd.c: Likewise.
25318 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25319 yp_get_default_domain.
25320 * nss/nss_compat/nisdomain.c: New file.
25321 * nss/nss_compat/nisdomain.h: Likewise.
25322
25323 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25324
25325 [BZ #22244]
25326 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25327 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25328
25329 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25330
25331 [BZ #22243]
25332 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25333 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25334
25335 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25336
25337 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25338 "movl main@GOTOFF(%ebx), %eax".
25339
25340 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25341
25342 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25343 allow undefined _DYNAMIC in PIE libc.a.
25344 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25345 Likewse.
25346
25347 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25348
25349 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25350 check _DYNAMIC.
25351
25352 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25353
25354 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25355 check _DYNAMIC.
25356
25357 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25358
25359 * math/test-math-iscanonical.cc (error): Replace bool with int.
25360
25361 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25362
25363 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25364 (modf): Define using libm_alias_double, only if [!__modf].
25365 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25366 <libm-alias-double.h>.
25367 (modf): Define using libm_alias_double, only if [!__modf].
25368 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25369 compat symbol here.
25370 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25371 (weak_alias): Do not undefine and redefine.
25372 (strong_alias): Likewise.
25373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25374 (weak_alias): Likewise.
25375 (strong_alias): Likewise.
25376
25377 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25378 (logb): Define using libm_alias_double, only if [!__logb].
25379 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25380 <libm-alias-double.h>.
25381 (logb): Define using libm_alias_double, only if [!__logb].
25382 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25384 (weak_alias): Do not undefine and redefine.
25385 (strong_alias): Likewise.
25386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25387 (weak_alias): Likewise.
25388 (strong_alias): Likewise.
25389
25390 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25391
25392 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25393 Check SHARED instead PIC.
25394
25395 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25396
25397 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25398 [!__fmaf] (fmaf): Define using libm_alias_float.
25399
25400 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25401 (frexp): Define using libm_alias_double.
25402 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25403 <libm-alias-double.h>.
25404 (frexp): Define using libm_alias_double.
25405 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25406 compat symbol here.
25407
25408 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25409
25410 [BZ #22235]
25411 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25412 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25413 (CFLAGS-test-math-iscanonical.cc): New variable.
25414 * math/test-math-iscanonical.cc: New file.
25415 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25416 Provide a C++ implementation based on function overloading,
25417 rather than using __MATH_TG, which uses C-only builtins.
25418 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25419 Likewise.
25420 * sysdeps/powerpc/powerpc64le/Makefile
25421 (CFLAGS-test-math-iscanonical.cc): New variable.
25422
25423 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25424
25425 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25426 (ceil): Define using libm_alias_double.
25427 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25428 (floor): Define using libm_alias_double.
25429 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25430 <libm-alias-double.h>.
25431 (llround): Define using libm_alias_double.
25432 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25433 <libm-alias-double.h>.
25434 (lround): Define using libm_alias_double.
25435 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25436 <libm-alias-double.h>.
25437 (nearbyint): Define using libm_alias_double.
25438 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25439 <libm-alias-double.h>.
25440 (remquo): Define using libm_alias_double.
25441 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25442 (rint): Define using libm_alias_double.
25443 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25444 (round): Define using libm_alias_double.
25445 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25446 (trunc): Define using libm_alias_double.
25447 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25448 <libm-alias-double.h>.
25449 (ceil): Define using libm_alias_double.
25450 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25451 <libm-alias-double.h>.
25452 (floor): Define using libm_alias_double.
25453 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25454 <libm-alias-double.h>.
25455 (llround): Define using libm_alias_double.
25456 [_LP64] (lround): Likewise.
25457 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25458 <libm-alias-double.h>.
25459 [!_LP64] (lround): Define using libm_alias_double.
25460 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25461 <libm-alias-double.h>.
25462 (nearbyint): Define using libm_alias_double.
25463 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25464 <libm-alias-double.h>.
25465 (remquo): Define using libm_alias_double.
25466 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25467 <libm-alias-double.h>.
25468 (rint): Define using libm_alias_double.
25469 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25470 <libm-alias-double.h>.
25471 (round): Define using libm_alias_double.
25472 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25473 <libm-alias-double.h>.
25474 (trunc): Define using libm_alias_double.
25475 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25476 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25477 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25478 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25479 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25480 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25481 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25482 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25483 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25484
25485 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25486
25487 * math/w_remainder.c: New file.
25488 * math/w_remainderf.c: New file.
25489 * math/w_remainderl.c: New file.
25490
25491 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25492
25493 * elf/rtld.c (BOOTSTRAP_MAP): New.
25494 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25495 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25496 Likewise.
25497 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25498 Likewise.
25499 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25500 Likewise.
25501
25502 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25503
25504 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25505 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25506 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25507 rtld_hidden_data_ver): Define to empty.
25508 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25509 __assert_perror_fail): Likewise.
25510 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25511 (__rewinddir): Likewise.
25512 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25513 (__profile_frequency): Likewise.
25514 * include/setjmp.h (__sigsetjmp): Likewise.
25515 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25516 __libc_sigaction): Likewise.
25517 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25518 not set hidden attribute.
25519 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25520 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25521 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25522 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25523 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25524 __fxstatat64): Likewise.
25525 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25526 (__uname): Likewise.
25527 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25528 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25529 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25530 (NO_RTLD_HIDDEN): Set.
25531 * sysdeps/mach/hurd/configure: Refresh.
25532 * config.h.in: Refresh.
25533
25534 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25535
25536 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25537 (atan): Define using libm_alias_double.
25538 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25539 (tan): Define using libm_alias_double.
25540 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25541 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25542
25543 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25544 define as weak alias of __atan. Do not define any aliases if
25545 [__atan].
25546 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25547 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25548 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25549 as weak alias of __tan. Do not define any aliases if [__tan].
25550 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25551 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25552 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25553 __atan.
25554 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25555 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25556 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25557 and define as weak alias of __atan.
25558 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25559 __atan.
25560 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25561 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25562 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25563 define as weak alias of __tan.
25564
25565 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25566
25567 * math/w_lgamma.c: New file.
25568 * math/w_lgammaf.c: New file.
25569 * math/w_lgammal.c: New file.
25570
25571 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25572
25573 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25574 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25575 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25576 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25577 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25578 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25579 * sysdeps/i386/fpu/w_log2f.c: New file.
25580 * sysdeps/i386/fpu/w_logf.c: New file.
25581 * sysdeps/i386/fpu/w_powf.c: New file.
25582 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25583 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25584 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25585
25586 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25587 H.J. Lu <hongjiu.lu@intel.com>
25588
25589 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25590 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25591 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25592 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25593 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25594 the new expf code.
25595 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25596 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25597 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25598 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25599 * sysdeps/i386/fpu/w_exp2f.c: New file.
25600 * sysdeps/i386/fpu/w_expf.c: New file.
25601 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25602 * sysdeps/x86_64/fpu/w_expf.c: New file.
25603
25604 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25605
25606 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25607 (log2f): Likewise.
25608 (powf): Likewise.
25609 * math/w_log2f.c: New file.
25610 * math/w_logf.c: New file.
25611 * math/w_powf.c: New file.
25612 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25613 * math/w_logf_compat.c (__logf_compat): Likewise.
25614 * math/w_powf_compat.c (__powf_compat): Likewise.
25615 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25616 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25617 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25618 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25619 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25620 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25621 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25622 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25623 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25624 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25625 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25626 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25627 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25628 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25629 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25631 Likewise.
25632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25633 Likewise.
25634 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25635 Likewise.
25636 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25637 Likewise.
25638 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25639 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25640 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25641 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25642 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25643 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25644 Likewise.
25645 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25646 Likewise.
25647 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25648 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25649 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25650
25651 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25652
25653 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25654 (sysdep_routines): Add memrchr_power8.
25655 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25656 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25657 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25658 New file.
25659 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25660 (memrchr): Add __memrchr_power8 to ifunc list.
25661 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25662
25663 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25664
25665 [BZ #18822]
25666 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25667 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25668 libc_hidden_def.
25669 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25670 (__posix_fallocate64_l64): Likewise.
25671
25672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25673
25674 [BZ #18822]
25675 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25676 (__sched_setaffinity_new): Add libc_hidden_proto and
25677 libc_hidden_def.
25678
25679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25680
25681 [BZ #18822]
25682 * include/glob.h (__glob64): Add libc_hidden_proto.
25683 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25684 libc_hidden_def.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25690 attribute_hidden.
25691
25692 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25693
25694 [BZ #18822]
25695 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25696
25697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 [BZ #18822]
25700 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25701 libc_hidden_def.
25702
25703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25704
25705 [BZ #18822]
25706 * csu/version.c (__libc_print_version): Add attribute_hidden.
25707
25708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25709
25710 [BZ #18822]
25711 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25712
25713 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25714
25715 [BZ #18822]
25716 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25717
25718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25719
25720 [BZ #18822]
25721 * nscd/nscd_helper.c (__nis_hash): New prototype.
25722
25723 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25724
25725 [BZ #18822]
25726 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25727 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25728 libc_hidden_def.
25729 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25730 * termios/tcgetattr.c (__tcgetattr): Likewise.
25731
25732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25733
25734 [BZ #18822]
25735 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25736 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25737 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25738 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25739 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25740
25741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25742
25743 [BZ #18822]
25744 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25745
25746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25747
25748 [BZ #18822]
25749 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25750 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25751
25752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25753
25754 [BZ #18822]
25755 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25756
25757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25758
25759 [BZ #18822]
25760 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25761 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25762
25763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25764
25765 [BZ #18822]
25766 * include/ifreq.h: New file.
25767 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25768 (__ifreq): Likewise.
25769 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25770 (__ifreq): Likewise.
25771
25772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25773
25774 [BZ #18822]
25775 * include/idna.h: New file.
25776 * inet/getnameinfo.c: Include <idna.h> instead of
25777 <libidn/idna.h>.
25778 (__idna_to_unicode_lzlz): Removed.
25779 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25780 <libidn/idna.h>.
25781 (__idna_to_ascii_lz): Removed.
25782 (__idna_to_unicode_lzlz): Likewise.
25783
25784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25785
25786 [BZ #18822]
25787 * include/plural-exp.h: New file.
25788 * intl/plural-exp.c: Include <plural-exp.h> instead of
25789 "plural-exp.h".
25790
25791 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25792
25793 [BZ #18822]
25794 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25795 "getsourcefilter.h".
25796 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25797 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25798 "getsourcefilter.h".
25799 (__get_sol): Removed.
25800
25801 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25802
25803 [BZ #18822]
25804 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25805 to ...
25806 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25807
25808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 [BZ #18822]
25811 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25812 attribute_hidden.
25813
25814 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25815
25816 [BZ #18822]
25817 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25818
25819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25820
25821 [BZ #18822]
25822 * include/search.h (__tdestroy): Add libc_hidden_proto.
25823 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25824
25825 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25826
25827 [BZ #18822]
25828 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25829
25830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25831
25832 [BZ #18822]
25833 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25834 attribute_hidden.
25835
25836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25837
25838 [BZ #18822]
25839 * include/signal.h (__kill): Add libc_hidden_proto.
25840 (__sigblock): Likewise.
25841 (__sigprocmask): Likewise.
25842 (__sigaltstack): Likewise.
25843 * signal/kill.c (__kill): Add libc_hidden_def.
25844 * signal/sigblock.c (__sigblock): Likewise.
25845 * signal/sigprocmask.c (__sigprocmask): Likewise.
25846 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25847 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25848 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25849 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25850 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25851 Likewise.
25852 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25853 Likewise.
25854 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25855 (__sigprocmask): Likewise.
25856 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25857 Likewise.
25858 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25859 (__sigprocmask): Likewise.
25860 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25861 Likewise.
25862
25863 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25864
25865 [BZ #18822]
25866 * include/string.h (__strsep): Add libc_hidden_proto.
25867 * string/strsep.c (__strsep): Add libc_hidden_def.
25868
25869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25870
25871 [BZ #18822]
25872 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25873 attribute_hidden.
25874 (__spawni): Likewise.
25875
25876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25877
25878 [BZ #18822]
25879 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25880 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25881 libc_hidden_def.
25882
25883 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25884
25885 [BZ #18822]
25886 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25887
25888 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25889
25890 [BZ #18822]
25891 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25892 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25893 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25894 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25895 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25896 Likewise.
25897 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25898 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25899
25900 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25901
25902 [BZ #18822]
25903 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25904 (__dcigettext): Likewise.
25905
25906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25907
25908 [BZ #18822]
25909 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25910 libc_hidden_proto.
25911 (__get_nprocs): Likewise.
25912 (__get_phys_pages): Likewise.
25913 (__get_avphys_pages): Likewise.
25914 (__get_child_max): Add attribute_hidden.
25915 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25916 (__get_nprocs): Likewise.
25917 (__get_phys_pages): Likewise.
25918 (__get_avphys_pages): Likewise.
25919 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25920 libc_hidden_def.
25921 (__get_nprocs): Likewise.
25922 (__get_phys_pages): Likewise.
25923 (__get_avphys_pages): Likewise.
25924 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25925 libc_hidden_def.
25926 (__get_nprocs_conf): Likewise.
25927 (__get_phys_pages): Likewise.
25928 (__get_avphys_pages): Likewise.
25929
25930 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25931
25932 [BZ #18822]
25933 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25934 attribute_hidden.
25935 (__netlink_close): Likewise.
25936 (__netlink_free_handle): Likewise.
25937 (__netlink_request): Likewise.
25938
25939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25940
25941 [BZ #18822]
25942 * include/rpc/rpc.h (__rpc_thread_variables): Add
25943 attribute_hidden.
25944 (__rpc_thread_svc_cleanup): Likewise.
25945 (__rpc_thread_clnt_cleanup): Likewise.
25946 (__rpc_thread_key_cleanup): Likewise.
25947
25948 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25949
25950 [BZ #18822]
25951 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25952 (__writev): Likewise.
25953 * misc/readv.c (__readv): Add libc_hidden_def.
25954 * misc/writev.c (__writev): Likewise.
25955 * sysdeps/posix/readv.c (__readv): Likewise.
25956 * sysdeps/posix/writev.c (__writev): Likewise.
25957 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25958 (__readv): Likewise.
25959 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25960 (__writev): Likewise.
25961
25962 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25963
25964 [BZ #18822]
25965 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25966 (__regcomp): Add libc_hidden_proto.
25967 (__regexec): Likewise.
25968 (__regfree): Likewise.
25969 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25970 (__regfree): Likewise.
25971 * posix/regexec.c (__regexec): Likewise.
25972
25973 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25974
25975 [BZ #18822]
25976 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25977 (__getutent): Likewise.
25978 (__getutid): Likewise.
25979 (__getutline): Likewise.
25980 (__pututline): Likewise.
25981 (__getutent_r): Likewise.
25982 (__getutid_r): Likewise.
25983 (__getutline_r): Likewise.
25984 (__utmpname): Add attribute_hidden.
25985 (__setutent): Likewise.
25986 (__endutent): Likewise.
25987 * login/getutent.c (__getutent): Add libc_hidden_def.
25988 * login/getutent_r.c (__getutent_r): Likewise.
25989 (__pututline): Likewise.
25990 * login/getutid.c (__getutid): Likewise.
25991 * login/getutid_r.c (__getutid_r): Likewise.
25992 * login/getutline.c (__getutline): Likewise.
25993 * login/getutline_r.c (__getutline_r): Likewise.
25994 * login/updwtmp.c (__updwtmp): Likewise.
25995
25996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25997
25998 [BZ #18822]
25999 * include/dirent.h (__opendir): Always add attribute_hidden.
26000 (__fdopendir): Likewise.
26001 (__closedir): Likewise.
26002 (__readdir): Likewise.
26003 (__readdir64): Add libc_hidden_proto.
26004 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26005 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26006 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26007 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26008 New alias.
26009
26010 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26011
26012 [BZ #18822]
26013 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26014 * include/netdb.h (__gethostbyaddr_r): Likewise.
26015 (__gethostbyname_r): Likewise.
26016 (__gethostbyname2_r): Likewise.
26017 (__getnetbyaddr_r): Likewise.
26018 (__getnetbyname_r): Likewise.
26019 (__getservbyname_r): Likewise.
26020 (__getservbyport_r): Likewise.
26021 (__getprotobyname_r): Likewise.
26022 (__getprotobynumber_r): Likewise.
26023 (__getnetgrent_r): Likewise.
26024 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26025 (__getrpcbynumber_r): Likewise.
26026 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26027
26028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26029
26030 [BZ #18822]
26031 * include/stdio.h (__fcloseall): Add attribute_hidden.
26032 (__getline): Likewise.
26033 (__path_search): Likewise.
26034 (__gen_tempname): Likewise.
26035 (__libc_message): Likewise.
26036 (__flockfile): Likewise.
26037 (__funlockfile): Likewise.
26038 (__fxprintf): Likewise.
26039 (__fxprintf_nocancel): Likewise.
26040
26041 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26042
26043 [BZ #18822]
26044 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26045 (__sgetsgent_r): Likewise.
26046
26047 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26048
26049 [BZ #18822]
26050 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26051 (__statfs64): Likewise.
26052 (__fstatfs64): Likewise.
26053 * include/sys/statvfs.h (__statvfs64): Likewise.
26054 (__fstatvfs64): Likewise.
26055 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26056 (__statfs_filesize_max): Likewise.
26057 (__statfs_symlinks): Likewise.
26058 (__statfs_chown_restricted): Likewise.
26059
26060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 [BZ #18822]
26063 * include/time.h (__tzstring): Add attribute_hidden.
26064 (__tzfile_read): Likewise.
26065 (__tzfile_compute): Likewise.
26066 (__tzfile_default): Likewise.
26067 (__tzset_parse_tz): Likewise.
26068 (__offtime): Likewise.
26069 (__asctime_r): Likewise.
26070 (__tzset): Likewise.
26071 (__tz_convert): Likewise.
26072 (__getdate_r): Likewise.
26073 (__getclktck): Likewise.
26074
26075 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26076
26077 [BZ #18822]
26078 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26079 (__nscd_unmap): Likewise.
26080 (__nscd_cache_search): Likewise.
26081 (__nscd_get_nl_timestamp): Likewise.
26082 (__nscd_getpwnam_r): Likewise.
26083 (__nscd_getpwuid_r): Likewise.
26084 (__nscd_getgrnam_r): Likewise.
26085 (__nscd_getgrgid_r): Likewise.
26086 (__nscd_gethostbyname_r): Likewise.
26087 (__nscd_gethostbyname2_r): Likewise.
26088 (__nscd_gethostbyaddr_r): Likewise.
26089 (__nscd_getai): Likewise.
26090 (__nscd_getgrouplist): Likewise.
26091 (__nscd_getservbyname_r): Likewise.
26092 (__nscd_getservbyport_r): Likewise.
26093 (__nscd_innetgr): Likewise.
26094 (__nscd_setnetgrent): Likewise.
26095
26096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26097
26098 [BZ #18822]
26099 * include/gmp.h: Declare internal functions only if _ISOMAC is
26100 undefined.
26101 (__mpn_extract_double): Add attribute_hidden.
26102 (__mpn_extract_long_double): Likewise.
26103 (__mpn_extract_float128): Likewise.
26104 (__mpn_construct_float): Likewise.
26105 (__mpn_construct_double): Likewise.
26106 (__mpn_construct_long_double): Likewise.
26107 (__mpn_construct_float128): Likewise.
26108 (mpn_add_1): Likewise.
26109 (mpn_addmul_1): Likewise.
26110 (mpn_add_n): Likewise.
26111 (mpn_cmp): Likewise.
26112 (mpn_divrem): Likewise.
26113 (mpn_lshift): Likewise.
26114 (mpn_mul): Likewise.
26115 (mpn_mul_1): Likewise.
26116 (mpn_rshift): Likewise.
26117 (mpn_sub_1): Likewise.
26118 (mpn_submul_1): Likewise.
26119 (mpn_sub_n): Likewise.
26120
26121 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26122
26123 [BZ #18822]
26124 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26125 (__wcscat): Likewise.
26126 (__btowc): Likewise.
26127 (__wcrtomb): Likewise.
26128 (__mbsrtowcs): Likewise.
26129 (__wcsrtombs): Likewise.
26130 (__mbsnrtowcs): Likewise.
26131 (__wcsnrtombs): Likewise.
26132 (__wcsncpy): Likewise.
26133 (__wcpncpy): Likewise.
26134 (__wmemcpy): Likewise.
26135 (__wmempcpy): Likewise.
26136 (__wmemmove): Likewise.
26137 (__wcschrnul): Likewise.
26138 (__vfwscanf): Likewise.
26139 (__vswprintf): Likewise.
26140 (__fwprintf): Likewise.
26141 (__vfwprintf): Likewise.
26142
26143 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26144
26145 [BZ #18822]
26146 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26147 (__getgrgid_r): Likewise.
26148 (__getgrnam_r): Likewise.
26149 * include/pwd.h (__getpwuid_r): Likewise.
26150 (__getpwnam_r): Likewise.
26151 (__fgetpwent_r): Likewise.
26152 * include/shadow.h (__getspnam_r): Likewise.
26153 (__sgetspent_r): Likewise.
26154 (__fgetspent_r): Likewise.
26155
26156 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26157
26158 [BZ #18822]
26159 * include/unistd.h (__access): Add attribute_hidden.
26160 (__lseek64): Likewise.
26161 (__libc_pread64): Likewise.
26162 (__pipe2): Likewise.
26163 (__sleep): Likewise.
26164 (__chdir): Likewise.
26165 (__fchdir): Likewise.
26166 (__getcwd): Likewise.
26167 (__rmdir): Likewise.
26168 (__execvpe): Likewise.
26169 (__execve): Likewise.
26170 (__setsid): Likewise.
26171 (__getuid): Likewise.
26172 (__geteuid): Likewise.
26173 (__getgid): Likewise.
26174 (__getegid): Likewise.
26175 (__getgroups): Likewise.
26176 (__group_member): Likewise.
26177 (__ttyname_r): Likewise.
26178 (__isatty): Likewise.
26179 (__readlink): Likewise.
26180 (__unlink): Likewise.
26181 (__gethostname): Likewise.
26182 (__profil): Likewise.
26183 (__getdtablesize): Likewise.
26184 (__brk): Likewise.
26185 (__ftruncate): Likewise.
26186 (__ftruncate64): Likewise.
26187
26188 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26189
26190 [BZ #18822]
26191 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26192 * argp/argp-fs-xinl.c: Likewise.
26193 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26194 * argp/argp-parse.c: Include <argp.h>.
26195 * argp/argp-xinl.c: Likewise.
26196 * include/argp-fmtstream.h: New file.
26197 * include/argp.h (__argp_error): Add attribute_hidden.
26198 (__argp_failure): Likewise.
26199 (__argp_input): Likewise.
26200 (__argp_state_help): Likewise.
26201
26202 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26203
26204 [BZ #18822]
26205 * include/wchar.h (____wcstof_l_internal): New prototype.
26206 (____wcstod_l_internal): Likewise.
26207 (____wcstold_l_internal): Likewise.
26208 (____wcstol_l_internal): Likewise.
26209 (____wcstoul_l_internal): Likewise.
26210 (____wcstoll_l_internal): Likewise.
26211 (____wcstoull_l_internal): Likewise.
26212 (____wcstof128_l_internal): Likewise.
26213 * sysdeps/ieee754/float128/wcstof128.c
26214 (____wcstof128_l_internal): Removed.
26215 * sysdeps/ieee754/float128/wcstof128_l.c
26216 (____wcstof128_l_internal): Likewise.
26217 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26218 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26219 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26220 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26221 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26222 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26223 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26224 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26225 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26226 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26227
26228 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26229
26230 [BZ #18822]
26231 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26232 instead of <sys/statvfs.h>.
26233 (__internal_statvfs): Removed.
26234 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26235 instead of <sys/statvfs.h>.
26236 (__internal_statvfs64): Removed.
26237 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26238 "internal_statvfs.h" instead of <sys/statvfs.h>.
26239 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26240 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26241 instead of <sys/statvfs.h>.
26242 (__internal_statvfs): Removed.
26243 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26244 instead of <sys/statvfs.h>.
26245 (__internal_statvfs64): Removed.
26246
26247 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26248
26249 [BZ #18822]
26250 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26251 (__gconv_close): Likewise.
26252 (__gconv): Likewise.
26253 (__gconv_find_transform): Likewise.
26254 (__gconv_lookup_cache): Likewise.
26255 (__gconv_compare_alias_cache): Likewise.
26256 (__gconv_load_cache): Likewise.
26257 (__gconv_get_path): Likewise.
26258 (__gconv_close_transform): Likewise.
26259 (__gconv_release_cache): Likewise.
26260 (__gconv_find_shlib): Likewise.
26261 (__gconv_release_shlib): Likewise.
26262 (__gconv_get_builtin_trans): Likewise.
26263 (__gconv_compare_alias): Likewise.
26264 * include/dlfcn.h (_dlerror_run): Likewise.
26265 * include/stdio.h (__fortify_fail_abort): Likewise.
26266 * include/time.h (__tz_compute): Likewise.
26267 (__strptime_internal): Likewise.
26268 * intl/gettextP.h (_nl_find_domain): Likewise.
26269 (_nl_load_domain): Likewise.
26270 (_nl_find_msg): Likewise.
26271 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26272 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26273 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26274 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26275 (__gai_find_request): Likewise.
26276 (__gai_remove_request): Likewise.
26277 (__gai_notify): Likewise.
26278 (__gai_notify_only): Likewise.
26279 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26280 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26281 (_dl_non_dynamic_init): Likewise.
26282 (_dl_aux_init): Likewise.
26283 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26284 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26285 Likewise.
26286 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26287 (__wcsmbs_clone_conv): Likewise.
26288 (__wcsmbs_named_conv): Likewise.
26289
26290 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26291
26292 [BZ #18822]
26293 * include/stdlib.h (__random): Add attribute_hidden.
26294 (__random_r): Likewise.
26295 (__srandom_r): Likewise.
26296 (__initstate_r): Likewise.
26297 (__setstate_r): Likewise.
26298 (__erand48_r): Likewise.
26299 (__nrand48_r): Likewise.
26300 (__jrand48_r): Likewise.
26301 (__srand48_r): Likewise.
26302 (__seed48_r): Likewise.
26303 (__lcong48_r): Likewise.
26304 (__drand48_iterate): Likewise.
26305 (__setenv): Likewise.
26306 (__unsetenv): Likewise.
26307 (__clearenv): Likewise.
26308 (__ptsname_r): Likewise.
26309 (__posix_openpt): Likewise.
26310 (__add_to_environ): Likewise.
26311 (__realpath): Add libc_hidden_proto.
26312 (__ecvt_r): Likewise.
26313 (__fcvt_r): Likewise.
26314 (__qecvt_r): Likewise.
26315 (__qfcvt_r): Likewise.
26316 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26317 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26318
26319 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26320
26321 [BZ #18822]
26322 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26323 * include/time.h (__mktime_internal): Likewise.
26324 * libio/iolibio.h (__fopen_internal): Likewise.
26325
26326 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26327
26328 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26329 pointer in frame.
26330 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26331 Correct offset used to restore PIC register.
26332
26333 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26334
26335 [BZ libc/22165]
26336 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26337 code to load address of __getcontext_ret when generating PIC code.
26338
26339 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26340
26341 * elf/Makefile (tests-static-internal): Add
26342 tst-tls1-static-non-pie.
26343 (LDFLAGS-tst-tls1-static-non-pie): New.
26344 * elf/tst-tls1-static-non-pie.c: New file.
26345
26346 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26347
26348 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26349 (asinh): Define using libm_alias_double.
26350 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26351 (cbrt): Define using libm_alias_double.
26352 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26353 <libm-alias-double.h>.
26354 (copysign): Define using libm_alias_double.
26355 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26356 (erf): Define using libm_alias_double.
26357 (erfc): Likewise.
26358 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26359 (expm1): Define using libm_alias_double.
26360 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26361 (fabs): Define using libm_alias_double.
26362 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26363 libm_alias_double.
26364 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26365 <libm-alias-double.h>.
26366 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26367 libm_alias_double.
26368 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26369 <libm-alias-double.h>.
26370 (getpayload): Define using libm_alias_double.
26371 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26372 <libm-alias-double.h>.
26373 (llrint): Define using libm_alias_double.
26374 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26375 (lrint): Define using libm_alias_double.
26376 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26377 <libm-alias-double.h>.
26378 (nextup): Define using libm_alias_double.
26379 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26380 <libm-alias-double.h>.
26381 (roundeven): Define using libm_alias_double.
26382 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26383 libm_alias_double.
26384 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26385 <libm-alias-double.h>.
26386 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26387 using libm_alias_double.
26388 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26389 (cos): Define using libm_alias_double.
26390 (sin): Likewise.
26391 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26392 <libm-alias-double.h>.
26393 (sincos): Define using libm_alias_double.
26394 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26395 (tanh): Define using libm_alias_double.
26396 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26397 <libm-alias-double.h>.
26398 (totalorder): Define using libm_alias_double.
26399 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26400 <libm-alias-double.h>.
26401 (totalordermag): Define using libm_alias_double.
26402 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26403 libm_alias_double.
26404 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26405 libm_alias_double.
26406 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26407 <libm-alias-double.h>.
26408 (getpayload): Define using libm_alias_double.
26409 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26410 <libm-alias-double.h>.
26411 (roundeven): Define using libm_alias_double.
26412 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26413 <libm-alias-double.h>.
26414 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26415 <libm-alias-double.h>.
26416 (totalorder): Define using libm_alias_double.
26417 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26418 <libm-alias-double.h>.
26419 (totalordermag): Define using libm_alias_double.
26420 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26421 libc compat symbol here.
26422 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26423 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26424 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26425 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26426 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26427 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26428 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26429 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26430 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26431 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26432
26433 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26434
26435 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26436 _dl_relocate_static_pie instead of _dl_start to compute load
26437 address in static PIE. Return 0 if _DYNAMIC is undefined for
26438 static executable.
26439
26440 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26443 _DYNAMIC is undefined for static executable.
26444
26445 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26446
26447 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26448
26449 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26450
26451 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26452
26453 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26454
26455 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26456 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26457 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26458 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26459 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26460 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26461 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26462 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26463 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26464 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26465 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26466 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26467 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26468 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26469 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26470 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26471 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26472
26473 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26474
26475 * math/bits/cmathcalls.h (cimag): Remove inline.
26476 (creal): Remove inline.
26477 (conj): Remove inline.
26478
26479 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26480
26481 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26482 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26483 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26484 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26485 (issignalingf_inline): Likewise.
26486 (POWF_LOG2_TABLE_BITS): Likewise.
26487 (POWF_LOG2_POLY_ORDER): Likewise.
26488 (POWF_SCALE_BITS): Likewise.
26489 (POWF_SCALE): Likewise.
26490 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26491 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26492 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26493
26494 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26495
26496 * math/Makefile (type-float-routines): Add e_log2f_data.
26497 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26498 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26499 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26500 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26501 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26502 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26503 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26504
26505 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26506
26507 * math/Makefile (type-float-routines): Add e_logf_data.
26508 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26509 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26510 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26511 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26512 * sysdeps/i386/fpu/e_logf_data.c: New file.
26513 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26514 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26515
26516 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26517
26518 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26519 undefined _DYNAMIC in PIE libc.a.
26520 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26521 Likewse.
26522
26523 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26524
26525 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26526 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26527 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26528 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26529 (__signbit): Remove.
26530 (__signbitl): Remove.
26531 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26532 (__signbit): Remove.
26533 (__signbitl): Remove.
26534 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26535 (__signbit): Remove.
26536 (__signbitl): Remove.
26537 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26538 (__signbit): Remove.
26539 (__signbitl): Remove.
26540 * sysdeps/tile/bits/mathinline.h: Delete file.
26541 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26542 (__signbit): Remove.
26543 (__signbitl): Remove.
26544
26545 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26546
26547 * math/math.h: Improve handling of C99 isgreater macros.
26548 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26549 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26550 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26551 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26552 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26553
26554 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26555
26556 * sysdeps/aarch64/libm-test-ulps: Update.
26557
26558 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26559
26560 [BZ #22225]
26561 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26562 math_opt_barrier on argument when doing arithmetic on it.
26563 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26564 Likewise. Use math_force_eval not math_opt_barrier after
26565 arithmetic.
26566 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26567 math_opt_barrier on argument when doing arithmetic on it.
26568 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26569 Likewise.
26570
26571 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26572
26573 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26574 libc_hidden_def.
26575 (__freeifaddrs): Likewise.
26576
26577 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26578
26579 * include/dirent.h (__dirfd): New declaration.
26580 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26581 alias.
26582 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26583 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26584 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26585 * include/unistd.h (__revoke): New declaration.
26586 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26587 alias.
26588 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26589 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26590 revoke.
26591 * include/dirent.h (__seekdir): New declaration.
26592 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26593 redefine as weak alias.
26594 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26595 of seekdir.
26596 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26597 and use libc_hidden_def on them.
26598 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26599 them.
26600 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26601 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26602 instead of getifaddrs and freeifaddrs.
26603
26604 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26605
26606 [BZ #18822]
26607 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26608 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26609 (__dso_handle): Remove declaration.
26610 * dlfcn/tstatexit.c (__dso_handle): Removed.
26611 (main): Don't check __dso_handle.
26612 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26613 (main): Don't check __dso_handle.
26614 * include/dso_handle.h: New file.
26615 * malloc/mtrace.c: Include <dso_handle.h>.
26616 (mtrace): Pass __dso_handle directly.
26617 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26618 (__dso_handle): Remove declaration.
26619 (__pthread_atfork): Pass __dso_handle directly.
26620 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26621 (__dso_handle): Removed.
26622 * posix/wordexp-test.c: Include <dso_handle.h>.
26623 (__dso_handle): Remove declaration.
26624 (__app_register_atfork): Pass __dso_handle directly.
26625 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26626 (__dso_handle): Remove declaration.
26627 (at_quick_exit): Pass __dso_handle directly.
26628 * stdlib/atexit.c: Include <dso_handle.h>.
26629 (__dso_handle): Remove declaration.
26630 (atexit): Pass __dso_handle directly.
26631 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26632 (__dso_handle): Removed.
26633
26634 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26635
26636 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26637 using VDSO.
26638
26639 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26640
26641 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26642 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26643 values to correct default value for given type.
26644
26645 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26646
26647 [BZ #22101]
26648 * elf/Makefile (tests): Add tst-debug1.
26649 ($(objpfx)tst-debug1): New.
26650 ($(objpfx)tst-debug1.out): Likewise.
26651 ($(objpfx)tst-debug1mod1.so): Likewise.
26652 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26653 with p_filesz == 0.
26654 * elf/tst-debug1.c: New file.
26655
26656 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26657
26658 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26659 Define using __ifunc.
26660
26661 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26662
26663 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26664 exp2f() values.
26665
26666 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26667
26668 [BZ #22156]
26669 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26670
26671 2017-09-26 Florian Weimer <fweimer@redhat.com>
26672
26673 * resolv/Makefile (tests-internal): Fix typo in comment.
26674
26675 2017-09-26 Florian Weimer <fweimer@redhat.com>
26676
26677 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26678
26679 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26680
26681 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26682 Use an union instead of a max_align_t array for __space,
26683 so that __space is the same size on all platforms.
26684 * malloc/scratch_buffer_grow_preserve.c
26685 (__libc_scratch_buffer_grow_preserve): Likewise.
26686
26687 [BZ #22183]
26688 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26689 version to 2.
26690 * posix/Makefile (routines): Add glob-lstat-compat and
26691 glob64-lstat-compat.
26692 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26693 * posix/glob-lstat-compat.c: New file.
26694 * posix/glob64-lstat-compat.c: Likewise.
26695 * posix/tst-glob_lstat_compat.c: Likewise.
26696 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26697 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26698 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26699 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26700 Likewise.
26701 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26702 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26703 * posix/glob.c (glob_lstat): New function.
26704 (glob): Rename to __glob and add versioned symbol to 2.27.
26705 (glob_in_dir): Use glob_lstat.
26706 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26707 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26709 2.27.
26710 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26711 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26712 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26713 gl_lstat on glob call.
26714 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26715 and glob64 symbols.
26716 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26723 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26728 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26729 Likewise.
26730 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26732 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26733 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26734 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26735 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26736 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26737 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26738 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26739 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26740 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26741 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26742
26743 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26744
26745 * configure.ac (AS): Require binutils 2.25 or later.
26746 * configure: Regenerated.
26747
26748 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26749
26750 [BZ #22207]
26751 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26752 VM size.
26753
26754 2017-09-25 DJ Delorie <dj@redhat.com>
26755
26756 [BZ #22161]
26757 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26758 resetting timeout.
26759
26760 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26761
26762 * sysdeps/ieee754/dbl-64/sincos32.h
26763 [SINCCOS32_H]: Remove define.
26764 [SINCOS32_H]: Define.
26765
26766 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26767
26768 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26769 (exp2f): Likewise.
26770 * math/w_exp2f.c: New file.
26771 * math/w_expf.c: New file.
26772 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26773 * math/w_expf_compat.c (__expf_compat): Likewise.
26774 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26775 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26776 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26777 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26778 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26779 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26780 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26781 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26782 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26783 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26784 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26785 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26786 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26787 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26789 Likewise.
26790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26791 Likewise.
26792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26793 Likewise.
26794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26795 Likewise.
26796 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26797 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26798 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26799 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26800 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26801 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26802 Likewise.
26803 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26804 Likewise.
26805 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26806 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26807 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26808
26809 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26810
26811 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26812 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26813 (roundtoint, converttoint): Likewise.
26814 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26815 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26816 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26817 * sysdeps/ieee754/flt-32/math_config.h: New file.
26818 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26819 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26820 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26821 * sysdeps/i386/fpu/math_errf.c: New file.
26822 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26823 * sysdeps/ia64/fpu/math_errf.c: New file.
26824 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26825 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26826
26827 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26828
26829 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26830 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26831 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26832 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26833 to make sure that these symbols are defined.
26834 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26835 of <limits.h>
26836 (__need_NULL): Do not define.
26837 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26838 alignment.
26839 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26840 CMGROUP_MAX, cmsgcred): Do not define.
26841 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26842 NULL.
26843 * bits/socket.h: Likewise.
26844 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26845 __gettimeofday instead of gettimeofday.
26846 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26847 instead of settimeofday.
26848
26849 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26850
26851 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26852 (asinhf): Define using libm_alias_float.
26853 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26854 (atanf): Define using libm_alias_float.
26855 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26856 (cbrtf): Define using libm_alias_float.
26857 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26858 (ceilf): Define using libm_alias_float.
26859 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26860 <libm-alias-float.h>.
26861 (copysignf): Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26863 (cosf): Define using libm_alias_float.
26864 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26865 (erff): Define using libm_alias_float.
26866 (erfcf): Likewise.
26867 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26868 (expm1f): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26870 (fabsf): Define using libm_alias_float.
26871 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26872 (floorf): Define using libm_alias_float.
26873 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26874 (frexpf): Define using libm_alias_float.
26875 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26876 libm_alias_float.
26877 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26878 <libm-alias-float.h>.
26879 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26880 libm_alias_float.
26881 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26882 <libm-alias-float.h>.
26883 (getpayloadf): Define using libm_alias_float.
26884 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26885 <libm-alias-float.h>.
26886 (llrintf): Define using libm_alias_float.
26887 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26888 <libm-alias-float.h>.
26889 (llroundf): Define using libm_alias_float.
26890 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26891 (logbf): Define using libm_alias_float.
26892 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26893 (lrintf): Define using libm_alias_float.
26894 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26895 (lroundf): Define using libm_alias_float.
26896 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26897 (modff): Define using libm_alias_float.
26898 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26899 <libm-alias-float.h>.
26900 (nearbyintf): Define using libm_alias_float.
26901 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26902 <libm-alias-float.h>.
26903 (nextafterf): Define using libm_alias_float.
26904 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26905 <libm-alias-float.h>.
26906 (nextupf): Define using libm_alias_float.
26907 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26908 <libm-alias-float.h>.
26909 (remquof): Define using libm_alias_float.
26910 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26911 (rintf): Define using libm_alias_float.
26912 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26913 <libm-alias-float.h>.
26914 (roundevenf): Define using libm_alias_float.
26915 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26916 (roundf): Define using libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26918 using libm_alias_float.
26919 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26920 <libm-alias-float.h>.
26921 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26922 Define using libm_alias_float.
26923 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26924 <libm-alias-float.h>.
26925 (sincosf): Define using libm_alias_float.
26926 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26927 (sinf): Define using libm_alias_float.
26928 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26929 (tanf): Define using libm_alias_float.
26930 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26931 (tanhf): Define using libm_alias_float.
26932 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26933 <libm-alias-float.h>.
26934 (totalorderf): Define using libm_alias_float.
26935 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26936 <libm-alias-float.h>.
26937 (totalordermagf): Define using libm_alias_float.
26938 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26939 (truncf): Define using libm_alias_float.
26940 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26941 libm_alias_float.
26942 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26943 libm_alias_float.
26944
26945 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26946
26947 [BZ #22146]
26948 math/math.h: Let fpclassify use the builtin in C++ mode, even
26949 when optimazing for size.
26950
26951 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26952
26953 * csu/Makefile (generated): Do not add version-info.h.
26954 (before-compile): Likewise.
26955 (all-Banner-files): Remove variable.
26956 ($(objpfx)version-info.h): Remove rule.
26957 * csu/version.c (banner): Do not include "version-info.h".
26958 * libidn/Banner: Remove.
26959 * manual/contrib.texi (Simon Josefsson): New entry.
26960
26961 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26962
26963 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26964 Remove conditionals on LDBL_MANT_DIG.
26965 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26966 (__ieee754_lgammal_r): Likewise.
26967
26968 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26969
26970 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26971 _Float128 and L().
26972 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26973 _Float128 and L(). Replace _Float128 with long double and L(x)
26974 with xL, throughout the file.
26975 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26976 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26977 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26978 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26979
26980 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26981
26982 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26983 sysdeps/ieee754/ldbl-128ibm.
26984 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26985 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26986 of including it. Keep _Float128 and L() intact. These will be
26987 reviewed by a separate patch.
26988 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26989 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26990 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26991 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26992
26993 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26994
26995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26996 (__finitef128): Define to __redirect___finitef128.
26997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26998 (__isinff128): Define to __redirect___isinff128.
26999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27000 (__isnanf128): Define to __redirect___isnanf128.
27001
27002 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27003
27004 * sysdeps/powerpc/powerpc64le/Makefile
27005 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27006 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27007
27008 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27009 Carlos O'Donell <carlos@redhat.com>
27010
27011 [BZ #22180]
27012 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27013 * stdlib/test-dlclose-exit-race.c: New file.
27014 * stdlib/test-dlclose-exit-race-helper.c: New file.
27015 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27016
27017 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27018
27019 * crypt/Banner: Remove file.
27020 * nptl/Banner: Likewise.
27021 * resolv/Banner: Likewise.
27022 * soft-fp/Banner: Likewise.
27023 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27024 ($(objpfx)version.d): Remove dependency on banner.h.
27025 ($(objpfx)version.os): Likewise.
27026 * nptl/version.c (banner): Do not include banner.h.
27027 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27028 Jelinek and BIND code.
27029
27030 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27031 Carlos O'Donell <carlos@redhat.com>
27032
27033 * support/xdlfcn.h: New file.
27034 * support/xdlfcn.c: New file.
27035 * support/Makefile (libsupport-routines): Add xdlfcn.
27036 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27037
27038 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27039
27040 [BZ #20142]
27041 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27042 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27043 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27044 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27045 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27046 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27047 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27048 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27049
27050 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27051 Ricky Zhou <rickyz@google.com>
27052 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27053
27054 [BZ #14333]
27055 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27056 Remove atomics.
27057 (__new_exitfn): Fail registration when we finished at_exit processing.
27058 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27059 * stdlib/on_exit.c (__on_exit): Likewise.
27060 * stdlib/exit.c (__exit_funcs_done): New variable.
27061 (__run_exit_handlers): Use __exit_funcs_lock.
27062 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27063 declarations.
27064 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27065 (test-cxa_atexit-race, test-on_exit-race): New tests.
27066 * stdlib/test-atexit-race-common.c: New file.
27067 * stdlib/test-atexit-race.c: New file.
27068 * stdlib/test-at_quick_exit-race.c: New file.
27069 * stdlib/test-cxa_atexit-race.c: New file.
27070 * stdlib/test-on_exit-race.c: New file.
27071
27072 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27073
27074 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27075 * benchtests/exp2f-inputs: Copy of expf-inputs.
27076 * benchtests/log2f-inputs: Copy of logf-inputs.
27077
27078 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27079
27080 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27081 Explicitly take address of first element of array arguments in
27082 call to INLINE_SYSCALL.
27083
27084 2017-09-19 Andreas Schwab <schwab@suse.de>
27085
27086 [BZ #22134]
27087 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27088 execveat first.
27089 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27090 unimplemented.
27091 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27092 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27093 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27094 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27095 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27096 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27097 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27098 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27099 * posix/Makefile (tests): Add tst-fexecve.
27100 * posix/tst-fexecve.c: New file.
27101
27102 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27103
27104 * benchtests/Makefile: Add logf benchmark.
27105 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27106
27107 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27108
27109 * benchtests/Makefile: Add expf benchmark.
27110 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27111
27112 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27113
27114 * csu/Makefile: Add -funwind-tables to libc-start.c.
27115 * debug/Makefile: Add -funwind-tables to backtrace.c.
27116 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27117 * sysdeps/arm/Makefile: Likewise.
27118 * sysdeps/i386/Makefile: Likewise.
27119 * sysdeps/m68k/Makefile: Likewise.
27120 * sysdeps/mips/Makefile: Likewise.
27121 * sysdeps/nios2/Makefile: Likewise.
27122 * sysdeps/sh/Makefile: Likewise.
27123 * sysdeps/sparc/Makefile: Likewise.
27124
27125 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27126
27127 * benchtests/Makefile (bench-math): Add trunc and truncf.
27128 (CFLAGS-bench-trunc.c): New variable.
27129 (CFLAGS-bench-truncf.c): Likewise.
27130 * benchtests/trunc-inputs: New file.
27131 * benchtests/truncf-inputs: Likewise.
27132
27133 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27134
27135 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27136
27137 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27138
27139 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27140 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27141 redefine.
27142 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27143 (exp10l): Define as weak alias.
27144 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27145 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27146 and redefine.
27147 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27148 (remainderl): Define as weak alias.
27149
27150 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27151 (fmal): Define using libm_alias_ldouble.
27152 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27153 (acoshl): Define using libm_alias_ldouble.
27154 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27155 (acosl): Define using libm_alias_ldouble.
27156 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27157 (asinl): Define using libm_alias_ldouble.
27158 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27159 (atan2l): Define using libm_alias_ldouble.
27160 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27161 (atanhl): Define using libm_alias_ldouble.
27162 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27163 (coshl): Define using libm_alias_ldouble.
27164 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27165 (exp10l): Define using libm_alias_ldouble.
27166 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27167 (exp2l): Define using libm_alias_ldouble.
27168 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27169 (expl): Define using libm_alias_ldouble.
27170 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27171 (fmodl): Define using libm_alias_ldouble.
27172 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27173 (hypotl): Define using libm_alias_ldouble.
27174 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27175 (j0l): Define using libm_alias_ldouble.
27176 (y0l): Likewise.
27177 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27178 (j1l): Define using libm_alias_ldouble.
27179 (y1l): Likewise.
27180 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27181 (jnl): Define using libm_alias_ldouble.
27182 (ynl): Likewise.
27183 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27184 (log10l): Define using libm_alias_ldouble.
27185 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27186 (log2l): Define using libm_alias_ldouble.
27187 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27188 (logl): Define using libm_alias_ldouble.
27189 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27190 (powl): Define using libm_alias_ldouble.
27191 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27192 (remainderl): Define using libm_alias_ldouble.
27193 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27194 (sinhl): Define using libm_alias_ldouble.
27195 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27196 (sqrtl): Define using libm_alias_ldouble.
27197 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27198 (tgammal): Define using libm_alias_ldouble.
27199 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27200 (exp10l): Do not use long_double_symbol here.
27201 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27202 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27203 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27204 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27205 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27206 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27207 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27208 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27209 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27210 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27211 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27212 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27213 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27214 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27215 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27216 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27217 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27218 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27219 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27220 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27221 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27222 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27223
27224 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27225
27226 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27227 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27228
27229 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27230
27231 * io/read.c (read): Add libc_hidden_weak.
27232 * sysdeps/mach/hurd/read.c (read): Likewise.
27233 * io/write.c (write): Likewise.
27234 * sysdeps/mach/hurd/write.c (write): Likewise.
27235 * io/pread64.c (__pread64): Likewise.
27236 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27237 * posix/pread64.c (__pread64): Add libc_hidden_def.
27238
27239 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27240
27241 * benchtests/scripts/compare_strings.py: New option -g.
27242 (draw_graph): Print a message that a graph is being generated.
27243 (process_results): Generate graph only if -g is passed.
27244 (main): Process option -g.
27245
27246 * benchtests/scripts/compare_strings.py (process_results):
27247 Better spacing for output.
27248
27249 * benchtests/scripts/compare_strings.py: Use argparse.
27250 * benchtests/README: Document existence of compare_strings.py.
27251
27252 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27253
27254 * math/s_fma.c: Include <libm-alias-double.h>.
27255 (fma): Define using libm_alias_double.
27256 * math/s_nextafter.c: Include <libm-alias-double.h>.
27257 (nextafter): Define using libm_alias_double.
27258 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27259 (acos): Define using libm_alias_double.
27260 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27261 (aocsh): Define using libm_alias_double.
27262 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27263 (asin): Define using libm_alias_double.
27264 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27265 (atan2): Define using libm_alias_double.
27266 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27267 (atanh): Define using libm_alias_double.
27268 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27269 (cosh): Define using libm_alias_double.
27270 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27271 (exp10): Define using libm_alias_double.
27272 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27273 (exp2): Define using libm_alias_double.
27274 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27275 (exp): Define using libm_alias_double.
27276 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27277 (fmod): Define using libm_alias_double.
27278 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27279 (hypot): Define using libm_alias_double.
27280 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27281 (j0): Define using libm_alias_double.
27282 (y0): Likewise.
27283 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27284 (j1): Define using libm_alias_double.
27285 (y1): Likewise.
27286 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27287 (jn): Define using libm_alias_double.
27288 (yn): Likewise.
27289 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27290 (log10): Define using libm_alias_double.
27291 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27292 (log2): Define using libm_alias_double.
27293 * math/w_log_compat.c: Include <libm-alias-double.h>.
27294 (log): Define using libm_alias_double.
27295 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27296 (pow): Define using libm_alias_double.
27297 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27298 (remainder): Define using libm_alias_double.
27299 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27300 (sinh): Define using libm_alias_double.
27301 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27302 (sqrt): Define using libm_alias_double.
27303 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27304 (tgamma): Define using libm_alias_double.
27305 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27306 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27307 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27308 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27309 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27310 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27311 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27312 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27313 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27314 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27315 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27316 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27317 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27318 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27319 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27320 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27321 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27322 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27323 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27324 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27325 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27326 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27327 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27328 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27329 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27330
27331 * math/e_acoshl.c: Remove.
27332 * math/e_acosl.c: Likewise.
27333 * math/e_asinl.c: Likewise.
27334 * math/e_atan2l.c: Likewise.
27335 * math/e_atanhl.c: Likewise.
27336 * math/e_coshl.c: Likewise.
27337 * math/e_expl.c: Likewise.
27338 * math/e_fmodl.c: Likewise.
27339 * math/e_gammal_r.c: Likewise.
27340 * math/e_hypotl.c: Likewise.
27341 * math/e_j0l.c: Likewise.
27342 * math/e_j1l.c: Likewise.
27343 * math/e_jnl.c: Likewise.
27344 * math/e_lgammal_r.c: Likewise.
27345 * math/e_log10l.c: Likewise.
27346 * math/e_log2l.c: Likewise.
27347 * math/e_logl.c: Likewise.
27348 * math/e_powl.c: Likewise.
27349 * math/e_rem_pio2l.c: Likewise.
27350 * math/e_sinhl.c: Likewise.
27351 * math/e_sqrtf128.c: Likewise.
27352 * math/e_sqrtl.c: Likewise.
27353 * math/k_cosl.c: Likewise.
27354 * math/k_sinl.c: Likewise.
27355 * math/k_tanl.c: Likewise.
27356 * math/s_asinhl.c: Likewise.
27357 * math/s_atanl.c: Likewise.
27358 * math/s_cbrtl.c: Likewise.
27359 * math/s_erfl.c: Likewise.
27360 * math/s_expm1l.c: Likewise.
27361 * math/s_log1pl.c: Likewise.
27362 * math/s_tanhl.c: Likewise.
27363
27364 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27365
27366 [BZ #21745]
27367 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27368 [$(subdir) = math] (sysdep_calls): New variable. Has the
27369 previous contents of sysdep_routines, but re-sorted..
27370 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27371 sysdep_calls.
27372 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27373 defined in sysdep_calls and replace by the respective m_* names.
27374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27375 (compat_symbol): Undefine to avoid duplicated compat symbols in
27376 libc.
27377
27378 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27379
27380 * math/s_fmaf.c: Include <libm-alias-float.h>.
27381 (fmaf): Define using libm_alias_float.
27382 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27383 (acosf): Define using libm_alias_float.
27384 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27385 (acoshf): Define using libm_alias_float.
27386 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27387 (asinf): Define using libm_alias_float.
27388 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27389 (atan2f): Define using libm_alias_float.
27390 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27391 (atanhf): Define using libm_alias_float.
27392 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27393 (coshf): Define using libm_alias_float.
27394 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27395 (exp10f): Define using libm_alias_float.
27396 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27397 (fmodf): Define using libm_alias_float.
27398 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27399 (hypotf): Define using libm_alias_float.
27400 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27401 (j0f): Define using libm_alias_float.
27402 (y0f): Likewise.
27403 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27404 (j1f): Define using libm_alias_float.
27405 (y1f): Likewise.
27406 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27407 (jnf): Define using libm_alias_float.
27408 (ynf): Likewise.
27409 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27410 (log10f): Define using libm_alias_float.
27411 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27412 (log2f): Define using libm_alias_float.
27413 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27414 (logf): Define using libm_alias_float.
27415 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27416 (powf): Define using libm_alias_float.
27417 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27418 (remainderf): Define using libm_alias_float.
27419 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27420 (sinhf): Define using libm_alias_float.
27421 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27422 (sqrtf): Define using libm_alias_float.
27423 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27424 (tgammaf): Define using libm_alias_float.
27425
27426 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27427
27428 * include/math.h (roundeven): Change hidden_proto call to
27429 __roundeven.
27430 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27431 alias.
27432 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27433 (y0): Rename to __y0 and define as weak alias.
27434 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27435 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27436 alias.
27437 (y0f): Rename to __y0f and define as weak alias.
27438 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27439 alias.
27440 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27441 (y1): Rename to __y1 and define as weak alias.
27442 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27443 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27444 alias.
27445 (y1f): Rename to __y1f and define as weak alias.
27446 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27447 alias.
27448 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27449 (yn): Rename to __yn and define as weak alias.
27450 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27451 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27452 alias.
27453 (ynf): Rename to __ynf and define as weak alias.
27454 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27455 (fromfp): Define as weak alias.
27456 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27457 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27458 (fromfpx): Define as weak alias.
27459 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27460 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27461 __getpayload and define as weak alias.
27462 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27463 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27464 __roundeven and define as weak alias.
27465 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27466 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27467 __setpayload.
27468 (setpayload): Define as weak alias.
27469 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27470 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27471 __setpayloadsig.
27472 (setpayloadsig): Define as weak alias.
27473 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27474 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27475 __totalorder and define as weak alias.
27476 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27477 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27478 to __totalordermag and define as weak alias.
27479 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27480 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27481 (ufromfp): Define as weak alias.
27482 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27483 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27484 __ufromfpx.
27485 (ufromfpx): Define as weak alias.
27486 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27487 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27488 Rename to __getpayload and define as weak alias.
27489 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27490 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27491 Rename to __roundeven and define as weak alias.
27492 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27493 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27494 Rename to __totalorder and define as weak alias.
27495 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27496 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27497 (totalordermag): Rename to __totalordermag and define as weak
27498 alias.
27499 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27500 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27501 macro.
27502 (__roundevenl): Likewise.
27503 (__totalorderl): Likewise.
27504 (__totalordermagl): Likewise
27505 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27506 __fromfpf128.
27507 (fromfpf128): Define as weak alias.
27508 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27509 __fromfpxf128.
27510 (fromfpxf128): Define as weak alias.
27511 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27512 __setpayloadf128.
27513 (setpayloadf128): Define as weak alias.
27514 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27515 __setpayloadsigf128.
27516 (setpayloadsigf128): Define as weak alias.
27517 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27518 __ufromfpf128.
27519 (ufromfpf128): Define as weak alias.
27520 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27521 __ufromfpxf128.
27522 (ufromfpxf128): Define as weak alias.
27523 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27524 (fromfpf): Define as weak alias.
27525 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27526 __fromfpxf.
27527 (fromfpxf): Define as weak alias.
27528 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27529 __getpayloadf and define as weak alias.
27530 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27531 __roundevenf and define as weak alias.
27532 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27533 __setpayloadf.
27534 (setpayloadf): Define as weak alias.
27535 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27536 __setpayloadsigf.
27537 (setpayloadsigf): Define as weak alias.
27538 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27539 __totalorderf and define as weak alias.
27540 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27541 Rename to __totalordermagf and define as weak alias.
27542 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27543 __ufromfpf.
27544 (ufromfpf): Define as weak alias.
27545 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27546 __ufromfpxf.
27547 (ufromfpxf): Define as weak alias.
27548 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27549 __fromfpl.
27550 (fromfpl): Define as weak alias.
27551 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27552 __fromfpxl.
27553 (fromfpxl): Define as weak alias.
27554 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27555 to __getpayloadl and define as weak alias.
27556 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27557 __roundevenl and define as weak alias.
27558 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27559 __setpayloadl.
27560 (setpayloadl): Define as weak alias.
27561 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27562 __setpayloadsigl.
27563 (setpayloadsigl): Define as weak alias.
27564 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27565 to __totalorderl and define as weak alias.
27566 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27567 Rename to __totalordermagl and define as weak alias.
27568 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27569 __ufromfpl.
27570 (ufromfpl): Define as weak alias.
27571 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27572 __ufromfpxl.
27573 (ufromfpxl): Define as weak alias.
27574 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27575 __fromfpl.
27576 (fromfpl): Define as weak alias.
27577 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27578 __fromfpxl.
27579 (fromfpxl): Define as weak alias.
27580 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27581 Rename to __getpayloadl and define as weak alias.
27582 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27583 to __roundevenl and define as weak alias. Call __roundeven
27584 instead of roundeven.
27585 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27586 __setpayloadl.
27587 (setpayloadl): Define as weak alias.
27588 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27589 __setpayloadsigl.
27590 (setpayloadsigl): Define as weak alias.
27591 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27592 Rename to __totalorderl and define as weak alias.
27593 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27594 Rename to __totalordermagl and define as weak alias.
27595 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27596 __ufromfpl.
27597 (ufromfpl): Define as weak alias.
27598 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27599 __ufromfpxl.
27600 (ufromfpxl): Define as weak alias.
27601 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27602 __fromfpl.
27603 (fromfpl): Define as weak alias.
27604 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27605 __fromfpxl.
27606 (fromfpxl): Define as weak alias.
27607 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27608 __getpayloadl and define as weak alias.
27609 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27610 __roundevenl and define as weak alias.
27611 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27612 __setpayloadl.
27613 (setpayloadl): Define as weak alias.
27614 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27615 __setpayloadsigl.
27616 (setpayloadsigl): Define as weak alias.
27617 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27618 __totalorderl and define as weak alias.
27619 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27620 Rename to __totalordermagl and define as weak alias.
27621 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27622 __ufromfpl.
27623 (ufromfpl): Define as weak alias.
27624 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27625 __ufromfpxl.
27626 (ufromfpxl): Define as weak alias.
27627
27628 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27629
27630 * benchtests/bench-string.h (realloc_bufs): New function.
27631 (test_init): Call it.
27632 * benchtests/bench-memset-large.c (do_test): Likewise.
27633 * benchtests/bench-memset.c (do_test): Likewise.
27634
27635 * benchtests/bench-memset-large.c: Print output in JSON
27636 format.
27637 * benchtests/bench-memset.c: Likewise.
27638
27639 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27640
27641 [BZ #21084]
27642 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27643 * iconvdata/Makefile: Add IBM858.
27644 * iconvdata/gconv-modules: Likewise.
27645 * iconvdata/tst-tables.sh: Likewise.
27646 * iconvdata/ibm858.c: New file.
27647 * localedata/charmaps/IBM858: Likewise.
27648
27649 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27650
27651 [BZ #22023]
27652 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27653 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27654
27655 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27656
27657 [BZ #22112]
27658 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27659 and add tel_int_fmt.
27660
27661 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27662
27663 * sysdeps/generic/libm-alias-float128.h: New file.
27664 * sysdeps/generic/math-type-macros-float128.h: Include
27665 <libm-alias-float128.h>.
27666 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27667
27668 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27669
27670 * sysdeps/generic/libm-alias-ldouble.h: New file.
27671 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27672 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27673 * sysdeps/generic/math-type-macros-ldouble.h: Include
27674 <libm-alias-ldouble.h>.
27675 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27676 libm_alias_ldouble.
27677
27678 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27679
27680 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27681 * math/w_exp_compat.c: ... here.
27682 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27683 * math/w_expf_compat.c: ... here.
27684 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27685 * math/w_expl_compat.c: ... here.
27686 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27687 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27688 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27689 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27690
27691 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27692
27693 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27694 redefine.
27695 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27696 macro.
27697 (ldexpl): Only define as compat symbol for libc, not libm.
27698 (scalbnl): Define as compat symbol for libc here.
27699 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27700 define for [IS_IN (libc)].
27701 (__ldexpl_2): Remove alias.
27702 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27703 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27704 name in long_double_symbol call.
27705 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27706 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27707 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27708 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27709 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27710 Remove macro.
27711 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27712 Define as compat symbol.
27713
27714 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27715
27716 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27717 * sysdeps/unix/sysv/linux/alpha/Makefile
27718 [$(subdir) = csu] (sysdep_routines): Remove rule.
27719
27720 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27721
27722 * sysdeps/generic/libm-alias-double.h: New file.
27723 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27724 * sysdeps/generic/math-type-macros-double.h: Include
27725 <libm-alias-double.h>.
27726 [declare_mgen_alias] (declare_mgen_alias): Define to use
27727 libm_alias_double.
27728 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27729 (M_LIBM_NEED_COMPAT): Remove macro.
27730 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27731 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27732 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27733 code.
27734 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27735 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27736 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27737 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27738 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27739 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27740 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27741 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27742 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27743 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27744 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27745 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27746 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27747 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27748 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27749 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27750 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27751 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27752 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27753 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27754 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27755 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27756 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27757 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27758 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27759 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27760 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27761 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27762 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27763 macro.
27764 (declare_mgen_alias): New macro.
27765 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27766 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27768 (M_LIBM_NEED_COMPAT): Remove macro.
27769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27770 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27771 <first-versions.h>.
27772 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27773 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27774
27775 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27776
27777 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27778 (declare_mgen_alias_2): Remove.
27779 * sysdeps/generic/math-type-macros-double.h
27780 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27781 Likewise.
27782 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27783 alias.
27784 (ldexp): Define with declare_mgen_alias.
27785 (scalbn): Likewise.
27786
27787 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27788
27789 * grp/initgroups.c: Include config.h.
27790 (DEFAULT_CONFIG): New macro.
27791 (internal_getgrouplist): Use DEFAULT_CONFIG.
27792 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27793 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27794 (DEFAULT_DEFCONFIG): New macro.
27795 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27796 * nss/grp-lookup.c: Include config.h
27797 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27798 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27799 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27800 * manual/nss.texi: Update default values section.
27801
27802 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27803
27804 [BZ #21967]
27805 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27806 New.
27807 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27808 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27809 Handle MathVec_Prefer_No_AVX512.
27810 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27811 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27812 is set.
27813
27814 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27815
27816 * posix/sched_primax.c (__sched_get_priority_max): Add
27817 libc_hidden_def.
27818 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27819 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27820 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27821 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27822 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27823 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27824 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27825 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27826 Add aliases.
27827
27828 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27829
27830 * sysdeps/generic/libm-alias-float.h: New file.
27831 * sysdeps/generic/math-type-macros-float.h: Include
27832 <libm-alias-float.h>.
27833 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27834
27835 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27836
27837 [BZ #22093]
27838 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27839 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27840 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27841 (HWCAP_IMPORTANT): Likewise.
27842 (HWCAP_X86_64): New enum.
27843 (HWCAP_X86_AVX512_1): Updated.
27844 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27845 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27846 (modules-names): Add x86_64/tst-x86_64mod-1.
27847 (LDFLAGS-tst-x86_64mod-1.so): New.
27848 ($(objpfx)tst-x86_64-1): Likewise.
27849 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27850 (tst-x86_64-1-clean): Likewise.
27851 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27852 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27853
27854 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27855
27856 * po/sv.po: Update translations.
27857 * po/fr.po: Likewise.
27858
27859 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27860
27861 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27862 seconds.
27863 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27864 seconds.
27865 * elf/rtld-Rules: Fix $(error) use.
27866
27867 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27868
27869 [BZ #14925]
27870 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27871 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27872 * localedata/locales/bn_BD: “Bengali” was still used in some
27873 comments. Change it to “Bangla”.
27874
27875 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27876
27877 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27878
27879 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27880
27881 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27882 thunderx2t99p1 to list of cpu names.
27883 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27884 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27885
27886 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27887
27888 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27889 Use strcmp instead of tunable_is_name.
27890
27891 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27892
27893 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27894 (F_GET_RW_HINT): New macro.
27895 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27896 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27897 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27898 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27899 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27900 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27901 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27902 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27903 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27904
27905 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27906 (F_ADD_SEALS): New macro.
27907 [__USE_GNU] (F_GET_SEALS): Likewise.
27908 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27909 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27910 [__USE_GNU] (F_SEAL_GROW): Likewise.
27911 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27912
27913 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27914
27915 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27916 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27917 * posix/glob_internal.h (__glob_pattern_type):
27918 * posix/glob.c (glob):
27919 * posix/glob_pattern_p.c (__glob_pattern_p):
27920 Use them.
27921
27922 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27923 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27924 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27925 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27926 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27928 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27929 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27930 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27931 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27932 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27933 * sysdeps/wordsize-64/glob.c: Likewise.
27934 * sysdeps/wordsize-64/glob64.c: Likewise.
27935 * sysdeps/wordsize-64/globfree.c: Likewise.
27936 * sysdeps/wordsize-64/globfree64.c: Likewise.
27937 * sysdeps/unix/sysv/linux/glob.c: New file.
27938 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27939 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27940 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27941 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27942 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27943 adds !GLOB_NO_OLD_VERSION as an extra condition.
27944 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27945 using relative path instead of absolute one.
27946 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27947 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27948 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27949 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27950 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27951 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27952
27953 [BZ #1062]
27954 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27955 (glob): Use the same scratch buffer for both getlogin_r and
27956 getpwnam_r. Don’t require preallocation of the login name. This
27957 simplifies storage allocation, and corrects the handling of
27958 long login names.
27959
27960 [BZ #1062]
27961 * posix/glob.c (glob): Port recent patches to platforms
27962 lacking getpwnam_r.
27963 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27964 returns an error number rather than setting errno.
27965
27966 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27967 instead of GCC extension.
27968 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27969 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27970 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27971
27972 [BZ #866]
27973 [BZ #1062]
27974 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27975 * posix/bug-glob1.c: Remove file.
27976 * posix/tst-glob_symlinks.c: New file.
27977 * posix/glob.c (__lstat64): New macro.
27978 (is_dir): New function.
27979 (glob, glob_in_dir): Match symlinks even if they are dangling.
27980 (link_stat, link_exists_p): Remove. All uses removed.
27981
27982 [BZ #1062]
27983 [BZ #19971]
27984 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27985 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27986 All uses removed.
27987
27988 [BZ #1062]
27989 CVE-2017-15671
27990 * posix/Makefile (routines): Add globfree, globfree64, and
27991 glob_pattern_p.
27992 * posix/flexmember.h: New file.
27993 * posix/glob_internal.h: Likewise.
27994 * posix/glob_pattern_p.c: Likewise.
27995 * posix/globfree.c: Likewise.
27996 * posix/globfree64.c: Likewise.
27997 * sysdeps/gnu/globfree64.c: Likewise.
27998 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27999 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28000 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28001 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28002 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28003 * sysdeps/wordsize-64/globfree.c: Likewise.
28004 * sysdeps/wordsize-64/globfree64.c: Likewise.
28005 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28006 [NDEBUG): Remove comments.
28007 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28008 (dirent_type): New type. Use uint_fast8_t not
28009 uint8_t, as C99 does not require uint8_t.
28010 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28011 (struct readdir_result): Use dirent_type. Do not define skip_entry
28012 unless it is needed; this saves a byte on platforms lacking d_ino.
28013 (readdir_result_type, readdir_result_skip_entry):
28014 New functions, replacing ...
28015 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28016 these functions, which were removed. This makes the callers
28017 easier to read. All callers changed.
28018 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28019 (size_add_wrapv, glob_use_alloca): New static functions.
28020 (glob, glob_in_dir): Check for size_t overflow in several places,
28021 and fix some size_t checks that were not quite right.
28022 Remove old code using SHELL since Bash no longer
28023 uses this.
28024 (glob, prefix_array): Separate MS code better.
28025 (glob_in_dir): Remove old Amiga and VMS code.
28026 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28027 separate files.
28028 (glob_in_dir): Do not rely on undefined behavior in accessing
28029 struct members beyond their bounds. Use a flexible array member
28030 instead
28031 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28032 0/1. Caller changed.
28033 (glob): Fix memory leaks.
28034 * posix/glob64 (globfree64): Move to separate file.
28035 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28036 (globfree64): Remove hidden alias.
28037 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28038 oldglob.
28039 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28040 separate file.
28041 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28042 define.
28043 Move compat code to separate file.
28044 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28045 separate file.
28046
28047 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28048
28049 * resolv/tst-resolv-qtypes.c (domain): Changed to
28050 "const char domain[] =".
28051
28052 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28053
28054 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28055 version to 3.1.6.
28056
28057 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28058 (TCP_MD5SIG_EXT): Likewise.
28059 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28060 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28061 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28062
28063 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28064
28065 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28066
28067 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28068
28069 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28070
28071 [BZ #22100]
28072 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28073
28074 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28075
28076 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28077 before assuming that the file is empty. Avoid testing buffer content
28078 when nread == 0.
28079
28080 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28081
28082 [BZ #18858]
28083 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28084 Remove define.
28085 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28086 Likewise.
28087 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28088 Likewise.
28089 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28090 Likewise.
28091 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28092 Likewise.
28093 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28094 Likewise.
28095 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28096 Likewise.
28097
28098 2017-09-06 Florian Weimer <fweimer@redhat.com>
28099
28100 * malloc/dynarray_emplace_enlarge.c
28101 (__libc_dynarray_emplace_enlarge): Add missing else.
28102
28103 2017-09-06 Florian Weimer <fweimer@redhat.com>
28104
28105 [BZ #22096]
28106 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28107 case of failure to obtain the global conf object.
28108
28109 2017-09-06 Florian Weimer <fweimer@redhat.com>
28110
28111 [BZ #22095]
28112 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28113 dynarray allocation failure.
28114
28115 2017-09-06 Florian Weimer <fweimer@redhat.com>
28116
28117 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28118 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28119 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28120 New functions.
28121 (response): Call them. Add 'p', '6' flag processing.
28122 (test_reverse): New function.
28123 (test_get2_any): Call it.
28124 (test_no_inet6): Add 'p' test.
28125 (test_inet6): Likewise.
28126
28127 2017-09-06 Florian Weimer <fweimer@redhat.com>
28128
28129 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28130 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28131 the QNAME.
28132 (test_gai): Adjust query names. Add additional tests.
28133 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28134 test_get2. Adjust query names. Add additional tests.
28135 (test_no_inet6): New function, extracted from threadfunc.
28136 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28137 Add additional tests.
28138
28139 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28140
28141 [BZ #22070]
28142 * localedata/unicode-gen/utf8_gen.py: Set the width for
28143 characters with Prepended_Concatenation_Mark property to 1
28144 * localedata/charmaps/UTF-8: Updated using the improved script.
28145
28146 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28147
28148 [BZ #21750]
28149 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28150 use the range notation for all ranges of neighbouring characters
28151 with the same width.
28152
28153 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28154
28155 * sysdeps/generic/math-type-macros-double.h: Include
28156 <math-svid-compat.h>.
28157 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28158 * sysdeps/generic/math-type-macros-float.h: Include
28159 <math-svid-compat.h>.
28160 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28161 * sysdeps/generic/math-type-macros-ldouble.h: Include
28162 <math-svid-compat.h>.
28163 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28164 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28165 condition.
28166 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28167 * math/w_acosf_compat.c: Likewise.
28168 * math/w_acosh_compat.c: Likewise.
28169 * math/w_acoshf_compat.c: Likewise.
28170 * math/w_acoshl_compat.c: Likewise.
28171 * math/w_acosl_compat.c: Likewise.
28172 * math/w_asin_compat.c: Likewise.
28173 * math/w_asinf_compat.c: Likewise.
28174 * math/w_asinl_compat.c: Likewise.
28175 * math/w_atan2_compat.c: Likewise.
28176 * math/w_atan2f_compat.c: Likewise.
28177 * math/w_atan2l_compat.c: Likewise.
28178 * math/w_atanh_compat.c: Likewise.
28179 * math/w_atanhf_compat.c: Likewise.
28180 * math/w_atanhl_compat.c: Likewise.
28181 * math/w_cosh_compat.c: Likewise.
28182 * math/w_coshf_compat.c: Likewise.
28183 * math/w_coshl_compat.c: Likewise.
28184 * math/w_exp10_compat.c: Likewise.
28185 * math/w_exp10f_compat.c: Likewise.
28186 * math/w_exp10l_compat.c: Likewise.
28187 * math/w_exp2_compat.c: Likewise.
28188 * math/w_exp2f_compat.c: Likewise.
28189 * math/w_exp2l_compat.c: Likewise.
28190 * math/w_fmod_compat.c: Likewise.
28191 * math/w_fmodf_compat.c: Likewise.
28192 * math/w_fmodl_compat.c: Likewise.
28193 * math/w_hypot_compat.c: Likewise.
28194 * math/w_hypotf_compat.c: Likewise.
28195 * math/w_hypotl_compat.c: Likewise.
28196 * math/w_j0_compat.c: Likewise.
28197 * math/w_j0f_compat.c: Likewise.
28198 * math/w_j0l_compat.c: Likewise.
28199 * math/w_j1_compat.c: Likewise.
28200 * math/w_j1f_compat.c: Likewise.
28201 * math/w_j1l_compat.c: Likewise.
28202 * math/w_jn_compat.c: Likewise.
28203 * math/w_jnf_compat.c: Likewise.
28204 * math/w_jnl_compat.c: Likewise.
28205 * math/w_lgamma_r_compat.c: Likewise.
28206 * math/w_lgammaf_r_compat.c: Likewise.
28207 * math/w_lgammal_r_compat.c: Likewise.
28208 * math/w_log10_compat.c: Likewise.
28209 * math/w_log10f_compat.c: Likewise.
28210 * math/w_log10l_compat.c: Likewise.
28211 * math/w_log2_compat.c: Likewise.
28212 * math/w_log2f_compat.c: Likewise.
28213 * math/w_log2l_compat.c: Likewise.
28214 * math/w_log_compat.c: Likewise.
28215 * math/w_logf_compat.c: Likewise.
28216 * math/w_logl_compat.c: Likewise.
28217 * math/w_pow_compat.c: Likewise.
28218 * math/w_powf_compat.c: Likewise.
28219 * math/w_powl_compat.c: Likewise.
28220 * math/w_remainder_compat.c: Likewise.
28221 * math/w_remainderf_compat.c: Likewise.
28222 * math/w_remainderl_compat.c: Likewise.
28223 * math/w_sinh_compat.c: Likewise.
28224 * math/w_sinhf_compat.c: Likewise.
28225 * math/w_sinhl_compat.c: Likewise.
28226 * math/w_sqrt_compat.c: Likewise.
28227 * math/w_sqrtf_compat.c: Likewise.
28228 * math/w_sqrtl_compat.c: Likewise.
28229 * math/w_tgamma_compat.c: Likewise.
28230 * math/w_tgammaf_compat.c: Likewise.
28231 * math/w_tgammal_compat.c: Likewise.
28232 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28233 [LIBM_SVID_COMPAT].
28234 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28235 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28236 [LIBM_SVID_COMPAT].
28237 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28238 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28239 [LIBM_SVID_COMPAT].
28240 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28241 * sysdeps/i386/fpu/w_sqrt.c: New file.
28242 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28243 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28244 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28245 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28246 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28247 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28248 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28249 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28250 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28251 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28252 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28253 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28254 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28255 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28256 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28257 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28258 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28259 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28260 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28261 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28262 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28263 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28264 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28265 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28266 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28267 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28268 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28269 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28270 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28271 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28272 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28273 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28274 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28275 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28276 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28277 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28278 * sysdeps/ia64/fpu/w_log.c: Likewise.
28279 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28280 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28281 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28282 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28283 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28284 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28285 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28286 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28287 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28288 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28289 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28290 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28291 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28292 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28293 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28294 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28295 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28296 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28297 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28298 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28299 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28300 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28301 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28302 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28303 [LIBM_SVID_COMPAT].
28304 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28305 * sysdeps/ieee754/k_standard.c: Likewise.
28306 * sysdeps/ieee754/k_standardf.c: Likewise.
28307 * sysdeps/ieee754/k_standardl.c: Likewise.
28308 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28309 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28310 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28311 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28312 long_double_symbol call on [LIBM_SVID_COMPAT].
28313 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28314 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28316 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28319 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28323 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28324 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28325 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28326 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28327 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28328 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28329 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28330 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28331 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28332 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28333 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28334 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28335
28336 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28337
28338 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28339 * malloc/tst-mallocstate.c: Convert from test-skeleton
28340 to test-driver. Ifdef code using TEST_COMPAT macro.
28341 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28342 * math/test-matherr.c: Likewise.
28343
28344 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28345
28346 [BZ #22086]
28347 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28348 comparing word with byte-swapped constant.
28349
28350 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28351
28352 [BZ #20498]
28353 * locale/iso-639.def: add Miskito.
28354 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28355 * localedata/locales/miq_NI: New file.
28356
28357 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28358
28359 [BZ #18822]
28360 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28361 (__mkdir): Likewise.
28362 * io/chmod.c (__chmod): Add libc_hidden_def.
28363 * io/mkdir.c (__mkdir): Likewise.
28364 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28365 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28366 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28367 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28368
28369 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28370
28371 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28372 version to 4.13.
28373
28374 [BZ #22082]
28375 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28376 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28377
28378 2017-09-04 Florian Weimer <fweimer@redhat.com>
28379
28380 * math/math.h: Issue warning if log is defined.
28381
28382 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28383
28384 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28385 kernel version to 4.13.
28386
28387 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28388
28389 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28390 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28391 parameter.
28392 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28393 just <bits/types.h>.
28394 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28395 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28396 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28397 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28398 * misc/preadv2.c: Include <errno.h>.
28399 * misc/preadv64v2.c: Include <errno.h>.
28400 * misc/pwritev2.c: Include <errno.h>.
28401 * misc/pwritev64v2.c: Include <errno.h>.
28402 * sysdeps/posix/preadv2.c: Include <errno.h>.
28403 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28404 Fix <unistd.h> inclusion.
28405 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28406 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28407 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28408 __strtoul_internal): New functions.
28409 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28410 * sysdeps/posix/system.c: Include <sigsetops.h>.
28411 * sysdeps/mach/hurd/i386/Makefile
28412 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28413 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28414 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28415 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28416 __feraiseexcept_renamed to feraiseexcept instead of
28417 __GI_feraiseexcept.
28418 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28419 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28420 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28421 RWF_NOWAIT): Define to 0 if undefined already.
28422 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28423 boils down to 0.
28424 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28425 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28426
28427 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28428
28429 * manual/math.texi (pow10): Do not document.
28430 (pow10f): Likewise.
28431 (pow10l): Likewise.
28432 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28433 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28434 * math/libm-test-exp10.inc (pow10_test): Remove.
28435 (do_test): Do not call pow10.
28436 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28437 [NO_LONG_DOUBLE] (pow10l): Likewise.
28438 * math/w_exp10f_compat.c (pow10f): Likewise.
28439 * math/w_exp10l_compat.c (pow10l): Likewise.
28440 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28441 (pow10): Make into compat symbol.
28442 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28443 (pow10f): Make into compat symbol.
28444 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28445 (pow10l): Make into compat symbol.
28446 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28447 pow10.
28448 (CFLAGS-nldbl-pow10.c): Remove variable..
28449 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28450 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28451 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28452 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28453 Undefine and redefine.
28454 (pow10l): Make into compat symbol.
28455 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28456 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28457 * sysdeps/arm/libm-test-ulps: Likewise.
28458 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28459 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28460 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28461 * sysdeps/microblaze/libm-test-ulps: Likewise.
28462 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28463 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28464 * sysdeps/nios2/libm-test-ulps: Likewise.
28465 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28466 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28467 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28468 * sysdeps/sh/libm-test-ulps: Likewise.
28469 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28470 * sysdeps/tile/libm-test-ulps: Likewise.
28471 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28472
28473 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28474
28475 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28476
28477 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28478
28479 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28480 "../ChangeLog.old/ChangeLog.8".
28481 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28482 "../ChangeLog.old/ChangeLog.14".
28483
28484 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28485
28486 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28487 Threads Library.
28488
28489 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28490
28491 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28492
28493 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28494
28495 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28496 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28497
28498 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28499
28500 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28501 32 atexit handlers.
28502
28503 2017-09-01 Zack Weinberg <zackw@panix.com>
28504
28505 * math/math.h (HUGE_VAL): Improve commentary.
28506
28507 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28508 Andreas Schwab <schwab@suse.de>
28509
28510 [BZ #21530]
28511 * include/stdio.h (__gen_tempfd): New function.
28512 * stdio-common/Makefile (routines): Add gentempfd.
28513 * stdio-common/gentempfd.c: New file.
28514 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28515 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28516 unnamed file first.
28517
28518 2017-09-01 Florian Weimer <fweimer@redhat.com>
28519
28520 [BZ #21915]
28521 [BZ #21922]
28522 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28523 result to determine success or failure, not the errno value.
28524 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28525 (tst-nss-files-hosts-erange): Link with -ldl.
28526 * nss/tst-nss-files-hosts-erange.c: New file.
28527 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28528 (do_test): Add NO_DATA tests.
28529 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28530 (do_test): Call it.
28531
28532 2017-09-01 Florian Weimer <fweimer@redhat.com>
28533
28534 [BZ #21922]
28535 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28536 coming from gethostbyname2_r.
28537
28538 2017-09-01 Florian Weimer <fweimer@redhat.com>
28539
28540 * support/namespace.h (struct support_chroot_configuration): Add
28541 hosts, host_conf.
28542 (struct support_chroot): Add path_hosts, path_host_conf.
28543 * support/support_chroot.c (write_file): New function.
28544 (support_chroot_create): Call it to process /etc/resolv.conf,
28545 /etc/hosts, /etc/host.conf.
28546 (support_chroot_free): Update.
28547
28548 2017-09-01 Florian Weimer <fweimer@redhat.com>
28549
28550 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28551 status indicates it is set.
28552
28553 2017-09-01 Florian Weimer <fweimer@redhat.com>
28554
28555 [BZ #20532]
28556 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28557 function lookup failures more reliable.
28558
28559 2017-09-01 Florian Weimer <fweimer@redhat.com>
28560
28561 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28562 (getcanonname): Likewise.
28563 (gaih_inet): Likewise.
28564
28565 2017-09-01 Florian Weimer <fweimer@redhat.com>
28566
28567 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28568 (getcanonname): Likewise.
28569 (gaih_inet): Likewise.
28570
28571 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28572 Richard Henderson <rth@twiddle.net>
28573
28574 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28575 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28576 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28577 (IREG_SIZE, OREG_SIZE): New macros.
28578 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28579 (IREG_SIZE, OREG_SIZE): New macros.
28580 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28581 (IREG_SIZE): New macro.
28582 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28583 (IREG_SIZE): New macro.
28584 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28585 New includes.
28586 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28587 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28588 (__CONCATX): Handle exceptions correctly on large values that may
28589 set FE_INVALID.
28590 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28591 Initialize if not already set.
28592 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28593
28594 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28595
28596 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28597 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28598 Likewise.
28599 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28600 Likewise.
28601 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28602 Likewise.
28603 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28604 Likewise.
28605 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28606 Likewise.
28607 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28608 Likewise.
28609 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28610 Likewise.
28611 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28612 (NO_CANCELLATION): Likewise.
28613 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28614 Likewise.
28615 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28616 Likewise.
28617 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28618 Likewise.
28619 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28620 (NO_CANCELLATION): Likewise.
28621 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28622 (NO_CANCELLATION): Likewise.
28623 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28624 Likewise
28625 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28626 Likewise.
28627 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28628 Likewise.
28629 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28630 Likewise.
28631 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28632 hidden prototype.
28633 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28634 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28635
28636 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28637
28638 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28639 in resolver call.
28640
28641 2017-08-31 Florian Weimer <fweimer@redhat.com>
28642
28643 * include/libc-symbols.h (internal_function): Remove.
28644
28645 2017-08-31 Florian Weimer <fweimer@redhat.com>
28646
28647 * stdlib/fmtmsg.c (internal_addseverity): Remove
28648 internal_function.
28649
28650 2017-08-31 Florian Weimer <fweimer@redhat.com>
28651
28652 * stdio-common/printf_fp.c (group_number): Remove
28653 internal_function.
28654 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28655
28656 2017-08-31 Florian Weimer <fweimer@redhat.com>
28657
28658 * posix/fnmatch.c (internal_function): Remove definition.
28659 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28660 * posix/regcomp.c (peek_token, init_word_char)
28661 (duplicate_node_closure, fetch_token, peek_token)
28662 (peek_token_bracket, build_range_exp, build_collating_symbol):
28663 Likewise.
28664 * posix/regex_internal.c (re_string_construct_common)
28665 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28666 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28667 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28668 (re_string_translate_buffer, re_string_reconstruct)
28669 (re_string_peek_byte_case, re_string_fetch_byte_case)
28670 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28671 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28672 (re_node_set_add_intersect, re_node_set_init_union)
28673 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28674 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28675 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28676 (re_acquire_state_context): Likewise.
28677 * posix/regex_internal.h (internal_function): Remove definition.
28678 (re_string_realloc_buffers, build_wcs_buffer)
28679 (build_wcs_upper_buffer, build_upper_buffer)
28680 (re_string_translate_buffer, re_string_context_at)
28681 (re_string_char_size_at, re_string_wchar_at)
28682 (re_string_elem_size_at): Likewise.
28683 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28684 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28685 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28686 (re_search_internal, re_search_2_stub, re_search_stub)
28687 (re_copy_regs, prune_impossible_nodes, check_matching)
28688 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28689 (free_fail_stack_return, sift_states_iter_mb)
28690 (sift_states_backward, build_sifted_states)
28691 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28692 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28693 (check_subexp_limits, sift_states_bkref, merge_state_array)
28694 (find_recover_state, transit_state, merge_state_with_log)
28695 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28696 (transit_state_mb, transit_state_bkref, get_subexp)
28697 (get_subexp_sub, find_subexp_node, check_arrival)
28698 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28699 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28700 (check_node_accept_bytes, find_collation_sequence_value)
28701 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28702 (acquire_init_state_context, check_halt_node_context)
28703 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28704 (sub_epsilon_src_nodes): Likewise.
28705 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28706 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28707 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28708 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28709 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28710 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28711 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28712 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28713 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28714 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28715 (PREADV): Likewise.
28716 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28717 (PREADV): Likewise.
28718 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28719 (PWRITEV): Likewise.
28720 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28721 (PWRITEV): Likewise.
28722 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28723 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28724
28725 2017-08-31 Florian Weimer <fweimer@redhat.com>
28726
28727 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28728 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28729 Remove internal_function.
28730 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28731 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28732 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28733 (__deallocate_stack, __libc_pthread_init)
28734 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28735 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28736 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28737 Likewise.
28738 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28739 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28740 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28741 Likewise.
28742 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28743 (__pthread_mutex_unlock_usercnt): Likewise.
28744
28745 2017-08-31 Florian Weimer <fweimer@redhat.com>
28746
28747 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28748 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28749 (fts_safe_changedir): Remove internal_function.
28750 * io/ftw.c (internal_function): Remove definition.
28751 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28752
28753 2017-08-31 Florian Weimer <fweimer@redhat.com>
28754
28755 * inet/deadline.c (__deadline_current_time)
28756 (__deadline_from_timeval, __deadline_to_ms): Remove
28757 internal_function.
28758 * inet/getnameinfo.c (nrl_domainname): Likewise.
28759 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28760 * inet/inet6_option.c (add_pad): Likewise.
28761 * inet/net-internal.h (__deadline_current_time)
28762 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28763 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28764 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28765 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28766
28767 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28768
28769 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28770 include <bits/nan.h>.
28771 * math/Makefile (headers): Remove bits/nan.h.
28772 * bits/nan.h: Remove.
28773 * sysdeps/ieee754/bits/nan.h: Likewise.
28774 * sysdeps/mips/bits/nan.h: Likewise.
28775
28776 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28777 not include <bits/inf.h>.
28778 * math/Makefile (headers): Remove bits/inf.h.
28779 * bits/inf.h: Remove.
28780 * sysdeps/ieee754/bits/inf.h: Likewise.
28781
28782 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28783 bits/huge_vall.h or bits/huge_val_flt128.h.
28784 (HUGE_VAL): Define directly here.
28785 [__USE_ISOC99] (HUGE_VALF): Likewise.
28786 [__USE_ISOC99] (HUGE_VALL): Likewise.
28787 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28788 (HUGE_VAL_F128): Likewise.
28789 * math/Makefile (headers): Remove bits/huge_val.h,
28790 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28791 * bits/huge_val.h: Remove.
28792 * bits/huge_val_flt128.h: Likewise.
28793 * bits/huge_valf.h: Likewise.
28794 * bits/huge_vall.h: Likewise.
28795 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28796 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28797 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28798 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28799 * sysdeps/sh/bits/huge_val.h: Likewise.
28800 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28801 * sysdeps/x86/bits/huge_vall.h: Likewise.
28802
28803 2017-08-31 Florian Weimer <fweimer@redhat.com>
28804
28805 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28806 internal_function.
28807 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28808 Likewise.
28809 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28810 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28811 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28812 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28813 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28814 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28815 * elf/dl-libc.c (dlerror_run): Likewise.
28816 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28817 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28818 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28819 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28820 Likewise.
28821 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28822 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28823 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28824 * elf/dl-profile.c (_dl_start_profile): Likewise.
28825 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28826 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28827 Likewise.
28828 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28829 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28830 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28831 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28832 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28833 (_dl_allocate_tls_storage): Likewise.
28834 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28835 (_dl_check_all_versions): Likewise.
28836 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28837 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28838 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28839 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28840 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28841 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28842 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28843 internal_function from __dl_start.
28844 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28845 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28846 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28847 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28848 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28849 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28850 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28851 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28852 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28853 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28854 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28855 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28856 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28857 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28858 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28859 Likewise.
28860 (struct rtld_global_ro): Remove internal_function from the
28861 _dl_lookup_symbol_x member.
28862 (_dl_symbol_value): Remove. No longer defined anywhere.
28863 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28864 internal_function.
28865 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28866 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28867 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28868 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28869 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28870 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28871 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28872 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28873 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28874 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28875 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28876 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28877
28878 2017-08-31 Florian Weimer <fweimer@redhat.com>
28879
28880 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28881 Remove internal_function.
28882 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28883 Likewise.
28884 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28885 Likewise.
28886
28887 2017-08-31 Florian Weimer <fweimer@redhat.com>
28888
28889 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28890 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28891 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28892
28893 2017-08-31 Florian Weimer <fweimer@redhat.com>
28894
28895 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28896 (__gai_enqueue_request): Remove internal_function.
28897 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28898 (__gai_remove_request, __gai_notify, __gai_notify_only)
28899 (__gai_sigqueue): Likewise.
28900 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28901 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28902 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28903 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28904 Likewise.
28905
28906 2017-08-31 Florian Weimer <fweimer@redhat.com>
28907
28908 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28909 * include/dirent.h (__opendirat, __getdents, __getdents64)
28910 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28911 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28912 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28913 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28914 Likewise.
28915 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28916
28917 2017-08-31 Florian Weimer <fweimer@redhat.com>
28918
28919 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28920 internal_function.
28921 (GETCWD_RETURN_TYPE): Likewise.
28922
28923 2017-08-31 Florian Weimer <fweimer@redhat.com>
28924
28925 * include/time.h (__tz_compute, __strptime_internal): Remove
28926 internal_function.
28927 * time/strptime_l.c (__strptime_internal): Likewise.
28928 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28929
28930 2017-08-31 Florian Weimer <fweimer@redhat.com>
28931
28932 * iconv/gconv.c (__gconv): Remove internal_function.
28933 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28934 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28935 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28936 (__gconv_release_cache): Likewise.
28937 * iconv/gconv_close.c (__gconv_close): Likewise.
28938 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28939 (read_conf_file, __gconv_get_path): Likewise.
28940 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28941 (__gconv_release_step, gen_steps, increment_counter)
28942 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28943 (__gconv_close_transform, free_modules_db): Likewise.
28944 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28945 Likewise.
28946 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28947 (__gconv_find_transform, __gconv_lookup_cache)
28948 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28949 (__gconv_close_transform, __gconv_release_cache)
28950 (__gconv_loaded_object, __gconv_release_shlib)
28951 (__gconv_compare_alias): Likewise.
28952 * iconv/gconv_open.c (__gconv_open): Likewise.
28953 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28954 * iconv/iconvconfig.c (add_module): Likewise.
28955 * intl/dcigettext.c (plural_lookup, guess_category_value)
28956 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28957 * intl/eval-plural.h (plural_eval): Likewise.
28958 * intl/finddomain.c (_nl_find_domain): Likewise.
28959 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28960 (_nl_load_domain, _nl_find_msg): Likewise.
28961 (internal_function): Remove definition.
28962 * intl/loadinfo.h (internal_function): Likewise.
28963 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28964 internal_function.
28965 * intl/localealias.c (internal_function): Remove definition.
28966 (read_alias_file): Remove internal_function.
28967 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28968 * intl/plural-exp.h (internal_function): Remove definition.
28969 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28970 internal_function.
28971 * intl/plural.c: Regenerate.
28972 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28973 * locale/coll-lookup.c (__collidx_table_lookup)
28974 (__collseq_table_lookup): Likewise.
28975 * locale/coll-lookup.h (__collidx_table_lookup)
28976 (__collseq_table_lookup): Likewise.
28977 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28978 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28979 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28980 (_nl_unload_locale): Likewise.
28981 * locale/localeinfo.h (struct __locale_data): Remove
28982 internal_function from cleanup member.
28983 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28984 (_nl_remove_locale, _nl_load_locale_from_archive)
28985 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28986 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28987 (_nl_cleanup_time): Remove internal_function.
28988 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28989 (_nl_parse_alt_digit): Likewise.
28990 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28991 (_nl_select_era_entry): Likewise.
28992 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28993 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28994 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28995 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28996 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28997
28998 2017-08-31 Florian Weimer <fweimer@redhat.com>
28999
29000 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29001 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29002 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29003 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29004 Likewise.
29005 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29006 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29007 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29008 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29009 Likewise.
29010 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29011
29012 2017-08-31 Florian Weimer <fweimer@redhat.com>
29013
29014 * misc/getttyent.c (skip, value): Remove internal_function.
29015 * misc/syslog.c (openlog_internal): Likewise.
29016 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29017
29018 2017-08-31 Florian Weimer <fweimer@redhat.com>
29019
29020 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29021 (__nss_rewrite_field): Remove internal_function.
29022 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29023 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29024 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29025 * nss/nsswitch.c (nss_parse_file, nss_getline)
29026 (nss_parse_service_list, nss_new_service): Likewise.
29027 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29028 * nss/valid_field.c (__nss_valid_field): Likewise.
29029 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29030
29031 2017-08-31 Florian Weimer <fweimer@redhat.com>
29032
29033 * malloc/arena.c (__malloc_fork_lock_parent)
29034 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29035 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29036 internal_function from defintions.
29037 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29038 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29039 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29040 internal_function from declarations.
29041 * malloc/malloc.c (internal_function): Do not define.
29042 (mem2mem_check): Remove internal_function from declaration.
29043 (munmap_chunk, mremap_chunk): Remove internal_function.
29044 * malloc/mtrace.c (tr_where): Likewise.
29045
29046 2017-08-31 Florian Weimer <fweimer@redhat.com>
29047
29048 * include/rpc/pmap_clnt.h (__get_socket): Remove
29049 internal_function.
29050 * sunrpc/auth_des.c (synchronize): Likewise.
29051 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29052 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29053 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29054 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29055 (key_call): Likewise.
29056 * sunrpc/pm_getport.c (__get_socket): Likewise.
29057 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29058 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29059 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29060 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29061 (invalidate): Likewise.
29062 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29063 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29064 (set_input_fragment, get_input_bytes): Likewise.
29065
29066 2017-08-31 Florian Weimer <fweimer@redhat.com>
29067
29068 * malloc/malloc.c (_int_free): Remove locked variable and related
29069 asserts.
29070
29071 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29072
29073 [BZ #22051]
29074 * Makerules (build-module-helper-objlist): Filter out
29075 $(elf-objpfx)sofini.os.
29076 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29077 needed.
29078
29079 2017-08-31 Florian Weimer <fweimer@redhat.com>
29080
29081 * libio/fcloseall.c: Assume weak_alias is defined.
29082 * libio/feof.c: Likewise.
29083 * libio/fileno.c: Likewise.
29084 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29085 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29086 definitions.
29087 (_IO_file_open): Call __open directly.
29088 (_IO_new_file_sync): Assume ESPIPE is defined.
29089 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29090 (_IO_new_file_write): Call __write directly.
29091 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29092 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29093 * libio/genops.c: Assume _LIBC is defined.
29094 (save_for_backup): Remove internal_function.
29095 * libio/getc.c: Assume weak_alias is defined.
29096 * libio/getwc.c: Likewise.
29097 * libio/iofclose.c: Assume _LIBC is defined.
29098 * libio/iofdopen.c: Likewise.
29099 (_IO_fcntl): Remove macro definition.
29100 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29101 Call __fcntl directly.
29102 * libio/iofflush.c: Assume weak_alias is defined.
29103 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29104 defined.
29105 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29106 * libio/iofgets.c: Likewise.
29107 * libio/iofopen.c: Assume _LIBC is defined.
29108 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29109 * libio/iofputs.c: Assume weak_alias is defined.
29110 * libio/iofread.c: Likewise.
29111 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29112 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29113 * libio/ioftell.c: Assume weak_alias is defined.
29114 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29115 * libio/iofwide.c: Assume _LIBC is defined.
29116 (_IO_fwide): Drop SHARED conditional because it is implied by
29117 SHLIB_COMPAT.
29118 * libio/iofwrite.c: Assume weak_alias is defined.
29119 * libio/iogetdelim.c: Likewise.
29120 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29121 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29122 (_IO_getwline): Call __wmemcpy directly.
29123 * libio/iopopen.c: Assume _LIBC is defined.
29124 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29125 (_IO_close): Remove macro definitions.
29126 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29127 _exit directly.
29128 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29129 directly.
29130 * libio/ioputs.c: Assume weak_alias is defined.
29131 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29132 * libio/iosetbuffer.c: Assume weak_alias is defined.
29133 * libio/iosetvbuf.c: Likewise.
29134 * libio/ioungetc.c: Likewise.
29135 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29136 libc_hidden_def, libc_hidden_weak, NULL are defined.
29137 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29138 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29139 defined.
29140 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29141 definitions.
29142 (_IO_old_file_init_internal): Drop SHARED conditional because it
29143 is implied by SHLIB_COMPAT.
29144 (_IO_old_file_fopen): Call __open directly.
29145 (_IO_old_file_sync): Assume ESPIPE is defined.
29146 (_IO_old_file_write): Call __write directly.
29147 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29148 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29149 Call __fcntl directly.
29150 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29151 (_IO_old_fgetpos): Assume EIO is defined.
29152 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29153 (_IO_old_fgetpos64): Assume EIO is defined.
29154 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29155 (_IO_old_fsetpos): Assume EIO is defined.
29156 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29157 (_IO_old_fsetpos64): Assume EIO is defined.
29158 * libio/oldiopopen.c: Assume _LIBC is defined.
29159 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29160 (_IO_close): Remove macro definitions.
29161 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29162 directly.
29163 (_IO_old_proc_close): Call __close, __waitpid directly.
29164 * libio/put.c: Assume weak_alias is defined.
29165 * libio/stdfiles.c: Assume _LIBC is defined.
29166 * libio/stdio.c: Likewise.
29167 * libio/wfileops.c: Likewise.
29168 (_IO_wfile_sync): Assume ESPIPE is defined.
29169 * libio/wgenops.c: Assume _LIBC is defined.
29170 (save_for_wbackup): Remove internal_function.
29171
29172 2017-08-31 Florian Weimer <fweimer@redhat.com>
29173
29174 * malloc/malloc.c (top_check): Change return type to void. Remove
29175 internal_function.
29176 * malloc/hooks.c (top_check): Likewise.
29177 (malloc_check, realloc_check, memalign_check): Adjust.
29178
29179 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29180
29181 [BZ #21457]
29182 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29183 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29184 sigcontext and namespace requirements.
29185 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29186 * sysdeps/m68k/sys/ucontext.h: Likewise.
29187 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29188 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29189 <bits/sigcontext.h>.
29190 (__ctx): Define earlier.
29191 (mcontext_t): Define structure contents rather than using struct
29192 sigcontext.
29193 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29194 __glibc_reserved1 instead of __reserved.
29195 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29196 <bits/sigcontext.h>.
29197 (__ctx): Define earlier.
29198 (mcontext_t): Define structure contents rather than using struct
29199 sigcontext.
29200 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29201 mcontext_t instead of struct sigcontext.
29202 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29203 <bits/sigcontext.h>.
29204 (__ctx): Define earlier.
29205 (mcontext_t): Define structure contents rather than using struct
29206 sigcontext.
29207 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29208 <bits/sigcontext.h>.
29209 (__ctx): Define earlier.
29210 (mcontext_t): Define structure contents rather than using struct
29211 sigcontext.
29212 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29213 mcontext_t instead of struct sigcontext.
29214 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29215 mcontext_t instead of struct sigcontext.
29216 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29217 <bits/sigcontext.h>.
29218 (__ctx): New macro.
29219 (struct __ia64_fpreg_mcontext): New type.
29220 (mcontext_t): Define structure contents rather than using struct
29221 sigcontext.
29222 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29223 (uc_sigmask): Define using __ctx.
29224 (uc_stack): Likewise.
29225 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29226 <bits/sigcontext.h>.
29227 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29228 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29229 <bits/sigcontext.h>.
29230 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29231 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29232 <bits/sigcontext.h>.
29233 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29234 <bits/sigcontext.h>.
29235 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29236 <bits/sigcontext.h>.
29237 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29238 <bits/sigcontext.h>.
29239 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29240 <bits/sigcontext.h>.
29241 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29242 <bits/sigcontext.h>.
29243 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29244 <bits/sigcontext.h>.
29245 (__ctx): Define earlier.
29246 (mcontext_t): Define structure contents rather than using struct
29247 sigcontext.
29248 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29249 <bits/sigcontext.h>. Include <bits/types.h>.
29250 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29251 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29252 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29253 (test-xfail-UNIX98/signal.h/conform): Likewise.
29254 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29255 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29256 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29257 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29258 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29259 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29260 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29261 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29262 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29263
29264 2017-08-30 Florian Weimer <fweimer@redhat.com>
29265
29266 * malloc/dynarray_emplace_enlarge.c
29267 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29268 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29269 * malloc/tst-dynarray.c (test_long_overflow): New function.
29270 (do_test): Call it.
29271
29272 2017-08-30 Florian Weimer <fweimer@redhat.com>
29273
29274 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29275 (set_arena_corrupt): Remove definitions.
29276 (mtrim): Do not check for corrupt arena.
29277 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29278 Likewise.
29279
29280 2017-08-30 Florian Weimer <fweimer@redhat.com>
29281
29282 [BZ #21754]
29283 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29284 check_action.
29285 (ptmalloc_init): Do not set or use check_action.
29286 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29287 call to malloc_printerr. Remove return statement.
29288 (free_check): Likewise. Remove arena unlock.
29289 (top_check): Update comment. Adjust call to malloc_printerr.
29290 Remove heap repair code.
29291 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29292 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29293 (sysmalloc): Adjust call to malloc_printerr.
29294 (munmap_chunk, __libc_realloc): Likewise. Remove return
29295 statement.
29296 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29297 Remove errout label and corresponding gotos.
29298 (_int_free): Likewise. Remove arena unlock.
29299 (do_set_mallopt_check): Do not set check_action.
29300 (malloc_printerr): Adjust parameter list. Do not mark arena as
29301 corrupt.
29302 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29303 comment.
29304 * manual/probes.texi (Memory Allocation Probes): Remove
29305 memory_mallopt_check_action.
29306
29307 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29308
29309 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29310 Use pointer to uint64_t instead of long int for sp.
29311
29312 2017-08-30 Florian Weimer <fweimer@redhat.com>
29313
29314 [BZ #21754]
29315 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29316 without printing a backtrace. Do not leak any information in the
29317 error message.
29318 * manual/memory.texi (Heap Consistency Checking): Update.
29319 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29320
29321 2017-08-30 Florian Weimer <fweimer@redhat.com>
29322
29323 Do not scale NPTL tests with available number of CPUs.
29324 * nptl/tst-cond16.c (count): Set to constant value of 8.
29325 * nptl/tst-cond18.c (count): Likewise.
29326
29327 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29328
29329 [BZ #22035]
29330 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29331 Define to take a second argument that is a macro that
29332 concatentates a suffix, not the suffix itself.
29333 (__CONCAT_d): New macro.
29334 (__CONCAT_f): Likewise.
29335 (__CONCAT_l): Likewise.
29336
29337 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29338
29339 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29340 by child.
29341
29342 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29343 Aurelien Jarno <aurelien@aurel32.net>
29344 Maciej W. Rozycki <macro@imgtec.com>
29345
29346 [BZ #21956]
29347 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29348 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29349 `mips16-syscall6' and `mips16-syscall7'.
29350 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29351 (CFLAGS-mips16-syscall7.c): Remove.
29352 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29353 Remove `__mips16_syscall5', `__mips16_syscall6' and
29354 `__mips16_syscall7'.
29355 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29356 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29357 `__mips_syscall_return'.
29358 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29359 (__mips16_syscall1): Likewise.
29360 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29361 (__mips16_syscall2): Likewise.
29362 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29363 (__mips16_syscall3): Likewise.
29364 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29365 (__mips16_syscall4): Likewise.
29366 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29367 Remove.
29368 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29369 Remove.
29370 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29371 Remove.
29372 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29373 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29374 `__mips16_syscall5'. Remove prototype.
29375 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29376 `__mips16_syscall6'. Remove prototype.
29377 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29378 `__mips16_syscall7'. Remove prototype.
29379 (__nomips16, __mips16_syscall_return): Move to...
29380 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29381 (__nomips16, __mips_syscall_return): ... here.
29382 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29383 `__mips16_syscall_return' to `__mips_syscall_return'.
29384 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29385 `internal_syscall##nr'.
29386 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29387 `internal_syscall##nr'.
29388 (FORCE_FRAME_POINTER): Remove.
29389 (__mips_syscall5): New prototype.
29390 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29391 (__mips_syscall6): New prototype.
29392 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29393 (__mips_syscall7): New prototype.
29394 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29395 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29396 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29397 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29398 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29399 (sysdep_routines): Add libc-do-syscall.
29400 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29401 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29402
29403 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29404
29405 [BZ #21672]
29406 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29407 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29408 (advise_stack_range): New function.
29409 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29410 stack non required to advise_stack_range at allocatestack.c
29411
29412 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29413
29414 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29415
29416 2017-08-29 Florian Weimer <fweimer@redhat.com>
29417
29418 [BZ #22026]
29419 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29420 __end_fct. Mangle __end_fct after setting it to NULL.
29421 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29422 (modules-names, modules-names-tests): Add
29423 tst-gconv-init-failure-mod.
29424 (gconv-modules): New target.
29425 (tst-gconv-init-failure-mod.so): Link against libsupport.
29426 (tst-gconv-init-failure): Depend on gconv-modules,
29427 tst-gconv-init-failure-mod.so.
29428 * iconv/tst-gconv-init-failure-mod.c: New file.
29429 * iconv/tst-gconv-init-failure.c: Likewise.
29430 * iconv/test-gconv-modules: Likewise.
29431
29432 2017-08-29 Florian Weimer <fweimer@redhat.com>
29433
29434 [BZ #22025]
29435 * iconv/gconv_db.c (free_derivation): Remove redundant
29436 parentheses.
29437 (gen_steps): Unconditionally mangle __btowc_fct after
29438 initialization.
29439 (increment_counter): Likewise. Do not call init_fct for internal
29440 modules.
29441
29442 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29443
29444 [BZ #22028]
29445 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29446 (_MSUF_): Remove macro.
29447 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29448 Likewise.
29449 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29450 (__REDIRFROM_X): New macro.
29451 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29452 Likewise.
29453 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29454 (__REDIRTO_X): Likewise.
29455 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29456 arguments.
29457 (__MATH_REDIRCALL_2): Likewise.
29458 (__MATH_REDIRCALL_INTERNAL): Likewise.
29459 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29460 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29461 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29462 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29463 * math/test-finite-macros.c: New file.
29464 * math/Makefile (tests): Add test-finite-macros.
29465 (CFLAGS-test-finite-macros.c): New variable.
29466
29467 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29468 Jeff Law <law@redhat.com>
29469
29470 [BZ #22025]
29471 Mangle NULL pointers in iconv/gconv.
29472 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29473 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29474 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29475 is non-NULL before demangling the end_fct. Check for NULL
29476 end_fct after demangling.
29477 (__gconv_release_step): Demangle the end_fct before checking
29478 it for NULL. Remove assert on __shlibc_handle != NULL.
29479 (gen_steps): Don't check btowc_fct for NULL before mangling.
29480 Demangle init_fct before checking for NULL.
29481 (increment_counter): Likewise.
29482 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29483 end_fct for NULL before mangling.
29484 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29485 for NULL.
29486
29487 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29488
29489 [BZ #21971]
29490 * locale/iso-639.def: add Morisyen.
29491
29492 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29493
29494 [BZ #21930]
29495 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29496 (iszero): New C++ implementation that does not use
29497 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29498 signaling nans are enabled, since __builtin_types_compatible_p
29499 is a C-only feature.
29500 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29501 defined, include ieee754_float128.h for access to the union and
29502 member ieee854_float128.ieee.
29503 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29504 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29505 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29506 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29507 options of test-math-zero on powerpc64le.
29508
29509 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29510
29511 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29512 Change double to float.
29513
29514 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29515
29516 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29517 unconditional.
29518 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29519 conditional code; define contents only for [LIBM_SVID_COMPAT].
29520
29521 2017-08-28 Florian Weimer <fweimer@redhat.com>
29522
29523 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29524 (abi-lp64_be-options): Remove.
29525 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29526 (abi-hard-options): Likewise.
29527 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29528 (abi-o32_hard-options, abi-o32_soft_2008-options)
29529 (abi-o32_hard_2008-options, abi-n32_soft-options)
29530 (abi-n32_hard-options, abi-n32_soft_2008-options)
29531 (abi-n32_hard_2008-options, abi-n64_soft-options)
29532 (abi-n64_hard-options, abi-n64_soft_2008-options)
29533 (abi-n64_hard_2008-options): Likewise.
29534 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29535 (abi-64-v1-options, abi-64-v2-options): Likewise.
29536 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29537 (abi-64-options): Likewise.
29538 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29539 (abi-64-options): Likewise.
29540 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29541 (abi-64-options): Likewise.
29542 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29543 (abi-64-options, abi-x32-options): Likewise.
29544
29545 2017-08-28 Florian Weimer <fweimer@redhat.com>
29546
29547 Store supported list of SYS_* system calls in the source tree.
29548 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29549 (bits/syscall.h): Generate from list file.
29550 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29551 [$(subdir) = misc] (tests): Add tst-syscall-list.
29552 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29553 [$(subdir) = misc] (tst-syscall-list-macros.list)
29554 [$(subdir) = misc] (tst-syscall-list-nr.list)
29555 (tst-syscall-list-sys.list): Helper targets for new
29556 tst-syscall-list test.
29557 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29558 tst-syscall-list.sh.
29559 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29560 target. Do not include bits/syscall.d.
29561 [$(subdir) = misc] (generated): Do not update.
29562 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29563 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29564 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29565 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29566
29567 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29568
29569 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29570 (tst-cxa_atexit, tst-on_exit): Likewise.
29571 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29572 tst-cxa_atexit, and tst-on_exit.
29573 * stdlib/tst-atexit-common.c: New file.
29574 * stdlib/tst-atexit.c: New file.
29575 * stdlib/tst-at_quick_exit.c: New file.
29576 * stdlib/tst-cxa_atexit.c: New file.
29577 * stdlib/tst-on_exit.c: New file.
29578
29579 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29580
29581 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29582 * mach/stack_chk_fail_local.c: New file.
29583 * hurd/stack_chk_fail_local.c: New file.
29584 * mach/Machrules ($(interface-library)-routines): Add
29585 stack_chk_fail_local.
29586 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29587 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29588 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29589 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29590 * hurd/Makefile (CFLAGS-hurdstartup.o,
29591 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29592
29593 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29594
29595 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29596 (index_cpu_*, index_arch_*): Removed.
29597
29598 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29599
29600 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29601 Use uint64_t instead of unsigned long.
29602
29603 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29604
29605 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29606 [__HAVE_DISTINCT_FLOAT128].
29607
29608 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29609 of <bits/math-finite.h>.
29610 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29611 inclusion of <bits/math-finite.h>.
29612 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29613 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29614 __NO_LONG_DOUBLE_MATH].
29615 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29616 (__MATH_REDIRCALL_2): Likewise.
29617 (__MATH_REDIRCALL_INTERNAL): Likewise.
29618 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29619 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29620 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29621
29622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29623 Remove file.
29624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29625 Likewise.
29626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29627 Likewise.
29628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29629 Likewise.
29630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29631 Likewise.
29632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29633 Likewise.
29634 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29635 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29636 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29637 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29639 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29640 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29641 w_sqrtf_compat-ppc32.
29642
29643 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29644
29645 * math/math.h [defined __cplusplus] (issignaling): In the long
29646 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29647 is not defined. Call __issignaling, otherwise.
29648
29649 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29650
29651 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29652 syscall definitions and replace __builtin_expect with __glibc_likely.
29653 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29654 syscall.
29655 (SYSCALL_CANCELLABLE): Removedefinition
29656 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29657 definition.
29658 (PSEUDO_END): Likewise.
29659 [IS_IN (libpthread)] (CENABLE): Likewise.
29660 [IS_IN (libpthread)] (CDISABLE): Likewise.
29661 [IS_IN (libc)] (CENABLE): Likewise.
29662 [IS_IN (libc)] (CENABLE): Likewise.
29663 [IS_IN (librt)] (CDISABLE): Likewise.
29664 [IS_IN (librt)] (CDISABLE): Likewise.
29665 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29666 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29667 definition.
29668 (PSEUDO_END): Likewise.
29669 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29670 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29671 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29672 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29673 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29674 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29675 (CENABLE): Likewise.
29676 (CDISABLE): Likewise.
29677 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29678 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29679 defintion.
29680 (PSEUDO_END): Likewise.
29681 [IS_IN (libpthread)] (CENABLE): Likewise.
29682 [IS_IN (libpthread)] (CDISABLE): Likewise.
29683 [IS_IN (libc)] (CENABLE): Likewise.
29684 [IS_IN (libc)] (CENABLE): Likewise.
29685 [IS_IN (librt)] (CDISABLE): Likewise.
29686 [IS_IN (librt)] (CDISABLE): Likewise.
29687 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29688 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29689 definition.
29690 (PSEUDO_END): Likewise.
29691 [IS_IN (libpthread)] (CENABLE): Likewise.
29692 [IS_IN (libpthread)] (CDISABLE): Likewise.
29693 [IS_IN (libc)] (CENABLE): Likewise.
29694 [IS_IN (libc)] (CENABLE): Likewise.
29695 [IS_IN (librt)] (CDISABLE): Likewise.
29696 [IS_IN (librt)] (CDISABLE): Likewise.
29697 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29698 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29699 definition.
29700 (PSEUDO_END): Likewise.
29701 [IS_IN (libpthread)] (CENABLE): Likewise.
29702 [IS_IN (libpthread)] (CDISABLE): Likewise.
29703 [IS_IN (libc)] (CENABLE): Likewise.
29704 [IS_IN (libc)] (CENABLE): Likewise.
29705 [IS_IN (librt)] (CDISABLE): Likewise.
29706 [IS_IN (librt)] (CDISABLE): Likewise.
29707 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29708 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29709 definition.
29710 (PSEUDO_END): Likewise.
29711 [IS_IN (libpthread)] (CENABLE): Likewise.
29712 [IS_IN (libpthread)] (CDISABLE): Likewise.
29713 [IS_IN (libc)] (CENABLE): Likewise.
29714 [IS_IN (libc)] (CENABLE): Likewise.
29715 [IS_IN (librt)] (CDISABLE): Likewise.
29716 [IS_IN (librt)] (CDISABLE): Likewise.
29717 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29718 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29719 definition.
29720 (PSEUDO_END): Likewise.
29721 [IS_IN (libpthread)] (CENABLE): Likewise.
29722 [IS_IN (libpthread)] (CDISABLE): Likewise.
29723 [IS_IN (libc)] (CENABLE): Likewise.
29724 [IS_IN (libc)] (CENABLE): Likewise.
29725 [IS_IN (librt)] (CDISABLE): Likewise.
29726 [IS_IN (librt)] (CDISABLE): Likewise.
29727 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29728 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29729 definition.
29730 (PSEUDO_END): Likewise.
29731 [IS_IN (libpthread)] (CENABLE): Likewise.
29732 [IS_IN (libpthread)] (CDISABLE): Likewise.
29733 [IS_IN (libc)] (CENABLE): Likewise.
29734 [IS_IN (libc)] (CENABLE): Likewise.
29735 [IS_IN (librt)] (CDISABLE): Likewise.
29736 [IS_IN (librt)] (CDISABLE): Likewise.
29737 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29738 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29739 Remove definition.
29740 (PSEUDO_END): Likewise.
29741 [IS_IN (libpthread)] (CENABLE): Likewise.
29742 [IS_IN (libpthread)] (CDISABLE): Likewise.
29743 [IS_IN (libc)] (CENABLE): Likewise.
29744 [IS_IN (libc)] (CENABLE): Likewise.
29745 [IS_IN (librt)] (CDISABLE): Likewise.
29746 [IS_IN (librt)] (CDISABLE): Likewise.
29747 (SINGLE_THREAD_P): Likewise.
29748 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29749 definition.
29750 (PSEUDO_END): Likewise.
29751 [IS_IN (libpthread)] (CENABLE): Likewise.
29752 [IS_IN (libpthread)] (CDISABLE): Likewise.
29753 [IS_IN (libc)] (CENABLE): Likewise.
29754 [IS_IN (libc)] (CENABLE): Likewise.
29755 [IS_IN (librt)] (CDISABLE): Likewise.
29756 [IS_IN (librt)] (CDISABLE): Likewise.
29757 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29758 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29759 definition.
29760 (PSEUDO_END): Likewise.
29761 [IS_IN (libpthread)] (CENABLE): Likewise.
29762 [IS_IN (libpthread)] (CDISABLE): Likewise.
29763 [IS_IN (libc)] (CENABLE): Likewise.
29764 [IS_IN (libc)] (CENABLE): Likewise.
29765 [IS_IN (librt)] (CDISABLE): Likewise.
29766 [IS_IN (librt)] (CDISABLE): Likewise.
29767 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29768 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29769 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29770 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29771 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29772 definition.
29773 (PSEUDO_END): Likewise.
29774 [IS_IN (libpthread)] (CENABLE): Likewise.
29775 [IS_IN (libpthread)] (CDISABLE): Likewise.
29776 [IS_IN (libc)] (CENABLE): Likewise.
29777 [IS_IN (libc)] (CENABLE): Likewise.
29778 [IS_IN (librt)] (CDISABLE): Likewise.
29779 [IS_IN (librt)] (CDISABLE): Likewise.
29780 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29781 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29782 definition.
29783 (PSEUDO_END): Likewise.
29784 [IS_IN (libpthread)] (CENABLE): Likewise.
29785 [IS_IN (libpthread)] (CDISABLE): Likewise.
29786 [IS_IN (libc)] (CENABLE): Likewise.
29787 [IS_IN (libc)] (CENABLE): Likewise.
29788 [IS_IN (librt)] (CDISABLE): Likewise.
29789 [IS_IN (librt)] (CDISABLE): Likewise.
29790 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29791 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29792 definition.
29793 (PSEUDO_END): Likewise.
29794 [IS_IN (libpthread)] (CENABLE): Likewise.
29795 [IS_IN (libpthread)] (CDISABLE): Likewise.
29796 [IS_IN (libc)] (CENABLE): Likewise.
29797 [IS_IN (libc)] (CENABLE): Likewise.
29798 [IS_IN (librt)] (CDISABLE): Likewise.
29799 [IS_IN (librt)] (CDISABLE): Likewise.
29800 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29801 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29802 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29803 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29804 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29805 definition.
29806 (PSEUDO_END): Likewise.
29807 [IS_IN (libpthread)] (CENABLE): Likewise.
29808 [IS_IN (libpthread)] (CDISABLE): Likewise.
29809 [IS_IN (libc)] (CENABLE): Likewise.
29810 [IS_IN (libc)] (CENABLE): Likewise.
29811 [IS_IN (librt)] (CDISABLE): Likewise.
29812 [IS_IN (librt)] (CDISABLE): Likewise.
29813 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29814 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29815 definition.
29816 (PSEUDO_END): Likewise.
29817 [IS_IN (libpthread)] (CENABLE): Likewise.
29818 [IS_IN (libpthread)] (CDISABLE): Likewise.
29819 [IS_IN (libc)] (CENABLE): Likewise.
29820 [IS_IN (libc)] (CENABLE): Likewise.
29821 [IS_IN (librt)] (CDISABLE): Likewise.
29822 [IS_IN (librt)] (CDISABLE): Likewise.
29823 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29824
29825 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29826
29827 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29828
29829 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29830
29831 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29832
29833 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29834
29835 [BZ #21982]
29836 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29837 middle and outer with size_t instead of int. Repleace %d and
29838 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29839 "MAX (outer, nchars - 64)" to support unsigned outer and
29840 nchars. Also exit loop when outer == 0.
29841
29842 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29843
29844 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29845 * include/signal.h (__sigsuspend_nocancel): Likewise.
29846 * include/time.h (__nanosleep_nocancel): Likewise.
29847 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29848 * login/utmp_file.c: Include non cancellable syscall header.
29849 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29850 prototype.
29851
29852 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29853
29854 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29855 .byte sequences with AVX512F instructions.
29856 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29857 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29858 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29859 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29860 Likewise.
29861 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29862 Likewise.
29863
29864 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29865 Steve Ellcey <sellcey@cavium.com>
29866
29867 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29868 Use PTR_REG macro in cmp instruction.
29869
29870 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29871
29872 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29873 Change the return type of the ifunc resolver to match the return
29874 type of the target function.
29875
29876 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29877
29878 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29879 (preadv64): Likewise.
29880 (pwrite64(: Likewise.
29881 (pwritev64): Likewise.
29882
29883 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29884 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29885 (LOAD_ARGS_0): Likewise.
29886 (LOAD_ARGS_1): Likewise.
29887 (LOAD_ARGS_2): Likewise.
29888 (LOAD_ARGS_3): Likewise.
29889 (LOAD_ARGS_4): Likewise.
29890 (LOAD_ARGS_5): Likewise.
29891 (LOAD_ARGS_6): Likewise.
29892 (LOAD_REGS_0): Likewise.
29893 (LOAD_REGS_1): Likewise.
29894 (LOAD_REGS_2): Likewise.
29895 (LOAD_REGS_3): Likewise.
29896 (LOAD_REGS_4): Likewise.
29897 (LOAD_REGS_5): Likewise.
29898 (LOAD_REGS_6): Likewise.
29899 (ASM_ARGS_0): Likewise.
29900 (ASM_ARGS_1): Likewise.
29901 (ASM_ARGS_2): Likewise.
29902 (ASM_ARGS_3): Likewise.
29903 (ASM_ARGS_4): Likewise.
29904 (ASM_ARGS_5): Likewise.
29905 (ASM_ARGS_6): Likewise.
29906 (LOAD_ARGS_TYPES_1): Likewise.
29907 (LOAD_ARGS_TYPES_2): Likewise.
29908 (LOAD_ARGS_TYPES_3): Likewise.
29909 (LOAD_ARGS_TYPES_4): Likewise.
29910 (LOAD_ARGS_TYPES_5): Likewise.
29911 (LOAD_ARGS_TYPES_6): Likewise.
29912 (LOAD_REGS_TYPES_1): Likewise.
29913 (LOAD_REGS_TYPES_2): Likewise.
29914 (LOAD_REGS_TYPES_3): Likewise.
29915 (LOAD_REGS_TYPES_4): Likewise.
29916 (LOAD_REGS_TYPES_5): Likewise.
29917 (LOAD_REGS_TYPES_6): Likewise.
29918 (TYPEFY): New define.
29919 (ARGIFY): Likewise.
29920 (internal_syscall0): Likewise.
29921 (internal_syscall1): Likewise.
29922 (internal_syscall2): Likewise.
29923 (internal_syscall3): Likewise.
29924 (internal_syscall4): Likewise.
29925 (internal_syscall5): Likewise.
29926 (internal_syscall6): Likewise.
29927 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29928 (INTERNAL_SYSCALL_NCS): Remove define.
29929 (internal_syscall1): Add define.
29930
29931 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29932
29933 * math/w_remainder_compat.c: Remove duplicate inclusion of
29934 math-svid-compat.h.
29935 * math/w_remainderf_compat.c: Likewise.
29936 * math/w_remainderl_compat.c: Likewise.
29937
29938 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29939
29940 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29941
29942 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29943
29944 [BZ #21684]
29945 * math/tgmath.h (__floating_type): Simplify definitions.
29946 (__real_integer_type): New macro.
29947 (__complex_integer_type): Likewise.
29948 (__expr_is_real): Likewise.
29949 (__tgmath_real_type_sub): Update comment to describe handling of
29950 complex types.
29951 (__tgmath_complex_type_sub): New macro.
29952 (__tgmath_complex_type): Likewise.
29953 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29954 (__TGMATH_CF128): Use __expr_is_real.
29955 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29956 __expr_is_real.
29957 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29958 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29959 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29960 integer types.
29961
29962 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29963
29964 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29965 macro.
29966 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29967 alias.
29968 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29969 Likewise.
29970
29971 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29972 nanosleep_not_cancel with __nanosleep_nocancel.
29973 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29974 (__nanosleep_nocancel): New macro.
29975 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29976 function.
29977 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29978 macro.
29979 (__nanosleep_nocancel): New prototype.
29980
29981 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29982 pause_not_cancel with __pause_nocancel.
29983 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29984 (__pause_nocancel): New macro.
29985 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29986 macro.
29987 (__pause_nocancel): New prototype.
29988 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29989
29990 2017-08-22 Martin Sebor <msebor@redhat.com>
29991
29992 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29993 to return a pointer to the same type as the target function.
29994
29995 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29996
29997 [BZ #18822]
29998 [BZ #21986]
29999 * include/printf.h (__printf_fphex): Add attribute_hidden.
30000 (__guess_grouping): New prototype.
30001 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30002 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30003 libc_hidden_proto and libc_hidden_def.
30004 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30005 (__vstrfmon_l): Remove the third argument passed to
30006 __guess_grouping.
30007
30008 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30009
30010 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30011 definition for issignaling that does not rely on __MATH_TG,
30012 since __MATH_TG uses __builtin_types_compatible_p, which is only
30013 available in C mode.
30014 (CFLAGS-test-math-issignaling.cc): New variable.
30015 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30016 * math/test-math-issignaling.cc: New test for C++ implementation
30017 of type-generic issignaling.
30018 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30019 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30020 options of test-math-issignaling on powerpc64le.
30021
30022 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30023
30024 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30025 building libc.a.
30026 (hidden_proto): Likewise.
30027 (hidden_tls_proto): Likewise.
30028 (__hidden_proto): Likewise.
30029
30030 2017-08-22 Florian Weimer <fweimer@redhat.com>
30031
30032 math: Statically link tests of internal functionality.
30033 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30034 atest-exp2.
30035 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30036 (gmp-objs): Remove assignment.
30037 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30038
30039 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30040
30041 [BZ #21987]
30042 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30043 and copy to ...
30044 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30045 ... here.
30046 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30047 ... and here.
30048
30049 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30050 variable definitions above inclusion of ../Rules.
30051
30052 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30053
30054 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30055 case calling __builtin_unreachable.
30056
30057 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30058
30059 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30060 __waitpid_nocancel.
30061 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30062 (__waitpid_nocancel): New macro.
30063 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30064 macro.
30065 (__waitpid_nocancel): Replace macro with a function.
30066 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30067 function.
30068
30069 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30070 __fcntl_nocancel.
30071 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30072 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30073
30074 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30075 __writev_nocancel_nostatus.
30076 (write_call_graph): Likewise.
30077 (write_bb_counts): Likewise.
30078 * resolv/herror.c (herror): Likewise.
30079 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30080 macro.
30081 (__writev_nocancel_nostatus): New macro.
30082 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30083 Remove macro.
30084 (__writev_nocancel_nostatus): New function.
30085
30086 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30087
30088 Revert:
30089 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30090
30091 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30092 building libc.a.
30093 (hidden_proto): Likewise.
30094 (hidden_tls_proto): Likewise.
30095 (__hidden_proto): Likewise.
30096
30097 [BZ #21973]
30098 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30099 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30100 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30101 Likewise.
30102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30103 Likewise.
30104 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30105 Likewise.
30106 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30107 Likewise.
30108 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30109 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30110 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30111 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30112 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30113 GLIBC_2.0 sqrtl symbol.
30114
30115 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30116 [__USE_MISC] (_LIB_VERSION): Likewise.
30117 [__USE_MISC] (struct exception): Likewise.
30118 [__USE_MISC] (matherr): Likewise.
30119 [__USE_MISC] (DOMAIN): Likewise.
30120 [__USE_MISC] (SING): Likewise.
30121 [__USE_MISC] (OVERFLOW): Likewise.
30122 [__USE_MISC] (UNDERFLOW): Likewise.
30123 [__USE_MISC] (TLOSS): Likewise.
30124 [__USE_MISC] (PLOSS): Likewise.
30125 [__USE_MISC] (HUGE): Likewise.
30126 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30127 * math/math-svid-compat.h: New file.
30128 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30129 and matherrl.
30130 * include/math.h [!_ISOMAC] (__matherr): Remove.
30131 * manual/arith.texi (FP Exceptions): Do not document matherr.
30132 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30133 (tests-internal): New variable.
30134 (install-lib): Do not add libieee.a.
30135 (non-lib.a): Likewise.
30136 (extra-objs): Do not add libieee.a and ieee-math.o.
30137 (CPPFLAGS-s_lib_version.c): Remove variable.
30138 ($(objpfx)libieee.a): Remove rule.
30139 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30140 * math/ieee-math.c: Remove.
30141 * math/libm-test-support.c (matherr): Remove.
30142 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30143 and license notices. Include <math-svid-compat.h> and
30144 <shlib-compat.h>.
30145 (matherr): Undefine as macro. Use compat_symbol_reference.
30146 (_LIB_VERSION): Likewise.
30147 * math/test-matherr-2.c: New file.
30148 * math/test-matherr-3.c: Likewise.
30149 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30150 declaration.
30151 (__kernel_standard_f): Likewise.
30152 (__kernel_standard_l): Likewise.
30153 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30154 <math_private.h>. Include <math-svid-compat.h>.
30155 (_LIB_VERSION): Undefine as macro.
30156 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30157 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30158 [LIBM_SVID_COMPAT], use compat_symbol.
30159 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30160 <math_private.h>. Include <math-svid-compat.h>.
30161 (matherr): Undefine as macro.
30162 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30163 compat_symbol.
30164 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30165 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30166 compat_symbol_reference.
30167 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30168 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30169 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30170 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30171 (MATHERR_D): Remove declaration.
30172 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30173 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30174 [LIBM_BUILD] (pmatherrf): Likewise.
30175 [LIBM_BUILD] (pmatherr): Likewise.
30176 [LIBM_BUILD] (pmatherrl): Likewise.
30177 (DOMAIN): Likewise.
30178 (SING): Likewise.
30179 (OVERFLOW): Likewise.
30180 (UNDERFLOW): Likewise.
30181 (TLOSS): Likewise.
30182 (PLOSS): Likewise.
30183 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30184 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30185 compat_symbol.
30186 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30187 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30188 compat_symbol.
30189 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30190 * math/w_acos_compat.c: Likewise.
30191 * math/w_acosf_compat.c: Likewise.
30192 * math/w_acosh_compat.c: Likewise.
30193 * math/w_acoshf_compat.c: Likewise.
30194 * math/w_acoshl_compat.c: Likewise.
30195 * math/w_acosl_compat.c: Likewise.
30196 * math/w_asin_compat.c: Likewise.
30197 * math/w_asinf_compat.c: Likewise.
30198 * math/w_asinl_compat.c: Likewise.
30199 * math/w_atan2_compat.c: Likewise.
30200 * math/w_atan2f_compat.c: Likewise.
30201 * math/w_atan2l_compat.c: Likewise.
30202 * math/w_atanh_compat.c: Likewise.
30203 * math/w_atanhf_compat.c: Likewise.
30204 * math/w_atanhl_compat.c: Likewise.
30205 * math/w_cosh_compat.c: Likewise.
30206 * math/w_coshf_compat.c: Likewise.
30207 * math/w_coshl_compat.c: Likewise.
30208 * math/w_exp10_compat.c: Likewise.
30209 * math/w_exp10f_compat.c: Likewise.
30210 * math/w_exp10l_compat.c: Likewise.
30211 * math/w_exp2_compat.c: Likewise.
30212 * math/w_exp2f_compat.c: Likewise.
30213 * math/w_exp2l_compat.c: Likewise.
30214 * math/w_fmod_compat.c: Likewise.
30215 * math/w_fmodf_compat.c: Likewise.
30216 * math/w_fmodl_compat.c: Likewise.
30217 * math/w_hypot_compat.c: Likewise.
30218 * math/w_hypotf_compat.c: Likewise.
30219 * math/w_hypotl_compat.c: Likewise.
30220 * math/w_j0_compat.c: Likewise.
30221 * math/w_j0f_compat.c: Likewise.
30222 * math/w_j0l_compat.c: Likewise.
30223 * math/w_j1_compat.c: Likewise.
30224 * math/w_j1f_compat.c: Likewise.
30225 * math/w_j1l_compat.c: Likewise.
30226 * math/w_jn_compat.c: Likewise.
30227 * math/w_jnf_compat.c: Likewise.
30228 * math/w_jnl_compat.c: Likewise.
30229 * math/w_lgamma_main.c: Likewise.
30230 * math/w_lgamma_r_compat.c: Likewise.
30231 * math/w_lgammaf_main.c: Likewise.
30232 * math/w_lgammaf_r_compat.c: Likewise.
30233 * math/w_lgammal_main.c: Likewise.
30234 * math/w_lgammal_r_compat.c: Likewise.
30235 * math/w_log10_compat.c: Likewise.
30236 * math/w_log10f_compat.c: Likewise.
30237 * math/w_log10l_compat.c: Likewise.
30238 * math/w_log2_compat.c: Likewise.
30239 * math/w_log2f_compat.c: Likewise.
30240 * math/w_log2l_compat.c: Likewise.
30241 * math/w_log_compat.c: Likewise.
30242 * math/w_logf_compat.c: Likewise.
30243 * math/w_logl_compat.c: Likewise.
30244 * math/w_pow_compat.c: Likewise.
30245 * math/w_powf_compat.c: Likewise.
30246 * math/w_powl_compat.c: Likewise.
30247 * math/w_remainder_compat.c: Likewise.
30248 * math/w_remainderf_compat.c: Likewise.
30249 * math/w_remainderl_compat.c: Likewise.
30250 * math/w_scalb_compat.c: Likewise.
30251 * math/w_scalbf_compat.c: Likewise.
30252 * math/w_scalbl_compat.c: Likewise.
30253 * math/w_sinh_compat.c: Likewise.
30254 * math/w_sinhf_compat.c: Likewise.
30255 * math/w_sinhl_compat.c: Likewise.
30256 * math/w_sqrt_compat.c: Likewise.
30257 * math/w_sqrtf_compat.c: Likewise.
30258 * math/w_sqrtl_compat.c: Likewise.
30259 * math/w_tgamma_compat.c: Likewise.
30260 * math/w_tgammaf_compat.c: Likewise.
30261 * math/w_tgammal_compat.c: Likewise.
30262 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30263 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30264 * sysdeps/ieee754/k_standard.c: Likewise.
30265 * sysdeps/ieee754/k_standardf.c: Likewise.
30266 * sysdeps/ieee754/k_standardl.c: Likewise.
30267 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30268 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30269 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30270 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30271 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30272 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30273 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30274 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30275 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30276 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30277 Likewise.
30278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30279 Likewise.
30280 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30281 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30282 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30283 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30284
30285 2017-08-21 Florian Weimer <fweimer@redhat.com>
30286
30287 [BZ #21864]
30288 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30289 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30290 Move before inclusion of ../Rules.
30291
30292 2017-08-21 Florian Weimer <fweimer@redhat.com>
30293
30294 [BZ #21972]
30295 * assert/assert.h (assert): Use static_cast (bool) for C++.
30296 Use the ternary operator in the warning branch for GNU C.
30297 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30298 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30299 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30300 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30301 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30302
30303 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30304
30305 [BZ #18822]
30306 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30307 (__syscall_clock_gettime): Add attribute_hidden.
30308 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30309 (__start_context): Likewise.
30310
30311 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30312
30313 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30314 building libc.a.
30315 (hidden_proto): Likewise.
30316 (hidden_tls_proto): Likewise.
30317 (__hidden_proto): Likewise.
30318
30319 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30320
30321 * include/libc-symbols.h (attribute_hidden): Enable hidden
30322 visibility in libc.a compiled with PIE.
30323
30324 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30325
30326 [BZ #18822]
30327 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30328 Add attribute_hidden.
30329
30330 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30331
30332 [BZ #21864]
30333 * Makerules (all-nonlib): Add $(others-extras).
30334 * catgets/Makefile (others-extras): New.
30335 * elf/Makefile (others-extras): Likewise.
30336 * nss/Makefile (others-extras): Likewise.
30337
30338 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30339
30340 [BZ #18822]
30341 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30342 * elf/dl-open.c: Include <libc-internal.h>.
30343 (__libc_multiple_libcs): Removed.
30344 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30345 <hp-timing.h>.
30346 * include/libc-internal.h (__libc_multiple_libcs): New.
30347 * misc/sbrk.c: Include <libc-internal.h>.
30348 (__libc_multiple_libcs): Removed.
30349
30350 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30351
30352 [BZ #18822]
30353 * grp/initgroups.c (__nss_group_database): Removed.
30354 (__nss_initgroups_database): Likewise.
30355 * nscd/gai.c (__nss_hosts_database): Likewise.
30356 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30357 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30358 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30359 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30360 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30361 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30362 attribute_hidden.
30363 * nss/nsswitch.c (__nss_database_custom): Define only if
30364 USE_NSCD is defined.
30365 (__nss_configure_lookup): Use __nss_database_custom only if
30366 USE_NSCD is defined.
30367 * nss/nsswitch.h (__nss_database_custom): Declare only if
30368 USE_NSCD is defined. Add attribute_hidden.
30369 (__nss_setent): Add attribute_hidden.
30370 (__nss_endent): Likewise.
30371 (__nss_getent_r): Likewise.
30372 (__nss_getent): Likewise.
30373 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30374
30375 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30376
30377 [BZ #18822]
30378 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30379 libc_hidden_proto and libc_hidden_def.
30380
30381 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30382
30383 [BZ #18822]
30384 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30385 Add libc_hidden_proto.
30386 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30387 Add libc_hidden_def.
30388
30389 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30390
30391 [BZ #21974]
30392 * gmon/Makefile (routines): Remove bb_init_func and
30393 bb_exit_func.
30394 (elide-routines.os): Removed.
30395 * gmon/bb_exit_func.c: Likewise.
30396 * gmon/bb_init_func.c: Likewise.
30397 * include/sys/gmon.h (__bb): Likewise.
30398 (__bb_init_func): Likewise.
30399 (__bb_exit_func): Likewise.
30400 * sysdeps/alpha/bb_init_func.S: Likewise.
30401
30402 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30403
30404 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30405 * include/setjmp.h (____longjmp_chk): Here. Add
30406 attribute_hidden.
30407
30408 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30409
30410 [BZ #18822]
30411 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30412 attribute_hidden.
30413 (__strspn_sse2): Likewise.
30414
30415 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30416
30417 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30418 (close_not_cancel_no_status): Likewise.
30419 (__close_nocancel): New macro.
30420 (__close_nocancel_nostatus): Likewise.
30421 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30422 macro.
30423 (close_not_cancel): Likewise.
30424 (close_not_cancel_no_status): Likewise.
30425 (__close_nocancel): New prototype.
30426 (__close_nocancel_nostatus): New function.
30427 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30428 * catgets/open_catalog.c (__open_catalog): Replace
30429 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30430 * gmon/gmon.c (write_gmon): Likewise.
30431 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30432 * intl/loadmsgcat.c (close): Likewise.
30433 * io/ftw.c (open_dir_stream): Likewise.
30434 (ftw_startup): Likewise.
30435 * libio/fileops.c (_IO_file_open): Likewise.
30436 (_IO_file_close_mmap): Likewise.
30437 (_IO_file_close): Likewise.
30438 * libio/iopopen.c (_IO_dup2): Likewise.
30439 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30440 * locale/loadlocale.c (_nl_load_locale): Likewise.
30441 * login/utmp_file.c (pututline_file): Likewise.
30442 (endutent_file): Likewise.
30443 * misc/daemon.c (daemon): Likewise.
30444 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30445 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30446 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30447 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30448 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30449 * nscd/nscd_helper.c (open_socket): Likewise.
30450 (__nscd_open_socket): Likewise.
30451 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30452 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30453 (__nscd_innetgr): Likewise.
30454 * nss/nss_db/db-open.c (internal_setent): Likewise.
30455 * resolv/res-close.c (__res_iclose): Likewise.
30456 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30457 * sysdeps/posix/closedir.c (__closedir): Likewise.
30458 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30459 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30460 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30461 (opendir_tail): Likewise.
30462 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30463 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30464 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30465 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30466 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30467 (gethostid): Likewise.
30468 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30469 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30470 Likewise.
30471 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30472 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30473 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30474 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30475 Likewise.
30476 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30477 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30478 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30479 Likewise.
30480 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30481 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30482 Likewise.
30483 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30484 Likewise.
30485 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30486 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30487 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30488 __close_nocancel.
30489
30490 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30491 (openat_not_cancel_3): Likewise.
30492 (openat64_not_cancel_3): Likewise).
30493 (openat_not_cancel_3): Likewise).
30494 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30495 macro.
30496 (openat_not_cancel_3): Likewise.
30497 (openat64_not_cancel): Likewise.
30498 (openat64_not_cancel_3): Likewise.
30499 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30500 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30501 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30502 __open{64}_nocancel.
30503 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30504 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30505 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30506
30507 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30508
30509 [BZ #18822]
30510 * include/argz.h (__argz_create_sep): New function prototype.
30511 (__argz_append): Likewise.
30512 (__argz_add): Likewise.
30513 (__argz_add_sep): Likewise.
30514 (__argz_delete): Likewise.
30515 (__argz_insert): Likewise.
30516 (__argz_replace): Likewise.
30517 * string/argz.h (__argz_create_sep): Removed.
30518 (__argz_append): Likewise.
30519 (__argz_add): Likewise.
30520 (__argz_add_sep): Likewise.
30521 (__argz_delete): Likewise.
30522 (__argz_insert): Likewise.
30523 (__argz_replace): Likewise.
30524
30525 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30526
30527 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30528 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30529 (GNU_PROPERTY_STACK_SIZE): Likewie.
30530 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30531 (GNU_PROPERTY_LOPROC): Likewise.
30532 (GNU_PROPERTY_HIPROC): Likewise.
30533 (GNU_PROPERTY_LOUSER): Likewise.
30534 (GNU_PROPERTY_HIUSER): Likewise.
30535 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30536 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30537 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30538 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30539 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30540 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30541 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30542 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30543 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30544 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30545 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30546 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30547 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30548 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30549 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30550 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30551 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30552 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30553 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30554 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30555 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30556 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30557 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30558
30559 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30560
30561 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30562 in C++ mode.
30563
30564 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30565
30566 [BZ #21930]
30567 * math/math.h (isinf): Check if in C or C++ mode before using
30568 __builtin_types_compatible_p, since this is a C mode feature.
30569
30570 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30571
30572 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30573 (__write_nocancel): New macro.
30574 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30575 Rewrite as a function prototype.
30576 (write_not_cancel): Remove macro.
30577 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30578 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30579 (write_gmon): Likewise.
30580 * libio/fileops.c (_IO_new_file_write): Likewise.
30581 * login/utmp_file.c (pututline_file): Likewise.
30582 (updwtmp_file): Likewise.
30583 * stdio-common/psiginfo.c (psiginfo): Likewise.
30584 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30585 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30586 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30587 Likewise.
30588 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30589 Likewise.
30590
30591 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30592 (__read_nocancel): New macro.
30593 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30594 __read_nocancel.
30595 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30596 macro.
30597 (__read_nocancel): New prototype.
30598 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30599 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30600 with __read_nocancel.
30601 * intl/loadmsgcat.c (read): Likewise.
30602 * libio/fileops.c (_IO_file_read): Likewise.
30603 * locale/loadlocale.c (_nl_load_locale): Likewise.
30604 * login/utmp_file.c (getutent_r_file): Likewise.
30605 (internal_getut_r): Likewise.
30606 (getutline_r_file): Likewise.
30607 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30608 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30609 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30610 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30611 Likewise.
30612 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30613 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30614 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30615 Likewise.
30616 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30617 Likewise.
30618 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30619 Likewise.
30620 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30621 Likewise.
30622 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30623
30624 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30625
30626 [BZ #21966]
30627 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30628 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30629 usable.
30630
30631 2017-08-17 DJ Delorie <dj@redhat.com>
30632
30633 * bug17079.c: Update to new test harness.
30634 * test-digits-dots.c: Likewise.
30635 * test-netdb.c: Likewise.
30636 * tst-field.c: Likewise.
30637 * tst-nss-getpwent.c: Likewise.
30638 * tst-nss-static.c: Likewise.
30639 * tst-nss-test1.c: Likewise.
30640 * tst-nss-test2.c: Likewise.
30641 * tst-nss-test3.c: Likewise.
30642 * tst-nss-test4.c: Likewise.
30643 * tst-nss-test5.c: Likewise.
30644
30645 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30646
30647 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30648 (open_not_cancel_2): Likewise.
30649 (open_nocancel): New macro.
30650 (open64_nocancel): Likewise.
30651 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30652 (open_not_cancel_2): Likewise.
30653 (__open_nocancel): New prototype.
30654 (__open64_nocancel): Likewise.
30655 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30656 __open_nocancel.
30657 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30658 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30659 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30660 with __open_nocancel.
30661 * csu/check_fds.c (check_one_fd): Likewise.
30662 * gmon/gmon.c (write_gmon): Likewise.
30663 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30664 * intl/loadmsgcat.c (open): Likewise.
30665 * libio/fileops.c (_IO_file_open): Likewise.
30666 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30667 * locale/loadlocale.c (_nl_load_locale): Likewise.
30668 * login/utmp_file.c (setutent_file): Likewise.
30669 * misc/daemon.c (daemon): Likewise.
30670 * nss/nss_db/db-open.c (internal_setent): Likewise.
30671 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30672 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30673 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30674 (__opendir): Likewise.
30675 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30676 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30677 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30678 (gethostid): Likewise.
30679 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30680 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30681 Likewise.
30682 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30683 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30684 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30685 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30686 Likewise.
30687 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30688 Likewise.
30689 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30690 Likewise.
30691 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30692 Likewise.
30693 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30694 Likewise.
30695 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30696 Likewise.
30697 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30698 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30699
30700 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30701
30702 * benchtests/bench-skeleton.c (main): Add support for
30703 latency benchmarking.
30704 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30705
30706 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30707
30708 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30709 the startup object.
30710
30711 2017-08-17 Florian Weimer <fweimer@redhat.com>
30712
30713 * include/sys/socket.h (__opensock): Remove internal_function.
30714 * socket/opensock.c (__opensock): Likewise.
30715 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30716
30717 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30718
30719 [BZ #21944]
30720 * signal/bits/types/__sigval_t.h: New file.
30721 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30722 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30723 and define sigval_t using __sigval_t.
30724 * include/bits/types/__sigval_t.h: New file.
30725 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30726 instead of <bits/types/__sigval_t.h>.
30727 (struct sigevent): Use __sigval_t instead of sigval_t.
30728 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30729 instead of <bits/types/__sigval_t.h>.
30730 (siginfo_t): Use __sigval_t instead of sigval_t.
30731 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30732 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30733 (struct sigevent): Use __sigval_t instead of sigval_t.
30734 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30735 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30736 (siginfo_t): Use __sigval_t instead of sigval_t.
30737 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30738
30739 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30740
30741 * NEWS: Remove "[Add new features here]" for 2.27.
30742
30743 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30744
30745 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30746 libc.so.
30747
30748 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30749
30750 * NEWS: Mention x86-64 FMA optimization.
30751
30752 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30753
30754 [BZ #21912]
30755 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30756 Add e_expf-fma.
30757 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30758 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30759 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30760
30761 2017-08-16 Andreas Schwab <schwab@suse.de>
30762
30763 [BZ #16750]
30764 CVE-2009-5064
30765 * elf/ldd.bash.in: Never run file directly.
30766
30767 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30768
30769 [BZ #21955]
30770 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30771 (L(SP_INF_0)): Likewise.
30772
30773 2017-08-15 Florian Weimer <fweimer@redhat.com>
30774
30775 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30776 run-built-tests.
30777
30778 2017-08-15 Florian Weimer <fweimer@redhat.com>
30779
30780 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30781 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30782 BROKEN_THREAD_SIGNALS code.
30783 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30784 request_list): Remove caller_pid member used for
30785 BROKEN_THREAD_SIGNALS.
30786 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30787 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30788 Remove BROKEN_THREAD_SIGNALS support.
30789 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30790 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30791
30792 2017-08-15 Florian Weimer <fweimer@redhat.com>
30793
30794 * gmon/Makefile (tests): Add tst-gmon.
30795 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30796 Set.
30797 (tests-special): Add tst-gmon-prof.out.
30798 (tst-gmon.out): Depend on clean-tst-gmon-data.
30799 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30800 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30801 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30802 startup object.
30803 * aclocal.m4 (GPROF): Set and substitute.
30804 * config.amke.in (GPROF): Set.
30805 * configure: Regenerate.
30806
30807 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30808
30809 * elf/elf.h A (NT_PPC_TAR): New macro.
30810 (NT_PPC_PPR): Likewise.
30811 (NT_PPC_DSCR): Likewise.
30812 (NT_PPC_EBB): Likewise.
30813 (NT_PPC_PMU): Likewise.
30814 (NT_PPC_TM_CGPR): Likewise.
30815 (NT_PPC_TM_CFPR): Likewise.
30816 (NT_PPC_TM_CVMX): Likewise.
30817 (NT_PPC_TM_CVSX): Likewise.
30818 (NT_PPC_TM_SPR): Likewise.
30819 (NT_PPC_TM_CTAR): Likewise.
30820 (NT_PPC_TM_CPPR): Likewise.
30821 (NT_PPC_TM_CDSCR): Likewise.
30822
30823 2017-08-15 Florian Weimer <fweimer@redhat.com>
30824
30825 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30826 regparm (2) instead of internal_function.
30827 (_MCOUNT_DECL): Adjust.
30828
30829 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30830
30831 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30832 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30833
30834 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30835
30836 * conform/data/sys/wait.h-data (si_value): Do not expect for
30837 XPG42.
30838
30839 2017-08-14 Florian Weimer <fweimer@redhat.com>
30840
30841 [BZ #21962]
30842 NSS: Create stubs for accidentally exported lookup functions.
30843 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30844 Remove declaration.
30845 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30846 (ether_hostton): Call __nss_ethers_lookup2 instead.
30847 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30848 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30849 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30850 (setup): Call __nss_netgroup_lookup2 instead.
30851 * nss/Makefile (routines): Add compat-lookup.
30852 * nss/Versions (GLIBC_2.27): Add symbol version.
30853 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30854 (DB_COMPAT_FCT): Remove.
30855 * nss/compat-lookup.c: New file.
30856 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30857 from databases.def.
30858 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30859 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30860 (netname2user): Call __nss_publickey_lookup2 instead.
30861 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30862 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30863 instead.
30864
30865 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30866 Sergei Trofimovich <slyfox@inbox.ru>
30867
30868 [BZ #21908]
30869 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30870 Rename to MMAP2_PAGE_UNIT.
30871 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30872 __OFF_T_MATCHES_OFF64_T is not defined.
30873 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30874 uint64_t.
30875 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30876 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30877
30878 2017-08-14 Florian Weimer <fweimer@redhat.com>
30879
30880 i386: Do not set internal_function.
30881 * config.h.in (USE_REGPARMS, internal_function): Remove.
30882 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30883 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30884
30885 2017-08-14 Florian Weimer <fweimer@redhat.com>
30886
30887 * elf/dl-init.c (_dl_init): Remove internal_function.
30888 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30889 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30890
30891 2017-08-14 Florian Weimer <fweimer@redhat.com>
30892
30893 * elf/rtld.c (_dl_start): Remove internal_function.
30894 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30895 _dl_start.
30896
30897 2017-08-14 Florian Weimer <fweimer@redhat.com>
30898
30899 * elf/dl-fini.c (_dl_fini): Remove internal_function
30900 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30901
30902 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30903
30904 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30905 (bit_cpu_SHSTK): Likewise.
30906 (index_cpu_IBT): Likewise.
30907 (index_cpu_SHSTK): Likewise.
30908 (reg_IBT): Likewise.
30909 (reg_SHSTK): Likewise.
30910 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30911 Handle index_cpu_IBT and index_cpu_SHSTK.
30912
30913 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30914
30915 [BZ #19982]
30916 * po/fr.po: Fix spelling mistake.
30917
30918 2017-08-13 Florian Weimer <fweimer@redhat.com>
30919
30920 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30921 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30922 (_dl_catch_error, _dl_receive_error): Likewise.
30923 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30924 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30925 (_dl_deallocate_tls): Likewise.
30926 * include/dlfcn.h (_dl_addr): Likewise.
30927 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30928 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30929 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30930 Likewise.
30931
30932 2017-08-13 Florian Weimer <fweimer@redhat.com>
30933
30934 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30935 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30936 internal_function.
30937 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30938
30939 2017-08-13 Florian Weimer <fweimer@redhat.com>
30940
30941 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30942 internal_function.
30943 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30944 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30945 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30946 internal_function from _dl_make_stack_executable_hook member.
30947 (_dl_make_stack_executable): Remove internal_function.
30948 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30949 Likewise.
30950 * sysdeps/unix/sysv/linux/dl-execstack.c
30951 (_dl_make_stack_executable): Likewise.
30952
30953 2017-08-13 Florian Weimer <fweimer@redhat.com>
30954
30955 * sysdeps/unix/sysv/linux/netlinkaccess.h
30956 (__netlink_assert_response): Remove internal_function.
30957 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30958 (__netlink_assert_response): Likewise.
30959
30960 2017-08-13 Florian Weimer <fweimer@redhat.com>
30961
30962 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30963 internal_function.
30964 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30965
30966 2017-08-13 Florian Weimer <fweimer@redhat.com>
30967
30968 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30969 internal_function.
30970 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30971 * inet/netgroup.h (__internal_setnetgrent)
30972 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30973 * inet/getnetgrent_r.c (__internal_setnetgrent)
30974 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30975 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30976 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30977 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30978 * nss/nsswitch.h (db_lookup_function): Likewise.
30979
30980 2017-08-13 Florian Weimer <fweimer@redhat.com>
30981
30982 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30983 Remove internal_function.
30984 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30985 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30986 message argument on the stack.
30987 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30988 Likeweise.
30989
30990 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30991
30992 Adapt test case data to the changes in the thousands
30993 separators.
30994
30995 [BZ #20756]
30996 * localedata/tst-langinfo.sh: Adapt test case data.
30997 * stdlib/tst-strfmon_l.c: Likewise.
30998 * stdlib/tst-strtod4.c: Likewise.
30999 * stdlib/tst-strtod5i.c: Likewise.
31000
31001 2017-08-11 Florian Weimer <fweimer@redhat.com>
31002
31003 [BZ #21242]
31004 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31005 Suppress pedantic warning resulting from statement expression.
31006 (__ASSERT_FUNCTION): Add missing __extension__.
31007
31008 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31009
31010 * benchtests/bench-memmove-large.c: Print output in JSON
31011 format.
31012 * benchtests/bench-memmove.c: Likewise.
31013
31014 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31015 * benchtests/bench-memchr.c (do_one_test): Likewise.
31016 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31017 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31018 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31019 * benchtests/bench-memmove.c (do_one_test): Likewise.
31020 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31021 * benchtests/bench-memset.c (do_one_test): Likewise.
31022 * benchtests/bench-string.h (test_init): Remove memsets.
31023
31024 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31025
31026 * manual/lang.texi
31027 (Computing the Width of an Integer Data Type): Rename section to
31028 "Width of an Integer Type". Remove inaccurate statement regarding
31029 lack of C language facilities for determining width of integer
31030 types, and reorder content to improve flow and context of
31031 discussion.
31032
31033 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31034
31035 * lang.texi (va_copy): Change standard from ISO to C99.
31036 (__va_copy): Add standard and header annotation.
31037 Update description for clarity of origins and current use.
31038
31039 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31040
31041 [BZ #21941]
31042 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31043 xssqrtqp requires operands to be in Vector Registers
31044 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31045 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31046 (__ieee754_sqrtf128): Likewise.
31047
31048 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31049
31050 * sysdeps/aarch64/memcmp.S (memcmp):
31051 Rewrite of optimized memcmp.
31052
31053 2017-08-10 Florian Weimer <fweimer@redhat.com>
31054
31055 Introduce ld.so exceptions.
31056 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31057 (_dl_exception_create, _dl_exception_create_format)
31058 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31059 (_dl_catch_exception): Declare.
31060 (_dl_catch_error): Update comment.
31061 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31062 errstring, malloced members with exception member.
31063 (_dl_out_of_memory): Remove.
31064 (fatal_error): New function, extracted from _dl_signal_error.
31065 (_dl_signal_exception, _dl_signal_cexception): New functions.
31066 (_dl_signal_error): Call _dl_exception_create to allocate an
31067 exception object.
31068 (_dl_catch_exception): New function, based on _dl_catch_error.
31069 (_dl_catch_error): Implement using _dl_catch_exception.
31070 * elf/dl-exception.c: New file.
31071 * elf/Makefile (dl-routines): Add dl-exception.
31072 (elide-routines.os): Likewise.
31073 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31074 _dl_exception_create_format, _dl_exception_free.
31075 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31076 _dl_signal_exception.
31077 * elf/dl-lookup.c (make_string): Remove.
31078 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31079 _dl_signal_cexception, _dl_exception_free.
31080 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31081 _dl_signal_exception.
31082 * elf/dl-sym.c (do_sym): Likewise.
31083 * elf/dl-version.c (make_string): Remove.
31084 (match_symbol): Use _dl_exception_create_format,
31085 _dl_signal_cexception, _dl_exception_free.
31086 (_dl_check_map_versions): Likewise.
31087 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31088 _dl_catch_exception.
31089 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31090 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31091 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31092 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31093 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31094 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31095 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31096 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31097 Likewise.
31098 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31099 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31100 (ld.so): Likewise.
31101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31102 (ld.so): Likewise.
31103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31104 Likewise.
31105 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31106 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31107 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31108 Likewise.
31109 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31110 Likewise.
31111 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31112
31113 2017-08-10 Florian Weimer <fweimer@redhat.com>
31114
31115 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31116 attribute_hidden, internal_function.
31117 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31118 internal_function.
31119
31120 2017-08-10 Florian Weimer <fweimer@redhat.com>
31121
31122 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31123 function which calls __builtin_unreachable.
31124
31125 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31126
31127 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31128 Indian monetary formatting
31129 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31130 test cases.
31131
31132 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31133
31134 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31135 Fix typo in comment.
31136
31137 [BZ #21928]
31138 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31139 PTRACE_SEIZE_DEVEL): Remove.
31140 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31141 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31142 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31143 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31144 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31145
31146 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31147
31148 * posix/bits/types.h (__qaddr_t): Remove.
31149
31150 [BZ #21457]
31151 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31152 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31153 __glibc_reserved1.
31154 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31155 (ucontext_t): Use __ctx with uc_flags.
31156 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31157 (__ctxt): Likewise.
31158 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31159 __glibc_reserved1.
31160 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31161 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31162 __glibc_reserved1.
31163 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31164 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31165 __glibc_reserved1.
31166 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31167 macro.
31168 (ucontext_t): Use __ctx with uc_flags.
31169 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31170 (ucontext_t): Use __ctx with uc_flags.
31171 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31172 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31173 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31174 (ucontext_t): Use __ctx with uc_flags.
31175 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31176 undefine further down.
31177 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31178 __glibc_reserved1.
31179 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31180 undefine further down.
31181 (ucontext_t): Use __ctx with uc_flags.
31182 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31183 undefine further down.
31184 (ucontext_t): Use __ctx with uc_flags.
31185 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31186 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31187 Rename uc_pad to __glibc_reserved1.
31188 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31189 undefine further down.
31190 (ucontext_t): Use __ctx with uc_flags.
31191 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31192 further down.
31193 (ucontext_t): Use __ctx with uc_flags.
31194 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31195 __ctx with uc_flags.
31196 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31197 (ucontext_t): Use __ctx with uc_flags.
31198 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31199 __ctx with uc_flags.
31200
31201 2017-08-09 Florian Weimer <fweimer@redhat.com>
31202
31203 [BZ #21932]
31204 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31205 before early return.
31206
31207 2017-08-09 Andreas Schwab <schwab@suse.de>
31208
31209 [BZ #21041]
31210 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31211 renamed alias.
31212
31213 [BZ #21041]
31214 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31215 tst-compat-forwarder.
31216 (modules-names): Add tst-compat-forwarder-mod.
31217 ($(objpfx)tst-compat-forwarder): Depend on
31218 $(objpfx)tst-compat-forwarder-mod.so.
31219 * nptl/tst-compat-forwarder.c: New file.
31220 * nptl/tst-compat-forwarder-mod.c: New file.
31221
31222 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31223
31224 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31225 comments.
31226
31227 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31228 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31229 memcpy_falkor.
31230 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31231 Bump.
31232 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31233 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31234 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31235 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31236 Add falkor.
31237 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31238 New macro.
31239
31240 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31241
31242 [BZ #759]
31243 * manual/setjmp.texi (getcontex): Document uc_stack value
31244 compatibility differences.
31245
31246 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31247
31248 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31249 (old_malloc_hook): Likewise.
31250 (old_memalign_hook): Likewise.
31251 (old_realloc_hook): Likewise.
31252 (struct hdr): Likewise.
31253 (flood): Likewise.
31254 (freehook): Likewise.
31255 (mallochook): Likewise.
31256 (memalignhook): Likewise.
31257 (reallochook): Likewise.
31258 (mprobe): Likewise.
31259 * malloc/mtrace.c (mallwatch): Likewise.
31260 (tr_old_free_hook): Likewise.
31261 (tr_old_malloc_hook): Likewise.
31262 (tr_old_realloc_hook): Likewise.
31263 (tr_old_memalign_hook): Likewise.
31264 (tr_where): Likewise.
31265 (lock_and_info): Likewise.
31266 (tr_freehook): Likewise.
31267 (tr_mallochook): Likewise.
31268 (tr_reallochook): Likewise.
31269 (tr_memalignhook): Likewise.
31270 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31271 * misc/mmap.c (__mmap): Likewise.
31272 * misc/mmap64.c (__mmap64): Likewise.
31273 * misc/mprotect.c (__mprotect): Likewise.
31274 * misc/msync.c (msync): Likewise.
31275 * misc/munmap.c (__munmap): Likewise.
31276 * posix/posix_madvise.c (posix_madvise): Likewise.
31277 * socket/send.c (__send): Likewise.
31278 * socket/sendto.c (__sendto): Likewise.
31279 * socket/setsockopt.c (__setsockopt): Likewise.
31280 * string/memcmp.c (__ptr_t): Remove macro.
31281 (MEMCMP): Use void * instead of ptr_t.
31282 * string/memrchr.c (__ptr_t): Remove macro.
31283 (__memrchr): Use void * instead of ptr_t.
31284 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31285 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31286 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31287 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31288 * sysdeps/mach/msync.c (msync): Likewise.
31289 * sysdeps/mach/munmap.c (__munmap): Likewise.
31290 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31291 Likewise.
31292 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31293 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31294 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31295 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31296 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31297 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31298 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31299 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31300 Likewise.
31301 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31302 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31303 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31304 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31305 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31306 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31307 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31308 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31309 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31310 Likewise.
31311 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31312 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31313 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31314 (MEMCMP): Use void * instead of ptr_t.
31315 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31316 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31317
31318 2017-08-08 Florian Weimer <fweimer@redhat.com>
31319
31320 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31321 return statement.
31322
31323 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31324
31325 [BZ #21913]
31326 * csu/libc-tls.c: Include <startup.h> first.
31327 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31328 * elf/dl-tunables.c: Include <startup.h> first.
31329 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31330 * sysdeps/generic/startup.h: New file.
31331 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31332 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31333 (I386_USE_SYSENTER): New. Defined to 0.
31334
31335 2017-08-08 Andreas Schwab <schwab@suse.de>
31336
31337 [BZ #21041]
31338 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31339 * nptl/pt-system.c (system): Likewise.
31340
31341 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31342
31343 [BZ #21780]
31344 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31345 EOPNOTSUPP.
31346 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31347 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31348 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31349 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31350 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31351 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31352 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31353
31354 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31355
31356 [BZ #21899]
31357 * bits/sigaction.h (struct sigaction): Define sa_handler and
31358 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31359 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31360 [__USE_XOPEN_EXTENDED].
31361 (SA_RESTART): Likewise.
31362 (SA_NODEFER): Likewise.
31363 (SA_RESETHAND): Likewise.
31364 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31365 (struct sigaction): Define sa_handler and sa_sigaction using union
31366 also for [__USE_XOPEN_EXTENDED].
31367 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31368 [__USE_XOPEN_EXTENDED].
31369 (SA_RESTART): Likewise.
31370 (SA_NODEFER): Likewise.
31371 (SA_RESETHAND): Likewise.
31372 * sysdeps/unix/sysv/linux/bits/sigaction.h
31373 (struct sigaction): Define sa_handler and sa_sigaction using union
31374 also for [__USE_XOPEN_EXTENDED].
31375 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31376 [__USE_XOPEN_EXTENDED].
31377 (SA_RESTART): Likewise.
31378 (SA_NODEFER): Likewise.
31379 (SA_RESETHAND): Likewise.
31380 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31381 (struct sigaction): Define sa_handler and sa_sigaction using union
31382 also for [__USE_XOPEN_EXTENDED].
31383 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31384 [__USE_XOPEN_EXTENDED].
31385 (SA_RESTART): Likewise.
31386 (SA_NODEFER): Likewise.
31387 (SA_RESETHAND): Likewise.
31388 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31389 (struct sigaction): Define sa_handler and sa_sigaction using union
31390 also for [__USE_XOPEN_EXTENDED].
31391 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31392 [__USE_XOPEN_EXTENDED].
31393 (SA_RESTART): Likewise.
31394 (SA_NODEFER): Likewise.
31395 (SA_RESETHAND): Likewise.
31396 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31397 (struct sigaction): Define sa_handler and sa_sigaction using union
31398 also for [__USE_XOPEN_EXTENDED].
31399 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31400 [__USE_XOPEN_EXTENDED].
31401 (SA_RESTART): Likewise.
31402 (SA_NODEFER): Likewise.
31403 (SA_RESETHAND): Likewise.
31404 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31405 (struct sigaction): Define sa_handler and sa_sigaction using union
31406 also for [__USE_XOPEN_EXTENDED].
31407 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31408 [__USE_XOPEN_EXTENDED].
31409 (SA_RESTART): Likewise.
31410 (SA_NODEFER): Likewise.
31411 (SA_RESETHAND): Likewise.
31412 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31413 (struct sigaction): Define sa_handler and sa_sigaction using union
31414 also for [__USE_XOPEN_EXTENDED].
31415 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31416 [__USE_XOPEN_EXTENDED].
31417 (SA_RESTART): Likewise.
31418 (SA_NODEFER): Likewise. Define directly rather than as alias.
31419 (SA_RESETHAND): Likewise.
31420 (SA_INTERRUPT): Define only for [__USE_MISC].
31421 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31422 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31423 [__USE_MISC].
31424 (SA_STACK): Define only for [__USE_MISC].
31425 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31426 (struct sigaction): Define sa_handler and sa_sigaction using union
31427 also for [__USE_XOPEN_EXTENDED].
31428 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31429 [__USE_XOPEN_EXTENDED].
31430 (SA_RESTART): Likewise.
31431 (SA_NODEFER): Likewise.
31432 (SA_RESETHAND): Likewise.
31433 (SA_NOPTRACE): Define only for [__USE_MISC].
31434
31435 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31436 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31437 (struct catalog_info): Likewise.
31438 * inet/htontest.c (lo): Likewise.
31439 (foo): Likewise.
31440 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31441 * inet/inet_net.c (inet_network): Likewise.
31442 * inet/inet_netof.c (inet_netof): Likewise.
31443 * inet/rcmd.c (__ivaliduser): Likewise.
31444 (iruserok): Likewise.
31445 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31446 * locale/programs/locale-spec.c (locale_special): Likewise.
31447 * nis/nis_findserv.c (struct findserv_req): Likewise.
31448 (__nis_findfastest_with_timeout): Likewise.
31449 * nss/test-netdb.c (test_network): Likewise.
31450 * resolv/inet_neta.c (inet_neta): Likewise.
31451 * resolv/ns_date.c (ns_datetosecs): Likewise.
31452 (SECS_PER_DAY): Likewise.
31453 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31454 Likewise.
31455 * resolv/res_comp.c (__putlong): Likewise.
31456 (__putshort): Likewise.
31457 (_getlong): Likewise.
31458 (_getshort): Likewise.
31459 * resolv/res_debug.c (p_time): Likewise.
31460 (precsize_ntoa): Likewise.
31461 (precsize_aton): Likewise.
31462 (latlon2ul): Likewise.
31463 (loc_aton): Likewise.
31464 (loc_ntoa): Likewise.
31465 * resolv/res_hconf.c (struct netaddr): Likewise.
31466 (_res_hconf_reorder_addrs): Likewise.
31467 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31468 (clnttcp_control): Likewise.
31469 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31470 (clntudp_control): Likewise.
31471 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31472 (clntunix_control): Likewise.
31473 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31474 * sunrpc/rpc/auth.h (union des_block): Likewise.
31475 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31476 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31477 (xdrrec_create): Likewise.
31478 (xdrrec_endofrecord): Likewise.
31479 (flush_out): Likewise.
31480 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31481 (xdrstdio_putlong): Likewise.
31482 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31483 Likewise.
31484
31485 * misc/sys/cdefs.h (__long_double_t): Remove.
31486 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31487 instead of __long_double_t,
31488 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31489
31490 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31491
31492 * benchtests/scripts/compare_strings.py: Avoid display error when
31493 running on a text terminal.
31494
31495 * benchtests/scripts/compare_strings.py (main): Add an
31496 optional -base option.
31497 (process_results): New argument base_func.
31498
31499 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31500 hardcoding memcpy.
31501 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31502 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31503
31504 2017-08-07 Andreas Schwab <schwab@suse.de>
31505
31506 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31507 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31508 * intl/Makefile ($(objpfx)tst-gettext.out)
31509 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31510 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31511 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31512 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31513 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31514 * posix/Makefile ($(objpfx)globtest.out)
31515 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31516 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31517 ($(objpfx)tst-printf.out): Likewise.
31518 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31519 ($(objpfx)tst-setcontext3.out): Likewise.
31520
31521 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31522
31523 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31524 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31525 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31526 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31527 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31528 and mptan-fma.
31529 (CFLAGS-doasin-fma.c): New.
31530 (CFLAGS-dosincos-fma.c): Likewise.
31531 (CFLAGS-e_asin-fma.c): Likewise.
31532 (CFLAGS-e_atan2-fma.c): Likewise.
31533 (CFLAGS-e_exp-fma.c): Likewise.
31534 (CFLAGS-e_log-fma.c): Likewise.
31535 (CFLAGS-e_pow-fma.c): Likewise.
31536 (CFLAGS-halfulp-fma.c): Likewise.
31537 (CFLAGS-mpa-fma.c): Likewise.
31538 (CFLAGS-mpatan-fma.c): Likewise.
31539 (CFLAGS-mpatan2-fma.c): Likewise.
31540 (CFLAGS-mpexp-fma.c): Likewise.
31541 (CFLAGS-mplog-fma.c): Likewise.
31542 (CFLAGS-mpsqrt-fma.c): Likewise.
31543 (CFLAGS-mptan-fma.c): Likewise.
31544 (CFLAGS-s_atan-fma.c): Likewise.
31545 (CFLAGS-sincos32-fma.c): Likewise.
31546 (CFLAGS-slowexp-fma.c): Likewise.
31547 (CFLAGS-slowpow-fma.c): Likewise.
31548 (CFLAGS-s_sin-fma.c): Likewise.
31549 (CFLAGS-s_tan-fma.c): Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31551 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31559 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31561 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31562 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31563 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31564 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31565 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31566 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31567 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31568 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31569 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31570 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31571 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31572 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31573 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31574 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31575 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31576 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31577 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31578 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31579 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31580 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31581
31582 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31583
31584 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31585 (min_of_type_f): New macro.
31586 (min_of_type_): Likewise.
31587 (min_of_type_l): Likewise.
31588 (min_of_type_f128): Likewise.
31589 (min_of_type): Define using __MATH_TG and taking an expression
31590 argument.
31591 (math_check_force_underflow): Pass expression instead of type to
31592 min_of_type.
31593 (math_check_force_underflow_nonneg): Likewise.
31594
31595 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31596
31597 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31598 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31599 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31600
31601 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31602
31603 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31604 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31605 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31606 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31607 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31608 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31609 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31610 memmove_chk-nonshared and memset_chk-nonshared
31611 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31612 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31613 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31615 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31616 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31617 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31618 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31619 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31620 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31621 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31622 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31624 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31626 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31628 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31630 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31632 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31633 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31634 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31635 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31636 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31638 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31639 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31640 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31641 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31642 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31643 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31646 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31647 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31648 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31649 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31650 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31651 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31652 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31653 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31654 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31655 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31656 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31657 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31658 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31659 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31660 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31661 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31662 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31663 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31664 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31665 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31666 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31667 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31668 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31669 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31670 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31671 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31672 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31673 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31674 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31675 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31676 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31677 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31678 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31679 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31680 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31681 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31682 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31688 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31690 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31692 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31694 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31695 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31696 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31697 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31698 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31699 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31700 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31701 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31702 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31703 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31704 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31705 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31706 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31707 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31708 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31709 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31710 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31711 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31712 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31713 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31714 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31715 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31716 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31717 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31718 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31719
31720 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31721
31722 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31723 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31724 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31725 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31726 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31727 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31728 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31729 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31730 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31731 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31732 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31733 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31734 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31735 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31736 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31737 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31738 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31739 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31740 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31741 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31742 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31781 ...
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31783 Don't include <sysdep.h> nor <init-arch.h>.
31784 (_ZGVbN2v_cos): Removed.
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31786 ...
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31788 Don't include <sysdep.h> nor <init-arch.h>.
31789 (_ZGVdN4v_cos): Removed.
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31791 ...
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31793 Don't include <sysdep.h> nor <init-arch.h>.
31794 (_ZGVeN8v_cos): Removed.
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31796 ...
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31798 Don't include <sysdep.h> nor <init-arch.h>.
31799 (_ZGVbN2v_exp): Removed.
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31801 ...
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31803 Don't include <sysdep.h> nor <init-arch.h>.
31804 (_ZGVdN4v_exp): Removed.
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31806 ...
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31808 Don't include <sysdep.h> nor <init-arch.h>.
31809 (_ZGVeN8v_exp): Removed.
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31811 ...
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31813 Don't include <sysdep.h> nor <init-arch.h>.
31814 (_ZGVbN2v_log): Removed.
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31816 ...
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31818 Don't include <sysdep.h> nor <init-arch.h>.
31819 (_ZGVdN4v_log): Removed.
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31821 ...
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31823 Don't include <sysdep.h> nor <init-arch.h>.
31824 (_ZGVeN8v_log): Removed.
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31826 ...
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31828 Don't include <sysdep.h> nor <init-arch.h>.
31829 (_ZGVbN2vv_pow): Removed.
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31831 ...
31832 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31833 Don't include <sysdep.h> nor <init-arch.h>.
31834 (_ZGVdN4vv_pow): Removed.
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31836 ...
31837 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31838 Don't include <sysdep.h> nor <init-arch.h>.
31839 (_ZGVeN8vv_pow): Removed.
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31841 ...
31842 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31843 Don't include <sysdep.h> nor <init-arch.h>.
31844 (_ZGVbN2v_sin): Removed.
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31846 ...
31847 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31848 Don't include <sysdep.h> nor <init-arch.h>.
31849 (_ZGVbN4v_sin): Removed.
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31851 ...
31852 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31853 Don't include <sysdep.h> nor <init-arch.h>.
31854 (_ZGVbN8v_sin): Removed.
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31856 ...
31857 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31858 Don't include <sysdep.h> nor <init-arch.h>.
31859 (_ZGVbN2vvv_sincos): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31861 ...
31862 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31863 Don't include <sysdep.h> nor <init-arch.h>.
31864 (_ZGVdN4vvv_sincos): Removed.
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31866 ...
31867 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31868 Don't include <sysdep.h> nor <init-arch.h>.
31869 (_ZGVeN8vvv_sincos): Removed.
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31871 ...
31872 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31873 Don't include <sysdep.h> nor <init-arch.h>.
31874 (_ZGVeN16v_cosf): Removed.
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31876 ...
31877 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31878 Don't include <sysdep.h> nor <init-arch.h>.
31879 (_ZGVbN4v_cosf): Removed.
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31881 ...
31882 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31883 Don't include <sysdep.h> nor <init-arch.h>.
31884 (_ZGVdN8v_cosf): Removed.
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31886 ...
31887 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31888 Don't include <sysdep.h> nor <init-arch.h>.
31889 (_ZGVeN16v_expf): Removed.
31890 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31891 ...
31892 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31893 Don't include <sysdep.h> nor <init-arch.h>.
31894 (_ZGVbN4v_expf): Removed.
31895 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31896 ...
31897 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31898 Don't include <sysdep.h> nor <init-arch.h>.
31899 (_ZGVdN8v_expf): Removed.
31900 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31901 ...
31902 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31903 Don't include <sysdep.h> nor <init-arch.h>.
31904 (_ZGVeN16v_logf): Removed.
31905 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31906 ...
31907 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31908 Don't include <sysdep.h> nor <init-arch.h>.
31909 (_ZGVbN4v_logf): Removed.
31910 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31911 ...
31912 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31913 Don't include <sysdep.h> nor <init-arch.h>.
31914 (_ZGVdN8v_logf): Removed.
31915 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31916 ...
31917 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31918 Don't include <sysdep.h> nor <init-arch.h>.
31919 (_ZGVeN16vv_powf): Removed.
31920 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31921 ...
31922 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31923 Don't include <sysdep.h> nor <init-arch.h>.
31924 (_ZGVbN4vv_powf): Removed.
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31926 ...
31927 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31928 Don't include <sysdep.h> nor <init-arch.h>.
31929 (_ZGVdN8vv_powf): Removed.
31930 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31931 ...
31932 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31933 Don't include <sysdep.h> nor <init-arch.h>.
31934 (_ZGVeN16vvv_sincosf): Removed.
31935 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31936 ...
31937 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31938 Don't include <sysdep.h> nor <init-arch.h>.
31939 (_ZGVbN4vvv_sincosf): Removed.
31940 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31941 ...
31942 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31943 Don't include <sysdep.h> nor <init-arch.h>.
31944 (_ZGVdN8vvv_sincosf): Removed.
31945 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31946 ...
31947 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31948 Don't include <sysdep.h> nor <init-arch.h>.
31949 (_ZGVeN16v_sinf): Removed.
31950 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31951 ...
31952 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31953 Don't include <sysdep.h> nor <init-arch.h>.
31954 (_ZGVbN4v_sinf): Removed.
31955 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31956 ...
31957 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31958 Don't include <sysdep.h> nor <init-arch.h>.
31959 (_ZGVdN8v_sinf): Removed.
31960
31961 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31962
31963 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31964 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31965 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31966 s_rint-sse4_1 and s_rintf-sse4_1.
31967 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31968 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31969 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31970 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31971 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31972 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31973 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31974 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31975 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31976 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31977 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31978 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31979 (__ceil): Removed.
31980 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31981 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31982 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31983 (__ceilf): Removed.
31984 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31985 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31986 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31987 (__floor): Removed.
31988 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31989 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31990 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31991 (__floorf): Removed.
31992 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31993 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31994 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31995 (__nearbyint): Removed.
31996 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31997 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31998 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31999 (__nearbyintf): Removed.
32000 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32001 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32002 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32003 (__rint): Removed.
32004 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32005 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32006 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32007 (__rintf): Removed.
32008
32009 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32010
32011 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32012 SHARED. Avoid dynamic relocation against main in static PIE.
32013
32014 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32015
32016 [BZ #21815]
32017 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32018 (LDFLAGS-tst-prelink): Likewise.
32019
32020 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32021
32022 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32023 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32024 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32025 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32026 (INTERNAL_SYSCALL_NCS): Likewise.
32027 (LOADARGS_1): Likewise.
32028 (LOADARGS_5): Likewise.
32029 (RESTOREARGS_1): Likewise.
32030 (RESTOREARGS_5): Likewise.
32031
32032 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32033
32034 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32035 (MEMPCPY_SYMBOL): Likewise.
32036 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32037 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32038 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32039 in libc.a.
32040 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32041 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32042 Likewise.
32043 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32044 (__hidden_ver1): Don't use in libc.a.
32045 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32046 (__mempcpy): Don't create a weak alias in libc.a.
32047 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32048 libc.a.
32049 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32050 (__hidden_ver1): Don't use in libc.a.
32051
32052 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32053
32054 * config.make.in (have-insert): New.
32055 * configure.ac (libc_cv_insert): New. Set to yes if linker
32056 supports INSERT in linker script.
32057 (AC_SUBST(libc_cv_insert): New.
32058 * configure: Regenerated.
32059 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32060 if $(have-insert) == yes.
32061
32062 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32063
32064 * elf/Makefile (tests): Add vismain only if
32065 $(have-protected-data) == yes.
32066 (tests-pie): Likewise.
32067
32068 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32069
32070 [BZ #21871]
32071 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32072 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32073
32074 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32075
32076 [BZ #21790]
32077 * sysdeps/i386/i586/memset.S
32078 (__memset_zero_constant_len_parameter): Removed.
32079 * sysdeps/i386/i686/memset.S
32080 (__memset_zero_constant_len_parameter): Likewise.
32081 * sysdeps/i386/i686/multiarch/memset_chk.S
32082 (__memset_zero_constant_len_parameter): Likewise.
32083 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32084 Likewise.
32085
32086 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32087
32088 * stdlib/getentropy.c (getentropy): Change return type to int.
32089
32090 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32091
32092 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32093
32094 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32095
32096 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32097 u_intN_t.
32098 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32099 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32100 Likewise.
32101 (ieee_float_shape_type): Likewise.
32102 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32103 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32104 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32105 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32106 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32107 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32108 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32109 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32110 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32111 Likewise.
32112 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32113 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32114 (__ieee754_yn): Likewise.
32115 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32116 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32117 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32118 Likewise.
32119 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32120 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32121 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32122 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32123 (__erfc): Likewise.
32124 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32125 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32126 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32127 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32128 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32129 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32130 Likewise.
32131 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32132 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32133 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32134 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32135 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32136 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32137 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32138 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32139 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32140 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32141 (__issignaling): Likewise.
32142 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32143 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32144 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32145 Likewise.
32146 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32147 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32148 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32149 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32150 Likewise.
32151 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32152 Likewise.
32153 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32154 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32155 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32156 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32157 (__erfcf): Likewise.
32158 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32159 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32160 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32161 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32162 Likewise.
32163 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32164 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32165 Likewise.
32166 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32167 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32168 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32169 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32170 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32171 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32172 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32173 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32174 Likewise.
32175 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32176 Likewise.
32177 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32178 Likewise.
32179 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32180 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32181 Likewise.
32182 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32183 Likewise.
32184 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32185 (__ieee754_ynl): Likewise.
32186 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32187 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32188 Likewise.
32189 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32190 Likewise.
32191 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32192 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32193 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32194 Likewise.
32195 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32196 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32197 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32198 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32199 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32200 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32201 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32202 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32203 Likewise.
32204 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32205 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32206 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32207 Likewise.
32208 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32209 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32210 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32211 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32212 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32213 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32214 Likewise.
32215 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32216 Likewise.
32217 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32218 Likewise.
32219 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32220 Likewise.
32221 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32222 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32223 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32224 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32225 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32226 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32227 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32228 Likewise.
32229 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32230 Likewise.
32231 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32232 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32233 Likewise.
32234 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32235 (__ieee754_remainderl): Likewise.
32236 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32237 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32238 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32239 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32240 Likewise.
32241 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32242 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32243 Likewise.
32244 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32245 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32246 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32247 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32248 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32249 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32250 Likewise.
32251 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32252 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32253 (__ieee754_y0l): Likewise.
32254 (pzero): Likewise.
32255 (qzero): Likewise.
32256 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32257 (__ieee754_y1l): Likewise.
32258 (pone): Likewise.
32259 (qone): Likewise.
32260 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32261 (__ieee754_ynl): Likewise.
32262 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32263 (__ieee754_lgammal_r): Likewise.
32264 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32265 Likewise.
32266 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32267 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32268 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32269 (__erfcl): Likewise.
32270 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32271 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32272 Likewise.
32273 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32274 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32275 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32276 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32277 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32278 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32279 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32280 Likewise.
32281 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32282 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32283 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32284 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32285 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32286 Likewise.
32287 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32288 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32289 Likewise.
32290 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32291 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32292 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32293 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32294 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32295
32296 2017-08-03 Florian Weimer <fweimer@redhat.com>
32297
32298 [BZ #21885]
32299 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32300 on memory allocation failure.
32301
32302 2017-08-03 Alan Modra <amodra@gmail.com>
32303
32304 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32305 tst-tlsopt-powerpc.c with function name change and no test harness.
32306 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32307 Call tls_get_addr_opt_test.
32308 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32309 (modules-names): Add mod-tlsopt-powerpc.
32310 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32311 (tst-tlsopt-powerpc): Depend on .so.
32312 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32313 define. Expand use in TLS_GD and TLS_LD.
32314
32315 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32316
32317 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32318 function.
32319 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32320
32321 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32322
32323 [BZ #21686]
32324 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32325 comparing size with that of double.
32326 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32327 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32328 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32329 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32330 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32331 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32332 unsigned __int128 types.
32333
32334 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32335
32336 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32337 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32338 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32339 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32340 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32341
32342 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32343
32344 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32345
32346 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32347
32348 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32349 of SHARED.
32350 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32351 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32352 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32353 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32354 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32355 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32356 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32357
32358 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32359
32360 [BZ #21685]
32361 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32362 bit-field expressions passed to sizeof or typeof.
32363 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32364 (__TGMATH_F128): Likewise.
32365 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32366 (__TGMATH_CF128): Likewise.
32367 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32368 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32369 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32370 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32371 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32372 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32373 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32374 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32375 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32376 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32377 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32378 (__TGMATH_UNARY_IMAG): Likewise.
32379 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32380 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32381 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32382 type.
32383 (define_vars_for_type): Handle bit_field type specially.
32384 (Tests.__init__): Declare structure with bit-field element.
32385
32386 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32387
32388 [BZ #21791]
32389 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32390 (MEMCPY_CHK): Define only if SHARED is defined.
32391 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32392 Likewise.
32393 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32394 Likewise.
32395
32396 See ChangeLog.18 for earlier changes.