]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Fix comment typo in pthread_mutex_trylock.c
[thirdparty/glibc.git] / ChangeLog
1 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2
3 * nptl/pthread_mutex_trylock.c: Fix comment.
4
5 2019-02-19 Carlos O'Donell <carlos@redhat.com>
6
7 * nptl/pthread_tryjoin.c: Fix comment.
8
9 2019-02-18 Joseph Myers <joseph@codesourcery.com>
10
11 [BZ #24231]
12 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
13 after R_SPARC_H34 case.
14
15 2019-02-18 Florian Weimer <fweimer@redhat.com>
16
17 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
18 (getanswer): Do not call Dprintf.
19 (res_gethostbyname2_context): Likewise.
20 (res_gethostbyaddr_context): Likewise.
21
22 2019-02-18 Florian Weimer <fweimer@redhat.com>
23
24 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
25 declaration.
26 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
27 Remove definitions.
28 * libio/stdfiles.c: Update comment.
29 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
30 set _IO_stdin, _IO_stdout, _IO_stderr.
31 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
32 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
33 inline function.
34 (_IO_deallocate_file): New inline function.
35 * libio/iolibio.h (_IO_vprintf): Remove definition.
36 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
37 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
38 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
39 _IO_legacy_file.
40 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
41 __builtin_expect. Use _IO_legacy_file.
42
43 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
44
45 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
46 Initialize ctid with a known value and remove update of ctid
47 after clone.
48 (wait_tid): Adjust arguments and call futex_wait with ctid_val
49 as assumed current value of ctid_ptr.
50
51 2019-02-15 Florian Weimer <fweimer@redhat.com>
52
53 Check that non-sysdeps headers have wrapper headers.
54 * scripts/check-wrapper-headers.py: New file.
55 * Makefile (tests-special): Add check-wrapper-headers.out.
56 (check-wrapper-headers.out): New target.
57 * Rules (tests-special): Add check-wrapper-headers.out.
58 (check-wrapper-headers.out): New target.
59
60 2019-02-15 Florian Weimer <fweimer@redhat.com>
61
62 Add missing header wrappers under include/.
63 * include/ar.h: New file.
64 * include/bits/mqueue2.h: Likewise.
65 * include/bits/stdio.h: Likewise.
66 * include/bits/stdio2.h: Likewise.
67 * include/fstab.h: Likewise.
68 * include/fts.h: Likewise.
69 * include/lastlog.h: Likewise.
70 * include/netinet/icmp6.h: Likewise.
71 * include/netinet/igmp.h: Likewise.
72 * include/netinet/ip6.h: Likewise.
73 * include/re_comp.h: Likewise.
74 * include/regexp.h: Likewise.
75 * include/rpcsvc/bootparam.h: Likewise.
76 * include/rpcsvc/yp_prot.h: Likewise.
77 * include/sys/random.h: Likewise.
78 * include/sys/stropts.h: Likewise.
79 * include/sys/ttychars.h: Likewise.
80 * include/sys/vfs.h: Likewise.
81 * include/wait.h: Likewise.
82
83 2019-02-15 Florian Weimer <fweimer@redhat.com>
84
85 * nptl_db/proc_service.h: Move to ...
86 * sysdeps/nptl/proc_service.h: ... here.
87 * nptl_db/thread_db.h: Move to ...
88 * sysdeps/nptl/thread_db.h: ... here.
89 * nptl/descr.h: Include <thread_db.h>.
90
91 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
92
93 * io/Makefile (tests): Add tst-lockf.
94 * io/lockf.c (lockf): Use __fcntl and only define for
95 !__OFF_T_MATCHES_OFF64_T.
96 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
97 __OFF_T_MATCHES_OFF64_T case.
98 * io/tst-lockf.c: New file.
99 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
100 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
101 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
102 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
103 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
105 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
106 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
107 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
108
109 2019-02-15 Florian Weimer <fweimer@redhat.com>
110
111 [BZ #24211]
112 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
113 pd->result after the thread descriptor has been freed.
114
115 2019-02-15 Joseph Myers <joseph@codesourcery.com>
116
117 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
118 from function return type.
119
120 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
121
122 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
123
124 * scripts/test_printers_common.py: Set TERM to a known harmless
125 value.
126
127 2019-02-14 Joseph Myers <joseph@codesourcery.com>
128
129 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
130 (xdr_u_int): Likewise.
131 (xdr_enum): Likewise.
132 (xdr_bytes): Reword fall-through comment.
133 (xdr_string): Likewise.
134
135 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
136
137 [BZ #2421]
138 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
139 (tests): Add tst-join8 tst-join9.
140 * nptl/lll_timedwait_tid.c: Remove file.
141 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
142 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
143 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
144 * nptl/pthread_join_common.c (timedwait_tid): New function.
145 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
146 is set.
147 * nptl/tst-join5.c (thread_join): New function.
148 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
149 check.
150 * nptl/tst-join8.c: New file.
151 * nptl/tst-join9.c: Likewise.
152 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
153 lll_futex_timed_wait_cancel): Add generic macros.
154 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
155 Remove definitions.
156 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
157 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
158 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
159 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
160 Remove function.
161 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
162 Likewise.
163 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
164 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
165 (lll_futex_timed_wait_cancel): New macro.
166
167 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
168
169 * benchtests/Makefile: Add malloc-simple benchmark.
170 * benchtests/bench-malloc-simple.c: New benchmark.
171
172 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
173
174 * benchtests/bench-memmove.c (do_one_test): Remove unused
175 ORIG_SRC.
176 (do_test): Adjust.
177 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
178 ORIG_SRC.
179 (do_test): Adjust.
180
181 2019-01-13 Jim Wilson <jimw@sifive.com>
182
183 [BZ #24040]
184 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
185 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
186 (func): New.
187 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
188 call func directly.
189 * nptl/Makefile (tests): Add tst-unwind-thread.
190 (CFLAGS-tst-unwind-thread.c): Define.
191 * nptl/tst-unwind-thread.c: New file.
192 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
193 as undefined.
194
195 2019-02-13 Joseph Myers <joseph@codesourcery.com>
196
197 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
198 comment wording.
199 * nis/nis_call.c (__do_niscall3): Likewise.
200
201 * catgets/gencat.c (normalize_line): Use braces around empty
202 'else' body.
203 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
204 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
205 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
206 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
207 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
208 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
209 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
210 definition.
211
212 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
213 execlp returns.
214
215 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
216
217 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
218 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
219 * benchtests/bench-strchr.c (stupid_strchr): Remove.
220 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
221 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
222 * benchtests/bench-strlen.c (builtin_strlen): Remove.
223 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
224 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
225 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
226 * benchtests/bench-strspn.c (stupid_strspn): Remove.
227 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
228 * benchtests/bench-bcopy.c: Delete file.
229 * benchtests/bench-bzero.c: Likewise.
230 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
231 (simple_memccpy): Remove.
232 (generic_memccpy): Add function.
233 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
234 * benchtests/bench-memmove.c (simple_bcopy): Remove.
235 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
236 (generic_mempcpy): Add new function.
237 * benchtests/bench-memset.c (simple_bzero): Remove.
238 (builtin_bzero): Remove.
239 (builtin_memset): Remove.
240 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
241 (generic_rawmemchr): Add new function.
242
243 2019-02-12 Florian Weimer <fweimer@redhat.com>
244
245 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
246
247 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
248
249 [BZ #24122]
250 * elf/Makefile (tests): Add tst-audit13.
251 (modules-names): Add tst-audit13mod1.
252 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
253 rule.
254 * elf/tst-audit13.c: New file.
255 * elf/tst-audit13mod1.c: Likewise.
256
257 2019-02-12 Florian Weimer <fweimer@redhat.com>
258
259 [BZ #24122]
260 * elf/rtld.c (unload_audit_module): New function.
261 (report_audit_module_load_error): Likewise.
262 (load_audit_module): Likewise. Extracted from dl_main. Call
263 _dl_close if the laversion symbol cannot be found. Use early
264 returns for error handling. Add malloc error check. Check for a
265 zero return value from la_version. Remove spurious comment about
266 static TLS initialization. Remove useless casts.
267 (notify_audit_modules_of_loaded_object): New function. Extracted
268 from dl_main.
269 (load_audit_module): Likewise.
270 (dl_main): Call load_audit_modules.
271
272 2019-02-12 Joseph Myers <joseph@codesourcery.com>
273
274 * elf/dl-exception.c (_dl_exception_create_format): Add
275 fall-through comments.
276 * elf/ldconfig.c (parse_conf_include): Likewise.
277 * elf/rtld.c (print_statistics): Likewise.
278 * locale/programs/charmap.c (parse_charmap): Likewise.
279 * misc/mntent_r.c (__getmntent_r): Likewise.
280 * posix/wordexp.c (parse_arith): Likewise.
281 (parse_backtick): Likewise.
282 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
283 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
284 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
285
286 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
287
288 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
289 Use float instead of double.
290
291 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
292
293 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
294
295 2019-02-08 Joseph Myers <joseph@codesourcery.com>
296
297 * sysdeps/powerpc/bits/mathinline.h: Remove.
298
299 2019-02-08 Florian Weimer <fweimer@redhat.com>
300
301 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
302 * math/bits/math-finite.h: Move to ...
303 * bits/math-finite.h: ... here.
304
305 2019-02-08 Florian Weimer <fweimer@redhat.com>
306
307 * sysdeps/generic/bits/unistd_ext.h: Move to ...
308 * bits/unistd_ext.h: here.
309
310 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
311
312 [BZ #21915]
313 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
314 * nss/tst-nss-files-hosts-long.c: New file.
315 * nss/tst-nss-files-hosts-long.root: New directory.
316 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
317 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
318
319 2019-02-08 Florian Weimer <fweimer@redhat.com>
320
321 * include/bits/unistd_ext.h: Remove file.
322 * posix/bits/unistd_ext.h: Move to ...
323 * sysdeps/generic/bits/unistd_ext.h: ... here.
324
325 2019-02-08 Florian Weimer <fweimer@redhat.com>
326
327 * include/bits/unistd_ext.h: New file.
328
329 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
330
331 * time/tst-strftime2.c: Use array_length macros instead of magic
332 numbers.
333
334 2019-02-08 Florian Weimer <fweimer@redhat.com>
335
336 [BZ #24161]
337 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
338 argument.
339 * nptl/register-atfork.c (__run_fork_handlers): Only perform
340 locking if the new do_locking argument is true.
341 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
342 __run_fork_handlers.
343
344 2019-02-08 Florian Weimer <fweimer@redhat.com>
345
346 [BZ #6399]
347 Linux: Add gettid system call wrapper.
348 * posix/Makefile (headers): Add bits/unistd_ext.h.
349 * posix/bits/unistd_ext.h: New file.
350 * posix/unistd.h: Include it.
351 * manual/process.texi (Process Identification): Document gettid.
352 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
353 tst-gettid, tst-gettid-kill.
354 (tst-gettid): Link with $(shared-thread-library).
355 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
356 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
357 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
358 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
359 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
360 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
361 Add gettid.
362 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
363 Likewise.
364 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
365 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
366 Likewise.
367 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
368 Likewise.
369 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
370 Likewise.
371 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
372 Likewise.
373 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
374 Likewise.
375 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
376 Likewise.
377 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
378 Likewise.
379 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
380 (GLIBC_2.30): Likewise.
381 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
382 (GLIBC_2.30): Likewise.
383 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
384 (GLIBC_2.30): Likewise.
385 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
386 (GLIBC_2.30): Likewise.
387 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
388 Likewise.
389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
390 (GLIBC_2.30): Likewise.
391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
392 (GLIBC_2.30): Likewise.
393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
394 (GLIBC_2.30): Likewise.
395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
396 (GLIBC_2.30): Likewise.
397 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
398 Likewise.
399 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
400 Likewise.
401 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
402 Likewise.
403 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
404 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
405 Likewise.
406 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
407 Likewise.
408 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
409 Likewise.
410 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
411 Likewise.
412 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
413
414 2019-02-07 Florian Weimer <fweimer@redhat.com>
415
416 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
417 compatibility symbols.
418
419 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
420
421 [BZ #24180]
422 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
423 Add compiler barriers and comments.
424
425 2019-02-07 Florian Weimer <fweimer@redhat.com>
426
427 * include/array_length.h (array_length): Do not use a statement
428 expression and _Static_assert, so that array_length can be used at
429 file scope and as a constant expression.
430
431 2019-02-07 Florian Weimer <fweimer@redhat.com>
432
433 * support/xdlfcn.h (xdlmopen): Declare.
434 * support/xdlmopen.c: New file.
435 * support/Makefile (libsupport-routines): Add xdlmopen.
436
437 2019-02-06 Joseph Myers <joseph@codesourcery.com>
438
439 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
440 before return type, without separate inline.
441 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
442 * elf/dl-tunables.h (tunable_is_name): Likewise.
443 * malloc/malloc.c (do_set_trim_threshold): Likewise.
444 (do_set_top_pad): Likewise.
445 (do_set_mmap_threshold): Likewise.
446 (do_set_mmaps_max): Likewise.
447 (do_set_mallopt_check): Likewise.
448 (do_set_perturb_byte): Likewise.
449 (do_set_arena_test): Likewise.
450 (do_set_arena_max): Likewise.
451 (do_set_tcache_max): Likewise.
452 (do_set_tcache_count): Likewise.
453 (do_set_tcache_unsorted_limit): Likewise.
454 * nis/nis_subr.c (count_dots): Likewise.
455 * nptl/allocatestack.c (advise_stack_range): Likewise.
456 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
457 (do_sin): Likewise.
458 (reduce_sincos): Likewise.
459 (do_sincos): Likewise.
460 * sysdeps/unix/sysv/linux/x86/elision-conf.c
461 (do_set_elision_enable): Likewise.
462 (TUNABLE_CALLBACK_FNDECL): Likewise.
463
464 2019-02-06 Florian Weimer <fweimer@redhat.com>
465
466 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
467 (xdlsym): Use dlerror to detect a NULL symbol.
468
469 2019-02-06 Florian Weimer <fweimer@redhat.com>
470
471 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
472 <stap-probe.h>.
473 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
474
475 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
476
477 * libio/tst-bz24153.c (wide): Use wide char format specifier.
478
479 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
480
481 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
482 __wmemcmp and weak alias to wmemcmp.
483
484 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
485
486 [BZ #23403]
487 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
488 TLS_TCB_AT_TP tls variant.
489 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
490 Add alignment checks.
491 * support/Makefile (libsupport-routines): Add xposix_memalign and
492 xpthread_setstack.
493 * support/support.h: Add xposix_memalign.
494 * support/xthread.h: Add xpthread_attr_setstack.
495 * support/xposix_memalign.c: New File.
496 * support/xpthread_attr_setstack.c: Likewise.
497
498 2019-02-05 Florian Weimer <fweimer@redhat.com>
499
500 [BZ #24164]
501 arm: Use "nr" constraint for Systemtap probes, to avoid the
502 compiler using memory operands for constants, due to the "o"
503 alternative in the default "nor" constraint.
504 * include/stap-probe.h [USE_STAP_PROBE]: Include
505 <stap-probe-machine.h>
506 * sysdeps/generic/stap-probe-machine.h: New file.
507 * sysdeps/arm/stap-probe-machine.h: Likewise.
508
509 2019-02-04 Joseph Myers <joseph@codesourcery.com>
510
511 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
512 with 0, not tcache->entries[tc_idx].
513
514 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
515 once.
516
517 2019-02-04 Andreas Schwab <schwab@suse.de>
518
519 [BZ #16976]
520 [BZ #17396]
521 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
522 looking up collating elements match against (wide) character
523 sequence instead of name. Correct alignment adjustment.
524 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
525 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
526 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
527 (LOCALES): Add cs_CZ.ISO-8859-2.
528 * posix/tst-fnmatch4.c: New file.
529 * posix/tst-fnmatch5.c: New file.
530 * include/wchar.h (__wmemcmp): Declare.
531 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
532 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
533 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
534 * sysdeps/s390/wmemcmp.c: Likewise.
535
536 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
537
538 [BZ #24155]
539 CVE-2019-7309
540 * NEWS: Updated for CVE-2019-7309.
541 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
542 upper 32 bits of RDX register for x32. Use unsigned Jcc
543 instructions, instead of signed.
544 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
545 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
546
547 2019-02-04 Florian Weimer <fweimer@redhat.com>
548
549 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
550 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
551 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
552 Likewise.
553 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
554 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
555 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
556 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
557 Likewise.
558 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
559 Likewise.
560 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
561 Likewise.
562 (posix_spawn_file_actions_addopen): Likewise.
563 (posix_spawn_file_actions_addclose): Likewise.
564 (posix_spawn_file_actions_adddup2): Likewise.
565 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
566 qualifiers.
567 (posix_spawn_file_actions_addfchdir_np): Likewise.
568
569 2019-02-04 David Newall <glibc@davidnewall.com>
570
571 elf: Implement --preload option for the dynamic linker.
572 * elf/rtld.c (preloadarg): New variable.
573 (handle_preload_list): Pass through “where” argument to
574 do_preload.
575 (dl_main): Handle "--preload" and add second call to
576 handle_preload_list.
577 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
578 (tst-rtld-preload-OBJS): Set variable.
579 (tst-rtld-preload.out): New target.
580 * elf/tst-rtld-preload.sh: New file.
581
582 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
583
584 * Makefile (testrun.sh): Exit in case of incorrect argument.
585
586 2019-02-04 Florian Weimer <fweimer@redhat.com>
587
588 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
589 alignment gaps.
590
591 2019-02-03 Florian Weimer <fweimer@redhat.com>
592
593 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
594 implicit overflow checks.
595
596 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
597
598 * stdlib/isomac.c: Include <unistd.h>.
599
600 2019-02-03 Florian Weimer <fweimer@redhat.com>
601
602 * include/time.h (__tzfile_default): Use int, not long int, for
603 the GMT offsets.
604 * time/tzfile.c (struct ttinfo): Change type of the offset member
605 to int.
606 (__tzfile_read): Remove useless cast.
607 (__tzfile_default): Adjust prototype.
608 * time/tzset.c (tz_rule): Change type of the offset member to int.
609 (parse_offset): Change the type of the sign variable to int.
610
611 2019-02-03 Florian Weimer <fweimer@redhat.com>
612
613 [BZ #24153]
614 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
615 * libio/getchar.c (getchar): Likewise.
616 * libio/getchar_u.c (getchar_unlocked): Likewise.
617 * libio/getwchar.c (getwchar): Likewise.
618 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
619 * libio/iogets.c (_IO_gets): Likewise.
620 * libio/vscanf.c (_IO_vscanf): Likewise.
621 * libio/vwscanf.c (__vwscanf): Likewise.
622 * libio/tst-bz24153.c: New file.
623 * libio/Makefile (tests): Add it.
624
625 2019-02-02 Florian Weimer <fweimer@redhat.com>
626
627 [BZ #14829]
628 * manual/resource.texi (Basic Scheduling Functions): Add
629 portability note. Change process to task throughout the section.
630 Remove incorrect comment about sched_yield as it affects
631 tasks/threads, not entire processes.
632 * sysdeps/unix/sysv/linux/bits/posix_opt.h
633 (_POSIX_PRIORITY_SCHEDULING): Update comment.
634
635 2019-02-01 Joseph Myers <joseph@codesourcery.com>
636
637 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
638 * configure: Regenerated.
639 * manual/install.texi (Tools for Compilation): Update minimum GCC
640 version.
641 * INSTALL: Regenerated.
642
643 2019-02-01 Florian Weimer <fweimer@redhat.com>
644
645 * support/support_test_compare_string.c
646 (support_test_compare_string): Use "string" in error message.
647 * support/tst-test_compare_string.c (do_test): Adjust.
648
649 2019-02-01 Florian Weimer <fweimer@redhat.com>
650
651 * support/support_format_address_family.c
652 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
653
654 2019-02-01 Florian Weimer <fweimer@redhat.com>
655
656 * manual/socket.texi (Internet Address Formats): Clarify the byte
657 order of struct sockaddr_in, struct sockaddr_in6. Document
658 sin6_flowinfo and sin6_scope_id.
659
660 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
661
662 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
663 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
664 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
665 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
666 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
667 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
668
669 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
670
671 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
672 [!MEMCHR](MEMCHR): Set to __memchr.
673 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
674 Add memchr_generic and memchr_nosimd.
675 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
676 (__libc_ifunc_impl_list): Add memchr ifuncs.
677 * sysdeps/aarch64/multiarch/memchr.c: New file.
678 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
679 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
680
681 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
682
683 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
684 Add memset_emag.
685 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
686 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
687 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
688 Add IS_EMAG check for ifunc dispatch.
689 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
690 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
691
692 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
693
694 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
695 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
696 Add emag.
697 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
698 New macro.
699
700 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
701
702 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
703
704 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
705
706 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
707 syscall-template file.
708
709 2019-01-31 Carlos O'Donell <carlos@redhat.com>
710 Torvald Riegel <triegel@redhat.com>
711 Rik Prohaska <prohaska7@gmail.com>
712
713 [BZ# 23844]
714 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
715 tst-rwlock-trywrlock-stall.
716 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
717 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
718 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
719 Set __wrphase_fute to 1 only if we started the write phase.
720 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
721 * nptl/tst-rwlock-trywrlock-stall.c: New file.
722 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
723 * support/xpthread_rwlock_destroy.c: New file.
724 * support/xthread.h: Declare xpthread_rwlock_destroy.
725
726 2019-02-01 Joseph Myers <joseph@codesourcery.com>
727
728 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
729 version to 4.0.2.
730
731 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
732
733 [BZ #24051]
734 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
735 * libio/fileops.c (_IO_new_file_underflow): Likewise
736 * libio/wfileops.c (_IO_wfile_underflow): Likewise
737 * libio/putchar.c (putchar): Likewise.
738 * libio/putchar_u.c (putchar_unlocked): Likewise.
739 * libio/putwchar.c (putchar): Likewise.
740 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
741 * libio/tst-bz24051.c: New test.
742 * libio/Makefile (tests): Add tst-bz24051
743
744 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
745
746 regex: fix read overrun [BZ #24114]
747 Problem found by AddressSanitizer, reported by Hongxu Chen in:
748 https://debbugs.gnu.org/34140
749 * posix/regexec.c (proceed_next_node):
750 Do not read past end of input buffer.
751
752 2019-01-31 Florian Weimer <fweimer@redhat.com>
753
754 [BZ #24059]
755 * nss/nss_files/files-alias.c (get_next_alias): Handle
756 continuation line without newline at the end.
757 * nss/tst-nss-files-alias-truncated.c: New file.
758 * nss/Makefile [$(build-shared)] (tests): Add
759 tst-nss-files-alias-truncated.
760 (tst-nss-files-alias-truncated): Link with libnss_files.so.
761 * support/namespace.h (struct support_chroot_configuration): Add
762 aliases member.
763 (struct support_chroot): Add path_aliases member.
764 * support/support_chroot.c (support_chroot_create): Handle
765 aliases.
766 (support_chroot_free): Free path_aliases.
767
768 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
769
770 * version.h (RELEASE): Set to "development".
771 (VERSION): Set to "2.29.9000".
772 * NEWS: Add section for 2.30.
773
774 * version.h (RELEASE): Set to "stable".
775 (VERSION): Set to "2.29".
776 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
777
778 * NEWS: Add the list of bugs fixed in 2.29.
779 * manual/contrib.texi: Update contributors list with some more
780 names.
781 * manual/install.texi: Update latest versions of packages
782 tested.
783 * INSTALL: Regenerated.
784
785 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
786
787 * po/be.po: Update translations.
788 * po/bg.po: Likewise.
789 * po/ca.po: Likewise.
790 * po/cs.po: Likewise.
791 * po/da.po: Likewise.
792 * po/de.po: Likewise.
793 * po/el.po: Likewise.
794 * po/eo.po: Likewise.
795 * po/es.po: Likewise.
796 * po/fi.po: Likewise.
797 * po/fr.po: Likewise.
798 * po/gl.po: Likewise.
799 * po/hr.po: Likewise.
800 * po/hu.po: Likewise.
801 * po/ia.po: Likewise.
802 * po/id.po: Likewise.
803 * po/it.po: Likewise.
804 * po/ja.po: Likewise.
805 * po/ko.po: Likewise.
806 * po/lt.po: Likewise.
807 * po/nb.po: Likewise.
808 * po/nl.po: Likewise.
809 * po/pl.po: Likewise.
810 * po/pt_BR.po: Likewise.
811 * po/ru.po: Likewise.
812 * po/rw.po: Likewise.
813 * po/sk.po: Likewise.
814 * po/sl.po: Likewise.
815 * po/sv.po: Likewise.
816 * po/tr.po: Likewise.
817 * po/uk.po: Likewise.
818 * po/vi.po: Likewise.
819 * po/zh_CN.po: Likewise.
820 * po/zh_TW.po: Likewise.
821
822 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
823
824 [BZ #24130]
825 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
826 of $f3 register on $y_is_neg path.
827
828 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
829
830 [BZ #24110]
831 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
832 sigaltstack.ss_flags.
833
834 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
835
836 [BZ #23758]
837 * manual/time.texi (strftime): Document "%Ey".
838 * time/strftime_l.c (__strftime_internal): Set the default width
839 padding with zero of "%Ey" to 2.
840
841 [BZ #24096]
842 * manual/time.texi (strftime): Document "%EC" and "%EY".
843 * time/Makefile (tests): Add tst-strftime2.
844 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
845 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
846 override padding for "%Ey".
847 If an optional flag ('_' or '-') is specified to "%EY", interpret the
848 "%Ey" in the subformat as if decorated with that flag.
849 * time/tst-strftime2.c: New file.
850
851 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
852
853 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
854 are not defined.
855
856 [BZ #24122]
857 * elf/Makefile (tests): Add tst-audit13.
858 (modules-names): Add tst-audit13mod1.
859 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
860 rule.
861 * elf/rtld.c (dl_main): Handle invalid audit module version.
862 * elf/tst-audit13.c: New file.
863 * elf/tst-audit13mod1.c: Likewise.
864
865 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
866
867 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
868 returned by __hurd_at_flags.
869 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
870 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
871 directly instead of __hurd_file_name_lookup.
872
873 2019-01-21 Joseph Myers <joseph@codesourcery.com>
874
875 * scripts/build-many-glibcs.py (Context.checkout): Default
876 binutils version to 2.32 branch.
877
878 2019-01-21 Florian Weimer <fweimer@redhat.com>
879
880 [BZ #20018]
881 CVE-2016-10739
882 resolv: Reject trailing characters in host names
883 * include/arpa/inet.h (__inet_aton_exact): Declare.
884 (inet_aton): Remove hidden prototype. No longer used internally.
885 * nscd/gai.c (__inet_aton): Do not define.
886 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
887 * nss/digits_dots.c (__inet_aton): Likewise.
888 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
889 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
890 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
891 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
892 (tst-resolv-trailing): Likewise.
893 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
894 libc.
895 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
896 Make static. Add endp parameter.
897 (__inet_aton_exact): New function.
898 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
899 (__inet_addr): Call inet_aton_end.
900 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
901 not just IPv6. Call __inet_aton_exact.
902 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
903 (tests): Make const. Add additional test cases with trailing
904 characters.
905 (do_test): Use array_length.
906 * resolv/tst-inet_aton_exact.c: New file.
907 * resolv/tst-resolv-trailing.c: Likewise.
908 * resolv/tst-resolv-nondecimal.c: Likewise.
909 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
910
911 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
912
913 [BZ# 24097]
914 CVE-2019-6488
915 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
916 Clear the upper 32 bits of RSI register.
917 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
918 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
919 and tst-size_t-wcsnlen.
920 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
921 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
922
923 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
924
925 [BZ# 24097]
926 CVE-2019-6488
927 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
928 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
929 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
930 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
931 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
932
933 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
934
935 [BZ# 24097]
936 CVE-2019-6488
937 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
938 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
939 * sysdeps/x86_64/strcmp.S: Likewise.
940 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
941 tst-size_t-strncmp and tst-size_t-wcsncmp.
942 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
943 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
944 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
945
946 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
947
948 [BZ# 24097]
949 CVE-2019-6488
950 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
951 RDX_LP for length. Clear the upper 32 bits of RDX register.
952 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
953 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
954 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
955 * sysdeps/x86_64/x32/tst-size_t-wmemset.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/memrchr.S: Use RDX_LP for length.
962 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
963 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
964 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
965
966 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
967
968 [BZ# 24097]
969 CVE-2019-6488
970 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
971 length. Clear the upper 32 bits of RDX register.
972 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
973 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
974 Likewise.
975 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
976 Likewise.
977 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
978 tst-size_t-wmemchr.
979 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
980
981 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
982
983 [BZ# 24097]
984 CVE-2019-6488
985 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
986 length. Clear the upper 32 bits of RDX register.
987 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
988 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
989 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
990 tst-size_t-wmemcmp.
991 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
992 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
993
994 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
995
996 [BZ# 24097]
997 CVE-2019-6488
998 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
999 upper 32 bits of RDX register.
1000 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1001 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1002 tst-size_t-wmemchr.
1003 * sysdeps/x86_64/x32/test-size_t.h: New file.
1004 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1005 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1006
1007 2019-01-18 Florian Weimer <fweimer@redhat.com>
1008
1009 [BZ #24112]
1010 resolv: Do not send queries for non-host-names in nss_dns.
1011 * resolv/nss_dns/dns-host.c (check_name): New function.
1012 (_nss_dns_gethostbyname2_r): Use it.
1013 (_nss_dns_gethostbyname_r): Likewise.
1014 (_nss_dns_gethostbyname4_r): Likewise.
1015
1016 2019-01-21 Florian Weimer <fweimer@redhat.com>
1017
1018 * resolv/inet_addr.c: Reformat to GNU style.
1019 (__inet_addr, __inet_aton): Update comment.
1020
1021 2019-01-18 Florian Weimer <fweimer@redhat.com>
1022
1023 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1024 ("malloc: Use current (C11-style) atomics for fastbin access").
1025 This commit introduces a substantial performance regression on
1026 POWER and Aarch64.
1027 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1028 (REMOVE_FB): Define.
1029 (_int_malloc): Use it and reindent.
1030 (_int_free): Use CAS loop with
1031 catomic_compare_and_exchange_val_rel.
1032 (malloc_consolidate): Use atomic_exchange_acq.
1033
1034
1035 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1036
1037 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1038 -Wl,-z,now.
1039 (LDFLAGS-tst-minsigstksz-2): Likewise.
1040 (LDFLAGS-tst-minsigstksz-3): Likewise.
1041 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1042 (LDFLAGS-tst-minsigstksz-4): Likewise.
1043
1044 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1045
1046 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1047 than "alternate".
1048
1049 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1050
1051 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1052
1053 2019-01-16 Zack Weinberg <zackw@panix.com>
1054
1055 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1056 (xget_sigstack_location): New test support functions.
1057 * support/xsigstack.c: New file, implementing them.
1058 * support/tst-xsigstack.c: New test for them.
1059 * support/Makefile: Update.
1060
1061 * signal/tst-minsigstksz-1.c
1062 * signal/tst-minsigstksz-2.c
1063 * signal/tst-minsigstksz-3.c
1064 * signal/tst-minsigstksz-3a.c
1065 * signal/tst-minsigstksz-4.c: New tests.
1066 * signal/Makefile: Run them.
1067
1068 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1069
1070 * po/libc.pot: Regenerate.
1071
1072 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1073
1074 * math/libm-test-fma.inc (fma_test_data): Set
1075 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1076
1077 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1078
1079 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1080 (do_test): Changed __vector __int128_t to __vector unsigned int.
1081
1082 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1083
1084 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1085 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1086 stpcpy-avx2 and stpncpy-avx2.
1087 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1088 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1089 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1090 and __stpncpy_avx2.
1091 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1092 ifunc-strcpy.h}: rename header for a more generic name.
1093 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1094 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1095 AVX unaligned load is fast and vzeroupper is preferred.
1096 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1097 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1098 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1099 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1100 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1101 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1102
1103 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1104
1105 * argp/argp-help.c: Fix typo in comment.
1106 * misc/sys/cdefs.h: Likewise.
1107 * posix/regexec.c (sift_states_iter_mb): Likewise.
1108 * socket/sockatmark.c: Likewise.
1109 * socket/sys/socket.h: Likewise.
1110 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1111 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1112 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1113 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1114 * sysdeps/unix/sockatmark.c: Likewise.
1115 * time/strptime_l.c: Likewise.
1116
1117 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1118
1119 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1120 missing space after the cast of "_NL_CURRENT".
1121
1122 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1123
1124 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1125 ifdef to fix read of VSCR.
1126 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1127 tst-ucontext-ppc64-vscr.c to test list.
1128 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1129
1130 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1131
1132 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1133 fall-through.
1134
1135 2019-01-09 Jim Wilson <jimw@sifive.com>
1136
1137 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1138
1139 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1140
1141 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1142 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1143 __memcpy_falkor for ares.
1144 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1145 Add new define.
1146 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1147 Add ares cpu.
1148
1149 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1150
1151 [BZ #24066]
1152 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1153 4_FP_W_TYPEs are used for IEEE quad precision.
1154 * soft-fp/extendhftf2.c: Likewise.
1155 * soft-fp/extendsftf2.c: Likewise.
1156 * soft-fp/extendxftf2.c: Likewise.
1157 * soft-fp/trunctfdf2.c: Likewise.
1158 * soft-fp/trunctfhf2.c: Likewise.
1159 * soft-fp/trunctfsf2.c: Likewise.
1160 * soft-fp/trunctfxf2.c: Likewise.
1161 * sysdeps/alpha/ots_cvttx.c: Likewise.
1162 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1163 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1164 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1165 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1166 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1167 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1168 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1169 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1170 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1171 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1172 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1173 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1174 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1175 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1176 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1177 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1178 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1179
1180 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1181
1182 [BZ #24024]
1183 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1184 code with -fmath-errno.
1185 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1186 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1187 * string/test-strerror-errno.c: New file.
1188
1189 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1190
1191 [BZ #24046]
1192 * localedata/locales/en_US (date_fmt): Add, set to
1193 "%a %d %b %Y %r %Z".
1194
1195 2019-01-07 Florian Weimer <fweimer@redhat.com>
1196
1197 [BZ #24063]
1198 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1199 instead of @var{errno}.
1200 (Parsing of Integers): Likewise.
1201 (Parsing of Floats): Likewise.
1202 * manual/filesys.texi (Working with Directory Trees): Likewise.
1203 (Temporary Files): Likewise.
1204 * manual/job.texi (Terminal Access Functions): Likewise.
1205 * manual/llio.texi (Synchronizing I/O): Likewise.
1206 * manual/math.texi (SVID Random): Likewise.
1207 * manual/message.texi (The catgets Functions): Likewise.
1208 (Translation with gettext): Likewise.
1209 (Locating gettext catalog): Likewise.
1210 (Charset conversion in gettext): Likewise.
1211 * manual/nss.texi (NSS Module Function Internals): Likewise.
1212 * manual/search.texi (Hash Search Function): Likewise.
1213 * manual/setjmp.texi (System V contexts): Likewise.
1214 * manual/time.texi (Sleeping): Likewise.
1215 * manual/users.texi (Lookup User): Likewise.
1216 (Lookup Group): Likewise.
1217
1218 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1219
1220 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1221 fix typo.
1222
1223 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1224
1225 [BZ #19444]
1226 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1227 __builtin_unreachable for default case in switch.
1228 (__ieee754_yn): Likewise.
1229 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1230 (__ieee754_ynl): Likewise.
1231 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1232 (__ieee754_ynl): Likewise.
1233 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1234 (__ieee754_ynl): Likewise.
1235
1236 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1237
1238 * manual/maint.texi: Use @{ and @}.
1239
1240 2019-01-04 Florian Weimer <fweimer@redhat.com>
1241
1242 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1243 function.
1244 (do_in_chroot_1): Call it.
1245 (run_chroot_tests):
1246 Improve error reporting in case it is not possible to create a
1247 collision for the PTY name required by the test.
1248
1249 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1250
1251 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1252 lll_wait_tid with timeout.
1253 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1254 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1255 futex_reltimed_wait_cancelable for cancelabla mode.
1256 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1257 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1258 macros.
1259 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1260 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1261 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1262 SYSCALL_CANCEL_NCS): New macro.
1263 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1264 (lll_timedwait_tid): Remove macro.
1265 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1266 Likewise.
1267 (lll_timedwait_tid): Likewise.
1268 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1269 Likewise.
1270 (lll_timedwait_tid): Likewise.
1271 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1272 Likewise.
1273 (lll_timedwait_tid): Likewise.
1274 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1275 Use INTERNAL_SYSCALL_CANCEL.
1276 * sysdeps/unix/sysv/linux/futex-internal.h
1277 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1278 instead of __pthread_{enable,disable}_asynccancel.
1279 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1280 (lll_futex_wait_cancel): New macro.
1281
1282 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1283 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1284
1285 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1286 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1287
1288 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1289 in backtrace analysis.
1290 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1291 side-effects.
1292 (tf_send): Likewise.
1293
1294 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1295 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1296 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1297 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1298 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1299 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1300 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1301 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1302 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1303 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1304 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1305 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1306 Likewise.
1307 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1308 tst-cancel-wrappers.sh.
1309 (generated): Remove tst-cancel-wrappers.out.
1310 (tst-cancel-wrappers.out): Remove rule.
1311 * nptl/tst-cancel-wrappers.sh: Remove file.
1312
1313 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1314
1315 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1316 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1317 Update.
1318
1319 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1320
1321 [BZ #23640]
1322 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1323 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1324 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1325 close-on-exec reset for adddup2 file action.
1326 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1327
1328 2019-01-03 Zack Weinberg <zackw@panix.com>
1329
1330 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1331 parameter. Only use deprecated scanf when __USE_GNU is defined
1332 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1333 than 201103L, whichever is relevant for the language being compiled.
1334
1335 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1336 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1337 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1338 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1339 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1340
1341 * libio/iovsscanf.c
1342 * libio/fwscanf.c
1343 * libio/iovswscanf.c
1344 * libio/swscanf.c
1345 * libio/vscanf.c
1346 * libio/vwscanf.c
1347 * libio/wscanf.c
1348 * stdio-common/fscanf.c
1349 * stdio-common/scanf.c
1350 * stdio-common/vfscanf.c
1351 * stdio-common/vfwscanf.c
1352 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1353 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1354 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1355 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1356 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1357 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1358 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1359 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1360 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1361 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1362 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1363 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1364 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1365 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1366 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1367
1368 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1369 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1370 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1371 not sscanf.
1372 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1373 with a preprocessor macro.
1374
1375 * stdio-common/bug21.c, stdio-common/scanf14.c:
1376 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1377 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1378 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1379 to xscanf, xfscanf, xsscanf.
1380
1381 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1382 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1383 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1384 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1385 xfscanf, xsscanf.
1386 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1387 override feature selection macros or provide definitions of u_char etc.
1388 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1389 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1390 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1391 with -std=gnu89.
1392
1393 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1394
1395 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1396 bits/termios-misc.h.
1397 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1398 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1399 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1400 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1401 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1402 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1403
1404 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1405 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1406 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1407 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1408 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1409 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1410 termios-misc.h.
1411 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1412 (sysdep_headers): Add termios-misc.h.
1413
1414 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1415 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1416 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1417
1418 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1419 termios-tcflow.h.
1420 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1421 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1422 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1423 TCSAFLUSH): Move to termios-tcflow.h.
1424 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1425 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1426 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1427 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1428
1429 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1430 termios-c_lflag.h.
1431 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1432 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1433 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1434 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1435 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1436 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1437 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1438 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1439 Likewise.
1440 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1441 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1442 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1443 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1444
1445 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1446 termios-c_cflag.h.
1447 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1448 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1449 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1450 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1451 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1452 termios-c_cflag.h.
1453 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1454 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1455 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1456 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1457
1458 [BZ #23783]
1459 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1460 termios-baud.h.
1461 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1462 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1463 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1464 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1465 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1466 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1467 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1468 __MAX_BAUD): Move to termios-baud.h.
1469 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1470 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1471 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1472 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1473 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1474
1475 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1476 termios-c_oflag.h.
1477 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1478 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1479 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1480 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1481 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1482 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1483 termios-c_oflag.h.
1484 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1485 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1486 FFR1): Likewise.
1487 [USE_MISC] (XTABS): Likewise.
1488 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1489 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1490 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1491 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1492
1493 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1494 termios-c_iflag.h.
1495 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1496 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1497 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1498 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1499 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1500 IUTF8): Move to termios-c_iflag.h.
1501 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1502 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1503 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1504 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1505
1506 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1507 termios-cc.h.
1508 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1509 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1510 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1511 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1512 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1513 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1514 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1515 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1516 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1517 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1518 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1519 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1520
1521 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1522 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1523 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1525 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1526 termios-struct.h.
1527 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1528 termios-struct.h.
1529 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1530 Likewise.
1531 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1532 Likewise.
1533 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1534 Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1536 Likewise.
1537 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1538 _HAVE_C_OSPEED): Define.
1539 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1540 _HAVE_C_OSPEED): Likewise.
1541 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1542 _HAVE_C_OSPEED): Likewise.
1543 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1544 (cfsetospeed): Check for define value instead of existence.
1545 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1546 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1547 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1548 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1549 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1550
1551 [BZ #17783]
1552 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1553 Define.
1554 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1555 (TIOCSER_TEMT): Likewise.
1556 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1557 (TEOCSER_TEMT): Likewise.
1558
1559 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1560
1561 [BZ #24011]
1562 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1563
1564 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1565
1566 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1567
1568 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1569
1570 * sysdeps/htl/pt-barrierattr-setpshared.c
1571 (pthread_barrierattr_setpshared): Add stub warning.
1572 * sysdeps/htl/pt-condattr-setpshared.c
1573 (pthread_condattr_setpshared): Likewise.
1574 * sysdeps/htl/pt-mutexattr-setpshared.c
1575 (pthread_mutexattr_setpshared): Likewise.
1576 * sysdeps/htl/pt-rwlockattr-setpshared.c
1577 (pthread_rwlockattr_setpshared): Likewise.
1578 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1579 (pthread_mutexattr_setpshared): Likewise.
1580
1581 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1582
1583 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1584 constants to match with Linux 4.20.
1585
1586 * sysdeps/mips/mips32/libm-test-ulps: Update.
1587 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1588
1589 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1590
1591 [BZ #24034]
1592 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1593 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1594 than __typeof (...) for the a_ptr variable.
1595
1596 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1597
1598 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1599 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1600 * libio/Makefile (tests): Add tst-sprintf-ub and
1601 tst-sprintf-chk-ub.
1602 (CFLAGS-tst-sprintf-ub.c): New variable.
1603 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1604 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1605 destination buffer and check for overflows in fortified mode.
1606 * libio/libioP.h (PRINTF_CHK): New macro.
1607 * libio/tst-sprintf-chk-ub.c: New file.
1608 * libio/tst-sprintf-ub.c: Likewise.
1609
1610 2019-01-02 Florian Weimer <fweimer@redhat.com>
1611
1612 [BZ #24018]
1613 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1614 failure.
1615
1616 2019-01-02 Florian Weimer <fweimer@redhat.com>
1617
1618 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1619
1620 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1621
1622 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1623 macro.
1624
1625 * sysdeps/unix/sysv/linux/netpacket/packet.h
1626 (PACKET_IGNORE_OUTGOING): New macro.
1627
1628 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1629 macro.
1630
1631 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1632 version to 4.20.
1633 (riscv_flush_icache): New syscall.
1634
1635 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1636 trailing whitespace removed.
1637 * scripts/config.guess: Update to version 2019-01-01.
1638 * scripts/config.sub: Update to version 2019-01-01.
1639 * scripts/move-if-change: Update from gnulib.
1640
1641 * NEWS: Update copyright dates.
1642 * catgets/gencat.c (print_version): Likewise.
1643 * csu/version.c (banner): Likewise.
1644 * debug/catchsegv.sh: Likewise.
1645 * debug/pcprofiledump.c (print_version): Likewise.
1646 * debug/xtrace.sh (do_version): Likewise.
1647 * elf/ldconfig.c (print_version): Likewise.
1648 * elf/ldd.bash.in: Likewise.
1649 * elf/pldd.c (print_version): Likewise.
1650 * elf/sotruss.sh: Likewise.
1651 * elf/sprof.c (print_version): Likewise.
1652 * iconv/iconv_prog.c (print_version): Likewise.
1653 * iconv/iconvconfig.c (print_version): Likewise.
1654 * locale/programs/locale.c (print_version): Likewise.
1655 * locale/programs/localedef.c (print_version): Likewise.
1656 * login/programs/pt_chown.c (print_version): Likewise.
1657 * malloc/memusage.sh (do_version): Likewise.
1658 * malloc/memusagestat.c (print_version): Likewise.
1659 * malloc/mtrace.pl: Likewise.
1660 * manual/libc.texinfo: Likewise.
1661 * nptl/version.c (banner): Likewise.
1662 * nscd/nscd.c (print_version): Likewise.
1663 * nss/getent.c (print_version): Likewise.
1664 * nss/makedb.c (print_version): Likewise.
1665 * posix/getconf.c (main): Likewise.
1666 * scripts/test-installation.pl: Likewise.
1667 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1668
1669 * All files with FSF copyright notices: Update copyright dates
1670 using scripts/update-copyrights.
1671 * locale/programs/charmap-kw.h: Regenerated.
1672 * locale/programs/locfile-kw.h: Likewise.
1673
1674 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1675
1676 * timezone/zdump.c: Update from tzcode 2018i.
1677 * timezone/zic.c: Likewise.
1678
1679 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1680
1681 regex: improve Gnulib port to AIX
1682 From the glibc point of view, this removes duplicate macro
1683 definitions and is obviously safe.
1684 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1685 * posix/regex_internal.h:
1686 (__attribute__, __attribute_warn_unused_result__):
1687 Remove; already defined elsewhere.
1688
1689 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1690
1691 [BZ #24027]
1692 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1693 copying operation. (ncopies had the wrong type, resulting in an
1694 integer wraparound and too few elements being copied.)
1695
1696 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1697
1698 [BZ #24022]
1699 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1700 <asm/syscalls.h> exists with __has_include__ before including it.
1701
1702 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1703
1704 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1705 version to 4.20.
1706
1707 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1708
1709 * hurd/lookup-retry: Include <unistd.h>.
1710 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1711 Release it on return. Handle "pid" magical lookup retry.
1712
1713 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1714
1715 [BZ #10496]
1716 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1717 (t_fmt_ampm): Likewise.
1718 * localedata/locales/aa_ER (t_fmt): Likewise.
1719 (t_fmt_ampm): Likewise.
1720 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1721 (t_fmt_ampm): Likewise.
1722 * localedata/locales/aa_ET (t_fmt): Likewise.
1723 (t_fmt_ampm): Likewise.
1724 * localedata/locales/am_ET (t_fmt): Likewise.
1725 (t_fmt_ampm): Likewise.
1726 * localedata/locales/byn_ER (t_fmt): Likewise.
1727 (t_fmt_ampm): Likewise.
1728 * localedata/locales/om_ET (t_fmt): Likewise.
1729 (t_fmt_ampm): Likewise.
1730 * localedata/locales/sid_ET (t_fmt): Likewise.
1731 (t_fmt_ampm): Likewise.
1732 * localedata/locales/so_DJ (t_fmt): Likewise.
1733 (t_fmt_ampm): Likewise.
1734 * localedata/locales/so_ET (t_fmt): Likewise.
1735 (t_fmt_ampm): Likewise.
1736 * localedata/locales/so_SO (t_fmt): Likewise.
1737 (t_fmt_ampm): Likewise.
1738 * localedata/locales/ti_ER (t_fmt): Likewise.
1739 (t_fmt_ampm): Likewise.
1740 * localedata/locales/ti_ET (t_fmt): Likewise.
1741 (t_fmt_ampm): Likewise.
1742 * localedata/locales/tig_ER (t_fmt): Likewise.
1743 (t_fmt_ampm): Likewise.
1744 * localedata/locales/wal_ET (t_fmt): Likewise.
1745 (t_fmt_ampm): Likewise.
1746
1747 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1748 * localedata/locales/ar_IN (t_fmt): Likewise.
1749 * localedata/locales/bhb_IN (t_fmt): Likewise.
1750 * localedata/locales/bho_IN (t_fmt): Likewise.
1751 * localedata/locales/bi_VU (t_fmt): Likewise.
1752 * localedata/locales/bn_BD (t_fmt): Likewise.
1753 * localedata/locales/bn_IN (t_fmt): Likewise.
1754 * localedata/locales/brx_IN (t_fmt): Likewise.
1755 * localedata/locales/doi_IN (t_fmt): Likewise.
1756 * localedata/locales/en_HK (t_fmt): Likewise.
1757 (t_fmt_ampm): Likewise.
1758 * localedata/locales/en_IN (t_fmt): Likewise.
1759 * localedata/locales/en_PH (t_fmt): Likewise.
1760 * localedata/locales/gu_IN (t_fmt): Likewise.
1761 * localedata/locales/hi_IN (t_fmt): Likewise.
1762 * localedata/locales/hif_FJ (t_fmt): Likewise.
1763 * localedata/locales/hne_IN (t_fmt): Likewise.
1764 * localedata/locales/kn_IN (t_fmt): Likewise.
1765 * localedata/locales/kok_IN (t_fmt): Likewise.
1766 * localedata/locales/ks_IN (t_fmt): Likewise.
1767 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1768 * localedata/locales/mag_IN (t_fmt): Likewise.
1769 * localedata/locales/mai_IN (t_fmt): Likewise.
1770 * localedata/locales/mjw_IN (t_fmt): Likewise.
1771 * localedata/locales/ml_IN (t_fmt): Likewise.
1772 * localedata/locales/mni_IN (t_fmt): Likewise.
1773 * localedata/locales/mr_IN (t_fmt): Likewise.
1774 * localedata/locales/ms_MY (t_fmt): Likewise.
1775 * localedata/locales/pa_IN (t_fmt): Likewise.
1776 * localedata/locales/raj_IN (t_fmt): Likewise.
1777 * localedata/locales/sa_IN (t_fmt): Likewise.
1778 * localedata/locales/sat_IN (t_fmt): Likewise.
1779 * localedata/locales/sd_IN (t_fmt): Likewise.
1780 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1781 * localedata/locales/tcy_IN (t_fmt): Likewise.
1782 * localedata/locales/the_NP (t_fmt): Likewise.
1783 * localedata/locales/to_TO (t_fmt): Likewise.
1784 * localedata/locales/ur_IN (t_fmt): Likewise.
1785
1786 * localedata/locales/hif_FJ (d_t_fmt): Set to
1787 "%A %d %b %Y %I:%M:%S %p".
1788 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1789
1790 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1791 * localedata/locales/ar_BH (t_fmt): Likewise.
1792 * localedata/locales/ar_DZ (t_fmt): Likewise.
1793 * localedata/locales/ar_EG (t_fmt): Likewise.
1794 * localedata/locales/ar_IQ (t_fmt): Likewise.
1795 * localedata/locales/ar_JO (t_fmt): Likewise.
1796 * localedata/locales/ar_KW (t_fmt): Likewise.
1797 * localedata/locales/ar_LB (t_fmt): Likewise.
1798 * localedata/locales/ar_LY (t_fmt): Likewise.
1799 * localedata/locales/ar_OM (t_fmt): Likewise.
1800 * localedata/locales/ar_QA (t_fmt): Likewise.
1801 * localedata/locales/ar_SD (t_fmt): Likewise.
1802 * localedata/locales/ar_SS (t_fmt): Likewise.
1803 * localedata/locales/ar_SY (t_fmt): Likewise.
1804 * localedata/locales/ar_TN (t_fmt): Likewise.
1805 * localedata/locales/ar_YE (t_fmt): Likewise.
1806
1807 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1808 (t_fmt_ampm): Likewise.
1809 * localedata/locales/gez_ET (t_fmt): Likewise.
1810 (t_fmt_ampm): Likewise.
1811
1812 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1813 (t_fmt_ampm): Likewise.
1814 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1815
1816 * localedata/locales/zh_HK (t_fmt):
1817 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1818
1819 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1820 because this locale does not use the 12-hour clock.
1821 (t_fmt): Set to "%Z %H:%M:%S".
1822 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1823
1824 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1825 because this locale does not use the 12-hour clock.
1826 (t_fmt): Set to "%H:%M:%S %Z".
1827 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1828
1829 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1830 because this locale does not use the 12-hour clock.
1831 (t_fmt): Set to "%T".
1832 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1833 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1834
1835 * localedata/locales/ta_LK (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 %B %Y %H:%M:%S %Z".
1839
1840 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1841 because this locale does not use the 12-hour clock.
1842 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1843 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1844
1845 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1846
1847 [BZ #10496]
1848 [BZ #23724]
1849 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1850 (t_fmt_ampm): Likewise.
1851 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1852 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1853 (d_fmt): Set to "%-d.%-m.%y".
1854
1855 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1856
1857 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1858 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1859 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1860 Likewise.
1861 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1862 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1863 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1864 function.
1865 * support/blob_repeat.c (check_mul_overflow_size_t,
1866 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1867
1868 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1869
1870 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1871
1872 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1873
1874 regex: simplify Gnulib port
1875 This simplifies the code, by removing stuff intended for porting
1876 to Gnulib but no longer needed there.
1877 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1878 uses of libc_hidden_def, weak_alias.
1879 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1880 _Restrict_ except for public-facing headers.
1881 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1882 Remove; already defined elsewhere.
1883 * posix/regex.c, posix/regex_internal.h:
1884 Use __GNUC_PREREQ instead of rolling our own.
1885 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1886
1887 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1888
1889 * benchtests/bench-strlen.c (generic_strlen): New function.
1890 (memchr_strlen): New function.
1891
1892 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1895 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1896 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1897
1898 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1899
1900 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1901
1902 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1903
1904 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1905 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1906 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1907 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1908 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1909 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1910 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1911
1912 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1913
1914 [BZ #24023]
1915 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1916 PLT reference in libc.so.
1917 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1918 _Q_lltoq and _Q_qtod PLT references in libc.so.
1919
1920 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1921
1922 * benchtests/bench-memchr.c: Cleanup defines.
1923 * benchtests/bench-memcmp.c: Likewise.
1924 * benchtests/bench-memset.c: Likewise.
1925 * benchtests/bench-memset-large.c: Likewise.
1926 * benchtests/bench-memset-walk.c: Likewise.
1927 * benchtests/bench-stpcpy.c: Likewise.
1928 * benchtests/bench-stpncpy.c: Likewise.
1929 * benchtests/bench-strcat.c: Likewise.
1930 * benchtests/bench-strchr.c: Likewise.
1931 * benchtests/bench-strcmp.c: Likewise.
1932 * benchtests/bench-strcpy.c: Likewise.
1933 * benchtests/bench-strcspn.c: Likewise.
1934 * benchtests/bench-string.h: Likewise.
1935 * benchtests/bench-strlen.c: Likewise.
1936 * benchtests/bench-strncat.c: Likewise.
1937 * benchtests/bench-strncmp.c: Likewise.
1938 * benchtests/bench-strncpy.c: Likewise.
1939 * benchtests/bench-strnlen.c: Likewise.
1940 * benchtests/bench-strpbrk.c: Likewise.
1941 * benchtests/bench-strrchr.c: Likewise.
1942 * benchtests/bench-strspn.c: Likewise.
1943
1944 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1945
1946 * stdlib/longlong.h: Update from GCC.
1947
1948 [BZ #23993]
1949 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1950 * configure: Regenerated.
1951 * manual/install.texi (Tools for Compilation): Update minimum GCC
1952 version.
1953 * INSTALL: Regenerated.
1954
1955 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1956
1957 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1958
1959 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1960
1961 * malloc/malloc.c (mremap_chunk): Additional checks.
1962
1963 2018-12-21 Mao Han <han_mao@c-sky.com>
1964
1965 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1966 * scripts/build-many-glibcs.py: Add C-SKY targets.
1967 * sysdeps/csky/Implies: New file.
1968 * sysdeps/csky/Makefile: Likewise.
1969 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1970 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1971 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1972 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1973 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1974 * sysdeps/csky/abiv2/memmove.S: Likewise.
1975 * sysdeps/csky/abiv2/memset.S: Likewise.
1976 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1977 * sysdeps/csky/abiv2/start.S: Likewise.
1978 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1979 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1980 * sysdeps/csky/abiv2/strlen.S: Likewise.
1981 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1982 * sysdeps/csky/abort-instr.h: Likewise.
1983 * sysdeps/csky/atomic-machine.h: Likewise.
1984 * sysdeps/csky/bits/endian.h: Likewise.
1985 * sysdeps/csky/bits/fenv.h: Likewise.
1986 * sysdeps/csky/bits/link.h: Likewise.
1987 * sysdeps/csky/bits/setjmp.h: Likewise.
1988 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1989 * sysdeps/csky/bsd-setjmp.S: Likewise.
1990 * sysdeps/csky/configure: Likewise.
1991 * sysdeps/csky/configure.ac: Likewise.
1992 * sysdeps/csky/dl-machine.h: Likewise.
1993 * sysdeps/csky/dl-procinfo.c: Likewise.
1994 * sysdeps/csky/dl-procinfo.h: Likewise.
1995 * sysdeps/csky/dl-sysdep.h: Likewise.
1996 * sysdeps/csky/dl-tls.h: Likewise.
1997 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1998 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1999 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2000 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2001 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2002 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2003 * sysdeps/csky/fpu/fegetround.c: Likewise.
2004 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2005 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2006 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2007 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2008 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2009 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2010 * sysdeps/csky/fpu/fesetround.c: Likewise.
2011 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2012 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2013 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2014 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2015 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2016 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2017 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2018 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2019 * sysdeps/csky/fpu_control.h: Likewise.
2020 * sysdeps/csky/gccframe.h: Likewise.
2021 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2022 * sysdeps/csky/ldsodefs.h: Likewise.
2023 * sysdeps/csky/libc-tls.c: Likewise.
2024 * sysdeps/csky/linkmap.h: Likewise.
2025 * sysdeps/csky/machine-gmon.h: Likewise.
2026 * sysdeps/csky/memusage.h: Likewise.
2027 * sysdeps/csky/nofpu/Implies: Likewise.
2028 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2029 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2030 * sysdeps/csky/nptl/Makefile: Likewise.
2031 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2032 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2033 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2034 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2035 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2036 * sysdeps/csky/nptl/tls.h: Likewise.
2037 * sysdeps/csky/preconfigure: Likewise.
2038 * sysdeps/csky/sfp-machine.h: Likewise.
2039 * sysdeps/csky/sotruss-lib.c: Likewise.
2040 * sysdeps/csky/stackinfo.h: Likewise.
2041 * sysdeps/csky/sysdep.h: Likewise.
2042 * sysdeps/csky/tininess.h: Likewise.
2043 * sysdeps/csky/tst-audit.h: Likewise.
2044 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2045 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2046 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2047 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2048 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2049 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2050 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2051 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2052 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2053 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2054 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2067 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2068 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2069 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2070 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2071 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2072 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2073 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2074 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2075 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2076 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2077 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2078 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2079 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2080 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2081 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2082 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2083 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2084 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2085 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2086 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2087 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2088
2089 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2090
2091 * include/time.h (__difftime64): Add.
2092 * time/difftime.c (subtract): convert to 64-bit time.
2093 * time/difftime.c (__difftime64): Add.
2094 * time/difftime.c (__difftime): Wrap around __difftime64.
2095
2096 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2097
2098 * manual/examples/add.c: Remove redundant "if not".
2099 * manual/examples/argp-ex1.c: Likewise.
2100 * manual/examples/argp-ex2.c: Likewise.
2101 * manual/examples/argp-ex3.c: Likewise.
2102 * manual/examples/argp-ex4.c: Likewise.
2103 * manual/examples/atexit.c: Likewise.
2104 * manual/examples/db.c: Likewise.
2105 * manual/examples/dir.c: Likewise.
2106 * manual/examples/dir2.c: Likewise.
2107 * manual/examples/execinfo.c: Likewise.
2108 * manual/examples/filecli.c: Likewise.
2109 * manual/examples/filesrv.c: Likewise.
2110 * manual/examples/fmtmsgexpl.c: Likewise.
2111 * manual/examples/genpass.c: Likewise.
2112 * manual/examples/inetcli.c: Likewise.
2113 * manual/examples/inetsrv.c: Likewise.
2114 * manual/examples/isockad.c: Likewise.
2115 * manual/examples/longopt.c: Likewise.
2116 * manual/examples/memopen.c: Likewise.
2117 * manual/examples/memstrm.c: Likewise.
2118 * manual/examples/mkdirent.c: Likewise.
2119 * manual/examples/mkfsock.c: Likewise.
2120 * manual/examples/mkisock.c: Likewise.
2121 * manual/examples/mygetpass.c: Likewise.
2122 * manual/examples/pipe.c: Likewise.
2123 * manual/examples/popen.c: Likewise.
2124 * manual/examples/rprintf.c: Likewise.
2125 * manual/examples/search.c: Likewise.
2126 * manual/examples/select.c: Likewise.
2127 * manual/examples/setjmp.c: Likewise.
2128 * manual/examples/sigh1.c: Likewise.
2129 * manual/examples/sigusr.c: Likewise.
2130 * manual/examples/stpcpy.c: Likewise.
2131 * manual/examples/strdupa.c: Likewise.
2132 * manual/examples/strftim.c: Likewise.
2133 * manual/examples/subopt.c: Likewise.
2134 * manual/examples/swapcontext.c: Likewise.
2135 * manual/examples/termios.c: Likewise.
2136 * manual/examples/testopt.c: Likewise.
2137 * manual/examples/testpass.c: Likewise.
2138 * manual/examples/timeval_subtract.c: Likewise.
2139
2140 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2141
2142 * sysdeps/x86/fpu/math_private.h: New file.
2143 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2144
2145 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2146 definition.
2147 (cosh): Likewise.
2148 (tanh): Likewise.
2149
2150 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2151
2152 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2153 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2154 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2155 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2156 fields.
2157 (_dl_show_auxv): Give a special treatment to
2158 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2159 and AT_L3_CACHEGEOMETRY.
2160 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2161 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2162 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2163 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2164
2165 2018-12-19 Andreas Schwab <schwab@suse.de>
2166
2167 * nscd/connections.c (check_use): Don't abort on invalid len.
2168
2169 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2170
2171 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2172 values in the 64bit value cases.
2173
2174 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2175
2176 * include/time.h
2177 (__ctime64_r): Add.
2178 * time/ctime_r.c
2179 (__ctime64_r): Add.
2180 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2181
2182 * include/time.h
2183 (__ctime64): Add.
2184 * time/gmtime.c
2185 (__ctime64): Add.
2186 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2187
2188 * include/time.h
2189 (__gmtime64_r): Add.
2190 * time/gmtime.c
2191 (__gmtime64_r): Add.
2192 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2193
2194 * include/time.h
2195 (__gmtime64): Add.
2196 * time/gmtime.c
2197 (__gmtime64): Add.
2198 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2199
2200 * include/time.h
2201 (__localtime64_r): Add.
2202 * time/localtime.c
2203 (__localtime64_r): Add.
2204 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2205
2206 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2207
2208 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2209 kernel_sigction definition.
2210
2211 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2212
2213 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2214
2215 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2216 __syscall_rt_sigaction.
2217 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2218 (kernel_sigaction): Use Linux generic defintion.
2219 (STUB): Define.
2220 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2221 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2222 (__syscall_rt_sigaction): Remove implementation.
2223 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2224 hidden.
2225 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2226 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2227 INTERNAL_SYSCALL): Remove definitions.
2228 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2229 action and signal set size.
2230 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2231 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2232
2233 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2234 James Clarke <jrtc27@jrtc27.com>
2235
2236 [BZ #23967]
2237 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2238 Define if SA_RESTORER is defined.
2239 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2240 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2241 already defined.
2242 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2243 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2244 definitions.
2245 (HAS_SA_RESTORER): Define.
2246 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2247 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2248 (HAS_SA_RESTORER): Define.
2249 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2250 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2251 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2252 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2253 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2254
2255 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2256
2257 * sysdeps/unix/sysv/linux/kernel-features.h
2258 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2259 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2260 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2261 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2262 (__ASSUME_ST_INO_64_BIT): Likewise.
2263 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2264 <kernel-features.h>.
2265 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2266 Remove conditional code.
2267 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2268 <kernel-features.h>.
2269 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2270 Remove conditional code.
2271 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2272 <kernel-features.h>.
2273 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2274 Remove conditional code.
2275 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2276 <kernel-features.h>.
2277 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2278 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2279
2280 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2281
2282 * sysdeps/s390/multiarch/ifunc-resolve.h
2283 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2284 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2285 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2286 Delete macro definition.
2287 (s390_libc_ifunc_init): Rename to
2288 s390_libc_ifunc_expr_stfle_init.
2289 * sysdeps/s390/bzero: Use
2290 s390_libc_ifunc_expr_stfle_init instead of
2291 s390_libc_ifunc_init.
2292 * sysdeps/s390/memcmp.c: Likewise.
2293 * sysdeps/s390/memcpy.c: Likewise.
2294 * sysdeps/s390/mempcpy.c: Likewise.
2295 * sysdeps/s390/memset.c: Likewise.
2296
2297 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2298
2299 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2300 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2301
2302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2303
2304 * sysdeps/s390/multiarch/Makefile
2305 (sysdep_routines): Remove wmemcmp variants.
2306 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2307 * sysdeps/s390/multiarch/ifunc-impl-list.c
2308 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2309 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2310 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2311 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2312 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2313 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2314 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2315 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2316
2317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2318
2319 * sysdeps/s390/multiarch/Makefile
2320 (sysdep_routines): Remove wmemset variants.
2321 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2322 * sysdeps/s390/multiarch/ifunc-impl-list.c
2323 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2324 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2325 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2326 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2327 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2328 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2329 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2330 * sysdeps/s390/ifunc-wmemset.h: New file.
2331
2332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2333
2334 * sysdeps/s390/multiarch/Makefile
2335 (sysdep_routines): Remove wmemchr variants.
2336 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2337 * sysdeps/s390/multiarch/ifunc-impl-list.c
2338 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2339 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2340 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2341 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2342 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2343 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2344 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2345 * sysdeps/s390/ifunc-wmemchr.h: New file.
2346
2347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2348
2349 * sysdeps/s390/multiarch/Makefile
2350 (sysdep_routines): Remove wcscspn variants.
2351 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2352 * sysdeps/s390/multiarch/ifunc-impl-list.c
2353 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2354 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2355 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2356 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2357 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2358 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2359 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2360 * sysdeps/s390/ifunc-wcscspn.h: New file.
2361
2362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2363
2364 * sysdeps/s390/multiarch/Makefile
2365 (sysdep_routines): Remove wcspbrk variants.
2366 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2367 * sysdeps/s390/multiarch/ifunc-impl-list.c
2368 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2369 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2370 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2371 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2372 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2373 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2374 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2375 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2376
2377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2378
2379 * sysdeps/s390/multiarch/Makefile
2380 (sysdep_routines): Remove wcsspn variants.
2381 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2382 * sysdeps/s390/multiarch/ifunc-impl-list.c
2383 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2384 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2385 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2386 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2387 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2388 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2389 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2390 * sysdeps/s390/ifunc-wcsspn.h: New file.
2391
2392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2393
2394 * sysdeps/s390/multiarch/Makefile
2395 (sysdep_routines): Remove wcsrchr variants.
2396 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2397 * sysdeps/s390/multiarch/ifunc-impl-list.c
2398 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2399 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2400 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2401 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2402 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2403 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2404 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2405 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2406
2407 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2408
2409 * sysdeps/s390/multiarch/Makefile
2410 (sysdep_routines): Remove wcschrnul variants.
2411 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2412 * sysdeps/s390/multiarch/ifunc-impl-list.c
2413 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2414 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2415 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2416 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2417 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2418 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2419 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2420 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2421
2422 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2423
2424 * sysdeps/s390/multiarch/Makefile
2425 (sysdep_routines): Remove wcschr variants.
2426 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2427 * sysdeps/s390/multiarch/ifunc-impl-list.c
2428 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2429 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2430 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2431 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2432 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2433 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2434 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2435 * sysdeps/s390/ifunc-wcschr.h: New file.
2436
2437 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2438
2439 * sysdeps/s390/multiarch/Makefile
2440 (sysdep_routines): Remove wcsncmp variants.
2441 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2442 * sysdeps/s390/multiarch/ifunc-impl-list.c
2443 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2444 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2445 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2446 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2447 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2448 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2449 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2450 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2451
2452 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2453
2454 * sysdeps/s390/multiarch/Makefile
2455 (sysdep_routines): Remove wcscmp variants.
2456 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2457 * sysdeps/s390/multiarch/ifunc-impl-list.c
2458 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2459 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2460 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2461 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2462 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2463 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2464 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2465 * sysdeps/s390/ifunc-wcscmp.h: New file.
2466
2467 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2468
2469 * sysdeps/s390/multiarch/Makefile
2470 (sysdep_routines): Remove wcsncat variants.
2471 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2472 * sysdeps/s390/multiarch/ifunc-impl-list.c
2473 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2474 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2475 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2476 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2477 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2478 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2479 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2480 * sysdeps/s390/ifunc-wcsncat.h: New file.
2481
2482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2483
2484 * sysdeps/s390/multiarch/Makefile
2485 (sysdep_routines): Remove wcscat variants.
2486 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2487 * sysdeps/s390/multiarch/ifunc-impl-list.c
2488 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2489 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2490 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2491 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2492 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2493 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2494 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2495 * sysdeps/s390/ifunc-wcscat.h: New file.
2496
2497 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2498
2499 * sysdeps/s390/multiarch/Makefile
2500 (sysdep_routines): Remove wcpncpy variants.
2501 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2502 * sysdeps/s390/multiarch/ifunc-impl-list.c
2503 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2504 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2505 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2506 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2507 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2508 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2509 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2510 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2511
2512 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2513
2514 * sysdeps/s390/multiarch/Makefile
2515 (sysdep_routines): Remove wcsncpy variants.
2516 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2517 * sysdeps/s390/multiarch/ifunc-impl-list.c
2518 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2519 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2520 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2521 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2522 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2523 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2524 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2525 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2526
2527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2528
2529 * sysdeps/s390/multiarch/Makefile
2530 (sysdep_routines): Remove wcpcpy variants.
2531 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2532 * sysdeps/s390/multiarch/ifunc-impl-list.c
2533 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2534 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2535 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2536 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2537 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2538 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2539 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2540 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2541
2542 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2543
2544 * sysdeps/s390/multiarch/Makefile
2545 (sysdep_routines): Remove wcscpy variants.
2546 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2547 * sysdeps/s390/multiarch/ifunc-impl-list.c
2548 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2549 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2550 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2551 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2552 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2553 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2554 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2555 * sysdeps/s390/ifunc-wcscpy.h: New file.
2556
2557 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2558
2559 * sysdeps/s390/multiarch/Makefile
2560 (sysdep_routines): Remove wcsnlen variants.
2561 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2562 * sysdeps/s390/multiarch/ifunc-impl-list.c
2563 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2564 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2565 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2566 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2567 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2568 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2569 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2570 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2571
2572 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2573
2574 * sysdeps/s390/multiarch/Makefile
2575 (sysdep_routines): Remove wcslen variants.
2576 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2577 * sysdeps/s390/multiarch/ifunc-impl-list.c
2578 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2579 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2580 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2581 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2582 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2583 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2584 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2585 * sysdeps/s390/ifunc-wcslen.h: New file.
2586
2587 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2588
2589 * sysdeps/s390/multiarch/Makefile
2590 (sysdep_routines): Remove memrchr variants.
2591 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2592 * sysdeps/s390/multiarch/ifunc-impl-list.c
2593 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2594 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2595 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2596 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2597 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2598 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2599 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2600 * sysdeps/s390/ifunc-memrchr.h: New file.
2601
2602 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2603
2604 * sysdeps/s390/multiarch/Makefile
2605 (sysdep_routines): Remove memccpy variants.
2606 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2607 * sysdeps/s390/multiarch/ifunc-impl-list.c
2608 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2609 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2610 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2611 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2612 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2613 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2614 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2615 * sysdeps/s390/ifunc-memccpy.h: New file.
2616
2617 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2618
2619 * sysdeps/s390/multiarch/Makefile
2620 (sysdep_routines): Remove rawmemchr variants.
2621 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2622 * sysdeps/s390/multiarch/ifunc-impl-list.c
2623 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2624 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2625 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2626 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2627 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2628 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2629 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2630 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2631
2632 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2633
2634 * sysdeps/s390/multiarch/Makefile
2635 (sysdep_routines): Remove memchr variants.
2636 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2637 * sysdeps/s390/multiarch/ifunc-impl-list.c
2638 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2639 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2640 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2641 * sysdeps/s390/multiarch/memchr.c: Move to ...
2642 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2643 * sysdeps/s390/ifunc-memchr.h: New file.
2644 * sysdeps/s390/s390-64/memchr.S: Move to ...
2645 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2646 for 31/64bit and ifunc handling.
2647 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2648 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2649 * sysdeps/s390/s390-32/memchr.S: Likewise.
2650
2651 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2652
2653 * sysdeps/s390/multiarch/Makefile
2654 (sysdep_routines): Remove strcspn variants.
2655 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2656 * sysdeps/s390/multiarch/ifunc-impl-list.c
2657 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2658 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2659 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2660 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2661 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2662 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2663 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2664 * sysdeps/s390/ifunc-strcspn.h: New file.
2665
2666 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2667
2668 * sysdeps/s390/multiarch/Makefile
2669 (sysdep_routines): Remove strpbrk variants.
2670 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2671 * sysdeps/s390/multiarch/ifunc-impl-list.c
2672 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2673 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2674 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2675 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2676 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2677 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2678 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2679 * sysdeps/s390/ifunc-strpbrk.h: New file.
2680
2681 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2682
2683 * sysdeps/s390/multiarch/Makefile
2684 (sysdep_routines): Remove strspn variants.
2685 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2686 * sysdeps/s390/multiarch/ifunc-impl-list.c
2687 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2688 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2689 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2691 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2692 * sysdeps/s390/multiarch/strspn.c: Move to ...
2693 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2694 * sysdeps/s390/ifunc-strspn.h: New file.
2695
2696 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2697
2698 * sysdeps/s390/multiarch/Makefile
2699 (sysdep_routines): Remove strrchr variants.
2700 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2701 * sysdeps/s390/multiarch/ifunc-impl-list.c
2702 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2703 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2704 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2705 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2706 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2707 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2708 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2709 * sysdeps/s390/ifunc-strrchr.h: New file.
2710
2711 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2712
2713 * sysdeps/s390/multiarch/Makefile
2714 (sysdep_routines): Remove strchrnul variants.
2715 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2716 * sysdeps/s390/multiarch/ifunc-impl-list.c
2717 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2718 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2719 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2720 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2721 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2722 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2723 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2724 * sysdeps/s390/ifunc-strchrnul.h: New file.
2725
2726 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2727
2728 * sysdeps/s390/multiarch/Makefile
2729 (sysdep_routines): Remove strchr variants.
2730 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2731 * sysdeps/s390/multiarch/ifunc-impl-list.c
2732 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2733 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2734 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2735 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2736 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2737 * sysdeps/s390/multiarch/strchr.c: Move to ...
2738 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2739 * sysdeps/s390/ifunc-strchr.h: New file.
2740
2741 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2742
2743 * sysdeps/s390/multiarch/Makefile
2744 (sysdep_routines): Remove strncmp variants.
2745 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2746 * sysdeps/s390/multiarch/ifunc-impl-list.c
2747 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2748 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2749 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2751 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2752 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2753 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2754 * sysdeps/s390/ifunc-strncmp.h: New file.
2755
2756 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2757
2758 * sysdeps/s390/multiarch/Makefile
2759 (sysdep_routines): Remove strcmp variants.
2760 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2761 * sysdeps/s390/multiarch/ifunc-impl-list.c
2762 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2763 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2764 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2765 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2766 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/ifunc-strcmp.h: New file.
2768 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2769 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2770 for 31/64bit and ifunc handling.
2771 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2772 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2773 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2774
2775 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2776
2777 * sysdeps/s390/multiarch/Makefile
2778 (sysdep_routines): Remove strncat variants.
2779 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2780 * sysdeps/s390/multiarch/ifunc-impl-list.c
2781 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2782 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2783 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2784 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2785 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2786 * sysdeps/s390/multiarch/strncat.c: Move to ...
2787 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2788 * sysdeps/s390/ifunc-strncat.h: New file.
2789
2790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2791
2792 * sysdeps/s390/multiarch/Makefile
2793 (sysdep_routines): Remove strcat variants.
2794 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2795 * sysdeps/s390/multiarch/ifunc-impl-list.c
2796 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2797 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2798 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2799 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2800 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2801 * sysdeps/s390/multiarch/strcat.c: Move to ...
2802 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2803 * sysdeps/s390/ifunc-strcat.h: New file.
2804
2805 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2806
2807 * sysdeps/s390/multiarch/Makefile
2808 (sysdep_routines): Remove stpncpy variants.
2809 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2810 * sysdeps/s390/multiarch/ifunc-impl-list.c
2811 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2812 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2813 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2814 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2815 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2816 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2817 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2818 * sysdeps/s390/ifunc-stpncpy.h: New file.
2819
2820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2821
2822 * sysdeps/s390/multiarch/Makefile
2823 (sysdep_routines): Remove strncpy variants.
2824 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2825 * sysdeps/s390/multiarch/ifunc-impl-list.c
2826 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2827 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2828 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2829 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2830 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2831 * sysdeps/s390/ifunc-strncpy.h: New file.
2832 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2833 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2834 and adjust ifunc handling.
2835 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2836 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2837 and adjust ifunc handling.
2838 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2839 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2840
2841 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2842
2843 * sysdeps/s390/multiarch/Makefile
2844 (sysdep_routines): Remove stpcpy variants.
2845 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2846 * sysdeps/s390/multiarch/ifunc-impl-list.c
2847 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2848 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2849 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2850 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2851 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2852 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2853 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2854 * sysdeps/s390/ifunc-stpcpy.h: New file.
2855
2856 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2857
2858 * sysdeps/s390/multiarch/Makefile
2859 (sysdep_routines): Remove strcpy variants.
2860 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2861 * sysdeps/s390/multiarch/ifunc-impl-list.c
2862 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2863 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2864 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2865 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2866 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2867 * sysdeps/s390/ifunc-strcpy.h: New file.
2868 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2869 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2870 for 31/64bit and ifunc handling.
2871 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2872 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2873 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2874
2875 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2876
2877 * sysdeps/s390/multiarch/Makefile
2878 (sysdep_routines): Remove strnlen variants.
2879 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2880 * sysdeps/s390/multiarch/ifunc-impl-list.c
2881 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2882 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2883 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2884 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2885 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2886 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2887 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2888 * sysdeps/s390/ifunc-strnlen.h: New file.
2889
2890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2891
2892 * sysdeps/s390/multiarch/Makefile
2893 (sysdep_routines): Remove strlen variants.
2894 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2895 * sysdeps/s390/multiarch/ifunc-impl-list.c
2896 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2897 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2898 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2899 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2900 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2901 * sysdeps/s390/multiarch/strlen.c: Move to ...
2902 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2903 * sysdeps/s390/ifunc-strlen.h: New file.
2904
2905 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2906
2907 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2908 * sysdeps/s390/multiarch/ifunc-impl-list.c
2909 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2910 * sysdeps/s390/ifunc-memmem.h: New file.
2911 * sysdeps/s390/memmem.c: Likewise.
2912 * sysdeps/s390/memmem-c.c: Likewise.
2913 * sysdeps/s390/memmem-vx.c: Likewise.
2914
2915 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2916
2917 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2918 * sysdeps/s390/multiarch/ifunc-impl-list.c
2919 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2920 * sysdeps/s390/ifunc-strstr.h: New file.
2921 * sysdeps/s390/strstr.c: Likewise.
2922 * sysdeps/s390/strstr-c.c: Likewise.
2923 * sysdeps/s390/strstr-vx.c: Likewise.
2924
2925 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2926
2927 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2928 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2929 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2930 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2931 New defines.
2932 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2933 * sysdeps/s390/memmove-c.c: New file.
2934 * sysdeps/s390/memmove.c: Likewise.
2935 * sysdeps/s390/multiarch/ifunc-impl-list.c
2936 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2937
2938 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2939
2940 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2941 * sysdeps/s390/configure.ac: Add check for z13 support.
2942 * sysdeps/s390/configure: Regenerated.
2943
2944 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2945
2946 * sysdeps/s390/memcopy.h: New file.
2947
2948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2949
2950 * sysdeps/s390/s390-32/bcopy.S: Remove.
2951 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2952
2953 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2954
2955 * sysdeps/s390/ifunc-memcpy.h: New File.
2956 * sysdeps/s390/memcpy.S: Move to ...
2957 * sysdeps/s390/memcpy-z900.S ... here.
2958 Move implementations from memcpy-s390x.s to here.
2959 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2960 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2961 Remove memcpy/mempcpy variants.
2962 * sysdeps/s390/Makefile (sysdep_routines):
2963 Add memcpy/mempcpy variants.
2964 * sysdeps/s390/multiarch/ifunc-impl-list.c
2965 (__libc_ifunc_impl_list): Adjust ifunc variants for
2966 memcpy and mempcpy.
2967 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2968 to ...
2969 * sysdeps/s390/memcpy.c: ... here.
2970 Adjust ifunc variants for memcpy.
2971 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2972 * sysdeps/s390/mempcpy.c: ... here.
2973 Adjust ifunc variants for mempcpy.
2974 * sysdeps/s390/mempcpy.S: Delete file.
2975
2976 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2977
2978 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2979 * sysdeps/s390/memcpy.S: ... here.
2980 Adjust to be usable for 31/64bit.
2981 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2982 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2983 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2984 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2985 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2986 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2987 Adjust to be usable for 31/64bit.
2988 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2989 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2990 * sysdeps/s390/multiarch/memcpy.c: ... here.
2991 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2992
2993 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2994
2995 * sysdeps/s390/ifunc-memcmp.h: New File.
2996 * sysdeps/s390/memcmp.S: Move to ...
2997 * sysdeps/s390/memcmp-z900.S ... here.
2998 Move implementations from memcmp-s390x.s to here.
2999 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3000 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3001 Remove memcmp variants.
3002 * sysdeps/s390/Makefile (sysdep_routines):
3003 Add memcmp variants.
3004 * sysdeps/s390/multiarch/ifunc-impl-list.c
3005 (__libc_ifunc_impl_list): Adjust ifunc variants for
3006 memcmp.
3007 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3008 to ...
3009 * sysdeps/s390/memcmp.c: ... here.
3010 Adjust ifunc variants for memcmp.
3011
3012 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3013
3014 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3015 * sysdeps/s390/memcmp.S: ... here.
3016 Adjust to be usable for 31/64bit.
3017 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3018 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3019 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3020 Remove memcmp.
3021 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3022 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3023 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3024 Adjust to be usable for 31/64bit.
3025 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3026 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3027 * sysdeps/s390/multiarch/memcmp.c: ... here.
3028 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3029
3030 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3031
3032 * sysdeps/s390/s390-32/bzero.S: Delete file.
3033 * sysdeps/s390/s390-64/bzero.S: Likewise.
3034 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3035 * sysdeps/s390/bzero.c: New file.
3036 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3037 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3038 * sysdeps/s390/multiarch/ifunc-impl-list.c
3039 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3040
3041 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3042
3043 * sysdeps/s390/ifunc-memset.h: New File.
3044 * sysdeps/s390/memset.S: Move to ...
3045 * sysdeps/s390/memset-z900.S ... here.
3046 Move implementations from memset-s390x.s to here.
3047 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3048 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3049 Remove memset variants.
3050 * sysdeps/s390/Makefile (sysdep_routines):
3051 Add memset variants.
3052 * sysdeps/s390/multiarch/ifunc-impl-list.c
3053 (__libc_ifunc_impl_list): Adjust ifunc variants for
3054 memset.
3055 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3056 to ...
3057 * sysdeps/s390/memset.c: ... here.
3058 Adjust ifunc variants for memset.
3059
3060 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3061
3062 * sysdeps/s390/s390-64/memset.S: Move to ...
3063 * sysdeps/s390/memset.S: ... here.
3064 Adjust to be usable for 31/64bit.
3065 * sysdeps/s390/s390-32/memset.S: Delete File.
3066 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3067 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3068 Remove memset.
3069 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3070 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3071 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3072 Adjust to be usable for 31/64bit.
3073 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3074 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3075 * sysdeps/s390/multiarch/memset.c: ... here.
3076 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3077
3078 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3079
3080 * sysdeps/s390/multiarch/ifunc-resolve.h
3081 (s390_libc_ifunc_init, s390_libc_ifunc,
3082 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3083
3084 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3085
3086 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3087 * sysdeps/s390/configure.ac: Add check for z10 support.
3088 * sysdeps/s390/configure: Regenerated.
3089
3090 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3091
3092 * sysdeps/i386/atomic-machine.h: Merged with ...
3093 * sysdeps/x86_64/atomic-machine.h: To ...
3094 * sysdeps/x86/atomic-machine.h: This. New file.
3095
3096 2018-12-18 Florian Weimer <fweimer@redhat.com>
3097
3098 Rewrite locale/gen-translit.pl in Python.
3099 * locale/Makefile (generated): Add C-translit.h.
3100 (before-compile): Add $(objpfx)C-translit.h.
3101 (C-translit.h): Move to $(objpfx). Create target directory.
3102 Build using Python script.
3103 * locale/gen-translit.py: New file.
3104 * locale/gen-translit.pl: Remove file.
3105 * locale/C-translit.h.in: Change comment character to '#' for
3106 easier parsing without a C preprocessor.
3107 * locale/C-translit.h: Remove generated file.
3108 * manual/install.texi (Tools for Compilation): Do not mention
3109 C-translit.h.
3110 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3111 Remove locale/C-translit.h.
3112 * scripts/update-copyrights: Likewise.
3113 * INSTALL: Regenerate.
3114
3115 2018-12-18 Florian Weimer <fweimer@redhat.com>
3116
3117 [BZ #23995]
3118 * localedata/locales/bi_VU: Remove executable bit from file.
3119
3120 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3121
3122 * include/time.h
3123 (__localtime64): Add.
3124 * manual/maint.texi: Document Y2038 symbol handling.
3125 * time/localtime.c
3126 (__localtime64): Add.
3127 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3128
3129 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3130
3131 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3132 Do not clobber r12.
3133
3134 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3135 to allow extra macros from first or second sources.
3136 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3137 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3138 (tests-special): Add $(objpfx)tst-mman-consts.out.
3139 ($(objpfx)tst-mman-consts.out): New makefile target.
3140
3141 2018-12-17 Mao Han <han_mao@c-sky.com>
3142
3143 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3144 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3145 without stat64 system call support.
3146 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3147 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3148 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3149 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3150 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3151 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3152 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3153 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3154 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3155 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3156 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3157
3158 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3159
3160 regex: fix storage-exhaustion error
3161 [BZ #18040]
3162 * posix/regexec.c (get_subexp):
3163 Do not continue if storage is exhausted.
3164
3165 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3166
3167 regex: fix heap-use-after-free error
3168 [BZ #18040]
3169 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3170 https://debbugs.gnu.org/32592
3171 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3172 call extend_buffers which reallocates the re_string_t internal buffer.
3173 Local variable 'buf' was not updated in such case, resulting in
3174 use-after-free.
3175 * posix/regexec.c (get_subexp): Update 'buf' after call to
3176 get_subexp_sub.
3177
3178 2018-12-15 Florian Weimer <fweimer@redhat.com>
3179
3180 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3181 (minimum_stride_size): Use it.
3182 (support_blob_repeat_allocate): Likewise.
3183
3184 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3185
3186 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3187 definition.
3188 (acosh): Likewise.
3189 (atanh): Likewise.
3190
3191 2018-12-14 Florian Weimer <fweimer@redhat.com>
3192
3193 * manual/process.texi (Process Creation Concepts): Remove
3194 documentation of process (ID) lifetime. List more process
3195 creation functions. Reference Process Identification section.
3196 (Process Identification): Add information about process ID
3197 lifetime. Describe Linux thread/task IDs.
3198 * manual/signal.texi (Signaling Another Process): Mention that the
3199 signal is always sent to the process.
3200
3201 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3202
3203 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3204 and tst-ldbl-efgcvt.
3205 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3206 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3207 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3208 (fcvt_tests, output_error, output_r_error, do_test): Use the
3209 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3210 select the type of floating-point variables and arguments; to
3211 produce extra tests for double and conversion specifiers for
3212 printf; and to set the names of called functions.
3213 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3214 in tst-efgcvt-template.c.
3215 * misc/tst-ldbl-efgcvt.c: Likewise.
3216
3217 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3218
3219 * nss/Makefile (tst-nss-test3.out): New rule.
3220
3221 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3222
3223 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3224 clobber sp.
3225
3226 2018-12-13 fanjinke <fanjinke@hygon.cn>
3227
3228 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3229 "HygonGenuine".
3230
3231 2018-12-13 Andreas Schwab <schwab@suse.de>
3232
3233 [BZ #23861]
3234 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3235 (__pthread_rwlock_rdlock_full): Update expected value for
3236 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3237 * nptl/tst-rwlock-pwn.c: New file.
3238 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3239
3240 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3241
3242 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3243 definition.
3244
3245 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3246
3247 * benchtests/scripts/compare_bench.py (do_compare): write to
3248 stderr in casestat is not present.
3249 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3250 stderr in case timings field is not present. Also string showing
3251 the output filename goes into the stderr.
3252
3253 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3254
3255 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3256 and ZeroDivisorError exceptions.
3257 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3258 argument to loop through user provided statistics.
3259 * benchtests/scripts/compare_bench.py (main): Include the --stats
3260 argument.
3261
3262 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3263
3264 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3265 instead of return.
3266
3267 2018-12-12 Florian Weimer <fweimer@redhat.com>
3268
3269 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3270 clause to copyright header.
3271
3272 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3273
3274 [BZ #23614]
3275 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3276 registers saved in the stack frame.
3277 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3278 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3279
3280 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3281
3282 * include/bits/monetary-ldbl.h: New file.
3283 * include/bits/printf-ldbl.h: Likewise.
3284 * include/bits/stdio-ldbl.h: Likewise.
3285 * include/bits/stdlib-ldbl.h: Likewise.
3286 * include/bits/syslog-ldbl.h: Likewise.
3287 * include/bits/wchar-ldbl.h: Likewise.
3288
3289 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3290
3291 * libio/libio.h: Remove redirection for _IO_vfprintf.
3292
3293 2018-12-11 Andreas Schwab <schwab@suse.de>
3294
3295 * Makerules: Remove all references to abilist-pattern.
3296 (update-all-abi): Simplify find expression.
3297
3298 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3299
3300 [BZ #23961]
3301 * math/auto-libm-test-in: Add new test case.
3302 * math/auto-libm-test-out-pow: Regenerated.
3303 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3304
3305 2018-12-10 DJ Delorie <dj@redhat.com>
3306
3307 [BZ #23948]
3308 * support/test-container.c: Move postclean step to before we
3309 change namespaces.
3310
3311 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3312
3313 * scripts/gen-as-const.py (main): Handle --python option.
3314 * scripts/gen-py-const.awk: Remove.
3315 * Makerules (py-const-script): Use gen-as-const.py.
3316 ($(py-const)): Likewise.
3317 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3318 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3319 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3320 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3321 ~PTHREAD_MUTEX_NO_ELISION_NP.
3322 * manual/README.pretty-printers: Update reference to
3323 gen-py-const.awk.
3324
3325 * scripts/glibcextract.py: New file.
3326 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3327 or tempfile. Import glibcexctract.
3328 (compute_c_consts): Remove. Moved to glibcextract.py.
3329 (gen_test): Update reference to compute_c_consts.
3330 (main): Likewise.
3331 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3332 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3333 * sysdeps/unix/sysv/linux/Makefile
3334 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3335 Redirect stderr as well as stdout.
3336
3337 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3338
3339 [BZ #19767]
3340 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3341 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3342 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3343 ALWAYS_USE_VSYSCALL.
3344 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3345 ALWAYS_USE_VSYSCALL.
3346 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3347 ALWAYS_USE_VSYSCALL.
3348
3349 2018-12-10 Florian Weimer <fweimer@redhat.com>
3350
3351 [BZ #23972]
3352 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3353 offset instead of count for clarity. Fix typo in comment.
3354 (__old_getdents64): Keep track of previous offset. Use it to call
3355 handle_overflow.
3356 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3357 that d_off is never zero.
3358
3359 2018-12-10 Andreas Schwab <schwab@suse.de>
3360
3361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3362 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3363 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3364 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3365 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3366
3367 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3368
3369 * timezone/private.h: Update from tzcode 2018g.
3370 * timezone/tzfile.h: Likewise.
3371 * timezone/tzselect.ksh: Likewise.
3372 * timezone/zdump.c: Likewise.
3373 * timezone/zic.c: Likewise.
3374
3375 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3376
3377 [BZ #23490]
3378 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3379 (do_test): Adjust buffer size and fix format.
3380
3381 2018-12-07 DJ Delorie <dj@redhat.com>
3382
3383 [BZ #23907]
3384 * malloc/tst-tcfree3.c: New.
3385 * malloc/Makefile: Add it.
3386
3387 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3388
3389 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3390
3391 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3392
3393 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3394 used as a mask for the mode argument of __vfscanf_internal and
3395 __vfwscanf_internal.
3396 * stdio-common/vfscanf-internal.c
3397 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3398 (__strtof128_internal): Define to __wcstof128_internal.
3399 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3400 __strtof128_internal or __wcstof128_internal when the format of
3401 long double is the same as _Float128.
3402
3403 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3404
3405 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3406 * posix/confstr.c (confstr): Rename to __confstr.
3407 (__confstr): Add hidden def.
3408 (confstr): Add weak alias for __confstr.
3409 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3410 confstr.
3411
3412 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3413
3414 * NEWS: Mention getcpu.
3415 * include/sched.h (__getcpu): New libc_hidden_proto.
3416 * manual/resource.texi: Document getcpu.
3417 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3418 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3419 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3420 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3421 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3422 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3423 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3424 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3425 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3426 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3427 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3428 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3429 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3430 Likewise.
3431 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3432 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3433 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3437 Likewise.
3438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3439 Likewise.
3440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3441 Likewise.
3442 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3443 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3444 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3445 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3446 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3447 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3448 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3449 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3450 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3451 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3452 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3453 Also check getcpu.
3454
3455 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3456
3457 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3458 functions.
3459 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3460
3461 2018-12-07 Florian Weimer <fweimer@redhat.com>
3462
3463 [BZ #17405]
3464 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3465 * posix/Versions (GLIBC_2.29): Export
3466 posix_spawn_file_actions_addfchdir_np.
3467 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3468 * posix/spawn_faction_destroy.c
3469 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3470 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3471 and the field action.fchdir_action.
3472 * posix/tst-spawn-chdir.c (add_chdir): New function.
3473 (do_test): Add do_fchdir loop. Call add_chdir.
3474 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3475 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3476 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3477 posix_spawn_file_actions_addfchdir_np.
3478 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3479 Likewise.
3480 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3481 Likewise.
3482 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3483 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3484 Likewise.
3485 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3486 Likewise.
3487 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3488 Likewise.
3489 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3490 Likewise.
3491 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3492 Likewise.
3493 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3494 Likewise.
3495 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3496 (GLIBC_2.29): Likewise.
3497 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3498 (GLIBC_2.29): Likewise.
3499 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3500 (GLIBC_2.29): Likewise.
3501 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3502 (GLIBC_2.29): Likewise.
3503 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3504 Likewise.
3505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3506 (GLIBC_2.29): Likewise.
3507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3508 (GLIBC_2.29): Likewise.
3509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3510 (GLIBC_2.29): Likewise.
3511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3512 (GLIBC_2.29): Likewise.
3513 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3514 Likewise.
3515 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3516 Likewise.
3517 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3518 Likewise.
3519 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3520 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3521 Likewise.
3522 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3523 Likewise.
3524 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3525 Likewise.
3526 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3527 Likewise.
3528
3529 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3530
3531 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3532 trailing whitespace removed.
3533 * scripts/config.guess: Update to version 2018-11-28.
3534 * scripts/config.sub: Update to version 2018-11-28.
3535 * scripts/install-sh: Update to version 2018-03-11.20.
3536 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3537 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3538
3539 2018-12-07 Florian Weimer <fweimer@redhat.com>
3540
3541 [BZ #23927]
3542 CVE-2018-19591
3543 * inet/tst-if_index-long.c: New file.
3544 * inet/Makefile (tests): Add tst-if_index-long.
3545
3546 2018-12-07 Florian Weimer <fweimer@redhat.com>
3547
3548 * support/check.h (support_record_failure_is_failed): Declare.
3549 * support/descriptors.h: New file.
3550 * support/support_descriptors.c: Likewise.
3551 * support/tst-support_descriptors.c: Likewise.
3552 * support/support_record_failure.c
3553 (support_record_failure_is_failed): New function.
3554 * support/Makefile (libsupport-routines): Add support_descriptors.
3555 (tests): Add tst-support_descriptors.
3556
3557 2018-12-05 Zack Weinberg <zackw@panix.com>
3558 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3559
3560 * stdio-common/vfprintf-internal.c
3561 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3562 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3563 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3564 and __no_long_double.
3565 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3566 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3567 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3568 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3569 and __nldbl_*syslog* functions.
3570 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3571 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3572 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3573 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3574 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3575 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3576 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3577 (__nldbl_vwprintf, __nldbl_wprintf):
3578 Directly call the appropriate __v*printf_internal routine, passing
3579 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3580 variable names.
3581 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3582 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3583 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3584 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3585 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3586 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3587 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3588 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3589 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3590 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3591 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3592 (__nldbl_syslog, __nldbl_vsyslog):
3593 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3594 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3595 appropriate.
3596 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3597 appropriate.
3598
3599 2018-12-05 Zack Weinberg <zackw@panix.com>
3600 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3601
3602 [BZ #11319]
3603 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3604 Moved here from debug/vsprintf_chk.c.
3605 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3606 and completion logic for the strfile to match exactly what
3607 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3608 _IO_str_init_static_internal instead of maxlen-1.
3609 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3610 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3611 __vsprintf_internal.
3612
3613 * debug/vsprintf_chk.c (__vsprintf_chk)
3614 * debug/sprintf_chk.c (__sprintf_chk):
3615 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3616 'flags' argument is positive, and slen as maxlen. No need to lock
3617 the FILE and/or construct a temporary FILE. Minimize and normalize
3618 header inclusions and variable names. Do not libc_hidden_def anything.
3619
3620 * debug/asprintf_chk.c (__asprintf_chk)
3621 * debug/dprintf_chk.c (__dprintf_chk)
3622 * debug/fprintf_chk.c (__fprintf_chk)
3623 * debug/fwprintf_chk.c (__fwprintf_chk)
3624 * debug/printf_chk.c (__printf_chk)
3625 * debug/snprintf_chk.c (__snprintf_chk)
3626 * debug/swprintf_chk.c (__swprintf_chk)
3627 * debug/vasprintf_chk.c (__vasprintf_chk)
3628 * debug/vdprintf_chk.c (__vdprintf_chk)
3629 * debug/vfprintf_chk.c (__vfprintf_chk)
3630 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3631 * debug/vprintf_chk.c (__vprintf_chk)
3632 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3633 * debug/vswprintf_chk.c (__vswprintf_chk)
3634 * debug/vwprintf_chk.c (__vwprintf_chk)
3635 * debug/wprintf_chk.c (__wprintf_chk):
3636 Directly call the corresponding vxxprintf_internal function, passing
3637 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3638 the FILE and/or construct a temporary FILE. Minimize and normalize
3639 header inclusions and variable names. Do not libc_hidden_def anything.
3640
3641 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3642 __obstack_vprintf_internal.
3643 (__obstack_vprintf_chk): Convert into a wrapper that calls
3644 __obstack_vprintf_internal (these two functions already had the
3645 same code) and move to new file...
3646 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3647 file.
3648 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3649 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3650 * debug/Makefile (routines): Add vobprintf_chk.
3651
3652 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3653 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3654 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3655 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3656 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3657 (__nldbl___obstack_vfprintf_chk):
3658 Directly call the corresponding vxxprintf_internal function,
3659 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3660 duplicate comparison of slen with 0 or maxlen from the corresponding
3661 non-__nldbl function.
3662
3663 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3664 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3665 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3666 Remove libc_hidden_proto.
3667
3668 * stdio-common/vfprintf-internal.c
3669 (__vfprintf_internal, __vfwprintf_internal):
3670 Do not check _IO_FLAGS2_FORTIFY.
3671 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3672 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3673 a comment explaining why it has the maxlen argument.
3674 (_IO_acquire_lock_clear_flags2_fct): Remove.
3675 (_IO_acquire_lock_clear_flags2): Remove.
3676 (_IO_release_lock): Remove conditional statement which will
3677 now never execute.
3678 (_IO_acquire_lock): Remove variable which is now unused.
3679 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3680 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3681
3682 * stdio-common/Makefile (tests): Add tst-bz11319 and
3683 tst-bz11319-fortify2.
3684 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3685 * stdio-common/tst-bz11319-fortify2.c: New file.
3686 * stdio-common/tst-bz11319.c: Likewise.
3687
3688 2018-12-05 Zack Weinberg <zackw@panix.com>
3689 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3690
3691 * misc/syslog.c: Include libioP.h, not iolibio.h.
3692 (__vsyslog_internal): New function with the former body of
3693 __vsyslog_chk; takes mode_flags argument same as
3694 __v*printf_internal. Call __vfprintf_internal directly.
3695
3696 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3697 Remove libc_hidden_def.
3698 (__syslog, __syslog_chk): Use __vsyslog_internal.
3699 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3700
3701 * include/sys/syslog.h: Add multiple inclusion guard.
3702 Add prototype for __vsyslog_internal.
3703 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3704
3705 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3706 Use __vsyslog_internal.
3707
3708 2018-12-05 Zack Weinberg <zackw@panix.com>
3709 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3710
3711 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3712 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3713 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3714 New functions.
3715 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3716 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3717
3718 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3719 Include wctype.h here if COMPILE_WPRINTF is defined.
3720 Define __vfprintf_internal or __vfwprintf_internal, depending
3721 on COMPILE_WPRINTF.
3722 Temporarily, on entry to this function, update mode_flags
3723 according to the environmental settings corresponding to
3724 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3725 Throughout, check mode_flags instead of __ldbl_is_dbl and
3726 _IO_FLAGS2_FORTIFY on the destination FILE.
3727 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3728 Include vfprintf-internal.c. Don't include wctype.h.
3729 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3730 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3731 and vfprintf.
3732 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3733 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3734 and vfwprintf.
3735 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3736
3737 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3738 and add mode_flags argument; use __vfprintf_internal.
3739 (__vdprintf): New function. Alias vdprintf to this.
3740 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3741 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3742 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3743 (__obstack_printf): Use __obstack_printf_internal.
3744 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3745 public aliases __vsnprintf and vsnprintf.
3746 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3747 called internally.
3748 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3749 public aliases _IO_vsprintf and vsprintf.
3750 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3751 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3752 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3753 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3754 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3755
3756 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3757 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3758 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3759 * stdio-common/printf.c: Use __vfprintf_internal.
3760
3761 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3762 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3763 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3764
3765 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3766 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3767 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3768 __vfwprintf_internal.
3769
3770 * libio/libio.h: Remove libc_hidden_proto and declaration for
3771 _IO_vfprintf.
3772 Remove declaration of _IO_vfwprintf.
3773 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3774 _IO_vsprintf.
3775 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3776 _IO_obstack_printf.
3777 * include/stdio.h: Add prototype for __vasprintf.
3778 (__vsnprintf): Remove declaration, because there are no more
3779 internal calls.
3780 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3781 declaration, because there are no more internal calls.
3782
3783 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3784 __vsnprintf_internal, instead of _IO_vsnprintf.
3785 * argp/argp-help.c (__argp_error, __argp_failure): Use
3786 __vasprintf_internal, instead of _IO_vasprintf.
3787 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3788 redefine, because there are no more internal calls.
3789
3790 2018-12-05 Zack Weinberg <zackw@panix.com>
3791 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3792
3793 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3794 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3795 Include libio/strfile.h instead of libioP.h.
3796 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3797 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3798 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3799 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3800 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3801 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3802 necessary. Do not set __no_long_double. Normalize variable names.
3803 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3804 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3805 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3806 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3807 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3808 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3809 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3810 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3811 Do not set __no_long_double. Normalize variable names.
3812
3813 2018-12-05 Zack Weinberg <zackw@panix.com>
3814 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3815
3816 * stdio-common/isoc99_scanf.c
3817 * stdio-common/isoc99_fscanf.c
3818 * stdio-common/isoc99_sscanf.c
3819 * stdio-common/isoc99_vscanf.c
3820 * stdio-common/isoc99_vfscanf.c
3821 * stdio-common/isoc99_vsscanf.c
3822 * wcsmbs/isoc99_wscanf.c
3823 * wcsmbs/isoc99_fwscanf.c
3824 * wcsmbs/isoc99_swscanf.c
3825 * wcsmbs/isoc99_vwscanf.c
3826 * wcsmbs/isoc99_vfwscanf.c
3827 * wcsmbs/isoc99_vswscanf.c:
3828 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3829 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3830 No need to lock and unlock the FILE passed to that function.
3831
3832 * stdio-common/vfscanf-internal.c
3833 (__vfscanf_internal, __vfwscanf_internal):
3834 Don't look at _IO_FLAGS2_SCANF_STD.
3835 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3836 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3837 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3838
3839 2018-12-05 Zack Weinberg <zackw@panix.com>
3840 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3841
3842 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3843 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3844 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3845 * libio/strfile.h: Add multiple inclusion guard.
3846 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3847
3848 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3849 consistency with the other version of this file.
3850 (ldbl_compat_symbol): New macro.
3851 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3852 New macro.
3853
3854 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3855 Define __vfscanf_internal or __vfwscanf_internal, depending on
3856 COMPILE_WSCANF; don't define any other public symbols.
3857 Remove errval and code to set errp.
3858 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3859 as the mode_flags argument.
3860 (encode_error, conv_error, input_error): Don't set errval.
3861 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3862 Include vfscanf-internal.c.
3863 * stdio-common/vfscanf.c: New file defining the public entry
3864 point vfscanf, which calls __vfscanf_internal.
3865 * stdio-common/vfwscanf.c: New file defining the public entry
3866 point vfwscanf, which calls __vfwscanf_internal.
3867
3868 * stdio-common/iovfscanf.c: New file.
3869 * stdio-common/iovfwscanf.c: Likewise.
3870
3871 * stdio-common/Makefile (routines): Add vfscanf-internal,
3872 vfwscanf-internal, iovfscanf, iovfwscanf.
3873 * stdio-common/Versions: Mention GLIBC_2.29, so that
3874 it can be used in SHLIB_COMPAT expressions.
3875 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3876 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3877 Call __vfscanf_internal, instead of _IO_vfscanf.
3878 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3879 _IO_vfscanf.
3880 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3881 _IO_vfwscanf.
3882
3883 * libio/iovsscanf.c: Clean up includes, when possible. Use
3884 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3885 __vfscanf_internal or __vfwscanf_internal directly.
3886 * libio/iovswscanf.c: Likewise.
3887 * libio/swscanf.c: Likewise.
3888 * libio/vscanf.c: Likewise.
3889 * libio/vwscanf.c: Likewise.
3890 * libio/wscanf.c: Likewise.
3891 * stdio-common/isoc99_fscanf.c: Likewise.
3892 * stdio-common/isoc99_scanf.c: Likewise.
3893 * stdio-common/isoc99_sscanf.c: Likewise.
3894 * stdio-common/isoc99_vfscanf.c: Likewise.
3895 * stdio-common/isoc99_vscanf.c: Likewise.
3896 * stdio-common/isoc99_vsscanf.c: Likewise.
3897 * stdio-common/scanf.c: Likewise.
3898 * stdio-common/sscanf.c: Likewise.
3899 * wcsmbs/isoc99_fwscanf.c: Likewise.
3900 * wcsmbs/isoc99_swscanf.c: Likewise.
3901 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3902 * wcsmbs/isoc99_vswscanf.c: Likewise.
3903 * wcsmbs/isoc99_vwscanf.c: Likewise.
3904 * wcsmbs/isoc99_wscanf.c: Likewise.
3905
3906 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3907
3908 * include/time.h
3909 (__tz_compute): Replace time_t with __time64_t.
3910 (__tz_convert): Replace time_t* with __time64_t.
3911 (__offtime): Replace time_t* with __time64_t.
3912 * time/gmtime.c
3913 (__gmtime_r): Adjust call to __tz_convert.
3914 (gmtime): Likewise.
3915 * time/localtime.c
3916 (__localtime_r): Likewise.
3917 (localtime): Likewise.
3918 * time/offtime.c: Replace time_t with __time64_t.
3919 * time/tzset.c: Likewise.
3920
3921 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3922
3923 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3924 dynamic linker unless [$(run-built-tests) = yes].
3925
3926 2018-12-03 DJ Delorie <dj@delorie.com>
3927
3928 * support/test-container.c (check_for_unshare_hints): New.
3929 (main): Call it if unshare fails. Add support for "su" scriptlet
3930 command.
3931
3932 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3933
3934 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3935 'START' to indicate that start text should be output.
3936 (gen_test): Likewise.
3937 (main): Generate 'START' for first symbol or '--' line, or at end
3938 of input if not previously generated.
3939
3940 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3941
3942 [BZ #19767]
3943 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3944 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3945 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3946 ALWAYS_USE_VSYSCALL.
3947
3948 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3949
3950 [BZ #23913]
3951 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3952 new_argv by one.
3953
3954 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3955
3956 [BZ #23923]
3957 * locale/programs/localedef.c: Declare boolean hard_links default true.
3958 (options): Add --no-hard-links option.
3959 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3960 * locale/programs/localedef.h: Declare prototype for hard_links.
3961 * locale/programs/locfile.c (write_locale_data): Don't use hard
3962 links if hard_links is false.
3963
3964 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3965
3966 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3967 cpu_features_basic.
3968 (__cache_sysconf): Likewise.
3969 (init_cacheinfo): Likewise.
3970 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3971 populate COMMON_CPUID_INDEX_80000007 and
3972 COMMON_CPUID_INDEX_80000008.
3973 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3974 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3975 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3976 (init_cpu_features): Use _Static_assert on
3977 index_arch_Fast_Unaligned_Load.
3978 __get_cpuid_registers and __get_arch_feature. Updated for
3979 cpu_features_basic. Set stepping in cpu_features.
3980 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3981 (FEATURE_INDEX_2): New.
3982 (FEATURE_INDEX_MAX): Changed to enum.
3983 (COMMON_CPUID_INDEX_D_ECX_1): New.
3984 (COMMON_CPUID_INDEX_80000007): Likewise.
3985 (COMMON_CPUID_INDEX_80000008): Likewise.
3986 (cpuid_registers): Likewise.
3987 (cpu_features_basic): Likewise.
3988 (CPU_FEATURE_USABLE): Likewise.
3989 (bit_arch_XXX_Usable): Likewise.
3990 (cpu_features): Use cpuid_registers and cpu_features_basic.
3991 (bit_arch_XXX): Reweritten.
3992 (bit_cpu_XXX): Likewise.
3993 (index_cpu_XXX): Likewise.
3994 (reg_XXX): Likewise.
3995 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3996 <support/check.h>.
3997 (CHECK_CPU_FEATURE): New.
3998 (CHECK_CPU_FEATURE_USABLE): Likewise.
3999 (cpu_kinds): Likewise.
4000 (do_test): Print vendor, family, model and stepping. Check
4001 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4002 (TEST_FUNCTION): Removed.
4003 Include <support/test-driver.c> instead of
4004 "../../test-skeleton.c".
4005 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4006 Check POPCNT instead of POPCOUNT.
4007 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4008
4009 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4010
4011 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4012 there is no element in `consts'.
4013
4014 2018-12-01 Florian Weimer <fweimer@redhat.com>
4015
4016 * support/support_capture_subprocess.c
4017 (support_capture_subprocess): Check that pipe descriptors have
4018 expected values. Close original pipe descriptors in subprocess.
4019
4020 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4021
4022 [BZ #23032]
4023 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4024 attr with __pthread_default_barrierattr.
4025 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4026 attr with __pthread_default_condattr.
4027 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4028 attr with __pthread_default_mutexattr.
4029 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4030 attr with __pthread_default_rwlockattr.
4031
4032 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4033
4034 * manual/tunables.texi (POSIX Thread Tunables): New node.
4035 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4036 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4037 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4038 __pthread_tunables_init.
4039 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4040 (max_adaptive_count): Define.
4041 * nptl/pthread_mutex_conf.c: New file.
4042 * nptl/pthread_mutex_conf.h: New file.
4043 * sysdeps/generic/adaptive_spin_count.h: New file.
4044 * sysdeps/nptl/dl-tunables.list: New file.
4045 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4046 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4047 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4048 Likewise.
4049
4050 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4051
4052 [BZ #20544]
4053 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4054 * stdlib/on_exit.c (__on_exit): Likewise.
4055 * stdlib/Makefile (tests): Add tst-bz20544.
4056 * stdlib/tst-bz20544.c: New test.
4057
4058 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4059
4060 [BZ #19767]
4061 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4062 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4063 New.
4064
4065 2018-11-30 Florian Weimer <fweimer@redhat.com>
4066
4067 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4068 Extend error logging.
4069 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4070 symbol.
4071
4072 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4073
4074 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4075 __sigismember instead of sigismember.
4076 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4077 cancel_handler): New definitions.
4078 (do_system): Use posix_spawn instead of fork and execl and remove
4079 reentracy code.
4080 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4081 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4082 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4083 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4084 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4085 * sysdeps/unix/sysv/linux/system.c: Likewise.
4086
4087 [BZ #22834]
4088 [BZ #17490]
4089 * NEWS: Add new semantic for atfork with popen and system.
4090 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4091 fork and execl.
4092
4093 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4094
4095 [BZ #23690]
4096 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4097 modification order when accessing reloc_result->addr.
4098 * include/link.h (reloc_result): Add field init.
4099 * nptl/Makefile (tests): Add tst-audit-threads.
4100 (modules-names): Add tst-audit-threads-mod1 and
4101 tst-audit-threads-mod2.
4102 Add rules to build tst-audit-threads.
4103 * nptl/tst-audit-threads-mod1.c: New file.
4104 * nptl/tst-audit-threads-mod2.c: Likewise.
4105 * nptl/tst-audit-threads.c: Likewise.
4106 * nptl/tst-audit-threads.h: Likewise.
4107
4108 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4109
4110 * scripts/gen-as-const.py: New file.
4111 * scripts/gen-as-const.awk: Remove.
4112 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4113 gen-as-const.py.
4114 ($(objpfx)test-as-const-%.c): Likewise.
4115
4116 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4117
4118 * elf/dl-exception.c: Include <_itoa.h>.
4119
4120 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4121
4122 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4123 returned by __f_setlk.
4124
4125 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4126 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4127
4128 * elf/Makefile (tests-internal): Add tst-create_format1.
4129 * elf/dl-exception.c (_dl_exception_create_format): Support
4130 %x, %lx and %zx.
4131 * elf/tst-create_format1.c: New file.
4132
4133 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4134
4135 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4136 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4137 gnulib.)
4138 * argp/argp-help.c (__argp_failure): Likewise.
4139
4140 2018-11-29 Mao Han <han_mao@c-sky.com>
4141
4142 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4143 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4144 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4145 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4146 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4147 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4148 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4149 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4150 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4151 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4152 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4153 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4154 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4155 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4156 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4157 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4158 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4159 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4160 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4161 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4162 (R_CKCORE_TLS_TPOFF32): New defines.
4163
4164 2018-11-29 Florian Weimer <fweimer@redhat.com>
4165
4166 * posix/Makefile (before-compile): Remove testcases.h and
4167 ptestcases.h.
4168 (generated): Add testcases.h and ptestcases.h.
4169 (testcases.h, ptestcases.h): Move to $(objpfx).
4170 (runtests.o): Add dependency on testcases.h.
4171 (runptests.o): Add dependency on ptestcases.h.
4172 * posix/testcases.h, posix/ptestcases.h: Remove files.
4173 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4174 not touch posix/testcases.h and posix/ptestcases.h.
4175
4176 2018-11-28 Florian Weimer <fweimer@redhat.com>
4177
4178 support: Add signal support to support_capture_subprocess_check.
4179 * support/capture_subprocess.h (support_capture_subprocess_check):
4180 Adjust comment and rename parameter.
4181 * support/support_capture_subprocess_check.c
4182 (print_actual_status): New function.
4183 (support_capture_subprocess_check): Support negative
4184 status_or_signal. Call print_actual_status.
4185 * support/tst-support_capture_subprocess.c (do_test): Call
4186 support_capture_subprocess_check.
4187 * libio/tst-vtables-common.c (termination_status)
4188 (init_termination_status): Remove.
4189 (check_for_termination): Adjust support_capture_subprocess_check
4190 call.
4191 (do_test): Remove call to init_termination_status.
4192
4193 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4194
4195 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4196 source directory instead of a copy.
4197 (CommandList.create_copy_dir): Remove.
4198
4199 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4200
4201 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4202
4203 2018-11-28 Florian Weimer <fweimer@redhat.com>
4204
4205 * support/support.h (support_quote_string): Do not use str
4206 parameter name.
4207
4208 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4209
4210 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4211 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4212
4213 2018-11-27 Florian Weimer <fweimer@redhat.com>
4214
4215 * support/support.h (support_quote_string): Declare.
4216 * support/support_quote_string.c: New file.
4217 * support/tst-support_quote_string.c: Likewise.
4218 * support/Makefile (libsupport-routines): Add
4219 support_quote_string.
4220 (tests): Add tst-support_quote_string.
4221
4222 2018-11-27 Florian Weimer <fweimer@redhat.com>
4223
4224 [BZ #23927]
4225 CVE-2018-19591
4226 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4227 descriptor leak in case of ENODEV error.
4228
4229 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4230
4231 [BZ #19767]
4232 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4233 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4234 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4235
4236 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4237
4238 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4239 Error for unknown lines.
4240
4241 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4242
4243 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4244 Touch additional files.
4245
4246 2018-11-26 Florian Weimer <fweimer@redhat.com>
4247
4248 [BZ #23907]
4249 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4250 double-frees.
4251
4252 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4253
4254 [BZ #19767]
4255 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4256 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4257 SHARED. Include sysdep.h.
4258 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4259 ALWAYS_USE_VSYSCALL.
4260 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4261 ALWAYS_USE_VSYSCALL.
4262
4263 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4264
4265 [BZ #19767]
4266 * nptl/Makefile (tests-static): Add tst-cond11-static.
4267 (tests): Likewise.
4268 * nptl/tst-cond11-static.c: New File.
4269 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4270 tst-affinity-static.
4271 (tests): Likewise.
4272 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4273 instead of SHARED.
4274 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4275 (USE_VSYSCALL): Likewise.
4276 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4277 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4278 instead of SHARED.
4279 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4280 SHARED.
4281 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4282 New.
4283
4284 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4285
4286 [BZ #23915]
4287 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4288 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4289 Undefine.
4290
4291 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4292
4293 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4294 (tst-cet-legacy-1a-ARGS): New.
4295 ($(objpfx)tst-cet-legacy-1a): New target.
4296 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4297
4298 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4299
4300 * conform/conformtest.py (CompileSubTest.__init__): Set
4301 self.run_early to False.
4302 (ExecuteSubTest.__init__): Likewise.
4303 (HeaderTests.run): Try running all non-optional, non-XFAILed
4304 compilation tests in a single execution of the compiler.
4305
4306 * conform/conformtest.py (CompileSubTest): New class.
4307 (ExecuteSubTest): Likewise.
4308 (ElementTest.run): Rename to gen_subtests. Append tests to
4309 self.subtests instead of running them.
4310 (ConstantTest.run): Likewise.
4311 (SymbolTest.run): Likewise.
4312 (TypeTest.run): Likewise.
4313 (TagTest.run): Likewise.
4314 (FunctionTest.run): Likewise.
4315 (VariableTest.run): Likewise.
4316 (MacroFunctionTest.run): Likewise.
4317 (MacroStrTest.run): Likewise.
4318 (HeaderTests.handle_test_line): Generate subtests for tests.
4319 (HeaderTests.run): Run subtests for tests.
4320
4321 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4322
4323 * math/Versions (GLIBC_2.29): Add pow.
4324 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4325 symbol.
4326 * math/w_pow.c: New file.
4327 * sysdeps/i386/fpu/w_pow.c: New file.
4328 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4329 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4330 and add necessary aliases.
4331 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4332 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4333 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4345 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4353 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4354 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4357 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4358 __pow.
4359 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4360 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4361 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4362
4363 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4364
4365 * math/Versions (GLIBC_2.29): Add log2.
4366 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4367 symbol.
4368 * math/w_log2.c: New file.
4369 * sysdeps/i386/fpu/w_log2.c: New file.
4370 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4371 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4372 and add necessary aliases.
4373 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4374 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4375 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4387 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4397 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4399
4400 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4401
4402 * math/Versions (GLIBC_2.29): Add log.
4403 * math/w_log_compat.c (__log_compat): Change to versioned compat
4404 symbol.
4405 * math/w_log.c: New file.
4406 * sysdeps/i386/fpu/w_log.c: New file.
4407 * sysdeps/ia64/fpu/e_log.S: Update.
4408 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4409 and add necessary aliases.
4410 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4411 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4412 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4413 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4414 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4415 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4416 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4417 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4424 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4429 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4432 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4433 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4434 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4435 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4436 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4437 __log.
4438 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4439 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4440 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4441 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4442
4443 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4444
4445 * math/Versions (GLIBC_2.29): Add exp and exp2.
4446 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4447 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4448 * math/w_exp_compat.c (__exp_compat): Likewise.
4449 * math/w_exp.c: New file.
4450 * math/w_exp2.c: New file.
4451 * sysdeps/i386/fpu/w_exp.c: New file.
4452 * sysdeps/i386/fpu/w_exp2.c: New file.
4453 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4454 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4455 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4456 and add necessary aliases.
4457 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4458 and add necessary aliases.
4459 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4460 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4461 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4462 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4463 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4464 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4465 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4466 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4467 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4468 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4469 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4470 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4471 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4472 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4473 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4474 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4475 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4480 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4481 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4482 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4483 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4484 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4485 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4486 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4487 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4488 (__ieee754_exp): Rename to __exp.
4489 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4490 (__ieee754_exp): Rename to __exp.
4491 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4492 (__ieee754_exp): Rename to __exp.
4493 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4494 __exp.
4495 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4496
4497 2018-11-20 DJ Delorie <dj@redhat.com>
4498
4499 * malloc/malloc.c (tcache_entry): Add key field.
4500 (tcache_put): Set it.
4501 (tcache_get): Likewise.
4502 (_int_free): Check for double free in tcache.
4503 * malloc/tst-tcfree1.c: New.
4504 * malloc/tst-tcfree2.c: New.
4505 * malloc/Makefile: Run the new tests.
4506 * manual/probes.texi: Document memory_tcache_double_free probe.
4507
4508 * dlfcn/dlerror.c (check_free): Prevent double frees.
4509
4510 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4511
4512 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4513
4514 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4515
4516 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4517 in tests. Use names for format arguments.
4518 (ConstantTest.run): Likewise.
4519 (SymbolTest.run): Likewise.
4520 (TypeTest.run): Likewise.
4521 (TagTest.run): Likewise.
4522 (FunctionTest.run): Likewise.
4523 (VariableTest.run): Likewise.
4524 (MacroFunctionTest.run): Likewise.
4525 (MacroStrTest.run): Likewise.
4526 (HeaderTests.__init__): Set self.num_tests.
4527 (HeaderTests.handle_test_line): Set test.num. Increment
4528 self.num_tests.
4529
4530 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4531
4532 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4533 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4534 SEEK_SET.
4535
4536 2018-11-19 Mao Han <han_mao@c-sky.com>
4537
4538 * scripts/config.guess: Update to version 2018-08-29.
4539 * scripts/config.sub: Update to version 2018-08-29.
4540
4541 2018-11-19 Florian Weimer <fweimer@redhat.com>
4542
4543 support: Print timestamps in timeout handler.
4544 * support/support_test_main.c (print_timestamp): New function.
4545 (signal_handler): Use it to print the termination time and the
4546 time of the last write to standard output.
4547
4548 2018-11-16 Zack Weinberg <zackw@panix.com>
4549 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4550
4551 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4552 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4553 argument.
4554 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4555 and add flags argument. Check flags instead of __ldbl_is_dbl when
4556 deciding whether to set is_long_double.
4557 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4558 passing zero for flags argument.
4559 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4560
4561 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4562 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4563 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4564 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4565 variable names. Remove libc_hidden_def/libc_hidden_proto from
4566 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4567 longer called from within the library.
4568 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4569 for __nldbl___vstrfmon_l, declare it explicitly.
4570
4571 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4572
4573 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4574
4575 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4576 macros
4577 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4578 F_SETLK64, F_SETLKW64, respectively.
4579 * sysdeps/mach/hurd/f_setlk.c: New file.
4580 * sysdeps/mach/hurd/f_setlk.h: New file.
4581 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4582 f_setlk.
4583 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4584 (__libc_fcntl): Move non-flock operations to...
4585 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4586 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4587
4588 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4589
4590 mktime: DEBUG_MKTIME cleanup
4591 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4592 And it’s no longer needed now that glibc and Gnulib both have
4593 their own testing mechanisms for mktime.
4594 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4595
4596 mktime: fix non-EOVERFLOW errno handling
4597 [BZ#23789]
4598 mktime was not properly reporting failures when the underlying
4599 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4600 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4601 The problem could happen on non-glibc platforms, with Gnulib.
4602 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4603 (tm_diff): ... this simpler function, which does not change errno.
4604 All callers changed to deal with errno themselves.
4605 (ranged_convert, __mktime_internal): Return failure immediately if
4606 the underlying function reports any failure other than EOVERFLOW.
4607 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4608 gap code fails.
4609
4610 mktime: fix bug with Y2038 DST transition
4611 [BZ#23789]
4612 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4613 mishandle a DST transition that jumps over the Y2038 boundary.
4614 No such DST transitions are known so this is only a theoretical
4615 bug, but we might as well do things right.
4616
4617 mktime: make more room for overflow
4618 [BZ#23789]
4619 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4620 This is so that we can add tm_diff results to a previous guess,
4621 which will be useful in a later patch.
4622
4623 mktime: simplify offset guess
4624 [BZ#23789]
4625 * time/mktime.c (__mktime_internal): Omit excess precision.
4626
4627 mktime: new test for mktime failure
4628 [BZ#23789]
4629 Based on a test suggested by Albert Aribaud in:
4630 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4631 * time/Makefile (tests): Add bug-mktime4.
4632 * time/bug-mktime4.c: New file.
4633
4634 mktime: fix EOVERFLOW bug
4635 [BZ#23789]
4636 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4637 Include libc-config.h, not config.h, for __set_errno.
4638 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4639
4640 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4641
4642 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4643 __attribute_copy__ to copy attributes from name. Drop static qualifier
4644 to avoid warnings about leaf attribute not having effect on static
4645 functions.
4646
4647 2018-11-13 Florian Weimer <fweimer@redhat.com>
4648
4649 * malloc/malloc.c (fastbin_push_entry): New function.
4650 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4651 (REMOVE_FB): Remove macro.
4652 (_int_malloc): Use fastbin_pop_entry and reindent.
4653 (_int_free): Use fastbin_push_entry.
4654 (malloc_consolidate): Use atomic_exchange_acquire.
4655
4656 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4657
4658 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4659 alias attribute, not with strong_alias.
4660
4661 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4662 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4663 with additional parameter thread.
4664 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4665 in terms of __hidden_ver2.
4666 (hidden_tls_def): New macro.
4667 (libc_hidden_tls_def): Likewise.
4668 (rtld_hidden_tls_def): Likewise.
4669 (libm_hidden_tls_def): Likewise.
4670 (libmvec_hidden_tls_def): Likewise.
4671 (libresolv_hidden_tls_def): Likewise.
4672 (librt_hidden_tls_def): Likewise.
4673 (libdl_hidden_tls_def): Likewise.
4674 (libnss_files_hidden_tls_def): Likewise.
4675 (libnsl_hidden_tls_def): Likewise.
4676 (libnss_nisplus_hidden_tls_def): Likewise.
4677 (libutil_hidden_tls_def): Likewise.
4678 (libutil_hidden_tls_def): Likweise.
4679 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4680 libc_hidden_tls_def.
4681 (__sim_disabled_exceptions_thread): Likewise.
4682 (__sim_round_mode_thread): Likewise.
4683
4684 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4685 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4686 copy attributes from name.
4687
4688 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4689
4690 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4691 Use __attribute_copy__ to copy attributes from name.
4692
4693 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4694 with __hidden_ver1 call.
4695 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4696 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4697 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4698 (__cosf): Do not declare here.
4699 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4700 (__sincosf): Do not declare here.
4701 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4702 (__sinf): Do not declare here.
4703
4704 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4705 (__BIG_ENDIAN): Likewise.
4706 (__BYTE_ORDER): Likewise.
4707 (strong_alias): Likewise.
4708 (_strong_alias): Likewise.
4709
4710 2018-11-12 Florian Weimer <fweimer@redhat.com>
4711
4712 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4713 function. Move after the definition of in_smallbin_range. Do not
4714 use __builtin_expect for paths that lead to a noreturn function.
4715 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4716 because it is unclear whether this is in fact an unlikely
4717 condition.
4718 (_int_malloc, _int_free): Adjust.
4719 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4720 variables.
4721 * malloc/arena.c (heap_trim): Likewise.
4722
4723 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4724
4725 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4726 it, free it if needed.
4727 (reauthenticate): Test and use ccwdir.
4728 (child_init_port): In non-resetids case, test and use ccwdir.
4729 (child_chdir): New nested function to set ccwdir.
4730 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4731 * hurd/hurd/port.h (_hurd_port_move): New function.
4732 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4733 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4734 * hurd/Versions (_hurd_port_move): Export function.
4735 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4736 symbol.
4737 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4738 of dtablesize for allocating dtable_cloexec.
4739
4740 2018-11-09 Martin Sebor <msebor@redhat.com>
4741
4742 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4743 it's already defined.
4744 (_strong_alias): Use __attribute_copy__.
4745 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4746 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4747 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4748 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4749 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4750 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4751 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4752 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4753 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4754 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4755 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4756 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4757 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4758 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4759 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4760 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4761 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4762 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4763 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4764
4765 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4766
4767 * misc/tst-efgcvt.c: Include support/check.h and
4768 support/test-driver.c. Do not include test-skeleton.c.
4769 (error_count): Remove.
4770 (output_error): Replace increments to error_count with calls to
4771 support_record_failure.
4772 (output_r_error): Likewise.
4773 (special): Likewise.
4774 (do_test): Unconditionally return zero.
4775 (TEST_FUNCTION): Remove.
4776
4777 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4778
4779 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4780 not $(@D)/scratch.
4781 ($(linknamespace-header-tests)): Likewise.
4782
4783 * conform/conformtest.py: New file.
4784 * conform/conformtest.pl: Remove.
4785 * conform/GlibcConform.pm: Likewise.
4786 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4787 (KEYWORDS_C99): Likewise.
4788 (KEYWORDS): Likewise.
4789 * conform/Makefile ($(conformtest-header-tests)): Use
4790 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4791 option. Use --header instead of --headers.
4792 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4793 function entries.
4794 * conform/data/spawn.h-data: Likewise.
4795 * conform/data/fcntl.h-data (openat): Add space after function
4796 name.
4797 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4798 (wcscasecmp_l): Likewise.
4799 * conform/data/termios.h-data (c_cc): Add space after element
4800 name.
4801
4802 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4803
4804 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4805 instead of manually comparing and reporting mismatching strings.
4806 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4807 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4808
4809 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4810
4811 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4812 __ASSUME_SOCKETCALL.
4813 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4814 (__ASSUME_SOCKETCALL): Remove.
4815 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4816 (__ASSUME_SOCKETCALL): Likewise.
4817 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4818 (__ASSUME_SOCKETCALL): Likewise.
4819 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4820 (__ASSUME_SOCKETCALL): Likewise.
4821 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4822 (__ASSUME_SOCKETCALL): Likewise.
4823 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4824 (__ASSUME_SOCKETCALL): Likewise.
4825 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4826 (__ASSUME_SOCKETCALL): Likewise.
4827
4828 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4829
4830 [BZ #23509]
4831 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4832 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4833 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4834 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4835 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4836 lc_unknown.
4837
4838 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4839
4840 [BZ #17630]
4841 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4842
4843 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4844
4845 [BZ #23867]
4846 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4847 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4848 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4849 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4850
4851 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4852
4853 * support/support_test_compare_string.c
4854 (support_test_compare_string): Fix printf format.
4855
4856 2018-11-07 Florian Weimer <fweimer@redhat.com>
4857
4858 Implement TEST_COMPARE_STRING.
4859 * support/check.h (TEST_COMPARE_STRING): Define.
4860 (support_test_compare_string): Declare.
4861 * support/Makefile (libsupport-routines): Add
4862 support_test_compare_string.
4863 (tests): Add tst-test_compare_string.
4864 * support/support_test_compare_string.c: New file.
4865 * support/tst-test_compare_string.c: Likewise.
4866
4867 2018-11-07 Andreas Schwab <schwab@suse.de>
4868
4869 [BZ #23864]
4870 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4871 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4872 Undef.
4873
4874 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4875
4876 [BZ #23862]
4877 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4878 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4879 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4880 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4881 Likewise.
4882
4883 2018-11-06 Florian Weimer <fweimer@redhat.com>
4884
4885 [BZ #17405]
4886 * posix/Makefile (routines): Add spawn_faction_addchdir.
4887 (tests): Add tst-spawn-chdir.
4888 * posix/Versions (GLIBC_2.29): Add
4889 posix_spawn_file_actions_addchdir_np.
4890 * posix/spawn_faction_addchdir.c: New file.
4891 * posix/spawn_faction_destroy.c
4892 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4893 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4894 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4895 chdir_action.
4896 * posix/tst-spawn-chdir.c: New file.
4897 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4898 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4899 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4900 posix_spawn_file_actions_addchdir_np.
4901 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4902 Likewise.
4903 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4904 Likewise.
4905 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4906 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4907 Likewise.
4908 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4909 Likewise.
4910 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4911 Likewise.
4912 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4913 Likewise.
4914 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4915 Likewise.
4916 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4917 Likewise.
4918 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4919 (GLIBC_2.29): Likewise.
4920 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4921 (GLIBC_2.29): Likewise.
4922 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4923 (GLIBC_2.29): Likewise.
4924 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4925 (GLIBC_2.29): Likewise.
4926 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4927 Likewise.
4928 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4929 (GLIBC_2.29): Likewise.
4930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4931 (GLIBC_2.29): Likewise.
4932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4933 (GLIBC_2.29): Likewise.
4934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4935 (GLIBC_2.29): Likewise.
4936 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4937 Likewise.
4938 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4939 Likewise.
4940 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4941 Likewise.
4942 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4943 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4944 Likewise.
4945 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4946 Likewise.
4947 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4948 Likewise.
4949 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4950 Likewise.
4951
4952 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4953
4954 * misc/Makefile (tests): Add tst-ldbl-error.
4955 * misc/tst-ldbl-error.c: New file.
4956
4957 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4958
4959 * misc/Makefile (tests): Add tst-ldbl-warn.
4960 * misc/tst-ldbl-warn.c: New file.
4961
4962 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4963
4964 * argp/Makefile (tests): Add tst-ldbl-argp.
4965 * argp/tst-ldbl-argp.c: New file.
4966
4967 2018-11-05 Arjun Shankar <arjun@redhat.com>
4968
4969 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4970 __gconv_path_elem and call __gconv_get_path unconditionally.
4971
4972 2018-11-05 Andreas Schwab <schwab@suse.de>
4973
4974 [BZ #22927]
4975 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4976 creating the first helper thread failed.
4977
4978 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4979
4980 * sysdeps/mach/hurd/msync.c: New file.
4981
4982 2018-11-02 Florian Weimer <fweimer@redhat.com>
4983
4984 * support/shell-container.c (copy_func): Call
4985 support_copy_file_range instead of copy_file_range to support
4986 cross-device copies.
4987
4988 2018-11-02 Florian Weimer <fweimer@redhat.com>
4989
4990 * support/test-container.c: Include <libc-pointer-arith.h> for
4991 ALIGN_UP.
4992
4993 2018-11-01 Zong Li <zong@andestech.com>
4994
4995 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4996 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4997 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4998 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4999
5000 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5001 variable to avoid overlap arguments.
5002
5003 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5004
5005 * posix/bug-regex22.c (main): Use puts with distinct error
5006 messages for unexpected success of re_compile_pattern, not printf
5007 with NULL argument to %s.
5008
5009 * stdio-common/bug22.c: Include <libc-diag.h>.
5010 (do_test): Disable -Wformat-overflow= warnings around fprintf
5011 calls outputting more than INT_MAX characters.
5012 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5013 around printf call with NULL %s argument.
5014
5015 [BZ #23848]
5016 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5017 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5018 Undefine.
5019 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5020 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5021 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5022 (__ASSUME_SENDTO_SYSCALL): Likewise.
5023 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5024 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5025 [!__arch64__].
5026 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5027 (__ASSUME_CONNECT_SYSCALL): Likewise.
5028 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5029 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5030 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5031 Define.
5032 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5033 Likewise.
5034 [__LINUX_KERNEL_VERSION >= 0x040400]
5035 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5036 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5037 Remove.
5038 (listen): Likewise.
5039 (setsockopt): Likewise.
5040
5041 2018-11-01 Fredrik Noring <noring@nocrew.org>
5042
5043 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5044 with the ISA override.
5045
5046 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5047
5048 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5049 #endif.
5050
5051 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5052
5053 * manual/errno.texi (EIEIO): Document how translators should
5054 translate the error message.
5055 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5056 printing trailing whitespaces refused by git.
5057 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5058 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5059 * hurd/Makefile (user-interfaces): Add pci.
5060
5061 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5062
5063 * conform/linknamespace.py: New file.
5064 * conform/linknamespace.pl: Remove file.
5065 * conform/Makefile ($(linknamespace-header-tests)): Use
5066 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5067 option.
5068
5069 2018-10-30 Florian Weimer <fweimer@redhat.com>
5070
5071 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5072 memory leaks.
5073
5074 2018-10-30 Florian Weimer <fweimer@redhat.com>
5075
5076 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5077
5078 2018-10-30 Florian Weimer <fweimer@redhat.com>
5079
5080 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5081 support_blob_repeat.
5082
5083 2018-10-30 Florian Weimer <fweimer@redhat.com>
5084
5085 Avoid spurious test failures in stdlib/test-bz22786.
5086 * support/Makefile (libsupport-routines): Add blob_repeat.
5087 (tests): Add tst-support_blob_repeat.
5088 * support/blob_repeat.h: New file.
5089 * support/blob_repeat.c: Likewise.
5090 * support/tst-support_blob_repeat.c: Likewise.
5091 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5092 support_blob_repeat_allocate.
5093
5094 2018-10-30 Andreas Schwab <schwab@suse.de>
5095
5096 [BZ #23125]
5097 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5098 Don't use tail call.
5099 * elf/tst-unwind-main.c: New file.
5100 * elf/Makefile (tests): Add tst-unwind-main.
5101 (CFLAGS-tst-unwind-main.c): Define.
5102
5103 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5104
5105 [BZ #23791]
5106 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5107 n_cs_precedes to 0.
5108 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5109
5110 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5111
5112 * conform/glibcconform.py: Do not import shutil.
5113 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5114 of mkdtemp.
5115
5116 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5117 critic_missing for versions before 3.4.
5118 * configure: Regenerated.
5119 * manual/install.texi (Tools for Compilation): Document
5120 requirement for Python to build glibc.
5121 * INSTALL: Regenerated.
5122 * Rules [PYTHON]: Make code unconditional.
5123 * benchtests/Makefile [PYTHON]: Likewise.
5124 * conform/Makefile [PYTHON]: Likewise.
5125 * manual/Makefile [PYTHON]: Likewise.
5126 * math/Makefile [PYTHON]: Likewise.
5127
5128 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5129
5130 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5131 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5132 answer to interrupt_operation, return EIEIO instead of EINTR.
5133 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5134 _hurd_intr_rpc_msg_about_to global point to start of controlled
5135 assembly snippet. Make it check canceled flag.
5136 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5137 the _hurd_intr_rpc_msg_about_to point.
5138 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5139 issue, remove cancel flag check.
5140
5141 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5142
5143 * scripts/build-many-glibcs.py: Remove compatibility for missing
5144 os.cpu_count and re.fullmatch.
5145
5146 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5147
5148 [BZ #23822]
5149 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5150 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5151 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5152
5153 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5154
5155 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5156 macro.
5157
5158 2018-10-25 Florian Weimer <fweimer@redhat.com>
5159
5160 [BZ #23562]
5161 [BZ #23821]
5162 XFAIL siginfo_t si_band conform test on sparc64.
5163 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5164 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5165 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5166 (conformtest-xfail-conds): Add sparc64-linux.
5167 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5168 sparc64.
5169 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5170
5171 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5172
5173 * elf/elf.h (NT_MIPS_DSP): New macro.
5174 (NT_MIPS_FP_MODE): Likewise.
5175
5176 2018-10-25 Zong Li <zong@andestech.com>
5177
5178 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5179 name by adding the file extension (.so).
5180
5181 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5182
5183 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5184 (test-xfail-ISO11/threads.h/linknamespace,
5185 test-xfail-ISO11/threads.h/conform): Add.
5186
5187 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5188
5189 * math/gen-libm-test.py: Import os.
5190 (ALL_FLOATS_MANUAL): New constant.
5191 (ALL_FLOATS_SUFFIX): Likewise.
5192 (Ulps.all_functions): New function.
5193 (real_all_ulps): Likewise.
5194 (generate_err_table_sub): Likewise.
5195 (generate_err_table): Likewise.
5196 (main): Handle -s and -m options.
5197 * manual/libm-err-tab.pl: Remove.
5198 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5199 instead of libm-err-tab.pl.
5200 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5201 != no].
5202 * manual/install.texi (Tools for Compilation): Document
5203 requirement for Python to build manual.
5204 * INSTALL: Regenerated.
5205
5206 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5207
5208 * bits/time64.h: New file.
5209 * include/time.h: Replace internal_time_t with __time64_t.
5210 * posix/bits/types (__time64_t): Add.
5211 * stdlib/Makefile: Add bits/time64.h to includes.
5212 * time/tzfile.c: Replace internal_time_t with __time64_t.
5213
5214 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5215
5216 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5217 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5218 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5219 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5220 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5221 prototype.
5222 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5223 * posix/spawn_faction_addclose.c
5224 (__posix_spawn_file_actions_addclose): Add hidden definition.
5225 * posix/spawn_faction_adddup2.c
5226 (__posix_spawn_file_actions_adddup2): Likewise.
5227 * posix/spawn_faction_destroy.c
5228 (__posix_spawn_file_actions_destroy): Likewise.
5229 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5230 Likewise.
5231 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5232 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5233 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5234 Likewise.
5235 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5236 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5237 Likewise.
5238
5239 2018-10-24 Andreas Schwab <schwab@suse.de>
5240
5241 [BZ #18093]
5242 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5243 format cache.
5244 * elf/cache.c (print_cache): Likewise.
5245
5246 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5247
5248 * bits/timesize.h: New file.
5249 * stdlib/Makefile (headers): Add bits/timesize.h.
5250 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5251 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5252 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5253 (__SEM_PAD_AFTER_TIME): Likewise.
5254 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5255 (__SHM_PAD_AFTER_TIME): Likewise.
5256 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5257 (__MSQ_PAD_BEFORE_TIME): Likewise.
5258 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5259 (__SEM_PAD_BEFORE_TIME): Likewise.
5260 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5261 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5262 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5263 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5264 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5265 (__MSQ_PAD_BEFORE_TIME): Likewise.
5266 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5267 (__SEM_PAD_BEFORE_TIME): Likewise.
5268 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5269 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5270 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5271 (__MSQ_PAD_BEFORE_TIME): Likewise.
5272 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5273 (__SEM_PAD_BEFORE_TIME): Likewise.
5274 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5275 (__SHM_PAD_BEFORE_TIME): Likewise.
5276 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5277 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5278 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5279
5280 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5281
5282 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5283 USE_RDTSCP is defined.
5284 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5285 USE_RDTSCP is defined.
5286
5287 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5288
5289 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5290 defined.
5291
5292 [BZ #23709]
5293 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5294 independently of other flags.
5295
5296 2018-10-23 Florian Weimer <fweimer@redhat.com>
5297
5298 * time/tst-mktime2.c (N_STRINGS): Remove.
5299 (set_timezone): New function.
5300 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5301 (mktime_test1): Report localtime failure and check errno value.
5302 Use TEST_COMPARE.
5303 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5304 (do_test): Remove alarm call. Use set_timezone and array_length.
5305
5306 2018-10-23 Andreas Schwab <schwab@suse.de>
5307
5308 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5309 (__start_context): Use END instead of PSEUDO_END.
5310
5311 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5312
5313 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5314 version to 4.19.
5315
5316 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5317 version to 4.19.
5318
5319 [BZ #23793]
5320 * wcsmbs/c32rtomb.c: New file.
5321 * wcsmbs/mbrtoc32.c: Likewise.
5322 * wcsmbs/tst-c32-state.c: Likewise.
5323 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5324 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5325 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5326 (tests): Add tst-c32-state.
5327 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5328 $(gen-locales).
5329
5330 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5331
5332 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5333 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5334
5335 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5336
5337 [BZ #23794]
5338 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5339 pair and return 0 in that case, and use saved character to
5340 interpret following character.
5341 * wcsmbs/tst-c16-surrogate.c: New file.
5342 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5343 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5344 Depend on $(gen-locales)
5345
5346 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5347
5348 [BZ #23562]
5349 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5350 (struct siginfo_t): Use correct type for si_band.
5351
5352 2018-10-19 Florian Weimer <fweimer@redhat.com>
5353
5354 [BZ #23689]
5355 * resource/bits/types/struct_rusage.h (struct rusage): Update
5356 comment on struct. Remove extraneous field comment.
5357
5358 2018-10-18 David S. Miller <davem@davemloft.net>
5359
5360 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5361 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5362 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5363 sysdep_routines in subdir elf.
5364 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5365 version for __vdso_clock_gettime.
5366 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5367 Define.
5368 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5369 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5370
5371 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5372
5373 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5374
5375 * sysdeps/i386/init-arch.h: Removed.
5376 * sysdeps/i386/i586/init-arch.h: Likewise.
5377 * sysdeps/i386/i686/init-arch.h: Likewise.
5378 * sysdeps/i386/i686/hp-timing.h: Likewise.
5379 * sysdeps/x86_64/hp-timing.h: Likewise.
5380 * sysdeps/i386/isa.h: New file.
5381 * sysdeps/i386/i586/isa.h: Likewise.
5382 * sysdeps/i386/i686/isa.h: Likewise.
5383 * sysdeps/x86_64/isa.h: Likewise.
5384 * sysdeps/x86/hp-timing.h: New file.
5385 * sysdeps/x86/init-arch.h: Include <isa.h>.
5386
5387 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5388
5389 * math/libm-test-pow.inc (pow_test_data): Do not allow
5390 divide-by-zero exception for pow(+/- 0, -Inf).
5391
5392 2018-10-17 Zack Weinberg <zackw@panix.com>
5393
5394 * manual/job.texi (Job Control is Optional): Remove node, as
5395 job control has not been optional in quite some time.
5396 (Job Control): Mention briefly that systems older than
5397 POSIX.1-2001 might not support job control.
5398 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5399 defined on systems conforming to POSIX.1-2001.
5400
5401 2018-10-17 Arjun Shankar <arjun@redhat.com>
5402
5403 [BZ #22062]
5404 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5405 indentation.
5406 * (__gconv_read_conf): Mark function static.
5407 * (once): New static variable.
5408 * (__gconv_load_conf): New function.
5409 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5410 * iconv/gconv_db.c (once): Remove static variable.
5411 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5412 __gconv_read_conf.
5413 * (__gconv_find_transform): Likewise.
5414 * iconv/tst-iconv-mt.c: New test.
5415 * iconv/Makefile: Add tst-iconv_mt.
5416
5417 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5418
5419 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5420 bits/shm-pad.h.
5421 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5422 (shmatt_t): Define as __syscall_ulong_t.
5423 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5424 and [__SHM_PAD_AFTER_TIME].
5425 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5426 Define shm_segsz and associated padding based on
5427 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5428 Use __syscall_ulong_t instead of unsigned long int.
5429 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5430 unsigned long int.
5431 [__USE_MISC] (struct shm_info): Likewise.
5432 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5433 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5434 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5435 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5436 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5437 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5438 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5439 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5440 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5441 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5442 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5443
5444 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5445 bits/shmlba.h.
5446 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5447 (SHMLBA): Remove macro.
5448 (__getpagesize): Remove function declaration.
5449 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5450 <bits/shmlba.h>.
5451 (SHMLBA): Remove macro.
5452 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5453 <bits/shmlba.h>.
5454 (SHMLBA): Remove macro.
5455 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5456 <bits/shmlba.h>.
5457 (SHMLBA): Remove macro.
5458 (__getpagesize): Remove function declaration.
5459 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5460 <bits/shmlba.h>.
5461 (SHMLBA): Remove macro.
5462 (__getshmlba): Remove function declaration.
5463 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5464 (SHMLBA): Remove macro.
5465 (__getpagesize): Remove function declaration.
5466 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5467 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5468 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5469 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5470 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5471 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5472 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5473 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5474 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5475 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5476
5477 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5478
5479 [BZ #23275]
5480 * nptl/tst-mutex10.c: New File.
5481 * nptl/Makefile (tests): Add tst-mutex10.
5482 (tst-mutex10-ENV): New variable.
5483 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5484 Ensure that elision path is used if elision is available.
5485 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5486 Likewise.
5487 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5488 Likewise.
5489 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5490 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5491 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5492 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5493 Likewise.
5494 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5495 (__pthread_mutex_cond_lock_adjust): Likewise.
5496 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5497 Likewise.
5498 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5499 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5500 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5501 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5502 Add comments.
5503 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5504 Use atomic_load_relaxed and atomic_store_relaxed.
5505 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5506 Use atomic_store_relaxed.
5507
5508 2018-10-17 Andreas Schwab <schwab@suse.de>
5509
5510 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5511 * crypt/badsalttest.c (TIMEOUT): Likewise.
5512 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5513 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5514 * io/test-lfs.c (TIMEOUT): Likewise.
5515 * libio/tst-atime.c (TIMEOUT): Likewise.
5516 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5517 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5518 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5519 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5520 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5521 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5522 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5523 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5524 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5525 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5526 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5527 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5528 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5529 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5530 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5531 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5532 * nptl/tst-once2.c (TIMEOUT): Likewise.
5533 * nptl/tst-once3.c (TIMEOUT): Likewise.
5534 * nptl/tst-once4.c (TIMEOUT): Likewise.
5535 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5536 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5537 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5538 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5539 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5540 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5541 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5542 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5543 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5544 * posix/tst-chmod.c (TIMEOUT): Likewise.
5545 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5546 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5547 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5548 * posix/tst-regex2.c (TIMEOUT): Likewise.
5549 * posix/tst-waitid.c (TIMEOUT): Likewise.
5550 * rt/tst-aio.c (TIMEOUT): Likewise.
5551 * rt/tst-aio10.c (TIMEOUT): Likewise.
5552 * rt/tst-aio4.c (TIMEOUT): Likewise.
5553 * rt/tst-aio5.c (TIMEOUT): Likewise.
5554 * rt/tst-aio6.c (TIMEOUT): Likewise.
5555 * rt/tst-aio64.c (TIMEOUT): Likewise.
5556 * rt/tst-aio7.c (TIMEOUT): Likewise.
5557 * rt/tst-aio9.c (TIMEOUT): Likewise.
5558 * rt/tst-clock.c (TIMEOUT): Likewise.
5559 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5560 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5561 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5562 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5563 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5564 * rt/tst-timer4.c (TIMEOUT): Likewise.
5565 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5566 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5567 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5568 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5569 * time/tst-ftime.c (TIMEOUT): Likewise.
5570 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5571
5572 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5573
5574 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5575 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5576 for thunderX2.
5577
5578 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5579
5580 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5581 bits/sem-pad.h.
5582 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5583 instead of <bits/wordsize.h>.
5584 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5585 and [__SEM_PAD_AFTER_TIME].
5586 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5587 __syscall_ulong_t instead of unsigned long int.
5588 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5589 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5590 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5591 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5592 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5593 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5594 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5595 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5596 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5597 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5598 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5599
5600 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5601
5602 regex: simplify by using intprops.h
5603 [BZ#23744]
5604 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5605 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5606 intprops.h defines them.
5607
5608 regex: __builtin_expect → __glibc_unlikely
5609 [BZ#23744]
5610 This refactoring was prompted by a problem when the regex code is
5611 used as part of Gnulib and when the builder’s compiler does not grok
5612 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5613 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5614 Although this refactoring does not fix the problem directly,
5615 we might as well have Gawk use the now-preferred glibc style for when
5616 __builtin_expect is unavailable.
5617 * posix/regex_internal.h (BE): Remove.
5618 All uses replaced by __glibc_unlikely or __glibc_likely.
5619
5620 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5621
5622 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5623 bits/msq-pad.h.
5624 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5625 instead of <bits/wordsize.h>.
5626 (msgqnum_t): Define as __syscall_ulong_t.
5627 (msglen_t): Likewise.
5628 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5629 and [__MSQ_PAD_AFTER_TIME].
5630 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5631 __syscall_ulong_t instead of unsigned long int.
5632 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5633 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5634 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5635 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5636 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5637 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5638 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5639 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5640 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5641 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5642 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5643
5644 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5645
5646 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5647 (struct shmid_ds): Condition padding after time fields on
5648 [__WORDSIZE == 32].
5649 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5650 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5651 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5652
5653 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5654 (struct semid_ds): Condition padding after time fields on
5655 [__WORDSIZE == 32].
5656 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5657 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5658 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5659 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5660
5661 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5662 (struct msqid_ds): Condition padding after time fields on
5663 [__WORDSIZE == 32].
5664 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5665 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5666 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5667 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5668
5669 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5670
5671 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5672
5673 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5674
5675 * libio/tst-readline.c (TIMEOUT): Define.
5676
5677 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5678
5679 mktime fix for Gnulib + coreutils
5680 [BZ#23745]
5681 This fix affects only Gnulib. Problem discovered when
5682 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5683 * time/mktime.c:
5684 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5685 Do not define since it is not used. Defining an unused static
5686 function prompts a warning from GCC when Coreutils is configured
5687 with --enable-gcc-warnings.
5688
5689 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5690
5691 * benchtests/scripts/compare_bench.py (main): set float type on
5692 threshold argument.
5693
5694 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5695
5696 [BZ #23740]
5697 * localedata/locales/kl_GL (mon): Update, the relative case.
5698 (alt_mon): Add, fill with month names in the nominative case.
5699 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5700 (d_fmt): Set to "%b %d %Y".
5701
5702 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5703
5704 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5705 <bits/mman-linux.h>.
5706 (PROT_READ): Don't define here.
5707 (PROT_WRITE): Likewise.
5708 (PROT_EXEC): Likewise.
5709 (PROT_NONE): Likewise.
5710 (PROT_GROWSDOWN): Likewise.
5711 (PROT_GROWSUP): Likewise.
5712 (MAP_SHARED): Likewise.
5713 (MAP_PRIVATE): Likewise.
5714 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5715 [__USE_MISC] (MAP_FILE): Likewise.
5716 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5717 [__USE_MISC] (MAP_ANON): Likewise.
5718 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5719 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5720 (MCL_CURRENT): Likewise.
5721 (MCL_FUTURE): Likewise.
5722 (MCL_ONFAULT): Likewise.
5723 [__USE_MISC] (MADV_NORMAL): Likewise.
5724 [__USE_MISC] (MADV_RANDOM): Likewise.
5725 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5726 [__USE_MISC] (MADV_WILLNEED): Likewise.
5727 [__USE_MISC] (MADV_DONTNEED): Likewise.
5728 [__USE_MISC] (MADV_FREE): Likewise.
5729 [__USE_MISC] (MADV_REMOVE): Likewise.
5730 [__USE_MISC] (MADV_DONTFORK): Likewise.
5731 [__USE_MISC] (MADV_DOFORK): Likewise.
5732 [__USE_MISC] (MADV_HWPOISON): Likewise.
5733 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5734 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5735 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5736 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5737 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5738 (__MAP_ANONYMOUS): New macro.
5739 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5740 <bits/mman-linux.h> inclusion.
5741 (MAP_FIXED): Likewise.
5742 (MS_SYNC): Likewise.
5743 (MS_ASYNC): Likewise.
5744 (MS_INVALIDATE): Likewise.
5745 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5746 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5747 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5748 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5749 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5750 [__USE_MISC] (MADV_DODUMP): Likewise.
5751 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5752 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5753
5754 [BZ #23735]
5755 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5756 Define.
5757 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5758 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5759 Add test-nldbl-redirect.
5760 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5761 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5762 $(objpfx)libnldbl_nonshared.a.
5763
5764 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5765
5766 * support/support.h (support_objdir_elf_ldso): New variable.
5767 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5768 * support/Makefile (CFLAGS-support_paths.c): Add definition
5769 for OBJDIR_ELF_LDSO_PATH.
5770 * support/test-container.c (main): Search for the ld.so
5771 which is also used by the testsuite.
5772
5773 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5774
5775 [BZ #20209]
5776 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5777 should be "sap" rather than "sab".
5778 (day): Fix spelling of Sunday, should be "sapaat" rather than
5779 "sabaat".
5780
5781 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5782
5783 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5784
5785 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5786
5787 [BZ #19444]
5788 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5789 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5790 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5791
5792 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5793
5794 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5795
5796 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5797
5798 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5799 Add -mrtm.
5800 (CFLAGS-elision-unlock.c): Likewise.
5801 (CFLAGS-elision-timed.c): Likewise.
5802 (CFLAGS-elision-trylock.c): Likewise.
5803 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5804
5805 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5806
5807 [BZ #21037]
5808 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5809 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5810 new fd_to_filename interface.
5811 * libio/freopen64.c (freopen64): Likewise.
5812 * libio/tst-memstream.h: New file.
5813 * libio/tst-memstream4.c: Likewise.
5814 * libio/tst-wmemstream4.c: Likewise.
5815 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5816 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5817 and remove internal dynamic allocation.
5818
5819 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5820
5821 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5822 (MREMAP_MAYMOVE): Do not define here.
5823 [__USE_GNU] (MREMAP_FIXED): Likewise.
5824 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5825 (MREMAP_MAYMOVE): Define here instead.
5826 [__USE_GNU] (MREMAP_FIXED): Likewise.
5827 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5828 (MREMAP_MAYMOVE): Remove.
5829 [__USE_GNU] (MREMAP_FIXED): Likewise.
5830
5831 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5832
5833 * math/fromfp.h: Do not include <math_private.h>.
5834 * math/s_cacosh_template.c: Likewise.
5835 * math/s_casin_template.c: Likewise.
5836 * math/s_casinh_template.c: Likewise.
5837 * math/s_ccos_template.c: Likewise.
5838 * math/s_cproj_template.c: Likewise.
5839 * math/s_fdim_template.c: Likewise.
5840 * math/s_fmaxmag_template.c: Likewise.
5841 * math/s_fminmag_template.c: Likewise.
5842 * math/s_iseqsig_template.c: Likewise.
5843 * math/s_ldexp_template.c: Likewise.
5844 * math/s_nextdown_template.c: Likewise.
5845 * math/w_log1p_template.c: Likewise.
5846 * math/w_scalbln_template.c: Likewise.
5847 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5848 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5849 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5850 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5851 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5852 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5853 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5854 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5855 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5856 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5857 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5858 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5859 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5860 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5861 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5862 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5863 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5864 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5865 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5866 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5867 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5868 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5869 * sysdeps/ieee754/k_standardf.c: Likewise.
5870 * sysdeps/ieee754/k_standardl.c: Likewise.
5871 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5872 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5873 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5874 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5875 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5876 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5877 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5878 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5879 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5880 * sysdeps/ieee754/s_signgam.c: Likewise.
5881 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5882 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5883 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5884 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5885 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5886 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5887 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5888 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5889 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5890 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5891 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5892 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5893 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5894 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5895 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5896 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5897 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5898 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5899 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5900 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5901 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5902 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5903 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5904 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5905 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5906 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5907 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5908 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5909 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5910 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5911 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5912 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5913 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5914 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5915 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5916 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5917 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5918 <math_private.h>.
5919 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5920
5921 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5922
5923 [BZ #23716]
5924 * sysdeps/i386/dl-cet.c: Removed.
5925 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5926 prototype.
5927 (_dl_runtime_profile_shstk): Likewise.
5928 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5929 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5930
5931 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5932
5933 [BZ #23579]
5934 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5935 do_test_with_invalid_iov): New tests.
5936 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5937 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5938 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5939 errno is ENOSYS.
5940 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5941 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5942 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5943
5944 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5945
5946 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5947 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5948 (MATH_REDIRECT_BINARY_ARGS): New macro.
5949 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5950 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5951 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5952 header inclusion.
5953 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5954 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5955 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5956 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5957 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5958 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5959 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5961 Likewise.
5962 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5963 Likewise.
5964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5966 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5967 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5969 Likewise.
5970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5971 Likewise.
5972 * sysdeps/generic/math_private_calls.h
5973 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5974 Do not declare and define as an inline function.
5975 * math/divtc3.c (__divtc3): Use copysign functions instead of
5976 __copysign variants.
5977 * math/multc3.c (__multc3): Likewise.
5978 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5979 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5980 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5981 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5982 Likewise.
5983 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5984 (__ieee754_yn): Likewise.
5985 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5986 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5987 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5988 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5989 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5990 (__sin): Likewise.
5991 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5992 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5993 Likewise.
5994 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5995 Likewise.
5996 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5997 Likewise.
5998 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5999 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6000 Likewise.
6001 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6002 (__ieee754_ynf): Likewise.
6003 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6004 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6005 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6006 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6007 Likewise.
6008 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6009 (__ieee754_ynl): Likewise.
6010 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6011 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6012 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6013 Likewise.
6014 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6015 (__ieee754_ynl): Likewise.
6016 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6017 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6018 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6019 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6020 Likewise.
6021 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6022 (__ieee754_ynl)
6023 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6024 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6025 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6026 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6027 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6028
6029 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6030 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6031 using MATH_REDIRECT.
6032 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6033 header inclusion.
6034 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6035 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6036 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6037 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6038 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6039 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6040 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6041 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6045 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6046 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6047 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6048 (round): Redirect to __round.
6049 (__roundl): Call round instead of __round.
6050 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6051 Remove macro.
6052 [_ARCH_PWR5X] (__roundf): Likewise.
6053 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6054 functions instead of __round variants.
6055 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6056 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6057 Likewise.
6058 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6059 Likewise.
6060 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6061 Likewise.
6062 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6063 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6064 __lroundl.
6065 (__ieee754_expl): Call roundl instead of __roundl.
6066
6067 2018-09-27 Andreas Schwab <schwab@suse.de>
6068
6069 [BZ #23717]
6070 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6071 (do_test): Make st1 static.
6072
6073 2018-09-26 Andreas Schwab <schwab@suse.de>
6074
6075 [BZ #23707]
6076 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6077 * elf/Makefile (tests): Add tst-unwind-ctor.
6078 (modules-names): Add tst-unwind-ctor-lib.
6079 ($(objpfx)tst-unwind-ctor): Depend on
6080 $(objpfx)tst-unwind-ctor-lib.so.
6081
6082 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6083
6084 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6085 file. Most contents moved from ....
6086 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6087 and include <bits/mman-map-flags-generic.h>.
6088 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6089 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6090 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6091 <bits/mman-map-flags-generic.h>.
6092 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6093 macros defined in <bits/mman-map-flags-generic.h>.
6094 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6095 <bits/mman-map-flags-generic.h>.
6096 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6097 defined in <bits/mman-map-flags-generic.h>.
6098
6099 2018-09-26 Andreas Schwab <schwab@suse.de>
6100
6101 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6102 output.
6103
6104 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6105 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6106 Fangrui Song <maskray@google.com>
6107
6108 [BZ #20480]
6109 * config.make.in (have-textrel_ifunc): New define.
6110 * configure.ac: Add check if linker supports textrel relocation with
6111 ifunc.
6112 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6113 tst-ifunc-textrel.
6114 (CFLAGS-tst-ifunc-textrel.c): New rule.
6115 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6116 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6117 * elf/tst-ifunc-textrel.c: New file.
6118
6119 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6120
6121 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6122 <bits/procfs-prregset.h>.
6123 (prgregset_t): Define using __prgregset_t.
6124 (prfpregset_t): Define using __prfpregset_t.
6125 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6126 (sysdep_headers): Add bits/procfs-prregset.h.
6127 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6128 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6129 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6130 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6131
6132 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6133 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6134 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6135 pr_uid and pr_gid.
6136 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6137 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6138 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6139 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6140 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6141 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6142 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6143 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6144 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6145 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6146 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6147 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6148 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6149 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6150 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6151 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6152 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6153 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6154 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6155 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6156 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6157 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6158 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6159 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6160
6161 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6162 AArch64 version. Include <bits/procfs.h>.
6163 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6164 (sysdep_headers): Add bits/procfs.h.
6165 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6166 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6167 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6168 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6169 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6170 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6171 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6172 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6173 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6174 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6175 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6176 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6177 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6178 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6179 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6180 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6181 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6182
6183 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6184
6185 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6186 Use libsupport.
6187
6188 2018-09-25 Arjun Shankar <arjun@redhat.com>
6189
6190 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6191 (__gconv_max_path_elem_len): Likewise.
6192 (__gconv_nmodules): Likewise.
6193 (__gconv_get_path): Likewise.
6194 (path_elem): Move to ...
6195 * iconv/gconv_conf.c: ... here.
6196 (__gconv_get_path): Mark function static.
6197 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6198 * iconv/gconv_open.c: ... here.
6199
6200 2018-09-24 Andreas Schwab <schwab@suse.de>
6201
6202 * scripts/haveversions.awk: New file.
6203 * Makerules ($(common-objpfx)Versions.def)
6204 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6205 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6206 Move rules ...
6207 * Makeconfig ($(common-objpfx)Versions.def)
6208 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6209 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6210 ... here.
6211 ($(common-objpfx)Versions.mk): New rule. Include it.
6212 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6213 Emit error if build-obsolete-nsl = yes.
6214 * manual/install.texi (Configuring and compiling): Describe
6215 --enable-obsolete-nsl as unavaiable after version 2.28.
6216 * INSTALL: Regenerate.
6217
6218 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6219
6220 * NEWS: Add note about new TLE support on powerpc64le.
6221 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6222 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6223 __ununsed1.
6224 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6225 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6226 * sysdeps/powerpc/powerpc32/sysdep.h,
6227 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6228 ABORT_TRANSACTION): Remove macros.
6229 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6230 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6231 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6232 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6233 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6234 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6235 usage.
6236 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6237
6238 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6239
6240 [BZ #10425]
6241 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6242 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6243 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6244 which is the same as in it_IT.
6245 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6246 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6247
6248 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6249
6250 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6251 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6252 using MATH_REDIRECT.
6253 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6254 header inclusion.
6255 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6256 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6257 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6258 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6259 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6260 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6261 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6265 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6266 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6267 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6268 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6269 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6270 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6271 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6272 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6273 (ceil): Redirect to __ceil.
6274 (floor): Redirect to __floor.
6275 (trunc): Redirect to __trunc.
6276 (__truncl): Call trunc instead of __trunc.
6277 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6278 Remove macro.
6279 [_ARCH_PWR5X] (__truncf): Likewise.
6280 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6281 trunc functions instead of __trunc variants.
6282 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6283 Likewise.
6284 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6285 Likewise.
6286 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6287 Likewise.
6288 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6289 Likewise.
6290
6291 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6292 [__i586__ || __pentium__].
6293 [__i486__]: Handle explicitly.
6294 (HAS_CPUID): Define to 1 if above macros are undefined.
6295 (HAS_I586): Likewise.
6296 (HAS_I686): Likewise.
6297
6298 2018-09-20 Florian Weimer <fweimer@redhat.com>
6299
6300 * misc/tst-gethostid.c: New file.
6301 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6302 (tst-gethostid): Link with -ldl.
6303
6304 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6305
6306 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6307 value from gethostbyname_r.
6308
6309 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6310
6311 * stdlib/tst-setcontext9.c (f1): Rename to...
6312 (f1a): ... this.
6313 (f1b): New function implementing lower half of f1 in alternate stack.
6314
6315 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6316
6317 Fix mktime localtime offset confusion
6318 [BZ #23603]
6319 * include/time.h (__mktime_internal): The localtime offset is now
6320 of type long int instead of time_t. This is the longstanding type
6321 in glibc, and it is more than enough to represent difference
6322 between localtime and gmtime even if it is 32 bits and time_t is
6323 64. Changing it now will let us avoid an unnecessary change when
6324 time_t is widened to 64 bits on 32-bit platforms.
6325 * time/mktime-internal.h (mktime_offset_t): Now long int.
6326
6327 Merge mktime, timegm from upstream Gnulib
6328 [BZ #23603][BZ #16346]
6329 This fixes some obscure problems with integer overflow.
6330 Although it looks scary, it is almost all a byte-for-byte copy
6331 from Gnulib, and the Gnulib code has been tested reasonably well.
6332 * include/intprops.h: New file, copied from Gnulib.
6333 * include/verify.h, time/mktime-internal.h:
6334 New tiny files, simplified from Gnulib.
6335 * time/mktime.c: Copy from Gnulib. This has the following changes:
6336 Do not include config.h if DEBUG_MKTIME is nonzero.
6337 Include stdbool.h, intprops.h, verify.h.
6338 Include string.h only if needed.
6339 Include stdlib.h on MS-Windows.
6340 Include mktime-internal.h.
6341 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6342 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6343 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6344 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6345 simplify later conditionals; default the others to zero. Use
6346 these conditionals to express only the code needed on the current
6347 platform. In uses of these conditionals, explicitly spell out how
6348 _LIBC affects things, so it’s easier to review from a glibc
6349 viewpoint.
6350 (WRAPV): Remove; no longer needed now that we have
6351 systematic overflow checking.
6352 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6353 compartmentalize tzset issues. Move system-dependent tzsettish
6354 code here from mktime.
6355 (verify): Remove; now done by verify.h. All uses changed.
6356 (long_int): Use a more-conservative definition, to avoid
6357 integer overflow.
6358 (SHR): Remove, replacing with ...
6359 (shr): New function, which means we needn’t worry about side
6360 effects in args, and conversion analysis is simpler.
6361 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6362 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6363 (time_t_avg, time_t_add_ok): Remove.
6364 (mktime_min, mktime_max): New constants.
6365 (leapyear, isdst_differ): Use bool for booleans.
6366 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6367 Use long_int, not time_t, for mktime differences.
6368 (long_int_avg): New function, replacing time_t_avg.
6369 INT_ADD_WRAPV replaces time_t_add_ok.
6370 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6371 All uses changed.
6372 (convert_time): New function.
6373 (ranged_convert): Use it.
6374 (__mktime_internal): Last arg now points to mktime_offset_t, not
6375 time_t. All uses changed. This is a no-op on glibc, where
6376 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6377 offset guess. Directly check for integer overflow instead of
6378 using a heuristic that works only 99.9...% of the time.
6379 Access *OFFSET only once, to avoid an unlikely race if the
6380 compiler delays a load and if this cascades into a signed integer
6381 overflow.
6382 (mktime): Move tzsettish code to my_tzset, and move
6383 localtime_offset to within mktime so that it doesn’t
6384 need a separate ifdef.
6385 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6386 instead of localtime.
6387 * time/timegm.c: Copy from Gnulib. This has the following changes:
6388 Include mktime-internal.h.
6389 [!_LIBC]: Include config.h and time.h. Do not include
6390 timegm.h or time_r.h. Make __mktime_internal a macro,
6391 and include mktime-internal.h to get its declaration.
6392 (timegm): Temporary is now mktime_offset_t, not time_t.
6393 This affects only Gnulib.
6394
6395 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6396
6397 [BZ #23637]
6398 * string/test-strstr.c (pr23637): New function.
6399 (test_main): Add tests with longer needles.
6400 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6401 * string/strstr.c (AVAILABLE): Likewise.
6402
6403 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6404
6405 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6406
6407 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6408
6409 * NEWS: Mention pow improvements.
6410 * math/Makefile (type-double-routines): Add e_pow_log_data.
6411 * sysdeps/generic/math_private.h (__exp1): Remove.
6412 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6413 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6414 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6415 contraction.
6416 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6417 (exp_inline): Remove.
6418 (__ieee754_exp): Only single double input is handled.
6419 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6420 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6421 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6422 (__pow_log_data): Define.
6423 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6424 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6425 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6426 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6427 contraction.
6428 (CFLAGS-e_pow-fma4.c): Likewise.
6429
6430 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6431
6432 Simplify tzfile fstat failure code
6433 [BZ #21716]
6434 * time/tzfile.c (__tzfile_read): Simplify slightly.
6435
6436 Fix tzfile low-memory assertion failure
6437 [BZ #21716]
6438 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6439 when registering time zone abbreviations.
6440
6441 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6442
6443 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6444 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6445 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6446 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6447 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6448 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6449 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6450 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6451 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6452
6453 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6454 __ceil.
6455 (__ceill): Call ceil instead of __ceil.
6456 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6457 __floor.
6458 (__floorl): Call floor instead of __floor.
6459
6460 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6461
6462 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6463 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6464 using MATH_REDIRECT.
6465 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6466 header inclusion.
6467 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6468 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6469 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6470 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6471 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6472 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6473 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6474 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6475 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6479 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6480 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6481 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6482 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6483 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6484 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6485 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6486 Remove macro.
6487 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6488 functions instead of __ceil variants.
6489 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6490 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6491 Likewise.
6492 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6493 Likewise.
6494 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6495 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6496 Likewise.
6497 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6498 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6499
6500 [BZ #21286]
6501 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6502 constant.
6503 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6504 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6505 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6506 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6507 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6508 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6509 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6510 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6511 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6512 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6513 (ILL_BADIADDR): Remove constant.
6514 (TRAP_BRANCH): Likewise.
6515 (TRAP_HWBKPT): Likewise.
6516
6517 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6518
6519 [BZ #23656]
6520 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6521 Remove [_MIPS_SIM = _ABIN32] conditional case.
6522 (struct elf_prpsinfo): Likewise.
6523
6524 [BZ #23649]
6525 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6526 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6527 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6528 Likewise.
6529 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6530 elf_prpsinfo): Likewise.
6531 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6532 elf_prpsinfo): Likewise.
6533 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6534 Likewise.
6535
6536 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6537 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6538 using MATH_REDIRECT.
6539 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6540 header inclusion.
6541 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6542 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6543 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6544 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6545 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6546 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6547 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6548 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6549 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6550 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6551 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6552 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6553 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6554 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6555 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6556 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6557 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6558 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6559 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6560 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6562 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6563 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6564 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6565 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6566 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6567 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6568 __rint variants.
6569 * math/e_scalbf.c (invalid_fn): Likewise.
6570 * math/e_scalbl.c (invalid_fn): Likewise.
6571 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6572 Likewise.
6573 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6574 Likewise.
6575 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6576 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6577 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6578 Likewise.
6579 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6580 Likewise.
6581 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6582 Likewise.
6583 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6584 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6585
6586 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6587 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6588 New macro.
6589 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6590 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6591 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6592 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6593 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6594 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6595 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6596 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6597 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6598 && !NO_MATH_REDIRECT] (floor): Likewise.
6599 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6600 header inclusion.
6601 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6602 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6603 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6604 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6605 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6606 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6607 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6608 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6613 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6614 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6615 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6616 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6617 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6618 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6619 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6620 Remove macro.
6621 [_ARCH_PWR5X] (__floorf): Likewise.
6622 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6623 inline function.
6624 [__SSE4_1__] (__floorf): Likewise.
6625 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6626 instead of __floor variants.
6627 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6628 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6629 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6630 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6631 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6632 * math/w_tgamma_compat.c (__tgamma): Likewise.
6633 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6634 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6635 * math/w_tgammal_compat.c (__tgammal): Likewise.
6636 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6637 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6638 Likewise.
6639 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6640 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6641 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6642 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6643 Likewise.
6644 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6645 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6646 Likewise.
6647 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6648 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6649 Likewise.
6650 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6651 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6652 Likewise.
6653 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6654 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6655 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6656 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6657 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6658 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6659
6660 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6661
6662 * elf/Makefile (modules-names-tests): New variable.
6663
6664 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6665
6666 * NEWS: Mention log2 improvements.
6667 * math/Makefile (type-double-routines): Add e_log2_data.
6668 * sysdeps/i386/fpu/e_log2_data.c: New file.
6669 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6670 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6671 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6672 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6673 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6674 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6675
6676 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6677
6678 * NEWS: Mention log improvement.
6679 * math/Makefile (type-double-routines): Add e_log_data.
6680 * sysdeps/i386/fpu/e_log_data.c: New file.
6681 * sysdeps/ia64/fpu/e_log_data.c: New file.
6682 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6683 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6684 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6685 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6686 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6687 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6688
6689 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6690 Xuepeng Guo <xuepeng.guo@intel.com>
6691
6692 [BZ #23606]
6693 * sysdeps/i386/start.S: Include <sysdep.h>
6694 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6695 enabled. Add cfi_undefined (eip).
6696
6697 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6698
6699 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6700 (MOVQ): Likewise.
6701 (EXTRACT_WORDS64): Likewise.
6702 (INSERT_WORDS64): Likewise.
6703 (GET_FLOAT_WORD): Likewise.
6704 (SET_FLOAT_WORD): Likewise.
6705
6706 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6707 argument.
6708 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6709 build, but not for second build if --full-gcc. Use
6710 --enable-languages=all for second build if --full-gcc.
6711 (get_parser): Add --full-gcc option.
6712 (main): Update call to Context.
6713
6714 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6715
6716 [BZ #10797]
6717 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6718 Single Quotation Mark).
6719 (thousands_sep): Likewise.
6720 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6721 * localedata/locales/it_IT (thousands_sep): Use ".".
6722 (grouping): Use "3;3".
6723
6724 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6725
6726 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6727 x86_64 and i686 configs using --enable-obsolete-rpc
6728 --enable-obsolete-nsl.
6729
6730 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6731
6732 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6733
6734 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6735
6736 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6737 Increment size of new_argv by one.
6738
6739 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6740
6741 [BZ #17426]
6742 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6743 * localedata/locales/ar_IN (d_fmt): Likewise.
6744 * localedata/locales/bhb_IN (d_fmt): Likewise.
6745 * localedata/locales/bho_IN (d_fmt): Likewise.
6746 * localedata/locales/bn_BD (d_fmt): Likewise.
6747 * localedata/locales/bn_IN (d_fmt): Likewise.
6748 * localedata/locales/doi_IN (d_fmt): Likewise.
6749 * localedata/locales/gu_IN (d_fmt): Likewise.
6750 * localedata/locales/hi_IN (d_fmt): Likewise.
6751 * localedata/locales/hne_IN (d_fmt): Likewise.
6752 * localedata/locales/kn_IN (d_fmt): Likewise.
6753 * localedata/locales/mag_IN (d_fmt): Likewise.
6754 * localedata/locales/mai_IN (d_fmt): Likewise.
6755 * localedata/locales/mjw_IN (d_fmt): Likewise.
6756 * localedata/locales/ml_IN (d_fmt): Likewise.
6757 * localedata/locales/mni_IN (d_fmt): Likewise.
6758 * localedata/locales/mr_IN (d_fmt): Likewise.
6759 * localedata/locales/pa_IN (d_fmt): Likewise.
6760 * localedata/locales/raj_IN (d_fmt): Likewise.
6761 * localedata/locales/sat_IN (d_fmt): Likewise.
6762 * localedata/locales/sd_IN (d_fmt): Likewise.
6763 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6764 * localedata/locales/ta_IN (d_fmt): Likewise.
6765 * localedata/locales/ta_LK (d_fmt): Likewise.
6766 * localedata/locales/tcy_IN (d_fmt): Likewise.
6767 * localedata/locales/ur_IN (d_fmt): Likewise.
6768
6769 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6770 * localedata/locales/ks_IN (d_fmt): Likewise.
6771 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6772
6773 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6774 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6775 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6776 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6777
6778 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6779
6780 * NEWS: Mention exp and exp2 improvements.
6781 * math/Makefile (libm-support): Remove t_exp.
6782 (type-double-routines): Add math_err and e_exp_data.
6783 * sysdeps/aarch64/libm-test-ulps: Update.
6784 * sysdeps/arm/libm-test-ulps: Update.
6785 * sysdeps/i386/fpu/e_exp_data.c: New file.
6786 * sysdeps/i386/fpu/math_err.c: New file.
6787 * sysdeps/i386/fpu/t_exp.c: Remove.
6788 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6789 * sysdeps/ia64/fpu/math_err.c: New file.
6790 * sysdeps/ia64/fpu/t_exp.c: Remove.
6791 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6792 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6793 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6794 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6795 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6796 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6797 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6798 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6799 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6800 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6801 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6802 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6803 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6804 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6805 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6806 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6807
6808 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6809
6810 * sysdeps/alpha/fpu/math_private.h: Remove.
6811
6812 * sysdeps/generic/math_private.h
6813 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6814 Move this inline function ....
6815 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6816 * include/math.h [!_ISOMAC]: To here....
6817
6818 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6819
6820 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6821 code ....
6822 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6823 * include/fenv.h [!_ISOMAC]: ... to here.
6824 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6825 (feraiseexcept): Likewise.
6826 * math/fromfp.h: Do not include <fenv_private.h>.
6827 * math/s_cexp_template.c: Likewise.
6828 * math/s_csin_template.c: Likewise.
6829 * math/s_csinh_template.c: Likewise.
6830 * math/s_ctan_template.c: Likewise.
6831 * math/s_ctanh_template.c: Likewise.
6832 * math/s_iseqsig_template.c: Likewise.
6833 * math/w_acos_compat.c: Likewise.
6834 * math/w_acosf_compat.c: Likewise.
6835 * math/w_acosl_compat.c: Likewise.
6836 * math/w_asin_compat.c: Likewise.
6837 * math/w_asinf_compat.c: Likewise.
6838 * math/w_asinl_compat.c: Likewise.
6839 * math/w_j0_compat.c: Likewise.
6840 * math/w_j0f_compat.c: Likewise.
6841 * math/w_j0l_compat.c: Likewise.
6842 * math/w_j1_compat.c: Likewise.
6843 * math/w_j1f_compat.c: Likewise.
6844 * math/w_j1l_compat.c: Likewise.
6845 * math/w_jn_compat.c: Likewise.
6846 * math/w_jnf_compat.c: Likewise.
6847 * math/w_log10_compat.c: Likewise.
6848 * math/w_log10f_compat.c: Likewise.
6849 * math/w_log10l_compat.c: Likewise.
6850 * math/w_log2_compat.c: Likewise.
6851 * math/w_log2f_compat.c: Likewise.
6852 * math/w_log2l_compat.c: Likewise.
6853 * math/w_log_compat.c: Likewise.
6854 * math/w_logf_compat.c: Likewise.
6855 * math/w_logl_compat.c: Likewise.
6856 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6857 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6858 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6859 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6860 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6861 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6862 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6863 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6864 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6865 * sysdeps/ieee754/k_standardl.c: Likewise.
6866 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6868 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6869 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6870 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6871 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6872 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6873 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6874 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6875 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6878 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6879 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6880 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6881 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6882 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6883 * math/w_ilogb_template.c: Include <fenv.h> instead of
6884 <fenv_private.h>.
6885 * math/w_llogb_template.c: Likewise.
6886 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6887 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6888
6889 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6890
6891 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6892 * math/fromfp.h: Include <fenv_private.h>.
6893 * math/math-narrow.h: Likewise.
6894 * math/s_cexp_template.c: Likewise.
6895 * math/s_csin_template.c: Likewise.
6896 * math/s_csinh_template.c: Likewise.
6897 * math/s_ctan_template.c: Likewise.
6898 * math/s_ctanh_template.c: Likewise.
6899 * math/s_iseqsig_template.c: Likewise.
6900 * math/w_acos_compat.c: Likewise.
6901 * math/w_acosf_compat.c: Likewise.
6902 * math/w_acosl_compat.c: Likewise.
6903 * math/w_asin_compat.c: Likewise.
6904 * math/w_asinf_compat.c: Likewise.
6905 * math/w_asinl_compat.c: Likewise.
6906 * math/w_ilogb_template.c: Likewise.
6907 * math/w_j0_compat.c: Likewise.
6908 * math/w_j0f_compat.c: Likewise.
6909 * math/w_j0l_compat.c: Likewise.
6910 * math/w_j1_compat.c: Likewise.
6911 * math/w_j1f_compat.c: Likewise.
6912 * math/w_j1l_compat.c: Likewise.
6913 * math/w_jn_compat.c: Likewise.
6914 * math/w_jnf_compat.c: Likewise.
6915 * math/w_llogb_template.c: Likewise.
6916 * math/w_log10_compat.c: Likewise.
6917 * math/w_log10f_compat.c: Likewise.
6918 * math/w_log10l_compat.c: Likewise.
6919 * math/w_log2_compat.c: Likewise.
6920 * math/w_log2f_compat.c: Likewise.
6921 * math/w_log2l_compat.c: Likewise.
6922 * math/w_log_compat.c: Likewise.
6923 * math/w_logf_compat.c: Likewise.
6924 * math/w_logl_compat.c: Likewise.
6925 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6926 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6927 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6928 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6929 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6930 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6931 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6932 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6933 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6934 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6935 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6937 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6939 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6940 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6941 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6942 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6943 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6944 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6945 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6946 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6947 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6948 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6949 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6950 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6951 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6952 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6953 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6954 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6955 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6956 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6957 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6958 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6959 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6960 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6961 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6962 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6963 * sysdeps/ieee754/k_standardl.c: Likewise.
6964 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6965 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6966 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6967 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6968 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6969 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6970 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6971 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6974 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6975 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6976 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6977 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6978 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6980 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6981 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6982 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6983 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6984 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6985 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6986 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6987 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6988 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6989 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6990 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6991 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6992 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6993 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6994 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6995 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6996 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6997 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6998 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6999 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7000 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7001 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7002 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7003 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7004 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7005 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7006 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7007 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7008 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7009 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7010 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7011 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7012 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7013 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7014 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7015 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7016 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7017 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7018 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7019 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7020 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7021 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7022 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7023 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7024 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7025 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7026 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7027 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7028 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7029 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7030 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7031 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7032 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7033 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7034 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7035
7036 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7037
7038 [BZ #20271]
7039 * include/stdio.h (__libc_fatal): Mention newline in comment.
7040 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7041 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7042 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7043 * nss/nsswitch.c (__nss_next2): Likewise.
7044 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7045 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7046 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7047 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7048 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7049 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7050 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7051 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7052 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7053 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7054 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7055 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7056 (__netlink_assert_response): Likewise.
7057
7058 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7059
7060 * conform/glibcconform.py: New file.
7061 * conform/list-header-symbols.py: Likewise.
7062 * conform/list-header-symbols.pl: Remove.
7063 * conform/Makefile (tests-special): Only add linknamespace tests
7064 if [PYTHON].
7065 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7066
7067 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7068
7069 [BZ #23597]
7070 * support/Makefile (libsupport-routines): Add
7071 support_copy_file_range and xcopy_file_range.
7072 * support/support.h: Include <sys/types.h>.
7073 (support_copy_file_range): New prototype.
7074 * support/support_copy_file_range.c: New file. Copied and
7075 modified from io/copy_file_range-compat.c.
7076 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7077 instead of copy_file_range.
7078 * support/xcopy_file_range.c: New file.
7079 * support/xunistd.h (xcopy_file_range): New prototype.
7080
7081 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7082
7083 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7084 xpthread_create and xpthread_join.
7085
7086 2018-08-30 Florian Weimer <fweimer@redhat.com>
7087
7088 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7089
7090 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7091
7092 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7093 if malloc fails.
7094
7095 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7096
7097 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7098 and minus_oflow as non-finite.
7099
7100 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7101
7102 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7103 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7104 moved to fenv_private.h except for ...
7105 (TOINT_INTRINSICS): Kept in math_private.h.
7106 (roundtoint): Likewise.
7107 (converttoint): Likewise.
7108 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7109 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7110 * sysdeps/arm/math_private.h: Remove.
7111 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7112 ....
7113 * sysdeps/generic/math_private.h: ... this file. Include
7114 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7115 Include <fenv_private.h>. Remove functions and macros moved to
7116 fenv_private.h.
7117 * sysdeps/i386/fpu/math_private.h: Remove.
7118 * sysdeps/mips/math_private.h: Move to ....
7119 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7120 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7121 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7122 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7123 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7124 * sysdeps/powerpc/fpu/math_private.h: Do not include
7125 <fenv_private.h>.
7126 * sysdeps/riscv/rvf/math_private.h: Move to ....
7127 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7128 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7129 <fenv_private.h>.
7130 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7131 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7132 * sysdeps/sparc/fpu/math_private.h: Remove.
7133 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7134 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7135 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7136 <fenv_private.h>.
7137 * sysdeps/x86_64/fpu/math_private.h: Do not include
7138 <sysdeps/i386/fpu/fenv_private.h>.
7139
7140 2018-08-28 Florian Weimer <fweimer@redhat.com>
7141
7142 [BZ #23578]
7143 * posix/tst-regcomp-truncated.c: New file.
7144 * posix/Makefile (tests): Add it.
7145 (tst-regcomp-truncated.out): Depend on generated locales.
7146
7147 2018-08-28 Florian Weimer <fweimer@redhat.com>
7148
7149 * support/test-container.c (main): Treat unshare failure with
7150 EPERM as an unsupported test.
7151
7152 2018-08-28 Florian Weimer <fweimer@redhat.com>
7153
7154 [BZ #23520]
7155 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7156 * nscd/netgroupcache.c
7157 (addgetnetgrentX): Add tofreep parameter. Do not free
7158 heap-allocated buffer.
7159 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7160 (addgetnetgrentX_ignore): New function.
7161 (addgetnetgrent): Call it.
7162 (readdgetnetgrent): Likewise.
7163
7164 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7165
7166 * string/memmem.c: Use memcmp for first match.
7167
7168 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7169
7170 [BZ #17426]
7171 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7172
7173 2018-08-27 DJ Delorie <dj@redhat.com>
7174
7175 * support/Makefile (others): Don't list programs explicitly as a
7176 dependency of "others".
7177
7178 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7179
7180 * sysdeps/generic/math-tests-trap-force.h: New file.
7181 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7182 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7183 * sysdeps/powerpc/math-tests.h: Remove file.
7184 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7185
7186 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7187 Torvald Riegel <triegel@redhat.com>
7188
7189 [BZ #23538]
7190 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7191 Update r to include the set wake-request flag if waiters are
7192 remaining after spinning.
7193
7194 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7195
7196 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7197
7198 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7199
7200 [BZ #23578]
7201 regex: fix uninitialized memory access
7202 I introduced this bug into gnulib in commit
7203 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7204 eventually it was merged into glibc. The bug was found by
7205 project-repo <bugs@feusi.co> and reported here:
7206 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7207 Diagnosis and draft fix reported by Assaf Gordon here:
7208 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7209 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7210 * posix/regex_internal.c (build_wcs_upper_buffer):
7211 Fix bug when mbrtowc returns 0.
7212
7213 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7214
7215 * po/be.po: Update translation.
7216
7217 2018-08-24 DJ Delorie <dj@delorie.com>
7218
7219 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7220 $(libunwind).
7221
7222 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7223
7224 [BZ #23400]
7225 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7226 create temporary files in source tree.
7227
7228 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7229
7230 * sysdeps/generic/math-tests-trap.h: New file.
7231 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7232 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7233 * sysdeps/aarch64/math-tests.h: Remove file.
7234 * sysdeps/arm/math-tests.h: Likewise.
7235 * sysdeps/riscv/math-tests.h: Likewise.
7236 * sysdeps/aarch64/math-tests-trap.h: New file.
7237 * sysdeps/arm/math-tests-trap.h: Likewise.
7238 * sysdeps/riscv/math-tests-trap.h: Likewise.
7239
7240 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7241
7242 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7243 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7244 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7245 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7246 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7247 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7248 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7249 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7250 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7251 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7252 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7253 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7254 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7255 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7256 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7257 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7258 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7259 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7260
7261 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7262
7263 * sysdeps/generic/math-tests-exceptions.h: New file.
7264 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7265 (EXCEPTION_TESTS_float): Do not define here.
7266 (EXCEPTION_TESTS_double): Likewise.
7267 (EXCEPTION_TESTS_long_double): Likewise.
7268 (EXCEPTION_TESTS_float128): Likewise.
7269 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7270 Likewise.
7271 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7272 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7273 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7274 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7275 * sysdeps/mips/math-tests.h: Likewise.
7276 * sysdeps/nios2/math-tests.h: Likewise.
7277 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7278 (EXCEPTION_TESTS_float): Do not define here.
7279 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7280 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7281 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7282
7283 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7284
7285 * NEWS: Move optimized sinf entry to 2.29.
7286
7287 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7288
7289 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7290
7291 2018-08-22 DJ Delorie <dj@redhat.com>
7292
7293 * Makefile (testroot.pristine): New rules to initialize the
7294 test-in-container "testroot".
7295 * Makerules (all-testsuite): Add tests-container.
7296 * Rules (tests-expected): Add tests-container.
7297 (binaries-all-tests): Likewise.
7298 (tests-container): New, run these tests in the testroot container.
7299 * support/Makefile (others): Add *-container, support_paths.c,
7300 xmkdirp, and links-dso-program.
7301 * support/links-dso-program-c.c: New.
7302 * support/links-dso-program.cc: New.
7303 * support/test-container.c: New.
7304 * support/shell-container.c: New.
7305 * support/echo-container.c: New.
7306 * support/true-container.c: New.
7307 * support/xmkdirp.c: New.
7308 * support/xsymlink.c: New.
7309 * support/support_paths.c: New.
7310 * support/support.h: Add support paths prototypes.
7311 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7312
7313 * nss/tst-nss-test3.c: Convert to test-in-container.
7314 * nss/tst-nss-test3.root/: New.
7315
7316 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7317
7318 regex: port Gnulib code to z/OS POSIX environment
7319 Problem reported by Arnold Robbins in:
7320 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7321 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7322 Undef.
7323
7324 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7325
7326 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7327 (ROUNDING_TESTS_double): Remove.
7328 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7329 (ROUNDING_TESTS_double): Remove.
7330 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7331 (ROUNDING_TESTS_double): Remove.
7332 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7333 (ROUNDING_TESTS_float): Remove.
7334 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7335 (ROUNDING_TESTS_float): Remove.
7336 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7337 (ROUNDING_TESTS_float): Remove.
7338 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7339 !TEST_MATHVEC here.
7340 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7341 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7342
7343 * sysdeps/generic/math-tests-rounding.h: New file.
7344 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7345 (ROUNDING_TESTS_float): Do not define here.
7346 (ROUNDING_TESTS_double): Likewise.
7347 (ROUNDING_TESTS_long_double): Likewise.
7348 (ROUNDING_TESTS_float128): Likewise.
7349 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7350 (ROUNDING_TESTS_double): Undefine before defining.
7351 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7352 (ROUNDING_TESTS_double): Undefine before defining.
7353 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7354 (ROUNDING_TESTS_double): Undefine before defining.
7355 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7356 (ROUNDING_TESTS_float): Undefine before defining.
7357 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7358 (ROUNDING_TESTS_float): Undefine before defining.
7359 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7360 (ROUNDING_TESTS_float): Undefine before defining.
7361 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7362 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7363 not define here.
7364 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7365 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7366 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7367 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7368 (ROUNDING_TESTS_float): Do not define here.
7369 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7370 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7371 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7372 (ROUNDING_TESTS_float): Likewise.
7373 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7374 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7375 * sysdeps/mips/math-tests.h [__mips_soft_float]
7376 (ROUNDING_TESTS_float): Likewise.
7377 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7378 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7379 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7380 (ROUNDING_TESTS_double): Likewise.
7381 (ROUNDING_TESTS_long_double): Likewise.
7382
7383 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7384
7385 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7386 (PF_XDP): New macro.
7387 (AF_XDP): New macro.
7388 (SOL_XDP): New macro.
7389
7390 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7391
7392 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7393 (TCP_INQ): Likewise.
7394 (TCP_CM_INQ): Likewise.
7395 (TCP_REPAIR_ON): Likewise.
7396 (TCP_REPAIR_OFF): Likewise.
7397 (TCP_REPAIR_OFF_NO_WP): Likewise.
7398 (struct tcp_zerocopy_receive): New type.
7399
7400 2018-08-21 Florian Weimer <fweimer@redhat.com>
7401
7402 * support/support.h (support_descriptor_supports_holes): Declare.
7403 * support/Makefile (libsupport-routines): Add
7404 support_descriptor_supports_holes.
7405 * support/support_descriptor_supports_holes.c: New file.
7406 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7407 and stop testing if holes are not supported.
7408 * io/test-lfs.c (do_prepare): Likewise.
7409 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7410 Likewise.
7411 * timezone/tst-tzset.c (create_tz_file): Likewise.
7412 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7413 variable.
7414 (do_prepare): Set it.
7415 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7416
7417 2018-08-21 Florian Weimer <fweimer@redhat.com>
7418
7419 [BZ #17248]
7420 * Makeconfig (+cflags): Do not sort (and deduplicate).
7421
7422 2018-08-21 Florian Weimer <fweimer@redhat.com>
7423
7424 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7425 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7426
7427 2018-08-20 Florian Weimer <fweimer@redhat.com>
7428
7429 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7430 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7431
7432 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7433
7434 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7435 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7436 and ssi_arch members.
7437
7438 * elf/elf.c (NT_VMCOREDD): New macro.
7439 (AT_MINSIGSTKSZ): Likewise.
7440
7441 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7442
7443 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7444 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7445 s_cosf-ppc64 and s_cosf-power8.
7446 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7447 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7448 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7449 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7456 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7457 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7458
7459 2018-08-17 Florian Weimer <fweimer@redhat.com>
7460
7461 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7462
7463 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7464
7465 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7466
7467 2018-08-16 Florian Weimer <fweimer@redhat.com>
7468
7469 * configure.ac: Add --with-nonshared-cflags option.
7470 * config.make.in (extra-nonshared-cflags): Set variable.
7471 * Makeconfig (CFLAGS-.oS): Use it.
7472 * manual/install.texi (Configuring and compiling): Document
7473 --with-nonshared-cflags.
7474 * configure: Regenerate.
7475 * INSTALL: Likewise.
7476
7477 2018-08-16 Florian Weimer <fweimer@redhat.com>
7478
7479 * Makeconfig (ASFLAGS): Always append required assembler flags.
7480
7481 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7482
7483 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7484 (malloc_consolidate): Likewise.
7485
7486 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7487
7488 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7489
7490 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7491
7492 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7493 every strlen call.
7494
7495 * benchtests/bench-strlen.c: Print performance numbers in json.
7496
7497 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7498
7499 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7500 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7501 only for little endian.
7502 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7503 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7504 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7505 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7506 Add check for little endian.
7507 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7508 (__strcmp_power9): Add check for little endian.
7509 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7510 Add check for little endian.
7511 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7512 (__strncmp_power9): Add check for little endian.
7513 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7514 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7515 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7516 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7517 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7518
7519 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7520
7521 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7522 [!STRLEN](STRLEN): Set to __strlen.
7523 * sysdeps/aarch64/multiarch/strlen.c: New file.
7524 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7525 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7526 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7527 (__libc_ifunc_impl_list): Add strlen.
7528 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7529 strlen_generic and strlen_asimd.
7530
7531 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7532
7533 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7534 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7535 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7536
7537 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7538
7539 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7540
7541 2018-08-14 Florian Weimer <fweimer@redhat.com>
7542
7543 [BZ #23519]
7544 * include/stdio.h (__vfxprintf): Declare.
7545 * stdio-common/fxprintf.c (__vfxprintf): New function.
7546 (__fxprintf): Call it.
7547 * misc/err.c (convert_and_print): Remove function.
7548 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7549 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7550 * misc/Makefile (tests): Add tst-warn-wide.
7551 * misc/tst-warn-wide.c: New file.
7552
7553 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7554 Szabolcs Nagy <szabolcs.nagy@arm.com>
7555
7556 * NEWS: Mention sinf, cosf, sincosf.
7557 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7558 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7559 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7560 constants rather than including generic sincosf.h.
7561 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7562 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7563 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7564 (reduced_cos): Remove.
7565 (sinf_poly): New function.
7566 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7567
7568 2018-08-14 Florian Weimer <fweimer@redhat.com>
7569
7570 [BZ #23521]
7571 [BZ #23522]
7572 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7573 processing, bail out if no room, and close the stream before
7574 returning ERANGE.
7575 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7576 (tst-nss-files-alias-leak): Link with libdl.
7577 (tst-nss-files-alias-leak.out): Depend on nss_files.
7578
7579 * nss/tst-nss-files-alias-leak.c: New file.
7580
7581 2018-08-14 Florian Weimer <fweimer@redhat.com>
7582
7583 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7584 server_user, stat_user.
7585
7586 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7587
7588 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7589 version to 4.18.
7590 (io_pgetevents): New syscall.
7591 (rseq): Likewise.
7592
7593 * manual/install.texi (Configuring and compiling): Do not list
7594 tools used for testing pretty printers here.
7595 (Tools for Compilation): List Python, PExpect and GDB here.
7596 Update descriptions of uses of Perl and Python.
7597 * INSTALL: Regenerate.
7598
7599 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7600 version to 4.18.
7601
7602 2018-08-13 Florian Weimer <fweimer@redhat.com>
7603
7604 * misc/error.c (error): Add missing va_end call.
7605 (error_at_line): Likewise.
7606
7607 2018-08-13 Florian Weimer <fweimer@redhat.com>
7608
7609 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7610
7611 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7612
7613 * benchtests/scripts/benchout.schema.json (properties): Add
7614 new properties.
7615
7616 * benchtests/bench-skeleton.c (main): Add duration and
7617 iterations attributes.
7618
7619 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7620
7621 regex: Gnulib unibyte RRI uses bytes not chars
7622 Adjust the non-glibc code to agree with what Gawk needs for
7623 rational range interpretation (RRI) for regular expression ranges.
7624 In unibyte locales, Gawk wants ranges to use the underlying byte
7625 rather than the character code point. This change does not affect
7626 glibc proper.
7627 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7628 In unibyte locales, use the byte value rather than
7629 running it through btowc.
7630
7631 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7632
7633 * sysdeps/generic/math-tests-snan.h: New file.
7634 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7635 (SNAN_TESTS_float): Do not define here.
7636 (SNAN_TESTS_double): Likewise.
7637 (SNAN_TESTS_long_double): Likewise.
7638 (SNAN_TESTS_float128): Likewise.
7639 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7640 * sysdeps/i386/fpu/math-tests.h: Remove file.
7641 * sysdeps/ia64/math-tests-snan.h: New file.
7642 * sysdeps/ia64/math-tests.h: Remove file.
7643 * sysdeps/x86/math-tests.h: Likewise.
7644 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7645
7646 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7647 Szabolcs Nagy <szabolcs.nagy@arm.com>
7648
7649 * math/Makefile: Add s_sincosf_data.c.
7650 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7651 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7652 (sincosf_poly): Likewise.
7653 (reduce_small): Likewise.
7654 (reduce_large): Likewise.
7655 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7656 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7657 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7658 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7659
7660 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7661 Szabolcs Nagy <szabolcs.nagy@arm.com>
7662
7663 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7664 (converttoint): Use lround.
7665 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7666 document the semantics when TOINT_INTRINSICS is set.
7667 (converttoint): Likewise.
7668 (TOINT_RINT): Remove.
7669 (TOINT_SHIFT): Remove.
7670 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7671 path.
7672
7673 2018-08-10 Florian Weimer <fweimer@redhat.com>
7674
7675 [BZ #23497]
7676 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7677 function.
7678 (__old_getdents64): Use getdents64. Convert entries without
7679 moving them.
7680 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7681 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7682 tst-readdir64-compat.
7683
7684 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7685
7686 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7687 Fix unwind.
7688
7689 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7690
7691 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7692 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7693 code to s390x-mcount.h and #include it.
7694 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7695 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7696 (__fentry__): Add.
7697
7698 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7699
7700 * stdlib/Versions: Remove __fentry__.
7701 * sysdeps/i386/Versions: Add __fentry__.
7702 * sysdeps/x86_64/Versions: Add __fentry__.
7703
7704 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7705
7706 * sysdeps/s390/Makefile: Register the new tests.
7707 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7708 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7709 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7710 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7711 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7712 * sysdeps/s390/tst-dl-runtime.c: New file.
7713
7714 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7715
7716 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7717 Do not clobber R0.
7718
7719 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7720
7721 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7722 Do not clobber R0.
7723
7724 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7725
7726 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7727 Do not clobber R0.
7728
7729 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7730
7731 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7732 Do not clobber R0.
7733
7734 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7735
7736 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7737 Use symbolic offsets for stack variables.
7738
7739 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7740
7741 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7742 Use symbolic offsets for stack variables.
7743
7744 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7745
7746 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7747 Use symbolic offsets for stack variables.
7748
7749 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7750
7751 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7752 Use symbolic offsets for stack variables.
7753
7754 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7755
7756 * math/gen-libm-test.py: New file.
7757 * math/gen-libm-test.pl: Remove.
7758 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7759 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7760 gen-libm-test.pl.
7761 ($(libm-test-c-noauto-obj)): Likewise.
7762 ($(libm-test-c-auto-obj)): Likewise.
7763 ($(libm-test-c-narrow-obj)): Likewise.
7764 (regen-ulps): Likewise.
7765 * math/README.libm-test: Update references to gen-libm-test.pl.
7766 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7767 referencing gen-libm-test.pl.
7768 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7769 * math/libm-test-support.c: Likewise.
7770 * math/libm-test-support.h: Likewise.
7771 * sysdeps/generic/libm-test-ulps: Likewise.
7772
7773 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7774
7775 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7776 Fix value.
7777
7778 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7779
7780 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7781 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7782
7783 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7784
7785 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7786 symbols.
7787 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7788 __pthread_setspecific): Add hidden proto.
7789 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7790 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7791
7792 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7793
7794 * benchtests/bench-string.h (buf1_size, buf2_size): New
7795 variables.
7796 (init_sizes): New function.
7797 (test_init): Use it.
7798 (alloc_buf, exit_error): New functions.
7799 (alloc_bufs): Use ALLOC_BUF.
7800 (realloc_bufs): Remove.
7801 * benchtests/bench-memcmp.c (do_test): Adjust.
7802 * benchtests/bench-memset-large.c (do_test): Likewise.
7803 * benchtests/bench-memset-walk.c (do_test): Likewise.
7804 * benchtests/bench-memset.c (do_test): Likewise.
7805 * benchtests/bench-strncmp.c (do_test): Likewise.
7806
7807 2018-08-06 Andreas Schwab <schwab@suse.de>
7808
7809 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7810 of CONST_THREAD_AREA.
7811
7812 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7813
7814 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7815 (STATE_SAVE_MASK): Likewise.
7816 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7817 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7818 (STATE_SAVE_MASK): Likewise.
7819 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7820 instead of <cpu-features.h>.
7821
7822 2018-08-03 DJ Delorie <dj@redhat.com>
7823
7824 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7825 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7826
7827 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7828
7829 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7830
7831 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7832 after TEST_* calls.
7833 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7834 * math/libm-test-logb.inc (logb_test_data): Likewise.
7835
7836 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7837
7838 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7839 * string/strstr.c (AVAILABLE): Likewise.
7840
7841 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7842
7843 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7844 <init-arch.h>.
7845 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7846 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7847 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7848
7849 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7850
7851 * po/be.po: Update translation.
7852
7853 * po/be.po: Update translation.
7854
7855 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7856
7857 * sysdeps/x86/cpu-features-offsets.sym
7858 (rtld_global_ro_offsetof): Removed.
7859 (CPU_FEATURES_SIZE): Likewise.
7860 (CPUID_OFFSET): Likewise.
7861 (CPUID_SIZE): Likewise.
7862 (CPUID_EAX_OFFSET): Likewise.
7863 (CPUID_EBX_OFFSET): Likewise.
7864 (CPUID_ECX_OFFSET): Likewise.
7865 (CPUID_EDX_OFFSET): Likewise.
7866 (FAMILY_OFFSET): Likewise.
7867 (MODEL_OFFSET): Likewise.
7868 (FEATURE_OFFSET): Likewise.
7869 (FEATURE_SIZ): Likewise.
7870 (COMMON_CPUID_INDEX_1): Likewise.
7871 (COMMON_CPUID_INDEX_7): Likewise.
7872 (FEATURE_INDEX_1): Likewise.
7873 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7874
7875 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7876
7877 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7878 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7879 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7880 (install-locales): Depend on install-locale-archive.
7881 (install-locale-archive): Define.
7882 (install-locale-files): Define.
7883 (build-one-locale): Define macro.
7884 * manual/install.texi (Running make install): Document.
7885 * manual/INSTALL: Regenerate.
7886
7887 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7888
7889 * benchtests/scripts/compare_strings.py: Import traceback.
7890 (parse_file): Pretty-print error.
7891
7892 * NEWS: Mention the change.
7893 * elf/dl-tunables.list: Rename tune namespace to cpu.
7894 * sysdeps/powerpc/dl-tunables.list: Likewise.
7895 * sysdeps/x86/dl-tunables.list: Likewise.
7896 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7897 cpu.name.
7898 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7899 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7900 * manual/README.tunables: Likewise.
7901 * manual/tunables.texi: Likewise.
7902 * sysdeps/powerpc/cpu-features.c: Likewise.
7903 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7904 (init_cpu_features): Likewise.
7905 * sysdeps/x86/cpu-features.c: Likewise.
7906 * sysdeps/x86/cpu-features.h: Likewise.
7907 * sysdeps/x86/cpu-tunables.c: Likewise.
7908 * sysdeps/x86_64/Makefile: Likewise.
7909 * sysdeps/x86/dl-cet.c: Likewise.
7910
7911 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7912
7913 [BZ #23479]
7914 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7915 [__mips_hard_float].
7916 (FE_UNDERFLOW): Likewise.
7917 (FE_OVERFLOW): Likewise.
7918 (FE_DIVBYZERO): Likewise.
7919 (FE_INVALID): Likewise.
7920 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7921 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7922 (FE_UPWARD): Likewise.
7923 (FE_DOWNWARD): Likewise.
7924 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7925 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7926 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7927 [__mips_hard_float].
7928 (FP_ROUNDMODE): Likewise.
7929 (FP_RND_NEAREST): Likewise.
7930 (FP_RND_ZERO): Likewise.
7931 (FP_RND_PINF): Likewise.
7932 (FP_RND_MINF): Likewise.
7933 (FP_EX_INVALID): Likewise.
7934 (FP_EX_OVERFLOW): Likewise.
7935 (FP_EX_UNDERFLOW): Likewise.
7936 (FP_EX_DIVZERO): Likewise.
7937 (FP_EX_INEXACT): Likewise.
7938 (FP_INIT_ROUNDMODE): Likewise.
7939 * sysdeps/mips/nofpu/fesetenv.c: New file.
7940 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7941
7942 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7943
7944 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7945 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7946 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7947 conditional on [FE_UPWARD].
7948
7949 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7950
7951 regex: fix memory leak in Gnulib
7952 Problem and fix reported by Assaf Gordon in:
7953 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7954 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7955 range_ends members too, as they are defined in 'struct
7956 re_charset_t' even if not _LIBC. This affects only Gnulib.
7957
7958 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7959
7960 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7961 ...
7962 (get_common_indices): This.
7963 (init_cpu_features): Updated.
7964
7965 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7966
7967 * sysdeps/generic/math-tests-snan-payload.h: New file.
7968 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7969 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7970 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7971 * sysdeps/generic/math-tests.h: Include
7972 <math-tests-snan-payload.h>.
7973 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7974 * sysdeps/hppa/math-tests.h: Remove file.
7975 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7976 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7977 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7978 Likewise.
7979
7980 * sysdeps/generic/math-tests-snan-cast.h: New file.
7981 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7982 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7983 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7984 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7985
7986 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7987
7988 * version.h (RELEASE): Set to "development".
7989 (VERSION): Set to "2.28.9000".
7990 * NEWS (2.29): New section.
7991
7992 * version.h (RELEASE): Set to "stable".
7993 (VERSION): Set to "2.28".
7994 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7995 * NEWS: Add the list of bugs fixed in 2.28.
7996
7997 * po/ca.po: Update to latest version.
7998 * po/cs.po: Likewise
7999 * po/da.po: Likewise
8000 * po/el.po: Likewise
8001 * po/eo.po: Likewise
8002 * po/es.po: Likewise
8003 * po/fi.po: Likewise
8004 * po/fr.po: Likewise
8005 * po/gl.po: Likewise
8006 * po/hu.po: Likewise
8007 * po/ia.po: Likewise
8008 * po/id.po: Likewise
8009 * po/it.po: Likewise
8010 * po/ja.po: Likewise
8011 * po/ko.po: Likewise
8012 * po/lt.po: Likewise
8013 * po/nb.po: Likewise
8014 * po/nl.po: Likewise
8015 * po/pt_BR.po: Likewise
8016 * po/ru.po: Likewise
8017 * po/rw.po: Likewise
8018 * po/sk.po: Likewise
8019 * po/sl.po: Likewise
8020 * po/tr.po: Likewise
8021 * po/zh_CN.po: Likewise
8022 * po/zh_TW.po: Likewise
8023
8024 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8025
8026 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8027 initialization...
8028 (init): ... before initializing libpthread.
8029
8030 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8031 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8032 (__mach_setup_tls): ... new function.
8033 (mach_setup_tls): New alias.
8034 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8035 __mach_setup_thread.
8036 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8037 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8038 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8039 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8040
8041 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8042
8043 * manual/install.texi: Update versions.
8044 * INSTALL: Regenerate.
8045
8046 * manual/contrib.texi (Contributors): Update contributions.
8047
8048 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8049
8050 * po/be.po: Update translations.
8051
8052 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8053
8054 * sysdeps/sh/libm-test-ulps: Update.
8055
8056 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8057
8058 * po/bg.po: Update translations.
8059 * po/de.po: Likewise.
8060 * po/hr.po: Likewise.
8061 * po/pt_BR.po: Likewise.
8062 * po/sv.po: Likewise.
8063 * po/vi.po: Likewise.
8064
8065 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8066
8067 [BZ #23467]
8068 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8069 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8070 (CFLAGS-tst-cet-property-1.o): New.
8071 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8072 ($(objpfx)tst-cet-property-2): Likewise.
8073 ($(objpfx)tst-cet-property-2.out): Likewise.
8074 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8075 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8076 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8077 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8078 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8079
8080 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8081
8082 [BZ #23458]
8083 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8084
8085 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8086
8087 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8088 __sbrk): Do not set attribute_hidden.
8089 * sysdeps/mach/hurd/not-errno.h: New file.
8090 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8091 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8092
8093 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8094
8095 * po/uk.po: Update translations.
8096 * po/cs.po: Likewise.
8097 * po/pl.po: Likewise.
8098
8099 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8100
8101 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8102 parse beyond the note end.
8103
8104 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8105
8106 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8107 kernel does not support OFD locks.
8108 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8109
8110 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8111
8112 * sysdeps/mach/hurd/Versions (libc): Make __access and
8113 __access_noerrno external so they can override the ld symbols.
8114 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8115 __writev, __open64, __access_noerrno extern so they can be overrided.
8116 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8117 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8118
8119 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8120
8121 * po/libc.pot: Regenerate.
8122
8123 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8124
8125 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8126
8127 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8128
8129 [BZ #23459]
8130 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8131 function.
8132 (init_cpu_features): Call get_extended_indices for both Intel
8133 and AMD CPUs.
8134 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8135 Remove "for AMD" comment.
8136
8137 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8138
8139 [BZ # 23456]
8140 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8141 COMMON_CPUID_INDEX_80000001.
8142
8143 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8144
8145 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8146 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8147
8148 2018-07-26 Florian Weimer <fweimer@redhat.com>
8149
8150 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8151 aliases for symbols not in the implementation namespace.
8152
8153 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8154
8155 [BZ #23393]
8156 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8157 lowercase in LATIN script.
8158 * localedata/Makefile (test-input): Add en_US.UTF-8.
8159 * localedata/en_US.UTF-8.in: New file.
8160 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8161 and restore old tests.
8162 * posix/tst-regexloc.c (do_test): Add back range expression test.
8163
8164 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8165
8166 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8167
8168 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8169
8170 * nptl/threads.h: Move to ...
8171 * sysdeps/nptl/threads.h: ... here.
8172 * sysdeps/hurd/stdc-predef.h: New file.
8173
8174 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8175
8176 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8177 tst-cet-setcontext-1 if CET is enabled.
8178 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8179 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8180
8181 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8182
8183 * include/threads.h: Move to ...
8184 * sysdeps/nptl/threads.h: ... here.
8185 * sysdeps/htl/threads.h: New file.
8186 * conform/Makefile (linknamespace-libs-ISO11): Use
8187 static-thread-library instead of linking libpthread.
8188 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8189
8190 2018-07-25 Florian Weimer <fweimer@redhat.com>
8191
8192 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8193 nanoseconds into seconds.
8194 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8195 (do_test): Likewise.
8196 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8197 (do_test): Likewise. Avoid nanosecond overflow and spurious
8198 timeouts due to system load.
8199 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8200 (child_wait): Increment it.
8201 (do_test): Wait as long as necessary until all expected threads
8202 have arrived.
8203
8204 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8205 H.J. Lu <hongjiu.lu@intel.com>
8206
8207 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8208 __ssp.
8209 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8210 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8211 (__push___start_context): New.
8212 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8213 <asm/prctl.h>.
8214 (__getcontext): Record the current shadow stack base. Save the
8215 caller's shadow stack pointer and base.
8216 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8217 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8218 (__push___start_context): New prototype.
8219 (__makecontext): Call __push___start_context to allocate a new
8220 shadow stack, push __start_context onto the new stack as well
8221 as the new shadow stack.
8222 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8223 <asm/prctl.h>.
8224 (__setcontext): Restore the target shadow stack.
8225 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8226 <asm/prctl.h>.
8227 (__swapcontext): Record the current shadow stack base. Save
8228 the caller's shadow stack pointer and base. Restore the target
8229 shadow stack.
8230 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8231 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8232 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8233
8234 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8235
8236 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8237 tst-setcontext8 and tst-setcontext9.
8238 * stdlib/tst-setcontext6.c: New file.
8239 * stdlib/tst-setcontext7.c: Likewise.
8240 * stdlib/tst-setcontext8.c: Likewise.
8241 * stdlib/tst-setcontext9.c: Likewise.
8242
8243 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8244
8245 * stdlib/Makefile ((tests): Add tst-setcontext5.
8246 * stdlib/tst-setcontext5.c: New file.
8247
8248 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8249
8250 * stdlib/Makefile (tests): Add tst-setcontext4.
8251 * stdlib/tst-setcontext4.c: New file.
8252
8253 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8254
8255 * stdlib/Makefile (tests): Add tst-swapcontext1.
8256 * stdlib/tst-swapcontext1.c: New test.
8257
8258 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8259
8260 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8261 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8262 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8263 and tst-cet-legacy-4c.
8264 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8265 and tst-cet-legacy-mod-4.
8266 (CFLAGS-tst-cet-legacy-2.c): New.
8267 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8268 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8269 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8270 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8271 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8272 ($(objpfx)tst-cet-legacy-1): Likewise.
8273 ($(objpfx)tst-cet-legacy-2): Likewise.
8274 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8275 ($(objpfx)tst-cet-legacy-2a): Likewise.
8276 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8277 ($(objpfx)tst-cet-legacy-4): Likewise.
8278 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8279 ($(objpfx)tst-cet-legacy-4a): Likewise.
8280 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8281 (tst-cet-legacy-4a-ENV): Likewise.
8282 ($(objpfx)tst-cet-legacy-4b): Likewise.
8283 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8284 (tst-cet-legacy-4b-ENV): Likewise.
8285 ($(objpfx)tst-cet-legacy-4c): Likewise.
8286 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8287 (tst-cet-legacy-4c-ENV): Likewise.
8288 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8289 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8290 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8291 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8292 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8293 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8294 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8295 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8296 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8297 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8298 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8299
8300 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8301
8302 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8303 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8304 with ssp_base.
8305 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8306 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8307 with ssp_base.
8308
8309 2018-07-25 Andreas Schwab <schwab@suse.de>
8310
8311 [BZ #23442]
8312 * locale/weightwc.h (findidx): Handle the case where usrc is a
8313 prefix of cp but one character too short.
8314
8315 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8316
8317 * NEWS: Add ISO C threads addition.
8318
8319 2018-07-24 Florian Weimer <fweimer@redhat.com>
8320
8321 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8322 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8323 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8324 4.13.
8325
8326 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8327
8328 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8329 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8330 <sys/prctl.h> and <asm/prctl.h>.
8331 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8332 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8333 and <asm/prctl.h>.
8334 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8335 ARCH_CET_LEGACY_BITMAP.
8336 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8337 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8338 * sysdeps/x86/libc-start.c: Include <startup.h>.
8339
8340 2018-07-24 Florian Weimer <fweimer@redhat.com>
8341
8342 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8343 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8344
8345 2018-07-24 Rical Jasan <rj@2c3t.io>
8346 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8347 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8348
8349 [BZ #14092]
8350 * manual/debug.texi: Update adjacent chapter name.
8351 * manual/probes.texi: Likewise.
8352 * manual/threads.texi (ISO C Threads): New section.
8353 (POSIX Threads): Convert to a section.
8354
8355 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8356 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8357
8358 [BZ# 14092]
8359 * nptl/Makefile (tests): Add new test files.
8360 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8361 * nptl/tst-cnd-basic.c: Likewise.
8362 * nptl/tst-cnd-broadcast.c: Likewise.
8363 * nptl/tst-cnd-timedwait.c: Likewise.
8364 * nptl/tst-mtx-basic.c: Likewise.
8365 * nptl/tst-mtx-recursive.c: Likewise.
8366 * nptl/tst-mtx-timedlock.c: Likewise.
8367 * nptl/tst-mtx-trylock.c: Likewise.
8368 * nptl/tst-thrd-basic.c: Likewise.
8369 * nptl/tst-thrd-detach.c: Likewise.
8370 * nptl/tst-thrd-sleep.c: Likewise.
8371 * nptl/tst-tss-basic.c: Likewise.
8372
8373 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8374
8375 [BZ #14092]
8376 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8377 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8378 symbols.
8379 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8380 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8381 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8382 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8383 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8388 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8389 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8390 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8392 Likewise.
8393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8394 Likewise.
8395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8396 Likewise.
8397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8398 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8403 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8404 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8405 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8406 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8407 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8408 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8409 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8410 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8411 Likewise.
8412 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8413 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8414 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8415 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8416 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8417 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8418 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8419 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8420 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8421 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8422 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8423 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8424 ikewise.
8425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8427 Likewise.
8428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8429 Likewise.
8430 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8431 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8432 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8433 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8434 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8435 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8436 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8437 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8438
8439 [BZ #14092]
8440 * conform/data/threads.h-data (thread_local): New macro.
8441 (TSS_DTOR_ITERATIONS): Likewise.
8442 (tss_t): New type.
8443 (tss_dtor_t): Likewise.
8444 (tss_create): New function.
8445 (tss_get): Likewise.
8446 (tss_set): Likewise.
8447 (tss_delete): Likewise.
8448 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8449 tss_get, and tss_set objects.
8450 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8451 * nptl/tss_create.c: New file.
8452 * nptl/tss_delete.c: Likewise.
8453 * nptl/tss_get.c: Likewise.
8454 * nptl/tss_set.c: Likewise.
8455 * sysdeps/nptl/threads.h (thread_local): New define.
8456 (TSS_DTOR_ITERATIONS): Likewise.
8457 (tss_t): New typedef.
8458 (tss_dtor_t): Likewise.
8459 (tss_create): New prototype.
8460 (tss_get): Likewise.
8461 (tss_set): Likewise.
8462 (tss_delete): Likewise.
8463
8464 [BZ #14092]
8465 * conform/data/threads.h-data (cnd_t): New type.
8466 (cnd_init): New function.
8467 (cnd_signal): Likewise.
8468 (cnd_broadcast): Likewise.
8469 (cnd_wait): Likewise.
8470 (cnd_timedwait): Likewise.
8471 (cnd_destroy): Likewise.
8472 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8473 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8474 object.
8475 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8476 * nptl/cnd_broadcast.c: New file.
8477 * nptl/cnd_destroy.c: Likewise.
8478 * nptl/cnd_init.c: Likewise.
8479 * nptl/cnd_signal.c: Likewise.
8480 * nptl/cnd_timedwait.c: Likewise.
8481 * nptl/cnd_wait.c: Likewise.
8482 * sysdeps/nptl/threads.h (cnd_t): New type.
8483 (cnd_init): New prototype.
8484 (cnd_signa): Likewise.
8485 (cnd_broadcast): Likewise.
8486 (cnd_wait): Likewise.
8487 (cnd_timedwait): Likewise.
8488 (cnd_destroy): Likewise.
8489
8490 [BZ #14092]
8491 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8492 (once_flag): New type.
8493 (call_once): New function.
8494 * nptl/Makefile (libpthread-routines): Add call_once object.
8495 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8496 * nptl/call_once.c: New file.
8497 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8498 (once_flag): New type.
8499 (call_once): New prototype.
8500
8501 [BZ #14092]
8502 * conform/data/threads.h-data (mtx_plain): New constant.
8503 (mtx_recursive): Likewise.
8504 (mtx_timed): Likewise.
8505 (mtx_t): New type.
8506 (mtx_init): New function.
8507 (mtx_lock): Likewise.
8508 (mtx_timedlock): Likewise.
8509 (mtx_trylock): Likewise.
8510 (mtx_unlock): Likewise.
8511 (mtx_destroy): Likewise.
8512 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8513 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8514 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8515 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8516 * nptl/mtx_destroy.c: New file.
8517 * nptl/mtx_init.c: Likewise.
8518 * nptl/mtx_lock.c: Likewise.
8519 * nptl/mtx_timedlock.c: Likewise.
8520 * nptl/mtx_trylock.c: Likewise.
8521 * nptl/mtx_unlock.c: Likewise.
8522 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8523 (mtx_recursive): Likewise.
8524 (mtx_timed): Likewise.
8525 (mtx_t): New type.
8526 (mtx_init): New prototype.
8527 (mtx_lock): Likewise.
8528 (mtx_timedlock): Likewise.
8529 (mtx_trylock): Likewise.
8530 (mtx_unlock): Likewise.
8531 (mtx_destroy): Likewise.
8532
8533 [BZ #14092]
8534 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8535 (linknamespace-libs-ISO11): Add libpthread.a.
8536 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8537 functions.
8538 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8539 * nptl/Makefile (headers): Add threads.h.
8540 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8541 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8542 thrd_yield.
8543 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8544 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8545 thrd_join, thrd_sleep, and thrd_yield symbols.
8546 * nptl/descr.h (struct pthread): Add c11 field.
8547 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8548 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8549 routine with expected function prototype.
8550 (__pthread_create_2_1): Add C11 threads check based on attribute
8551 value.
8552 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8553 * nptl/thrd_create.c: New file.
8554 * nptl/thrd_current.c: Likewise.
8555 * nptl/thrd_detach.c: Likewise.
8556 * nptl/thrd_equal.c: Likewise.
8557 * nptl/thrd_exit.c: Likewise.
8558 * nptl/thrd_join.c: Likewise.
8559 * nptl/thrd_priv.h: Likewise.
8560 * nptl/thrd_sleep.c: Likewise.
8561 * nptl/thrd_yield.c: Likewise.
8562 * include/threads.h: Likewise.
8563
8564 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8565
8566 * bits/indirect-return.h: New file.
8567 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8568 * sysdeps/x86/bits/indirect-return.h: Likewise.
8569 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8570 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8571 (swapcontext): Add __INDIRECT_RETURN.
8572 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8573 (prepare_test_buffer): Use it.
8574
8575 2018-07-24 Andreas Schwab <schwab@suse.de>
8576
8577 [BZ #23448]
8578 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8579 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8580
8581 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8582
8583 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8584 Redefine if shadow stack is enabled.
8585 (SYSCALL_ERROR_LABEL): Likewise.
8586 (__vfork): Pop shadow stack and jump back to to caller directly
8587 when shadow stack is in use.
8588 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8589 Redefine if shadow stack is enabled.
8590 (SYSCALL_ERROR_LABEL): Likewise.
8591 (__vfork): Pop shadow stack and jump back to to caller directly
8592 when shadow stack is in use.
8593
8594 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8595
8596 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8597 enabled.
8598 (foo): Likewise.
8599 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8600 (foo): Likewise.
8601
8602 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8603
8604 * scripts/build-many-glibcs.py (Context.checkout): Default
8605 binutils version to 2.31 branch.
8606
8607 2018-07-20 Zong Li <zong@andestech.com>
8608
8609 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8610 URL of gcc's tarball.
8611
8612 2018-07-20 Florian Weimer <fweimer@redhat.com>
8613
8614 [BZ #23396]
8615 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8616 not compare an extra byte after the end of the weights.
8617
8618 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8619
8620 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8621 to 1.
8622 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8623 hidden prototypes.
8624 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8625 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8626 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8627 list of libraries whose stack executability is expected.
8628 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8629 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8630 variable.
8631 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8632 libc.so libpthread.so.
8633
8634 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8635
8636 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8637 SOCK_NONBLOCK.
8638 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8639 and SOCK_NONBLOCK.
8640 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8641 implement __pipe2.
8642 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8643
8644 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8645
8646 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8647 library to improve command line parsing.
8648 (__main__): make schema file as optional parameter (--schema),
8649 defaulting to benchtests/scripts/benchout.schema.json.
8650 (main): move out of the parsing stuff to __main_  and leave it
8651 only as caller of main comparison functions.
8652
8653 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8654
8655 * NEWS: Add a note for Intel CET status.
8656 * manual/install.texi: Likewise.
8657 * INSTALL: Regenerated.
8658
8659 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8660
8661 [BZ #23140]
8662 * localedata/locales/oc_FR (mon): Rename to...
8663 (alt_mon): This, then update October (typo fix).
8664 (mon): New content (genitive case, month names preceded by
8665 "de" or "d’").
8666
8667 [BZ #23422]
8668 * localedata/locales/oc_FR (abday): Update all items.
8669 (day): Update Wednesday and Saturday (typo fixes).
8670 (abmon): Update all items, except May.
8671 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8672 (LC_IDENTIFICATION): Bump the revision number and date.
8673 Keep the "category" entries in alphabetic order.
8674 (LC_ADDRESS): Remove no longer needed comment.
8675 (LC_COLLATE): Use “copy "ca_ES"”.
8676 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8677 "name_mrs".
8678
8679 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8680
8681 * grp/tst_fgetgrent.c: Include <unistd.h>.
8682 (main): Use mkstemp instead of tmpnam.
8683 * io/test-utime.c (main): Likewise.
8684 * posix/annexc.c (macrofile): Change to modifiable array.
8685 (main): Remove macrofile here.
8686 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8687 macrofile here.
8688 (check_header): Do not remove macrofile here.
8689 * posix/bug-getopt1.c: Include <stdlib.h>.
8690 (do_test): Use mkstemp instead of tmpnam.
8691 * posix/bug-getopt2.c: Include <stdlib.h>.
8692 (do_test): Use mkstemp instead of tmpnam.
8693 * posix/bug-getopt3.c: Include <stdlib.h>.
8694 (do_test): Use mkstemp instead of tmpnam.
8695 * posix/bug-getopt4.c: Include <stdlib.h>.
8696 (do_test): Use mkstemp instead of tmpnam.
8697 * posix/bug-getopt5.c: Include <stdlib.h>.
8698 (do_test): Use mkstemp instead of tmpnam.
8699 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8700 (main): Use mkstemp instead of tmpnam.
8701 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8702 (main): Use mkstemp instead of tmpnam.
8703 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8704 (main): use mkstemp instead of tmpnam.
8705 * stdlib/isomac.c (macrofile): Change to modifiable array.
8706 (main): Remove macrofile here.
8707 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8708 macrofile here.
8709 (check_header): Do not remove macrofile here.
8710
8711 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8712
8713 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8714 glibc.tune.x86_shstk.
8715
8716 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8717
8718 * NEWS: Mention --enable-cet.
8719 * manual/install.texi: Document --enable-cet.
8720 * INSTALL: Regenerated.
8721
8722 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8723
8724 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8725 Add _CET_NOTRACK before indirect jump to jump table.
8726
8727 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8728
8729 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8730 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8731 to jump table.
8732
8733 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8734
8735 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8736 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8737 to jump table.
8738
8739 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8740
8741 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8742 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8743 to jump table.
8744
8745 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8748 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8749 to jump table.
8750
8751 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8752
8753 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8754 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8755 to jump table.
8756 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8757
8758 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8759
8760 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8761 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8762 to jump table.
8763
8764 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8765
8766 * sysdeps/i386/i686/multiarch/memset-sse2.S
8767 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8768 to jump table.
8769
8770 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8771
8772 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8773 indirect jump to jump table.
8774
8775 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8776
8777 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8778 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8779 to jump table.
8780 (MEMCPY): Likewise.
8781
8782 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8783
8784 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8785 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8786 to jump table.
8787 (MEMCPY): Likewise.
8788
8789 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8790
8791 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8792 _CET_NOTRACK before indirect jump to jump table.
8793
8794 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8795
8796 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8797 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8798 to jump table.
8799
8800 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8801
8802 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8803 indirect jump to jump table.
8804
8805 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8806
8807 [BZ #22241]
8808 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8809 (LOCALES): Likewise.
8810 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8811 * localedata/locales/sah_RU: New file.
8812 * localedata/sah_RU.UTF-8.in: New file.
8813
8814 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8815
8816 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8817 "sysdep.h".
8818 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8819 _CET_ENDBR to indirect jump targets and adjust jump destination
8820 for _CET_ENDBR.
8821 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8822 "sysdep.h".
8823 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8824 _CET_ENDBR to indirect jump targets and adjust jump destination
8825 for _CET_ENDBR.
8826 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8827 "sysdep.h".
8828 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8829 _CET_ENDBR to indirect jump targets and adjust jump destination
8830 for _CET_ENDBR.
8831
8832 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8833
8834 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8835 _CET_ENDBR.
8836
8837 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8838
8839 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8840 _CET_ENDBR.
8841 (_dl_tlsdesc_undefweak): Likewise.
8842 (_dl_tlsdesc_dynamic): Likewise.
8843 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8844 (_dl_tlsdesc_resolve_rel): Likewise.
8845 (_dl_tlsdesc_resolve_rela): Likewise.
8846 (_dl_tlsdesc_resolve_hold): Likewise.
8847 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8848 (_dl_tlsdesc_undefweak): Likewise.
8849 (_dl_tlsdesc_dynamic): Likewise.
8850 (_dl_tlsdesc_resolve_rela): Likewise.
8851 (_dl_tlsdesc_resolve_hold): Likewise.
8852
8853 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8856 (_fini): Likewise.
8857 * sysdeps/x86_64/crti.S (_init): Likewise.
8858 (_fini): Likewise.
8859
8860 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8861
8862 [BZ #23140]
8863 * localedata/locales/os_RU (mon): Rename to...
8864 (alt_mon): This.
8865 (mon): Import from CLDR (genitive case).
8866
8867 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8868
8869 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8870 cet-tunables.h> when CET is enabled.
8871
8872 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8873
8874 [BZ #21598]
8875 * configure.ac: Add --enable-cet.
8876 * configure: Regenerated.
8877 * elf/Makefille (all-built-dso): Add a comment.
8878 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8879 Include <dl-prop.h>.
8880 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8881 segment.
8882 * elf/dl-open.c: Include <dl-prop.h>.
8883 (dl_open_worker): Call _dl_open_check.
8884 * elf/rtld.c: Include <dl-prop.h>.
8885 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8886 _rtld_main_check.
8887 * sysdeps/generic/dl-prop.h: New file.
8888 * sysdeps/i386/dl-cet.c: Likewise.
8889 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8890 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8891 * sysdeps/x86/cet-tunables.h: Likewise.
8892 * sysdeps/x86/check-cet.awk: Likewise.
8893 * sysdeps/x86/configure: Likewise.
8894 * sysdeps/x86/configure.ac: Likewise.
8895 * sysdeps/x86/dl-cet.c: Likewise.
8896 * sysdeps/x86/dl-procruntime.c: Likewise.
8897 * sysdeps/x86/dl-prop.h: Likewise.
8898 * sysdeps/x86/libc-start.h: Likewise.
8899 * sysdeps/x86/link_map.h: Likewise.
8900 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8901 _CET_ENDBR.
8902 (_dl_runtime_profile): Likewise.
8903 (_dl_runtime_resolve_shstk): New.
8904 (_dl_runtime_profile_shstk): Likewise.
8905 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8906 if CET is enabled.
8907 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8908 (CFLAGS-.os): Likewise.
8909 (CFLAGS-.op): Likewise.
8910 (CFLAGS-.oS): Likewise.
8911 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8912 is enabled.
8913 (tests-special): Add $(objpfx)check-cet.out.
8914 (cet-built-dso): New.
8915 (+$(cet-built-dso:=.note)): Likewise.
8916 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8917 ($(objpfx)check-cet.out): New.
8918 (generated): Add check-cet.out.
8919 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8920 <cet-tunables.h>.
8921 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8922 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8923 (init_cpu_features): Call get_cet_status to check CET status
8924 and update dl_x86_feature_1 with CET status. Call
8925 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8926 (set_x86_shstk). Disable and lock CET in libc.a.
8927 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8928 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8929 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8930 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8931 (_CET_ENDBR): Define if not defined.
8932 (ENTRY): Add _CET_ENDBR.
8933 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8934 x86_shstk.
8935 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8936 _CET_ENDBR.
8937 (_dl_runtime_profile): Likewise.
8938
8939 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8940
8941 [BZ #21895]
8942 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8943 restore r2 on longjmp.
8944 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8945 test list.
8946 Added rules to build test tst-setjmp-bug21895-static.
8947 Added module setjmp-bug21895 and rules to build a shared object from it.
8948 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8949 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8950
8951 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8952
8953 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8954 * benchtests/bench-strstr.c: Likewise.
8955 * string/memmem.c (FASTSEARCH): Define.
8956 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8957 Add support for FASTSEARCH.
8958 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8959 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8960 (FASTSEARCH): Define.
8961 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8962 * string/test-strstr.c: Likewise.
8963
8964 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8965
8966 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8967 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8968
8969 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8970 H.J. Lu <hongjiu.lu@intel.com>
8971
8972 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8973 (__longjmp): Restore shadow stack pointer if shadow stack is
8974 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8975 isn't defined for __longjmp_cancel.
8976 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8977 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8978 and SHADOW_STACK_POINTER_OFFSET is defined.
8979 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8980 (setjmp): Save shadow stack pointer if shadow stack is enabled
8981 and SHADOW_STACK_POINTER_OFFSET is defined.
8982 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8983 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8984 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8985 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8986 <jmp_buf-ssp.h>.
8987 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8988 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8989 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8990 Remove jmp_buf-ssp.sym.
8991 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8992 <jmp_buf-ssp.h>.
8993 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8994 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8995 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8996 jmp_buf-ssp.sym.
8997 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8998 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8999 (__longjmp): Restore shadow stack pointer if shadow stack is
9000 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9001 isn't defined for __longjmp_cancel.
9002 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9003 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9004 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9005
9006 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9007
9008 [BZ #22563]
9009 * nptl/pthread_create.c: Include <tls-setup.h>.
9010 (__pthread_create_2_1): Call tls_setup_tcbhead.
9011 * sysdeps/generic/tls-setup.h: New file.
9012 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9013 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9014 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9015 Likewise.
9016 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9017 to feature_1.
9018 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9019 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9020 (X86_FEATURE_1_SHSTK): Likewise.
9021 (CET_ENABLED): Likewise.
9022 (IBT_ENABLED): Likewise.
9023 (SHSTK_ENABLED): Likewise.
9024
9025 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9026
9027 [BZ #23208]
9028 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9029 (LOCALES): Likewise.
9030 * localedata/dsb_DE.UTF-8.in: New file.
9031 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9032
9033 2018-07-12 Florian Weimer <fweimer@redhat.com>
9034
9035 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9036 __mprotect, not mprotect.
9037
9038 2018-07-11 Florian Weimer <fweimer@redhat.com>
9039
9040 * io/Makefile (headers): Add bits/statx.h.
9041
9042 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9043
9044 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9045 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9046 and headers.
9047 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9048 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9049 for utf8_gen.py
9050
9051 2018-07-10 Florian Weimer <fweimer@redhat.com>
9052
9053 * io/Makefile (routines): Add statx.
9054 (tests-internal): Add tst-statx.
9055 * io/Versions (GLIBC_2.28): Export statx.
9056 * io/bits/statx.h: New file.
9057 * io/sys/stat.h [__USE_GNU]: Include it.
9058 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9059 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9060 Define.
9061 * io/statx.c: New file.
9062 * io/statx_generic.: Likewise.
9063 * io/tst-statx.: Likewise.
9064 * include/bits/statx.h: Likewise.
9065 * sysdeps/unix/sysv/linux/kernel-features.h
9066 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9067 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9068 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9069 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9070 Undefine.
9071 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9072 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9073 * sysdeps/unix/sysv/linux/statx.c: New file.
9074 * manual/filesys.texi: Note that statx is undocumented.
9075 * sysdeps/**/libc*.abilist: Update.
9076
9077 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9078
9079 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9080 a kernel issue which lead to test failure in some cases.
9081
9082 2018-07-10 Florian Weimer <fweimer@redhat.com>
9083
9084 [BZ #23036]
9085 * posix/regexec.c (check_node_accept_bytes): When comparing
9086 weights, do not compare an extra byte after the end of the
9087 weights.
9088
9089 2018-07-10 Florian Weimer <fweimer@redhat.com>
9090
9091 * libio/readline.c: Fix copyright year.
9092 * libio/tst-readline.c Likewise.
9093 * nss/tst-nss-files-hosts-getent.c: Likewise.
9094
9095 2018-07-06 Florian Weimer <fweimer@redhat.com>
9096
9097 [BZ #18991]
9098 * nss/nss_files/files-XXX.c (internal_getent): Use
9099 __libc_readline_unlocked. Seek back to the start of the line if
9100 parsing failes with ERANGE.
9101 (get_contents_ret, get_contents): Remove.
9102 * nss/tst-nss-files-hosts-getent.c: New file.
9103 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9104 (tst-nss-files-hosts-getent): Link with -ldl.
9105
9106 2018-07-06 Florian Weimer <fweimer@redhat.com>
9107
9108 * include/stdio.h (__libc_readline_unlocked): Declare.
9109 (__ftello64, __fseeko64): Declare aliases.
9110 * libio/readline.c: New file.
9111 * libio/tst-readline.c: Likewise.
9112 (routines): Add readline.
9113 (tests-internal): Add tst-readlime.
9114 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9115 __libc_readline_unlocked.
9116 * libio/fseeko.c (__fseeko): Rename from fseeko.
9117 (fseeko): Add alias.
9118 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9119 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9120 (fseeko64): Add alias.
9121 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9122 * libio/ftello64.c (__ftello64): Rename from ftello64.
9123 (ftello64): Add alias.
9124
9125 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9126
9127 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9128 HWCAP_ATOMICS.
9129
9130 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9131
9132 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9133 Use dl_hwcap without masking.
9134 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9135 Remove HWCAP_CPUID.
9136
9137 2018-07-06 Florian Weimer <fweimer@redhat.com>
9138
9139 * conform/conformtest.pl (checknamespace): Escape literal braces
9140 in regular expressions.
9141
9142 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9143
9144 * sysdeps/x86/cpu-features.c (get_common_indeces):
9145 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9146 * sysdeps/x86/cpu-features.c (init_cpu_features):
9147 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9148
9149 2018-07-05 Florian Weimer <fweimer@redhat.com>
9150
9151 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9152 protector.
9153 (CFLAGS-elf-init.oS): Likewise.
9154
9155 2018-07-05 Florian Weimer <fweimer@redhat.com>
9156 Carlos O'Donell <carlos@redhat.com>
9157
9158 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9159 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9160 with stack protector enabled because there is no risk of infinite
9161 recursion.
9162
9163 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9164
9165 [BZ #19818]
9166 [BZ #23307]
9167 * libc-abis (ABSOLUTE): New ABI.
9168 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9169 * NEWS: Mention the new ABI.
9170
9171 2018-07-05 Florian Weimer <fweimer@redhat.com>
9172
9173 [BZ # 17662]
9174 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9175 (RENAME_WHITEOUT): Define.
9176 [__USE_GNU] (renameat2): Declare.
9177 * stdio-common/Makefile (routines): Add renameat2.
9178 (tests): Add tst-renameat2.
9179 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9180 * stdio-common/renameat2.c: New file.
9181 * stdio-common/tst-renameat2.c: Likewise.
9182 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9183 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9184 undocumented.
9185 * sysdeps/unix/sysv/linux/kernel-features.h
9186 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9187 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9188 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9189 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9190 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9191 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9192 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9193 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9194 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9195 * include/stdio.h (__renameat): Add alias for renameat.
9196 * stdio-common/renameat.c (__renameat): Rename from renameat.
9197 Add hidden definition and alias.
9198 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9199 * sysdeps/mach/hurd/renameat.c: Likewise.
9200 * sysdeps/**/libc*.abilist: Add renameat2.
9201
9202 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9203
9204 * posix/bug-regex33.c: Fix build after regex sync.
9205
9206 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9207
9208 [BZ #23164]
9209 * localedata/tst-langinfo-setlocale.c: New file.
9210 * localedata/tst-langinfo-setlocale-static.c: New file.
9211 * localedata/tst-langinfo-newlocale.c: New file.
9212 * localedata/tst-langinfo-newlocale-static.c: New file.
9213 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9214 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9215 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9216 (tests-static): Remove tst-langinfo-static. Add
9217 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9218 (tests-special): Remove $(objpfx)tst-langinfo.out,
9219 $(objpfx)tst-langinfo-static.out. Add
9220 $(objpfx)tst-langinfo-setlocale.out,
9221 $(objpfx)tst-langinfo-newlocale.out,
9222 $(objpfx)tst-langinfo-setlocale-static.out,
9223 $(objpfx)tst-langinfo-newlocale-static.out.
9224 ($(objpfx)tst-langinfo.out): Remove.
9225 ($(objpfx)tst-langinfo-static.out): Remove.
9226 ($(objpfx)tst-langinfo-newlocale.out): New target.
9227 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9228 (test-xfail-tst-langinfo-newlocale-static): Add.
9229 ($(objpfx)tst-langinfo-setlocale.out): New target.
9230 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9231 * localedata/tst-langinfo.c: Call test_locale.
9232 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9233 data.
9234
9235 2018-07-04 Florian Weimer <fweimer@redhat.com>
9236
9237 testrun.sh: Implement --tool=strace, --tool=valgrind
9238 * Makefile (testrun-script): Define variable.
9239 (testrun.sh): Use variable.
9240 * manual/install.texi (Tools for Compilation): make 4.0 or later
9241 is required.
9242 * configure.ac: Check for make 4.0 or later.
9243 * INSTALL: Regenerate.
9244 * configure: Likewise.
9245
9246 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9247
9248 [BZ #23233]
9249 [BZ #21163]
9250 [BZ #18986]
9251 [BZ #13762]
9252 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9253 * posix/PCRE.tests: Remove invalid test.
9254 * posix/bug-regex28.c: Fix expected values for used syntax.
9255 * posix/bug-regex37.c: New file.
9256 * posix/bug-regex38.c: Likewise.
9257 * posix/regcomp.c: Sync with gnulib.
9258 * posix/regex.c: Likewise.
9259 * posix/regex.h: Likewise.
9260 * posix/regex_internal.c: Likewise.
9261 * posix/regex_internal.h: Likewise.
9262 * posix/regexec.c: Likewise.
9263
9264 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9265
9266 [BZ #23308]
9267 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9268 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9269 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9270 * localedata/unicode-gen/PropList.txt: likewise.
9271 * localedata/unicode-gen/UnicodeData.txt: likewise.
9272 * localedata/charmaps/UTF-8: Regenerate.
9273 * localedata/locales/i18n_ctype: likewise.
9274 * localedata/locales/tr_TR: likewise.
9275 * localedata/locales/translit_circle: likewise.
9276 * localedata/locales/translit_cjk_compat: likewise.
9277 * localedata/locales/translit_combining: likewise.
9278 * localedata/locales/translit_compat: likewise.
9279 * localedata/locales/translit_font: likewise.
9280 * localedata/locales/translit_fraction: likewise.
9281
9282 2018-07-03 Florian Weimer <fweimer@redhat.com>
9283
9284 [BZ #23363]
9285 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9286 * stdio-common/tst-printf.sh: Adjust expected output.
9287 * LICENSES: Update.
9288
9289 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9290
9291 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9292 symbol.
9293
9294 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9295
9296 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9297 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9298 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9299 * stdio-common/tst-printfsz-islongdouble.c: New file.
9300 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9301 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9302 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9303 [subdir == stdio-common] (tests-internal): Add
9304 test-printf-size-ieee128, and test-printf-size-ibm128.
9305 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9306 (CFLAGS-test-printf-size-ibm128.c): New variables.
9307 [subdir == stdio-common] (tests-special): Add
9308 $(objpfx)test-printf-size-ieee128.out and
9309 $(objpfx)test-printf-size-ibm128.out.
9310 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9311 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9312 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9313 __printf_sizeieee128.
9314 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9315 New file.
9316 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9317 Likewise.
9318 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9319 Likewise.
9320
9321 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9322
9323 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9324 (exp2f_inline): Likewise.
9325 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9326 (__math_uflowf): Likewise.
9327 (__math_may_uflowf): Likewise.
9328 (__math_divzerof): Likewise.
9329 (__math_invalidf): Likewise.
9330 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9331 (__math_oflowf): Likewise.
9332 (__math_uflowf): Likewise.
9333 (__math_may_uflowf): Likewise.
9334 (__math_divzerof): Likewise.
9335 (__math_invalidf): Likewise.
9336
9337 2018-06-29 DJ Delorie <dj@redhat.com>
9338 Carlos O'Donell <carlos@redhat.com>
9339
9340 [BZ #23329]
9341 * include/libc-symbols.h: Comment the freeres framework.
9342 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9343 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9344 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9345 * dlfcn/dlerror.c: Include libc-symbols.h
9346 (__dlerror_main_freeres): New function.
9347 * dlfcn/dlfreeres.c: New file.
9348 * dlfcn/sdlfreeres.c: New file.
9349 * include/dlfcn.h: Declare __dlerror_main_freeres.
9350 * malloc/set-freeres.c: Declare __libdl_freeres, and
9351 __libpthread_freeres.
9352 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9353 the releavant libraries are loaded.
9354 * malloc/thread-freeres.c: Add comments.
9355 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9356 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9357 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9358 (__free_stacks): Rename to...
9359 (free_stacks): ...this. Mark static.
9360 (queue_stack): Call free_stacks.
9361 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9362 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9363 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9364 ptr_freeres element from struct.
9365 (pthread_functions): Remove .ptr_freeres from struct initializer.
9366 [SHARED] (nptl_freeres): Remove.
9367 * nptl/nptlfreeres.c: New file.
9368 * nptl/pthreadP.h
9369 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9370 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9371 attribute_hidden.
9372 (__free_stacks): Rename to...
9373 (__nptl_stacks_freeres): ...this.
9374 (__shm_directory_freeres): Declare.
9375 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9376 (__nptl_unwind_freeres): ...this.
9377 * resolv/res-close.c: Add comment.
9378 * resolv/resolv_conf.c: Include libc-symbols.h.
9379 * string/strerror_l.c: Include libc-symbols.h.
9380 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9381 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9382 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9383 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9384
9385 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9386
9387 * stdlib/tst-strfmon_l.c: Add tests for long double.
9388
9389 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9390
9391 [BZ #23208]
9392 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9393 * localedata/locales/dsb_DE: New file.
9394
9395 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9396
9397 [BZ #23140]
9398 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9399 genitive case).
9400 (alt_mon): New entry, import from CLDR (nominative case).
9401
9402 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9403
9404 [BZ #22996]
9405 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9406
9407 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9408
9409 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9410 Use vector registers.
9411
9412 * sysdeps/aarch64/multiarch/memmove_falkor.S
9413 (__memcpy_falkor): Use vector registers.
9414
9415 2018-06-29 Martin Sebor <msebor@redhat.com>
9416
9417 * manual/stdio.texi (Customizing Printf): Mention interaction
9418 with GCC built-ins.
9419
9420 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9421
9422 [BZ #23307]
9423 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9424 `st_value' is 0 if `st_shndx' is SHN_ABS.
9425 * elf/tst-absolute-zero.c: New file.
9426 * elf/tst-absolute-zero-lib.c: New file.
9427 * elf/tst-absolute-zero-lib.lds: New file.
9428 * elf/Makefile (tests): Add `tst-absolute-zero'.
9429 (modules-names): Add `tst-absolute-zero-lib'.
9430 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9431 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9432 ($(objpfx)tst-absolute-zero: New dependency.
9433
9434 2018-06-29 Zack Weinberg <zackw@panix.com>
9435
9436 * configure.ac: New command-line option --disable-crypt.
9437 Force --disable-nss-crypt when --disable-crypt is given, with a
9438 warning if it was explicitly enabled.
9439 * configure: Regenerate.
9440 * config.make.in: New boolean substitution variable $(build-crypt).
9441 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9442 when $(build-crypt).
9443 * manual/install.texi: Document --disable-crypt.
9444 * INSTALL: Regenerate.
9445
9446 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9447 which is never set.
9448 * conform/Makefile: Only include libcrypt.a in
9449 linknamespace-libs-xsi and linknamespace-libs-XPG4
9450 when $(build-crypt).
9451 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9452 USE_CRYPT to 1 when $(build-crypt).
9453 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9454 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9455 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9456
9457 2018-06-29 Zack Weinberg <zackw@panix.com>
9458
9459 * crypt/crypt.h, posix/unistd.h: Update comments and
9460 prototypes for crypt and crypt_r.
9461
9462 * manual/crypt.texi (Cryptographic Functions): New initial
9463 exposition.
9464 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9465 (Unpredictable Bytes): Improve initial exposition. Clarify error
9466 behavior of getentropy and getrandom.
9467 * manual/examples/genpass.c: Generate a salt using getentropy
9468 instead of the current time. Use hash $5$ (SHA-2-256).
9469 * manual/examples/testpass.c: Demonstrate validation against
9470 hashes generated with three different one-way functions.
9471
9472 * manual/intro.texi: crypt.texi does not need an overview
9473 anymore.
9474
9475 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9476 * manual/terminal.texi: Consistently refer to "passphrases"
9477 * instead of "passwords", and to the "user database" instead
9478 * of the "password database".
9479 * manual/users.texi: Similarly. Add notes about how actual
9480 passphrase hashes are now stored in the shadow database.
9481 Remove 20-year-old junk todo note.
9482
9483 2018-06-29 Zack Weinberg <zackw@panix.com>
9484
9485 * manual/crypt.texi: Use a normal top-level @node declaration.
9486 Move most of the introductory text to the 'crypt' section.
9487 Move the example programs below the @deftypefun for 'crypt_r'.
9488 Move the 'getpass' section...
9489 * manual/terminal.texi: ...here.
9490
9491 2018-06-29 Zack Weinberg <zackw@panix.com>
9492 Florian Weimer <fweimer@redhat.com>
9493
9494 * posix/unistd.h: Do not declare encrypt.
9495 (_XOPEN_CRYPT): Remove macro definition.
9496 (crypt): Declare only for _USE_MISC.
9497 * stdlib/stdlib.h: Do not declare setkey.
9498 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9499 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9500
9501 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9502 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9503 into compat symbols. Don't define initial_perm if it's not
9504 going to be used.
9505 * crypt/cert.c: Link explicitly with the expected versions for
9506 setkey and encrypt. If they are not available at all, mark
9507 the test as unsupported.
9508
9509 * sunrpc/des_crypt.c: Unconditionally block linkage with
9510 cbc_crypt and ecb_crypt for new binaries.
9511 * sunrpc/des_soft.c: Unconditionally block linkage with
9512 des_setparity for new binaries.
9513
9514 * manual/crypt.texi: Remove the entire "DES Encryption"
9515 section. Also remove the paragraph talking about FIPS 140-2
9516 from the introduction.
9517 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9518 of libgcrypt for "real" encryption, not DES.
9519 * manual/conf.texi (Constants for Sysconf): Mention that
9520 _XOPEN_CRYPT is no longer impelemented.
9521
9522 * conform/data/unistd.h-data: Remove crypt function declaration.
9523
9524 2018-06-29 Florian Weimer <fweimer@redhat.com>
9525
9526 [BZ #23351]
9527 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9528 (disallow_malloc_check): Remove variable.
9529 (__malloc_check_init): Adjust.
9530 (malloc_set_state): Update comment.
9531 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9532 declarations.
9533
9534 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9535
9536 [BZ #23140]
9537 * localedata/locales/ast_ES (mon): Rename to...
9538 (alt_mon): This.
9539 (mon): Import from CLDR (genitive case).
9540
9541 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9542 Jakub Sitnicki <jkbs@redhat.com>
9543
9544 [BZ #21812]
9545 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9546 on NLM_F_DUMP_INTR.
9547
9548 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9549
9550 * manual/llio.texi: Remove spurious space.
9551
9552 2018-06-28 Florian Weimer <fweimer@redhat.com>
9553
9554 [BZ #23349]
9555 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9556 _STRUCT_TIMESPEC.
9557
9558 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9559
9560 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9561 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9562 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9563 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9564 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9565 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9566 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9567
9568 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9569
9570 [BZ #23266]
9571 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9572 Copy and null-terminate entries that are not terminated, in
9573 addition to empty ones.
9574
9575 2018-06-27 Florian Weimer <fweimer@redhat.com>
9576
9577 [BZ #18023]
9578 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9579 (extend_alloca_account): Remove.
9580 * manual/stdio.texi (Variable Arguments Output): Update comment.
9581
9582 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9583
9584 * nptl/sockperf.c: Remove file.
9585
9586 2018-06-27 Florian Weimer <fweimer@redhat.com>
9587
9588 [BZ #18023]
9589 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9590 scratch_buffer instead of extend_alloca.
9591
9592 2018-06-27 Florian Weimer <fweimer@redhat.com>
9593
9594 [BZ #18023]
9595 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9596 scratch_buffer instead of extend_alloca. Update comments.
9597
9598 2018-06-27 Florian Weimer <fweimer@redhat.com>
9599
9600 [BZ #18023]
9601 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9602 instead of extend_alloca.
9603
9604 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9605
9606 [BZ #13888]
9607 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9608 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9609 /tmp.
9610 * scripts/test-installation.pl: Put temporary files in build
9611 directory, not /tmp.
9612 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9613 (CFLAGS-bug4.c): Likewise.
9614 (CFLAGS-bug5.c): Likewise.
9615 (CFLAGS-test-fseek.c): Likewise.
9616 (CFLAGS-test-popen.c): Likewise.
9617 (CFLAGS-test_rdwr.c): Likewise.
9618 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9619 /tmp.
9620 * stdio-common/bug4.c (main): Likewise.
9621 * stdio-common/bug5.c (main): Likewise.
9622 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9623 * stdio-common/test-popen.c (do_test): Likewise.
9624 * stdio-common/test_rdwr.c (main): Likewise.
9625
9626 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9627
9628 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9629 (sem_open): Set sem.newsem.pad to zero for valgrind.
9630
9631 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9632
9633 [BZ #20251]
9634 * NEWS: Mention fcntl64 addition.
9635 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9636 * login/utmp_file.c: Likewise.
9637 * sysdeps/posix/fdopendir.c: Likewise.
9638 * sysdeps/posix/opendir.c: Likewise.
9639 * sysdeps/unix/pt-fcntl.c: Likewise.
9640 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9641 __fcntl64_nocancel_adjusted): New prototype.
9642 (__fcntl_nocancel_adjusted): Remove prototype.
9643 * io/Makefile (routines): Add fcntl64.
9644 (CFLAGS-fcntl64.c): New rule.
9645 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9646 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9647 * io/fcntl.h (fcntl64): Add prototype and redirect if
9648 __USE_FILE_OFFSET64 is defined.
9649 * io/fcntl64.c: New file.
9650 * manual/llio.text: Add a note for which commands fcntl acts a
9651 cancellation point.
9652 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9653 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9654 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9655 New symbols.
9656 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9657 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9658 non-LFS case.
9659 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9660 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9661 to __fcntl64_nocancel.
9662 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9663 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9664 to __fcntl64_nocancel.
9665 * sysdeps/generic/not-cancel.h: Likewise.
9666 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9667 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9668 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9669 (fcntl64): New symbol.
9670 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9671 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9672 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9673 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9674 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9675 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9676 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9677 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9678 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9679 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9680 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9681 fcntl64): Likewise.
9682 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9683 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9684 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9685 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9686 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9687 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9688 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9689 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9690 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9692 Likewise.
9693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9694 Likewise.
9695 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9696 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9697 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9698
9699 2018-06-26 Florian Weimer <fweimer@redhat.com>
9700
9701 Run thread shutdown functions in an explicit order.
9702 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9703 definition.
9704 (__libc_thread_freeres): Call thread shutdown functions
9705 explicitly.
9706 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9707 * include/string.h (__strerror_thread_freeres): Declare.
9708 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9709 arena_thread_freeres. No longer static. Remove thread shutdown
9710 hook registration.
9711 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9712 Declare.
9713 * resolv/res-close.c (__res_thread_freeres): Renamed from
9714 res_thread_freeres. No longer static. Remove thread shutdown
9715 hook registration.
9716 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9717 * resolv/resolv_conf.c (freeres): Remove incorrect section
9718 attribute and use libc_freeres_fn.
9719 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9720 strerror_thread_freeres. No longer static. Remove thread
9721 shutdown hook registration.
9722 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9723 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9724 shutdown hook registration.
9725 * Makerules (shlib.lds): Do not provide section boundary symbols
9726 for __libc_thread_subfreeres.
9727 * manual/memory.texi (Basic Allocation): Update comment.
9728
9729 2018-06-26 Florian Weimer <fweimer@redhat.com>
9730
9731 Remove always-defined _RPC_THREAD_SAFE_ macro.
9732 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9733 Do not define _RPC_THREAD_SAFE_.
9734 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9735 conditional.
9736 * sunrpc/clnt_perr.c: Likewise.
9737 * sunrpc/clnt_raw.c: Likewise.
9738 * sunrpc/clnt_simp.c: Likewise.
9739 * sunrpc/key_call.c: Likewise.
9740 * sunrpc/rpc_common.c: Likewise.
9741 * sunrpc/rpc_main.c: Likewise.
9742 * sunrpc/rpc_thread.c: Likewise.
9743 * sunrpc/svc.c: Likewise.
9744 * sunrpc/svc_raw.c: Likewise.
9745 * sunrpc/svc_simple.c: Likewise.
9746 * sumrpc/svcauth_des.c: Likewise.
9747
9748 2018-06-26 Florian Weimer <fweimer@redhat.com>
9749
9750 * libio/Makefile (tests-internal): Add tst-vtables,
9751 tst-vtables-interposed.
9752 * libio/tst-vtables.c: New file.
9753 * libio/tst-vtables-common.c: Likewise.
9754 * libio/tst-vtables-interposed.c: Likewise.
9755
9756 2018-06-26 Florian Weimer <fweimer@redhat.com>
9757
9758 * support/support_test_main.c (support_test_main): Only call
9759 setvbuf if not disables.
9760 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9761 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9762
9763 2018-06-26 Florian Weimer <fweimer@redhat.com>
9764
9765 [BZ #23313]
9766 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9767
9768 2018-06-25 Florian Weimer <fweimer@redhat.com>
9769
9770 [BZ #18023]
9771 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9772 Use struct scratch_buffer instead of extend_alloca.
9773
9774 2018-06-25 Florian Weimer <fweimer@redhat.com>
9775
9776 [BZ #18023]
9777 * nss/getent.c (initgroups_keys): Use dynarray instead of
9778 extend_alloca.
9779
9780 2018-06-25 Florian Weimer <fweimer@redhat.com>
9781
9782 [BZ #18023]
9783 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9784 Use struct scratch_buffer instead of extend_alloca.
9785
9786 2018-06-25 Florian Weimer <fweimer@redhat.com>
9787
9788 [BZ #18023]
9789 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9790 back to malloc directly, without stack allocations.
9791
9792 2018-06-25 Florian Weimer <fweimer@redhat.com>
9793
9794 [BZ #18023]
9795 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9796 of extend_alloca.
9797
9798 2018-06-25 Florian Weimer <fweimer@redhat.com>
9799
9800 [BZ #18023]
9801 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9802 of extend_alloca.
9803 * nscd/hstcache.c (addhstbyX): Likewise.
9804 * nscd/pwdcache.c (addpwbyX): Likewise.
9805 * nscd/servicescache.c (addservbyX): Likewise.
9806
9807 2018-06-25 Florian Weimer <fweimer@redhat.com>
9808
9809 [BZ #18023]
9810 * nscd/connections.c (read_cmdline): New function.
9811 (restart): Use it. Update comment.
9812
9813 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9814
9815 [BZ #23140]
9816 * localedata/locales/csb_PL (mon): Rename to...
9817 (alt_mon): This.
9818 (abmon): Rename to...
9819 (ab_alt_mon): This.
9820 (mon): Add with proper genitive forms, copy from Wikipedia.
9821 (abmon): Likewise.
9822
9823 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9824
9825 [BZ #19485]
9826 * localedata/locales/csb_PL (mon): Fix typos:
9827 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9828 (yesstr): Add, value is "jo".
9829 (nostr): Add, value is "nié".
9830
9831 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9832
9833 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9834 all log1p and significand functions on m680x0.
9835 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9836 of s_significand.c..
9837 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9838 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9839 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9840 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9841 s_log1p.c and include it..
9842
9843 2018-06-21 Vincent Chen <vincentc@andestech.com>
9844
9845 * elf/elf.h (R_NDS32_NONE): New define.
9846 (R_NDS32_32_RELA): Likewise.
9847 (R_NDS32_COPY): Likewise.
9848 (R_NDS32_GLOB_DAT): Likewise.
9849 (R_NDS32_JUMP_SLOT): Likewise.
9850 (R_NDS32_RELATIVE): Likewise.
9851 (R_NDS32_TLS_TPOFF): Likewise.
9852 (R_NDS32_TLS_DESC): Likewise.
9853
9854 2018-06-21 Mark Wielaard <mark@klomp.org>
9855
9856 * elf/elf.h (R_BPF_MAP_FD): Removed.
9857 (R_BPF_64_64, R_BPF_64_32): New.
9858
9859 2018-06-21 Florian Weimer <fweimer@redhat.com>
9860
9861 [BZ #23253]
9862 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9863 Renamed from libc_feholdsetround_ctx.
9864 (default_libc_feresetround_ctx): Renamed from
9865 libc_feresetround_ctx.
9866 (default_libc_feholdsetround_noex_ctx): Renamed from
9867 libc_feholdsetround_noex_ctx.
9868 (default_libc_feresetround_noex_ctx): Renamed from
9869 libc_feresetround_noex_ctx.
9870 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9871 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9872 forwardning to the old implementations under the new names.
9873 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9874 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9875 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9876 (libc_feresetround_ctx): Forward to default implements for i386
9877 and MATH_SET_BOTH_ROUNDING_MODES.
9878 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9879 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9880
9881 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9882
9883 * string/tst-cmp.c: Include <libc-diag.h>.
9884 (strncmp_max): Disable -Wstringop-overflow= around call to
9885 strncmp.
9886 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9887 strncasecmp.
9888
9889 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9890 (main): Disable -Wunused-value around call to strpbrk.
9891 * string/bug-strspn1.c: Include <libc-diag.h>.
9892 (main): Disable -Wunused-value around call to strspn.
9893
9894 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9895 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9896
9897 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9898 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9899
9900 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9901
9902 * math/Makefile (libm-calls): Move s_significandF to...
9903 (gen-libm-calls): ... here.
9904 * math/s_significand_template.c: New file.
9905 * math/s_significand.c: Removed.
9906 * math/s_significandf.c: Removed.
9907 * math/s_significandl.c: Removed.
9908 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9909 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9910
9911 * math/e_exp2_template.c (declare_mgen_finite_alias,
9912 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9913 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9914 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9915
9916 2018-06-20 Florian Weimer <fweimer@redhat.com>
9917
9918 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9919
9920 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9921
9922 [BZ #23280]
9923 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9924 floating-point number to strtod functions rather than possibly
9925 negating result of those functions.
9926 * stdio-common/tst-scanf-round.c: New file.
9927 * stdio-common/Makefile (tests): Add tst-scanf-round.
9928 ($(objpfx)tst-scanf-round): Depend on $(libm).
9929
9930 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9931
9932 * sysdeps/mach/hurd/localplt.data: Move to...
9933 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9934 R_386_GLOB_DAT like on Linux i386.
9935
9936 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9937
9938 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9939 (SHM_STAT_ANY): New macro.
9940 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9941 (SHM_STAT_ANY): Likewise.
9942 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9943 (SHM_STAT_ANY): Likewise.
9944 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9945 (SHM_STAT_ANY): Likewise.
9946 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9947 (SHM_STAT_ANY): Likewise.
9948 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9949 (SHM_STAT_ANY): Likewise.
9950 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9951 (SHM_STAT_ANY): Likewise.
9952 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9953 (SHM_STAT_ANY): Likewise.
9954 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9955 (SHM_STAT_ANY): Likewise.
9956 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9957 (SHM_STAT_ANY): Likewise.
9958 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9959 (SHM_STAT_ANY): Likewise.
9960 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9961 (SHM_STAT_ANY): Likewise.
9962
9963 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9964 (SEM_STAT_ANY): New macro.
9965 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9966 (SEM_STAT_ANY): Likewise.
9967 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9968 (SEM_STAT_ANY): Likewise.
9969 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9970 (SEM_STAT_ANY): Likewise.
9971 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9972 (SEM_STAT_ANY): Likewise.
9973 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9974 (SEM_STAT_ANY): Likewise.
9975 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9976 (SEM_STAT_ANY): Likewise.
9977 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9978 (SEM_STAT_ANY): Likewise.
9979 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9980 (SEM_STAT_ANY): Likewise.
9981 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9982 (SEM_STAT_ANY): Likewise.
9983
9984 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9985 (MSG_STAT_ANY): New macro.
9986 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9987 (MSG_STAT_ANY): Likewise.
9988 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9989 (MSG_STAT_ANY): Likewise.
9990 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9991 (MSG_STAT_ANY): Likewise.
9992 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9993 (MSG_STAT_ANY): Likewise.
9994 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9995 (MSG_STAT_ANY): Likewise.
9996 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9997 (MSG_STAT_ANY): Likewise.
9998 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9999 (MSG_STAT_ANY): Likewise.
10000 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10001 (MSG_STAT_ANY): Likewise.
10002 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10003 (MSG_STAT_ANY): Likewise.
10004
10005 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10006 (MAP_TYPE): Change value to 0x2b.
10007
10008 2018-06-18 Florian Weimer <fweimer@redhat.com>
10009
10010 [BZ #15722]
10011 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10012 socket with SOCK_CLOEXEC.
10013
10014 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10015
10016 [BZ #23303]
10017 * sysdeps/powerpc/powerpc64/le/Makefile
10018 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10019 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10020 (gnulib-tests): Also add $(f128-loader-link) for
10021 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10022
10023 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10024
10025 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10026 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10027 of sendfile.
10028 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10029 (sendfile64): New strong alias.
10030 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10031 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10032 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10033 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10034 attribute.
10035 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10036 ___pthread_get_cleanup_stack.
10037 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10038 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10039 * mach/shortcut.awk: Make syscall stubs include
10040 <mach-shortcuts-hidden.h> and add hidden definition.
10041 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10042 (__mach_msg): Add hidden prototype.
10043 * mach/msg.c: Include <mach.h>.
10044 (__mach_msg): Add hidden definition.
10045 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10046 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10047 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10048 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10049 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10050 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10051 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10052 prototype and definition.
10053 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10054 hidden target for _hurd_self_sigstate.
10055
10056 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10057
10058 [BZ #23007]
10059 * stdlib/tst-strtod-nan-sign-main.c: New file.
10060 * stdlib/tst-strtod-nan-sign.c: Likewise.
10061 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10062 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10063 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10064 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10065 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10066
10067 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10068
10069 [BZ #23007]
10070 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10071 appropriate sign.
10072
10073 2018-06-14 Florian Weimer <fweimer@redhat.com>
10074
10075 [BZ #23290]
10076 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10077 that the result stays within the ISO-8859-1 range.
10078 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10079 characters are defined in IBM273.
10080
10081 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10082
10083 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10084 __mach_task_self): Remove attribute_hidden.
10085
10086 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10087
10088 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10089 ignore -Wrestrict for one test.
10090
10091 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10092 Szabolcs Nagy <szabolcs.nagy@arm.com>
10093
10094 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10095
10096 2018-06-14 Florian Weimer <fweimer@redhat.com>
10097
10098 * scripts/update-abilist.sh: Accept empty list of files to patch.
10099
10100 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10101
10102 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10103 test-xfail-check-abi-libmachuser): Add.
10104 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10105 __libc_read and __libc_write to __read and __write.
10106 * sysdeps/hurd/include/hurd/port.h: New file.
10107 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10108 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10109 __thread_switch, __evc_wait): Move declarations to...
10110 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10111 attribute_hidden.
10112 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10113 use PLT to call _hurd_self_sigstate.
10114
10115 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10116
10117 [BZ #23279]
10118 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10119 MAX_EXP as overflowing.
10120 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10121 overflow flag.
10122 (round_str): Output also whether result overflows in each rounding
10123 mode.
10124 * stdlib/tst-strtod-round-data: Add more tests.
10125 * stdlib/tst-strtod-round-data.h: Regenerated.
10126 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10127 (TEST): Handle extra arguments for overflow flags.
10128 (struct test_overflow): New type.
10129 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10130 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10131 (test_in_one_mode): Take argument with overflow information.
10132 (do_test): Update calls to test_in_one_mode.
10133
10134 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10135
10136 * elf/dl-load (_dl_dst_substitute): Correct comment.
10137 (_dl_dst_count): Likewise.
10138
10139 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10140 lll_futex_timed_wait.
10141
10142 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10143
10144 [BZ #23277]
10145 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10146 attribute.
10147 * math/test-nan-const.c: New file.
10148 * math/Makefile (tests): Add test-nan-const.
10149 (CFLAGS-test-nan-const.c): New variable.
10150
10151 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10152
10153 * benchtests/scripts/compare_strings.py (process_results): Add
10154 funcs argument. Compare only functions which are selected.
10155 (main): Check if base function is among selected functions.
10156 Pass selected functions to process_results.
10157 (__main__): Add -f/--functions argument.
10158
10159 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10160 Hongbo Zhang <hongbo.zhang@linaro.org>
10161
10162 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10163 __memcpy_falkor for phecda core.
10164 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10165 __memmove_falkor for phecda core.
10166 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10167 __memset_falkor for phecda core.
10168 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10169 for phecda core.
10170 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10171 macro to identify phecda core.
10172
10173 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10174 Andreas Schwab <schwab@suse.de>
10175 Dmitry V. Levin <ldv@altlinux.org>
10176 Florian Weimer <fweimer@redhat.com>
10177
10178 [BZ #23102]
10179 [BZ #21942]
10180 [BZ #18018]
10181 [BZ #23259]
10182 CVE-2011-0536
10183 * elf/dl-dst.h: Remove DL_DST_COUNT.
10184 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10185 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10186 (is_dst): Comment. Support ELF gABI.
10187 (_dl_dst_count): Comment. Simplify and count DSTs.
10188 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10189 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10190 locals.
10191
10192 2018-06-12 Zack Weinberg <zackw@panix.com>
10193
10194 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10195 * sysdeps/unix/sysv/linux/dl-sysdep.c
10196 Include not-cancel.h. Use __close_nocancel instead of __close,
10197 __open64_nocancel instead of __open, __read_nocancel instead of
10198 __libc_read, and __write_nocancel instead of __libc_write.
10199
10200 * csu/check_fds.c (check_one_fd)
10201 * sysdeps/posix/fdopendir.c (__fdopendir)
10202 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10203 instead of __fcntl and/or __libc_fcntl.
10204
10205 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10206 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10207 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10208 Use __open64_nocancel instead of __open_nocancel.
10209
10210 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10211 hidden_proto declarations to the end and issue them if either
10212 IS_IN(libc) or IS_IN(rtld).
10213 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10214 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10215 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10216 read_nocancel, waitpid_nocancel, write_nocancel.
10217
10218 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10219 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10220 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10221
10222 * nptl/pt-fcntl.c: New file.
10223 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10224 (libpthread-routines): Add pt-fcntl.
10225 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10226 (__libc_fcntl): Remove attribute_hidden.
10227 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10228 __fcntl_nocancel_adjusted, not fcntl_common.
10229 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10230 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10231 to fcntl_nocancel.c.
10232 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10234 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10235 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10236
10237 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10238 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10239 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10240 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10241 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10242 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10243 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10244 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10245 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10246 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10247 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10248 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10249 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10250 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10251 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10252 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10253 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10254 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10255 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10256 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10257
10258 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10259 libpthread-routines.
10260 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10261 defines nothing.
10262
10263 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10264 __libc_read, and __write instead of __libc_write. Define
10265 __open64 in addition to __open.
10266
10267 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10268
10269 [BZ #23250]
10270 [BZ #10686]
10271 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10272 to _private_tm[3] and add __glibc_reserved2.
10273 Add _Static_assert of offset of __private_ss == 0x30.
10274 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10275 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10276
10277 2018-06-12 Florian Weimer <fweimer@redhat.com>
10278
10279 x86: Make strncmp usable from rtld.
10280 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10281 __strncmp_ia32 if in libc (and not in rtld).
10282 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10283 strncmp if not in libc (and not to __strncmp_sse2).
10284
10285 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10286
10287 [BZ #23140]
10288 * localedata/locales/gd_GB (mon): Rename to...
10289 (alt_mon): This.
10290 (mon): Import from CLDR (genitive case).
10291 * localedata/locales/hsb_DE (mon): Rename to...
10292 (alt_mon): This.
10293 (mon): Import from CLDR (genitive case).
10294 * localedata/locales/wa_BE (mon): Rename to...
10295 (alt_mon): This.
10296 (mon): Add, fill with the proper genitive forms, but CLDR data
10297 is incomplete; completed according to the comments in this file.
10298 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10299
10300 * localedata/locales/wa_BE (country_name): Reword
10301 "Beljike" -> "Beldjike".
10302
10303 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10304
10305 [BZ #23272]
10306 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10307 cases of non-finite arguments.
10308 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10309
10310 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10311
10312 [BZ #23174]
10313 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10314
10315 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10316
10317 [BZ #23264]
10318 * include/unistd.h (__execvpex): New prototype.
10319 * posix/Makefile (tests): Add tst-spawn4.
10320 (tests-internal): Add tst-spawn4-compat.
10321 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10322 * posix/tst-spawn4-compat.c: New file.
10323 * posix/tst-spawn4.c: Likewise.
10324 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10325 binaries as shell scripts.
10326 * sysdeps/posix/spawni.c (__spawni): Likewise.
10327
10328 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10329
10330 [BZ #23145]
10331 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10332 ($(all-built-dso:=.dynsym): New target.
10333 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10334 ($(objpfx)check-initfini.out): New target.
10335 (generated): Add check-initfini.out.
10336 * scripts/check-initfini.awk: New file.
10337 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10338 (_fini): Likewise.
10339 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10340 (_fini): Likewise.
10341 * sysdeps/arm/crti.S (_init): Mark as hidden.
10342 (_fini): Likewise.
10343 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10344 (_fini): Likewise.
10345 * sysdeps/i386/crti.S (_init): Mark as hidden.
10346 (_fini): Likewise.
10347 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10348 (_fini): Likewise.
10349 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10350 (_fini): Likewise.
10351 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10352 (_fini): Likewise.
10353 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10354 (_fini): Likewise.
10355 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10356 (_fini): Likewise.
10357 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10358 (_fini): Likewise.
10359 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10360 (_fini): Likewise.
10361 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10362 (_fini): Likewise.
10363 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10364 (_fini): Likewise.
10365 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10366 (_fini): Likewise.
10367 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10368 (_fini): Likewise.
10369 * sysdeps/sh/crti.S (_init): Mark as hidden.
10370 (_fini): Likewise.
10371 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10372 (_fini): Likewise.
10373 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10374 (_fini): Likewise.
10375
10376 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10377
10378 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10379 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10380 and TF redirection to KFtype and KF only when the default
10381 long double type is not the IEEE 128-bit floating point type.
10382
10383 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10384
10385 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10386 macro.
10387 (HWCAP_USCAT): Likewise.
10388 (HWCAP_ILRCPC): Likewise.
10389 (HWCAP_FLAGM): Likewise.
10390 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10391 Increase to 28.
10392 (_dl_aarch64_cap_flags): Add new flag names.
10393
10394 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10395 (MAP_FIXED_NOREPLACE): New macro.
10396 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10397 (MAP_FIXED_NOREPLACE): Likewise.
10398 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10399 (MAP_FIXED_NOREPLACE): Likewise.
10400 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10401 (MAP_FIXED_NOREPLACE): Likewise.
10402 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10403 (MAP_FIXED_NOREPLACE): Likewise.
10404 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10405 (MAP_FIXED_NOREPLACE): Likewise.
10406 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10407 (MAP_FIXED_NOREPLACE): Likewise.
10408 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10409 (MAP_FIXED_NOREPLACE): Likewise.
10410 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10411 (MAP_FIXED_NOREPLACE): Likewise.
10412 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10413 (MAP_FIXED_NOREPLACE): Likewise.
10414 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10415 (MAP_FIXED_NOREPLACE): Likewise.
10416 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10417 (MAP_FIXED_NOREPLACE): Likewise.
10418 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10419 (MAP_FIXED_NOREPLACE): Likewise.
10420 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10421 (MAP_FIXED_NOREPLACE): Likewise.
10422 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10423 (MAP_FIXED_NOREPLACE): Likewise.
10424
10425 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10426 version to 4.17.
10427
10428 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10429
10430 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10431 version to 4.17
10432
10433 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10434
10435 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10436 int.
10437 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10438
10439 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10440
10441 * benchtests/scripts/compare_string.py: (process_results) Catch
10442 exception in non-existent base_func and catch exception in
10443 non-existent attribute.
10444 (parse_file) Catch exception if input file does not exist.
10445
10446 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10447
10448 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10449 options to avoid diff calculation and omit header, respectively.
10450 (main): process --no-diff and --no-header
10451
10452 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10453 H.J. Lu <hongjiu.lu@intel.com>
10454
10455 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10456 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10457 wcsncmp-sse2.
10458 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10459 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10460 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10461 and __wcsncmp_sse2.
10462 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10463 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10464 AVX unaligned load is fast and vzeroupper is preferred.
10465 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10466 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10467 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10468 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10469 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10470 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10471 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10472 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10473 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10474 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10475 is undefined.
10476
10477 2018-06-01 Florian Weimer <fweimer@redhat.com>
10478
10479 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10480 configuring with --disable-multi-arch, building with
10481 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10482 Haswell-era CPU.
10483
10484 2018-06-01 Florian Weimer <fweimer@redhat.com>
10485
10486 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10487 results from building with “-march=x86-64 -mtune=generic
10488 -mfpmath=sse” and running on a Haswell-era CPU.
10489
10490 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10491
10492 [BZ #18473]
10493 * soft-fp/sqrttf2.c: Remove file.
10494 * soft-fp/sqrtdf2.c: Move to ....
10495 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10496 <shlib-compat.h>.
10497 (__sqrtdf2): Make conditional on
10498 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10499 symbol.
10500 * soft-fp/sqrtsf2.c: Move to ....
10501 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10502 <shlib-compat.h>.
10503 (__sqrtsf2): Make conditional on
10504 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10505 symbol.
10506 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10507 (gcc-double-routines): Remove sqrtdf2.
10508 (gcc-quad-routines): Remove sqrttf2.
10509 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10510 Do not filter out sqrtsf2 and sqrtdf2.
10511 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10512 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10513
10514 2018-06-01 Florian Weimer <fweimer@redhat.com>
10515
10516 * sysdeps/generic/libcidn.abilist: Remove file.
10517
10518 2018-06-01 Florian Weimer <fweimer@redhat.com>
10519
10520 [BZ #23236]
10521 * libio/strfile.h (struct _IO_str_fields): Rename members to
10522 discourage their use and add comment.
10523 (_IO_STR_DYNAMIC): Remove unused macro.
10524 * libio/strops.c (_IO_str_init_static_internal): Do not use
10525 callback pointers. Call malloc and free.
10526 (_IO_str_overflow): Do not use callback pointers. Call malloc
10527 and free.
10528 (enlarge_userbuf): Likewise.
10529 (_IO_str_finish): Call free.
10530 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10531 _allocate_buffer_unused.
10532 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10533 and free.
10534 (enlarge_userbuf): Likewise.
10535 (_IO_wstr_finish): Call free.
10536 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10537 _allocate_buffer_unused, _free_buffer_unused.
10538 * libio/memstream.c (__open_memstream): Likewise.
10539 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10540 * libio/wmemstream.c (open_wmemstream): Likewise.
10541
10542 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10543
10544 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10545 AMD Ryzen 7 1800X.
10546
10547 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10548
10549 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10550 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10551 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10552 New file.
10553 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10554 Likewise.
10555 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10556
10557 2018-05-29 Florian Weimer <fweimer@redhat.com>
10558
10559 * support/Makefile (libsupport-routines): Add
10560 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10561 xpthread_barrierattr_setpshared.
10562 * support/xpthread_barrierattr_destroy.c: New file.
10563 * support/xpthread_barrierattr_init.c: Likewise.
10564 * support/xpthread_barrierattr_setpshared.c: Likewise.
10565
10566 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10567
10568 [BZ #23206]
10569 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10570 _r_debug and update DT_DEBUG for debugger.
10571
10572 2018-05-29 Florian Weimer <fweimer@redhat.com>
10573
10574 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10575 (tst-strtod5i.out): Likewise.
10576
10577 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10578
10579 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10580 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10581 (sparc64-quad-routines): New variable. Moved from ....
10582 [$(subdir) = soft-fp] (sysdep_routines): Add
10583 $(sparc64-quad-routines). Moved from ....
10584 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10585 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10586 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10587 moved from ....
10588 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10589 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10590 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10591 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10592 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10593 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10594 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10595 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10596 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10597 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10598 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10599 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10600 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10601 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10602 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10603 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10604 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10605 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10606 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10607 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10608 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10609 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10610 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10611 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10612 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10613 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10614 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10615 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10616 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10617 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10618 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10619 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10620 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10621 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10622 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10623 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10624 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10625 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10626 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10627 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10628 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10629 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10630 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10631 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10632 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10633 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10634 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10635 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10636 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10637 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10638 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10639 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10640 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10641 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10642 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10643 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10644 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10645 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10646
10647 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10648 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10649 (sparc32-quad-routines): New variable. Moved from ....
10650 [$(subdir) = soft-fp] (sysdep_routines): Add
10651 $(sparc32-quad-routines). Moved from ....
10652 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10653 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10654 moved from ....
10655 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10656 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10657 * sysdeps/sparc/sparc32/q_add.c: ... here.
10658 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10659 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10660 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10661 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10662 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10663 * sysdeps/sparc/sparc32/q_div.c: ... here.
10664 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10665 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10666 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10667 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10668 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10669 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10670 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10671 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10672 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10673 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10674 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10675 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10676 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10677 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10678 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10679 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10680 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10681 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10682 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10683 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10684 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10685 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10686 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10687 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10688 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10689 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10690 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10691 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10692 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10693 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10694 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10695 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10696 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10697 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10698 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10699 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10700 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10701 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10702 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10703 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10704 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10705 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10706 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10707 * sysdeps/sparc/sparc32/q_util.c: ... here.
10708 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10709 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10710 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10711 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10712
10713 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10714 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10715
10716 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10717 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10718 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10719 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10720
10721 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10722
10723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10724 powerpc/soft-fp.
10725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10726 Likewise.
10727 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10728 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10729
10730 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10731
10732 [BZ #23171]
10733 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10734 double version.
10735
10736 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10737
10738 * sysdeps/sh/Implies: Remove sh/soft-fp.
10739 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10740 * sysdeps/sh/sfp-machine.h: ... here.
10741
10742 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10743
10744 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10745 (__mempcpy_erms): Skip zero length.
10746 (__memmove_erms): Likewise.
10747 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10748 (__memset_erms): Likewise.
10749
10750 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10751
10752 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10753 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10754 Add functions moved from ....
10755 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10756 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10757 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10758 from ....
10759 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10760 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10761 * sysdeps/alpha/e_sqrtl.c: ... here.
10762 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10763 * sysdeps/alpha/local-soft-fp.h: ... here.
10764 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10765 * sysdeps/alpha/ots_add.c: ... here.
10766 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10767 * sysdeps/alpha/ots_cmp.c: ... here.
10768 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10769 * sysdeps/alpha/ots_cmpe.c: ... here.
10770 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10771 * sysdeps/alpha/ots_cvtqux.c: ... here.
10772 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10773 * sysdeps/alpha/ots_cvtqx.c: ... here.
10774 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10775 * sysdeps/alpha/ots_cvttx.c: ... here.
10776 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10777 * sysdeps/alpha/ots_cvtxq.c: ... here.
10778 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10779 * sysdeps/alpha/ots_cvtxt.c: ... here.
10780 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10781 * sysdeps/alpha/ots_div.c: ... here.
10782 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10783 * sysdeps/alpha/ots_mul.c: ... here.
10784 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10785 * sysdeps/alpha/ots_nintxq.c: ... here.
10786 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10787 * sysdeps/alpha/ots_sub.c: ... here.
10788 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10789 * sysdeps/alpha/sfp-machine.h: ... here.
10790
10791 2018-05-23 Florian Weimer <fweimer@redhat.com>
10792
10793 [BZ #19728]
10794 [BZ #19729]
10795 [BZ #22247]
10796 CVE-2016-6261
10797 CVE-2016-6263
10798 CVE-2017-14062
10799 Switch to extern IDNA implementation (libidn2).
10800 * libidn: Remove subdirectory.
10801 * LICENSES: Do not mention licensing conditions for the removed
10802 libidn code.
10803 * config.h.in (HAVE_LIBIDN): Remove.
10804 * include/dlfcn.h (__libc_dlopen): Update comment.
10805 * include/idna.h: Remove file.
10806 * inet/Makefile (routines): Add idna.
10807 (tests-static, tests-internal): Add tst-idna_name_classify.
10808 (LOCALES): Generate locales for tests.
10809 (tst-idna_name_classify.out): Depend on generated locales.
10810 * inet/idna_name_classify.c: New file.
10811 * inet/tst-idna_name_classify.c: Likewise.
10812 * inet/net-internal.h (__idna_to_dns_encoding)
10813 (__idna_from_dns_encoding): Declare.
10814 * inet/net-internal.h (enum idna_name_classification): Define.
10815 (__idna_name_classify): Declare.
10816 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10817 __idna_from_dns_encoding.
10818 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10819 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10820 name as a fallback in case of encoding errors.
10821 (getnameinfo): Use DEPRECATED_NI_IDN.
10822 * inet/idna.c: New file.
10823 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10824 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10825 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10826 (modules-names): Add tst-no-libidn2.
10827 (extra-test-objs): Add tst-no-libidn2.os.
10828 (LDFLAGS-tst-no-libidn2.so): Set soname.
10829 (LOCALES): Set, and generate locales.
10830 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10831 (tst-resolv-ai_idn-latin1): Likewise.
10832 (tst-resolv-ai_idn-nolibidn2): Likewise.
10833 (tst-resolv-ai_idn.out): Depend on locales.
10834 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10835 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10836 tst-no-libidn2.so.
10837 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10838 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10839 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10840 * resolv/tst-resolv-ai_idn.c: New file.
10841 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10842 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10843 * resolv/tst-no-libidn2.c: Likewise.
10844 * support/support_format_addrinfo.c (format_ai_flags): Do not
10845 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10846 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10847 (gaih_inet): Call __idna_to_dns_encoding and
10848 __idna_from_dns_encoding, and use the original (punycode) name if
10849 __idna_from_dns_encoding fails due to an encoding error.
10850 (getaddrinfo): Use DEPRECATED_AI_IDN.
10851 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10852 * sysdeps/unix/inet/configure: Remove file.
10853 * sysdeps/unix/inet/configure.ac: Likewise.
10854
10855 2018-05-23 Florian Weimer <fweimer@redhat.com>
10856
10857 Implement allocate_once.
10858 * include/allocate_once.h: New file.
10859 * misc/allocate_once.c: Likewise.
10860 * misc/tst-allocate_once.c: Likewise.
10861 * misc/Makefile (routines): Add allocate_once.
10862 (tests-internal): Add tst-allocate_once.
10863 (generated): Add tst-allocate_once.mtrace,
10864 tst-allocate_once-mem.out.
10865 (tests-special): Add tst-allocate_once-mem.out.
10866 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10867 (tst-allocate_once-mem.out): Call mtrace.
10868 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10869
10870 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 [BZ #23196]
10873 * string/test-memcpy.c (do_test1): New function.
10874 (test_main): Call it.
10875
10876 2018-05-23 Andreas Schwab <schwab@suse.de>
10877
10878 [BZ #23196]
10879 CVE-2018-11237
10880 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10881 (L(preloop_large)): Save initial destination pointer in %r11 and
10882 use it instead of %rax after the loop.
10883 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10884
10885 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10886
10887 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10888 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10889 -I../soft-fp. Moved from ....
10890 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10891 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10892 * sysdeps/aarch64/e_sqrtl.c: ... here.
10893 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10894 * sysdeps/aarch64/sfp-machine.h: ... here.
10895
10896 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10897 -Wmaybe-uninitialized around access to fq[0].
10898 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10899 Likewise.
10900
10901 [BZ #18471]
10902 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10903 aliases for non-libc case of versioned symbols.
10904 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10905 (llseek): Define as compat symbol if
10906 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10907 with link warning.
10908 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10909 Make into a compat symbol, disabled for minimum symbol version
10910 GLIBC_2.28 and later.
10911 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10912
10913 2018-05-22 Florian Weimer <fweimer@redhat.com>
10914
10915 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10916 not add -mpreferred-stack-boundary=4.
10917 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10918 (stack-align-test-flags): Likewise.
10919 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10920 Likewise.
10921 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10922 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10923 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10924 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10925 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10926 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10927 (CFLAGS-tst-align2.c): Likewise.
10928
10929 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10930
10931 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10932 (index_arch_Prefer_FSRM): Likewise.
10933 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10934 Also check Prefer_FSRM.
10935 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10936 Also return OPTIMIZE (erms) for Prefer_FSRM.
10937
10938 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10939
10940 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10941 (index_cpu_FSRM): Likewise.
10942 (reg_FSRM): Likewise.
10943
10944 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10945
10946 * math/gen-tgmath-tests.py: Import sys.
10947 (Tests.__init__): Initialize macros_seen.
10948 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10949 if requested to do so for this macro.
10950 (Tests.add_all_tests): Take argument for macro for which to
10951 generate tests.
10952 (Tests.check_macro_list): New function.
10953 (main): Handle check-list argument and argument specifying macro
10954 for which to generate tests.
10955 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10956 [PYTHON] (tgmath3-macro-tests): Likewise.
10957 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10958 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10959 not test-tgmath3.c.
10960 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10961 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10962 to CFLAGS.
10963 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10964 [PYTHON] ($(foreach
10965 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10966 rule.
10967 [PYTHON] (tests-special): Add
10968 $(objpfx)test-tgmath3-macro-list.out.
10969 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10970
10971 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10972 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10973 later.
10974
10975 [BZ #22639]
10976 * time/tzset.c (SECSPERDAY): Cast to time_t.
10977 * time/tst-y2039.c: New file.
10978 * time/Makefile (tests): Add tst-y2039.
10979
10980 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10981
10982 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10983 (PREFETCH_ONE_SET): Remove duplicate line.
10984
10985 2018-05-17 Florian Weimer <fweimer@redhat.com>
10986
10987 * sysdeps/generic/math-type-macros-double.h: Include
10988 <math-nan-payload-double.h> after <libm-alias-double.h>.
10989 * sysdeps/generic/math-type-macros-float.h: Include
10990 <math-nan-payload-float.h> after <libm-alias-float.h>.
10991 * sysdeps/generic/math-type-macros-float128.h: Include
10992 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10993 * sysdeps/generic/math-type-macros-ldouble.h: Include
10994 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10995
10996 2018-05-17 Andreas Schwab <schwab@suse.de>
10997
10998 * resolv/res_send.c (__res_context_send): Don't set errno when
10999 returing error after malloc failure.
11000
11001 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11002
11003 * nptl/allocatestack.c (allocate_stack): Remove the
11004 !__ASSUME_PRIVATE_FUTEX paths.
11005 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11006 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11007 Likewise.
11008 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11009 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11010 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11011 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11012 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11013 !__ASSUME_PRIVATE_FUTEX path.
11014 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11015 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11016 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11017 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11018 !__ASSUME_PRIVATE_FUTEX macros.
11019 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11020 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11021 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11022 * sysdeps/unix/sysv/linux/kernel-features.h
11023 (__ASSUME_PRIVATE_FUTEX): Removed.
11024
11025 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11026
11027 * math/Makefile (libm-narrow-fns): Add div.
11028 (libm-test-funcs-narrow): Likewise.
11029 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11030 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11031 * math/gen-auto-libm-tests.c (test_functions): Add div.
11032 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11033 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11034 (NARROW_DIV_TRIVIAL): Likewise.
11035 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11036 macro.
11037 (__ddivl): Likewise.
11038 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11039 ddiv.
11040 (CFLAGS-nldbl-ddiv.c): New variable.
11041 (CFLAGS-nldbl-fdiv.c): Likewise.
11042 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11043 __nldbl_ddivl.
11044 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11045 prototype.
11046 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11047 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11048 * math/auto-libm-test-in: Add tests of div.
11049 * math/auto-libm-test-out-narrow-div: New generated file.
11050 * math/libm-test-narrow-div.inc: New file.
11051 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11052 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11053 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11054 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11055 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11056 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11057 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11058 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11059 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11060 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11061 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11062 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11063 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11064 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11065 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11066 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11067 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11068 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11069 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11070 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11074 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11075 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11091 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11092 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11093 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11094 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11095
11096 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11097
11098 [BZ #23178]
11099 * nscd/nscd-client.h (sendfileall): Remove prototype.
11100 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11101 (handle_request): Use writeall instead of sendfileall.
11102 * nscd/aicache.c (addhstaiX): Likewise.
11103 * nscd/grpcache.c (cache_addgr): Likewise.
11104 * nscd/hstcache.c (cache_addhst): Likewise.
11105 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11106 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11107 * nscd/pwdcache.c (cache_addpw): Likewise.
11108 * nscd/servicescache.c (cache_addserv): Likewise.
11109 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11110 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11111 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11112 Remove define.
11113
11114 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11115
11116 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11117 Include <string/strncat.c>.
11118 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11119 alias.
11120 (__GI___strncat): New hidden alias.
11121
11122 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11123
11124 * sysdeps/mips/mips32/libm-test-ulps: Update.
11125 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11126
11127 2018-05-16 Florian Weimer <fweimer@redhat.com>
11128
11129 * support/Makefile (libsupport-routines): Add support_quote_blob,
11130 support_test_compare_blob.
11131 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11132 * support/check.h (TEST_COMPARE_BLOB): Define.
11133 (support_test_compare_blob): Declare.
11134 * support/support.h (support_quote_blob): Declare.
11135 * support/support_quote_blob.c: New file.
11136 * support/support_test_compare_blob.c: Likewise.
11137 * support/tst-support_quote_blob.c: Likewise.
11138 * support/tst-test_compare_blob.c: Likewise.
11139
11140 2018-05-16 Florian Weimer <fweimer@redhat.com>
11141
11142 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11143 of <strtod_nan_double.h>.
11144 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11145 instead of SET_MANTISSA.
11146 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11147 of include <strtod_nan_float.h>.
11148 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11149 instead of <strtod_nan_ldouble.h>.
11150 * stdlib/strtod_nan_double.h: Move to ...
11151 * sysdeps/generic/math-nan-payload-double.h: ... here.
11152 (FLOAT): Remove definition.
11153 (SET_MANTISSA): Rename to ...
11154 (SET_NAN_PAYLOAD): ... this.
11155 * stdlib/strtod_nan_float.h: Move to ...
11156 * sysdeps/generic/math-nan-payload-float.h: ... here.
11157 (FLOAT): Remove definition.
11158 (SET_MANTISSA): Rename to ...
11159 (SET_NAN_PAYLOAD): ... this.
11160 * sysdeps/generic/math-type-macros-double.h: Include
11161 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11162 instead of <math-svid-compat.h>.
11163 * sysdeps/generic/math-type-macros-float.h: Include
11164 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11165 instead of <math-svid-compat.h>.
11166 * sysdeps/generic/math-type-macros-float128.h: Include
11167 <math-nan-payload-float128.h>.
11168 * sysdeps/generic/math-type-macros-ldouble.h: Include
11169 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11170 instead of <math-svid-compat.h>.
11171 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11172 check for definition.
11173 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11174 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11175 Include <ieee754_float128.h>.
11176 (FLOAT): Remove definition.
11177 (SET_MANTISSA): Rename to ...
11178 (SET_NAN_PAYLOAD): ... this.
11179 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11180 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11181 Do not include <float128_private.h>.
11182 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11183 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11184 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11185 (FLOAT): Remove definition.
11186 (SET_MANTISSA): Rename to ...
11187 (SET_NAN_PAYLOAD): ... this.
11188 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11189 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11190 (FLOAT): Remove definition.
11191 (SET_MANTISSA): Rename to ...
11192 (SET_NAN_PAYLOAD): ... this.
11193 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11194 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11195 (FLOAT): Remove definition.
11196 (SET_MANTISSA): Rename to ...
11197 (SET_NAN_PAYLOAD): ... this.
11198 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11199 of "../stdlib/strtod_nan_double.h".
11200 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11201 of "../stdlib/strtod_nan_float.h".
11202 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11203 instead of "../stdlib/strtod_nan_ldouble.h".
11204 * manual/arith.texi (Parsing of Floats): Adjust comment.
11205
11206 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11207
11208 * math/Makefile (libm-narrow-fns): Add mul.
11209 (libm-test-funcs-narrow): Likewise.
11210 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11211 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11212 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11213 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11214 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11215 (NARROW_MUL_TRIVIAL): Likewise.
11216 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11217 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11218 macro.
11219 (__dmull): Likewise.
11220 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11221 dmul.
11222 (CFLAGS-nldbl-dmul.c): New variable.
11223 (CFLAGS-nldbl-fmul.c): Likewise.
11224 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11225 __nldbl_dmull.
11226 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11227 prototype.
11228 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11229 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11230 * math/auto-libm-test-in: Add tests of mul.
11231 * math/auto-libm-test-out-narrow-mul: New generated file.
11232 * math/libm-test-narrow-mul.inc: New file.
11233 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11234 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11235 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11236 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11237 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11238 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11239 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11240 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11241 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11242 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11243 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11244 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11245 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11246 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11247 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11248 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11249 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11250 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11251 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11252 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11253 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11254 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11255 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11256 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11257 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11258 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11259 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11260 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11261 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11262 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11263 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11264 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11269 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11270 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11271 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11272 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11273 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11274 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11275 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11276 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11277
11278 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11279
11280 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11281 with *%eax in call.
11282
11283 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11284
11285 * sysdeps/i386/ldsodefs.h: Removed.
11286 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11287 * sysdeps/x86/ldsodefs.h: This.
11288 (La_i86_regs): New.
11289 (La_i86_retval): Likewise.
11290 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11291 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11292
11293 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11294
11295 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11296 unnecessary testl.
11297
11298 2018-05-13 Alan Modra <amodra@gmail.com>
11299
11300 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11301 R_PARISC_TLS_DTPOFF32 reloc addend.
11302
11303 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11304
11305 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11306 * math/math.h: Restrict the prototype definition for the functions
11307 issignaling(_Float128) and iszero(_Float128); and template
11308 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11309 __HAVE_FLOAT128_UNLIKE_LDBL.
11310 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11311 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11312 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11313 __f128() constants; define the type _Float128 as long double;
11314 and reuse long double in __CFLOAT128.
11315
11316 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11317
11318 * sysdeps/generic/math_private.h: Do not include
11319 <math-barriers.h>.
11320 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11321 <math_private.h>.
11322 * math/fromfp.h: Include <math-barriers.h>.
11323 * math/math-narrow.h: Likewise.
11324 * math/s_nextafter.c: Likewise.
11325 * math/s_nexttowardf.c: Likewise.
11326 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11327 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11328 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11329 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11330 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11331 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11332 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11338 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11339 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11340 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11341 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11342 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11343 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11344 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11345 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11346 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11347 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11348 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11349 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11350 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11351 * sysdeps/ieee754/k_standardl.c: Likewise.
11352 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11353 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11354 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11355 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11356 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11362 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11364 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11365 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11366 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11367 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11368 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11369 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11370 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11371 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11372 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11373 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11374
11375 2018-05-11 Florian Weimer <fweimer@redhat.com>
11376
11377 Use 64-bit epoch values in the time zone file parser.
11378 * include/time.h (internal_time_t): Define.
11379 (__tzfile_compute): Use it.
11380 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11381 member.
11382 (transitions): Switch to internal_time_t.
11383 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11384 types.
11385 (__tzfile_compute): Use internal_time_t for timer argument. Check
11386 for truncation before calling __offtime.
11387
11388 2018-05-11 Florian Weimer <fweimer@redhat.com>
11389
11390 [BZ #23166]
11391 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11392 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11393 Likewise.
11394 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11395 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11396 export without --enable-obsolete-rpc.
11397 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11398 symbol. This should not have been exported, ever.
11399
11400 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11401
11402 [BZ #23152]
11403 * localedata/locales/gd_GB (abmon): Fix typo in May:
11404 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11405
11406 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11407
11408 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11409 Use multiple registers to copy data in loop tail.
11410
11411 * sysdeps/aarch64/multiarch/memmove_falkor.S
11412 (__memmove_falkor): Use multiple registers to move data in
11413 loop tail.
11414
11415 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11416
11417 * math/math-underflow.h: New file.
11418 * sysdeps/generic/math_private.h: Do not include <float.h>.
11419 (fabs_tg): Remove macro. Moved to math-underflow.h.
11420 (min_of_type_f): Likewise.
11421 (min_of_type_): Likewise.
11422 (min_of_type_l): Likewise.
11423 (min_of_type_f128): Likewise.
11424 (min_of_type): Likewise.
11425 (math_check_force_underflow): Likewise.
11426 (math_check_force_underflow_nonneg): Likewise.
11427 (math_check_force_underflow_complex): Likewise.
11428 * math/e_exp2_template.c: Include <math-underflow.h>.
11429 * math/k_casinh_template.c: Likewise.
11430 * math/s_catan_template.c: Likewise.
11431 * math/s_catanh_template.c: Likewise.
11432 * math/s_ccosh_template.c: Likewise.
11433 * math/s_cexp_template.c: Likewise.
11434 * math/s_clog10_template.c: Likewise.
11435 * math/s_clog_template.c: Likewise.
11436 * math/s_csin_template.c: Likewise.
11437 * math/s_csinh_template.c: Likewise.
11438 * math/s_csqrt_template.c: Likewise.
11439 * math/s_ctan_template.c: Likewise.
11440 * math/s_ctanh_template.c: Likewise.
11441 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11442 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11443 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11444 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11445 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11446 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11447 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11448 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11449 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11450 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11451 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11452 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11453 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11454 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11455 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11456 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11457 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11458 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11459 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11460 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11461 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11462 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11463 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11464 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11465 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11466 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11467 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11468 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11469 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11470 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11471 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11472 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11474 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11475 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11476 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11477 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11478 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11479 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11480 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11481 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11482 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11488 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11490 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11491 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11493 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11495 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11497 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11498 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11499 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11500 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11501 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11504 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11505 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11506 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11507 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11508 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11509 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11510 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11511 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11512 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11513 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11514 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11515 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11516 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11517 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11518 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11519 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11520 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11521 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11522 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11523 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11524 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11525
11526 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11527
11528 * sysdeps/generic/math-barriers.h: New file.
11529 * sysdeps/generic/math_private.h [!math_opt_barrier]
11530 (math_opt_barrier): Move to math-barriers.h.
11531 [!math_opt_barrier] (math_force_eval): Likewise.
11532 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11533 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11534 math-barriers.h.
11535 (math_force_eval): Likewise.
11536 * sysdeps/alpha/fpu/math-barriers.h: New file.
11537 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11538 math-barriers.h.
11539 (math_force_eval): Likewise.
11540 * sysdeps/x86/fpu/math-barriers.h: New file.
11541 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11542 math-barriers.h.
11543 (math_force_eval): Likewise.
11544 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11545 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11546 multiple-include guard for rename.
11547 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11548 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11549 math-barriers.h.
11550 (math_force_eval): Likewise.
11551
11552 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11553
11554 [BZ #22786]
11555 CVE-2018-11236
11556 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11557 computation.
11558 * stdlib/Makefile (test-bz22786): New test.
11559 * stdlib/test-bz22786.c: New test.
11560
11561 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11562
11563 * include/math-narrow-eval.h: New file. Contents moved from ....
11564 * sysdeps/generic/math_private.h: ... here.
11565 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11566 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11567 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11568 * stdlib/strtod_l.c: Likewise.
11569 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11570 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11571 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11572 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11573 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11574 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11575 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11576 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11577 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11578 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11579 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11580 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11581 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11582 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11583 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11584 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11585 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11586 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11587 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11588 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11589 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11590 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11591 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11592 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11593 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11594 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11595 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11596 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11597 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11598
11599 2018-05-08 Andreas Schwab <schwab@suse.de>
11600
11601 * sysdeps/nptl/internaltypes.h: Fix comment.
11602
11603 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11604
11605 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11606 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11607 hidden.
11608
11609 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11610
11611 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11612 of I into loop header.
11613 * benchtests/bench-memmove-walk.c
11614 (test_main): Likewise.
11615
11616 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11617
11618 Revert:
11619 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11620 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11621
11622 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11623
11624 [BZ #20419]
11625 * elf/dl-load.c (open_verify): Fix stack overflow.
11626 * elf/Makefile (tst-big-note): New test.
11627 * elf/tst-big-note-lib.S: New.
11628 * elf/tst-big-note.c: New.
11629
11630 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11631
11632 * scripts/abilist.awk: Ignore absolute symbols.
11633 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11634 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11635 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11636 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11637 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11638 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11639 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11640 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11641 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11642 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11643 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11644 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11725 Likewise.
11726 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11739 Likewise.
11740 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11767 Likewise.
11768 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11788 Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11821 Likewise.
11822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11827 Likewise.
11828 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11829 Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11832 Likewise.
11833 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11835 Likewise.
11836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11837 Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11841 Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11843 Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11845 Likewise.
11846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11850 Likewise.
11851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11857 Likewise.
11858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11860 Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11862 Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11864 Likewise.
11865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11866 Likewise.
11867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11870 Likewise.
11871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11872 Likewise.
11873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11874 Likewise.
11875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11878 Likewise.
11879 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11893 Likewise.
11894 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11906 Likewise.
11907 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11932 Likewise.
11933 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11946 Likewise.
11947 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11985
11986 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11987
11988 [BZ #23137]
11989 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11990 Use atomic_load_acquire to load __tid.
11991
11992 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11993
11994 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11995 Restore the pointer into %rdx, after syscall and use %rdx,
11996 instead of %rsi, to restore context.
11997
11998 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11999
12000 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12001 Pop the pointer into %rdx after syscall and use %rdx, instead
12002 of %rsi, to restore context.
12003
12004 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12005
12006 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12007 handlers after setjmp.
12008 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12009 defined.
12010 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12011 <libc-pointer-arith.h>.
12012 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12013 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12014 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12015 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12016 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12017 * sysdeps/x86/__longjmp_cancel.S: New file.
12018 * sysdeps/x86/longjmp.c: Likewise.
12019 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12020
12021 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12022
12023 * NEWS: Add ustat.h deprecation entry.
12024 * bits/ustat.h: Remove file.
12025 * misc/sys/ustat.h: Likewise.
12026 * misc/ustat.h: Likewise.
12027 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12028 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12029 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12030 compatibility mode.
12031 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12032 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12033 generic Linux implementation.
12034
12035 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12036
12037 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12038 * math/w_expl_compat.c: Likewise.
12039 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12040
12041 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12042
12043 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12044
12045 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12046
12047 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12048 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12049 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12050 Remove.
12051 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12052 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12053 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12054 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12055 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12056 and SYSCALL_LL64.
12057
12058 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12059
12060 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12061
12062 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12063 * math/w_asin_template.c: Likewise.
12064 * math/w_atanh_template.c: Likewise.
12065
12066 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12067
12068 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12069 to powerpc/powerpc64/be for big-endian.
12070 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12071 little-endian.
12072
12073 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12074 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12105
12106 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12107 adjusted to imply powerpc64 and older processors on powerpc64/be.
12108 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12112 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12136 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12138 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12139
12140 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12141 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12142 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12143 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12144
12145 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12146 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12147 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12148 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12149
12150 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12151 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12152 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12153 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12154 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12155 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12156 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12157 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12158 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12159 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12160 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12161
12162 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12163 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12164 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12165 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12166 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12167 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12168 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12169 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12170 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12171 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12172 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12173
12174 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12175 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12176 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12178 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12179 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12180 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12182 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12183 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12184 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12185 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12186
12187 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12188 and adjusted to imply olders processors.
12189 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12190 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12191 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12192 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12193 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12194 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12195 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12196 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12197 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12198 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12199 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12200
12201 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12202 powerpc64/le.
12203 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12204 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12205
12206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12207 powerpc64le.
12208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12210
12211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12212 powerpc64/be.
12213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12214 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12216
12217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12218 powerpc64 and adjusted.
12219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12222 Likewise.
12223
12224 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12225
12226 * sysdeps/tile: Remove.
12227 * sysdeps/unix/sysv/linux/tile: Likewise.
12228 * README (tilegx-*-linux-gnu): Remove from list of supported
12229 configurations.
12230 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12231 contribution of support for generic Linux kernel syscall
12232 interface.
12233 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12234 tilegx configurations.
12235 (Config.install_linux_headers): Do not handle tile.
12236 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12237 in comment.
12238 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12239 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12240 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12241 conditional undefine and redefine.
12242 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12243 in comment.
12244 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12245 conditional undefine and redefine.
12246
12247 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12248
12249 * signal/tst-sigaction.c: New file to test BZ #23069.
12250 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12251
12252 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12253
12254 [BZ #22766]
12255 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12256 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12257 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12258 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12259
12260 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12261
12262 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12263 _DIRENT_MATCHES_DIRENT64 is not defined.
12264 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12265 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12266 is defined.
12267 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12268 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12269
12270 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12271
12272 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12273 version to GCC 8 branch.
12274
12275 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12276
12277 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12278 (check_no_hidden): Use type of original function when declaring
12279 alias.
12280
12281 * sysdeps/unix/sysv/linux/sys/ptrace.h
12282 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12283 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12284 (struct __ptrace_seccomp_metadata): New type.
12285 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12286 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12287 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12288 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12289 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12290 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12291 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12292 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12293 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12294 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12295 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12296 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12297 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12298 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12299 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12300 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12301
12302 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12303
12304 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12305 defined.
12306 * dirent/versionsort.c (versionsort): Likewise.
12307 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12308 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12309 * dirent/versionsort64.c (versionsort64): Likewise.
12310 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12311 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12312 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12313 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12314 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12315 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12316 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12317 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12318 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12319 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12321 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12322 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12323 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12324
12325 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12326
12327 * elf/elf.h (NT_PPC_PKEY): New macro.
12328
12329 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12330
12331 [BZ #23094]
12332 * localedata/locales/hr_HR: fix thousands_sep and
12333 mon_thousands_sep
12334
12335 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12336
12337 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12338 (XTABS): Define to TAB3.
12339
12340 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12341
12342 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12343
12344 * dirent/scandir-tail-common.c: New file.
12345 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12346 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12347 * dirent/scandir.c: Use scandir-tail-common.c.
12348 * dirent/scandirat.c: Likewise.
12349 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12350 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12351 if _DIRENT_MATCHES_DIRENT64 is defined.
12352 * dirent/scandirat64.c (scandirat64): Likewise.
12353 * include/dirent.h (__scandir_tail): Only define iff
12354 _DIRENT_MATCHES_DIRENT64 is not defined.
12355 (__scandir64_tail): Define regardless.
12356 (__scandirat, scandirat64): Remove libc_hidden_proto.
12357 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12358 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12360 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12361 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12362 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12363 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12364
12365 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12366
12367 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12368 New macro.
12369 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12370 Increase to 24.
12371 (_dl_aarch64_cap_flags): Add asimdfhm.
12372
12373 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12374
12375 * sysdeps/nios2/libm-test-ulps: Update.
12376
12377 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12378
12379 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12380 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12381
12382 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12383 requirements.
12384 (_DIRENT_MATCHES_DIRENT64): Undef
12385 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12386 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12387 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12388 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12389 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12390 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12391 use getdents64 syscalls as base.
12392 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12393 symbol if required.
12394 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12395 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12396 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12397 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12398 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12399 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12400 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12401 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12402 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12403 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12404 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12405
12406 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12407
12408 * scripts/test_printers_common.py (init_test): Disable lock elision.
12409
12410 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12411
12412 * math/test-tgmath.c (count_double, count_float,
12413 count_ldouble, count_cdouble, count_cfloat,
12414 count_cldouble): Use volatile int.
12415
12416 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12417
12418 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12419 (conformtest-xfail-conds): Add i386-gnu.
12420 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12421 i386-gnu.
12422 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12423 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12424 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12425 msqid_ds.msg_lrpid): Likewise.
12426 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12427 Likewise.
12428 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12429 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12430 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12431 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12432 unsigned int.
12433 (struct statvfs64): Likewise.
12434 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12435 Likewise.
12436 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12437 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12438 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12439 instead of wait_queue.
12440 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12441 instead of vm_area_struct.
12442 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12443 struct sched_param definition to it.
12444 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12445 * bits/types/struct_sched_param.h: New file.
12446 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12447 <bits/types/struct_sched_param.h> instead of <sched.h>.
12448 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12449 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12450 generic version but include <bits/pthreadtypes.h> to make struct
12451 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12452 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12453 non-compliant.
12454 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12455 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12456 [__USE_XOPEN] (OFDEL): New macro.
12457 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12458 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12459 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12460 prototypes.
12461 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12462 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12463 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12464 non-compliant.
12465 * sysdeps/i386/sys/ucontext.h: Likewise.
12466 * sysdeps/m68k/sys/ucontext.h: Likewise.
12467 * sysdeps/mips/sys/ucontext.h: Likewise.
12468 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12469 * sysdeps/mach/hurd/i386/Makefile
12470 (test-xfail-POSIX/fcntl.h/conform): Add.
12471 (test-xfail-POSIX/signal.h/conform): Add.
12472 (test-xfail-POSIX/semaphore.h/conform): Add.
12473 (test-xfail-POSIX/regex.h/conform): Add.
12474 (test-xfail-POSIX/aio.h/conform): Add.
12475 (test-xfail-POSIX/mqueue.h/conform): Add.
12476 (test-xfail-POSIX/sys/types.h/conform): Add.
12477 (test-xfail-UNIX98/fcntl.h/conform): Add.
12478 (test-xfail-UNIX98/netdb.h/conform): Add.
12479 (test-xfail-UNIX98/signal.h/conform): Add.
12480 (test-xfail-UNIX98/semaphore.h/conform): Add.
12481 (test-xfail-UNIX98/regex.h/conform): Add.
12482 (test-xfail-UNIX98/aio.h/conform): Add.
12483 (test-xfail-UNIX98/ftw.h/conform): Add.
12484 (test-xfail-UNIX98/mqueue.h/conform): Add.
12485 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12486 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12487 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12488 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12489 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12490 (test-xfail-UNIX98/sys/types.h/conform): Add.
12491 (test-xfail-UNIX98/stdlib.h/conform): Add.
12492 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12493 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12494 (test-xfail-POSIX2008/netdb.h/conform): Add.
12495 (test-xfail-POSIX2008/signal.h/conform): Add.
12496 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12497 (test-xfail-POSIX2008/regex.h/conform): Add.
12498 (test-xfail-POSIX2008/aio.h/conform): Add.
12499 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12500 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12501 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12502 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12503 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12504 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12505 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12506 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12507 (test-xfail-XOPEN2K/signal.h/conform): Add.
12508 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12509 (test-xfail-XOPEN2K/regex.h/conform): Add.
12510 (test-xfail-XOPEN2K/aio.h/conform): Add.
12511 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12512 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12513 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12514 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12515 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12516 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12517 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12518 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12519 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12520 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12521 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12522 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12523 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12524 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12525 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12526 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12527 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12528 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12529 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12530 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12531 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12532 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12533 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12534 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12535 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12536 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12537 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12538 i386-gnu.
12539 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12540 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12541
12542 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12543
12544 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12545 --enable-obsolete for powerpc-linux-gnuspe.
12546
12547 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12548
12549 * conform/data/sys/un.h-data: Allow sun_ prefix.
12550 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12551 prototypes.
12552 * sysdeps/mach/include/mach.h: Likewise.
12553 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12554 * sysdeps/mach/include/mach_error.h: Likewise.
12555
12556 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12557
12558 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12559 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12560 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12561 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12562
12563 2018-04-16 Andreas Schwab <schwab@suse.de>
12564
12565 [BZ #19527]
12566 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12567
12568 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12569
12570 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12571 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12572
12573 2018-04-12 DJ Delorie <dj@redhat.com>
12574
12575 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12576 version to 4.16.
12577
12578 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12579
12580 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12581 (struct kernel_sigaction): Use the same definition on 31bit as is used
12582 on 64bit.
12583
12584 2018-04-09 Florian Weimer <fweimer@redhat.com>
12585
12586 [BZ #23037]
12587 * resolv/res_send.c (send_dg): Use designated initializers instead
12588 of assignment to zero-initialize other fields of struct mmsghdr.
12589
12590 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12591
12592 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12593 __READDIR_ALIAS): Undefine after usage.
12594 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12595 __READDIR_R_ALIAS): Likewise.
12596 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12597 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12598 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12599 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12600 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12601 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12602 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12603 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12604 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12605 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12606 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12607 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12608 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12609 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12610 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12611 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12612 * sysdeps/unix/sysv/linux/readdir.c: New file.
12613 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12614 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12615 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12616
12617 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12618
12619 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12620
12621 * manual/charset.texi (Converting a Character): Fix typo.
12622
12623 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12624
12625 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12626
12627 * sysdeps/arm/libm-test-ulps: Update.
12628
12629 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12630 as base implementation.
12631 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12632 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12633 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12634 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12635 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12636 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12637 remove unrequired definitions and update comments.
12638 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12639 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12640 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12641 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12642 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12643 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12644 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12645 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12646 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12647 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12648 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12649 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12650 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12651 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12652 and RESET_SA_RESTORER hooks.
12653
12654 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12655
12656 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12657
12658 2018-04-05 Florian Weimer <fweimer@redhat.com>
12659
12660 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12661 integer overflow, memory leak on error, and indeterminate errno
12662 value. Add a null wide character to terminate the result string.
12663 * manual/charset.texi (Converting a Character): Mention embedded
12664 null bytes in the mbrtowc input string. Explain what happens in
12665 the -2 result case. Do not claim that mbrtowc is simple or
12666 obvious to use. Adjust the description of the code example. Use
12667 @code, not @var, for concrete variables.
12668
12669 2018-04-05 Florian Weimer <fweimer@redhat.com>
12670
12671 * manual/examples/mbstouwcs.c: New file.
12672 * manual/charset.texi (Converting a Character): Include it.
12673
12674 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12675
12676 * include/dirent.h (dirfd): Add hidden proto.
12677 * dirent/dirfd.c (dirfd): Add hidden def.
12678 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12679 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12680
12681 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12682
12683 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12684 sin, cos and sincos to 1 ULP.
12685
12686 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12687
12688 [BZ #19818]
12689 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12690 symbols.
12691 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12692 * elf/tst-absolute-sym.c: New file.
12693 * elf/tst-absolute-sym-lib.c: New file.
12694 * elf/tst-absolute-sym-lib.lds: New file.
12695 * elf/Makefile (tests): Add `tst-absolute-sym'.
12696 (modules-names): Add `tst-absolute-sym-lib'.
12697 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12698 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12699 ($(objpfx)tst-absolute-sym): New dependency.
12700
12701 [BZ #19818]
12702 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12703 parameter.
12704 (SYMBOL_ADDRESS): New macro.
12705 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12706 SYMBOL_ADDRESS for symbol address calculation.
12707 * elf/dl-runtime.c (_dl_fixup): Likewise.
12708 (_dl_profile_fixup): Likewise.
12709 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12710 * elf/rtld.c (dl_main): Likewise.
12711 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12712 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12713 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12714 (elf_machine_rela): Likewise.
12715 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12716 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12717 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12718 (elf_machine_rela): Likewise.
12719 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12720 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12721 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12722 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12723 Likewise.
12724 (elf_machine_reloc): Likewise.
12725 (elf_machine_got_rel): Likewise.
12726 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12727 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12728 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12729 Likewise.
12730 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12731 Likewise.
12732 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12733 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12734 Likewise.
12735 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12736 Likewise.
12737 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12738 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12739 Likewise.
12740 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12741 Likewise.
12742 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12743 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12744
12745 2018-04-04 Zack Weinberg <zackw@panix.com>
12746
12747 * sysdeps/generic/internal-signals.h: Include signal.h,
12748 sigsetops.h, and stdbool.h.
12749 (__libc_signal_block_all): Actually block all signals.
12750 (__libc_signal_block_app): Likewise.
12751 (__libc_signal_restore_set): Actually restore the signal mask.
12752
12753 2018-04-04 Florian Weimer <fweimer@redhat.com>
12754
12755 inet: Actually build and run tst-deadline.
12756 * inet/Makefile (tests-internal): Add tst-deadline and do not
12757 overwrite the variable.
12758 (tests-static-internal): Remove variable.
12759
12760 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12761
12762 [BZ #22947]
12763 * bits/uio-ext.h (RWF_APPEND): New.
12764 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12765 * manual/llio.texi: Document RWF_APPEND.
12766 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12767 (RWF_SUPPORTED): Add RWF_APPEND.
12768
12769 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12770
12771 [BZ #22391]
12772 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12773 check for internal nptl signals.
12774 * nptl/sigaction.c (__sigaction): Likewise.
12775 * signal/sigaddset.c (sigaddset): Likewise.
12776 * signal/sigdelset.c (sigdelset): Likewise.
12777 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12778 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12779 value.
12780 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12781 to filter out internal nptl signals.
12782 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12783 also check realtime signals using standard macros.
12784 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12785 __is_internal_signal, __libc_signal_block_all,
12786 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12787 * sysdeps/nptl/sigfillset.c: Remove file.
12788 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12789 Change return to bool.
12790 (__clear_internal_signals): Remove SIGTIMER clean since it is
12791 equal to SIGCANEL on Linux.
12792 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12793 signal set was constructed using standard functions.
12794
12795 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12796
12797 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12798 ifname is too long.
12799 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12800 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12801 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12802 hidden def.
12803 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12804 * signal/sigaddset.c: Include <sigsetopts.h>.
12805 * signal/sigdelset.c: Likewise.
12806
12807 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12808
12809 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12810 (__cos): Likewise.
12811 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12812 logic as sin and cos.
12813
12814 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12815
12816 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12817 inputs. Return correct sign.
12818 (do_sincos): Remove small input check before do_sin, let do_sin set
12819 the sign.
12820 (__sin): Likewise.
12821 (__cos): Likewise.
12822
12823 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12824
12825 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12826 (do_cos_slow): Likewise.
12827 (do_sin_slow): Likewise.
12828 (reduce_and_compute): Likewise.
12829 (slow): Likewise.
12830 (slow1): Likewise.
12831 (slow2): Likewise.
12832 (sloww): Likewise.
12833 (sloww1): Likewise.
12834 (sloww2): Likewise.
12835 (bslow): Likewise.
12836 (bslow1): Likewise.
12837 (bslow2): Likewise.
12838 (cslow2): Likewise.
12839
12840 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12841
12842 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12843 (do_cos): Remove corp parameter and calculations.
12844 (do_sin): Likewise.
12845 (do_sincos): Remove cor variable.
12846 (__sin): Use do_sincos for huge inputs.
12847 (__cos): Likewise.
12848 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12849 (reduce_and_compute_sincos): Remove unused function.
12850
12851 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12852
12853 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12854 reduce_sincos, improve accuracy to 136 bits.
12855 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12856 (__sin): Use improved reduction and simplified do_sincos calculation.
12857 (__cos): Likewise.
12858 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12859
12860 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12861
12862 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12863 (do_sincos_2): Likewise.
12864 (__sin): Remove middle range reduction case.
12865 (__cos): Likewise.
12866 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12867 reduction case.
12868
12869 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12870
12871 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12872 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12873 inputs.
12874 (__cos): Likewise.
12875 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12876
12877 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12878
12879 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12880 version to 4.16
12881
12882 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12883
12884 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12885 Remove definitions.
12886 (opendir_oflags): Use O_DIRECTORY regardless.
12887 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12888 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12889
12890 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12891
12892 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12893 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12894 macros.
12895 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12896 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12897 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12898 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12899 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12900 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12901
12902 * htl/Makefile: Bump licence to LGPL 2.1+.
12903 * htl/alloca_cutoff.c: Likewise.
12904 * htl/cthreads-compat.c: Likewise.
12905 * htl/lockfile.c: Likewise.
12906 * htl/pt-alloc.c: Likewise.
12907 * htl/pt-cancel.c: Likewise.
12908 * htl/pt-cleanup.c: Likewise.
12909 * htl/pt-create.c: Likewise.
12910 * htl/pt-dealloc.c: Likewise.
12911 * htl/pt-detach.c: Likewise.
12912 * htl/pt-exit.c: Likewise.
12913 * htl/pt-getattr.c: Likewise.
12914 * htl/pt-initialize.c: Likewise.
12915 * htl/pt-internal.h: Likewise.
12916 * htl/pt-join.c: Likewise.
12917 * htl/pt-self.c: Likewise.
12918 * htl/pt-setcancelstate.c: Likewise.
12919 * htl/pt-setcanceltype.c: Likewise.
12920 * htl/pt-sigmask.c: Likewise.
12921 * htl/pt-spin-inlines.c: Likewise.
12922 * htl/pt-testcancel.c: Likewise.
12923 * htl/pt-yield.c: Likewise.
12924 * htl/tests/test-1.c: Likewise.
12925 * htl/tests/test-10.c: Likewise.
12926 * htl/tests/test-11.c: Likewise.
12927 * htl/tests/test-12.c: Likewise.
12928 * htl/tests/test-13.c: Likewise.
12929 * htl/tests/test-14.c: Likewise.
12930 * htl/tests/test-15.c: Likewise.
12931 * htl/tests/test-16.c: Likewise.
12932 * htl/tests/test-17.c: Likewise.
12933 * htl/tests/test-2.c: Likewise.
12934 * htl/tests/test-3.c: Likewise.
12935 * htl/tests/test-4.c: Likewise.
12936 * htl/tests/test-5.c: Likewise.
12937 * htl/tests/test-6.c: Likewise.
12938 * htl/tests/test-7.c: Likewise.
12939 * htl/tests/test-8.c: Likewise.
12940 * htl/tests/test-9.c: Likewise.
12941 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12942 * sysdeps/htl/bits/cancelation.h: Likewise.
12943 * sysdeps/htl/bits/pthread-np.h: Likewise.
12944 * sysdeps/htl/bits/pthread.h: Likewise.
12945 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12946 * sysdeps/htl/bits/semaphore.h: Likewise.
12947 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12948 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12949 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12950 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12951 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12952 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12953 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12954 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12955 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12956 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12957 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12958 * sysdeps/htl/old_pt-atfork.c: Likewise.
12959 * sysdeps/htl/pt-atfork.c: Likewise.
12960 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12961 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12962 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12963 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12964 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12965 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12966 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12967 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12968 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12969 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12970 * sysdeps/htl/pt-attr-init.c: Likewise.
12971 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12972 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12973 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12974 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12975 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12976 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12977 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12978 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12979 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12980 * sysdeps/htl/pt-attr.c: Likewise.
12981 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12982 * sysdeps/htl/pt-barrier-init.c: Likewise.
12983 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12984 * sysdeps/htl/pt-barrier.c: Likewise.
12985 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12986 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12987 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12988 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12989 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12990 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12991 * sysdeps/htl/pt-cond-init.c: Likewise.
12992 * sysdeps/htl/pt-cond-signal.c: Likewise.
12993 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12994 * sysdeps/htl/pt-cond-wait.c: Likewise.
12995 * sysdeps/htl/pt-cond.c: Likewise.
12996 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12997 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12998 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12999 * sysdeps/htl/pt-condattr-init.c: Likewise.
13000 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13001 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13002 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13003 * sysdeps/htl/pt-equal.c: Likewise.
13004 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13005 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13006 * sysdeps/htl/pt-getschedparam.c: Likewise.
13007 * sysdeps/htl/pt-getspecific.c: Likewise.
13008 * sysdeps/htl/pt-init-specific.c: Likewise.
13009 * sysdeps/htl/pt-key-create.c: Likewise.
13010 * sysdeps/htl/pt-key-delete.c: Likewise.
13011 * sysdeps/htl/pt-key.h: Likewise.
13012 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13013 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13014 * sysdeps/htl/pt-mutex-init.c: Likewise.
13015 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13016 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13017 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13018 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13019 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13020 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13021 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13022 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13023 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13024 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13025 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13026 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13027 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13028 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13029 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13030 * sysdeps/htl/pt-mutexattr.c: Likewise.
13031 * sysdeps/htl/pt-once.c: Likewise.
13032 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13033 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13034 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13035 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13036 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13037 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13038 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13039 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13040 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13041 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13042 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13043 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13044 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13045 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13046 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13047 * sysdeps/htl/pt-setschedparam.c: Likewise.
13048 * sysdeps/htl/pt-setschedprio.c: Likewise.
13049 * sysdeps/htl/pt-setspecific.c: Likewise.
13050 * sysdeps/htl/pt-spin.c: Likewise.
13051 * sysdeps/htl/pt-startup.c: Likewise.
13052 * sysdeps/htl/pthread.h: Likewise.
13053 * sysdeps/htl/sem-close.c: Likewise.
13054 * sysdeps/htl/sem-destroy.c: Likewise.
13055 * sysdeps/htl/sem-getvalue.c: Likewise.
13056 * sysdeps/htl/sem-init.c: Likewise.
13057 * sysdeps/htl/sem-open.c: Likewise.
13058 * sysdeps/htl/sem-post.c: Likewise.
13059 * sysdeps/htl/sem-timedwait.c: Likewise.
13060 * sysdeps/htl/sem-trywait.c: Likewise.
13061 * sysdeps/htl/sem-unlink.c: Likewise.
13062 * sysdeps/htl/sem-wait.c: Likewise.
13063 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13064 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13065 * sysdeps/mach/htl/pt-block.c: Likewise.
13066 * sysdeps/mach/htl/pt-spin.c: Likewise.
13067 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13068 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13069 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13070 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13071 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13072 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13073 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13074 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13075 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13076 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13077 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13078 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13079 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13080 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13081 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13082 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13083 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13084 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13085 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13087 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13088 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13089 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13090 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13091 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13092 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13093 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13094 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13095 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13096 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13097 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13098 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13099 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13100 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13101 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13102 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13103 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13104 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13105 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13106 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13107 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13108 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13109 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13110
13111 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13112 * README: Remove the mention of out-of-tree patches needed for
13113 GNU/Hurd.
13114
13115 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13116 (UTIME_NOW, UTIME_OMIT): Define macros.
13117
13118 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13119 instead of pthread_detach.
13120 (__cthread_fork): Call __pthread_create instead of pthread_create.
13121 (__cthread_keycreate): Call __pthread_key_create instead of
13122 pthread_key_create.
13123 (__cthread_getspecific): Call __pthread_getspecific instead of
13124 pthread_getspecific.
13125 (__cthread_setspecific): Call __pthread_setspecific instead of
13126 pthread_setspecific.
13127 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13128 __pthread_mutex_unlock instead of pthread_mutex_lock and
13129 pthread_mutex_unlock.
13130 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13131 ___pthread_get_cleanup_stack.
13132 (__pthread_get_cleanup_stack): New strong alias.
13133 * htl/pt-create.c: Include <pthreadP.h>.
13134 (entry_point): Call __pthread_exit instead of pthread_exit.
13135 (pthread_create): Rename to __pthread_create.
13136 (pthread_create): New strong alias.
13137 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13138 (pthread_detach): New strong alias.
13139 (__pthread_detach): Call __pthread_cond_broadcast instead of
13140 pthread_cond_broadcast.
13141 * htl/pt-exit.c: Include <pthreadP.h>.
13142 (__pthread_exit): Call __pthread_setcancelstate and
13143 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13144 __pthread_get_cleanup_stack.
13145 * htl/pt-testcancel.c: Include <pthreadP.h>.
13146 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13147 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13148 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13149 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13150 pthread_attr_getstacksize.
13151 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13152 Rename to __pthread_attr_getstackaddr.
13153 (pthread_attr_getstackaddr): New strong alias.
13154 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13155 Rename to __pthread_attr_getstacksize.
13156 (pthread_attr_getstacksize): New strong alias.
13157 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13158 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13159 (pthread_attr_setstack): New strong alias.
13160 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13161 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13162 pthread_attr_getstacksize, pthread_attr_setstacksize and
13163 pthread_attr_setstackaddr.
13164 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13165 Rename to __pthread_attr_setstackaddr.
13166 (pthread_attr_setstackaddr): New strong alias.
13167 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13168 Rename to __pthread_attr_setstacksize.
13169 (pthread_attr_setstacksize): New strong alias.
13170 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13171 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13172 pthread_exit.
13173 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13174 (__pthread_key_create): New hidden def.
13175 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13176 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13177 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13178 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13179 __pthread_setspecific, __pthread_setcancelstate,
13180 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13181 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13182 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13183 declarations.
13184 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13185 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13186 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13187 (pthread_attr_setstackaddr): New strong alias.
13188 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13189 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13190 (pthread_attr_setstacksize): New strong alias.
13191 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13192 (call_exit): Call __pthread_exit instead of pthread_exit.
13193 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13194 (_pthread_mutex_init): New hidden definition.
13195 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13196 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13197 instead of pthread_attr_init and pthread_attr_setstack.
13198
13199 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13200 __vm_deallocate instead of vm_allocate and vm_deallocate.
13201 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13202 setenv.
13203 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13204 of geteuid.
13205 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13206 strdup.
13207 * hurd/siginfo.c: Include <libioP.h>.
13208 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13209 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13210 munmap.
13211 * mach/devstream.c: Include <libioP.h>.
13212 (dealloc_ref): Call __mach_port_deallocate instead of
13213 mach_port_deallocate.
13214 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13215 Call __mach_port_deallocate instead of mach_port_deallocate.
13216 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13217 pathconf.
13218 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13219 munmap.
13220 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13221 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13222 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13223 of munmap.
13224 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13225 of close.
13226 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13227 instead of sysconf.
13228 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13229 __clock_gettime instead of clock_gettime.
13230 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13231 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13232 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13233 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13234 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13235 tcgetattr.
13236 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13237 __clock_gettime and __nanosleep instead of clock_gettime and
13238 nanosleep.
13239 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13240 __hurd_catch_signal.
13241 (hurd_catch_signal): New strong alias.
13242 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13243 __hurd_catch_signal instead of hurd_catch_signal.
13244 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13245 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13246 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13247 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13248 (_hurd_thread_sigstate): Add hidden def.
13249 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13250 mutex_unlock.
13251 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13252 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13253 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13254 __hurd_file_name_path_lookup.
13255 (hurd_file_name_path_lookup): New strong alias.
13256 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13257 hurd_file_name_path_lookup.
13258 * mach/errstring.c (mach_error_type): Add hidden def.
13259 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13260 * mach/mutex-init.c (__mutex_init): Add hidden def.
13261 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13262 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13263 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13264 * sysdeps/mach/hurd/getcwd.c
13265 (_hurd_canonicalize_directory_name_internal): Rename to
13266 __hurd_canonicalize_directory_name_internal.
13267 (_hurd_canonicalize_directory_name_internal): New strong alias.
13268 (__canonicalize_directory_name_internal, __getcwd): Call
13269 __hurd_canonicalize_directory_name_internal instead of
13270 _hurd_canonicalize_directory_name_internal.
13271 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13272 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13273 hidden defs.
13274 * sysdeps/hurd/include/hurd.h: New file.
13275 * sysdeps/hurd/include/hurd/fd.h: New file.
13276 * sysdeps/hurd/include/hurd/signal.h: New file.
13277 * sysdeps/mach/include/lock-intern.h: New file.
13278 * sysdeps/mach/include/mach.h: New file.
13279 * sysdeps/mach/include/mach/mig_support.h: New file.
13280 * sysdeps/mach/include/mach_error.h: New file.
13281 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13282 prototype.
13283 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13284 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13285 _HEADER_H_HIDDEN_DEF macro.
13286 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13287 _hurd_fd_error_signal): Add hidden prototype.
13288 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13289 hidden def.
13290 * libio/iolibio.h (_IO_puts): New hidden prototype.
13291 * libio/ioputs.c (_IO_puts): New hidden def.
13292 * sysdeps/mach/hurd/localplt.data: New file.
13293
13294 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13295 Amos Jeffries <squid3@treenet.co.nz>
13296 David Michael <fedora.dm0@gmail.com>
13297 Marco Gerards <marco@gnu.org>
13298 Marcus Brinkmann <marcus@gnu.org>
13299 Neal H. Walfield <neal@gnu.org>
13300 Pino Toscano <toscano.pino@tiscali.it>
13301 Richard Braun <rbraun@sceen.net>
13302 Roland McGrath <roland@gnu.org>
13303 Samuel Thibault <samuel.thibault@ens-lyon.org>
13304 Thomas DiModica <ricinwich@yahoo.com>
13305 Thomas Schwinge <tschwinge@gnu.org>
13306
13307 * htl: New directory.
13308 * sysdeps/htl: New directory.
13309 * sysdeps/hurd/htl: New directory.
13310 * sysdeps/i386/htl: New directory.
13311 * sysdeps/mach/htl: New directory.
13312 * sysdeps/mach/hurd/htl: New directory.
13313 * sysdeps/mach/hurd/i386/htl: New directory.
13314 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13315 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13316 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13317
13318 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13319
13320 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13321 signals in thread created for runing timers.
13322
13323 2018-04-01 Florian Weimer <fweimer@redhat.com>
13324
13325 * support/support_format_addrinfo.c (support_format_addrinfo):
13326 Include unknown error number in formatted result.
13327
13328 2018-03-29 Florian Weimer <fweimer@redhat.com>
13329
13330 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13331 capture SIGBUS.
13332
13333 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13334
13335 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13336 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13337 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13338 (__ASSUME_CLONE_BACKWARDS): Define.
13339
13340 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13341
13342 [BZ #23024]
13343 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13344 early when linux sentinel value is set.
13345
13346 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13347
13348 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13349
13350 2018-03-27 Andreas Schwab <schwab@suse.de>
13351
13352 [BZ #23005]
13353 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13354 allocation of private copy of nsaddr_list fails.
13355
13356 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13357
13358 [BZ #16552]
13359 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13360 * sysdeps/unix/sysv/linux/umount.c: ... here.
13361 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13362 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13363 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13364 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13365 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13366 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13367 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13368
13369 2018-03-26 Andreas Schwab <schwab@suse.de>
13370
13371 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13372 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13373 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13374 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13375 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13376 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13377 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13378 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13379 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13380 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13381 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13382 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13383 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13384 (R_RISCV_NUM): Define.
13385
13386 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13387
13388 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13389 TLS declaration of errno.
13390 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13391 __libc_setup_tls.
13392 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13393 (ARCH_SETUP_TLS): Likewise.
13394 * sysdeps/mach/hurd/libc-start.h: New file copied from
13395 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13396 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13397 instead of __libc_setup_tls.
13398 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13399 __libc_setup_tls before initializing libpthread and running _hurd_init
13400 which starts the signal thread.
13401 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13402 Declare function.
13403 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13404
13405 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13406
13407 [BZ #22998]
13408 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13409 after it is defined.
13410
13411 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13412 Max Horn <max@quendi.de>
13413
13414 [BZ #22644]
13415 CVE-2017-18269
13416 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13417 branch conditions.
13418 * string/test-memmove.c (do_test2): New testcase.
13419
13420 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13421
13422 * sysdeps/generic/frame.h: Remove file.
13423 * sysdeps/arm/frame.h: Likewise.
13424 * sysdeps/hppa/frame.h: Likewise.
13425 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13426 macro.
13427 (GET_FRAME): Likewise.
13428 (GET_STACK): Likewise.
13429 (CALL_SIGHANDLER): Likewise.
13430 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13431 Likewise.
13432 (GET_FRAME): Likewise.
13433 (GET_STACK): Likewise.
13434 (CALL_SIGHANDLER): Likewise.
13435 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13436 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13437 (GET_FRAME): Likewise.
13438 (GET_STACK): Likewise.
13439 (CALL_SIGHANDLER): Likewise.
13440 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13441 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13442 (GET_FRAME): Likewise.
13443 (GET_STACK): Likewise.
13444 (ADVANCE_STACK_FRAME): Likewise.
13445 (CALL_SIGHANDLER): Likewise.
13446 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13447 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13448 (GET_FRAME): Likewise.
13449 (GET_STACK): Likewise.
13450 (CALL_SIGHANDLER): Likewise.
13451 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13452 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13453 (GET_FRAME): Likewise.
13454 (GET_STACK): Likewise.
13455 (CALL_SIGHANDLER): Likewise.
13456 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13457 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13458 (GET_FRAME): Likewise.
13459 (GET_STACK): Likewise.
13460 (CALL_SIGHANDLER): Likewise.
13461 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13462 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13463 (GET_FRAME): Likewise.
13464 (GET_STACK): Likewise.
13465 (CALL_SIGHANDLER): Likewise.
13466 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13467 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13468 (GET_FRAME): Likewise.
13469 (GET_STACK): Likewise.
13470 (CALL_SIGHANDLER): Likewise.
13471 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13472 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13473 (GET_FRAME): Likewise.
13474 (GET_STACK): Likewise.
13475 (CALL_SIGHANDLER): Likewise.
13476 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13477 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13478 (GET_FRAME): Likewise.
13479 (GET_STACK): Likewise.
13480 (CALL_SIGHANDLER): Likewise.
13481 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13482 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13483 (GET_FRAME): Likewise.
13484 (GET_STACK): Likewise.
13485 (CALL_SIGHANDLER): Likewise.
13486 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13487 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13488 (GET_FRAME): Likewise.
13489 (GET_STACK): Likewise.
13490 (CALL_SIGHANDLER): Likewise.
13491 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13492 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13493 (FIRST_FRAME_POINTER): Likewise.
13494 (ADVANCE_STACK_FRAME): Likewise.
13495 (GET_STACK): Likewise.
13496 (GET_FRAME): Likewise.
13497 (CALL_SIGHANDLER): Likewise.
13498 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13499 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13500 (ADVANCE_STACK_FRAME): Likewise.
13501 (GET_STACK): Likewise.
13502 (GET_FRAME): Likewise.
13503 (CALL_SIGHANDLER): Likewise.
13504 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13505 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13506 (GET_FRAME): Likewise.
13507 (GET_STACK): Likewise.
13508 (CALL_SIGHANDLER): Likewise.
13509 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13510 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13511 (GET_FRAME): Likewise.
13512 (GET_STACK): Likewise.
13513 (CALL_SIGHANDLER): Likewise.
13514
13515 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13516
13517 * sysdeps/x86_64/backtrace.c: Move to ....
13518 * debug/backtrace.c: ... here.
13519 * sysdeps/aarch64/backtrace.c: Remove file.
13520 * sysdeps/alpha/backtrace.c: Likewise.
13521 * sysdeps/hppa/backtrace.c: Likewise.
13522 * sysdeps/ia64/backtrace.c: Likewise.
13523 * sysdeps/mips/backtrace.c: Likewise.
13524 * sysdeps/nios2/backtrace.c: Likewise.
13525 * sysdeps/riscv/backtrace.c: Likewise.
13526 * sysdeps/sh/backtrace.c: Likewise.
13527 * sysdeps/tile/backtrace.c: Likewise.
13528
13529 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13530
13531 [BZ #22987]
13532 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13533 function.
13534 (fdimf): Likewise.
13535 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13536
13537 [BZ #17343]
13538 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13539 possibly overflowing computations.
13540
13541 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13542
13543 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13544 values from Linux-specific section now that it is in the GNU section.
13545 * sysdeps/gnu/errlist.c: Regenerate.
13546
13547 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13548
13549 * math/Makefile (libm-narrow-fns): Add sub.
13550 (libm-test-funcs-narrow): Likewise.
13551 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13552 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13553 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13554 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13555 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13556 (NARROW_SUB_TRIVIAL): Likewise.
13557 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13558 macro.
13559 (__dsubl): Likewise.
13560 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13561 dsub.
13562 (CFLAGS-nldbl-dsub.c): New variable.
13563 (CFLAGS-nldbl-fsub.c): Likewise.
13564 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13565 __nldbl_dsubl.
13566 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13567 prototype.
13568 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13569 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13570 * math/auto-libm-test-in: Add tests of sub.
13571 * math/auto-libm-test-out-narrow-sub: New generated file.
13572 * math/libm-test-narrow-sub.inc: New file.
13573 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13574 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13575 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13576 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13577 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13578 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13579 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13580 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13581 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13582 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13583 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13584 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13585 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13586 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13587 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13588 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13589 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13590 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13591 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13592 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13593 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13594 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13595 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13596 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13601 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13602 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13609 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13610 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13611 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13612 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13613 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13614 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13615 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13616 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13617 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13618 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13619
13620 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13621
13622 [BZ #20079]
13623 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13624
13625 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13626
13627 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13628
13629 2018-03-18 Richard Braun <rbraun@sceen.net>
13630
13631 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13632 thread reference.
13633
13634 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13635
13636 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13637 (__libc_cleanup_fct): Define function.
13638 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13639 __libc_cleanup_end): Rewrite implementation using
13640 __attribute__ ((__cleanup__)).
13641 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13642 * hurd/Makefile (routines): Add hurdlock.
13643 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13644 interface.
13645 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13646 * hurd/hurdpid.c: Include <lowlevellock.h>
13647 (_S_msg_proc_newids): Use lll_wait to synchronize.
13648 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13649 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13650 * mach/Makefile (lock-headers): Remove machine-lock.h.
13651 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13652 <machine-lock.h>.
13653 (__spin_lock_t): New type.
13654 (__SPIN_LOCK_INITIALIZER): New macro.
13655 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13656 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13657 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13658 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13659 (__mutex_init): Initialize with lll.
13660 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13661 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13662 needing lll.
13663 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13664 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13665 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13666 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13667 (__setpgid): Use lll for synchronization.
13668 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13669 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13670 instead of <cthreads.h>.
13671 (_IO_lock_inexpensive): New macro
13672 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13673 (__libc_lock_self0): New declaration.
13674 (__libc_lock_owner_self): New macro.
13675 (__libc_key_t): Remove type.
13676 (_LIBC_LOCK_INITIALIZER): New macro.
13677 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13678 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13679 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13680 __libc_lock_define_initialized_recursive,
13681 __rtld_lock_define_initialized_recursive,
13682 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13683 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13684 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13685 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13686 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13687 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13688 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13689 New macros.
13690 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13691 * hurd/hurdlock.c: New file.
13692 * hurd/hurdlock.h: New file.
13693 * mach/lowlevellock.h: New file
13694
13695 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13696
13697 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13698 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13699 when opening a symlink with O_NOFOLLOW.
13700 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13701 path when flags contains O_NOFOLLOW.
13702 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13703 if flags contains O_DIRECTORY and the result is a directory.
13704 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13705 oneself when the pointer given in D is nul (as set by ext2fs).
13706 * sysdeps/mach/hurd/mlockall.c: New file.
13707 * sysdeps/mach/hurd/munlockall.c: New file.
13708
13709 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13710
13711 * hurd/hurdsig.c: Include <pthread.h>.
13712 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13713 get the signal thread stack layout.
13714 * hurd/Makefile (headers): Remove threadvar.h.
13715 (inline-headers): Remove threadvar.h.
13716 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13717 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13718 __hurd_threadvar_max, __hurd_errno_location.
13719 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13720 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13721 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13722 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13723 unless TLS is not initialized yet, in which case we do not need a
13724 critical section yet anyway.
13725 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13726 <machine-sp.h>.
13727 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13728 declarations.
13729 (__hurd_threadvar_index): Remove enum.
13730 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13731 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13732 inlines.
13733 (__hurd_reply_port0): New variable declaration.
13734 (__hurd_local_reply_port): New macro.
13735 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13736 (interrupted_reply_port_location): Add thread_t parameter. Use it
13737 with THREAD_TCB to access thread-local variables.
13738 (_hurdsig_abort_rpcs): Pass ss->thread to
13739 interrupted_reply_port_location.
13740 (_hurd_internal_post_signal): Likewise.
13741 (_hurdsig_init): Use presence of cthread_fork instead of
13742 __hurd_threadvar_stack_mask to start signal thread by hand.
13743 Remove signal thread threadvar initialization.
13744 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13745 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13746 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13747 of threadvar.
13748 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13749 __libc_lock_self0.
13750 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13751 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13752 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13753 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13754 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13755 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13756 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13757 define variables.
13758 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13759 <hurd/threadvar.h>.
13760 [IS_IN(rtld)] (rtld_errno): New variable.
13761 [IS_IN(rtld)] (__errno_location): New weak function.
13762 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13763 * sysdeps/mach/hurd/errno.c: Remove file.
13764 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13765 (__fork): Remove THREADVAR_SPACE macro and its use.
13766 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13767 variable.
13768 (init): Do not initialize threadvar.
13769 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13770 symbol.
13771 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13772 __hurd_local_reply_port instead of threadvar.
13773 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13774 _hurd_sigstate fields.
13775 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13776 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13777 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13778 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13779 instead of threadvar.
13780 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13781 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13782 (use_threadvar, global_reply_port): Remove variables.
13783 (__hurd_reply_port0): New variable.
13784 (__mig_get_reply_port): Use __hurd_local_reply_port and
13785 __hurd_reply_port0 instead of threadvar.
13786 (__mig_dealloc_reply_port): Likewise.
13787 (__mig_init): Do not initialize threadvar.
13788 * sysdeps/mach/hurd/profil.c: Fix comment.
13789 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13790 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13791 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13792 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13793 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13794 __cthread_setspecific.
13795 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13796 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13797 __cthread_t instead of cthread_fork, cthread_detach,
13798 pthread_getattr_np, pthread_attr_getstack.
13799 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13800 __cthread_keycreate.
13801 (cthread_getspecific): Rename to __cthread_getspecific.
13802 (cthread_setspecific): Rename to __cthread_setspecific.
13803 (__libc_getspecific): Use __cthread_getspecific instead of
13804 cthread_getspecific.
13805 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13806 __cthread_keycreate instead of cthread_keycreate.
13807 (__libc_setspecific): Use __cthread_setspecific instead of
13808 cthread_setspecific.
13809 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13810 Likewise.
13811 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13812 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13813 testing whether it is defined.
13814
13815 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13816
13817 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13818 Define macro.
13819 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13820 * sysdeps/mach/i386/thread_state.h
13821 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13822 i386_THREAD_STATE.
13823 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13824 i386_THREAD_STATE.
13825 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13826
13827 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13828 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13829
13830 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13831 macros.
13832 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13833 descriptor instead of creating a new one.
13834 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13835
13836 * mach/setup-thread.c: Include <ldsodefs.h>.
13837 (__mach_setup_thread): Call _dl_allocate_tls, pass
13838 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13839 MACHINE_THREAD_STATE_FLAVOR, before getting
13840 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13841 MACHINE_THREAD_STATE_FLAVOR with the result.
13842 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13843 MACHINE_THREAD_STATE_FIX_NEW.
13844 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13845 too. Add original thread parameter.
13846
13847 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13848
13849 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13850 Remove inline function.
13851
13852 * sysdeps/i386/fpu/libm-test-ulps: Update.
13853 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13854
13855 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13856
13857 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13858 commit.
13859
13860 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13861
13862 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13863 (__sincos_code): Remove define and undefine.
13864 [__FAST_MATH__] (__sincos): Remove inline function.
13865 [__FAST_MATH__] (__sincosf): Remove inline function.
13866 [__FAST_MATH__] (__sincosl): Remove inline function.
13867 (__atan2l): Remove inline functions.
13868 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13869 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13870 function.
13871 (floor): Remove inline function.
13872 (ceil): Likewise.
13873 [__FAST_MATH__] (__ldexp_code): Remove macro.
13874 [__FAST_MATH__] (ldexp): Remove inline function.
13875 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13876 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13877 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13878 [__USE_ISOC99] (__lrint_code): Remove macro.
13879 [__USE_ISOC99] (__llrint_code): Likewise.
13880 [__USE_ISOC99] (lrintf): Remove inline function.
13881 [__USE_ISOC99] (lrint): Likewise.
13882 [__USE_ISOC99] (lrintl): Likewise.
13883 [__USE_ISOC99] (llrint): Likewise.
13884 [__USE_ISOC99] (llrintf): Likewise.
13885 [__USE_ISOC99] (llrintl): Likewise.
13886
13887 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13888
13889 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13890 (__ieee754_sqrtf): Remove.
13891 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13892 (__ieee754_sqrtf): Remove.
13893 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13894 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13895 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13896 (__ieee754_sqrtf): Remove.
13897 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13898 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13899 (sqrtf): Remove.
13900 (sqrtl): Remove.
13901 (__ieee754_sqrt): Remove.
13902 (__ieee754_sqrtf): Remove.
13903 (__ieee754_sqrtl): Remove.
13904 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13905 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13906 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13907 (__ieee754_sqrtf): Remove.
13908 (__ieee754_sqrtl): Remove.
13909
13910 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13911
13912 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13913 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13914 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13915 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13916 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13917 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13918 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13919 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13920 Likewise.
13921 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13922 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13923 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13924 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13925 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13926 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13927 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13928 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13929 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13930 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13931 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13932 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13933 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13934 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13935 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13936 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13937 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13938 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13939 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13940 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13941 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13942 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13943 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13944 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13945 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13946 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13947 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13948 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13949 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13950 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13951 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13952 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13953 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13954 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13955 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13956 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13957 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13958 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13959 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13960 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13961
13962 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13963
13964 * include/math.h (sqrt): Declare with asm redirect.
13965 (sqrtf): Likewise.
13966 (sqrtl): Likewise.
13967 (sqrtf128): Likewise.
13968 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13969 nonlib and libnldbl with -fmath-errno.
13970 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13971 * math/w_sqrt_template.c: Likewise.
13972 * math/w_sqrtf_compat.c: Likewise.
13973 * math/w_sqrtl_compat.c: Likewise.
13974 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13975 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13976 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13977 complex.h.
13978
13979 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13980
13981 * benchtests/Makefile: Define _ISOMAC.
13982 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13983 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13984 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13985 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13986 * benchtests/bench-timing.h: Define attribute_hidden.
13987
13988 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13989
13990 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13991 mov + lsr.
13992
13993 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13994
13995 [BZ #22963]
13996 * localedata/locales/cs_CZ (mon): Rename to...
13997 (alt_mon): This.
13998 (mon): Import from CLDR (genitive case).
13999
14000 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14001
14002 [BZ #22937]
14003 * localedata/locales/el_CY (abmon): Rename to...
14004 (ab_alt_mon): This.
14005 (abmon): Import from CLDR (abbreviated genitive case).
14006 * localedata/locales/el_GR (abmon): Rename to...
14007 (ab_alt_mon): This.
14008 (abmon): Import from CLDR (abbreviated genitive case).
14009
14010 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14011
14012 [BZ #22932]
14013 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14014
14015 2018-03-15 Robert Buj <robert.buj@gmail.com>
14016
14017 [BZ #22848]
14018 * localedata/locales/ca_ES (abmon): Rename to...
14019 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14020 (mon): Rename to...
14021 (alt_mon): This.
14022 (abmon): Import from CLDR (genitive case, month names preceded by
14023 "de" or "d’").
14024 (mon): Likewise.
14025 (abday): Synchronize with CLDR.
14026 (d_t_fmt): Likewise.
14027 (d_fmt): Likewise.
14028 (am_pm): Likewise.
14029
14030 (LC_TIME): Improve indentation.
14031 (LC_TELEPHONE): Likewise.
14032 (LC_NAME): Likewise.
14033 (LC_ADDRESS): Likewise.
14034
14035 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14036
14037 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14038 (lrintf): Remove definitions used only with old GCC.
14039 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14040 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14041 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14042 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14043 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14044 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14045 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14046 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14047 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14048 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14049 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14050 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14051 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14052 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14053 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14054 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14055 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14056 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14057 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14058 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14059 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14060 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14061 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14062 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14063 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14064 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14065 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14066 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14067
14068 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14069
14070 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14071 instruction to unbreak builds with binutils 2.26 and older.
14072
14073 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14074
14075 * sysdeps/aarch64/strncmp.S (count): New macro.
14076 (strncmp): Store misaligned length in SRC1 in COUNT.
14077 (mutual_align): Adjust.
14078 (misaligned8): Load dword at a time when it is safe.
14079
14080 2018-03-12 Zack Weinberg <zackw@panix.com>
14081
14082 [BZ #1190]
14083 [BZ #19476]
14084 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14085 if the _IO_EOF_SEEN bit is already set; update commentary.
14086 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14087 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14088
14089 * support/support_openpty.c, support/tty.h: New files.
14090 * support/Makefile (libsupport-routines): Add support_openpty.
14091
14092 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14093 New test cases.
14094 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14095 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14096
14097 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14098
14099 * po/pt_BR.po: Update translations.
14100
14101 2018-03-12 David Michael <fedora.dm0@gmail.com>
14102
14103 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14104 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14105 get a port to the startup server.
14106
14107 2018-03-11 Zack Weinberg <zackw@panix.com>
14108
14109 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14110 before nldbl-compat.h.
14111
14112 2018-03-10 Zack Weinberg <zackw@panix.com>
14113
14114 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14115 math.h or math_private.h.
14116
14117 * sysdeps/alpha/fpu/s_isnan.c
14118 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14119 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14120 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14121 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14122 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14123 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14124 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14125 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14126 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14127 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14128 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14129 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14130 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14131 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14132 Include math_private.h.
14133
14134 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14135 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14136 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14137 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14138 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14139 * sysdeps/powerpc/power7/fpu/s_logb.c:
14140 Include math.h and math_private.h.
14141
14142 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14143 uses of $at in .set noat / .set at.
14144
14145 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14146
14147 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14148 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14149 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14150 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14151 Likewise.
14152
14153 2018-03-09 Florian Weimer <fweimer@redhat.com>
14154
14155 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14156 in comment.
14157
14158 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14159
14160 [BZ #22919]
14161 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14162 Add nop before __startcontext, add explaining comments.
14163
14164 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14165
14166 [BZ #22926]
14167 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14168 empty for __SPE__.
14169 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14170 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14171 Do not build hardware transactional code for __SPE__.
14172 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14173 (__lll_trylock_elision): Likewise.
14174 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14175 (__lll_unlock_elision): Likewise.
14176
14177 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14178 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14179 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14180 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14181 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14182 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14183 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14184 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14185 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14186 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14187 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14188 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14189 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14190 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14191 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14192 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14193 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14194 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14195 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14196 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14197 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14198 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14199 (__ASSUME_CLONE_BACKWARDS): Define.
14200 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14201 __clone2 if __NR_clone2 is defined.
14202 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14203 (__ASSUME_CLONE_BACKWARDS): Likewise.
14204 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14205 (__ASSUME_CLONE_BACKWARDS): Likewise.
14206 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14207 (__ASSUME_CLONE2): Likewise.
14208 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14209 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14210 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14211 variants and the define architecture can use.
14212 (__ASSUME_CLONE_DEFAULT): Define as default.
14213 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14214 (__ASSUME_CLONE_BACKWARDS): Likewise.
14215 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14216 (__ASSUME_CLONE_BACKWARDS): Likewise.
14217 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14218 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14219
14220 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14221
14222 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14223
14224 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14225 time.
14226
14227 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14228 (do_test_limit): Likewise.
14229
14230 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14231 for every implementation.
14232 (do_test): Likewise.
14233
14234 * benchtests/bench-strncmp.c: Convert output to json.
14235
14236 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14237
14238 * io/futimens.c: Add missing start-of-file descriptive comment.
14239 * io/utime.c: Likewise.
14240 * misc/futimesat.c: Likewise.
14241 * misc/utimes.c: Likewise.
14242 * sysdeps/mach/hurd/futimesat.c: Likewise.
14243 * sysdeps/mach/hurd/utimes.c: Likewise.
14244 * sysdeps/posix/utime.c: Likewise.
14245 * sysdeps/posix/utimes.c: Likewise.
14246 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14247 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14248 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14249 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14250
14251 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14252
14253 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14254 hurd_futimes.
14255 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14256 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14257 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14258 (__futimens): Move implementation to...
14259 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14260 utime_tvalue_from_tspec): ... new helper functions.
14261 (hurd_futimens): New function.
14262 * sysdeps/mach/hurd/futimesat.c: New file.
14263 * sysdeps/mach/hurd/utimensat.c: New file.
14264
14265 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14266
14267 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14268 UTIME_OMIT): New macros.
14269 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14270 before reverting to converting time spec to time value and calling
14271 __file_utimes.
14272 * sysdeps/mach/hurd/utime-helper.c: New file.
14273 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14274 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14275 reverting to utime_tvalue_from_tval and __file_utimes.
14276 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14277 (__lutimes): Just call hurd_futimens after lookup.
14278 * sysdeps/mach/hurd/utimes.c: Likewise.
14279
14280 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14281
14282 * bits/sigaction.h: Add include guard.
14283 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14284 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14285 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14286 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14287 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14288 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14289 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14290 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14291 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14292
14293 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14294
14295 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14296 -Wmaybe-uninitialized for -Os.
14297 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14298 this disabling.
14299
14300 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14301
14302 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14303 __INO_T_MATCHES_INO64_T is defined.
14304 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14305 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14306 of definition.
14307 * dirent/alphasort64.c: Likewise.
14308 * dirent/scandir.c: Likewise.
14309 * dirent/scandir64-tail.c: Likewise.
14310 * dirent/scandir64.c: Likewise.
14311 * dirent/scandirat.c: Likewise.
14312 * dirent/scandirat64.c: Likewise.
14313 * dirent/versionsort.c: Likewise.
14314 * dirent/versionsort64.c: Likewise.
14315 * include/dirent.h: Likewise.
14316
14317 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14318 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14319 for socketpair endpoint.
14320 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14321 WRITE_BUFFER_SIZE as buffer size for sending socket.
14322 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14323 issue on system where send is implemented with sendto syscall.
14324 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14325 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14326 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14327 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14328
14329 [BZ #21269]
14330 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14331 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14332 sa_restorer for vDSO case.
14333 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14334
14335 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14336
14337 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14338 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14339 * hurd/hurd/ioctl.h: Include <mach/port.h>
14340 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14341 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14342 <mach/mach_types.h> and <mach/message.h>.
14343 (headers): Move mach/param.h to bits/mach/param.h.
14344 * sysdeps/mach/i386/mach/param.h: Move file to ...
14345 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14346 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14347 of <mach/param.h>.
14348 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14349 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14350 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14351 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14352 trivial, for C++ conformity.
14353 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14354 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14355 Process mig output through $(migheadersed).
14356 * hurd/Makefile (migheadersed): Define variable.
14357 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14358 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14359 headers.
14360 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14361 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14362 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14363 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14364 <bits/types/sigset_t.h>.
14365 [!defined __USE_GNU]: Do not #error out.
14366 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14367 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14368 Include <stddef.h> and <bits/types/sigset_t.h>
14369 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14370 instead of sighandler_t.
14371 * stdlib/errno.h (error_t): Move definition to...
14372 * bits/types/error_t.h: ... new header.
14373 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14374 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14375 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14376 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14377 * hurd/hurd.h: Include <bits/types/error_t.h>
14378 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14379 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14380 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14381 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14382 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14383 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14384 * sysdeps/mach/hurd/futimens.c: New file.
14385
14386 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14387
14388 [BZ #22918]
14389 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14390 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14391 * nscd/gai.c (__nss_hosts_database): Readd definition.
14392 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14393 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14394 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14395
14396 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14397
14398 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14399 (ifunc_one): Likewise.
14400
14401 2018-03-01 DJ Delorie <dj@delorie.com>
14402
14403 [BZ #22342]
14404 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14405 key value.
14406
14407 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14408
14409 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14410 `match_pid' parameter.
14411 (td_ta_thr_iter): Update accordingly.
14412
14413 2018-03-01 Florian Weimer <fweimer@redhat.com>
14414
14415 * nptl/Makefile (install-lib-ldscripts): Remove.
14416 (install): Remove rule.
14417 ($(inst_libdir)/libpthread.so): Likewise.
14418
14419 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14420
14421 [BZ #22896]
14422 * localedata/locales/an_ES: update month and day names,
14423 improve d_fmt, improve postal_fmt, add country_post,
14424 add country_isbn
14425
14426 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14427
14428 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14429 Ukrainian instead of Bulgarian.
14430
14431 2018-03-01 Florian Weimer <fweimer@redhat.com>
14432
14433 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14434 reference.
14435
14436 2018-03-01 Florian Weimer <fweimer@redhat.com>
14437
14438 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14439 * nptl/Makefile (routines): Add pthread_atfork.
14440 (static-only-routines): Set to pthread_atfork.
14441 (libpthread-routines): Remove pthread_atfork.
14442 (libpthread-static-only-routines): Remove.
14443 (install): Update comment.
14444 (libpthread.so): Do not install libpthread_nonshared.a.
14445 (tests): Do not link with libpthread_nonshared.a.
14446 (generated): Remove libpthread_nonshared.a.
14447 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14448 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14449 with libpthread_nonshared.a.
14450
14451 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14452
14453 [BZ #22902]
14454 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14455 (libc_feholdexcept_setroundf128): New macro.
14456 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14457
14458 [BZ #15105]
14459 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14460 libc_hidden_def.
14461 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14462 * include/inttypes.h: New file.
14463
14464 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14465
14466 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14467 -Os in two more places.
14468
14469 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14470
14471 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14472 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14473 be sorted correctly at the moment because of a bug.
14474
14475 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14476
14477 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14478 treat ñ as a primary different character, sync the collation
14479 for Spanish with CLDR.
14480 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14481 * localedata/Makefile: Add new test files.
14482 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14483 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14484 collation order.
14485 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14486 * localedata/am_ET.UTF-8.in: New test file.
14487 * localedata/az_AZ.UTF-8.in: Likewise.
14488 * localedata/be_BY.UTF-8.in: Likewise.
14489 * localedata/ber_DZ.UTF-8.in: Likewise.
14490 * localedata/ber_MA.UTF-8.in: Likewise.
14491 * localedata/bg_BG.UTF-8.in: Likewise.
14492 * localedata/br_FR.UTF-8.in: Likewise.
14493 * localedata/cmn_TW.UTF-8.in: Likewise.
14494 * localedata/crh_UA.UTF-8.in: Likewise.
14495 * localedata/csb_PL.UTF-8.in: Likewise.
14496 * localedata/cv_RU.UTF-8.in: Likewise.
14497 * localedata/cy_GB.UTF-8.in: Likewise.
14498 * localedata/dz_BT.UTF-8.in: Likewise.
14499 * localedata/eo.UTF-8.in: Likewise.
14500 * localedata/es_ES.UTF-8.in: Likewise.
14501 * localedata/fa_IR.UTF-8.in: Likewise.
14502 * localedata/fi_FI.UTF-8.in: Likewise.
14503 * localedata/fil_PH.UTF-8.in: Likewise.
14504 * localedata/fur_IT.UTF-8.in: Likewise.
14505 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14506 * localedata/ha_NG.UTF-8.in: Likewise.
14507 * localedata/ig_NG.UTF-8.in: Likewise.
14508 * localedata/ik_CA.UTF-8.in: Likewise.
14509 * localedata/kk_KZ.UTF-8.in: Likewise.
14510 * localedata/ku_TR.UTF-8.in: Likewise.
14511 * localedata/ky_KG.UTF-8.in: Likewise.
14512 * localedata/ln_CD.UTF-8.in: Likewise.
14513 * localedata/mi_NZ.UTF-8.in: Likewise.
14514 * localedata/ml_IN.UTF-8.in: Likewise.
14515 * localedata/mn_MN.UTF-8.in: Likewise.
14516 * localedata/mr_IN.UTF-8.in: Likewise.
14517 * localedata/mt_MT.UTF-8.in: Likewise.
14518 * localedata/nb_NO.UTF-8.in: Likewise.
14519 * localedata/om_KE.UTF-8.in: Likewise.
14520 * localedata/os_RU.UTF-8.in: Likewise.
14521 * localedata/ps_AF.UTF-8.in: Likewise.
14522 * localedata/ro_RO.UTF-8.in: Likewise.
14523 * localedata/ru_RU.UTF-8.in: Likewise.
14524 * localedata/sc_IT.UTF-8.in: Likewise.
14525 * localedata/se_NO.UTF-8.in: Likewise.
14526 * localedata/sq_AL.UTF-8.in: Likewise.
14527 * localedata/sv_SE.UTF-8.in: Likewise.
14528 * localedata/szl_PL.UTF-8.in: Likewise.
14529 * localedata/tg_TJ.UTF-8.in: Likewise.
14530 * localedata/tk_TM.UTF-8.in: Likewise.
14531 * localedata/tt_RU.UTF-8.in: Likewise.
14532 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14533 * localedata/ug_CN.UTF-8.in: Likewise.
14534 * localedata/uz_UZ.UTF-8.in: Likewise.
14535 * localedata/vi_VN.UTF-8.in: Likewise.
14536 * localedata/yi_US.UTF-8.in: Likewise.
14537 * localedata/yo_NG.UTF-8.in: Likewise.
14538 * localedata/zh_CN.UTF-8.in: Likewise.
14539 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14540 file and fix bugs in the collation.
14541 * localedata/locales/az_AZ: Likewise.
14542 * localedata/locales/be_BY: Likewise.
14543 * localedata/locales/ber_DZ: Likewise.
14544 * localedata/locales/ber_MA: Likewise.
14545 * localedata/locales/bg_BG: Likewise.
14546 * localedata/locales/br_FR: Likewise.
14547 * localedata/locales/br_FR@euro: Likewise.
14548 * localedata/locales/ca_ES: Likewise.
14549 * localedata/locales/cns11643_stroke: Likewise.
14550 * localedata/locales/crh_UA: Likewise.
14551 * localedata/locales/cs_CZ: Likewise.
14552 * localedata/locales/csb_PL: Likewise.
14553 * localedata/locales/cv_RU: Likewise.
14554 * localedata/locales/cy_GB: Likewise.
14555 * localedata/locales/da_DK: Likewise.
14556 * localedata/locales/dz_BT: Likewise.
14557 * localedata/locales/en_CA: Likewise.
14558 * localedata/locales/eo: Likewise.
14559 * localedata/locales/es_CU: Likewise.
14560 * localedata/locales/es_EC: Likewise.
14561 * localedata/locales/es_ES: Likewise.
14562 * localedata/locales/es_US: Likewise.
14563 * localedata/locales/et_EE: Likewise.
14564 * localedata/locales/fa_IR: Likewise.
14565 * localedata/locales/fi_FI: Likewise.
14566 * localedata/locales/fil_PH: Likewise.
14567 * localedata/locales/fur_IT: Likewise.
14568 * localedata/locales/gez_ER@abegede: Likewise.
14569 * localedata/locales/ha_NG: Likewise.
14570 * localedata/locales/hr_HR: Likewise.
14571 * localedata/locales/hsb_DE: Likewise.
14572 * localedata/locales/hu_HU: Likewise.
14573 * localedata/locales/ig_NG: Likewise.
14574 * localedata/locales/ik_CA: Likewise.
14575 * localedata/locales/is_IS: Likewise.
14576 * localedata/locales/iso14651_t1_pinyin: Likewise.
14577 * localedata/locales/kk_KZ: Likewise.
14578 * localedata/locales/ku_TR: Likewise.
14579 * localedata/locales/ky_KG: Likewise.
14580 * localedata/locales/ln_CD: Likewise.
14581 * localedata/locales/lt_LT: Likewise.
14582 * localedata/locales/lv_LV: Likewise.
14583 * localedata/locales/mi_NZ: Likewise.
14584 * localedata/locales/ml_IN: Likewise.
14585 * localedata/locales/mn_MN: Likewise.
14586 * localedata/locales/mr_IN: Likewise.
14587 * localedata/locales/mt_MT: Likewise.
14588 * localedata/locales/nb_NO: Likewise.
14589 * localedata/locales/om_KE: Likewise.
14590 * localedata/locales/os_RU: Likewise.
14591 * localedata/locales/pl_PL: Likewise.
14592 * localedata/locales/ps_AF: Likewise.
14593 * localedata/locales/ro_RO: Likewise.
14594 * localedata/locales/ru_RU: Likewise.
14595 * localedata/locales/ru_UA: Likewise.
14596 * localedata/locales/sc_IT: Likewise.
14597 * localedata/locales/se_NO: Likewise.
14598 * localedata/locales/si_LK: Likewise.
14599 * localedata/locales/sq_AL: Likewise.
14600 * localedata/locales/sv_FI: Likewise.
14601 * localedata/locales/sv_FI@euro: Likewise.
14602 * localedata/locales/sv_SE: Likewise.
14603 * localedata/locales/szl_PL: Likewise.
14604 * localedata/locales/tg_TJ: Likewise.
14605 * localedata/locales/ti_ER: Likewise.
14606 * localedata/locales/tk_TM: Likewise.
14607 * localedata/locales/tl_PH: Likewise.
14608 * localedata/locales/tr_TR: Likewise.
14609 * localedata/locales/tt_RU: Likewise.
14610 * localedata/locales/tt_RU@iqtelif: Likewise.
14611 * localedata/locales/ug_CN: Likewise.
14612 * localedata/locales/uk_UA: Likewise.
14613 * localedata/locales/uz_UZ: Likewise.
14614 * localedata/locales/uz_UZ@cyrillic: Likewise.
14615 * localedata/locales/vi_VN: Likewise.
14616 * localedata/locales/yi_US: Likewise.
14617 * localedata/locales/yo_NG: Likewise.
14618
14619 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14620
14621 * gen-locales.mk: Make test files which contain @ modifiers in their
14622 name work.
14623 * localedata/gen-locale.sh: Likewise.
14624
14625 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14626
14627 * posix/tst-fnmatch.input: Fix results for range expressions
14628 for non C locales.
14629 * posix/tst-regexloc.c: Do not use a range expression for
14630 de_DE.ISO-8859-1 locale.
14631
14632 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14633
14634 * posix/bug-regex5.c: Fix test case because with the new
14635 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14636 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14637 file.
14638
14639 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14640
14641 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14642 downloaded from ISO, the collation order of @-. and space has changed.
14643 Therefore, this test file needed to be adapted.
14644 * localedata/fr_CA.UTF-8.in: Likewise.
14645 * localedata/fr_FR.UTF-8.in: Likewise.
14646 * localedata/uk_UA.UTF-8.in: Likewise.
14647
14648 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14649
14650 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14651 order of ȥ in the new iso14651_t1_common file.
14652 * localedata/pl_PL.UTF-8.in: Likewise.
14653
14654 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14655
14656 * localedata/locales/iso14651_t1_common: Add sections for various
14657 scripts to the iso14651_t1_common file.
14658
14659 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14660
14661 * localedata/locales/iso14651_t1_common: Use the code point of a
14662 character in the fourth collation level instead of IGNORE for all
14663 entries which have IGNORE on all 4 levels.
14664
14665 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14666
14667 * localedata/locales/iso14651_t1_common: Add some convenient collation
14668 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14669 rules similar to those in CLDR.
14670
14671 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14672
14673 * localedata/locales/iso14651_t1_common: The new version of this
14674 file downloaded from ISO contained several syntax errors which
14675 are fixed by this patch.
14676
14677 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14678
14679 * localedata/locales/iso14651_t1_common: replace all <U.....>
14680 with <U000.....> because glibc understands only 4 digit or 8 digit
14681
14682 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14683
14684 * localedata/locales/iso14651_t1_common: Necessary changes
14685 to make the file downloaded from ISO usable by glibc.
14686
14687 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14688
14689 [BZ #14095]
14690 * localedata/locales/iso14651_t1_common: Update file to
14691 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14692
14693 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14694
14695 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14696 of <nptl/pthreadP.h>
14697 (thread_attr_compare): Move function to...
14698 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14699 * sysdeps/nptl/timer_routines.h: ... new header.
14700 * sysdeps/mach/hurd/gai_misc.h: New file.
14701
14702 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14703
14704 * string/strcoll_l.c: Include <libc-diag.h>.
14705 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14706 declarations of seq1 and seq2.
14707
14708 [BZ #15105]
14709 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14710 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14711
14712 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14713
14714 [BZ #22433]
14715 [BZ #22807]
14716 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14717 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14718 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14719 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14720 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14721 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14722
14723 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14724
14725 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14726 macros used in __ptrace_request.
14727
14728 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14729
14730 [BZ #22792]
14731 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14732 to $(CC).
14733 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14734 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14735 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14736 <tcb-offsets.h>.
14737
14738 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14739
14740 [BZ #15105]
14741 * ctype/ctype.c (tolower): Use libc_hidden_def.
14742 (toupper): Likewise.
14743 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14744 [!_ISOMAC] (toupper): Likewise.
14745
14746 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14747
14748 * localedata/Makefile: Remove --quiet argument when
14749 installing locales
14750
14751 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14752
14753 [BZ #17438]
14754 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14755 in d_fmt.
14756 * localedata/locales/pt_PT (LC_TIME): likewise
14757
14758 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14759
14760 [BZ #22646]
14761 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14762 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14763 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14764
14765 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14766
14767 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14768
14769 * nptl/Makefile (routines): Remove unregister-atfork.
14770 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14771 (fork_handler_alloc): Remove function.
14772 (fork_handlers, fork_handler_init): New variables.
14773 (__fork_lock): Rename to atfork_lock.
14774 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14775 to use a dynamic array to add/remove atfork handlers.
14776 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14777 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14778 Remove declaration.
14779 (fork_handler): Remove next, refcntr, and need_signal member.
14780 (__run_fork_handler_type): New enum.
14781 (__run_fork_handlers): New prototype.
14782 * nptl/register-atfork.c: Remove file.
14783 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14784
14785 * sysdeps/nptl/nptl-signals.h: Move to ...
14786 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14787 comments.
14788 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14789 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14790 unnecessary check for SIGTIMER.
14791 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14792 remove unnecessary removal of SIGTIMER.
14793 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14794 include-signals.h rename.
14795 * nptl/pthreadP.h: Likewise.
14796 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14797 __is_internal_signal instead of __nptl_is_internal_signal.
14798
14799 2018-02-22 Andrew Waterman <andrew@sifive.com>
14800
14801 [BZ # 22884]
14802 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14803 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14804 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14805 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14806
14807 2018-02-22 DJ Delorie <dj@delorie.com>
14808
14809 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14810
14811 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14812
14813 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14814 do_misaligned, not misaligned8.
14815
14816 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14817
14818 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14819 Add memcpy_thunderx2.
14820 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14821 Increment to 4.
14822 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14823 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14824 and IS_THUNDERX2PA checks.
14825 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14826 Use macro to set name appropriately.
14827 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14828 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14829 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14830 New macro.
14831 (IS_THUNDERX2): New macro.
14832
14833 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14834
14835 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14836
14837 2018-02-21 Zack Weinberg <zackw@panix.com>
14838
14839 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14840 Define here, unconditionally.
14841 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14842 * libio/libioP.h: Remove #if 0 blocks.
14843 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14844 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14845 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14846
14847 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14848 Assume weak_alias is always defined.
14849
14850 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14851 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14852 Remove #if 0 and #ifdef TODO blocks.
14853 Assume text_set_element is always defined.
14854
14855 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14856 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14857 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14858
14859 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14860 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14861 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14862 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14863 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14864 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14865 Reformat bit flags for _flags field to make occupancy clearer.
14866 Update commentary.
14867 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14868 Keep definitions consistent with those in libio/libio.h.
14869
14870 * libio/libio.h (_IO_file_flags): Remove macro.
14871 All uses changed to _flags.
14872
14873 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14874 (__HAVE_COLUMN, _IO_BE): Don't define.
14875 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14876 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14877 * libio/libioP.h (EOF): Don't define.
14878 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14879 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14880 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14881 testing _IO_UNIFIED_JUMPTABLES.
14882
14883 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14884 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14885 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14886 (_IO_size_t): Delete; all uses changed to size_t.
14887 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14888 (_IO_off_t): Delete; all uses changed to off_t.
14889 (_IO_off64_t): Delete; all uses changed to off64_t.
14890 (_IO_pid_t): Delete; all uses changed to pid_t.
14891 (_IO_uid_t): Delete; all uses changed to uid_t.
14892 (_IO_wint_t): Delete; all uses changed to wint_t.
14893 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14894 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14895 (_IO_cookie_io_functions_t): Delete; all uses changed to
14896 cookie_io_functions_t.
14897 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14898 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14899 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14900 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14901
14902 * libio/iofopncook.c: Remove unnecessary forward declarations.
14903 * libio/iolibio.h: Correct outdated commentary.
14904 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14905 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14906 Remove unnecessary casts.
14907 * stdio-common/getline.c: Use _IO_getdelim directly.
14908 Don't redefine ssize_t.
14909 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14910 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14911 Remove outdated comments.
14912 * stdio-common/vfscanf.c: Don't redefine va_list.
14913
14914 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14915 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14916 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14917 which are always true, and __cplusplus, which is always false.
14918
14919 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14920
14921 [BZ #15105]
14922 [BZ #19463]
14923 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14924 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14925 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14926 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14927 libc_hidden_proto.
14928 [!_ISOMAC] (putc_unlocked): Likewise.
14929 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14930 define inline if [__USE_EXTERN_INLINES].
14931 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14932 putc_unlocked.
14933
14934 [BZ #15105]
14935 [BZ #19463]
14936 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14937 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14938 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14939 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14940 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14941 getc_unlocked.
14942 * time/tzfile.c (__tzfile_read): Likewise.
14943
14944 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14945
14946 [BZ #22517]
14947 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14948
14949 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14950
14951 * io/fcntl.h: Fix a typo in a comment.
14952
14953 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14954
14955 [BZ #22862]
14956 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14957 define _DEFAULT_SOURCE.
14958 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14959
14960 2018-02-21 Florian Weimer <fweimer@redhat.com>
14961
14962 [BZ #20890]
14963 * elf/cache.c (save_cache): Call fsync on temporary file before
14964 renaming it.
14965 (save_aux_cache): Call fdatasync on temporary file before renaming
14966 it.
14967
14968 2018-02-21 Florian Weimer <fweimer@redhat.com>
14969
14970 [BZ #22787]
14971 * include/caller.h: Remove file.
14972 * elf/dl-caller.c: Likewise.
14973 * elf/Makefile (dl-routines): Remove dl-caller.
14974 (shared-only-routines): Do not add dl-caller.
14975 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14976 __check_caller.
14977 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14978 member.
14979 (dl_open_worker): Do not call __check_caller.
14980 (_dl_open): Do not set caller_dl_open member.
14981 * elf/rtld.c (_rtld_global_ro): Do not initialize
14982 _dl_check_caller member.
14983 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14984 _dl_check_caller member.
14985 (_dl_check_caller): Remove declaration.
14986 * sysdeps/unix/sysv/linux/dl-execstack.c
14987 (_dl_make_stack_executable): Do not call __check_caller.
14988
14989 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14990
14991 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14992 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14993
14994 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14995
14996 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14997 description.
14998
14999 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15000
15001 [BZ #16335]
15002 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15003 of 199606L, 200112L, and 200809L.
15004 (_XOPEN_SOURCE): Document special values of 600 and 700.
15005 (_ISOC11_SOURCE): Document macro.
15006 (_ATFILE_SOURCE): Likewise.
15007 (_FORTIFY_SOURCE): Likewise.
15008
15009 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15010
15011 [BZ #15105]
15012 [BZ #19463]
15013 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15014 and define as weak alias of __ferror_unlocked. Use
15015 libc_hidden_weak.
15016 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15017 libc_hidden_proto.
15018 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15019 function if [__USE_EXTERN_INLINES].
15020 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15021 ferror_unlocked.
15022
15023 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15024
15025 [BZ #6889]
15026 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15027
15028 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15029
15030 [BZ #22818]
15031 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15032 the GLIBC_2.1 version.
15033
15034 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15035
15036 [BZ #21508]
15037 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15038 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15039 intl/tst-gettext-de.po from po/de.po by removing the
15040 POT-Creation-Date line.
15041 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15042 ../po/de.po.
15043 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15044 ../po/de.po.
15045
15046 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15047
15048 * mach/Makefile (headers): Add mach/param.h.
15049 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15050 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15051 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15052 (__ptsname_r): Move implementation to...
15053 (__ptsname_internal): ... new function. Add filling the STP
15054 structure.
15055
15056 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15057
15058 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15059 idouble to 1 ULP.
15060
15061 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15062
15063 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15064 syntax.
15065
15066 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15067
15068 * nptl/Makefile (tst-mutex8-ENV): Delete.
15069 * nptl/tst-mutex8.c (check_type):
15070 Add runtime check if mutex will be elided.
15071
15072 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15073
15074 [BZ #20980]
15075 [BZ #21234]
15076 * manual/install.texi (Configuring and compiling): Describe
15077 passing CC and CFLAGS on configure command line, not as
15078 environment variables. Use @code markup on those variables.
15079 Specify what options go in CC and what go in CFLAGS. Note the
15080 requirement to compile with optimization.
15081 * INSTALL: Regenerated.
15082
15083 [BZ #18124]
15084 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15085 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15086 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15087 __sigprocmask instead of sigprocmask.
15088 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15089 Likewise.
15090 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15091 __sigsetjmp and sigprocmask.
15092
15093 [BZ #15105]
15094 * include/argz.h (argz_next): Use libc_hidden_proto.
15095 (__argz_next): Likewise.
15096 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15097 (argz_next): Use libc_hidden_weak.
15098
15099 [BZ #15105]
15100 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15101 libc_hidden_proto.
15102 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15103 libc_hidden_def.
15104
15105 [BZ #15105]
15106 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15107 libc_hidden_proto.
15108 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15109
15110 [BZ #15105]
15111 [BZ #19463]
15112 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15113 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15114 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15115 (__feof_unlocked): New declaration, and inline function if
15116 [__USE_EXTERN_INLINES].
15117 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15118 instead of feof_unlocked.
15119 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15120 * nss/nsswitch.c (nss_parse_file): Likewise.
15121 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15122 Likewise.
15123 * time/getdate.c (__getdate_r): Likewise.
15124 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15125 Define as macro to call __feof_unlocked.
15126
15127 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15128
15129 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15130
15131 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15132
15133 * math/Makefile: Remove mpexp.c and mplog.c
15134 * sysdeps/i386/fpu/mpexp.c: Delete file.
15135 * sysdeps/i386/fpu/mplog.c: Likewise.
15136 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15137 * sysdeps/ia64/fpu/mplog.c: Likewise.
15138 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15139 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15140 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15141 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15142 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15143 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15144 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15145 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15146 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15147 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15148 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15149 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15150 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15151 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15152 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15153 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15154
15155 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15156
15157 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15158
15159 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15160
15161 * sysdeps/sh/libm-test-ulps: Update.
15162
15163 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15164
15165 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15166 idouble to 1 ULP.
15167
15168 2018-02-12 Zack Weinberg <zackw@panix.com>
15169
15170 [BZ #19239]
15171 * posix/sys/types.h: Don't include sys/sysmacros.h.
15172 * misc/sys/sysmacros.h: Remove the conditional deprecation
15173 warnings for the macros defined by this header.
15174
15175 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15176
15177 * manual/probes.texi: Remove slowexp probes.
15178 * math/Makefile: Remove slowexp.
15179 * sysdeps/generic/math_private.h (__slowexp): Remove.
15180 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15181 document error bounds.
15182 * sysdeps/i386/fpu/slowexp.c: Remove.
15183 * sysdeps/ia64/fpu/slowexp.c: Remove.
15184 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15185 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15186 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15187 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15188 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15189 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15190 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15191 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15192 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15193 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15194 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15195
15196 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15197
15198 [BZ #13932]
15199 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15200 * benchtests/pow-inputs: Update comment for slow path cases.
15201 * manual/probes.texi (slowpow_p10): Delete removed probe.
15202 (slowpow_p10): Likewise.
15203 * math/Makefile: Remove halfulp.c and slowpow.c.
15204 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15205 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15206 (__halfulp): Remove.
15207 (__slowpow): Remove.
15208 * sysdeps/i386/fpu/halfulp.c: Delete file.
15209 * sysdeps/i386/fpu/slowpow.c: Likewise.
15210 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15211 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15212 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15213 improve comments and add error analysis.
15214 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15215 (power1): Remove function:
15216 (log1): Remove error argument, add error analysis.
15217 (my_log2): Remove function.
15218 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15219 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15220 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15221 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15222 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15223 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15224 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15225 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15226 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15227 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15228 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15229 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15230 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15231 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15232
15233 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15234
15235 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15236 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15237
15238 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15239
15240 [BZ #22433]
15241 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15242 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15243 and PTRACE_SETHBPREGS.
15244
15245 2018-02-10 Zack Weinberg <zackw@panix.com>
15246
15247 [BZ #22830]
15248 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15249 correctly.
15250 * malloc/tst-malloc-stats-cancellation.c: New test case.
15251 * malloc/Makefile: Add new test case.
15252
15253 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15254
15255 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15256
15257 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15258
15259 * math/Makefile (libm-narrow-fns): Add add.
15260 (libm-test-funcs-narrow): Likewise.
15261 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15262 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15263 * math/gen-auto-libm-tests.c (test_functions): Add add.
15264 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15265 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15266 (NARROW_ADD_TRIVIAL): Likewise.
15267 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15268 macro.
15269 (__daddl): Likewise.
15270 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15271 dadd.
15272 (CFLAGS-nldbl-dadd.c): New variable.
15273 (CFLAGS-nldbl-fadd.c): Likewise.
15274 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15275 __nldbl_daddl.
15276 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15277 prototype.
15278 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15279 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15280 * math/auto-libm-test-in: Add tests of add.
15281 * math/auto-libm-test-out-narrow-add: New generated file.
15282 * math/libm-test-narrow-add.inc: New file.
15283 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15284 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15285 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15286 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15287 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15288 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15289 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15290 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15291 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15292 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15293 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15294 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15295 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15296 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15297 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15298 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15299 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15300 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15301 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15302 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15303 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15304 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15305 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15306 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15307 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15308 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15309 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15310 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15311 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15312 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15313 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15315 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15318 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15319 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15320 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15321 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15322 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15323 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15324 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15325 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15326 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15327 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15328 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15329
15330 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15331 (f128-pairs): New variable.
15332 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15333 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15334 to CFLAGS.
15335 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15336 Also make tests add $(f128-loader-link) to gnulib-tests.
15337
15338 2018-02-09 DJ Delorie <dj@redhat.com>
15339
15340 [BZ #22827]
15341 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15342 64-bit ELF type for 64-bit ELF objects.
15343
15344 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15345
15346 * math/libm-test-driver.c (snan_tests_arg): New variable.
15347 * math/libm-test-support.h (snan_tests_arg): New declaration.
15348 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15349
15350 * math/Makefile (test-type-pairs): New variable.
15351 (test-type-pairs-f64xf128-yes): Likewise.
15352 (tests): Add test-narrow-macros.
15353 (libm-test-funcs-narrow): New variable.
15354 (libm-test-c-narrow): Likewise.
15355 (generated): Add $(libm-test-c-narrow).
15356 (libm-tests-base-narrow): New variable.
15357 (libm-tests-narrow): Likewise.
15358 (libm-tests): Add $(libm-tests-narrow).
15359 (libm-tests-for-type): Handle $(libm-tests-narrow).
15360 (libm-test-c-narrow-obj): New variable.
15361 ($(libm-test-c-narrow-obj)): New rule.
15362 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15363 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15364 $(o-iterator) to set dependencies and CFLAGS.
15365 * math/gen-auto-libm-tests.c: Document use for narrowing
15366 functions.
15367 (output_for_one_input_case): Take argument NARROW.
15368 (generate_output): Likewise. Update call to
15369 output_for_one_input_case.
15370 (main): Take --narrow option. Update call to generate_output.
15371 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15372 (apply_lit): Update call to _apply_lit.
15373 (apply_arglit): New function.
15374 (parse_args): Handle "a" arguments.
15375 (parse_auto_input): Handle format names using ":".
15376 * math/README.libm-test: Document "a" parameter type.
15377 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15378 (ARG_TYPE_TRUE_MIN): Likewise.
15379 (ARG_TYPE_MAX): Likwise.
15380 (ARG_MIN_EXP): Likewise.
15381 (ARG_MAX_EXP): Likewise.
15382 (ARG_MANT_DIG): Likewise.
15383 (TEST_COND_arg_ibm128): Likewise.
15384 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15385 (TEST_COND_arg_fmt): New macro.
15386 (init_max_error): Update prototype.
15387 * math/libm-test-support.c (test_ibm128): New variable.
15388 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15389 instead of using [TEST_COND_ibm128] conditional.
15390 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15391 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15392 [TEST_NARROW] (TEST_MSG): New definition.
15393 (arg_plus_zero): New macro.
15394 (arg_minus_zero): Likewise.
15395 (arg_plus_infty): Likewise.
15396 (arg_minus_infty): Likewise.
15397 (arg_qnan_value_pl): Likewise.
15398 (arg_qnan_value): Likewise.
15399 (arg_snan_value_pl): Likewise.
15400 (arg_snan_value): Likewise.
15401 (arg_max_value): Likewise.
15402 (arg_min_value): Likewise.
15403 (arg_min_subnorm_value): Likewise.
15404 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15405 (RUN_TEST_LOOP_aa_f): New macro.
15406 (TEST_SUFF): New macro.
15407 (TEST_SUFF_STR): Likewise.
15408 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15409 (TEST_COND_any_ibm128): New macro.
15410 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15411 this_func. Update call to init_max_error.
15412 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15413 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15414 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15415 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15416 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15417 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15418 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15419 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15420 * math/test-math-vector.h (TEST_NARROW): Likewise.
15421 * math/test-arg-double.h: New file.
15422 * math/test-arg-float128.h: Likewise.
15423 * math/test-arg-float32x.h: Likewise.
15424 * math/test-arg-float64.h: Likewise.
15425 * math/test-arg-float64x.h: Likewise.
15426 * math/test-arg-ldouble.h: Likewise.
15427 * math/test-math-narrow.h: Likewise.
15428 * math/test-narrow-macros.c: Likewise.
15429 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15430 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15431 test-narrow-macros-ldbl-64.
15432 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15433
15434 * math/bits/mathcalls-narrow.h: New file.
15435 * include/bits/mathcalls-narrow.h: Likewise.
15436 * math/math-narrow.h: Likewise.
15437 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15438 (__MATHCALL_NARROW_ARGS_2): Likewise.
15439 (__MATHCALL_NARROW_ARGS_3): Likewise.
15440 (__MATHCALL_NARROW_NORMAL): Likewise.
15441 (__MATHCALL_NARROW_REDIR): Likewise.
15442 (__MATHCALL_NARROW): Likewise.
15443 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15444 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15445 defined.
15446 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15447 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15448 (libm-narrow-fns): New variable.
15449 (libm-narrow-types-basic): Likewise.
15450 (libm-narrow-types-ldouble-yes): Likewise.
15451 (libm-narrow-types-float128-yes): Likewise.
15452 (libm-narrow-types-float128-alias-yes): Likewise.
15453 (libm-narrow-types): Likewise.
15454 (libm-routines): Add narrowing functions.
15455 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15456 (libc_feholdexcept_setroundf128): New macro.
15457 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15458 * sysdeps/ieee754/float128/float128_private.h: Include
15459 <math/math-narrow.h>.
15460 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15461 Undefine and redefine.
15462 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15463 (libm_alias_float_ldouble): Undefine and redefine.
15464 (libm_alias_double_ldouble): Likewise.
15465
15466 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15467
15468 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15469
15470 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15471 FPCR/FPSR.
15472
15473 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15474
15475 * manual/creature.texi: Convert references to gcc.info to gcc.
15476 * manual/stdio.texi: Likewise.
15477 * manual/string.texi: Likewise.
15478
15479 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15480
15481 [BZ #17979]
15482 * posix/bits/types.h (__int_least8_t): New typedef.
15483 (__uint_least8_t): Likewise.
15484 (__int_least16_t): Likewise.
15485 (__uint_least16_t): Likewise.
15486 (__int_least32_t): Likewise.
15487 (__uint_least32_t): Likewise.
15488 (__int_least64_t): Likewise.
15489 (__uint_least64_t): Likewise.
15490 * sysdeps/generic/stdint.h (int_least8_t): Define using
15491 __int_least8_t.
15492 (int_least16_t): Define using __int_least16_t.
15493 (int_least32_t): Define using __int_least32_t.
15494 (int_least64_t): Define using __int_least64_t.
15495 (uint_least8_t): Define using __uint_least8_t.
15496 (uint_least16_t): Define using __uint_least16_t.
15497 (uint_least32_t): Define using __uint_least32_t.
15498 (uint_least64_t): Define using __uint_least64_t.
15499 * wcsmbs/uchar.h: Include <bits/types.h>.
15500 (char16_t): Define using __uint_least16_t conditional only on
15501 [!__USE_ISOCXX11].
15502 (char32_t): Define using __uint_least32_t conditional only on
15503 [!__USE_ISOCXX11].
15504 * wcsmbs/test-char-types.c: New file.
15505 * wcsmbs/Makefile (tests): Add test-char-types.
15506
15507 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15508 version to 4.0.1.
15509
15510 2018-02-07 Zack Weinberg <zackw@panix.com>
15511
15512 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15513 Delete all contents except for definitions of _G_HAVE_MMAP and
15514 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15515 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15516 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15517 change as above.
15518
15519 * libio/libio.h: Don't include bits/_G_config.h here.
15520 Include stddef.h with __need_wchar_t defined. Include
15521 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15522 Define _IO_iconv_t here, directly.
15523 Don't define _IO_HAVE_ST_BLKSIZE.
15524 * libio/libioP.h: Include _G_config.h here. Move include of
15525 shlib-compat.h up with rest of includes. Simplify conditionals
15526 controlling definition of _IO_JUMPS_OFFSET.
15527
15528 * csu/init.c: Remove always-true #if around entire file.
15529 Don't include stdio.h. Set _IO_stdin_used to hardwired
15530 constant 0x20001, and update commentary.
15531 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15532 Replace all uses of _G_va_list with __gnuc_va_list.
15533 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15534 instead of #if _IO_HAVE_ST_BLKSIZE.
15535 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15536 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15537 not #ifdef.
15538
15539 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15540 multiple-include guard to match.
15541 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15542 into this file.
15543 Remove preprocessor conditionals that are always true and/or
15544 redundant to other preprocessor conditionals in the same nest.
15545 Include shlib-compat.h unconditionally.
15546 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15547 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15548 defined after including stdio.h.
15549 Use __BEGIN_DECLS/__END_DECLS.
15550
15551 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15552 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15553 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15554
15555 2018-02-07 Zack Weinberg <zackw@panix.com>
15556
15557 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15558 New single-type headers split from _G_config.h.
15559 * libio/bits/types/cookie_io_functions_t.h
15560 * libio/bits/types/struct_FILE.h
15561 New single-type headers split from libio.h.
15562
15563 * libio/Makefile: Install the above new headers. Don't install
15564 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15565 bits/libio-ldbl.h.
15566 * libio/_G_config.h, libio/libio.h: Delete file.
15567
15568 * libio/bits/libio.h: Remove improper-inclusion guard.
15569 Include stdio.h and don't repeat anything that it does.
15570 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15571 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15572 __io_read_fn as cookie_read_function_t,
15573 __io_write_fn as cookie_write_function_t,
15574 __io_seek_fn as cookie_seek_function_t,
15575 __io_close_fn as cookie_close_function_t,
15576 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15577 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15578 here, in the "compatibility defines" section. Remove an #if 0
15579 block. Use the "body" macros from bits/types/struct_FILE.h to
15580 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15581 and _IO_ferror_unlocked.
15582 Move prototypes of __uflow and __overflow...
15583
15584 * libio/stdio.h: ...here. Don't include bits/libio.h.
15585 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15586 directly from stdarg.h. Include bits/types/__fpos_t.h,
15587 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15588 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15589 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15590 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15591 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15592 __ssize_t, not _IO_ssize_t. Unconditionally define
15593 BUFSIZ as 8192 and EOF as (-1).
15594
15595 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15596 macros from bits/types/struct_FILE.h instead of _IO_* macros
15597 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15598 instead of _IO_ssize_t.
15599 * libio/bits/stdio2.h: Similarly.
15600
15601 * libio/iolibio.h: Add multiple-include guard.
15602 Include bits/libio.h after stdio.h.
15603 * libio/libioP.h: Add multiple-include guard.
15604 Include stdio.h and bits/libio.h before iolibio.h.
15605
15606 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15607 * include/bits/types/cookie_io_functions_t.h
15608 * include/bits/types/struct_FILE.h: New wrappers.
15609
15610 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15611 Get definitions of _G_fpos_t and _G_fpos64_t from
15612 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15613 respectively. Remove improper-inclusion guards.
15614
15615 * conform/data/stdio.h-data: Update expectations of va_list.
15616 * scripts/check-installed-headers.sh: Remove special case for
15617 libio.h and _G_config.h.
15618
15619 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15620
15621 [BZ #15105]
15622 [BZ #19463]
15623 * include/sys/sysmacros.h [!_ISOMAC]
15624 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15625 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15626 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15627 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15628 libc_hidden_proto.
15629 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15630 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15631 Likewise.
15632 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15633 Undefine and redefine to add use __gnu_dev_ prefix.
15634 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15635 Likewise.
15636 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15637 and define as hidden inline function.
15638 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15639 Likewise.
15640 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15641 Likewise.
15642 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15643 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15644 (gnu_dev_minor): Likewise.
15645 (gnu_dev_makedev): Likewise.
15646 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15647 makedev.
15648 * posix/wordexp.c (exec_comm_child): Likewise.
15649 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15650 instead of minor and __gnu_dev_major instead of major.
15651 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15652 __gnu_dev_major instead of major.
15653 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15654 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15655 instead of gnu_dev_minor.
15656 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15657 (SLAVE_P): Likewise.
15658 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15659 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15660 instead of major.
15661
15662 [BZ #21313]
15663 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15664 in another place.
15665 * locale/weightwc.h (findidx): Likewise.
15666
15667 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15668
15669 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15670 (slowlog_inexact): Likewise
15671 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15672 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15673
15674 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15675
15676 [BZ #22797]
15677 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15678 missing second underscore to parameter name.
15679
15680 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15681
15682 [BZ #14508]
15683 [BZ #15512]
15684 [BZ #17082]
15685 [BZ #20530]
15686 * bits/byteswap.h: Update file comment. Do not include
15687 <bits/byteswap-16.h>.
15688 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15689 constant.
15690 (__bswap_16): Define as inline function.
15691 (__bswap_constant_32): Reformat definition.
15692 (__bswap_32): Always define as inline function, not macro, using
15693 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15694 otherwise __bswap_constant_32.
15695 (__bswap_constant_64): Reformat definition. Do not use
15696 __extension__ here.
15697 (__bswap_64): Always define as inline function, not macro. Use
15698 __extension__ on function definition. Use __builtin_bswap64 if
15699 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15700 * string/test-endian-file-scope.c: New file.
15701 * string/test-endian-sign-conversion.c: Likewise.
15702 * string/Makefile (headers): Remove bits/byteswap-16.h.
15703 (tests): Add test-endian-file-scope and
15704 test-endian-sign-conversion.
15705 (CFLAGS-test-endian-sign-conversion.c): New variable.
15706 * bits/byteswap-16.h: Remove file.
15707 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15708 * sysdeps/ia64/bits/byteswap.h: Likewise.
15709 * sysdeps/m68k/bits/byteswap.h: Likewise.
15710 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15711 * sysdeps/s390/bits/byteswap.h: Likewise.
15712 * sysdeps/tile/bits/byteswap.h: Likewise.
15713 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15714 * sysdeps/x86/bits/byteswap.h: Likewise.
15715
15716 [BZ #17721]
15717 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15718 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15719 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15720 199901L] (__restrict): Define to restrict.
15721
15722 [BZ #19667]
15723 * string/testcopy.c: Include <support/support.h>. Do not include
15724 <malloc.h>. Use <support/test-driver.c>.
15725 (main): Rename to do_test. Make static. Use xmalloc instead of
15726 malloc.
15727
15728 [BZ #13575]
15729 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15730 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15731 (SSIZE_MAX): Define to INT_MAX.
15732 * posix/test-ssize-max.c: New file.
15733 * posix/Makefile (tests): Add test-ssize-max.
15734
15735 [BZ #19668]
15736 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15737 <support/support.h>. Do not include <malloc.h>.
15738 (query_auxv): Use xmalloc instead of malloc.
15739
15740 [BZ #14553]
15741 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15742 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15743 instead of loff_t.
15744
15745 2018-02-06 Florian Weimer <fweimer@redhat.com>
15746
15747 [BZ #18023]
15748 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15749 Use scratch_buffer instead of extend_alloca.
15750
15751 2018-02-06 Zack Weinberg <zackw@panix.com>
15752
15753 * libio/stdio.h: Don't define getc or putc as macros.
15754 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15755 not _IO_getc and _IO_putc.
15756
15757 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15758 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15759
15760 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15761
15762 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15763 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15764
15765 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15766
15767 [BZ #14890]
15768 * elf/elf.h (NT_PRFPREG): New macro.
15769 (NT_S390_VXRS_LOW): Likewise.
15770 (NT_S390_VXRS_HIGH): Likewise.
15771 (NT_S390_GS_CB): Likewise.
15772 (NT_S390_GS_BC): Likewise.
15773 (NT_S390_RI_CB): Likewise.
15774
15775 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15776 (MAP_SYNC): New macro.
15777 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15778 Likewise.
15779 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15780 (MAP_SYNC): Likewise.
15781 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15782 (MAP_SYNC): Likewise.
15783 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15784 (MAP_SYNC): Likewise.
15785 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15786 (MAP_SYNC): Likewise.
15787 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15788 (MAP_SYNC): Likewise.
15789 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15790 (MAP_SYNC): Likewise.
15791 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15792 Likewise.
15793 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15794 Likewise.
15795
15796 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15797 (MAP_SHARED_VALIDATE): New macro.
15798 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15799 (MAP_SHARED_VALIDATE): Likewise.
15800
15801 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15802
15803 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15804 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15805 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15806
15807 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15808
15809 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15810 (DT_NUM): Updated to 35.
15811
15812 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15813
15814 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15815 __builtin_expect with __glibc_likely and __glibc_unlikely.
15816 (elf_machine_rela): Likewise.
15817 (elf_machine_lazy_rel): Likewise.
15818
15819 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15820
15821 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15822 __builtin_expect with __glibc_likely and __glibc_unlikely.
15823 (elf_machine_lazy_rel): Likewise.
15824
15825 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15826
15827 [BZ #22638]
15828 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15829 SHARED.
15830 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15831
15832 2018-02-05 Andreas Schwab <schwab@suse.de>
15833
15834 [BZ #22761]
15835 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15836 string.
15837
15838 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15839
15840 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15841 not check against PTHREAD_STACK_MIN.
15842
15843 2018-02-02 Sean McKean <smckean83@gmail.com>
15844
15845 [BZ #22735]
15846 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15847
15848 2018-02-02 Florian Weimer <fweimer@redhat.com>
15849
15850 [BZ #22753]
15851 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15852 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15853 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15854 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15855 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15856 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15857 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15858 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15859 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15860 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15861 * misc/tst-preadvwritev2.c (do_test): Call it.
15862 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15863
15864 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15865
15866 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15867
15868 * benchtests/bench-memcmp.c: Print json instead of plain text.
15869
15870 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15871 every test run.
15872
15873 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15874
15875 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15876 version to 4.15.
15877 (s390_sthyi): New syscall.
15878
15879 * sysdeps/generic/ldbl-classify-compat.h: New file.
15880 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15881 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15882 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15883 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15884 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15885 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15886 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15887 <ldbl-classify-compat.h>.
15888 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15889 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15890 <ldbl-classify-compat.h>.
15891 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15892 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15893 <ldbl-classify-compat.h>.
15894 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15895 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15896 <ldbl-classify-compat.h>.
15897 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15898 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15899 <ldbl-classify-compat.h>.
15900 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15901 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15902 <ldbl-classify-compat.h>.
15903 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15904 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15905 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15906 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15907 * sysdeps/microblaze/math_private.h: Likewise.
15908 * sysdeps/nios2/math_private.h: Likewise.
15909 * sysdeps/sh/math_private.h: Likewise.
15910
15911 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15912 * sysdeps/m68k/coldfire/math_private.h: ... here.
15913 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15914 * sysdeps/tile/math_private.h: Likewise.
15915 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15916 Remove macro.
15917 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15918 Likewise.
15919
15920 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15921 Remove macro.
15922 (libc_fetestexcept): Likewise.
15923 (libc_feupdateenv_test): Likewise.
15924 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15925 (libc_fetestexcept): Likewise.
15926 (libc_feupdateenv_test): Likewise.
15927 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15928 (libc_fetestexcept): Likewise.
15929 (libc_feupdateenv_test): Likewise.
15930 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15931 (libc_fetestexcept): Likewise.
15932 (libc_feupdateenv_test): Likewise.
15933
15934 * sysdeps/generic/math_private.h
15935 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15936 New inline function.
15937 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15938 Likewise.
15939
15940 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15941 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15942 * sysdeps/generic/math_private.h
15943 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15944 inline function.
15945 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15946 Likewise.
15947 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15948 Likewise.
15949 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15950 Likewise.
15951 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15952 Likewise.
15953 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15954 Likewise.
15955 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15956 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15957 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15958 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15959 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15960 (__fegetenv): Likewise.
15961 (fesetenv): Likewise.
15962 (__fesetenv): Likewise.
15963 (feupdateenv): Likewise.
15964 (__feupdateenv): Likewise.
15965 (fegetround): Likewise.
15966 (__fegetround): Likewise.
15967 (fesetround): Likewise.
15968 (__fesetround): Likewise.
15969
15970 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15971 (feraiseexcept): New macro.
15972 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15973 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15974 Remove macro.
15975 (__feraiseexcept): Likewise.
15976 (feclearexcept): Likewise.
15977 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15978 (__feraiseexcept): Likewise.
15979 (feclearexcept): Likewise.
15980 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15981 (__feraiseexcept): Likewise.
15982 (feclearexcept): Likewise.
15983 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15984 (__feraiseexcept): Likewise.
15985 (feclearexcept): Likewise.
15986 (fetestexcept): Likewise.
15987
15988 * sysdeps/m68k/coldfire/math-tests.h: New file.
15989
15990 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15991 * sysdeps/m68k/bits/fenv.h: ... here.
15992 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15993 not define.
15994 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15995 Likewise.
15996 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15997 Likewise.
15998 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15999 Likewise.
16000 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16001 Likewise.
16002 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16003 Define to 0.
16004 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16005 (__FE_UNDEFINED): New enum constant.
16006 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16007 Do not define.
16008 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16009 Likewise.
16010 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16011 Likewise.
16012 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16013 to match generic bits/fenv.h.
16014 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16015 Do not define.
16016
16017 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16018 packed on bits.
16019 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16020 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16021 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16022 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16023
16024 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16025 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16026 Joseph Myers <joseph@codesourcery.com>
16027
16028 [BZ #21314]
16029 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16030 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16031 computation using c.
16032 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16033 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16034 computation using c.
16035
16036 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16037
16038 * version.h (RELEASE): Set to "development".
16039 (VERSION): Set to "2.27.9000".
16040 * NEWS (2.28): New section.
16041
16042 * version.h (RELEASE): Set to "stable".
16043 (VERSION): Set to "2.27".
16044 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16045
16046 * NEWS: Add the list of bugs fixed in 2.27.
16047
16048 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16049
16050 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16051 against PTHREAD_STACK_MIN.
16052
16053 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16054
16055 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16056 New entries.
16057 (Rafal Luzynski, Andreas Schwab): Update.
16058
16059 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16060
16061 [BZ #10871]
16062 * NEWS: List the languages which actually use the alternative
16063 months feature in this release. Also explain that "alt_mon" and
16064 "ab_alt_mon" are optional.
16065
16066 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16067
16068 [BZ #22765]
16069 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16070
16071 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16072
16073 * manual/install.texi (Tools for Compilation): Update the newest
16074 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16075 * INSTALL: Regenerated.
16076
16077 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16078
16079 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16080 instead of __builtin_expect.
16081
16082 2018-01-30 Florian Weimer <fweimer@redhat.com>
16083
16084 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16085 data.
16086 * nss/tst-nss-getpwent.c (do_test): Likewise.
16087
16088 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16089
16090 [BZ #10871]
16091 * localedata/locales/hr_HR (mon): Rename to...
16092 (alt_mon): This.
16093 (mon): Import from CLDR (genitive case).
16094 (d_t_fmt): Update the comment.
16095
16096 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16097
16098 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16099 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16100 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16101
16102 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16103
16104 * mach/Versions: Fix version when __mach_host_self_ was added.
16105 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16106 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16107 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16108 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16109 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16110 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16111 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16112 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16113 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16114 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16115 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16116 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16117 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16118 || to respect codestyle.
16119 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16120 (do_test_bz20181): Rename accordingly.
16121 * malloc/malloc.c: Include <assert.h>.
16122 (assert): Do not define.
16123 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16124 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16125 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16126 * sysdeps/mach/hurd/hp-timing.h: New file.
16127 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16128
16129 2018-01-29 Darius Rad <darius@bluespec.com>
16130
16131 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16132
16133 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16134
16135 * sysdeps/init_array/crti.S (.section .init_array): Add
16136 PREINIT_FUNCTION when defined.
16137 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16138 * config.h.in: Regenerate.
16139 * manual/platform.texi: Add RISC-V documenation for
16140 __riscv_flush_icache.
16141 * sysdeps/riscv/__longjmp.S: New file.
16142 * sysdeps/riscv/backtrace.c: Likewise.
16143 * sysdeps/riscv/bits/endian.h: Likewise.
16144 * sysdeps/riscv/bits/setjmp.h: Likewise.
16145 * sysdeps/riscv/bits/wordsize.h: Likewise.
16146 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16147 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16148 * sysdeps/riscv/dl-trampoline.S: Likewise.
16149 * sysdeps/riscv/gccframe.h: Likewise.
16150 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16151 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16152 * sysdeps/riscv/machine-gmon.h: Likewise.
16153 * sysdeps/riscv/memusage.h: Likewise.
16154 * sysdeps/riscv/setjmp.S: Likewise.
16155 * sysdeps/riscv/sys/asm.h: Likewise.
16156 * sysdeps/riscv/tls-macros.h: Likewise.
16157 * sysdeps/riscv/dl-tls.h: New file.
16158 * sysdeps/riscv/libc-tls.c: Likewise.
16159 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16160 * sysdeps/riscv/nptl/tls.h: Likewise.
16161 * sysdeps/riscv/stackinfo.h: Likewise.
16162 * sysdeps/riscv/bits/fenv.h: New file.
16163 * sysdeps/riscv/e_sqrtl.c: Likewise.
16164 * sysdeps/riscv/fpu_control.h: Likewise.
16165 * sysdeps/riscv/math-tests.h: Likewise.
16166 * sysdeps/riscv/nofpu/Implies: Likewise.
16167 * sysdeps/riscv/sfp-machine.h: Likewise.
16168 * sysdeps/riscv/tininess.h: Likewise.
16169 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16170 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16171 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16172 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16173 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16174 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16175 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16176 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16177 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16178 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16179 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16180 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16181 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16182 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16183 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16184 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16185 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16186 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16187 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16188 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16189 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16190 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16191 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16192 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16193 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16194 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16195 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16196 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16197 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16198 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16199 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16200 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16201 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16202 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16203 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16204 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16205 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16206 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16207 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16208 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16209 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16210 * sysdeps/riscv/rvf/math_private.h: Likewise.
16211 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16212 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16213 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16214 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16215 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16216 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16217 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16218 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16219 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16220 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16221 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16222 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16223 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16224 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16225 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16226 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16227 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16228 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16229 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16230 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16231 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16232 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16233 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16234 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16236 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16237 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16240 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16241 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16242 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16245 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16246 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16247 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16249 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16251 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16252 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16253 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16254 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16258 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16259 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16260 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16261 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16262 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16263 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16264 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16265 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16266 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16267 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16268 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16269 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16270 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16271 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16272 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16273 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16275 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16276 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16277 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16278 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16279 * sysdeps/riscv/Implies: New file.
16280 * sysdeps/riscv/Makefile: Likewise.
16281 * sysdeps/riscv/configure: Likewise.
16282 * sysdeps/riscv/configure.ac: Likewise.
16283 * sysdeps/riscv/nptl/Makefile: Likewise.
16284 * sysdeps/riscv/preconfigure: Likewise.
16285 * sysdeps/riscv/rv64/Implies-after: Likewise.
16286 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16287 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16288 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16289 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16290 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16291 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16292 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16293 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16294 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16295 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16296 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16297 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16298 (Config): Likewise.
16299
16300 2018-01-29 Florian Weimer <fweimer@redhat.com>
16301
16302 [BZ #22701]
16303 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16304 libnsl_hidden_proto.
16305 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16306 libnsl_hidden_proto.
16307 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16308 * nis/Makefile (libnsl-routines): Add nss-default only for
16309 build-obsolete-nsl.
16310 * nis/nis_defaults.c (__nis_default_ttl): Add
16311 libnsl_hidden_nolink_def.
16312 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16313 declaration.
16314 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16315 * nis/ypclnt.c (yp_maplist): Likewise.
16316
16317 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16318
16319 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16320 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16321
16322 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16323
16324 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16325 clean -dxfq for git updates when replacing sources.
16326
16327 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16328 --disable-libcilkrts unconditionally, not just for the final GCC
16329 build for Hurd.
16330
16331 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16332 version to 4.15.
16333
16334 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16335
16336 [BZ #10871]
16337 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16338 case).
16339
16340 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16341
16342 [BZ #10871]
16343 * localedata/locales/be_BY (mon): Rename to...
16344 (alt_mon): This, then synchronize with CLDR (nominative case).
16345 (abmon): Rename to...
16346 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16347 (mon): Import from CLDR (genitive case).
16348 (abmon): Likewise.
16349 * localedata/locales/be_BY@latin (mon): Rename to...
16350 (alt_mon): This.
16351 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16352
16353 * localedata/locales/be_BY@latin (lang_name): Reworded to
16354 "biełaruskaja mova".
16355
16356 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16357
16358 [BZ #10871]
16359 * localedata/locales/el_CY (mon): Renamed to...
16360 (alt_mon): This.
16361 (mon): Import from CLDR (genitive case).
16362 * localedata/locales/el_GR: Likewise.
16363
16364 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16365
16366 [BZ #10871]
16367 * localedata/locales/ru_RU (mon): Rename to...
16368 (alt_mon): This.
16369 (abmon): Rename to...
16370 (ab_alt_mon): This.
16371 (mon): Import from CLDR (genitive case).
16372 (abmon): Copy from the old content except the 5th month which is
16373 now in the genitive case, even when abbreviated.
16374 * localedata/locales/ru_UA: Likewise.
16375 * time/tst-strptime.c (day_tests): Add an actual example of
16376 a difference between %b and %Ob in Russian.
16377
16378 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16379
16380 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16381 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16382 a `c' variable.
16383 * resolv/res-close.c: Include <stdlib.h>.
16384 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16385 <sys/wait.h>, <time.h>, <sys/uio.h>.
16386 (NOT_CANCEL_H): Add inclusion guard.
16387 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16388 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16389 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16390 return 0.
16391 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16392 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16393 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16394 instead of void *.
16395 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16396 timer_ptr2id to cast struct timer_node * to void *.
16397 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16398 --disable-libcilkrts to gcc configure.
16399 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16400 and make them the default for now.
16401 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16402 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16403 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16404 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16405 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16406 MACH_IPC_COMPAT.
16407 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16408 __task_terminate would ever return successfully.
16409 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16410 to global scope.
16411 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16412 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16413 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16414 critical section to make code simpler and avoid warning.
16415 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16416 critical section to make code simpler and avoid warning.
16417 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16418 const char * instead of char *.
16419 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16420 __hurd_file_name_split, hurd_file_name_split,
16421 __hurd_directory_name_split, hurd_directory_name_split,
16422 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16423 hurd_file_name_path_lookup): Make lookup function parameter take a
16424 const char *name instead of char *name.
16425 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16426 __hurd_directory_name_split): Likewise.
16427 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16428 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16429 * sysdeps/mach/hurd/check_native.c: New file.
16430 * sysdeps/mach/hurd/check_pf.c: New file.
16431 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16432 (__freeifaddrs): Define macro to freeifaddrs.
16433 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16434 * sysdeps/mach/libmachuser.abilist: New file.
16435 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16436 (do_test_bz20181): Rename accordingly.
16437 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16438 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16439 <sys/mount.h>.
16440 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16441 version only if __USE_EXTERN_INLINES is defined.
16442 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16443 __hurd_sockfail): Likewise.
16444 (_hurd_fd_get): Always declare functions, and provide inline versions
16445 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16446 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16447 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16448 _hurd_port_set): Always declare functions, and provide inline versions
16449 only if __USE_EXTERN_INLINES and _LIBC are defined and
16450 IS_IN(libc).
16451 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16452 _hurd_critical_section_unlock): Likewise.
16453 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16454 * __hurd_threadvar_location): Likewise.
16455 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16456 _hurd_userlink_clear): Likewise.
16457 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16458 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16459 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16460 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16461 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16462 __spin_lock_locked): Likewise.
16463 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16464 __spin_lock_locked): Likewise.
16465 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16466 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16467 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16468 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16469 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16470 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16471 _POSIX_NO_TRUNC): Define to 0.
16472 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16473 check size against PTHREAD_STACK_MIN.
16474 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16475 IS_IN(libpthread)]: Include <sigsetops.h>.
16476 * mach/Makefile (user-interfaces): Add mach/gnumach.
16477 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16478 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16479 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16480 instead of invalid -1.
16481 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16482 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16483 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16484 <net/ppp_defs.h>.
16485
16486 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16487
16488 * hurd/fcntl-internal.h: New file.
16489
16490 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16491
16492 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16493
16494 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16495
16496 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16497
16498 [BZ #22701]
16499 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16500 Build only shared objects.
16501
16502 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16503
16504 * README: Update for hppa.
16505
16506 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16507
16508 * sysdeps/sparc/fpu/libm-test-ulps: Update
16509 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16510
16511 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16512
16513 Revert:
16514
16515 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16516
16517 [BZ #22563]
16518 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16519 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16520 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16521 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16522 to feature_1.
16523
16524 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16525
16526 [BZ #22563]
16527 * bits/types/__cancel_jmp_buf_tag.h: New file.
16528 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16529 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16530 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16531 * nptl/Makefile (headers): Add
16532 bits/types/__cancel_jmp_buf_tag.h.
16533 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16534 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16535 * sysdeps/nptl/pthread.h: Include
16536 <bits/types/__cancel_jmp_buf_tag.h>.
16537 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16538 __cancel_jmp_buf.
16539 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16540
16541 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16542
16543 [BZ #10871]
16544 * localedata/locales/uk_UA (mon): Renamed to...
16545 (alt_mon): This.
16546 (alt_digits): "0" removed and then renamed to...
16547 (mon): This.
16548 (date_fmt): Definition changed not to use the alternative
16549 digits hack.
16550
16551 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16552
16553 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16554 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16555 * elf/elf.h (EF_RISCV_RVC): New define.
16556 (EF_RISCV_FLOAT_ABI): Likewise.
16557 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16558 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16559 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16560 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16561 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16562 define.
16563 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16564
16565 2018-01-25 Andreas Schwab <schwab@suse.de>
16566
16567 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16568 single quotes.
16569 * sysdeps/gnu/configure: Regenerate.
16570 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16571 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16573 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16574 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16575 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16576 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16577 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16578
16579 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16580
16581 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16582 URL, and run autoconf, make it the default for now.
16583
16584 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16585
16586 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16587 soft-float ColdFire configuration.
16588
16589 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16590 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16591 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16592
16593 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16594 MicroBlaze file.
16595
16596 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16597 ....
16598 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16599 ... here.
16600 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16601 New file.
16602
16603 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16604 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16605 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16606 file.
16607
16608 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16609
16610 [BZ #22742]
16611 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16612 Rename to __reserved and add comment.
16613 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16614 Rename to __reserved.
16615
16616 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16617
16618 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16619 i686-gnu configurations.
16620 (Context.run_builds): Include mig, gnumach and hurd in components
16621 considered.
16622 (Context.checkout): Add mig, gnumach and hurd to components.
16623 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16624 hurd.
16625 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16626 (Config.build): Install gnumach headers, build mig and install
16627 hurd headers for 'gnu' OS.
16628 (Config.install_gnumach_headers): New function.
16629 (Config.install_hurd_headers): Likewise.
16630 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16631 when building for 'gnu' OS.
16632
16633 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16634
16635 * manual/tunables.texi (Hardware Capability Tunables): Fix
16636 spelling.
16637
16638 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16639
16640 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16641 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16642 (ALTMON_11, ALTMON_12): Improve documentation.
16643 * manual/time.texi (strftime): Likewise.
16644
16645 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16646
16647 [BZ #10871]
16648 * localedata/locales/pl_PL: Alternative month names added,
16649 primary month names are genitive now.
16650 * time/tst-strptime.c (day_tests): Actually use a genitive case
16651 of a month name in Polish language.
16652
16653 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16654
16655 [BZ #10871]
16656 * manual/locale.texi: Document ALTMON_1..12 constants for
16657 nl_langinfo. Specify when to use ALTMON instead of MON.
16658 * manual/time.texi (strftime, strptime): Document GNU extension
16659 permitting O modifier with %B and %b. Specify when to use
16660 %OB instead of %B.
16661
16662 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16663
16664 [BZ #10871]
16665 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16666 names, define them as the same as abbreviated month names explicitly.
16667 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16668 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16669 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16670 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16671 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16672 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16673 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16674 _NL_WABALTMON_12): New enum constants.
16675 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16676 wab_alt_mon, and ab_alt_mon_defined members.
16677 (time_output): Output ab_alt_mon and wab_alt_mon members.
16678 (time_read): Read them, initialize them as copies of abmon and wabmon
16679 respectively if they are missing, initialize ab_alt_mon_defined.
16680 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16681 * locale/programs/locfile-kw.h: Regenerate.
16682 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16683 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16684 and ru_RU.UTF-8.
16685 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16686 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16687 (__strftime_internal): Handle %Ob and %Oh formats.
16688 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16689 (__strptime_internal): Handle %Ob and %Oh formats.
16690 * time/tst-strptime.c (day_tests): Add more tests to parse different
16691 forms of month names including the new %Ob format specifier.
16692
16693 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16694
16695 [BZ #10871]
16696 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16697 define them as the same as primary full month names explicitly.
16698 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16699 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16700 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16701 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16702 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16703 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16704 _NL_WALTMON_12): New enum constants.
16705 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16706 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16707 macros.
16708 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16709 walt_mon, and alt_mon_defined members.
16710 (time_output): Output alt_mon and walt_mon members.
16711 (time_read): Read them, initialize them as copies of mon and wmon
16712 respectively if they are missing, initialize alt_mon_defined.
16713 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16714 * locale/programs/locfile-kw.h: Regenerate.
16715 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16716 * localedata/tst-langinfo.c (map): Add tests for the new constants
16717 ALTMON_1 .. ALTMON_12.
16718 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16719 and pl_PL.UTF-8.
16720 * time/strftime_l.c (f_altmonth): New macro.
16721 (__strftime_internal): Handle %OB format.
16722 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16723 (__strptime_internal): Handle %OB format.
16724 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16725 of month names including the new %OB format specifier.
16726
16727 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16728
16729 [BZ #22685]
16730 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16731 from ABORT_TRANSACTION.
16732 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16733 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16734 ABORT_TRANSACTION_IMPL): Likewise.
16735 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16736 Linux code, but remove the code that aborts transactions.
16737
16738 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16739
16740 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16741
16742 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16743
16744 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16745 in date: "2004-14-09" should be "2004-09-14".
16746 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16747 "2003-15-09" should be "2003-09-15".
16748
16749 2018-01-18 Arjun Shankar <arjun@redhat.com>
16750
16751 [BZ #22343]
16752 [BZ #22774]
16753 CVE-2018-6485
16754 CVE-2018-6551
16755 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16756 after padding.
16757 (_int_memalign): check for integer overflow before calling
16758 _int_malloc.
16759 * malloc/tst-malloc-too-large.c: New test.
16760 * malloc/Makefile: Add tst-malloc-too-large.
16761
16762 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16763
16764 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16765 in date: "2017-24-07" should be "2017-07-24".
16766 * localedata/locales/mai_IN: Likewise.
16767 * localedata/locales/mai_NP: Likewise.
16768
16769 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16770
16771 * po/ru.po: Update translations.
16772
16773 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16774
16775 [BZ #22719]
16776 * sysdeps/hppa/backtrace.c: New file.
16777
16778 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16779
16780 [BZ #22715]
16781 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16782 align La_x86_64_retval to VEC_SIZE.
16783
16784 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16785
16786 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16787 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16788
16789 2018-01-16 Florian Weimer <fweimer@redhat.com>
16790
16791 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16792 Move tst-thread-exit-clobber ...
16793 [$(CXX)] (tests-unsupported): ... to here.
16794
16795 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16796
16797 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16798 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16799 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16800 (_dl_aarch64_cap_flags): Update.
16801 (_DL_HWCAP_COUNT): Update.
16802
16803 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16804
16805 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16806 (_DL_HWCAP_LAST): Remove.
16807 (_DL_HWCAP_COUNT): Move to ...
16808 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16809 (_DL_HWCAP_COUNT): ... here.
16810
16811 2018-01-16 Florian Weimer <fweimer@redhat.com>
16812
16813 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16814 mode with GNU extensions.
16815
16816 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16817
16818 * elf/elf.h (NT_ARM_SVE): Define.
16819
16820 2018-01-15 Florian Weimer <fweimer@redhat.com>
16821
16822 [BZ #22636]
16823 * nptl/tst-minstack-throw.cc: New file.
16824 * nptl/Makefile (tests): Add tst-minstack-throw.
16825 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16826 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16827
16828 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16829
16830 * scripts/build-many-glibcs.py (Context.checkout): Default
16831 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16832 version to 1.1.0.
16833
16834 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16835
16836 [BZ #22707]
16837 * elf/elf.h (DF_1_STUB): Define.
16838 (DF_1_PIE): Define.
16839
16840 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16841
16842 [BZ #22697]
16843 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16844 Do not add 0.5 to integer or out-of-range arguments.
16845
16846 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16847
16848 * po/bg.po: Update translations.
16849 * po/cs.po: Likewise.
16850 * po/de.po: Likewise.
16851 * po/ko.po: Likewise.
16852 * po/pl.po: Likewise.
16853 * po/sv.po: Likewise.
16854 * po/uk.po: Likewise.
16855 * po/vi.po: Likewise.
16856
16857 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16858
16859 * aarch64/start.S (_start): Use __wrap_main.
16860 (__wrap_main): New local symbol.
16861
16862 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16863
16864 [BZ #22679]
16865 CVE-2018-1000001
16866 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16867 generic_getcwd if the path returned by getcwd syscall is not absolute.
16868 * io/tst-getcwd-abspath.c: New test.
16869 * io/Makefile (tests): Add tst-getcwd-abspath.
16870
16871 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16872
16873 * malloc/malloc.c (malloc_consolidate): Add size check.
16874
16875 2018-01-12 Florian Weimer <fweimer@redhat.com>
16876
16877 * support/write_message.c (write_message): Preserve errno.
16878 * support/check.c (print_failure): Likewise.
16879 * support/support_test_verify_impl.c (support_test_verify_impl):
16880 Likewise.
16881 * support/support_test_compare_failure.c
16882 (support_test_compare_failure): Likewise.
16883
16884 2018-01-12 Florian Weimer <fweimer@redhat.com>
16885
16886 [BZ #22701]
16887 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16888 Prevent installation of libnsl.so.
16889 (libnsl-inhibit-o): Do not build (or install) static libraries.
16890
16891 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16892
16893 [BZ #22657]
16894 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16895 before the day number which may produce a double space.
16896 (date_fmt): Likewise.
16897
16898 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16899
16900 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16901 instead of fegetenv.
16902
16903 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16904
16905 [BZ #22702]
16906 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16907 comment to say exceptions are discarded.
16908 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16909 __fegetenv.
16910 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16911 be enabled.
16912
16913 2018-01-11 Florian Weimer <fweimer@redhat.com>
16914
16915 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16916 and error message.
16917
16918 2018-01-11 Florian Weimer <fweimer@redhat.com>
16919
16920 [BZ #22636]
16921 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16922 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16923
16924 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16925
16926 [BZ #22693]
16927 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16928 negative arguments in test for NaN or infinity argument.
16929
16930 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16931
16932 * po/libc.pot: Regenerate.
16933
16934 2018-01-10 Florian Weimer <fweimer@redhat.com>
16935
16936 [BZ #22636]
16937 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16938 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16939
16940 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16941
16942 * hurd/hurd/fd.h: Include <fcntl.h>
16943 (__hurd_at_flags): New function.
16944 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16945 with call to __hurd_at_flags.
16946 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16947 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16948 __faccessat
16949 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16950 (__access_noerrno): Use __faccessat_common instead of access_common.
16951 (__access): Likewise.
16952 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16953 with a call to __faccessat.
16954 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16955 (__faccessat_common): ... this. Move implementation of __access into it when
16956 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16957 reauthenticate_cwdir_at helper to implement AT mechanism.
16958 (__faccessat_noerrno): New function, just calls __faccessat_common.
16959 (__faccessat): New function, just calls __faccessat_common.
16960 (faccessat): Define weak alias.
16961
16962 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16963
16964 [BZ #22691]
16965 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16966 (CFLAGS-s_fmaxmagl.c): New variable.
16967 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16968
16969 [BZ #22690]
16970 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16971 long int for arguments of possibly overflowing addition or
16972 subtraction.
16973 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16974
16975 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16976
16977 [BZ #22688]
16978 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16979 (CFLAGS-e_remainderl.c): New variable.
16980
16981 [BZ #22687]
16982 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16983 variable.
16984 (CFLAGS-s_cacoshl.c): Likewise.
16985 (CFLAGS-s_casinhl.c): Likewise.
16986 (CFLAGS-s_catanl.c): Likewise.
16987 (CFLAGS-s_catanhl.c): Likewise.
16988 (CFLAGS-s_cexpl.c): Likewise.
16989 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16990 (CFLAGS-s_csinhl.c): Likewise.
16991 (CFLAGS-s_clogl.c): Likewise.
16992 (CFLAGS-s_clog10l.c): Likewise.
16993 (CFLAGS-s_csinl.c): Likewise.
16994 (CFLAGS-s_csqrtl.c): Likewise.
16995
16996 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16997 2017-01-09 Svante Signell <svante.signell@gmail.com>
16998
16999 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17000 (_hurd_exec_paths): New function.
17001 * hurd/hurd.h (_hurd_exec): Deprecate function.
17002 (_hurd_exec_paths): Declare function.
17003 * hurd/Versions: Export _hurd_exec_paths.
17004 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17005 (__execve): Use __getcwd to build absolute path, and use
17006 _hurd_exec_paths instead of _hurd_exec.
17007 * sysdeps/mach/hurd/spawni.c: Likewise.
17008 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17009 _hurd_exec.
17010
17011 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17012
17013 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17014 test instead of failing in case of ENOENT returned by posix_openpt.
17015
17016 2018-01-08 Florian Weimer <fweimer@redhat.com>
17017
17018 resolv: Support binary labels in test framework.
17019 * support/resolv_test.c (struct to_be_freed): Remove.
17020 (struct compressed_name): New.
17021 (allocate_compressed_name, ascii_tolower)
17022 (compare_compressed_name): New functions.
17023 (struct resolv_response_builder): Update type of
17024 compression_offsets for use with tsearch. Rempve to_be_freed.
17025 (response_push_pointer_to_free): Remove function.
17026 (resolv_response_add_name): Rewrite using struct compressed_name
17027 and tsearch instead of hsearch_r.
17028 (response_builder_allocate): Remove initialization of
17029 compression_offsets.
17030 (response_builder_free): Update for removal of to_be_freed. Use
17031 tdestroy instead of hdestroy_r.
17032 * resolv/Makefile (tests): Add tst-resolv-binary.
17033 (tst-resolv-binary): Link with -lresolv -lpthread.
17034
17035 2018-01-08 Florian Weimer <fweimer@redhat.com>
17036
17037 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17038 time. Pass positive flag instead of negative flag to
17039 support_test_compare_failure.
17040 (support_test_compare_failure): Change negative parameter to
17041 positive.
17042 * support/support_test_compare_failure.c (report)
17043 (support_test_compare_failure): Likewise.
17044 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17045 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17046
17047 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17048
17049 [BZ #22637]
17050 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17051 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17052 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17053 stacksize.
17054 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17055
17056 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17057
17058 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17059 Add s_sincosf-sse2 and s_sincosf-fma.
17060 (CFLAGS-s_sincosf-fma.c): New.
17061 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17062 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17063 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17064 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17065 __sincosf is defined.
17066
17067 2018-01-08 Florian Weimer <fweimer@redhat.com>
17068
17069 * nptl/tst-thread-exit-clobber.cc: New file.
17070 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17071 C++11 mode.
17072 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17073 (tests): Add tst-thread-exit-clobber.
17074 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17075
17076 2018-01-08 Florian Weimer <fweimer@redhat.com>
17077
17078 * support/check.h (support_static_assert): Define.
17079 (TEST_COMPARE): Use it.
17080
17081 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17082
17083 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17084 [!__RLIM_T_MATCHES_RLIM64_T]
17085 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17086 __getrlimit64. Add libc_hidden_weak.
17087
17088 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17089
17090 * elf/elf.h (R_RISCV_NONE): New define.
17091 (R_RISCV_32): Likewise.
17092 (R_RISCV_64): Likewise.
17093 (R_RISCV_RELATIVE): Likewise.
17094 (R_RISCV_COPY): Likewise.
17095 (R_RISCV_JUMP_SLOT): Likewise.
17096 (R_RISCV_TLS_DTPMOD32): Likewise.
17097 (R_RISCV_TLS_DTPMOD64): Likewise.
17098 (R_RISCV_TLS_DTPREL32): Likewise.
17099 (R_RISCV_TLS_DTPREL64): Likewise.
17100 (R_RISCV_TLS_TPREL32): Likewise.
17101 (R_RISCV_TLS_TPREL64): Likewise.
17102 * Makerules (make-link-multidir): Make directories before linking into
17103 them.
17104 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17105 define.
17106 (VDSO_HASH_LINUX_4_15): Likewise.
17107 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17108 in subdirectories of lib.
17109 * nptl/Makefile (/librt.so): Always depend on
17110 "$(shared-thread-library)".
17111
17112 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17113
17114 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17115 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17116 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17117 (___tls_get_addr).
17118 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17119 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17120 "-O2 -march=i686".
17121 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17122 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17123 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17124 * sysdeps/gnu/glob-lstat-compat.c: New file.
17125 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17126 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17127
17128 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17129
17130 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17131 Reserve 16 chars to reloc_addr before calling _itoa_word.
17132
17133 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17134
17135 [BZ #22678]
17136 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17137 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17138
17139 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17140 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17141
17142 * resource/tst-getrlimit.c: Add copyright header.
17143
17144 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17145 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17146
17147 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17148 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17149 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17150 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17151 instead.
17152 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17153 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17154 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17155 RLIM64_INFINITY): Fix values to match the kernel ones.
17156 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17157 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17158 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17159 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17160 getrlimit64@@GLIBC_2_27.
17161 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17162 and setrlimit64.
17163 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17164 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17165 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17166 setrlimit, getrlimit64 and setrlimit64.
17167
17168 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17169
17170 [BZ #22648]
17171 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17172 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17173
17174 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17175
17176 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17177 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17178 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17179
17180 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17181
17182 [BZ #15479]
17183 [BZ #22666]
17184 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17185 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17186
17187 [BZ #15479]
17188 [BZ #22665]
17189 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17190 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17191 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17192 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17193
17194 2018-01-04 Florian Weimer <fweimer@redhat.com>
17195
17196 [BZ #22667]
17197 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17198 Align the stack before calling exit.
17199 * stdlib/tst-makecontext-align.c: New file.
17200 * stdlib/Makefile (tests): Add tst-makecontext-align.
17201
17202 2018-01-04 Florian Weimer <fweimer@redhat.com>
17203
17204 Add support for calling dlvsym from libc.so.
17205 * include/dlfcn.h (__libc_dlvsym): Declare.
17206 * elf/Makefile (tests-static-internal): Add
17207 tst-libc_dlvsym-static.
17208 (tests-internal): Add tst-libc_dlvsym.
17209 (modules-names): Add tst-libc_dlvsym-dso.
17210 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17211 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17212 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17213 object tst-libc_dlvsym-dso.so needs to be built before running
17214 these tests.
17215 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17216 * elf/Versions: Export __libc_dlvsym.
17217 * elf/dl-libc.c (struct do_dlvsym_args): New.
17218 (do_dlvsym, __libc_dlvsym): New functions.
17219 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17220 (_dl_open_hook2): New variable.
17221 (__libc_register_dl_open_hook): Set it.
17222 * elf/tst-libc_dlvsym-dso.c: New file.
17223 * elf/tst-libc_dlvsym-static.c: Likewise.
17224 * elf/tst-libc_dlvsym.c: Likewise.
17225 * elf/tst-libc_dlvsym.h: Likewise.
17226
17227 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17228
17229 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17230 include <sys/mount.h>.
17231
17232 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17233
17234 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17235 Add __NO_MATH_ERRNO__ check.
17236
17237 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17238
17239 * sysdeps/mips/mips32/libm-test-ulps: Update.
17240 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17241
17242 2018-01-02 Florian Weimer <fweimer@redhat.com>
17243
17244 * misc/tst-pselect.c: Add copyright header.
17245
17246 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17247
17248 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17249 comment.
17250 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17251 comment.
17252 (settrlimit): Rename into setrlimit.
17253 (__sttrlimit): Rename into __setrlimit.
17254
17255 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17256 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17257 never defined in that case.
17258
17259 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17260
17261 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17262
17263 * sysdeps/arm/libm-test-ulps: Update.
17264
17265 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17266 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17267
17268 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17269
17270 * NEWS: Add cosf and sincosf to list of optimized functions.
17271
17272 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17273
17274 [BZ #22660]
17275 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17276 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17277 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17278 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17279
17280 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17281
17282 [BZ #22433]
17283 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17284
17285 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17286 making a copy of it.
17287
17288 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17289
17290 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17291 trailing whitespace removed.
17292 * scripts/config.guess: Update to version 2018-01-01.
17293 * scripts/config.sub: Update to version 2018-01-01.
17294 * scripts/move-if-change: Update from gnulib.
17295
17296 * NEWS: Update copyright dates.
17297 * catgets/gencat.c (print_version): Likewise.
17298 * csu/version.c (banner): Likewise.
17299 * debug/catchsegv.sh: Likewise.
17300 * debug/pcprofiledump.c (print_version): Likewise.
17301 * debug/xtrace.sh (do_version): Likewise.
17302 * elf/ldconfig.c (print_version): Likewise.
17303 * elf/ldd.bash.in: Likewise.
17304 * elf/pldd.c (print_version): Likewise.
17305 * elf/sotruss.sh: Likewise.
17306 * elf/sprof.c (print_version): Likewise.
17307 * iconv/iconv_prog.c (print_version): Likewise.
17308 * iconv/iconvconfig.c (print_version): Likewise.
17309 * locale/programs/locale.c (print_version): Likewise.
17310 * locale/programs/localedef.c (print_version): Likewise.
17311 * login/programs/pt_chown.c (print_version): Likewise.
17312 * malloc/memusage.sh (do_version): Likewise.
17313 * malloc/memusagestat.c (print_version): Likewise.
17314 * malloc/mtrace.pl: Likewise.
17315 * manual/libc.texinfo: Likewise.
17316 * nptl/version.c (banner): Likewise.
17317 * nscd/nscd.c (print_version): Likewise.
17318 * nss/getent.c (print_version): Likewise.
17319 * nss/makedb.c (print_version): Likewise.
17320 * posix/getconf.c (main): Likewise.
17321 * scripts/test-installation.pl: Likewise.
17322 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17323
17324 * All files with FSF copyright notices: Update copyright dates
17325 using scripts/update-copyrights.
17326 * locale/programs/charmap-kw.h: Regenerated.
17327 * locale/programs/locfile-kw.h: Likewise.
17328
17329 2017-12-31 Zack Weinberg <zackw@panix.com>
17330
17331 * libio/bits/libio-ldbl.h: Correct check for improper
17332 inclusion. Add own multiple include guard.
17333
17334 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17335 Dmitry V. Levin <ldv@altlinux.org>
17336
17337 [BZ #22625]
17338 CVE-2017-16997
17339 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17340 string token expansion. Check for NULL pointer or empty string possibly
17341 returned by expand_dynamic_string_token.
17342 (decompose_rpath): Check for empty path after dynamic string
17343 token expansion.
17344
17345 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17346
17347 [BZ #22433]
17348 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17349
17350 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17351 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17352 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17353 and PTRACE_SYSCALL.
17354 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17355 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17356 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17357 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17358 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17359 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17360
17361 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17362 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17363 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17364 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17365 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17366 bits/ptrace-shared.h.
17367 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17368 <bits/ptrace-shared.h>.
17369 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17370 __ptrace_peeksiginfo_flags, ptrace): Remove.
17371 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17372 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17373 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17374 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17375 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17376
17377 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17378
17379 [BZ #17804]
17380 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17381 end of the loop. Improve comments.
17382
17383 2017-12-29 Zack Weinberg <zackw@panix.com>
17384
17385 [BZ #22615]
17386 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17387 might be set on success.
17388
17389 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17390
17391 [BZ #22611]
17392 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17393 is unchanged on success.
17394
17395 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17396
17397 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17398 updated.
17399 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17400 expand_dynamic_string_token): Likewise.
17401 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17402 is_path argument.
17403
17404 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17405 contains ':'.
17406
17407 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17408 is set and name contains ':', and all code depending on these checks.
17409
17410 2017-12-24 Zack Weinberg <zackw@panix.com>
17411
17412 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17413 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17414 respectively.
17415 * libio/libio.h: Rename the original version of this file to
17416 libio/bits/libio.h. Error out if not included by stdio.h or the
17417 stub libio.h.
17418 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17419 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17420 if not included by bits/libio.h or the stub _G_config.h.
17421 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17422 sysdeps/unix/sysv/linux/bits. Error out if not included by
17423 bits/libio.h or the stub _G_config.h.
17424 * libio/stdio.h: Include bits/libio.h, not libio.h.
17425 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17426 well as libio.h and _G_config.h.
17427
17428 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17429 * libio/strfile.h, stdio-common/vfscanf.c
17430 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17431 Include stdio.h, not _G_config.h nor libio.h.
17432 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17433 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17434
17435 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17436
17437 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17438
17439 [BZ #22347]
17440 * stdlib/getrandom.c (getrandom): Fix comment.
17441 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17442
17443 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17444
17445 [BZ #21161]
17446 * manual/arith.texi (strtoul): Fix a typo.
17447
17448 [BZ #22596]
17449 * manual/arith.texi (finite): Fix the description of the return
17450 value.
17451
17452 2017-12-22 Eric Blake <ebb9@byu.net>
17453
17454 Avoid gcc warnings on cygwin
17455 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17456 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17457 Avoid unused variable.
17458
17459 2017-12-22 Florian Weimer <fweimer@redhat.com>
17460
17461 * io/Makefile (routines): Add copy_file_range.
17462 (tests): Add tst-copy_file_range.
17463 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17464 * io/Versions (GLIBC_2.27): Export copy_file_range.
17465 * io/copy_file_range-compat.c: New file.
17466 * io/copy_file_range.c: Likewise.
17467 * io/tst-copy_file_range-compat.c: Likewise.
17468 * io/tst-copy_file_range.c: Likewise.
17469 * manual/llio.texi (Copying File Data): New section.
17470 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17471 * support/Makefile (libsupport-routines): Add support-xfstat,
17472 xftruncate, xlseek.
17473 * support/support-xfstat.c: New file.
17474 * support/xftruncate.c: Likewise.
17475 * support/xlseek.c: Likewise.
17476 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17477 * sysdeps/unix/sysv/linux/**.abilist: Update.
17478 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17479
17480 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17481
17482 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17483 disable-multi-arch variant to aarch64-linux-gnu.
17484
17485 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17486
17487 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17488 trailing whitespace removed.
17489 * scripts/config.guess: Update to version 2017-12-17.
17490 * scripts/config.sub: Update to version 2017-11-23.
17491 * scripts/install-sh: Update to version 2017-09-23.17.
17492 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17493
17494 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17495
17496 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17497 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17498 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17499 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17500 * sysdeps/tile/crtn.S: Likewise.
17501 * sysdeps/tile/dl-start.S (_start): Likewise.
17502 * sysdeps/tile/dl-trampoline.S: Likewise.
17503 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17504 * sysdeps/tile/start.S (_start): Likewise.
17505 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17506 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17507 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17508 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17509 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17510 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17511 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17512
17513 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17514 comment.
17515 * sysdeps/tile/preconfigure: Remove tilegx folder.
17516 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17517 * sysdeps/tile/Implies: ... here.
17518 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17519 * sysdeps/tile/Makefile: ... here.
17520 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17521 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17522 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17523 * sysdeps/tile/bits/wordsize.h: ... here.
17524 * sysdeps/tile/tilegx/*: Move to ...
17525 * sysdeps/tile/*: ... here.
17526 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17527 * sysdeps/tile/tilegx32/Implies: ... here.
17528 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17529 * sysdeps/tile/tilegx64/Implies: ... here.
17530 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17531 to ...
17532 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17533 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17534 * sysdeps/unix/sysv/linux/tile/*: ... here.
17535 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17536 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17537 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17538 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17539
17540 * README: Remove tilepro-*-linux-gnu from supported architecture.
17541 * scripts/build-many-glibcs.py: Likewise.
17542 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17543 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17544 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17545 elf_machine_matches_host, elf_machine_dynamic,
17546 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17547 howto, elf_machine_rela): Likewise.
17548 * sysdeps/tile/dl-start.S (_start): Likewise.
17549 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17550 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17551 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17552 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17553 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17554 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17555 Likewise.
17556 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17557 * sysdeps/tile/preconfigure: Likewise.
17558 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17559 POINTER_CHK_GUARD): Likewise.
17560 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17561 * sysdeps/tile/start.S (_start): Likewise.
17562 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17563 Likewise.
17564 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17565 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17566 CMOVNEZ): Remove.
17567 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17568 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17569 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17570 Likewise.
17571 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17572 * sysdeps/tile/tilepro/Implies: Remove file.
17573 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17574 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17575 * sysdeps/tile/tilepro/memchr.c: Likewise.
17576 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17577 * sysdeps/tile/tilepro/memset.c: Likewise.
17578 * sysdeps/tile/tilepro/memusage.h: Likewise.
17579 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17580 * sysdeps/tile/tilepro/strchr.c: Likewise.
17581 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17582 * sysdeps/tile/tilepro/strlen.c: Likewise.
17583 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17584 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17585 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17586 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17587 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17588 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17589 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17590 Likewise.
17591 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17592 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17594 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17599 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17600 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17601 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17602 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17603 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17604 tilepro mention in comment.
17605
17606 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17607 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17608 * nptl/pthread_join_common.c: New file: common function used on
17609 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17610 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17611 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17612 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17613 (cleanup): Move definition to pthread_join_common.c.
17614 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17615 Remove superflous checks.
17616 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17617 Likewise.
17618
17619 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17620
17621 * sysdeps/aarch64/libm-test-ulps: Update.
17622
17623 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17624
17625 * sysdeps/aarch64/memset.S (MEMSET): Define.
17626
17627 2017-12-20 Florian Weimer <fweimer@redhat.com>
17628
17629 [BZ #22635]
17630 nptl: Provide full implementation of pthread_self in libc.so.
17631 * nptl/Makefile (routines): Add pthread_self.
17632 (libpthread-routines): Replace pthread_self with
17633 compat-pthread_self.
17634 * nptl/forward.c (pthread_self): Remove.
17635 * nptl/nptl-init.c (pthread_functions): Do not initialize
17636 ptr_pthread_self.
17637 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17638 * nptl/compat-pthread_self.c: New file.
17639 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17640 Remove ptr_pthread_self.
17641
17642 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17643
17644 * posix/regcomp.c: Fix spelling in comments.
17645 * posix/regex.h: Likewise.
17646 * posix/regex_internal.c: Likewise.
17647 * posix/regexec.c: Likewise.
17648
17649 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17650
17651 [BZ #22377]
17652 * math/Makefile [C++] (tests): Add test for iseqsig.
17653 * math/math.h [C++] (iseqsig): New implementation, which does
17654 not rely on __MATH_TG/__builtin_types_compatible_p.
17655 * math/test-math-iseqsig.cc: New file.
17656 * sysdeps/powerpc/powerpc64le/Makefile
17657 (CFLAGS-test-math-iseqsig.cc): New variable.
17658
17659 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17660
17661 * elf/dl-load.c (is_trusted_path): Remove.
17662 (fillin_rpath): Remove check_trusted argument and its use,
17663 all callers changed.
17664
17665 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17666
17667 [BZ #22630]
17668 * Makeconfig (link-pie-before-libc): Replace -pie with
17669 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17670 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17671 (tst-dlopen-aout-no-pie): New.
17672 (LDFLAGS-tst-prelink): Removed.
17673 (tst-prelink-no-pie): New.
17674 (LDFLAGS-tst-main1): Removed.
17675 (tst-main1-no-pie): New.
17676 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17677 (tst-gmon-no-pie): New.
17678
17679 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17680
17681 * manual/install.texi: Document that --enable-static-pie
17682 implies PIE.
17683 * INSTALL: Regenerated.
17684
17685 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17686
17687 [BZ #21309]
17688 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17689 unsigned.
17690
17691 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17692
17693 Revert:
17694
17695 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17696
17697 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17698
17699 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17700
17701 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17702 <errno.h>. Include "eexp.tbl".
17703 (half): New constant.
17704 (one): Likewise.
17705 (__ieee754_exp): Rewrite.
17706 (__slowexp): Remove prototype.
17707 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17708 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17709 * sysdeps/i386/fpu/slowexp.c: Likewise.
17710 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17711 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17712 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17713 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17714 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17715 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17716 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17717 comment.
17718 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17719 (CPPFLAGS-slowexp.c): Remove variable.
17720 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17721 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17722 (CFLAGS-slowexp-fma.c): Remove variable.
17723 (CFLAGS-slowexp-fma4.c): Likewise.
17724 (CFLAGS-slowexp-avx.c): Likewise.
17725 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17726 define as macro.
17727 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17728 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17729 * math/Makefile (type-double-routines): Remove slowexp.
17730 * manual/probes.texi (slowexp_p6): Remove.
17731 (slowexp_p32): Likewise.
17732
17733 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17734
17735 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17736 arithmetic.
17737
17738 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17739
17740 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17741
17742 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17743
17744 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17745
17746 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17747 <errno.h>. Include "eexp.tbl".
17748 (half): New constant.
17749 (one): Likewise.
17750 (__ieee754_exp): Rewrite.
17751 (__slowexp): Remove prototype.
17752 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17753 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17754 * sysdeps/i386/fpu/slowexp.c: Likewise.
17755 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17756 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17757 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17758 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17759 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17760 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17761 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17762 comment.
17763 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17764 (CPPFLAGS-slowexp.c): Remove variable.
17765 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17766 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17767 (CFLAGS-slowexp-fma.c): Remove variable.
17768 (CFLAGS-slowexp-fma4.c): Likewise.
17769 (CFLAGS-slowexp-avx.c): Likewise.
17770 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17771 define as macro.
17772 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17773 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17774 * math/Makefile (type-double-routines): Remove slowexp.
17775 * manual/probes.texi (slowexp_p6): Remove.
17776 (slowexp_p32): Likewise.
17777
17778 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17779 James Clarke <jrtc27@jrtc27.com>
17780
17781 [BZ #22603]
17782 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17783 addition.
17784
17785 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17786
17787 [BZ #22605]
17788 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17789 code.
17790
17791 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17792
17793 [BZ #22563]
17794 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17795 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17796 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17797 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17798 to feature_1.
17799
17800 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17801
17802 [BZ #22563]
17803 * bits/types/__cancel_jmp_buf_tag.h: New file.
17804 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17805 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17806 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17807 * nptl/Makefile (headers): Add
17808 bits/types/__cancel_jmp_buf_tag.h.
17809 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17810 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17811 * sysdeps/nptl/pthread.h: Include
17812 <bits/types/__cancel_jmp_buf_tag.h>.
17813 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17814 __cancel_jmp_buf.
17815 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17816
17817 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17818
17819 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17820 --enable-static-pie variants to x86_64, x32 and i686.
17821
17822 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17823
17824 [BZ #22631]
17825 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17826 argument for attrubutes. All callers changed.
17827 (__inline_mathop1): Likewise. All callers changed.
17828 (__inline_mathop): Likewise. All callers changed.
17829 [__USE_MISC] (scalbn): Use __inline_forward instead of
17830 __inline_forward_c.
17831 [__USE_ISOC99] (scalbln): Likewise.
17832 [__USE_ISOC99] (nearbyint): Likewise.
17833 [__USE_ISOC99] (lrint): Likewise.
17834 [__USE_MISC] (scalbnf): Likewise.
17835 [__USE_ISOC99] (scalblnf): Likewise.
17836 [__USE_ISOC99] (nearbyintf): Likewise.
17837 [__USE_ISOC99] (lrintf): Likewise.
17838 [__USE_MISC] (scalbnl): Likewise.
17839 [__USE_ISOC99] (scalblnl): Likewise.
17840 [__USE_ISOC99] (nearbyintl): Likewise.
17841 [__USE_ISOC99] (lrintl): Likewise.
17842 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17843 __inline_mathop and __m81_defun changed.
17844
17845 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17846 CPU or FPU for ARM hard-float configurations.
17847
17848 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17849
17850 * nptl/tst-attr3.c: Include <libc-diag.h>.
17851 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17852
17853 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17854
17855 * string/tester.c (test_strncat): Also disable -Warray-bounds
17856 warnings for two tests.
17857
17858 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17859
17860 [BZ #22614]
17861 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17862 $(cc-pie-default) == yes.
17863 * config.make.in (cc-pie-default): New.
17864 * configure.ac (libc_cv_pie_default): Renamed to ...
17865 (libc_cv_cc_pie_default): This.
17866 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17867 * configure: Regenerated.
17868
17869 2017-12-18 Florian Weimer <fweimer@redhat.com>
17870
17871 [BZ #20204]
17872 ld.so: Harden dl-libc/libdl hooks.
17873 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17874 (rtld_active): New function.
17875 * dlfcn/dladdr.c (__dladdr): Call it.
17876 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17877 * dlfcn/dlclose.c (__dlcose): Likewise.
17878 * dlfcn/dlerror.c (__dlerror): Likewise.
17879 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17880 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17881 * dlfcn/dlopen.c (__dlopen): Likewise.
17882 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17883 * dlfcn/dlsym.c (__dlsym): Likewise.
17884 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17885 * libio/vtables.c (_IO_vtable_check): Likewise.
17886 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17887 (__libc_dlclose): Likewise.
17888 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17889 assignment.
17890
17891 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17892
17893 [BZ #22446]
17894 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17895 buffers for readlink input and output.
17896
17897 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17898
17899 [BZ #22624]
17900 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17901 inhibit_stack_protector.
17902
17903 [BZ #22624]
17904 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17905 inhibit_stack_protector.
17906
17907 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17908
17909 [BZ #22627]
17910 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17911 code and invocation.
17912
17913 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17914
17915 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17916
17917 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17918
17919 [BZ #22505]
17920 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17921
17922 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17923
17924 * sysdeps/s390/fpu/libm-test-ulps: Update.
17925
17926 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17927
17928 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17929
17930 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17931
17932 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17933 constants to s_sincosf.h file.
17934 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17935 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17936 implementation.
17937 * sysdeps/ieee754/flt-32/s_sincosf.h:
17938 New file.
17939
17940 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17941
17942 [BZ #14681]
17943 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17944 before mtrace.
17945
17946 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17947
17948 [BZ #19574]
17949 * INSTALL: Regenerated.
17950 * Makeconfig (real-static-start-installed-name): New.
17951 (pic-default): Updated for --enable-static-pie.
17952 (pie-default): New for --enable-static-pie.
17953 (default-pie-ldflag): Likewise.
17954 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17955 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17956 Replace $(static-start-installed-name) with
17957 $(real-static-start-installed-name).
17958 (+prectorT): Updated for --enable-static-pie.
17959 (+postctorT): Likewise.
17960 (CFLAGS-.o): Add $(pie-default).
17961 (CFLAGS-.op): Likewise.
17962 * NEWS: Mention --enable-static-pie.
17963 * config.h.in (ENABLE_STATIC_PIE): New.
17964 * configure.ac (--enable-static-pie): New configure option.
17965 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17966 (have-static-pie): Likewise.
17967 Enable static PIE if linker supports --no-dynamic-linker.
17968 (ENABLE_STATIC_PIE): New AC_DEFINE.
17969 (enable-static-pie): New LIBC_CONFIG_VAR.
17970 * configure: Regenerated.
17971 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17972 gr$(start-installed-name) for --enable-static-pie.
17973 (extra-objs): Likewise.
17974 (install-lib): Likewise.
17975 (extra-objs): Add static-reloc.o and static-reloc.os
17976 ($(objpfx)$(start-installed-name)): Also depend on
17977 $(objpfx)static-reloc.o.
17978 ($(objpfx)r$(start-installed-name)): New.
17979 ($(objpfx)g$(start-installed-name)): Also depend on
17980 $(objpfx)static-reloc.os.
17981 ($(objpfx)gr$(start-installed-name)): New.
17982 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17983 in libc.a.
17984 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17985 initimage.
17986 * csu/static-reloc.c: New file.
17987 * elf/Makefile (routines): Add dl-reloc-static-pie.
17988 (elide-routines.os): Likewise.
17989 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17990 (tst-tls1-static-non-pie-no-pie): New.
17991 * elf/dl-reloc-static-pie.c: New file.
17992 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17993 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17994 STATIC_PIE_BOOTSTRAP.
17995 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17996 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17997 (tests-static): Likewise.
17998 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17999 (tst-gmon-static-no-pie): New.
18000 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18001 (CRT-tst-gmon-static-pie): Likewise.
18002 (tst-gmon-static-pie-ENV): Likewise.
18003 (tests-special): Likewise.
18004 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18005 (clean-tst-gmon-static-pie-data): Likewise.
18006 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18007 * gmon/tst-gmon-static-pie.c: New file.
18008 * manual/install.texi: Document --enable-static-pie.
18009 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18010 (_dl_get_dl_main_map): Likewise.
18011 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18012 * sysdeps/x86_64/configure.ac: Likewise.
18013 * sysdeps/i386/configure: Regenerated.
18014 * sysdeps/x86_64/configure: Likewise.
18015 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18016 (ASFLAGS-.op): Likewise.
18017
18018 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18019
18020 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18021 * posix/tst-mmap-offset.c (fname): Use /tmp.
18022 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18023
18024 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18025
18026 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18027
18028 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18029
18030 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18031 errno.
18032
18033 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18034
18035 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18036 --with-float=hard for arm-linux-gnueabihf configurations.
18037
18038 [BZ #14121]
18039 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18040 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18041 ($(mo-installed)): Use $(objpfx)%.mo.
18042 (realclean): Remove rule.
18043
18044 * po/Makefile (linguas): Remove rule and dependencies.
18045 (linguas.mo): Likewise.
18046 (.PHONY): Do not depend on linguas and linguas.mo.
18047 (podir): Remove variable.
18048 (pofiles): Likewise.
18049 [$(pofiles)] (%.po): Remove rule.
18050
18051 * sysdeps/sparc/sparc32/Makefile
18052 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18053 start-of-line whitespace in argument of echo.
18054 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18055 with whitespace. Generate __wrap_.udiv alias.
18056 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18057 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18058 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18059 * sysdeps/sparc/sparc32/urem.S: Likewise.
18060
18061 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18062
18063 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18064 for aligned inputs.
18065
18066 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18067
18068 * benchtests/bench-strcmp.c: Print output in JSON format.
18069
18070 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18071
18072 2017-12-14 Florian Weimer <fweimer@redhat.com>
18073
18074 [BZ #22607]
18075 CVE-2017-1000409
18076 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18077 the expanded path string.
18078
18079 2017-12-14 Florian Weimer <fweimer@redhat.com>
18080
18081 [BZ #22606]
18082 CVE-2017-1000408
18083 * elf/dl-load.c (system_dirs): Update comment.
18084 (nsystem_dirs_len): Use array_length.
18085 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18086
18087 2017-12-14 Florian Weimer <fweimer@redhat.com>
18088
18089 Simplify compiling most of support/ outside of glibc.
18090 * support/check_addrinfo.c: Include <string.h>.
18091 * support/check_dns_packet.c: Likewise.
18092 * support/check_hostent.c: Likewise.
18093 * support/support_can_chroot.c: Include <support/xunistd.h>.
18094 * support/support_format_addrinfo.c: Include <stdlib.h>
18095 * support/support_format_dns_packet.c: Include <stdbool.h>.
18096 * support/support_format_hostent.c: Include <stdlib.h>.
18097 * support/support_format_netent.c: Likewise.
18098 * support/support_write_string.c: Include <support/xunistd.h>.
18099 * support/xdlfcn.c: Include <stddef.h>.
18100
18101 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18102
18103 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18104
18105 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18106 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18107
18108 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18109 (sysdeps_routines): Add memset-niagara7.
18110 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18111 Likewise.
18112 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18113 file.
18114 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18115 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18116 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18117 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18118 Add niagara7 option.
18119 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18120 memset.
18121
18122 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18123 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18124 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18125 Likewise.
18126 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18127 New file.
18128 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18129 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18130 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18131 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18132 and __memmove_niagara7.
18133 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18134 Add niagara7 option.
18135 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18136 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18137 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18138 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18139 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18140
18141 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18142
18143 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18144 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18145 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18146 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18147
18148 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18149 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18150 _dl_sparc_cap_flags array.
18151 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18152
18153 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18154
18155 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18156 time whenever possible.
18157
18158 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18159
18160 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18161 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18162
18163 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18164
18165 * soft-fp/fmadf4.c: Move to ....
18166 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18167 * soft-fp/fmasf4.c: Move to ....
18168 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18169 * soft-fp/fmatf4.c: Move to ....
18170 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18171 * sysdeps/ieee754/soft-fp/Makefile: New file.
18172 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18173 * sysdeps/arm/preconfigure: Regenerated.
18174 * sysdeps/arm/nofpu/Implies: New file.
18175 * sysdeps/arm/s_fma.c: Remove file.
18176 * sysdeps/arm/s_fmaf.c: Likewise.
18177 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18178 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18179 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18180 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18181 * sysdeps/microblaze/s_fma.c: Remove file.
18182 * sysdeps/microblaze/s_fmaf.c: Likewise.
18183 * sysdeps/mips/mips32/nofpu/Implies: New file.
18184 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18185 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18186 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18187 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18188 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18189 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18190 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18191 implementation.
18192 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18193 * sysdeps/nios2/s_fma.c: Remove file.
18194 * sysdeps/nios2/s_fmaf.c: Likewise.
18195 * sysdeps/sh/nofpu/Implies: New file.
18196 * sysdeps/sh/s_fma.c: Remove file.
18197 * sysdeps/sh/s_fmaf.c: Likewise.
18198 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18199 * sysdeps/tile/s_fma.c: Remove file.
18200 * sysdeps/tile/s_fmaf.c: Likewise.
18201
18202 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18203
18204 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18205 Add s_cosf-sse2 and s_cosf-fma.
18206 (CFLAGS-s_cosf-fma.c): New.
18207 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18208 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18209 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18210
18211 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18212
18213 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18214
18215 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18216
18217 * libio/Makefile (tests): Add tst-bz22415.
18218 (tst-bz22415-ENV): New rule.
18219 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18220 (tests-special): Add tst-bz22415-mem.out.
18221 ($(objpfx)tst-bz22415-mem.out): New rule.
18222 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18223 in case of a successful seek operation.
18224 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18225 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18226 buffer is required.
18227 * libio/tst-bz22415.c: New test.
18228
18229 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18230
18231 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18232
18233 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18234 __IPC_64 to 0 to avoid IPC_64 being set.
18235
18236 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18237
18238 [BZ #22593]
18239 * math/bits/mathcalls.h (nextafter): Remove const.
18240 (nexttoward): Likewise.
18241
18242 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18243
18244 * configure.ac (--with-fp): Remove configure option.
18245 (with_fp_cond): New variable.
18246 (libc_cv_with_fp): New configure test. Use this variable instead
18247 of with_fp.
18248 * configure: Regenerated.
18249 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18250 * manual/install.texi (Configuring and compiling): Remove
18251 --without-fp.
18252 * INSTALL: Regenerated.
18253 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18254 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18255 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18256 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18257 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18258 use --without-fp to configure glibc.
18259
18260 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18261
18262 * manual/locale.texi (nl_langinfo): Fix a typo.
18263
18264 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18265
18266 [BZ #22588]
18267 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18268
18269 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18270
18271 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18272 (CFLAGS-argp-parse.c): Likewise.
18273 (CFLAGS-argp-fmtstream.c): Likewise.
18274 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18275 (CPPFLAGS-sha512-crypt.c): Likewise.
18276 (CPPFLAGS-md5-crypt.c): Likewise.
18277 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18278 (CFLAGS-stack_chk_fail_local.c): Likewise.
18279 (CFLAGS-backtrace.c): Likewise.
18280 (CFLAGS-sprintf_chk.c): Likewise.
18281 (CFLAGS-snprintf_chk.c): Likewise.
18282 (CFLAGS-vsprintf_chk.c): Likewise.
18283 (CFLAGS-vsnprintf_chk.c): Likewise.
18284 (CFLAGS-asprintf_chk.c): Likewise.
18285 (CFLAGS-vasprintf_chk.c): Likewise.
18286 (CFLAGS-obprintf_chk.c): Likewise.
18287 (CFLAGS-dprintf_chk.c): Likewise.
18288 (CFLAGS-vdprintf_chk.c): Likewise.
18289 (CFLAGS-printf_chk.c): Likewise.
18290 (CFLAGS-fprintf_chk.c): Likewise.
18291 (CFLAGS-vprintf_chk.c): Likewise.
18292 (CFLAGS-vfprintf_chk.c): Likewise.
18293 (CFLAGS-gets_chk.c): Likewise.
18294 (CFLAGS-fgets_chk.c): Likewise.
18295 (CFLAGS-fgets_u_chk.c): Likewise.
18296 (CFLAGS-fread_chk.c): Likewise.
18297 (CFLAGS-fread_u_chk.c): Likewise.
18298 (CFLAGS-swprintf_chk.c): Likewise.
18299 (CFLAGS-vswprintf_chk.c): Likewise.
18300 (CFLAGS-wprintf_chk.c): Likewise.
18301 (CFLAGS-fwprintf_chk.c): Likewise.
18302 (CFLAGS-vwprintf_chk.c): Likewise.
18303 (CFLAGS-vfwprintf_chk.c): Likewise.
18304 (CFLAGS-fgetws_chk.c): Likewise.
18305 (CFLAGS-fgetws_u_chk.c): Likewise.
18306 (CFLAGS-read_chk.c): Likewise.
18307 (CFLAGS-pread_chk.c): Likewise.
18308 (CFLAGS-pread64_chk.c): Likewise.
18309 (CFLAGS-recv_chk.c): Likewise.
18310 (CFLAGS-recvfrom_chk.c): Likewise.
18311 (CFLAGS-tst-longjmp_chk.c): Likewise.
18312 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18313 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18314 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18315 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18316 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18317 (CFLAGS-tst-chk1.c): Likewise.
18318 (CFLAGS-tst-chk2.c): Likewise.
18319 (CFLAGS-tst-chk3.c): Likewise.
18320 (CFLAGS-tst-chk4.cc): Likewise.
18321 (CFLAGS-tst-chk5.cc): Likewise.
18322 (CFLAGS-tst-chk6.cc): Likewise.
18323 (CFLAGS-tst-lfschk1.c): Likewise.
18324 (CFLAGS-tst-lfschk2.c): Likewise.
18325 (CFLAGS-tst-lfschk3.c): Likewise.
18326 (CFLAGS-tst-lfschk4.cc): Likewise.
18327 (CFLAGS-tst-lfschk5.cc): Likewise.
18328 (CFLAGS-tst-lfschk6.cc): Likewise.
18329 (CFLAGS-tst-ssp-1.c): Likewise.
18330 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18331 (CFLAGS-scandir64.c): Likewise.
18332 (CFLAGS-scandir-tail.c): Likewise.
18333 (CFLAGS-scandir64-tail.c): Likewise.
18334 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18335 (CFLAGS-dl-tunables.c): Likewise.
18336 (CFLAGS-dl-runtime.c): Likewise.
18337 (CFLAGS-dl-lookup.c): Likewise.
18338 (CFLAGS-dl-iterate-phdr.c): Likewise.
18339 (CFLAGS-vismain.c): Likewise.
18340 (CFLAGS-tst-linkall-static.c): Likewise.
18341 (CFLAGS-tst-linkall-static.c): Likewise.
18342 (CPPFLAGS-dl-load.c): Likewise.
18343 (CFLAGS-ldconfig.c): Likewise.
18344 (CFLAGS-dl-cache.c): Likewise.
18345 (CFLAGS-cache.c): Likewise.
18346 (CFLAGS-rtld.c): Likewise.
18347 (CFLAGS-multiload.c): Likewise.
18348 (CFLAGS-filtmod1.c): Likewise.
18349 (CFLAGS-tst-align.c): Likewise.
18350 (CFLAGS-tst-align2.c): Likewise.
18351 (CFLAGS-tst-alignmod.c): Likewise.
18352 (CFLAGS-tst-alignmod2.c): Likewise.
18353 (CPPFLAGS-tst-execstack.c): Likewise.
18354 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18355 (CFLAGS-tst-latepthreadmod.c): Likewise.
18356 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18357 (CFLAGS-getgrnam_r.c): Likewise.
18358 (CFLAGS-getgrent_r.c): Likewise.
18359 (CFLAGS-getgrent.c): Likewise.
18360 (CFLAGS-fgetgrent.c): Likewise.
18361 (CFLAGS-fgetgrent_r.c): Likewise.
18362 (CFLAGS-putgrent.c): Likewise.
18363 (CFLAGS-initgroups.c): Likewise.
18364 (CFLAGS-getgrgid.c): Likewise.
18365 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18366 (CFLAGS-getsgent.c): Likewise.
18367 (CFLAGS-fgetsgent.c): Likewise.
18368 (CFLAGS-fgetsgent_r.c): Likewise.
18369 (CFLAGS-putsgent.c): Likewise.
18370 (CFLAGS-getsgnam.c): Likewise.
18371 (CFLAGS-getsgnam_r.c): Likewise.
18372 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18373 (CFLAGS-iconv_charmap.c): Likewise.
18374 (CFLAGS-dummy-repertoire.c): Likewise.
18375 (CFLAGS-charmap.c): Likewise.
18376 (CFLAGS-linereader.c): Likewise.
18377 (CFLAGS-simple-hash.c): Likewise.
18378 (CFLAGS-gconv_conf.c): Likewise.
18379 (CFLAGS-iconvconfig.c): Likewise.
18380 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18381 (CFLAGS-gethstbyad.c): Likewise.
18382 (CFLAGS-gethstbynm_r.c): Likewise.
18383 (CFLAGS-gethstbynm.c): Likewise.
18384 (CFLAGS-gethstbynm2_r.c): Likewise.
18385 (CFLAGS-gethstbynm2.c): Likewise.
18386 (CFLAGS-gethstent_r.c): Likewise.
18387 (CFLAGS-gethstent.c): Likewise.
18388 (CFLAGS-rcmd.c): Likewise.
18389 (CFLAGS-getnetbynm_r.c): Likewise.
18390 (CFLAGS-getnetbynm.c): Likewise.
18391 (CFLAGS-getnetbyad_r.c): Likewise.
18392 (CFLAGS-getnetbyad.c): Likewise.
18393 (CFLAGS-getnetent_r.c): Likewise.
18394 (CFLAGS-getnetent.c): Likewise.
18395 (CFLAGS-getaliasent_r.c): Likewise.
18396 (CFLAGS-getaliasent.c): Likewise.
18397 (CFLAGS-getrpcent_r.c): Likewise.
18398 (CFLAGS-getrpcent.c): Likewise.
18399 (CFLAGS-getservent_r.c): Likewise.
18400 (CFLAGS-getservent.c): Likewise.
18401 (CFLAGS-getprtent_r.c): Likewise.
18402 (CFLAGS-getprtent.c): Likewise.
18403 (CFLAGS-either_ntoh.c): Likewise.
18404 (CFLAGS-either_hton.c): Likewise.
18405 (CFLAGS-getnetgrent.c): Likewise.
18406 (CFLAGS-getnetgrent_r.c): Likewise.
18407 (CFLAGS-tst-checks-posix.c): Likewise.
18408 (CFLAGS-tst-sockaddr.c): Likewise.
18409 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18410 (CFLAGS-tst-translit.c): Likewise.
18411 (CFLAGS-tst-gettext2.c): Likewise.
18412 (CFLAGS-tst-codeset.c): Likewise.
18413 (CFLAGS-tst-gettext3.c): Likewise.
18414 (CFLAGS-tst-gettext4.c): Likewise.
18415 (CFLAGS-tst-gettext5.c): Likewise.
18416 (CFLAGS-tst-gettext6.c): Likewise.
18417 * io/Makefile (CFLAGS-open.c): Likewise.
18418 (CFLAGS-open64.c): Likewise.
18419 (CFLAGS-creat.c): Likewise.
18420 (CFLAGS-creat64.c): Likewise.
18421 (CFLAGS-fcntl.c): Likewise.
18422 (CFLAGS-poll.c): Likewise.
18423 (CFLAGS-ppoll.c): Likewise.
18424 (CFLAGS-lockf.c): Likewise.
18425 (CFLAGS-statfs.c): Likewise.
18426 (CFLAGS-fstatfs.c): Likewise.
18427 (CFLAGS-statvfs.c): Likewise.
18428 (CFLAGS-fstatvfs.c): Likewise.
18429 (CFLAGS-fts.c): Likewise.
18430 (CFLAGS-fts64.c): Likewise.
18431 (CFLAGS-ftw.c): Likewise.
18432 (CFLAGS-ftw64.c): Likewise.
18433 (CFLAGS-lockf.c): Likewise.
18434 (CFLAGS-posix_fallocate.c): Likewise.
18435 (CFLAGS-posix_fallocate64.c): Likewise.
18436 (CFLAGS-fallocate.c): Likewise.
18437 (CFLAGS-fallocate64.c): Likewise.
18438 (CFLAGS-read.c): Likewise.
18439 (CFLAGS-write.c): Likewise.
18440 (CFLAGS-test-stat.c): Likewise.
18441 (CFLAGS-test-lfs.c): Likewise.
18442 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18443 (CFLAGS-fputc.c): Likewise.
18444 (CFLAGS-fputwc.c): Likewise.
18445 (CFLAGS-freopen64.c): Likewise.
18446 (CFLAGS-freopen.c): Likewise.
18447 (CFLAGS-fseek.c): Likewise.
18448 (CFLAGS-fseeko64.c): Likewise.
18449 (CFLAGS-fseeko.c): Likewise.
18450 (CFLAGS-ftello64.c): Likewise.
18451 (CFLAGS-ftello.c): Likewise.
18452 (CFLAGS-fwide.c): Likewise.
18453 (CFLAGS-genops.c): Likewise.
18454 (CFLAGS-getc.c): Likewise.
18455 (CFLAGS-getchar.c): Likewise.
18456 (CFLAGS-getwc.c): Likewise.
18457 (CFLAGS-getwchar.c): Likewise.
18458 (CFLAGS-iofclose.c): Likewise.
18459 (CFLAGS-iofflush.c): Likewise.
18460 (CFLAGS-iofgetpos64.c): Likewise.
18461 (CFLAGS-iofgetpos.c): Likewise.
18462 (CFLAGS-iofgets.c): Likewise.
18463 (CFLAGS-iofgetws.c): Likewise.
18464 (CFLAGS-iofputs.c): Likewise.
18465 (CFLAGS-iofputws.c): Likewise.
18466 (CFLAGS-iofread.c): Likewise.
18467 (CFLAGS-iofsetpos64.c): Likewise.
18468 (CFLAGS-iofsetpos.c): Likewise.
18469 (CFLAGS-ioftell.c): Likewise.
18470 (CFLAGS-iofwrite.c): Likewise.
18471 (CFLAGS-iogetdelim.c): Likewise.
18472 (CFLAGS-iogetline.c): Likewise.
18473 (CFLAGS-iogets.c): Likewise.
18474 (CFLAGS-iogetwline.c): Likewise.
18475 (CFLAGS-ioputs.c): Likewise.
18476 (CFLAGS-ioseekoff.c): Likewise.
18477 (CFLAGS-ioseekpos.c): Likewise.
18478 (CFLAGS-iosetbuffer.c): Likewise.
18479 (CFLAGS-iosetvbuf.c): Likewise.
18480 (CFLAGS-ioungetc.c): Likewise.
18481 (CFLAGS-ioungetwc.c): Likewise.
18482 (CFLAGS-oldfileops.c): Likewise.
18483 (CFLAGS-oldiofclose.c): Likewise.
18484 (CFLAGS-oldiofgetpos64.c): Likewise.
18485 (CFLAGS-oldiofgetpos.c): Likewise.
18486 (CFLAGS-oldiofsetpos64.c): Likewise.
18487 (CFLAGS-oldiofsetpos.c): Likewise.
18488 (CFLAGS-peekc.c): Likewise.
18489 (CFLAGS-putc.c): Likewise.
18490 (CFLAGS-putchar.c): Likewise.
18491 (CFLAGS-putwc.c): Likewise.
18492 (CFLAGS-putwchar.c): Likewise.
18493 (CFLAGS-rewind.c): Likewise.
18494 (CFLAGS-wfileops.c): Likewise.
18495 (CFLAGS-wgenops.c): Likewise.
18496 (CFLAGS-oldiofopen.c): Likewise.
18497 (CFLAGS-iofopen.c): Likewise.
18498 (CFLAGS-iofopen64.c): Likewise.
18499 (CFLAGS-oldtmpfile.c): Likewise.
18500 (CFLAGS-tst_putwc.c): Likewise.
18501 * locale/Makefile (CFLAGS-md5.c): Likewise.
18502 (CFLAGS-charmap.c): Likewise.
18503 (CFLAGS-locfile.c): Likewise.
18504 (CFLAGS-charmap-dir.c): Likewise.
18505 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18506 (CFLAGS-getpt.c): Likewise.
18507 (CFLAGS-pt_chown.c): Likewise.
18508 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18509 (CFLAGS-obstack.c): Likewise.
18510 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18511 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18512 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18513 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18514 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18515 (CFLAGS-test-tgmath.c): Likewise.
18516 (CFLAGS-test-tgmath2.c): Likewise.
18517 (CFLAGS-test-tgmath-ret.c): Likewise.
18518 (CFLAGS-test-powl.c): Likewise.
18519 (CFLAGS-test-snan.c): Likewise.
18520 (CFLAGS-test-signgam-finite.c): Likewise.
18521 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18522 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18523 (CFLAGS-test-signgam-uchar.c): Likewise.
18524 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18525 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18526 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18527 (CFLAGS-test-signgam-uint.c): Likewise.
18528 (CFLAGS-test-signgam-uint-init.c): Likewise.
18529 (CFLAGS-test-signgam-uint-static.c): Likewise.
18530 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18531 (CFLAGS-test-signgam-ullong.c): Likewise.
18532 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18533 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18534 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18535 (CFLAGS-test-math-cxx11.cc): Likewise.
18536 (CFLAGS-test-math-isinff.cc): Likewise.
18537 (CFLAGS-test-math-iszero.cc): Likewise.
18538 (CFLAGS-test-math-issignaling.cc): Likewise.
18539 (CFLAGS-test-math-iscanonical.cc): Likewise.
18540 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18541 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18542 (CFLAGS-test-flt-eval-method.c): Likewise.
18543 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18544 (CFLAGS-test-finite-macros.c): Likewise.
18545 * misc/Makefile (CFLAGS-select.c): Likewise.
18546 (CFLAGS-tsearch.c): Likewise.
18547 (CFLAGS-lsearch.c): Likewise.
18548 (CFLAGS-pselect.c): Likewise.
18549 (CFLAGS-readv.c): Likewise.
18550 (CFLAGS-writev.c): Likewise.
18551 (CFLAGS-preadv.c): Likewise.
18552 (CFLAGS-preadv64.c): Likewise.
18553 (CFLAGS-pwritev.c): Likewise.
18554 (CFLAGS-pwritev64.c): Likewise.
18555 (CFLAGS-preadv2.c): Likewise.
18556 (CFLAGS-preadv64v2.c): Likewise.
18557 (CFLAGS-pwritev2.c): Likewise.
18558 (CFLAGS-pwritev64v2.c): Likewise.
18559 (CFLAGS-usleep.c): Likewise.
18560 (CFLAGS-syslog.c): Likewise.
18561 (CFLAGS-error.c): Likewise.
18562 (CFLAGS-getpass.c): Likewise.
18563 (CFLAGS-mkstemp.c): Likewise.
18564 (CFLAGS-mkstemp64.c): Likewise.
18565 (CFLAGS-getsysstats.c): Likewise.
18566 (CFLAGS-getusershell.c): Likewise.
18567 (CFLAGS-err.c): Likewise.
18568 (CFLAGS-tst-tsearch.c): Likewise.
18569 (CFLAGS-msync.c): Likewise.
18570 (CFLAGS-fdatasync.c): Likewise.
18571 (CFLAGS-fsync.c): Likewise.
18572 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18573 (CFLAGS-unwind.c): Likewise.
18574 (CFLAGS-unwind-forcedunwind.c): Likewise.
18575 (CFLAGS-pthread_cancel.c): Likewise.
18576 (CFLAGS-pthread_setcancelstate.c): Likewise.
18577 (CFLAGS-pthread_setcanceltype.c): Likewise.
18578 (CFLAGS-cancellation.c): Likewise.
18579 (CFLAGS-libc-cancellation.c): Likewise.
18580 (CFLAGS-pthread_exit.c): Likewise.
18581 (CFLAGS-forward.c): Likewise.
18582 (CFLAGS-pthread_testcancel.c): Likewise.
18583 (CFLAGS-pthread_join.c): Likewise.
18584 (CFLAGS-pthread_timedjoin.c): Likewise.
18585 (CFLAGS-pthread_once.c): Likewise.
18586 (CFLAGS-pthread_cond_wait.c): Likewise.
18587 (CFLAGS-sem_wait.c): Likewise.
18588 (CFLAGS-sem_timedwait.c): Likewise.
18589 (CFLAGS-fcntl.c): Likewise.
18590 (CFLAGS-lockf.c): Likewise.
18591 (CFLAGS-pread.c): Likewise.
18592 (CFLAGS-pread64.c): Likewise.
18593 (CFLAGS-pwrite.c): Likewise.
18594 (CFLAGS-pwrite64.c): Likewise.
18595 (CFLAGS-wait.c): Likewise.
18596 (CFLAGS-waitpid.c): Likewise.
18597 (CFLAGS-sigwait.c): Likewise.
18598 (CFLAGS-msgrcv.c): Likewise.
18599 (CFLAGS-msgsnd.c): Likewise.
18600 (CFLAGS-tcdrain.c): Likewise.
18601 (CFLAGS-open.c): Likewise.
18602 (CFLAGS-open64.c): Likewise.
18603 (CFLAGS-pause.c): Likewise.
18604 (CFLAGS-recv.c): Likewise.
18605 (CFLAGS-send.c): Likewise.
18606 (CFLAGS-accept.c): Likewise.
18607 (CFLAGS-sendto.c): Likewise.
18608 (CFLAGS-connect.c): Likewise.
18609 (CFLAGS-recvfrom.c): Likewise.
18610 (CFLAGS-recvmsg.c): Likewise.
18611 (CFLAGS-sendmsg.c): Likewise.
18612 (CFLAGS-close.c): Likewise.
18613 (CFLAGS-read.c): Likewise.
18614 (CFLAGS-write.c): Likewise.
18615 (CFLAGS-nanosleep.c): Likewise.
18616 (CFLAGS-sigsuspend.c): Likewise.
18617 (CFLAGS-msync.c): Likewise.
18618 (CFLAGS-fdatasync.c): Likewise.
18619 (CFLAGS-fsync.c): Likewise.
18620 (CFLAGS-pt-system.c): Likewise.
18621 (CFLAGS-tst-cleanup2.c): Likewise.
18622 (CFLAGS-tst-cleanupx2.c): Likewise.
18623 (CFLAGS-flockfile.c): Likewise.
18624 (CFLAGS-ftrylockfile.c): Likewise.
18625 (CFLAGS-funlockfile.c): Likewise.
18626 (CFLAGS-tst-initializers1.c): Likewise.
18627 (CFLAGS-tst-initializers1-c89.c): Likewise.
18628 (CFLAGS-tst-initializers1-c99.c): Likewise.
18629 (CFLAGS-tst-initializers1-c11.c): Likewise.
18630 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18631 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18632 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18633 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18634 (CFLAGS-nscd_getgr_r.c): Likewise.
18635 (CFLAGS-nscd_gethst_r.c): Likewise.
18636 (CFLAGS-nscd_getai.c): Likewise.
18637 (CFLAGS-nscd_initgroups.c): Likewise.
18638 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18639 (CFLAGS-pause.c): Likewise.
18640 (CFLAGS-pread.c): Likewise.
18641 (CFLAGS-pread64.c): Likewise.
18642 (CFLAGS-pwrite.c): Likewise.
18643 (CFLAGS-pwrite64.c): Likewise.
18644 (CFLAGS-sleep.c): Likewise.
18645 (CFLAGS-wait.c): Likewise.
18646 (CFLAGS-waitid.c): Likewise.
18647 (CFLAGS-waitpid.c): Likewise.
18648 (CFLAGS-getopt.c): Likewise.
18649 (CFLAGS-wordexp.c): Likewise.
18650 (CFLAGS-sysconf.c): Likewise.
18651 (CFLAGS-pathconf.c): Likewise.
18652 (CFLAGS-fpathconf.c): Likewise.
18653 (CFLAGS-spawn.c): Likewise.
18654 (CFLAGS-spawnp.c): Likewise.
18655 (CFLAGS-spawni.c): Likewise.
18656 (CFLAGS-glob.c): Likewise.
18657 (CFLAGS-glob64.c): Likewise.
18658 (CFLAGS-getconf.c): Likewise.
18659 (CFLAGS-nanosleep.c): Likewise.
18660 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18661 (CFLAGS-getpwent.c): Likewise.
18662 (CFLAGS-getpw.c): Likewise.
18663 (CFLAGS-fgetpwent_r.c): Likewise.
18664 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18665 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18666 (CFLAGS-mq_timedreceive.c): Likewise.
18667 (CFLAGS-mq_timedsend.c): Likewise.
18668 (CFLAGS-clock_nanosleep.c): Likewise.
18669 (CFLAGS-librt-cancellation.c): Likewise.
18670 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18671 (CFLAGS-getspent.c): Likewise.
18672 (CFLAGS-fgetspent.c): Likewise.
18673 (CFLAGS-fgetspent_r.c): Likewise.
18674 (CFLAGS-putspent.c): Likewise.
18675 (CFLAGS-getspnam.c): Likewise.
18676 (CFLAGS-getspnam_r.c): Likewise.
18677 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18678 (CFLAGS-sigsuspend.c): Likewise.
18679 (CFLAGS-sigtimedwait.c): Likewise.
18680 (CFLAGS-sigwait.c): Likewise.
18681 (CFLAGS-sigwaitinfo.c): Likewise.
18682 (CFLAGS-sigreturn.c): Likewise.
18683 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18684 (CFLAGS-vfwprintf.c): Likewise.
18685 (CFLAGS-tmpfile.c): Likewise.
18686 (CFLAGS-tmpfile64.c): Likewise.
18687 (CFLAGS-tempname.c): Likewise.
18688 (CFLAGS-psignal.c): Likewise.
18689 (CFLAGS-vprintf.c): Likewise.
18690 (CFLAGS-cuserid.c): Likewise.
18691 (CFLAGS-errlist.c): Likewise.
18692 (CFLAGS-siglist.c): Likewise.
18693 (CFLAGS-scanf15.c): Likewise.
18694 (CFLAGS-scanf17.c): Likewise.
18695 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18696 (CFLAGS-msort.c): Likewise.
18697 (CFLAGS-qsort.c): Likewise.
18698 (CFLAGS-system.c): Likewise.
18699 (CFLAGS-fmtmsg.c): Likewise.
18700 (CFLAGS-strfmon.c): Likewise.
18701 (CFLAGS-strfmon_l.c): Likewise.
18702 (CFLAGS-strfromd.c): Likewise.
18703 (CFLAGS-strfromf.c): Likewise.
18704 (CFLAGS-strfroml.c): Likewise.
18705 (CFLAGS-tst-bsearch.c): Likewise.
18706 (CFLAGS-tst-qsort.c): Likewise.
18707 (CFLAGS-tst-makecontext2.c): Likewise.
18708 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18709 (CFLAGS-xnlm_prot.c): Likewise.
18710 (CFLAGS-xrstat.c): Likewise.
18711 (CFLAGS-xyppasswd.c): Likewise.
18712 (CFLAGS-xklm_prot.c): Likewise.
18713 (CFLAGS-xrex.c): Likewise.
18714 (CFLAGS-xsm_inter.c): Likewise.
18715 (CFLAGS-xmount.c): Likewise.
18716 (CFLAGS-xrusers.c): Likewise.
18717 (CFLAGS-xspray.c): Likewise.
18718 (CFLAGS-xnfs_prot.c): Likewise.
18719 (CFLAGS-xrquota.c): Likewise.
18720 (CFLAGS-xkey_prot.c): Likewise.
18721 (CFLAGS-auth_unix.c): Likewise.
18722 (CFLAGS-key_call.c): Likewise.
18723 (CFLAGS-pmap_rmt.c): Likewise.
18724 (CFLAGS-clnt_perr.c): Likewise.
18725 (CFLAGS-openchild.c): Likewise.
18726 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18727 (CFLAGS-msgsnd.c): Likewise.
18728 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18729 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18730 (CFLAGS-tzset.c): Likewise.
18731 (CFLAGS-getdate.c): Likewise.
18732 (CFLAGS-test_time.c): Likewise.
18733 (CPPFLAGS-tst-tzname.c): Likewise.
18734 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18735 (CFLAGS-zic.c): Likewise.
18736 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18737 (CFLAGS-wcswidth.c): Likewise.
18738 (CFLAGS-wcstol.c): Likewise.
18739 (CFLAGS-wcstoul.c): Likewise.
18740 (CFLAGS-wcstoll.c): Likewise.
18741 (CFLAGS-wcstoull.c): Likewise.
18742 (CFLAGS-wcstod.c): Likewise.
18743 (CFLAGS-wcstold.c): Likewise.
18744 (CFLAGS-wcstof128.c): Likewise.
18745 (CFLAGS-wcstof.c): Likewise.
18746 (CFLAGS-wcstol_l.c): Likewise.
18747 (CFLAGS-wcstoul_l.c): Likewise.
18748 (CFLAGS-wcstoll_l.c): Likewise.
18749 (CFLAGS-wcstoull_l.c): Likewise.
18750 (CFLAGS-wcstod_l.c): Likewise.
18751 (CFLAGS-wcstold_l.c): Likewise.
18752 (CFLAGS-wcstof128_l.c): Likewise.
18753 (CFLAGS-wcstof_l.c): Likewise.
18754 (CPPFLAGS-tst-wchar-h.c): Likewise.
18755 (CPPFLAGS-wcstold_l.c): Likewise.
18756
18757 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18758
18759 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18760
18761 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18762 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18763
18764 * manual/tunables.texi (Hardware Capability Tunables): Document
18765 glibc.tune.cached_memopt.
18766 * sysdeps/powerpc/cpu-features.c: New file.
18767 * sysdeps/powerpc/cpu-features.h: New file.
18768 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18769 _dl_powerpc_cpu_features.
18770 * sysdeps/powerpc/dl-tunables.list: New file.
18771 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18772 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18773 (INIT_ARCH): Initialize use_aligned_memopt.
18774 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18775 IS_IN(rtld))]: Restrict dl_platform_init availability and
18776 initialize CPU features used by tunables.
18777 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18778 Add memcpy-power8-cached.
18779 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18780 __memcpy_power8_cached.
18781 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18782 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18783 New file.
18784
18785 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18786
18787 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18788 (CFLAGS-noinl-tester.c): Likewise.
18789 (CFLAGS-tst-strlen.c): Likewise.
18790 (CFLAGS-stratcliff.c): Likewise.
18791 (CFLAGS-test-ffs.c): Likewise.
18792 (CFLAGS-tst-inlcall.c): Likewise.
18793 (CFLAGS-tst-xbzero-opt.c): Likewise.
18794 (CFLAGS-memcpy.c): Likewise.
18795 (CFLAGS-wordcopy.c): Likewise.
18796
18797 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18798
18799 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18800 Store r15 on stack and add cfi rule.
18801 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18802 Likewise.
18803
18804 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18805
18806 [BZ #22577]
18807 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18808 call.
18809
18810 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18811
18812 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18813 Add s_sinf-sse2 and s_sinf-fma.
18814 (CFLAGS-s_sinf-fma.c): New.
18815 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18816 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18817 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18818
18819 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18820
18821 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18822
18823 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18824
18825 [BZ #22568]
18826 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18827 part of result to imaginary part of argument if it is zero and the
18828 real part of the argument is not finite.
18829 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18830 of result to real part of argument if it is zero and the imaginary
18831 part of the argument is not finite.
18832
18833 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18834
18835 [BZ #22524]
18836 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18837 and to the list of locales to be built for testing.
18838 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18839 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18840 and build the collation rules upon that.
18841
18842 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18843
18844 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18845 * manual/math.texi (Mathematics): Document support for _Float32.
18846 * math/Makefile (test-types): Add float32.
18847 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18848 * stdlib/Versions (GLIBC_2.27): Likewise.
18849 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18850 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18851 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18857 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18858 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18859 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18867 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18868 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18870 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18871 Likewise.
18872 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18873 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18874 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18875 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18876 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18878 Likewise.
18879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18880 Likewise.
18881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18882 Likewise.
18883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18884 Likewise.
18885
18886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18887 Likewise.
18888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18889 Likewise.
18890 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18891 Likewise.
18892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18893 Likewise.
18894 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18898 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18904 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18905 Likewise.
18906 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18907 Likewise.
18908 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18909 Likewise.
18910 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18911 Likewise.
18912 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18914 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18915 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18916 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18917 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18918 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18919 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18920
18921 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18922
18923 * stdlib/strtof.c: Include <bits/floatn.h>
18924 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18925 and later undefine as macro. Define as weak alias if
18926 [!USE_WIDE_CHAR].
18927 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18928 and later undefine as macro. Define as weak alias if
18929 [USE_WIDE_CHAR].
18930 * stdlib/strtof_l.c: Include <bits/floatn.h>
18931 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18932 and later undefine as macro. Define as weak alias if
18933 [!USE_WIDE_CHAR].
18934 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18935 and later undefine as macro. Define as weak alias if
18936 [USE_WIDE_CHAR].
18937
18938 * stdlib/strfromf.c: Include <bits/floatn.h>.
18939 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18940 and later undefine as macro and define as weak alias.
18941
18942 * math/test-float32.h: New file.
18943
18944 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18945 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18946 (libm_alias_float_other_r): Create f32 alias.
18947 (libm_alias_float_r): Use semicolon before call to
18948 libm_alias_float_other_r.
18949
18950 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18951 second argument to libm_alias_float_other.
18952 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18953 second argument to libm_alias_float_other.
18954 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18955 argument to libm_alias_float_other.
18956
18957 [BZ #22561]
18958 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18959 real part of result for argument 0 + i * NaN.
18960 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18961 results for tests of 0 + i * NaN.
18962
18963 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18964
18965 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18966
18967 2017-12-06 David S. Miller <davem@davemloft.net>
18968
18969 * sysdeps/sparc/fpu/libm-test-ulps: Update
18970 exp_{downward,towardzero,upward} ulps.
18971
18972 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18973
18974 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18975 variables static.
18976
18977 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18978 (Y0_2D): Likewise.
18979 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18980 (Y0_2D): Likewise.
18981 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18982 (Y0_2D): Likewise.
18983 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18984 (Y0_2D): Likewise.
18985
18986 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18987
18988 [BZ #22515]
18989 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18990 and to the list of locales to be built for testing.
18991 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18992 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18993 and build the collation rules upon that.
18994
18995 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18996
18997 * NEWS: Add sinf to list of optimized functions.
18998
18999 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19000
19001 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19002 (__HAVE_FLOAT32X): Likewise.
19003 * manual/math.texi (Mathematics): Document support for _Float64
19004 and _Float32x.
19005 * math/Makefile (test-types): Add float64 and float32x.
19006 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19007 functions.
19008 * stdlib/Versions (GLIBC_2.27): Likewise.
19009 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19010 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19011 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19012 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19014 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19015 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19016 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19017 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19018 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19019 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19020 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19021 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19022 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19024 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19025 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19026 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19027 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19028 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19029 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19030 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19031 Likewise.
19032 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19034 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19035 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19036 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19038 Likewise.
19039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19040 Likewise.
19041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19042 Likewise.
19043 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19044 Likewise.
19045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19046 Likewise.
19047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19048 Likewise.
19049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19050 Likewise.
19051 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19052 Likewise.
19053 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19054 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19055 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19056 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19057 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19058 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19059 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19060 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19061 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19062 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19063 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19064 Likewise.
19065 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19066 Likewise.
19067 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19068 Likewise.
19069 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19070 Likewise.
19071 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19072 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19073 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19074 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19075 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19076 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19077 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19078 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19079
19080 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19081
19082 * bits/floatn-common.h: Include <bits/long-double.h>.
19083 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19084 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19085 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19086 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19087 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19088 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19089 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19090 (__builtin_huge_valf64): Use __builtin_huge_vall.
19091 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19092 (__builtin_inff64): Use __builtin_infl.
19093 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19094 (__builtin_nanf64): Use __builtin_nanl.
19095 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19096 (__builtin_nansf64): Use __builtin_nansl.
19097
19098 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19099 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19100 Carlos O'Donnell <carlos@redhat.com>
19101
19102 * elf/dl-tunables.list: Add elision parameters.
19103 * manual/tunables.texi: Add entries about elision tunable.
19104 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19105 Add callback functions to dynamically enable/disable elision.
19106 Add multiple callbacks functions to set elision parameters.
19107 Deleted __libc_enable_secure check.
19108 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19109 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19110 * configure: Regenerated.
19111 * configure.ac: Option enable_lock_elision was deleted.
19112 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19113 * config.make.in: Remove references to enable_lock_elision.
19114 * manual/install.texi: Elision configure option was removed.
19115 * INSTALL: Regenerated to remove enable_lock_elision.
19116 * nptl/Makefile:
19117 Disable elision so it can verify error case for destroying a mutex.
19118 * sysdeps/powerpc/nptl/elide.h:
19119 Cleanup ENABLE_LOCK_ELISION check.
19120 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19121 * sysdeps/s390/configure: Regenerated.
19122 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19123 * nptl/tst-mutex8.c:
19124 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19125 * sysdeps/powerpc/powerpc32/sysdep.h:
19126 Deleted all ENABLE_LOCK_ELISION checks.
19127 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19128 * sysdeps/powerpc/sysdep.h: Likewise.
19129 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19130 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19131 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19132 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19133 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19134 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19135 enable-lock-elision.
19136
19137 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19138
19139 * stdlib/strtod.c: Include <bits/floatn.h>.
19140 (BUILD_DOUBLE): New macro.
19141 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19142 (strtof64): Define and later undefine as macro. Define as weak
19143 alias if [!USE_WIDE_CHAR].
19144 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19145 (wcstof64): Define and later undefine as macro. Define as weak
19146 alias if [USE_WIDE_CHAR].
19147 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19148 (strtof32x): Define and later undefine as macro. Define as weak
19149 alias if [!USE_WIDE_CHAR].
19150 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19151 (wcstof32x): Define and later undefine as macro. Define as weak
19152 alias if [USE_WIDE_CHAR].
19153 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19154 (BUILD_DOUBLE): New macro.
19155 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19156 (strtof64_l): Define and later undefine as macro. Define as weak
19157 alias if [!USE_WIDE_CHAR].
19158 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19159 (wcstof64_l): Define and later undefine as macro. Define as weak
19160 alias if [USE_WIDE_CHAR].
19161 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19162 (strtof32x_l): Define and later undefine as macro. Define as weak
19163 alias if [!USE_WIDE_CHAR].
19164 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19165 (wcstof32x_l): Define and later undefine as macro. Define as weak
19166 alias if [USE_WIDE_CHAR].
19167
19168 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19169
19170 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19171 (reduced): Use ones as double instead of integer.
19172
19173 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19174
19175 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19176
19177 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19178
19179 * stdlib/strfromd.c: Include <bits/floatn.h>.
19180 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19181 and later undefine as macro and define as weak alias.
19182 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19183 Likewise.
19184
19185 * math/test-float32x.h: New file.
19186 * math/test-float64.h: Likewise.
19187
19188 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19189 (libm_alias_double_other_r_f64): New macro.
19190 (libm_alias_double_other_r_f32x): Likewise.
19191 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19192 libm_alias_double_other_r_f32x.
19193 (libm_alias_double_r): Use semicolon before call to
19194 libm_alias_double_other_r.
19195 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19196 <bits/floatn.h>.
19197 (libm_alias_double_other_r_f64): New macro.
19198 (libm_alias_double_other_r_f32x): Likewise.
19199 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19200 libm_alias_double_other_r_f32x.
19201
19202 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19203
19204 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19205 int.
19206 (SINF_FUNC): Likewise. Replace floor with simple casts.
19207
19208 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19209
19210 [BZ #22517]
19211 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19212 and to the list of locales to be built for testing.
19213 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19214 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19215 and build the collation rules upon that.
19216
19217 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19218
19219 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19220 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19221 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19222 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19223 instead of __insn__xxx.
19224 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19225 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19226 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19227 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19228 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19229 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19230
19231 2017-12-05 Florian Weimer <fweimer@redhat.com>
19232
19233 Linux: Implement interfaces for memory protection keys
19234 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19235 xsignal, xsysconf.
19236 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19237 * support/xunistd.h (xsysconf): Declare.
19238 * support/xraise.c: New file.
19239 * support/xsigaction.c: Likewise.
19240 * support/xsignal.c: Likewise.
19241 * support/xsysconf.c: Likewise.
19242 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19243 pkey_set, pkey_get, pkey_mprotect.
19244 [misc] (tests): Add tst-pkey.
19245 (tst-pkey): Link with -lpthread.
19246 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19247 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19248 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19249 (PKEY_DISABLE_WRITE): Define.
19250 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19251 Declare.
19252 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19253 (SEGV_PKUERR): Add.
19254 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19255 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19256 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19257 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19258 Add.
19259 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19260 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19261 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19262 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19263 * sysdeps/unix/sysv/linux/**.abilist: Update.
19264
19265 2017-12-05 Florian Weimer <fweimer@redhat.com>
19266
19267 * support/tst-test_compare.c (subprocess): Use long long instead
19268 of long argument for consistent type width across 32-bit and
19269 64-bit architectures.
19270 (do_test): Adjust expected output.
19271
19272 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19273
19274 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19275 (cosf): Define using libm_alias_float.
19276 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19277 (fabsf): Define using libm_alias_float.
19278 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19279 (fmaf): Define using libm_alias_float.
19280 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19281 (rintf): Define using libm_alias_float.
19282 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19283 (sinf): Define using libm_alias_float.
19284 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19285 <libm-alias-float.h>.
19286 (modff): Define using libm_alias_float.
19287 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19288 <libm-alias-float.h>.
19289 (logbf): Define using libm_alias_float.
19290 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19291 <libm-alias-float.h>.
19292 (ceilf): Define using libm_alias_float.
19293 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19294 <libm-alias-float.h>.
19295 (copysignf): Define using libm_alias_float.
19296 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19297 <libm-alias-float.h>.
19298 (floorf): Define using libm_alias_float.
19299 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19300 <libm-alias-float.h>.
19301 (llrintf): Define using libm_alias_float.
19302 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19303 <libm-alias-float.h>.
19304 (llroundf): Define using libm_alias_float.
19305 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19306 <libm-alias-float.h>.
19307 (lrintf): Define using libm_alias_float.
19308 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19309 <libm-alias-float.h>.
19310 (lroundf): Define using libm_alias_float.
19311 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19312 <libm-alias-float.h>.
19313 (nearbyintf): Define using libm_alias_float.
19314 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19315 <libm-alias-float.h>.
19316 (rintf): Define using libm_alias_float.
19317 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19318 <libm-alias-float.h>.
19319 (roundf): Define using libm_alias_float.
19320 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19321 <libm-alias-float.h>.
19322 (truncf): Define using libm_alias_float.
19323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19324 Include <libm-alias-float.h>.
19325 (ceilf): Define using libm_alias_float.
19326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19327 Include <libm-alias-float.h>.
19328 (copysignf): Define using libm_alias_float.
19329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19330 Include <libm-alias-float.h>.
19331 (floorf): Define using libm_alias_float.
19332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19333 Include <libm-alias-float.h>.
19334 (llrintf): Define using libm_alias_float.
19335 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19336 Include <libm-alias-float.h>.
19337 (llroundf): Define using libm_alias_float.
19338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19339 Include <libm-alias-float.h>.
19340 (logbf): Define using libm_alias_float.
19341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19342 Include <libm-alias-float.h>.
19343 (lrintf): Define using libm_alias_float.
19344 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19345 Include <libm-alias-float.h>.
19346 (lroundf): Define using libm_alias_float.
19347 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19348 Include <libm-alias-float.h>.
19349 (modff): Define using libm_alias_float.
19350 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19351 Include <libm-alias-float.h>.
19352 (roundf): Define using libm_alias_float.
19353 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19354 Include <libm-alias-float.h>.
19355 (truncf): Define using libm_alias_float.
19356 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19357 <libm-alias-float.h>.
19358 (llrintf): Define using libm_alias_float.
19359 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19360 <libm-alias-float.h>.
19361 (llroundf): Define using libm_alias_float.
19362 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19363 <libm-alias-float.h>.
19364 (ceilf): Define using libm_alias_float.
19365 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19366 <libm-alias-float.h>.
19367 (floorf): Define using libm_alias_float.
19368 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19369 <libm-alias-float.h>.
19370 (llroundf): Define using libm_alias_float.
19371 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19372 <libm-alias-float.h>.
19373 (lroundf): Define using libm_alias_float.
19374 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19375 <libm-alias-float.h>.
19376 (roundf): Define using libm_alias_float.
19377 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19378 <libm-alias-float.h>.
19379 (truncf): Define using libm_alias_float.
19380 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19381 <libm-alias-float.h>.
19382 (copysignf): Define using libm_alias_float.
19383 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19384 <libm-alias-float.h>.
19385 (llrintf): Define using libm_alias_float.
19386 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19387 <libm-alias-float.h>.
19388 (llroundf): Define using libm_alias_float.
19389 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19390 <libm-alias-float.h>.
19391 (lrintf): Define using libm_alias_float.
19392 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19393 <libm-alias-float.h>.
19394 (lroundf): Define using libm_alias_float.
19395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19396 <libm-alias-float.h>.
19397 (ceilf): Define using libm_alias_float.
19398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19399 <libm-alias-float.h>.
19400 (copysignf): Define using libm_alias_float.
19401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19402 <libm-alias-float.h>.
19403 (cosf): Define using libm_alias_float.
19404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19405 <libm-alias-float.h>.
19406 (floorf): Define using libm_alias_float.
19407 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19408 <libm-alias-float.h>.
19409 (llrintf): Define using libm_alias_float.
19410 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19411 <libm-alias-float.h>.
19412 (llroundf): Define using libm_alias_float.
19413 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19414 <libm-alias-float.h>.
19415 (logbf): Define using libm_alias_float.
19416 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19417 <libm-alias-float.h>.
19418 (modff): Define using libm_alias_float.
19419 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19420 <libm-alias-float.h>.
19421 (roundf): Define using libm_alias_float.
19422 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19423 <libm-alias-float.h>.
19424 (sinf): Define using libm_alias_float.
19425 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19426 <libm-alias-float.h>.
19427 (truncf): Define using libm_alias_float.
19428 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19429 <libm-alias-float.h>.
19430 (ceilf): Define using libm_alias_float.
19431 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19432 <libm-alias-float.h>.
19433 (copysignf): Define using libm_alias_float.
19434 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19435 <libm-alias-float.h>.
19436 (floorf): Define using libm_alias_float.
19437 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19438 <libm-alias-float.h>.
19439 (llrintf): Define using libm_alias_float.
19440 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19441 <libm-alias-float.h>.
19442 (llroundf): Define using libm_alias_float.
19443 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19444 <libm-alias-float.h>.
19445 (nearbyintf): Define using libm_alias_float.
19446 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19447 <libm-alias-float.h>.
19448 (rintf): Define using libm_alias_float.
19449 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19450 <libm-alias-float.h>.
19451 (roundf): Define using libm_alias_float.
19452 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19453 <libm-alias-float.h>.
19454 (truncf): Define using libm_alias_float.
19455 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19456 <libm-alias-float.h>.
19457 (ceilf): Define using libm_alias_float.
19458 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19459 <libm-alias-float.h>.
19460 (floorf): Define using libm_alias_float.
19461 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19462 <libm-alias-float.h>.
19463 (llroundf): Define using libm_alias_float.
19464 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19465 <libm-alias-float.h>.
19466 (roundf): Define using libm_alias_float.
19467 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19468 <libm-alias-float.h>.
19469 (truncf): Define using libm_alias_float.
19470 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19471 <libm-alias-float.h>.
19472 (copysignf): Define using libm_alias_float.
19473 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19474 <libm-alias-float.h>.
19475 (llrintf): Define using libm_alias_float.
19476 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19477 <libm-alias-float.h>.
19478 (llroundf): Define using libm_alias_float.
19479 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19480 <libm-alias-float.h>.
19481 (cosf): Define using libm_alias_float.
19482 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19483 <libm-alias-float.h>.
19484 (llrintf): Define using libm_alias_float.
19485 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19486 <libm-alias-float.h>.
19487 (llroundf): Define using libm_alias_float.
19488 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19489 <libm-alias-float.h>.
19490 (sinf): Define using libm_alias_float.
19491
19492 2017-12-04 Florian Weimer <fweimer@redhat.com>
19493
19494 * support/check.h (TEST_COMPARE): Define.
19495 (support_test_compare_failure): Declare.
19496 * support/Makefile (libsupport-routines): Add
19497 support_test_compare_failure.
19498 (tests): Add tst-test_compare.
19499 * support /support_test_compare_failure.c: New file.
19500 * support/tst-test_compare.c: Likewise.
19501
19502 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19503
19504 [BZ #22527]
19505 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19506 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19507 available, this rewrite of the collation rules does reproduce
19508 the test file in the same order.
19509
19510 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19511
19512 [BZ #10580]
19513 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19514 digraphs in the month and day names. Using single code points for
19515 digraphs is deprecated. While there are dedicated Unicode
19516 codepoints, for the digraphs, these are included for backwards
19517 compatibility and modern texts use a sequence of Basic Latin
19518 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19519 This makes the month and day names agree exactly with CLDR now,
19520 CLDR does not use the single code points for the digraphs either.
19521
19522 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19523
19524 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19525
19526 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19527
19528 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19529 of floor.
19530
19531 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19532
19533 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19534 Define only for libc.so.
19535
19536 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19537
19538 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19539 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19540 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19541 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19542 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19543
19544 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19545
19546 [BZ #5997]
19547 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19548
19549 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19550
19551 [BZ libc/19170]
19552 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19553 PREINIT_FUNCTION_WEAK is nonzero.
19554 (gmon_initializer): New function. Put procedure label for it in
19555 .init_array section.
19556 (_init): Don't call PREINIT_FUNCTION.
19557 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19558 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19559 value when map argument is null.
19560
19561 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19562 depi instruction from PIC pc-relative sequence.
19563 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19564 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19565 (elf_machine_load_address): Likewise.
19566 (elf_machine_runtime_setup): Likewise.
19567
19568 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19569
19570 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19571 <libm-alias-double.h>.
19572 (logb): Define using libm_alias_double.
19573 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19574 <libm-alias-double.h>.
19575 (copysign): Define using libm_alias_double.
19576 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19577 <libm-alias-double.h>.
19578 (llrint): Define using libm_alias_double.
19579 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19580 <libm-alias-double.h>.
19581 (llround): Define using libm_alias_double.
19582 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19583 <libm-alias-double.h>.
19584 (lrint): Define using libm_alias_double.
19585 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19586 <libm-alias-double.h>.
19587 (lround): Define using libm_alias_double.
19588 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19589 Include <libm-alias-double.h>.
19590 (copysign): Define using libm_alias_double.
19591 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19592 Include <libm-alias-double.h>.
19593 (llrint): Define using libm_alias_double.
19594 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19595 Include <libm-alias-double.h>.
19596 (llround): Define using libm_alias_double.
19597 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19598 <libm-alias-double.h>.
19599 (logb): Define using libm_alias_double.
19600 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19601 Include <libm-alias-double.h>.
19602 (lrint): Define using libm_alias_double.
19603 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19604 Include <libm-alias-double.h>.
19605 (lround): Define using libm_alias_double.
19606 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19607 <libm-alias-double.h>.
19608 (llrint): Define using libm_alias_double.
19609 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19610 <libm-alias-double.h>.
19611 (llround): Define using libm_alias_double.
19612 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19613 <libm-alias-double.h>.
19614 (llround): Define using libm_alias_double.
19615 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19616 <libm-alias-double.h>.
19617 (lround): Define using libm_alias_double.
19618 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19619 <libm-alias-double.h>.
19620 (copysign): Define using libm_alias_double.
19621 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19622 <libm-alias-double.h>.
19623 (llrint): Define using libm_alias_double.
19624 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19625 <libm-alias-double.h>.
19626 (llround): Define using libm_alias_double.
19627 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19628 <libm-alias-double.h>.
19629 (lrint): Define using libm_alias_double.
19630 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19631 <libm-alias-double.h>.
19632 (lround): Define using libm_alias_double.
19633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19634 <libm-alias-double.h>.
19635 (copysign): Define using libm_alias_double.
19636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19637 <libm-alias-double.h>.
19638 (llrint): Define using libm_alias_double.
19639 (lrint): Likewise.
19640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19641 <libm-alias-double.h>.
19642 (llround): Define using libm_alias_double.
19643 (lround): Likewise.
19644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19645 <libm-alias-double.h>.
19646 (logb): Define using libm_alias_double.
19647 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19648 <libm-alias-double.h>.
19649 (copysign): Define using libm_alias_double.
19650 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19651 <libm-alias-double.h>.
19652 (llrint): Define using libm_alias_double.
19653 (lrint): Likewise.
19654 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19655 <libm-alias-double.h>.
19656 (llround): Define using libm_alias_double.
19657 (lround): Likewise.
19658 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19659 <libm-alias-double.h>.
19660 (llround): Define using libm_alias_double.
19661 (lround): Likewise.
19662 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19663 <libm-alias-double.h>.
19664 (copysign): Define using libm_alias_double.
19665 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19666 <libm-alias-double.h>.
19667 (llrint): Define using libm_alias_double.
19668 (lrint): Likewise.
19669 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19670 <libm-alias-double.h>.
19671 (llround): Define using libm_alias_double.
19672 (lround): Likewise.
19673 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19674 <libm-alias-double.h>.
19675 (llrint): Define using libm_alias_double.
19676 (lrint): Likewise.
19677 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19678 <libm-alias-double.h>.
19679 (llround): Define using libm_alias_double.
19680 (lround): Likewise.
19681
19682 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19683
19684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19685 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19686 compat symbol based on llround.
19687
19688 * sysdeps/powerpc/power7/fpu/s_logb.c
19689 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19690 symbol based on __logb, not on logb.
19691 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19692 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19694 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19695
19696 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19697 (rint): Define using libm_alias_double.
19698 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19699 <libm-alias-double.h>.
19700 (modf): Define using libm_alias_double.
19701 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19702 <libm-alias-double.h>.
19703 (ceil): Define using libm_alias_double.
19704 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19705 <libm-alias-double.h>.
19706 (floor): Define using libm_alias_double.
19707 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19708 <libm-alias-double.h>.
19709 (nearbyint): Define using libm_alias_double.
19710 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19711 <libm-alias-double.h>.
19712 (rint): Define using libm_alias_double.
19713 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19714 <libm-alias-double.h>.
19715 (round): Define using libm_alias_double.
19716 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19717 <libm-alias-double.h>.
19718 (trunc): Define using libm_alias_double.
19719 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19720 <libm-alias-double.h>.
19721 (ceil): Define using libm_alias_double.
19722 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19723 Include <libm-alias-double.h>.
19724 (floor): Define using libm_alias_double.
19725 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19726 <libm-alias-double.h>.
19727 (modf): Define using libm_alias_double.
19728 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19729 Include <libm-alias-double.h>.
19730 (round): Define using libm_alias_double.
19731 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19732 Include <libm-alias-double.h>.
19733 (trunc): Define using libm_alias_double.
19734 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19735 <libm-alias-double.h>.
19736 (ceil): Define using libm_alias_double.
19737 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19738 <libm-alias-double.h>.
19739 (floor): Define using libm_alias_double.
19740 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19741 <libm-alias-double.h>.
19742 (round): Define using libm_alias_double.
19743 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19744 <libm-alias-double.h>.
19745 (trunc): Define using libm_alias_double.
19746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19747 <libm-alias-double.h>.
19748 (ceil): Define using libm_alias_double.
19749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19750 <libm-alias-double.h>.
19751 (floor): Define using libm_alias_double.
19752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19753 <libm-alias-double.h>.
19754 (modf): Define using libm_alias_double.
19755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19756 <libm-alias-double.h>.
19757 (round): Define using libm_alias_double.
19758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19759 <libm-alias-double.h>.
19760 (trunc): Define using libm_alias_double.
19761 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19762 <libm-alias-double.h>.
19763 (ceil): Define using libm_alias_double.
19764 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19765 <libm-alias-double.h>.
19766 (floor): Define using libm_alias_double.
19767 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19768 <libm-alias-double.h>.
19769 (nearbyint): Define using libm_alias_double.
19770 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19771 <libm-alias-double.h>.
19772 (rint): Define using libm_alias_double.
19773 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19774 <libm-alias-double.h>.
19775 (round): Define using libm_alias_double.
19776 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19777 <libm-alias-double.h>.
19778 (trunc): Define using libm_alias_double.
19779 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19780 <libm-alias-double.h>.
19781 (ceil): Define using libm_alias_double.
19782 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19783 <libm-alias-double.h>.
19784 (floor): Define using libm_alias_double.
19785 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19786 <libm-alias-double.h>.
19787 (round): Define using libm_alias_double.
19788 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19789 <libm-alias-double.h>.
19790 (trunc): Define using libm_alias_double.
19791
19792 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19793 (fabs): Define using libm_alias_double.
19794 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19795 (fma): Define using libm_alias_double.
19796 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19797 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19798 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19799 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19800
19801 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19802
19803 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19804
19805 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19806 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19807 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19808
19809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19810 due redirect macro.
19811
19812 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19813
19814 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19815
19816 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19817
19818 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19819 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19820 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19821 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19822
19823 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19824 (libm-sysdep_routines): Add s_nearbyintf-generic and
19825 s_nearbyint-generic.
19826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19827 New file.
19828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19830 Likewise.
19831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19832 Likewise.
19833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19834 file.
19835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19836 Likewise.
19837
19838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19839 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19841 file.
19842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19844 Likewise.
19845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19848
19849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19850 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19852 file.
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19855 Likewise.
19856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19859
19860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19861 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19863 file.
19864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19866 Likewise.
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19870
19871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19872 (sysdep_calls): New rule.
19873 (sysdep_routines): Use sysdep_calls as base.
19874 (libm-sysdep_routines): Add generic rule for symbols shared with
19875 libc. Add s_copysign-generic and s_copysign-generic objects.
19876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19877 New file.
19878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19880 Likewise.
19881 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19883 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19884
19885 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19886
19887 [BZ #22519]
19888 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19889 the list of locales to be built for testing.
19890 * localedata/is_IS.UTF-8.in: New file.
19891 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19892 on iso14651_t1.
19893
19894 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19895
19896 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19897 <libm-alias-float.h>.
19898 (fabsf): Define using libm_alias_float.
19899
19900 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19901
19902 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19903
19904 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19905
19906 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19907 <libm-alias-float.h>.
19908 (fabsf): Define using libm_alias_float.
19909 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19910 <libm-alias-float.h>.
19911 (lrintf): Define using libm_alias_float.
19912 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19913 <libm-alias-float.h>.
19914 (rintf): Define using libm_alias_float.
19915
19916 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19917 <libm-alias-double.h>.
19918 (fabs): Define using libm_alias_double.
19919 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19920 <libm-alias-double.h>.
19921 (lrint): Define using libm_alias_double.
19922 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19923 <libm-alias-double.h>.
19924 (rint): Define using libm_alias_double.
19925
19926 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19927 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19928 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19929 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19930 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19931 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19932 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19933 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19936 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19937 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19940 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19941 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19944 s_atan_template.c.
19945 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19948 s_ceil_template.c.
19949 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19950 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19952 s_cos_template.c.
19953 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19954 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19955 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19956 s_expm1_template.c.
19957 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19958 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19959 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19960 s_fabs_template.c.
19961 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19962 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19963 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19964 s_floor_template.c.
19965 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19966 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19967 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19968 s_frexp_template.c.
19969 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19970 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19971 s_lrint_template.c.
19972 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19974 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19975 s_modf_template.c.
19976 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19977 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19978 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19979 s_nearbyint_template.c.
19980 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19981 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19982 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19983 s_remquo_template.c.
19984 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19985 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19986 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19987 s_rint_template.c.
19988 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19989 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19990 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19991 s_sin_template.c.
19992 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19993 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19994 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19995 s_sincos_template.c.
19996 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19997 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19998 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19999 s_tan_template.c.
20000 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20001 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20002 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20003 s_tanh_template.c.
20004 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20005 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20006 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20007 s_trunc_template.c.
20008 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20009 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20010 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20011 s_atan.c instead of including s_atan.c.
20012 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20013 s_atanf.c instead of including s_atanf.c.
20014 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20015 s_atanl.c instead of including s_atanl.c.
20016 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20017 instead of s_atan.c.
20018 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20019 instead of s_atanf.c.
20020 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20021 instead of s_atanl.c.
20022
20023 * scripts/update-copyrights: Do not handle intl/plural.c
20024 specially.
20025
20026 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20027
20028 [BZ #22432]
20029 * configure.ac (BISON): Require to be present.
20030 * configure: Regenerated.
20031 * intl/Makefile (generated): Add plural.c.
20032 [$(BISON) != no]: Make code unconditional.
20033 (plural.c): Change rule to $(objpfx)plural.c.
20034 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20035 * intl/plural.c: Remove.
20036 * manual/install.texi (Tools for Compilation): Document bison as
20037 required.
20038 * INSTALL: Regenerated.
20039
20040 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20041
20042 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20043 <libm-alias-double.h>.
20044 (llrint): Define using libm_alias_double.
20045 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20046 <libm-alias-float.h>.
20047 (llrintf): Define using libm_alias_float.
20048 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20049 <libm-alias-ldouble.h>.
20050 (llrintl): Define using libm_alias_ldouble.
20051
20052 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20053 declare_mgen_alias instead of weak_alias.
20054 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20055 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20056 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20057
20058 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20059
20060 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20061 Add add_n-generic.
20062 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20063 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20064 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20065
20066 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20067 Add submul_1-generic.
20068 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20069 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20070 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20071
20072 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20073 Add addmul_1-generic.
20074 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20075 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20076 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20077
20078 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20079 Add sub_n-generic.
20080 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20081 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20082 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20083
20084 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20085 Add mul_1-generic.
20086 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20087 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20088 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20089
20090 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20091
20092 According to CLDR, collation rules for Serbian and Bosnian
20093 should be the same as for Croatian.
20094
20095 [BZ #22534]
20096 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20097 and to the list of locales to be built for testing.
20098 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20099 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20100 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20101 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20102
20103 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20104
20105 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20106 to make test case pass.
20107 * localedata/hr_HR.UTF-8.in: Add more test strings.
20108
20109 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20110
20111 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20112
20113 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20114
20115 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20116 the list of locales to built for testing.
20117 * localedata/hr_HR.UTF-8.in: New file.
20118
20119 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20120
20121 [BZ #10580]
20122 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20123 iso14651_t1.
20124 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20125 CLDR (except use ligatures for the digraphs, CLDR does not use
20126 the ligatures), add first_workday, some fixes in the date and time
20127 formats.
20128 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20129 for Đ and đ.
20130 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20131 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20132 Add int_p_cs_precedes and int_n_cs_precedes.
20133 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20134 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20135 LC_MONETARY now).
20136 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20137 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20138 name_miss.
20139 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20140 and lang_lib. Change postal_fmt.
20141
20142 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20143
20144 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20145 <setjmp.h>.
20146 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20147 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20148 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20149 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20150 * sysdeps/generic/setjmpP.h: New file.
20151 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20152 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20153 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20154 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20155 Add jmp_buf-ssp.sym.
20156 (tests): Add tst-saved_mask-1.
20157
20158 2017-11-30 Arjun Shankar <arjun@redhat.com>
20159
20160 [BZ #22375]
20161 CVE-2017-17426
20162 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20163 instead of request2size.
20164
20165 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20166
20167 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20168 (__lllrint): Remove alias.
20169 (lllrint): Likewise.
20170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20171 (__lllrintf): Likewise.
20172 (lllrintf): Likewise.
20173
20174 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20175 <libm-alias-float.h>.
20176 (copysignf): Define using libm_alias_float.
20177 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20178 <libm-alias-float.h>.
20179 (fabsf): Define using libm_alias_float.
20180 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20181 Include <libm-alias-float.h>.
20182 (copysignf): Define using libm_alias_float.
20183 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20184 <libm-alias-float.h>.
20185 (fabsf): Define using libm_alias_float.
20186 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20187 <libm-alias-float.h>.
20188 (fdimf): Define using libm_alias_float.
20189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20190 <libm-alias-float.h>.
20191 (fmaf): Define using libm_alias_float.
20192 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20193 <libm-alias-float.h>.
20194 (llrintf): Define using libm_alias_float.
20195 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20196 Include <libm-alias-float.h>.
20197 (nearbyintf): Define using libm_alias_float.
20198 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20199 <libm-alias-float.h>.
20200 (rintf): Define using libm_alias_float.
20201 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20202 <libm-alias-float.h>.
20203 (llrintf): Define using libm_alias_float.
20204 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20205 <libm-alias-float.h>.
20206 (lrintf): Define using libm_alias_float.
20207 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20208 <libm-alias-float.h>.
20209 (nearbyintf): Define using libm_alias_float.
20210 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20211 <libm-alias-float.h>.
20212 (rintf): Define using libm_alias_float.
20213 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20214 <libm-alias-float.h>.
20215 (ceilf): Define using libm_alias_float.
20216 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20217 <libm-alias-float.h>.
20218 (floorf): Define using libm_alias_float.
20219 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20220 <libm-alias-float.h>.
20221 (fmaf): Define using libm_alias_float.
20222 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20223 <libm-alias-float.h>.
20224 (lrintf): Define using libm_alias_float.
20225 (llrintf): Likewise.
20226 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20227 <libm-alias-float.h>.
20228 (nearbyintf): Define using libm_alias_float.
20229 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20230 <libm-alias-float.h>.
20231 (rintf): Define using libm_alias_float.
20232 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20233 <libm-alias-float.h>.
20234 (truncf): Define using libm_alias_float.
20235 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20236 <libm-alias-float.h>.
20237 (copysignf): Define using libm_alias_float.
20238 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20239 <libm-alias-float.h>.
20240 (fabsf): Define using libm_alias_float.
20241 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20242 <libm-alias-float.h>.
20243 (lrintf): Define using libm_alias_float.
20244 (llrintf): Likewise.
20245 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20246 <libm-alias-float.h>.
20247 (nearbyintf): Define using libm_alias_float.
20248 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20249 <libm-alias-float.h>.
20250 (rintf): Define using libm_alias_float.
20251
20252 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20253
20254 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20255 <libm-alias-double.h>.
20256 (copysign): Define using libm_alias_double.
20257 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20258 <libm-alias-double.h>.
20259 (fabs): Define using libm_alias_double.
20260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20261 Include <libm-alias-double.h>.
20262 (copysign): Define using libm_alias_double.
20263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20264 <libm-alias-double.h>.
20265 (fabs): Define using libm_alias_double.
20266 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20267 <libm-alias-double.h>.
20268 (fdim): Define using libm_alias_double.
20269 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20270 <libm-alias-double.h>.
20271 (fma): Define using libm_alias_double.
20272 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20273 <libm-alias-double.h>.
20274 (llrint): Define using libm_alias_double.
20275 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20276 Include <libm-alias-double.h>.
20277 (nearbyint): Define using libm_alias_double.
20278 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20279 <libm-alias-double.h>.
20280 (rint): Define using libm_alias_double.
20281 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20282 <libm-alias-double.h>.
20283 (fabs): Define using libm_alias_double.
20284 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20285 <libm-alias-double.h>.
20286 (llrint): Define using libm_alias_double.
20287 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20288 <libm-alias-double.h>.
20289 (nearbyint): Define using libm_alias_double.
20290 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20291 <libm-alias-double.h>.
20292 (rint): Define using libm_alias_double.
20293 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20294 <libm-alias-double.h>.
20295 (ceil): Define using libm_alias_double.
20296 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20297 <libm-alias-double.h>.
20298 (floor): Define using libm_alias_double.
20299 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20300 <libm-alias-double.h>.
20301 (fma): Define using libm_alias_double.
20302 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20303 <libm-alias-double.h>.
20304 (lrint): Define using libm_alias_double.
20305 (llrint): Likewise.
20306 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20307 <libm-alias-double.h>.
20308 (nearbyint): Define using libm_alias_double.
20309 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20310 <libm-alias-double.h>.
20311 (rint): Define using libm_alias_double.
20312 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20313 <libm-alias-double.h>.
20314 (trunc): Define using libm_alias_double.
20315 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20316 <libm-alias-double.h>.
20317 (copysign): Define using libm_alias_double.
20318 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20319 <libm-alias-double.h>.
20320 (fabs): Define using libm_alias_double.
20321 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20322 <libm-alias-double.h>.
20323 (lrint): Define using libm_alias_double.
20324 (llrint): Likewise.
20325 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20326 <libm-alias-double.h>.
20327 (nearbyint): Define using libm_alias_double.
20328 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20329 <libm-alias-double.h>.
20330 (rint): Define using libm_alias_double.
20331
20332 [BZ #22229]
20333 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20334 <math_ldbl_opt.h>.
20335 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20336
20337 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20338 SPARC --disable-multi-arch glibc variants.
20339
20340 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20341 <libm-alias-float.h>.
20342 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20343 if [SHARED].
20344 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20345 <libm-alias-float.h>.
20346 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20347 if [SHARED].
20348 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20349 <libm-alias-float.h>.
20350 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20351 if [SHARED].
20352 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20353 <libm-alias-float.h>.
20354 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20355 if [SHARED].
20356 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20357 <libm-alias-float.h>.
20358 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20359 if [SHARED].
20360 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20361 <libm-alias-float.h>.
20362 (ceilf): Define using libm_alias_float.
20363 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20364 <libm-alias-float.h>.
20365 (floorf): Define using libm_alias_float.
20366 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20367 <libm-alias-float.h>.
20368 (fmaf): Define using libm_alias_float.
20369 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20370 <libm-alias-float.h>.
20371 (nearbyintf): Define using libm_alias_float.
20372 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20373 <libm-alias-float.h>.
20374 (rintf): Define using libm_alias_float.
20375 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20376 <libm-alias-float.h>.
20377 (truncf): Define using libm_alias_float.
20378 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20379 (copysignf): Define using libm_alias_float.
20380 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20381 (cosf): Define using libm_alias_float.
20382 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20383 (fabsf): Define using libm_alias_float.
20384 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20385 (fmaxf): Define using libm_alias_float.
20386 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20387 (fminf): Define using libm_alias_float.
20388 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20389 (llrintf): Define using libm_alias_float.
20390 [!__ILP32__] (lrintf): Likewise.
20391 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20392 (sincosf): Define using libm_alias_float.
20393 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20394 (sinf): Define using libm_alias_float.
20395 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20396 (lrintf): Define using libm_alias_float.
20397
20398 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20399 <libm-alias-double.h>.
20400 (atan): Define using libm_alias_double.
20401 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20402 <libm-alias-double.h>.
20403 (ceil): Define using libm_alias_double.
20404 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20405 <libm-alias-double.h>.
20406 (floor): Define using libm_alias_double.
20407 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20408 <libm-alias-double.h>.
20409 (fma): Define using libm_alias_double.
20410 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20411 <libm-alias-double.h>.
20412 (nearbyint): Define using libm_alias_double.
20413 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20414 <libm-alias-double.h>.
20415 (rint): Define using libm_alias_double.
20416 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20417 <libm-alias-double.h>.
20418 (sin): Define using libm_alias_double.
20419 (cos): Likewise.
20420 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20421 <libm-alias-double.h>.
20422 (tan): Define using libm_alias_double.
20423 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20424 <libm-alias-double.h>.
20425 (trunc): Define using libm_alias_double.
20426 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20427 (copysign): Define using libm_alias_double.
20428 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20429 (fabs): Define using libm_alias_double.
20430 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20431 (fmax): Define using libm_alias_double.
20432 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20433 (fmin): Define using libm_alias_double.
20434 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20435 (llrint): Define using libm_alias_double.
20436 [!__ILP32__] (lrint): Likewise.
20437 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20438 (lrint): Define using libm_alias_double.
20439
20440 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20441
20442 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20443 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20444 objects.
20445 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20446 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20447 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20448 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20449 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20450 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20451
20452 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20453 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20454 objects.
20455 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20457 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20458 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20459 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20461
20462 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20463 (libm-sysdep_routines): Add s_nearbyint-generic and
20464 s_nearbyintf-generic objects.
20465 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20466 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20467 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20468 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20469 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20470 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20471
20472 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20473 Add s_finitef-generic and s_finite-generic objects.
20474 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20475 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20476 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20477 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20478 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20480
20481 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20482 Add s_isinff-generic and s_isinf-generic objects.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20484 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20485 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20486 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20487 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20489
20490 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20491 Add s_isnanf-generic and s_isnan-generic objects.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20494 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20495 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20496 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20498
20499 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20500 macro.
20501 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20502 rule.
20503 (sysdep_routines): Use sysdep_calls as base.
20504 (libm-sysdep_routines): Add generic rule for symbols shared with
20505 libc. Add s_signbit-generic and s_signbitf-generic objects.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20507 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20508 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20509 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20510 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20511 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20512
20513 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20514
20515 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20516 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20517 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20518 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20519 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20520 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20521 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20522 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20523 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20524 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20525 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20526 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20527 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20528 libm_alias_float_r.
20529 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20530 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20531 (logf): Likewise.
20532 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20533 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20534 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20535 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20536 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20537 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20538 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20539 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20540 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20541 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20542 libm_alias_float.
20543 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20544 (cosf): Likewise.
20545 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20546 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20547 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20548 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20549 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20550 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20551 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20552 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20553 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20554 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20555 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20556 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20557 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20558 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20559 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20560 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20561 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20562 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20563 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20564 libm_alias_float.
20565 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20566 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20567 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20568 * sysdeps/ia64/fpu/w_lgammaf_main.c
20569 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20570 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20571
20572 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20573 Alexandre Oliva <aoliva@redhat.com>
20574
20575 [BZ #17750]
20576 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20577 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20578 accents sorting.
20579 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20580 sorting.
20581 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20582 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20583 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20584 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20585 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20586 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20587 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20588 instead of “ifdef DIACRIT_BACKWARD”.
20589
20590 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20591
20592 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20593 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20594 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20595 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20596 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20597 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20598 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20599 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20600 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20601 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20602 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20603 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20604 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20605 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20606 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20607 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20608 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20609 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20611 ($(have-as-vis3) == yes): Remove conditional.
20612 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20613 Likewise.
20614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20615 file.
20616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20617 file.
20618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20619 file.
20620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20621 file.
20622 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20623 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20624 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20625 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20626 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20627 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20628 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20629 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20630
20631 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20632
20633 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20634 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20635 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20636 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20637 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20638 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20639 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20640 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20641 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20642 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20643 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20644 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20645 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20646 libm_alias_double_r.
20647 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20648 (log): Likewise.
20649 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20650 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20651 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20652 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20653 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20654 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20655 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20656 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20657 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20658 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20659 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20660 libm_alias_double.
20661 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20662 (cos): Likewise.
20663 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20664 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20665 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20666 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20667 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20668 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20669 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20670 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20671 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20672 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20673 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20674 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20675 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20676 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20677 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20678 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20679 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20680 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20681 libm_alias_double.
20682 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20683 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20684 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20685 * sysdeps/ia64/fpu/w_lgamma_main.c
20686 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20687 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20688
20689 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20690
20691 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20692 address of $global$ into %dp register earlier. Use pc-relative
20693 instruction sequence for PIC case.
20694
20695 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20696
20697 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20698 (asinhf): Define using libm_alias_float.
20699 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20700 (atanf): Define using libm_alias_float.
20701 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20702 (cbrtf): Define using libm_alias_float.
20703 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20704 (ceilf): Define using libm_alias_float.
20705 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20706 (copysignf): Define using libm_alias_float.
20707 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20708 (expm1f): Define using libm_alias_float.
20709 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20710 (fabsf): Define using libm_alias_float.
20711 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20712 (floorf): Define using libm_alias_float.
20713 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20714 (fmaxf): Define using libm_alias_float.
20715 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20716 (fminf): Define using libm_alias_float.
20717 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20718 (frexpf): Define using libm_alias_float.
20719 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20720 (llrintf): Define using libm_alias_float.
20721 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20722 (logbf): Define using libm_alias_float.
20723 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20724 (lrintf): Define using libm_alias_float.
20725 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20726 (nearbyintf): Define using libm_alias_float.
20727 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20728 (remquof): Define using libm_alias_float.
20729 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20730 (rintf): Define using libm_alias_float.
20731 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20732 (truncf): Define using libm_alias_float.
20733 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20734 <libm-alias-float.h>.
20735 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20736 if [SHARED].
20737 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20738 <libm-alias-float.h>.
20739 (expf): Define using libm_alias_float, or libm_alias_float_other
20740 if [SHARED].
20741 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20742 <libm-alias-float.h>.
20743 (log2f): Define using libm_alias_float, or libm_alias_float_other
20744 if [SHARED].
20745 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20746 <libm-alias-float.h>.
20747 (logf): Define using libm_alias_float, or libm_alias_float_other
20748 if [SHARED].
20749 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20750 <libm-alias-float.h>.
20751 (powf): Define using libm_alias_float, or libm_alias_float_other
20752 if [SHARED].
20753 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20754 <libm-alias-float.h>.
20755 (cosf): Define using libm_alias_float.
20756 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20757 <libm-alias-float.h>.
20758 (sincosf): Define using libm_alias_float.
20759 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20760 <libm-alias-float.h>.
20761 (sinf): Define using libm_alias_float.
20762 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20763 (fmaxf): Define using libm_alias_float.
20764 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20765 (fminf): Define using libm_alias_float.
20766 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20767 <libm-alias-float.h>.
20768 (fmaf): Define using libm_alias_float.
20769
20770 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20771 (asinh): Define using libm_alias_double.
20772 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20773 (atan): Define using libm_alias_double.
20774 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20775 (cbrt): Define using libm_alias_double.
20776 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20777 (ceil): Define using libm_alias_double.
20778 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20779 (copysign): Define using libm_alias_double.
20780 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20781 (expm1): Define using libm_alias_double.
20782 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20783 (fabs): Define using libm_alias_double.
20784 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20785 (fdim): Define using libm_alias_double.
20786 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20787 (floor): Define using libm_alias_double.
20788 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20789 (fmax): Define using libm_alias_double.
20790 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20791 (fmin): Define using libm_alias_double.
20792 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20793 (frexp): Define using libm_alias_double.
20794 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20795 (llrint): Define using libm_alias_double.
20796 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20797 (logb): Define using libm_alias_double.
20798 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20799 (lrint): Define using libm_alias_double.
20800 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20801 (nearbyint): Define using libm_alias_double.
20802 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20803 (remquo): Define using libm_alias_double.
20804 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20805 (rint): Define using libm_alias_double.
20806 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20807 (trunc): Define using libm_alias_double.
20808 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20809 (fmax): Define using libm_alias_double.
20810 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20811 (fmin): Define using libm_alias_double.
20812 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20813 (fma): Define using libm_alias_double.
20814
20815 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20816
20817 [BZ #22370]
20818 * elf/dl-hwcaps.c (ROUND): Removed.
20819 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20820 and ELF_NOTE_NEXT_OFFSET.
20821 * elf/dl-load.c (ROUND): Removed.
20822 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20823 * elf/readelflib.c (ROUND): Removed.
20824 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20825 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20826 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20827 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20828
20829 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20830
20831 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20832 [!__fmaf] (fmaf): Define using libm_alias_float.
20833
20834 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20835 [!__fma] (fma): Define using libm_alias_double.
20836 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20837
20838 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20839
20840 [BZ #22336]
20841 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20842 and implement the collation rules for cs from CLDR on top of that.
20843 * Makefile: Add cs_CZ.UTF-8 to test-input.
20844 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20845
20846 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20847
20848 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20849
20850 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20851 Icarus Sparry <icarus.w.sparry@intel.com>
20852
20853 * benchtests/Makefile:Add BENCHSET to allow subsets of
20854 benchmarks to be run.
20855 * benchtests/README: Add documentation for: Running subsets of
20856 benchmarks.
20857
20858 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20859
20860 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20861 range of tests names.
20862
20863 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20864 result from property and remove "max", min" and "mean" from
20865 required properties based on benchtests/bench-skeleton.c.
20866
20867 2017-11-28 Florian Weimer <fweimer@redhat.com>
20868
20869 [BZ #20826]
20870 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20871 due to Internet requirement.
20872 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20873 tst-getaddrinfo5.
20874 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20875
20876 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20877
20878 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20879 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20880 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20881 (sysdep_routines): Add memset-ultra1.
20882 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20883 file.
20884 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20885 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20886 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20887 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20888 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20889 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20890 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20891 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20892
20893 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20894 file.
20895 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20896 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20897 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20898 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20899 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20900 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20901 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20902 macro.
20903 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20904 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20905 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20906 (sysdep_routines): Add memcpy-ultra1.
20907 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20908 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20909
20910 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20911
20912 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20913 (cfloat_versions): Take function argument without trailing 'f'.
20914 Call libm_alias_float_other.
20915 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20916 * sysdeps/alpha/fpu/cargf.c: Likewise.
20917 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20918 * sysdeps/alpha/fpu/conjf.c: Likewise.
20919 * sysdeps/alpha/fpu/crealf.c: Likewise.
20920 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20921 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20922 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20923 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20924 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20925 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20926 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20927 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20928 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20929 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20930 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20931 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20932 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20933 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20934 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20935 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20936 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20937 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20938 (clog10f): Use libm_alias_float_other.
20939 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20940 (ceilf): Define using libm_alias_float.
20941 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20942 (copysignf): Define using libm_alias_float.
20943 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20944 (fabsf): Define using libm_alias_float.
20945 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20946 (floorf): Define using libm_alias_float.
20947 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20948 (fmaxf): Define using libm_alias_float.
20949 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20950 (fminf): Define using libm_alias_float.
20951 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20952 (lrintf): Define using libm_alias_float.
20953 (llrintf): Likewise.
20954 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20955 (lroundf): Define using libm_alias_float.
20956 (llroundf): Likewise.
20957 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20958 (rintf): Define using libm_alias_float.
20959 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20960 (truncf): Define using libm_alias_float.
20961
20962 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20963 (ceilf): Define using libm_alias_float.
20964 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20965 (floorf): Define using libm_alias_float.
20966 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20967 (fmaf): Define using libm_alias_float.
20968 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20969 (fmaxf): Define using libm_alias_float.
20970 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20971 (fminf): Define using libm_alias_float.
20972 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20973 (llrintf): Define using libm_alias_float.
20974 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20975 (llroundf): Define using libm_alias_float.
20976 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20977 (lrintf): Define using libm_alias_float.
20978 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20979 (lroundf): Define using libm_alias_float.
20980 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20981 <libm-alias-float.h>.
20982 (nearbyintf): Define using libm_alias_float.
20983 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20984 (rintf): Define using libm_alias_float.
20985 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20986 (roundf): Define using libm_alias_float.
20987 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20988 (truncf): Define using libm_alias_float.
20989
20990 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20991 (ceil): Define using libm_alias_double.
20992 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20993 (copysign): Define using libm_alias_double.
20994 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20995 (fabs): Define using libm_alias_double.
20996 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20997 (floor): Define using libm_alias_double.
20998 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20999 (fmax): Define using libm_alias_double.
21000 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21001 (fmin): Define using libm_alias_double.
21002 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21003 (lrint): Define using libm_alias_double.
21004 (llrint): Likewise.
21005 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21006 (lround): Define using libm_alias_double.
21007 (llround): Likewise.
21008 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21009 (rint): Define using libm_alias_double.
21010 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21011 (trunc): Define using libm_alias_double.
21012
21013 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21014 (libm_alias_double_r): Add semicolon after weak_alias call.
21015
21016 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21017
21018 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21019 (ceil): Define using libm_alias_double.
21020 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21021 (floor): Define using libm_alias_double.
21022 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21023 (fma): Define using libm_alias_double.
21024 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21025 (fmax): Define using libm_alias_double.
21026 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21027 (fmin): Define using libm_alias_double.
21028 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21029 (llrint): Define using libm_alias_double.
21030 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21031 (llround): Define using libm_alias_double.
21032 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21033 (lrint): Define using libm_alias_double.
21034 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21035 (lround): Define using libm_alias_double.
21036 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21037 (nearbyint): Define using libm_alias_double.
21038 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21039 (rint): Define using libm_alias_double.
21040 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21041 (round): Define using libm_alias_double.
21042 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21043 (trunc): Define using libm_alias_double.
21044
21045 2017-11-27 Florian Weimer <fweimer@redhat.com>
21046
21047 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21048 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21049 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21050 (tests): Add tst-mlock2.
21051 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21052 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21053 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21054 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21055 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21056 for mlock. Document mlock2.
21057
21058 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21059
21060 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21061 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21062 Likewise.
21063 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21064 Likewise.
21065 * sysdeps/x86/Makeconfig: New file.
21066 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21067 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21068 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21069 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21070 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21071 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21072 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21073 Likewise.
21074 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21075 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21076 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21077 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21078 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21079 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21080 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21081 * manual/math.texi (Mathematics): Document support for _Float64x.
21082 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21083 * stdlib/Versions (GLIBC_2.27): Likewise.
21084 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21085 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21086 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21087 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21088 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21089 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21090 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21091 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21092 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21093 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21094 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21095 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21097 Likewise.
21098 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21099 Likewise.
21100 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21108 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21109 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21110 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21111 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21112 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21113 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21114
21115 2017-11-27 Andreas Schwab <schwab@suse.de>
21116
21117 * elf/Makefile (dl-routines): Add dl-sort-maps.
21118 * elf/dl-sort-maps.c: New file.
21119 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21120 (_dl_sort_maps): Declare.
21121 * elf/dl-fini.c (_dl_sort_fini): Remove.
21122 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21123 * elf/dl-close.c (_dl_close_worker): Likewise.
21124 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21125 open-coding it.
21126 * elf/dl-open.c (dl_open_worker): Likewise.
21127
21128 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21129
21130 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21131 using libm_alias_float128.
21132 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21133 Likewise.
21134 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21135 Likewise.
21136 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21137 (setpayloadsigf128): Likewise.
21138 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21139 Likewise.
21140 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21141 Likewise.
21142
21143 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21144 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21145 -mfloat128 to CFLAGS.
21146 ($(foreach
21147 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21148 Likewise.
21149 (CFLAGS-libm-test-support-float64x.c): New variable.
21150 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21151 $(f128-loader-link) to gnulib-tests.
21152
21153 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21154 (libm_alias_float128_other_r): If
21155 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21156 alias.
21157 (libm_alias_float128_r): Add semicolon after weak_alias call.
21158 * sysdeps/generic/libm-alias-ldouble.h
21159 (libm_alias_ldouble_other_r_f128): New macro.
21160 (libm_alias_ldouble_other_r_f64x): Likewise.
21161 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21162 and libm_alias_ldouble_other_r_f64x.
21163 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21164 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21165 (libm_alias_ldouble_other_r_f128): New macro.
21166 (libm_alias_ldouble_other_r_f64x): Likewise.
21167 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21168 and libm_alias_ldouble_other_r_f64x.
21169
21170 * stdlib/strfroml.c: Always include <stdlib.h>.
21171 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21172 undefine as macro and define as weak alias.
21173 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21174 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21175 <stdlib.h>.
21176 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21177 Define and later undefine as macro and define as weak alias.
21178
21179 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21180 Define and later undefine as macro. Define as weak alias if
21181 [!USE_WIDE_CHAR].
21182 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21183 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21184 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21185 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21186 Define and later undefine as macro. Define as weak alias if
21187 [!USE_WIDE_CHAR].
21188 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21189 Define and later undefine as macro. Define as weak alias if
21190 [USE_WIDE_CHAR].
21191 * sysdeps/ieee754/float128/strtof128_l.c
21192 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21193 Define and later undefine as macro. Define as weak alias if
21194 [!USE_WIDE_CHAR].
21195 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21196 Define and later undefine as macro. Define as weak alias if
21197 [USE_WIDE_CHAR].
21198 * sysdeps/ieee754/ldbl-128/strtold_l.c
21199 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21200 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21201 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21202 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21203 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21204 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21205 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21206 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21207 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21208 * sysdeps/ieee754/ldbl-96/strtold_l.c
21209 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21210 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21211 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21212 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21213
21214 * math/test-float64x.h: New file.
21215 * math/Makefile (type-float64x-yes): New variable.
21216 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21217
21218 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21219 function-like macro.
21220 (min_of_type_): Likewise.
21221 (min_of_type_l): Likewise.
21222 (min_of_type_f128): Likewise.
21223 (min_of_type): Pass () as last argument of __MATH_TG.
21224
21225 * stdlib/tst-strtod-round-skeleton.c
21226 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21227 headers.
21228
21229 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21230 for combinations of long double with _Float64 and _Float64x.
21231
21232 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21233 (__DECL_SIMD_cosf32): Likewise.
21234 (__DECL_SIMD_cosf64): Likewise.
21235 (__DECL_SIMD_cosf32x): Likewise.
21236 (__DECL_SIMD_cosf64x): Likewise.
21237 (__DECL_SIMD_cosf128x): Likewise.
21238 (__DECL_SIMD_sinf16): Likewise.
21239 (__DECL_SIMD_sinf32): Likewise.
21240 (__DECL_SIMD_sinf64): Likewise.
21241 (__DECL_SIMD_sinf32x): Likewise.
21242 (__DECL_SIMD_sinf64x): Likewise.
21243 (__DECL_SIMD_sinf128x): Likewise.
21244 (__DECL_SIMD_sincosf16): Likewise.
21245 (__DECL_SIMD_sincosf32): Likewise.
21246 (__DECL_SIMD_sincosf64): Likewise.
21247 (__DECL_SIMD_sincosf32x): Likewise.
21248 (__DECL_SIMD_sincosf64x): Likewise.
21249 (__DECL_SIMD_sincosf128x): Likewise.
21250 (__DECL_SIMD_logf16): Likewise.
21251 (__DECL_SIMD_logf32): Likewise.
21252 (__DECL_SIMD_logf64): Likewise.
21253 (__DECL_SIMD_logf32x): Likewise.
21254 (__DECL_SIMD_logf64x): Likewise.
21255 (__DECL_SIMD_logf128x): Likewise.
21256 (__DECL_SIMD_expf16): Likewise.
21257 (__DECL_SIMD_expf32): Likewise.
21258 (__DECL_SIMD_expf64): Likewise.
21259 (__DECL_SIMD_expf32x): Likewise.
21260 (__DECL_SIMD_expf64x): Likewise.
21261 (__DECL_SIMD_expf128x): Likewise.
21262 (__DECL_SIMD_powf16): Likewise.
21263 (__DECL_SIMD_powf32): Likewise.
21264 (__DECL_SIMD_powf64): Likewise.
21265 (__DECL_SIMD_powf32x): Likewise.
21266 (__DECL_SIMD_powf64x): Likewise.
21267 (__DECL_SIMD_powf128x): Likewise.
21268
21269 * stdlib/Versions (libc): Move entries for wcstof128 and
21270 wcstof128_l to ....
21271 * wcsmbs/Versions (libc): ... here.
21272 Include <float128-abi.h>.
21273
21274 2017-11-24 Florian Weimer <fweimer@redhat.com>
21275
21276 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21277 bits/mman-shared.h.
21278 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21279 <bits/mman-shared.h>.
21280 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21281 to ...
21282 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21283 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21284 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21285 <bits/mman-shared.h>.
21286
21287 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21288
21289 [BZ #22457]
21290 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21291 posix_memalign/free.
21292 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21293
21294 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21295
21296 [BZ #22469]
21297 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21298 and implement the collation rules for pl from CLDR on top of that.
21299 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21300 of locales to be built for testing.
21301 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21302
21303 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21304
21305 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21306 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21307 libm_alias_ldouble_other.
21308 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21309 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21310 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21311 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21312 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21313 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21314 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21315 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21316 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21317 libm_alias_ldouble_r.
21318 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21319 libm_alias_ldouble_other.
21320 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21321 (log10l): Likewise.
21322 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21323 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21324 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21325 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21326 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21327 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21328 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21329 (atan2l): Likewise.
21330 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21331 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21332 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21333 libm_alias_ldouble.
21334 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21335 (cosl): Likewise.
21336 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21337 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21338 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21339 (expl): Likewise.
21340 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21341 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21342 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21343 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21344 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21345 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21346 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21347 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21348 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21349 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21350 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21351 libm_alias_ldouble.
21352 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21353 libm_alias_ldouble_other.
21354 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21355 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21356 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21357 libm_alias_ldouble.
21358 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21359 libm_alias_ldouble_other.
21360 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21361 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21362 * sysdeps/ia64/fpu/w_lgammal_main.c
21363 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21364 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21365
21366 2017-11-23 Florian Weimer <fweimer@redhat.com>
21367
21368 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21369 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21370 alike. Remove freeres marker.
21371 * malloc/arena.c (arena_thread_freeres): Call
21372 tcache_thread_shutdown.
21373
21374 2017-11-23 Florian Weimer <fweimer@redhat.com>
21375
21376 [BZ #22459]
21377 Export nscd hash function as __nss_hash.
21378 * include/nss.h (__nss_hash): Declare.
21379 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21380 symbol.
21381 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21382 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21383 of __nscd_hash.
21384 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21385 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21386 * nss/Makefiles (routines): Add nss_hash.
21387 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21388 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21389 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21390 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21391
21392 2017-11-23 Florian Weimer <fweimer@redhat.com>
21393
21394 [BZ #22478]
21395 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21396 Return error code, not -1.
21397 * signal/tst-sigwait-eintr.c: New file.
21398 * signal/Makefile (tests): Add tst-sigwait-eintr.
21399
21400 2017-11-23 Florian Weimer <fweimer@redhat.com>
21401
21402 Linux: Add memfd_create system call wrapper
21403 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21404 tst-memfd_create.
21405 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21406 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21407 [__USE_GNU] (memfd_create): Declare.
21408 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21409 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21410 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21411 * sysdeps/unix/sysv/linux/**.abilist: Update.
21412 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21413
21414 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21415
21416 * localedata/gen-locale.sh: Fix typo in variable name.
21417
21418 * resolv/res_debug.c (p_secstodate): Condition definition on
21419 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21420 directly as __p_secstodate, and as a compat symbol. Do not use
21421 libresolv_hidden_def.
21422 * resolv/resolv.h (p_secstodate): Remove macro and function
21423 declaration.
21424 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21425 using p_secstodate.
21426 * include/resolv.h (__p_secstodate): Do not use
21427 libresolv_hidden_proto.
21428 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21429 (tests-internal): ... here.
21430 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21431 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21432 and declare and use __p_secstodate and use compat_symbol_reference
21433 in that case.
21434 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21435 implementation returning 77.
21436
21437 [BZ #22463]
21438 * resolv/res_debug.c: Include <libc-diag.h>.
21439 (p_secstodate): Assert time_t at least as wide as u_long. On
21440 overflow, use integer seconds since the epoch as output, or use
21441 "<overflow>" as output and set errno to EOVERFLOW if integer
21442 seconds since the epoch would be 14 or more characters.
21443 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21444 for sprintf call.
21445 * resolv/tst-p_secstodate.c: New file.
21446 * resolv/Makefile (tests): Add tst-p_secstodate.
21447 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21448
21449 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21450 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21451 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21452
21453 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21454
21455 * posix/regcomp.c (init_word_char): Add comments.
21456
21457 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21458
21459 [BZ #22447]
21460 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21461 strlen to compute length of ut_user and set trailing NUL byte of
21462 result explicitly.
21463
21464 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21465
21466 [BZ #15537]
21467 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21468 using “copy "iso14651_t1"” and then implementing the
21469 collation rules for lv from CLDR on top of that.
21470 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21471 of locales to be built for testing.
21472 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21473 sorting.
21474
21475 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21476
21477 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21478 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21479 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21480 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21481 [__USE_MISC] (MADV_HWPOISON): New macro.
21482 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21483
21484 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21485
21486 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21487 -Wmissing-braces on GCC 4.9.
21488
21489 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21490
21491 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21492 * sysdeps/s390/s390-32/start.S (_start): Likewise
21493 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21494 (thread_start): Likewise.
21495 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21496 (thread_start): Likewise.
21497 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21498 (__makecontext_ret): Likewise.
21499 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21500 (__makecontext_ret): Likewise.
21501
21502 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21503
21504 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21505 __wcschrnul): Remove attribute_hidden.
21506
21507 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21508
21509 regex: don't assume uint64_t or uint32_t
21510 This avoids -Werror=overflow errors for 32-bit systems in
21511 the 64-bit case. Problem reported by Joseph Myers in:
21512 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21513 Also, when this code is used in Gnulib it ports to platforms
21514 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21515 them, and on some 32-bit compilers there is no uint64_t.
21516 Problem reported by Gianluigi Tiesi in:
21517 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21518 * posix/regcomp.c (init_word_char): Don't assume that the types
21519 uint64_t and uint32_t exist. Adapted from Gnulib patch
21520 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21521 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21522
21523 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21524
21525 * sysdeps/aarch64/memset-reg.h: New file.
21526 * sysdeps/aarch64/memset.S: Use it.
21527 (__memset): Rename to MEMSET macro.
21528 [ZVA_MACRO]: Use zva_macro.
21529 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21530 Add memset_generic and memset_falkor.
21531 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21532 (__libc_ifunc_impl_list): Add memset ifuncs.
21533 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21534 local variable zva_size.
21535 * sysdeps/aarch64/multiarch/memset.c: New file.
21536 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21537 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21538 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21539 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21540 (DCZID_DZP_MASK): New macro.
21541 (DCZID_BS_MASK): Likewise.
21542 (init_cpu_features): Read and set zva_size.
21543 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21544 (struct cpu_features): New member zva_size.
21545
21546 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21547 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21548 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21549
21550 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21551 backwards. Fix timing computation.
21552 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21553 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21554 on memset by N at a time. Fix timing computation.
21555
21556 2017-11-20 Florian Weimer <fweimer@redhat.com>
21557
21558 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21559 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21560
21561 2017-11-19 Florian Weimer <fweimer@redhat.com>
21562
21563 manual: Document mprotect
21564 * manual/memory.texi (Memory Protection): New section.
21565 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21566 documentation of PROT_* flags and reference the Memory Protection
21567 section instead.
21568
21569 2017-11-19 Florian Weimer <fweimer@redhat.com>
21570
21571 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21572 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21573 (Scatter-Gather): ... to here. Remove misleading comment.
21574
21575 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21576
21577 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21578 style.
21579
21580 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21581 when /proc/<pid>/setgroups does not exist.
21582
21583 2017-11-18 Florian Weimer <fweimer@redhat.com>
21584
21585 * sysdeps/unix/sysv/linux/tst-ttyname.c
21586 (become_root_in_mount_ns): Remove.
21587 (do_in_chroot_1): Call support_enter_mount_namespace.
21588 (do_in_chroot_2): Likewise.
21589 (do_test): Call support_become_root early.
21590
21591 2017-11-18 Florian Weimer <fweimer@redhat.com>
21592
21593 * support/namespace.h (support_enter_mount_namespace): Declare.
21594 * support/support_enter_mount_namespace.c: New file.
21595 * support/Makefile (libsupport-routines): Add
21596 support_enter_mount_namespace.
21597
21598 2017-11-18 Florian Weimer <fweimer@redhat.com>
21599
21600 * support/temp_file.c (support_create_temp_directory): Use
21601 test_dir and do not rely on the presence of the XXXXXX suffix.
21602 * support/temp_file.h (support_create_temp_directory): Update
21603 comment.
21604 * support/tst-xreadlink.c (do_test): Adjust.
21605 * support/support_chroot.c (support_chroot_create): Likewise.
21606
21607 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21608
21609 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21610 macro.
21611 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21612 htm-no-suspend.
21613
21614 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21615
21616 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21617 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21618 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21619 (ceill): Define using libm_alias_ldouble.
21620 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21621 <libm-alias-ldouble.h>.
21622 (copysignl): Define using libm_alias_ldouble.
21623 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21624 (fabsl): Define using libm_alias_ldouble.
21625 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21626 (floorl): Define using libm_alias_ldouble.
21627 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21628 (fmaxl): Define using libm_alias_ldouble.
21629 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21630 (fminl): Define using libm_alias_ldouble.
21631 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21632 (llrintl): Define using libm_alias_ldouble.
21633 (lrintl): Likewise.
21634 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21635 <libm-alias-ldouble.h>.
21636 (nearbyintl): Define using libm_alias_ldouble.
21637 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21638 (truncl): Define using libm_alias_ldouble.
21639 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21640 <libm-alias-ldouble.h>.
21641 (lrintl): Define using libm_alias_ldouble.
21642
21643 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21644 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21645 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21646 (asinhl): Define using libm_alias_ldouble.
21647 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21648 (atanl): Define using libm_alias_ldouble.
21649 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21650 (cbrtl): Define using libm_alias_ldouble.
21651 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21652 (ceill): Define using libm_alias_ldouble.
21653 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21654 (copysignl): Define using libm_alias_ldouble.
21655 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21656 (fabsl): Define using libm_alias_ldouble.
21657 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21658 (floorl): Define using libm_alias_ldouble.
21659 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21660 (fmaxl): Define using libm_alias_ldouble.
21661 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21662 (fminl): Define using libm_alias_ldouble.
21663 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21664 (frexpl): Define using libm_alias_ldouble.
21665 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21666 (llrintl): Define using libm_alias_ldouble.
21667 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21668 (logbl): Define using libm_alias_ldouble.
21669 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21670 (lrintl): Define using libm_alias_ldouble.
21671 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21672 (nearbyintl): Define using libm_alias_ldouble.
21673 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21674 (nextafterl): Define using libm_alias_ldouble.
21675 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21676 (remquol): Define using libm_alias_ldouble.
21677 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21678 (rintl): Define using libm_alias_ldouble.
21679 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21680 (truncl): Define using libm_alias_ldouble.
21681 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21682 (fmaxl): Define using libm_alias_ldouble.
21683 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21684 (fminl): Define using libm_alias_ldouble.
21685
21686 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21687 to C syntax instead of availability and properties of types.
21688 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21689 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21690 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21691 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21692 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21693 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21694
21695 2017-11-17 Florian Weimer <fweimer@redhat.com>
21696
21697 support_become_root: Enable file creation in namespaces.
21698 * support/support_become_root.c (setup_mapping): New function.
21699 (support_become_root): Call it.
21700
21701 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21702
21703 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21704 macro.
21705
21706 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21707
21708 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21709 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21710
21711 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21712
21713 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21714
21715 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21716 version to 4.14.
21717
21718 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21719
21720 * INSTALL: Fix botched up regeneration.
21721
21722 * NEWS: Update sourceare link to https.
21723 * configure.ac: Likewise.
21724 * crypt/md5test-giant.c: Likewise.
21725 * dlfcn/bug-atexit1.c: Likewise.
21726 * dlfcn/bug-atexit2.c: Likewise.
21727 * localedata/README: Likewise.
21728 * malloc/tst-mallocfork.c: Likewise.
21729 * manual/install.texi: Likewise.
21730 * nptl/tst-pthread-getattr.c: Likewise.
21731 * stdio-common/tst-fgets.c: Likewise.
21732 * stdio-common/tst-fwrite.c: Likewise.
21733 * sunrpc/Makefile: Likewise.
21734 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21735 * wcsmbs/tst-mbrtowc2.c: Likewise.
21736 * configure: Regenerate.
21737 * INSTALL: Regenerate.
21738
21739 2017-11-15 Martin Sebor <msebor@redhat.com>
21740
21741 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21742 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21743 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21744
21745 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21746
21747 [BZ #22145]
21748 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21749 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21750
21751 [BZ #22145]
21752 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21753 Defer is_pty check until end of the function.
21754 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21755
21756 [BZ #22145]
21757 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21758 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21759 (ttyname): Likewise.
21760 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21761 (__ttyname_r): Likewise.
21762
21763 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21764 int to bool.
21765
21766 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21767
21768 * manual/terminal.texi (Is It a Terminal):
21769 Mention ENODEV for ttyname and ttyname_r.
21770
21771 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21772
21773 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21774 constant and macro.
21775
21776 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21777 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21778 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21779 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21780 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21781 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21782
21783 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21784
21785 * signal/sigrelse.c (sigrelse): Optimize implementation.
21786
21787 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21788 (__sigpause): Rely on __sigsuspend to implement single thread
21789 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21790
21791 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21792
21793 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21794 kernel version to 4.14.
21795
21796 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21797
21798 [BZ #22442]
21799 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21800 Check if ifname is too long.
21801
21802 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21803
21804 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21805
21806 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21807
21808 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21809 was accidentally lost.
21810
21811 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21812
21813 * localedata/locales/az_IR: Add standard copyright header.
21814
21815 2017-11-15 Florian Weimer <fweimer@redhat.com>
21816
21817 [BZ #22439]
21818 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21819 not just the top one. Output a new "subheaps" statistic.
21820
21821 2017-11-15 Florian Weimer <fweimer@redhat.com>
21822
21823 [BZ #22408]
21824 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21825 under the per-arena lock.
21826 * malloc/Makefile (tests): Add tst-malloc_info.
21827 (tst-malloc_info): Link with libpthread.
21828 * malloc/tst-malloc_info.c: New file.
21829
21830 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21831
21832 [BZ #21660]
21833 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21834 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21835 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21836 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21837 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21838 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21839 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21840 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21841 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21842 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21843 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21844 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21845 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21847 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21849 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21850 (__floating_type): Likewise.
21851 (__real_integer_type): Likewise.
21852 (__complex_integer_type): Likewise.
21853 (__expr_is_real): Likewise.
21854 (__tgmath_real_type_sub): Likewise.
21855 (__tgmath_real_type): Likewise.
21856 (__tgmath_complex_type_sub): Likewise.
21857 (__tgmath_complex_type): Likewise.
21858 (__TGMATH_F128): Likewise.
21859 (__TGMATH_CF128): Likewise.
21860 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21861 new macros.
21862 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21863 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21864 Likewise.
21865 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21866 Likewise.
21867 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21868 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21869 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21870 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21871 Likewise.
21872 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21873 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21874 Likewise.
21875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21876 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21878 Likewise.
21879 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21880 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21881 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21882 (cimag): Likewise.
21883 (creal): Likewise.
21884
21885 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21886
21887 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21888 for stpncpy calls for GCC 8.
21889 (test_strncat): Disable -Wstringop-truncation warning for strncat
21890 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21891 strncat call for GCC 7.
21892 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21893 calls for GCC 8.
21894 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21895 trailing NUL.
21896
21897 * string/bug-strncat1.c: Include <libc-diag.h>.
21898 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21899
21900 2017-11-13 Claude Paroz <claude@2xlibre.net>
21901
21902 [BZ #22387]
21903 * localedata/locales/aa_DJ: Improved readibility by replacing
21904 <Uxxxx> sequences in the ASCII printable range by their ASCII
21905 character equivalents.
21906 * localedata/locales/aa_ER: Likewise.
21907 * localedata/locales/aa_ER@saaho: Likewise.
21908 * localedata/locales/aa_ET: Likewise.
21909 * localedata/locales/af_ZA: Likewise.
21910 * localedata/locales/agr_PE: Likewise.
21911 * localedata/locales/ak_GH: Likewise.
21912 * localedata/locales/am_ET: Likewise.
21913 * localedata/locales/anp_IN: Likewise.
21914 * localedata/locales/ar_AE: Likewise.
21915 * localedata/locales/ar_BH: Likewise.
21916 * localedata/locales/ar_DZ: Likewise.
21917 * localedata/locales/ar_EG: Likewise.
21918 * localedata/locales/ar_IN: Likewise.
21919 * localedata/locales/ar_IQ: Likewise.
21920 * localedata/locales/ar_JO: Likewise.
21921 * localedata/locales/ar_KW: Likewise.
21922 * localedata/locales/ar_LB: Likewise.
21923 * localedata/locales/ar_LY: Likewise.
21924 * localedata/locales/ar_MA: Likewise.
21925 * localedata/locales/ar_OM: Likewise.
21926 * localedata/locales/ar_QA: Likewise.
21927 * localedata/locales/ar_SA: Likewise.
21928 * localedata/locales/ar_SD: Likewise.
21929 * localedata/locales/ar_SS: Likewise.
21930 * localedata/locales/ar_SY: Likewise.
21931 * localedata/locales/ar_TN: Likewise.
21932 * localedata/locales/ar_YE: Likewise.
21933 * localedata/locales/as_IN: Likewise.
21934 * localedata/locales/ast_ES: Likewise.
21935 * localedata/locales/ayc_PE: Likewise.
21936 * localedata/locales/az_AZ: Likewise.
21937 * localedata/locales/az_IR: Likewise.
21938 * localedata/locales/be_BY: Likewise.
21939 * localedata/locales/be_BY@latin: Likewise.
21940 * localedata/locales/bem_ZM: Likewise.
21941 * localedata/locales/ber_DZ: Likewise.
21942 * localedata/locales/ber_MA: Likewise.
21943 * localedata/locales/bg_BG: Likewise.
21944 * localedata/locales/bhb_IN: Likewise.
21945 * localedata/locales/bho_IN: Likewise.
21946 * localedata/locales/bi_VU: Likewise.
21947 * localedata/locales/bn_BD: Likewise.
21948 * localedata/locales/bn_IN: Likewise.
21949 * localedata/locales/bo_CN: Likewise.
21950 * localedata/locales/bo_IN: Likewise.
21951 * localedata/locales/br_FR: Likewise.
21952 * localedata/locales/brx_IN: Likewise.
21953 * localedata/locales/bs_BA: Likewise.
21954 * localedata/locales/byn_ER: Likewise.
21955 * localedata/locales/ca_AD: Likewise.
21956 * localedata/locales/ca_ES: Likewise.
21957 * localedata/locales/ca_FR: Likewise.
21958 * localedata/locales/ca_IT: Likewise.
21959 * localedata/locales/ce_RU: Likewise.
21960 * localedata/locales/chr_US: Likewise.
21961 * localedata/locales/cmn_TW: Likewise.
21962 * localedata/locales/crh_UA: Likewise.
21963 * localedata/locales/cs_CZ: Likewise.
21964 * localedata/locales/csb_PL: Likewise.
21965 * localedata/locales/cv_RU: Likewise.
21966 * localedata/locales/cy_GB: Likewise.
21967 * localedata/locales/da_DK: Likewise.
21968 * localedata/locales/de_AT: Likewise.
21969 * localedata/locales/de_BE: Likewise.
21970 * localedata/locales/de_CH: Likewise.
21971 * localedata/locales/de_DE: Likewise.
21972 * localedata/locales/de_IT: Likewise.
21973 * localedata/locales/de_LI: Likewise.
21974 * localedata/locales/de_LU: Likewise.
21975 * localedata/locales/doi_IN: Likewise.
21976 * localedata/locales/dv_MV: Likewise.
21977 * localedata/locales/dz_BT: Likewise.
21978 * localedata/locales/el_CY: Likewise.
21979 * localedata/locales/el_GR: Likewise.
21980 * localedata/locales/en_AG: Likewise.
21981 * localedata/locales/en_AU: Likewise.
21982 * localedata/locales/en_BW: Likewise.
21983 * localedata/locales/en_CA: Likewise.
21984 * localedata/locales/en_DK: Likewise.
21985 * localedata/locales/en_GB: Likewise.
21986 * localedata/locales/en_HK: Likewise.
21987 * localedata/locales/en_IE: Likewise.
21988 * localedata/locales/en_IL: Likewise.
21989 * localedata/locales/en_IN: Likewise.
21990 * localedata/locales/en_NG: Likewise.
21991 * localedata/locales/en_NZ: Likewise.
21992 * localedata/locales/en_PH: Likewise.
21993 * localedata/locales/en_SG: Likewise.
21994 * localedata/locales/en_US: Likewise.
21995 * localedata/locales/en_ZA: Likewise.
21996 * localedata/locales/en_ZM: Likewise.
21997 * localedata/locales/en_ZW: Likewise.
21998 * localedata/locales/eo: Likewise.
21999 * localedata/locales/es_AR: Likewise.
22000 * localedata/locales/es_BO: Likewise.
22001 * localedata/locales/es_CL: Likewise.
22002 * localedata/locales/es_CO: Likewise.
22003 * localedata/locales/es_CR: Likewise.
22004 * localedata/locales/es_CU: Likewise.
22005 * localedata/locales/es_DO: Likewise.
22006 * localedata/locales/es_EC: Likewise.
22007 * localedata/locales/es_ES: Likewise.
22008 * localedata/locales/es_GT: Likewise.
22009 * localedata/locales/es_HN: Likewise.
22010 * localedata/locales/es_MX: Likewise.
22011 * localedata/locales/es_NI: Likewise.
22012 * localedata/locales/es_PA: Likewise.
22013 * localedata/locales/es_PE: Likewise.
22014 * localedata/locales/es_PR: Likewise.
22015 * localedata/locales/es_PY: Likewise.
22016 * localedata/locales/es_SV: Likewise.
22017 * localedata/locales/es_US: Likewise.
22018 * localedata/locales/es_UY: Likewise.
22019 * localedata/locales/es_VE: Likewise.
22020 * localedata/locales/et_EE: Likewise.
22021 * localedata/locales/eu_ES: Likewise.
22022 * localedata/locales/eu_ES@euro: Likewise.
22023 * localedata/locales/fa_IR: Likewise.
22024 * localedata/locales/ff_SN: Likewise.
22025 * localedata/locales/fi_FI: Likewise.
22026 * localedata/locales/fil_PH: Likewise.
22027 * localedata/locales/fo_FO: Likewise.
22028 * localedata/locales/fr_BE: Likewise.
22029 * localedata/locales/fr_CA: Likewise.
22030 * localedata/locales/fr_CH: Likewise.
22031 * localedata/locales/fr_FR: Likewise.
22032 * localedata/locales/fr_LU: Likewise.
22033 * localedata/locales/fur_IT: Likewise.
22034 * localedata/locales/fy_DE: Likewise.
22035 * localedata/locales/fy_NL: Likewise.
22036 * localedata/locales/ga_IE: Likewise.
22037 * localedata/locales/gd_GB: Likewise.
22038 * localedata/locales/gez_ER: Likewise.
22039 * localedata/locales/gez_ET: Likewise.
22040 * localedata/locales/gl_ES: Likewise.
22041 * localedata/locales/gu_IN: Likewise.
22042 * localedata/locales/gv_GB: Likewise.
22043 * localedata/locales/ha_NG: Likewise.
22044 * localedata/locales/hak_TW: Likewise.
22045 * localedata/locales/he_IL: Likewise.
22046 * localedata/locales/hi_IN: Likewise.
22047 * localedata/locales/hif_FJ: Likewise.
22048 * localedata/locales/hne_IN: Likewise.
22049 * localedata/locales/hr_HR: Likewise.
22050 * localedata/locales/hsb_DE: Likewise.
22051 * localedata/locales/ht_HT: Likewise.
22052 * localedata/locales/hu_HU: Likewise.
22053 * localedata/locales/hy_AM: Likewise.
22054 * localedata/locales/i18n: Likewise.
22055 * localedata/locales/ia_FR: Likewise.
22056 * localedata/locales/id_ID: Likewise.
22057 * localedata/locales/ig_NG: Likewise.
22058 * localedata/locales/ik_CA: Likewise.
22059 * localedata/locales/is_IS: Likewise.
22060 * localedata/locales/it_CH: Likewise.
22061 * localedata/locales/it_IT: Likewise.
22062 * localedata/locales/iu_CA: Likewise.
22063 * localedata/locales/ja_JP: Likewise.
22064 * localedata/locales/ka_GE: Likewise.
22065 * localedata/locales/kk_KZ: Likewise.
22066 * localedata/locales/kl_GL: Likewise.
22067 * localedata/locales/kn_IN: Likewise.
22068 * localedata/locales/ko_KR: Likewise.
22069 * localedata/locales/kok_IN: Likewise.
22070 * localedata/locales/ks_IN: Likewise.
22071 * localedata/locales/ks_IN@devanagari: Likewise.
22072 * localedata/locales/ku_TR: Likewise.
22073 * localedata/locales/kw_GB: Likewise.
22074 * localedata/locales/ky_KG: Likewise.
22075 * localedata/locales/lb_LU: Likewise.
22076 * localedata/locales/lg_UG: Likewise.
22077 * localedata/locales/li_BE: Likewise.
22078 * localedata/locales/li_NL: Likewise.
22079 * localedata/locales/lij_IT: Likewise.
22080 * localedata/locales/ln_CD: Likewise.
22081 * localedata/locales/lo_LA: Likewise.
22082 * localedata/locales/lt_LT: Likewise.
22083 * localedata/locales/lv_LV: Likewise.
22084 * localedata/locales/lzh_TW: Likewise.
22085 * localedata/locales/mag_IN: Likewise.
22086 * localedata/locales/mai_IN: Likewise.
22087 * localedata/locales/mg_MG: Likewise.
22088 * localedata/locales/mhr_RU: Likewise.
22089 * localedata/locales/mi_NZ: Likewise.
22090 * localedata/locales/mk_MK: Likewise.
22091 * localedata/locales/ml_IN: Likewise.
22092 * localedata/locales/mn_MN: Likewise.
22093 * localedata/locales/mni_IN: Likewise.
22094 * localedata/locales/mr_IN: Likewise.
22095 * localedata/locales/ms_MY: Likewise.
22096 * localedata/locales/mt_MT: Likewise.
22097 * localedata/locales/my_MM: Likewise.
22098 * localedata/locales/nan_TW: Likewise.
22099 * localedata/locales/nan_TW@latin: Likewise.
22100 * localedata/locales/nb_NO: Likewise.
22101 * localedata/locales/nds_DE: Likewise.
22102 * localedata/locales/nds_NL: Likewise.
22103 * localedata/locales/ne_NP: Likewise.
22104 * localedata/locales/nhn_MX: Likewise.
22105 * localedata/locales/niu_NU: Likewise.
22106 * localedata/locales/niu_NZ: Likewise.
22107 * localedata/locales/nl_AW: Likewise.
22108 * localedata/locales/nl_BE: Likewise.
22109 * localedata/locales/nl_NL: Likewise.
22110 * localedata/locales/nn_NO: Likewise.
22111 * localedata/locales/nr_ZA: Likewise.
22112 * localedata/locales/nso_ZA: Likewise.
22113 * localedata/locales/oc_FR: Likewise.
22114 * localedata/locales/om_ET: Likewise.
22115 * localedata/locales/om_KE: Likewise.
22116 * localedata/locales/or_IN: Likewise.
22117 * localedata/locales/os_RU: Likewise.
22118 * localedata/locales/pa_IN: Likewise.
22119 * localedata/locales/pa_PK: Likewise.
22120 * localedata/locales/pap_AW: Likewise.
22121 * localedata/locales/pap_CW: Likewise.
22122 * localedata/locales/pl_PL: Likewise.
22123 * localedata/locales/ps_AF: Likewise.
22124 * localedata/locales/pt_BR: Likewise.
22125 * localedata/locales/pt_PT: Likewise.
22126 * localedata/locales/quz_PE: Likewise.
22127 * localedata/locales/raj_IN: Likewise.
22128 * localedata/locales/ro_RO: Likewise.
22129 * localedata/locales/ru_RU: Likewise.
22130 * localedata/locales/ru_UA: Likewise.
22131 * localedata/locales/rw_RW: Likewise.
22132 * localedata/locales/sa_IN: Likewise.
22133 * localedata/locales/sat_IN: Likewise.
22134 * localedata/locales/sc_IT: Likewise.
22135 * localedata/locales/sd_IN: Likewise.
22136 * localedata/locales/sd_IN@devanagari: Likewise.
22137 * localedata/locales/se_NO: Likewise.
22138 * localedata/locales/sgs_LT: Likewise.
22139 * localedata/locales/shs_CA: Likewise.
22140 * localedata/locales/si_LK: Likewise.
22141 * localedata/locales/sid_ET: Likewise.
22142 * localedata/locales/sk_SK: Likewise.
22143 * localedata/locales/sl_SI: Likewise.
22144 * localedata/locales/sm_WS: Likewise.
22145 * localedata/locales/so_DJ: Likewise.
22146 * localedata/locales/so_ET: Likewise.
22147 * localedata/locales/so_KE: Likewise.
22148 * localedata/locales/so_SO: Likewise.
22149 * localedata/locales/sq_AL: Likewise.
22150 * localedata/locales/sq_MK: Likewise.
22151 * localedata/locales/sr_ME: Likewise.
22152 * localedata/locales/sr_RS: Likewise.
22153 * localedata/locales/sr_RS@latin: Likewise.
22154 * localedata/locales/ss_ZA: Likewise.
22155 * localedata/locales/st_ZA: Likewise.
22156 * localedata/locales/sv_FI: Likewise.
22157 * localedata/locales/sv_SE: Likewise.
22158 * localedata/locales/sw_KE: Likewise.
22159 * localedata/locales/sw_TZ: Likewise.
22160 * localedata/locales/szl_PL: Likewise.
22161 * localedata/locales/ta_IN: Likewise.
22162 * localedata/locales/ta_LK: Likewise.
22163 * localedata/locales/tcy_IN: Likewise.
22164 * localedata/locales/te_IN: Likewise.
22165 * localedata/locales/tg_TJ: Likewise.
22166 * localedata/locales/th_TH: Likewise.
22167 * localedata/locales/the_NP: Likewise.
22168 * localedata/locales/ti_ER: Likewise.
22169 * localedata/locales/ti_ET: Likewise.
22170 * localedata/locales/tig_ER: Likewise.
22171 * localedata/locales/tk_TM: Likewise.
22172 * localedata/locales/tl_PH: Likewise.
22173 * localedata/locales/tn_ZA: Likewise.
22174 * localedata/locales/to_TO: Likewise.
22175 * localedata/locales/tpi_PG: Likewise.
22176 * localedata/locales/tr_CY: Likewise.
22177 * localedata/locales/tr_TR: Likewise.
22178 * localedata/locales/ts_ZA: Likewise.
22179 * localedata/locales/tt_RU: Likewise.
22180 * localedata/locales/tt_RU@iqtelif: Likewise.
22181 * localedata/locales/ug_CN: Likewise.
22182 * localedata/locales/uk_UA: Likewise.
22183 * localedata/locales/unm_US: Likewise.
22184 * localedata/locales/ur_IN: Likewise.
22185 * localedata/locales/ur_PK: Likewise.
22186 * localedata/locales/uz_UZ: Likewise.
22187 * localedata/locales/uz_UZ@cyrillic: Likewise.
22188 * localedata/locales/ve_ZA: Likewise.
22189 * localedata/locales/vi_VN: Likewise.
22190 * localedata/locales/wa_BE: Likewise.
22191 * localedata/locales/wae_CH: Likewise.
22192 * localedata/locales/wal_ET: Likewise.
22193 * localedata/locales/wo_SN: Likewise.
22194 * localedata/locales/xh_ZA: Likewise.
22195 * localedata/locales/yi_US: Likewise.
22196 * localedata/locales/yo_NG: Likewise.
22197 * localedata/locales/yue_HK: Likewise.
22198 * localedata/locales/yuw_PG: Likewise.
22199 * localedata/locales/zh_CN: Likewise.
22200 * localedata/locales/zh_HK: Likewise.
22201 * localedata/locales/zh_SG: Likewise.
22202 * localedata/locales/zh_TW: Likewise.
22203 * localedata/locales/zu_ZA: Likewise.
22204
22205 2017-11-13 Florian Weimer <fweimer@redhat.com>
22206
22207 * support/next_to_fault.h, support/next_to_fault.c: New files.
22208 * support/Makefile (libsupport-routines): Add next_to_fault.
22209 * resolv/tst-inet_pton.c (struct next_to_fault)
22210 (next_to_fault_allocate, next_to_fault_free): Remove.
22211 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22212
22213 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22214
22215 * elf/dl-support.c: Include <dl-procruntime.c>.
22216 * include/link.h: Include <link_map.h>.
22217 * sysdeps/generic/dl-procruntime.c: New file.
22218 * sysdeps/generic/link_map.h: Likewise.
22219 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22220 the writable ld.so namespace.
22221
22222 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22223
22224 timezone: pacify GCC -Wstringop-truncation
22225 Problem reported by Martin Sebor in:
22226 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22227 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22228
22229 2017-11-12 Florian Weimer <fweimer@redhat.com>
22230
22231 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22232 tst-xreadlink.
22233 (tests): Add tst-xreadlink.
22234 * support/support.h (xstrndup): Declare.
22235 * support/xunistd.h (xunlink, xreadlink): Declare.
22236 * support/temp_file.h (support_create_temp_directory): Declare.
22237 * support/temp_file.c (support_create_temp_directory): New function.
22238 * support/support_chroot.c (support_chroot_create): Use it.
22239 * support/xreadlink.c: New file.
22240 * support/xstrndup.c: Likewise.
22241 * support/xunlink.c: Likewise.
22242 * support/tst-xreadlink.c: Likewise.
22243
22244 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22245
22246 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22247
22248 2017-11-11 Florian Weimer <fweimer@redhat.com>
22249
22250 [BZ #22409]
22251 [BZ #22412]
22252 * resolv/res_comp.c (printable_string, binary_hnok)
22253 (binary_leading_dash): New functions.
22254 (res_hnok): Reimplement using these functions and ns_name_pton.
22255 (res_ownok): Likewise.
22256 (res_mailok): Reimplement using printable_string, ns_name_pton and
22257 binary_hnok.
22258 (res_dnok): Reimplement using printable_string and ns_name_pton.
22259 * resolv/tst-res_hnok.c (tests): Add additional tests.
22260 (LETTERDIGITS, PRINTABLE): Define.
22261 (do_test): Adjust one_char results.
22262
22263 2017-11-11 Florian Weimer <fweimer@redhat.com>
22264
22265 [BZ #22413]
22266 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22267 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22268
22269 2017-11-11 Florian Weimer <fweimer@redhat.com>
22270
22271 * resolv/tst-ns_name_pton.c: New file.
22272 * resolv/Makefile (tests): Add tst-ns_name_pton.
22273 (tst-ns_name_pton): Link against libresolv.
22274
22275 2017-11-11 Florian Weimer <fweimer@redhat.com>
22276
22277 * resolv/tst-res_hnok.c: New file.
22278 * resolv/Makefile (tests): Add tst-res_hnok.
22279 (tst-res_hnok): Link against libresolv.
22280
22281 2017-11-11 Florian Weimer <fweimer@redhat.com>
22282
22283 * resolv/tst-resolv-network.c: Use test framework instead explicit
22284 main function.
22285
22286 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22287
22288 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22289 <jmp_buf-macros.h>.
22290 [!_ISOMAC] (STR_HELPER): New.
22291 [!_ISOMAC] (STR): Likewise.
22292 [!_ISOMAC] (TEST_SIZE): Likewise.
22293 [!_ISOMAC] (TEST_ALIGN): Likewise.
22294 [!_ISOMAC] (TEST_OFFSET): Likewise.
22295 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22296 field offsets of jmp_buf as well as sigjmp_buf.
22297 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22298 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22299 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22300 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22301 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22302 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22303 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22304 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22305 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22306 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22307 Likewise.
22308 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22309 Likewise.
22310 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22312 Likewise.
22313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22314 Likewise.
22315 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22316 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22317 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22318 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22319 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22320 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22321 Likewise.
22322 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22323 Likewise.
22324 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22325 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22326 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22327
22328 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22329
22330 * include/float.h
22331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22332 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22334 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22336 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22337 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22338 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22339 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22340 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22341 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22342 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22343 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22344 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22345 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22346 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22347 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22348 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22349 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22350 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22351 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22352 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22354 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22356 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22358 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22360 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22362 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22364 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22366 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22368 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22369 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22370 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22371 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22372 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22373 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22374 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22376 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22378 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22380 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22382 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22384 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22386 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22388 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22390 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22392 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22394 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22396 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22398 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22400 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22402 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22404 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22406 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22408 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22410 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22412 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22414 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22415 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22416 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22417 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22418 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22419
22420 * stdlib/tst-strtod.h (F16): New macro.
22421 (F32): Likewise.
22422 (F64): Likewise.
22423 (F32X): Likewise.
22424 (F64X): Likewise.
22425 (F128X): Likewise.
22426 (IF_FLOAT16): Likewise.
22427 (IF_FLOAT32): Likewise.
22428 (IF_FLOAT64): Likewise.
22429 (IF_FLOAT32X): Likewise.
22430 (IF_FLOAT64X): Likewise.
22431 (IF_FLOAT128X): Likewise.
22432 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22433 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22434 (STRTOD_TEST_FOREACH): Likewise.
22435 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22436 (CHOOSE_f64): Likewise.
22437 (CHOOSE_f32x): Likewise.
22438 (CHOOSE_f64x): Likewise.
22439
22440 2017-11-07 Andreas Schwab <schwab@suse.de>
22441
22442 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22443
22444 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22445
22446 [BZ #22403]
22447 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22448 to be escaped.
22449 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22450 to be escaped.
22451
22452 2017-11-07 Claude Paroz <claude@2xlibre.net>
22453
22454 [BZ #22403]
22455 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22456 to be escaped.
22457 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22458 to be escaped.
22459 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22460 to be escaped.
22461
22462 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22463
22464 [BZ #22298]
22465 * nptl/allocatestack.c (allocate_stack): Check if
22466 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22467 __PTHREAD_MUTEX_HAVE_PREV is defined.
22468 * nptl/descr.h (pthread): Likewise.
22469 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22470 Likewise.
22471 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22472 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22473 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22474 * sysdeps/nptl/bits/thread-shared-types.h
22475 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22476 defines.
22477 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22478 of __WORDSIZE for internal layout.
22479 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22480 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22481 instead of __WORDSIZE whether to use an union for __spins and __list
22482 fields.
22483 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22484 case.
22485 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22486 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22487 defines.
22488 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22489 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22490 Likewise.
22491 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22492 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22493 Likewise.
22494 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22495 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22496 Likewise.
22497 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22498 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22499 Likewise.
22500 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22501 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22502 Likewise.
22503 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22504 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22505 Likewise.
22506 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22507 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22508 Likewise.
22509 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22510 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22511 Likewise.
22512 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22513 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22514 Likewise.
22515 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22516 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22517 Likewise.
22518 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22519 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22520 Likewise.
22521 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22522 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22523 Likewise.
22524 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22525 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22526 Likewise.
22527 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22528 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22529 Likewise.
22530
22531 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22532 New macros.
22533 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22534 checks for expected input type size.
22535 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22536 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22537 Likewise.
22538 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22539 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22540 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22541 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22542 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22543 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22544 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22545 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22546 superflous runtime assert check.
22547 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22548 Likewise.
22549 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22550 Likewise.
22551 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22552 Likewise.
22553 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22554 Likewise.
22555 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22556 Likewise.
22557 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22558 Likewise.
22559 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22560 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22561 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22562 Likewise.
22563 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22564 Likewise.
22565 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22566 Likewise.
22567 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22568 Likewise.
22569 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22570 Likewise.
22571 * nptl/pthread_attr_setinheritsched.c
22572 (__pthread_attr_setinheritsched): Likewise.
22573 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22574 Likewise.
22575 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22576 Likewise.
22577 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22578 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22579 __old_pthread_attr_setstack): Likewise.
22580 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22581 Likewise.
22582 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22583 Likewise.
22584 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22585 Likewise.
22586 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22587 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22588 Likewise.
22589 * nptl/tst-typesizes.c: Remove file.
22590
22591 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22592 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22593 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22594 checks for internal pthread_mutex_t offsets.
22595 * sysdeps/aarch64/nptl/pthread-offsets.h
22596 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22597 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22598 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22599 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22600 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22601 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22602 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22603 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22604 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22605 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22606 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22607 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22608 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22609 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22610 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22611 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22612 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22613 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22614
22615 2017-11-07 Florian Weimer <fweimer@redhat.com>
22616
22617 * bits/mman-linux.h: Move ...
22618 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22619 comment.
22620 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22621 outdated comment.
22622
22623 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22624
22625 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22626 Redefine STRNLEN as __strnlen_power8.
22627
22628 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22629
22630 * signal/sighold.c (sighold): Optimize implementation.
22631
22632 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22633 __NR_rt_sigqueueinfo.
22634
22635 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22636 __sigtimedwait.
22637 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22638 assume __NR_rt_sigtimedwait.
22639 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22640 and add LIBC_CANCEL_HANDLED for cancellation marking.
22641 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22642
22643 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22644 (sysdeps_routines): Add memchr_noneon.
22645 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22646 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22647 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22648 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22649 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22650 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22651 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22652
22653 * sysdeps/arm/arm-ifunc.h: New file.
22654 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22655 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22656 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22657 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22658 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22659 (__memcpy_neon): Avoid create hidden alias.
22660 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22661 (__memcpy_vfp): Likewise.
22662 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22663 (sysdep_routines): Add memcpy_arm.
22664 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22665
22666 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22667
22668 [BZ #22362]
22669 * Makerules (make-link-multidir): New.
22670 * config.make.in (multidir): New.
22671 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22672 * configure: Regenerated.
22673 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22674 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22675 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22676 New target.
22677
22678 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22679
22680 [BZ #22402]
22681 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22682 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22683
22684 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22685
22686 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22687 to be escaped.
22688
22689 2017-11-04 Florian Weimer <fweimer@redhat.com>
22690
22691 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22692
22693 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22694
22695 * math/math.h [__HAVE_DISTINCT_FLOAT16
22696 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22697 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22698 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22699 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22700 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22701 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22702 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22703 (__MATH_TG_F32): New macro.
22704 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22705 (__MATH_TG_F64X): Likewise.
22706 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22707 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22708
22709 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22710
22711 * po/de.po: Update translations.
22712 * po/ru.po: Likewise.
22713
22714 2017-11-03 Florian Weimer <fweimer@redhat.com>
22715
22716 * manual/filesys.texi (Hard Links): Document linkat.
22717
22718 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22719
22720 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22721 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22722 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22723 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22724 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22725 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22726 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22727 the same as _Float128.
22728 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22729 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22730 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22731
22732 * stdlib/stdlib.h
22733 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22734 Declare.
22735 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22736 Likewise.
22737 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22738 Likewise.
22739 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22740 (strtof32x): Likewise.
22741 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22742 (strtof64x): Likewise.
22743 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22744 (strtof128x): Likewise.
22745 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22746 (strfromf16): Likewise.
22747 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22748 (strfromf32): Likewise.
22749 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22750 (strfromf64): Likewise.
22751 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22752 (strfromf32x): Likewise.
22753 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22754 (strfromf64x): Likewise.
22755 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22756 (strfromf128x): Likewise.
22757 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22758 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22759 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22760 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22761 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22762 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22763
22764 2017-11-03 Richard Henderson <rth@twiddle.net>
22765
22766 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22767
22768 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22769
22770 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22771
22772 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22773
22774 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22775 DT_TLSDESC_GOT initialization.
22776 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22777 (_dl_tlsdesc_resolve_hold): Likewise.
22778 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22779 (_dl_tlsdesc_resolve_hold): Likewise.
22780 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22781 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22782
22783 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22784
22785 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22786
22787 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22788
22789 [BZ #18572]
22790 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22791 non-lazily for R_ARM_TLS_DESC.
22792
22793 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22794
22795 [BZ #17078]
22796 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22797 R_ARM_TLS_DESC case.
22798 (elf_machine_lazy_rel): Remove the prelink check.
22799
22800 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22801
22802 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22803 DT_TLSDESC_GOT initialization.
22804 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22805 (_dl_tlsdesc_resolve_rela): Likewise.
22806 (_dl_tlsdesc_resolve_hold): Likewise.
22807 (_dl_tlsdesc_undefweak): Remove ldar.
22808 (_dl_tlsdesc_dynamic): Likewise.
22809 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22810 (_dl_tlsdesc_resolve_rela): Likewise.
22811 (_dl_tlsdesc_resolve_hold): Likewise.
22812 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22813 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22814 (_dl_tlsdesc_resolve_rela): Likewise.
22815 (_dl_tlsdesc_resolve_hold): Likewise.
22816
22817 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22818
22819 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22820 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22821
22822 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22823
22824 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22825 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22826
22827 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22828
22829 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22830 Declare.
22831 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22832 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22833 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22834 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22835 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22836 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22837 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22838 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22839 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22840 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22841 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22842
22843 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22844
22845 [BZ #22382]
22846 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22847 * localedata/locales/tpi_PG: Add standard header.
22848
22849 2017-11-02 Florian Weimer <fweimer@redhat.com>
22850
22851 test-errno-linux: quotactl can fail with EPERM in containers.
22852 * sysdeps/unix/sysv/linux/test-errno-linux.c
22853 (LIST, LIST_FORWARD): New macros.
22854 (check_error_in_list): New function.
22855 (test_wrp_rv): Accept list of permitted error codes.
22856 (test_wrp_rv2): Remove.
22857 (test_wrp): Call test_wrp_rv with list of error codes.
22858 (test_wrp2): Accept list of error codes.
22859 (do_test): Adjust. Allow EPERM for quotactl.
22860
22861 2017-11-02 Florian Weimer <fweimer@redhat.com>
22862
22863 * stdio-common/bug16.c (do_test): Use array_length.
22864 * stdio-common/errlist.c (_sys_nerr): Likewise.
22865 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22866 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22867 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22868 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22869 (do_test): Use array_length.
22870 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22871 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22872 * stdio-common/tst-printf-round.c (do_test): Likewise.
22873 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22874 (CHECK): Use array_length.
22875 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22876 * stdio-common/tstscanf.c (main): Likewise.
22877 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22878
22879 2017-11-02 Florian Weimer <fweimer@redhat.com>
22880
22881 Add array_length and array_end macros.
22882 * include/array_length.h: New file.
22883
22884 2017-11-02 Florian Weimer <fweimer@redhat.com>
22885
22886 [BZ #22332]
22887 * posix/tst-glob-tilde.c (do_noescape): New variable.
22888 (one_test): Process it.
22889 (do_test): Set do_noescape. Add unescaping test case.
22890
22891 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22892
22893 * math/complex.h
22894 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22895 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22896 with appropriate macros defined and undefined.
22897 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22898 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22899 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22900 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22901 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22902 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22903 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22904 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22905 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22906 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22907
22908 * math/complex.h
22909 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22910 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22911 that for long double. Do not condition define and undefine of
22912 _Mdouble_complex_ on [__CFLOAT128].
22913
22914 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22915
22916 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22917 of <sysdeps/generic/sysdep.h>.
22918 (ALIGNARG): Removed.
22919 (ASM_SIZE_DIRECTIVE): Likewise.
22920 (ENTRY): Likewise.
22921 (END): Likewise.
22922 (ENTRY_CHK): Likewise.
22923 (END_CHK): Likewise.
22924 (syscall_error): Likewise.
22925 (mcount): Likewise.
22926 (PSEUDO_END): Likewise.
22927 (L): Likewise.
22928 (atom_text_section): Likewise.
22929 * sysdeps/x86/sysdep.h: New file.
22930 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22931 of <sysdeps/generic/sysdep.h>.
22932 (ALIGNARG): Removed.
22933 (ASM_SIZE_DIRECTIVE): Likewise.
22934 (ENTRY): Likewise.
22935 (END): Likewise.
22936 (ENTRY_CHK): Likewise.
22937 (END_CHK): Likewise.
22938 (syscall_error): Likewise.
22939 (mcount): Likewise.
22940 (PSEUDO_END): Likewise.
22941 (L): Likewise.
22942 (atom_text_section): Likewise.
22943
22944 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22945
22946 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22947 category of LC_CTYPE set to "i18n:2012".
22948 * localedata/locales/i18n_ctype: Regenerate.
22949
22950 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22951
22952 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22953 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22954 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22955 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22956
22957 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22958 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22959 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22960 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22961
22962 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22963
22964 * math/complex.h
22965 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22966 New macro.
22967 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22968 Likewise.
22969 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22970 Likewise.
22971 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22972 (CMPLXF32X): Likewise.
22973 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22974 (CMPLXF64X): Likewise.
22975 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22976 (CMPLXF128X): Likewise.
22977
22978 * math/math.h
22979 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22980 (__MATH_EVAL_FMT2): Define to add 0.0f.
22981
22982 2017-10-31 Alan Modra <amodra@gmail.com>
22983
22984 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22985 include sysdep.h.
22986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23042 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23055
23056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23057 include sysdep.h and math_ldbl_opt.h.
23058
23059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23060 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23083 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23085
23086 2017-10-31 Alan Modra <amodra@gmail.com>
23087
23088 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23089 string/strncase_l.c, not string/strncase.c.
23090 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23091 (libc_hidden_def): Redefine.
23092
23093 2017-10-31 Alan Modra <amodra@gmail.com>
23094
23095 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23096 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23097 (__strcasecmp): Don't define.
23098
23099 2017-10-31 Alan Modra <amodra@gmail.com>
23100
23101 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23102 IS_IN (libc).
23103 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23104 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23105 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23106
23107 2017-10-31 Alan Modra <amodra@gmail.com>
23108
23109 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23110 USE_AS_STPNCPY.
23111
23112 2017-10-31 Alan Modra <amodra@gmail.com>
23113
23114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23115 Redefine only when SHARED.
23116
23117 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23118
23119 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23120 Include <bits/math-finite.h> with appropriate macros defined and
23121 undefined.
23122 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23123 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23124 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23125 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23126 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23127
23128 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23129 [!_Mlong_double_] (_Mlong_double_): Likewise.
23130 [!_Mfloat16_] (_Mfloat16_): Likewise.
23131 [!_Mfloat32_] (_Mfloat32_): Likewise.
23132 [!_Mfloat64_] (_Mfloat64_): Likewise.
23133 [!_Mfloat128_] (_Mfloat128_): Likewise.
23134 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23135 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23136 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23137 (_Mdouble_): Define without indirection through those macros.
23138 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23139 [!_Mfloat128_] (_Mfloat128_): Likewise.
23140 [_Mlong_double_] (_Mlong_double_): Likewise.
23141 (_Mdouble_): Define without indirection through those macros.
23142 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23143 not add -D_Mlong_double_=double.
23144 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23145 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23146
23147 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23148
23149 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23150
23151 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23152
23153 * sysdeps/x86/libc-start.c: Reformat.
23154
23155 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23156
23157 [BZ #22353]
23158 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23159 (1): Renamed to ...
23160 (L(Src0)): This.
23161 (L(Src1)): New.
23162 (L(Src2)): Likewise.
23163 (L(1)): Renamed to ...
23164 (L(Src3)): This.
23165
23166 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23167
23168 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23169 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23170 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23171 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23172 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23173 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23174 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23175 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23176 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23177 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23178 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23179 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23180 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23181 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23182 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23183 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23184 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23185 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23186 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23187 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23188 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23189 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23190 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23191 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23192 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23193 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23194 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23195 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23196 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23197 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23198 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23199 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23200 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23201 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23202 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23203 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23204 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23205 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23206 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23207 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23208 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23209 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23210 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23211 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23212 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23213 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23214 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23215 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23216 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23217 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23218 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23219 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23220 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23221 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23222 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23223 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23224 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23225 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23226 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23227 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23228 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23229 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23230 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23231 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23232 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23233 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23234
23235 2017-10-30 Florian Weimer <fweimer@redhat.com>
23236
23237 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23238 always defined.
23239 * io/tst-mkdirat.c (do_test): Likewise.
23240 * io/tst-mkfifoat.c (do_test): Likewise.
23241 * io/tst-mknodat.c (do_test): Likewise.
23242 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23243 * locale/programs/locale.c (select_dirs): Likewise.
23244 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23245 * posix/bug-glob2.c (my_readdir): Likewise.
23246 * posix/tst-dir.c (main): Likewise.
23247 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23248 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23249
23250 2017-10-30 Florian Weimer <fweimer@redhat.com>
23251
23252 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23253 just __USE_GNU.
23254
23255 2017-10-30 Florian Weimer <fweimer@redhat.com>
23256
23257 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23258 Convert to support/test-driver.c.
23259 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23260 New macro parameters.
23261 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23262 * posix/tst-gnuglob.c: New file.
23263 * posix/tst-gnuglob64.c: Likewise.
23264 * posix/Makefile (tests): Add tst-gnuglob64.
23265
23266 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23267
23268 [BZ #19485]
23269 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23270 and use a better translation for March in “mon”.
23271 * localedata/locales/csb_PL: Use more ASCII to improve the
23272 readability of the source.
23273
23274 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23275
23276 [BZ #13953]
23277 * localedata/locales/km_KH: Use ASCII as much
23278 as possible for better readability of the source and
23279 remove useless comments.
23280 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23281 was commented out and apparently wrong anyway because it was
23282 using Lao characters. If Buddhist era should be used
23283 for km_KH, a native speaker should write the correct formaat
23284 for Khmer.
23285 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23286 (According to CLDR, the first weekday for Cambodia is Sunday).
23287 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23288 (These were using Lao characters which must be wrong. If we get
23289 the correct data from a native speaker, we could add it back, until
23290 then it is better not to have name_mr and name_mrs at all than
23291 having it wrong).
23292
23293 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23294
23295 * locale/loadlocale.c: Correct size of
23296 _nl_value_type_LC_<category> arrays.
23297
23298 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23299
23300 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23301 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23302 with appropriate macros defined and undefined.
23303 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23304 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23305 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23306 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23307 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23308
23309 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23310
23311 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23312 "-O2 -march=i586".
23313
23314 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23315
23316 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23317 with lowercase letters to make it agree with CLDR.
23318
23319 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23320
23321 [BZ #15260]
23322 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23323 first letters of yesstr and nostr in yesexpr and noexpr,
23324 not for the full words.
23325 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23326 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23327 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23328 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23329 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23330 first letters of yesstr and nostr in yesexpr and noexpr,
23331 until now only English was matched in yesexpr and noexpr.
23332 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23333 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23334 fil but not for tl. As tl and fil are very similar, using fil
23335 is probably better than using English.
23336
23337 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23338
23339 [BZ #21706]
23340 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23341 in yesstr and nostr.
23342
23343 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23344
23345 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23346 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23347 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23348 Likewise.
23349 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23350 Likewise.
23351 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23352 Likewise.
23353 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23354 Likewise.
23355 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23356 (SNANF128X): Likewise.
23357
23358 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23359 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23360 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23361 (HUGE_VAL_F32): Likewise.
23362 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23363 (HUGE_VAL_F64): Likewise.
23364 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23365 (HUGE_VAL_F32X): Likewise.
23366 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23367 (HUGE_VAL_F64X): Likewise.
23368 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23369 (HUGE_VAL_F128X): Likewise.
23370
23371 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23372
23373 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23374 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23375 for the br_FR locale.
23376
23377 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23378
23379 [BZ #21706]
23380 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23381
23382 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23383
23384 * locale/programs/record-status.h: Define globals, and function
23385 prototypes. Move function bodies...
23386 * locale/programs/record-status.c: ... to here. New file.
23387 * iconv/Makefile (iconv_prog-modules): Add record-status.
23388 * locale/Makefile (lib-modules): Likewise.
23389 * iconv/iconv_prog.c: Remove verbose.
23390 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23391 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23392 record a warning about ASCII compatibility.
23393 * locale/programs/ld-monetary.c (monetary_finish): If
23394 warn_int_curr_symbol is true then record a warning about the symbol
23395 not being in our ISO 4217 list.
23396 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23397 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23398 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23399 (OPT_NO_WARN): Define.
23400 (OPT_WARN): Define.
23401 (options): Add entry for --no-warnings, and --warnings.
23402 (set_warnings): New function to enable/disable warnings.
23403 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23404 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23405 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23406 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23407 Pass flags to generate_locale.
23408 (generate_locale): Accept new flag argument and pass it to localedef
23409 invocation.
23410 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23411 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23412
23413 * localedata/Makefile (test-input-data): Use full file name.
23414 * localedata/da_DK.in: Rename to...
23415 * localedata/da_DK.ISO-8859-1.in: ...this.
23416 * localedata/de_DE.in: Rename to...
23417 * localedata/de_DE.ISO-8859-1.in: ...this.
23418 * localedata/en_US.in: Rename to...
23419 * localedata/en_US.ISO-8859-1.in: ...this.
23420 * localedata/fr_FR.in: Rename to...
23421 * localedata/fr_FR.UTF-8.in: ... this.
23422 * localedata/hr_HR.in: Rename to...
23423 * localedata/hr_HR.ISO-8859-2.in: ...this.
23424 * localedata/hu_HU.in: Rename to...
23425 * localedata/hu_HU.UTF-8.in: ...this.
23426 * localedata/si_LK.in: Rename to...
23427 * localedata/si_LK.UTF-8.in: ...this.
23428 * localedata/sv_SE.in: Rename to...
23429 * localedata/sv_SE.ISO-8859-1.in: ...this.
23430 * localedata/tr_TR.in: Rename to...
23431 * localedata/tr_TR.UTF-8.in: ...this.
23432 * localedata/uk_UA.in: Rename to...
23433 * localedata/uk_UA.UTF-8.in: ...this.
23434 * localedata/sort-test.sh: Test file is locale name with the
23435 suffix.
23436
23437 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23438 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23439 file.
23440 * localedata/locales/i18n_ctype: Regenerate.
23441 * localedata/locales/tr_TR: Likewise.
23442 * localedata/locales/translit_circle: Likewise.
23443 * localedata/locales/translit_cjk_compat: Likewise.
23444 * localedata/locales/translit_combining: Likewise.
23445 * localedata/locales/translit_compat: Likewise.
23446 * localedata/locales/translit_font: Likewise.
23447 * localedata/locales/translit_fraction: Likewise.
23448
23449 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23450
23451 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23452 lxvd2x/stxvd2x with lvx/stvx.
23453 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23454
23455 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23456
23457 * include/alloc_buffer.h: Replace "if if " with "if " in
23458 comments.
23459 * sysdeps/mips/memcpy.S: Likkewise.
23460 * sysdeps/mips/memset.S: Likewise.
23461 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23462 Likewise.
23463 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23464 Likewise.
23465 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23466 Likewise.
23467
23468 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23469
23470 [BZ #15261]
23471 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23472 yesexpr and noexpr.
23473 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23474 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23475 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23476 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23477 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23478 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23479 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23480
23481 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23482
23483 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23484 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23485 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23486 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23487 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23488 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23489 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23490 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23491 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23492 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23493 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23494 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23495
23496 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23497
23498 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23499 as possible for better readability of the source.
23500 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23501 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23502 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23503 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23504 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23505 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23506 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23507 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23508 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23509 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23510 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23511 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23512 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23513 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23514 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23515 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23516 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23517 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23518 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23519 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23520 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23521 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23522 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23523 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23524 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23525 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23526 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23527 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23528 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23529 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23530 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23531 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23532 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23533 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23534 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23535 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23536 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23537 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23538 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23539 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23540 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23541 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23542 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23543 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23544 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23545 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23546 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23547 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23548 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23549 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23550 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23551 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23552 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23553 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23554 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23555 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23556 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23557 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23558 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23559 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23560 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23561 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23562 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23563 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23564 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23565 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23566 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23567 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23568 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23569 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23570 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23571 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23572 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23573 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23574 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23575 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23576 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23577 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23578 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23579 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23580 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23581 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23582 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23583 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23584 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23585 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23586 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23587 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23588 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23589 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23590 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23591 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23592 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23593 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23594 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23595 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23596 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23597 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23598 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23599 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23600 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23601 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23602 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23603 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23604 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23605 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23606 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23607 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23608 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23609 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23610 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23611 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23612 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23613 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23614 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23615 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23616 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23617 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23618 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23619 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23620 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23621 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23622 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23623 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23624 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23625 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23626 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23627 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23628 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23629 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23630 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23631 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23632 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23633 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23634 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23635 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23636 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23637 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23638 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23639 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23640 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23641 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23642 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23643 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23644 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23645 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23646 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23647 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23648 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23649 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23650 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23651 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23652 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23653 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23654 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23655 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23656 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23657 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23658 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23659 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23660 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23661 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23662 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23663 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23664 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23665 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23666 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23667 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23668 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23669 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23670 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23671 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23672 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23673 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23674
23675 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23676
23677 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23678 (Use first letters of yesstr and nostr correctly instead of using
23679 full words).
23680
23681 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23682
23683 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23684 (Use first letters of yesstr and nostr correctly).
23685
23686 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23687
23688 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23689 also check for the first characters of yesstr and nostr.
23690 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23691 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23692
23693 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23694
23695 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23696 also check for Chinese characters.
23697
23698 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23699
23700 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23701 match also for the contents of yesstr and nostr. As the first letter
23702 of yesstr and nostr is equal, checking only for the first letter
23703 is not enough.
23704
23705 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23706
23707 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23708 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23709
23710 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23711
23712 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23713 of main contributor.
23714
23715 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23716
23717 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23718 instead of using English.
23719
23720 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23721
23722 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23723 by including the first letters of nostr and yesexpr in the regexp.
23724 Also make it more readable by using ASCII where possible.
23725
23726 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23727
23728 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23729 the first letter of nostr in the regexp. It agrees with CLDR now.
23730 Also make it more readable by using ASCII where possible.
23731
23732 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23733
23734 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23735 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23736 these strings contain a U+17D6 (which somewhat looks like a colon)
23737 instead of a real colon to separate the full words for “yes”
23738 and “no” from the single letter responses.
23739
23740 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23741
23742 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23743 it agree with CLDR (include the first letter of yesstr).
23744 Also make it more readable by using ASCII where possible.
23745
23746 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23747
23748 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23749 and improve yesexpr and noexpr. The yesstr and nostr apparently
23750 came from CLDR. And CLDR has a bug there: these strings contain
23751 a U+0903 (which looks like a colon) instead of a real colon
23752 to separate the full words for “yes” and “no” from the single
23753 letter responses.
23754
23755 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23756
23757 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23758 letters of the full yesstr and nostr in yesexpr and noexpr.
23759
23760 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23761
23762 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23763 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23764 * localedata/locales/an_ES: Make source more readable by using ASCII
23765 where possible.
23766
23767 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23768
23769 [BZ #20952]
23770 * localedata/locales/yuw_PG: New file.
23771 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23772 * locale/iso-639.def: Add Yau (Uruwa).
23773
23774 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23775
23776 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23777
23778 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23779
23780 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23781 (__libc_realloc): Likewise.
23782 (_mid_memalign): Likewise.
23783 (__libc_calloc): Likewise.
23784
23785 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23786
23787 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23788 by adding the generic +1 and -0 as in all other locales.
23789 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23790 day names and make it more readable by using ASCII where possible.
23791
23792 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23793
23794 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23795 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23796
23797 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23798
23799 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23800 WNOHANG in waitpid call.
23801
23802 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23803
23804 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23805 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23806
23807 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23808 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23809 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23810 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23811 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23812 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23813 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23814 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23815 variables.
23816
23817 2017-10-23 Michael Collison <michael.collison@arm.com>
23818
23819 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23820 with __builtin_sqrt.
23821 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23822 with __builtin_sqrtf.
23823 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23824 with __builtin_ceil.
23825 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23826 with __builtin_ceilf.
23827 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23828 with __builtin_floor.
23829 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23830 with __builtin_floorf.
23831 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23832 with __builtin_fma.
23833 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23834 with __builtin_fmaf.
23835 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23836 with __builtin_fmax.
23837 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23838 with __builtin_fmaxf.
23839 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23840 with __builtin_fmin.
23841 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23842 with __builtin_fminf.
23843 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23844 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23845 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23846 with builtin_rint and conversion to int.
23847 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23848 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23849 with builtin_llround.
23850 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23851 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23852 with builtin_rint and conversion to long int.
23853 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23854 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23855 with builtin_lround.
23856 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23857 with builtin_lroundf.
23858 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23859 statements with __builtin_nearbyint.
23860 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23861 statements with __builtin_nearbyintf.
23862 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23863 with __builtin_rint.
23864 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23865 with __builtin_rintf.
23866 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23867 with __builtin_round.
23868 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23869 with __builtin_roundf.
23870 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23871 with __builtin_trunc.
23872 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23873 with __builtin_truncf.
23874 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23875 and s_l[l]round[f].c too.
23876
23877 2017-10-23 Alan Modra <amodra@gmail.com>
23878
23879 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23880 Adjust stack after restoring regs. Add missing LR cfi_restore.
23881
23882 2017-10-23 Alan Modra <amodra@gmail.com>
23883
23884 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23885 Move LR save and frame setup/teardown and LR restore to
23886 immediately around memset call. Provide cfi.
23887
23888 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23889
23890 * sysdeps/i386/fpu/e_powf.S: Removed.
23891 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23892 * sysdeps/i386/fpu/w_powf.c: Likewise.
23893 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23894 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23895 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23896 Add e_powf-sse2.
23897 (CFLAGS-e_powf-sse2.c): New.
23898 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23899 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23900
23901 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23902
23903 * sysdeps/i386/fpu/e_log2f.S: Removed.
23904 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23905 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23906 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23907 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23908 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23909 Add e_log2f-sse2.
23910 (CFLAGS-e_log2f-sse2.c): New.
23911 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23912 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23913
23914 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23915
23916 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23917 Add e_powf-fma.
23918 (CFLAGS-e_powf-fma.c): New.
23919 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23920 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23921
23922 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23923
23924 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23925 Add e_log2f-fma.
23926 (CFLAGS-e_log2f-fma.c): New.
23927 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23928 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23929
23930 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23931
23932 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23933 Add e_logf-fma.
23934 (CFLAGS-e_logf-fma.c): New.
23935 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23936 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23937
23938 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23939
23940 * sysdeps/i386/fpu/e_logf.S: Removed.
23941 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23942 * sysdeps/i386/fpu/w_logf.c: Likewise.
23943 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23944 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23945 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23946 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23947 Add e_logf-sse2.
23948 (CFLAGS-e_logf-sse2.c): New.
23949 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23950 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23951
23952 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23953
23954 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23955 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23956 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23957 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23958 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23959 Add e_exp2f-sse2.
23960 (CFLAGS-e_exp2f-sse2.c): New.
23961 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23962 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23963
23964 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23965
23966 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23967 Add e_exp2f-fma.
23968 (CFLAGS-e_exp2f-fma.c): New.
23969 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23970 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23971
23972 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23973
23974 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23975 * sysdeps/i386/fpu/e_expf.S: Likewise.
23976 * sysdeps/i386/fpu/math_errf.c: Likewise.
23977 * sysdeps/i386/fpu/w_expf.c: Likewise.
23978 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23979 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23980 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23981 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23982 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23983 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23984 Remove e_expf-ia32.
23985 (CFLAGS-e_expf-sse2.c): New.
23986 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23987 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23988
23989 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23990
23991 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23992 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23993 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23994 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23995 e_expf.c.
23996 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23997 New.
23998 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23999 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24000 Renamed to ...
24001 (__redirect_expf): This.
24002 (SYMBOL_NAME): Changed to expf.
24003 (__ieee754_expf): Renamed to ...
24004 (__expf): This.
24005 (__GI___expf): This.
24006 (__ieee754_expf): Add strong_alias.
24007 (__expf_finite): Likewise.
24008 (__expf): New.
24009 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24010
24011 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24012
24013 [BZ #22332]
24014 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24015 unescaping.
24016
24017 2017-10-21 Florian Weimer <fweimer@redhat.com>
24018
24019 * posix/Makefile (tests): Add tst-glob-tilde.
24020 (tests-special): Add tst-glob-tilde-mem.out
24021 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24022 (tst-glob-tilde-mem.out): Add mtrace check.
24023 * posix/tst-glob-tilde.c: New file.
24024
24025 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24026
24027 * bits/floatn-common.h: New file.
24028 * math/Makefile (headers): Add bits/floatn-common.h.
24029 * bits/floatn.h: Include <bits/floatn-common.h>.
24030 * sysdeps/ia64/bits/floatn.h: Likewise.
24031 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24032 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24033 * sysdeps/powerpc/bits/floatn.h: Likewise.
24034 * sysdeps/x86/bits/floatn.h: Likewise.
24035
24036 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24037
24038 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24039 indicates whether compiler emits an warning for alias for
24040 functions with incompatible types.
24041
24042 [BZ #22273]
24043 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24044 the auxiliary process is terminated by a signal before calling _exit
24045 or execve.
24046
24047 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24048
24049 [BZ #21265]
24050 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24051 New.
24052 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24053 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24054 and bit_arch_XSAVEC_Usable if needed.
24055 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24056 and bit_arch_Use_dl_runtime_resolve_opt.
24057 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24058 Removed.
24059 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24060 (bit_arch_Prefer_No_AVX512): Updated.
24061 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24062 (bit_arch_XSAVEC_Usable): New.
24063 (STATE_SAVE_OFFSET): Likewise.
24064 (STATE_SAVE_MASK): Likewise.
24065 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24066 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24067 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24068 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24069 (index_arch_XSAVEC_Usable): New.
24070 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24071 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24072 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24073 is enabled.
24074 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24075 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24076 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24077 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24078 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24079 _dl_runtime_resolve_xsavec.
24080 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24081 Removed.
24082 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24083 instead of VEC_SIZE.
24084 (REGISTER_SAVE_BND0): Removed.
24085 (REGISTER_SAVE_BND1): Likewise.
24086 (REGISTER_SAVE_BND3): Likewise.
24087 (REGISTER_SAVE_RAX): Always defined to 0.
24088 (VMOV): Removed.
24089 (_dl_runtime_resolve_avx): Likewise.
24090 (_dl_runtime_resolve_avx_slow): Likewise.
24091 (_dl_runtime_resolve_avx_opt): Likewise.
24092 (_dl_runtime_resolve_avx512): Likewise.
24093 (_dl_runtime_resolve_avx512_opt): Likewise.
24094 (_dl_runtime_resolve_sse): Likewise.
24095 (_dl_runtime_resolve_sse_vex): Likewise.
24096 (USE_FXSAVE): New.
24097 (_dl_runtime_resolve_fxsave): Likewise.
24098 (USE_XSAVE): Likewise.
24099 (_dl_runtime_resolve_xsave): Likewise.
24100 (USE_XSAVEC): Likewise.
24101 (_dl_runtime_resolve_xsavec): Likewise.
24102 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24103 Removed.
24104 (_dl_runtime_resolve_avx512_opt): Likewise.
24105 (_dl_runtime_resolve_avx): Likewise.
24106 (_dl_runtime_resolve_avx_opt): Likewise.
24107 (_dl_runtime_resolve_sse): Likewise.
24108 (_dl_runtime_resolve_sse_vex): Likewise.
24109 (_dl_runtime_resolve_fxsave): New.
24110 (_dl_runtime_resolve_xsave): Likewise.
24111 (_dl_runtime_resolve_xsavec): Likewise.
24112
24113 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24114
24115 [BZ #22320]
24116 CVE-2017-15670
24117 * posix/glob.c (__glob): Fix one-byte overflow.
24118
24119 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24120
24121 * malloc/malloc.c (sysdep-cancel.h): Add include.
24122
24123 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24124
24125 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24126
24127 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24128
24129 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24130 (tests): Remove $(objpfx)ga_test depdendency.
24131 * resolv/ga_test.c: Remove file.
24132
24133 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24134
24135 [BZ #18812]
24136 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24137 * localedata/locales/kab_DZ: New file.
24138
24139 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24140
24141 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24142 _dl_relocate_static_pie instead of _dl_start to compute load
24143 address in static PIE.
24144
24145 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24146
24147 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24148
24149 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24150
24151 [BZ #13605]
24152 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24153 * localedata/locales/shn_MM: New file.
24154
24155 2017-10-20 Florian Weimer <fweimer@redhat.com>
24156
24157 [BZ #22321]
24158 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24159 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24160 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24161 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24162 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24163 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24164
24165 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24166
24167 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24168
24169 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24170
24171 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24172
24173 [BZ #22322]
24174 * sysdeps/mips/bits/long-double.h: Move to ....
24175 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24176
24177 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24178
24179 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24180
24181 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24182 H.J. Lu <hongjiu.lu@intel.com>
24183
24184 [BZ #22299]
24185 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24186 GLRO(dl_platform) to NULL.
24187 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24188 (modules-names): Add tst-platformmod-1 and
24189 x86_64/tst-platformmod-2.
24190 (CFLAGS-tst-platform-1.c): New.
24191 (CFLAGS-tst-platformmod-1.c): Likewise.
24192 (CFLAGS-tst-platformmod-2.c): Likewise.
24193 (LDFLAGS-tst-platformmod-2.so): Likewise.
24194 ($(objpfx)tst-platform-1): Likewise.
24195 ($(objpfx)tst-platform-1.out): Likewise.
24196 (tst-platform-1-ENV): Likewise.
24197 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24198 * sysdeps/x86_64/tst-platform-1.c: New file.
24199 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24200 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24201
24202 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24203
24204 [BZ #13994]
24205 * locale/iso-639.def: Add Karbi.
24206 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24207 * localedata/locales/mjw_IN: New file.
24208
24209 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24210
24211 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24212 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24213 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24214 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24215 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24216 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24217 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24218 <bits/floatn.h>.
24219 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24220 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24221 * manual/math.texi (Mathematics): Document additional architecture
24222 support for _Float128.
24223 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24224 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24225 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24226 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24227 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24228 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24229 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24230 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24231 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24232 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24233 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24234 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24235 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24236 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24237 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24238
24239 2017-10-18 Renlin Li <renlin.li@arm.com>
24240
24241 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24242 _DYNAMIC symbol to calculate load address.
24243
24244 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24245
24246 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24247 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24248 summary bits.
24249 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24250 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24251
24252 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24253
24254 [BZ #16777]
24255 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24256 and improve readability by using more ASCII.
24257 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24258 and improve readability by using more ASCII.
24259
24260 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24261
24262 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24263 not all targets support atomics on bool.
24264
24265 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24266
24267 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24268 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24269 __f128.
24270 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24271 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24272 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24273 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24274 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24275 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24276
24277 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24278
24279 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24280 defines.
24281
24282 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24283
24284 [BZ #22159]
24285 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24286 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24287 (do_check_remalloced_chunk): Fix build bug.
24288 (do_check_malloc_state): Add assert that checks arena->top.
24289 (malloc_consolidate): Remove initialization.
24290 (int_mallinfo): Remove call to malloc_consolidate.
24291 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24292
24293 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24294
24295 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24296 (have_fastchunks): Remove.
24297 (clear_fastchunks): Remove.
24298 (set_fastchunks): Remove.
24299 (malloc_state): Add have_fastchunks.
24300 (malloc_init_state): Use have_fastchunks.
24301 (do_check_malloc_state): Remove incorrect invariant checks.
24302 (_int_malloc): Use have_fastchunks.
24303 (_int_free): Likewise.
24304 (malloc_consolidate): Likewise.
24305
24306 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24307
24308 * malloc/malloc.c (tcache_put): Inline.
24309 (tcache_get): Inline.
24310
24311 2017-10-17 Jordi Mallach <jordi@gnu.org>
24312
24313 Aurelien Jarno <aurelien@aurel32.net>
24314 [BZ #2522]
24315 * localedata/locales/ca_ES@valencia: New file.
24316 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24317
24318 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24319
24320 [BZ #22296]
24321 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24322 < 6.x
24323
24324 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24325
24326 * scripts/build-many-glibcs.py (Context.add_all_configs):
24327 Add arm-linux-gnueabihf multiarch extra_glibcs.
24328
24329 * sysdeps/generic/ifunc-init.h: New file.
24330 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24331
24332 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24333
24334 [BZ #22019]
24335 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24336 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24337 * stdlib/tst-strfmon_l.c: adapt test case.
24338
24339 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24340
24341 * sysdeps/generic/float128-abi.h: New file.
24342 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24343 non-__prefixed symbols to ....
24344 * math/Versions: ... here. Include <float128-abi.h>.
24345 * stdlib/Versions ... and here. Include <float128-abi.h>
24346
24347 2017-10-16 Florian Weimer <fweimer@redhat.com>
24348
24349 * version.h (VERSION): Switch to ".9000" as the development
24350 version suffix.
24351
24352 2017-10-16 Florian Weimer <fweimer@redhat.com>
24353
24354 [BZ #22050]
24355 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24356 compat_symbol_reference to access non-default version.
24357
24358 2017-10-16 Florian Weimer <fweimer@redhat.com>
24359
24360 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24361
24362 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24363
24364 * include/shlib-compat.h (compat_symbol_reference): Update
24365 comment.
24366
24367 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24368
24369 * math/Makefile (test-types): Add
24370 $(type-float128-$(float128-alias-fcts)).
24371 * math/test-float128.h (TYPE_STR): Define conditional on
24372 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24373 (ULP_IDX): Likewise.
24374 (ULP_I_IDX): Likewise.
24375
24376 * stdlib/strtold.c: Include <bits/floatn.h>
24377 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24378 and later undefine as macro. Define as weak alias if
24379 [!USE_WIDE_CHAR].
24380 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24381 and later undefine as macro. Define as weak alias if
24382 [USE_WIDE_CHAR].
24383 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24384 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24385 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24386 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24387 Define and later undefine as macro. Define as weak alias if
24388 [USE_WIDE_CHAR].
24389 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24390 <bits/floatn.h>.
24391 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24392 Define and later undefine as macro. Define as weak alias if
24393 [!USE_WIDE_CHAR].
24394 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24395 Define and later undefine as macro. Define as weak alias if
24396 [USE_WIDE_CHAR].
24397
24398 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24399
24400 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24401 record_verbose messages.
24402
24403 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24404
24405 [BZ #22052]
24406 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24407 to silence -O3 -Wall warning with GCC 7.
24408
24409 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24410
24411 * Makeconfig (+link-static-before-libc): Use the first of
24412 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24413 * gmon/Makefile (tests): Add tst-gmon-static.
24414 (tests-static): Likewise.
24415 (CFLAGS-tst-gmon-static.c): New.
24416 (CRT-tst-gmon-static): Likewise.
24417 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24418 (tst-gmon-static-ENV): Likewise.
24419 (tests-special): Likewise.
24420 ($(objpfx)tst-gmon-static.out): Likewise.
24421 (clean-tst-gmon-static-data): Likewise.
24422 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24423 * gmon/tst-gmon-static-gprof.sh: New file.
24424 * gmon/tst-gmon-static.c: Likewise.
24425
24426 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24427
24428 [BZ #22295]
24429 * locale/programs/linereader.c (get_string): Don't warn on
24430 non-symbolic character.
24431
24432 [BZ #22294]
24433 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24434 int_curr_symbol.
24435
24436 [BZ #22292]
24437 * locale/programs/record-status.h: New file
24438 * locale/programs/locale.c: Add comment.
24439 * locale/programs/charmap-dir.c: Don't include error.h.
24440 (charmap_opendir): Use record_error.
24441 * locale/programs/charmap.c: Don't include error.h.
24442 (charmap_read): Use record_error, and record_warning.
24443 (parse_charmap): Likewise.
24444 * locale/programs/ld-address.c: Don't include error.h.
24445 (address_finish): Use record_error, and record_warning.
24446 * locale/programs/ld-collate.c: Don't include error.h.
24447 (collate_finish): Use record_error, and record_error_at_line.
24448 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24449 (ctype_class_new): Likewise.
24450 (ctype_map_new): Likewise.
24451 (set_one_default): Likewise.
24452 (set_class_defaults): Likewise.
24453 (translit_flatten): Likewise.
24454 (allocate_arrays): Use record_error, and record_verbose.
24455 * locale/programs/ld-identification.c: Don't include error.h.
24456 (indentation_finish): Use record_error and record_warning.
24457 * locale/programs/ld-measurement.c: Don't include error.h.
24458 (measurement_finish): Use record_error.
24459 * locale/programs/ld-messages.c
24460 (message_finish): Likewise.
24461 * locale/programs/ld-monetary.c
24462 (monetary_finish): Likewise.
24463 * locale/programs/ld-name.c (name_finish): Use record_error
24464 and record_warning.
24465 * locale/programs/ld-numeric.c
24466 (numeric_finish): Use record_error.
24467 * locale/programs/ld-paper.c: Don't include error.h.
24468 (paper_finish): Use record_error.
24469 * locale/programs/ld-telephone.c: Don't include error.h.
24470 (telephone_finish): Use record_error.
24471 * locale/programs/ld-time.c (time_finish): Likewise.
24472 * locale/programs/linereader.h (lr_error): Make inline func.
24473 * locale/programs/localedef.c: Define recorded_warning_count,
24474 and recorded_error_count.
24475 (main): Use record_error. Use recorded_error_count and
24476 recorded_warning_count to issue correct error returns.
24477 (add_to_readlist): Use record_error.
24478 (find_locale): Likewise.
24479 (load_locale): Likewise.
24480 * locale/programs/localedef.h: Remove be_quiet
24481 and WITH_CUR_LOCALE.
24482 * locale/programs/locarchive.c (compare_from_file): Use
24483 record_error.
24484 * locale/programs/locfile.c (write_locale_data): Use
24485 record_error.
24486 * locale/programs/repertoire.c: Dont include error.h.
24487 (repertoire_complain): Use record_error.
24488 * localedata/tst-fmon.sh: Expect failures from localedef.
24489 * localedata/tst-locale.sh: Likewise.
24490 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24491
24492 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24493 (REPORTS): Likewise.
24494 (check): Likewise.
24495 (i18n): Rename to...
24496 (i18n_ctype): ...this.
24497 (i18n-report): Rename to...
24498 (i18n_ctype-report): ...this.
24499 * localedata/locales/i18n_ctype: Regenerate.
24500 * localedata/locales/i18n: copy i18n_ctype.
24501
24502 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24503
24504 * stdlib/strfroml.c: Include <bits/floatn.h>.
24505 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24506 Define before include of <stdlib.h> and undefine afterwards, then
24507 define as weak alias.
24508
24509 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24510 Undefine and restore default definition. Use
24511 libm_alias_ldouble_other.
24512
24513 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24514
24515 [BZ #22153]
24516 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24517 in coredumps.
24518
24519 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24520
24521 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24522 Assign sym_map to be map for local symbols, as TLS relocations
24523 use sym_map to determine whether the symbol is defined and to
24524 extract the TLS information.
24525 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24526 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24527
24528 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24529
24530 [BZ #22189]
24531 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24532 (math_force_eval): Add powerpc version.
24533
24534 [BZ #22142]
24535 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24536 -DBL_MAX.
24537 (do_test): Likewise.
24538 * stdio-common/tst-printf.sh: Likewise.
24539 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24540 ifdef clause in order to set the carry bit right. Replace r0 by
24541 0 without changing the behavior.
24542
24543 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24544
24545 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24546 <libm-alias-ldouble.h>.
24547 (fabsl): Define using libm_alias_ldouble.
24548 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24549 <libm-alias-ldouble.h>.
24550 (fabsl): Define using libm_alias_ldouble.
24551
24552 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24553 Remove conditional code.
24554
24555 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24556 Rename to __clog10_internal_l.
24557 (__clog10_internal_l): Define aliases using
24558 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24559 with __clog10.
24560
24561 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24562
24563 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24564 * benchtests/sincosf-inputs: New file.
24565 * benchtests/cosf-inputs: New file.
24566 * benchtests/sinf-inputs: New file.
24567
24568 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24569
24570 * posix/tst-spawn.c (do_test): Wait for both children.
24571
24572 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24573
24574 [BZ #22284]
24575 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24576 tests-pie): Add tst-gmon-pie.
24577 (CFLAGS-tst-gmon-pie.c): New.
24578 (CRT-tst-gmon-pie): Likewise.
24579 (tst-gmon-pie-ENV): Likewise.
24580 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24581 ($(objpfx)tst-gmon-pie.out): Likewise.
24582 (clean-tst-gmon-pie-data): Likewise.
24583 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24584 * gmon/gmon.c [PIC]: Include <link.h>.
24585 [PIC] (callback): New function.
24586 (write_hist): Add an argument for load address. Subtract load
24587 address from PCs.
24588 (write_call_graph): Likewise.
24589 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24590 it to write_hist and write_call_graph.
24591 * gmon/tst-gmon-pie.c: New file.
24592
24593 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24594
24595 * math/Makefile (test-types-basic): New variable.
24596 (test-types): Likewise.
24597 (libm-test-support): Use $(test-types) instead of $(types).
24598 (libm-tests-base-normal): Likewise.
24599 (libm-tests-base-finite): Likewise.
24600 (libm-tests-base-inline): Likewise.
24601 (generated): Likewise.
24602 ($(objpfx)libm-test-support-$(t).c): Likewise.
24603 (libm-tests-for-type iterator): Likewise.
24604 (libm-test-support iterator): Likewise.
24605 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24606 (ulp_idx): Use ULP_IDX.
24607 * math/test-ldouble.h: Include <float.h>.
24608 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24609 (ULP_IDX): New macro.
24610 (ULP_I_IDX): Likewise.
24611 * math/test-double.h (ULP_IDX): Likewise.
24612 (ULP_I_IDX): Likewise.
24613 * math/test-float.h (ULP_IDX): Likewise.
24614 (ULP_I_IDX): Likewise.
24615 * math/test-float128.h (ULP_IDX): Likewise.
24616 (ULP_I_IDX): Likewise.
24617
24618 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24619
24620 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24621 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24622 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24623 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24624 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24625 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24626 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24627 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24628 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24629 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24630 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24631 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24632 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24633 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24634 (SINGLE_THREAD_BY_GLOBAL): Define.
24635 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24636 Likewise.
24637 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24638 Likewise.
24639 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24640 Likewise.
24641 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24642 Likewise.
24643 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24644 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24645 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24646 Likewise.
24647
24648 2017-10-11 Andreas Schwab <schwab@suse.de>
24649
24650 * nis/Makefile (aux): Remove.
24651 * nscd/Makefile (aux): Add nscd_hash.
24652 (nscd-modules): Likewise.
24653 ($(objpfx)nscd): Don't depend on libnsl.
24654 * nscd/nscd_hash.c: New file.
24655 * nscd/nscd_hash.h: Likewise.
24656 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24657 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24658 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24659 instead of <nis/rpcsvc/nis.h>.
24660 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24661
24662 2017-10-11 Florian Weimer <fweimer@redhat.com>
24663
24664 [BZ #22078]
24665 Avoid large NSS buffers with many addresses, aliases.
24666 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24667 using dynarrays and struct alloc_buffer.
24668 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24669 (tst-nss-files-hosts-multi): Link with -ldl.
24670 * nss/tst-nss-files-hosts-multi.c: New file.
24671
24672 2017-10-11 Florian Weimer <fweimer@redhat.com>
24673
24674 [BZ #18023]
24675 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24676 scratch_buffer. Eliminate gotos.
24677
24678 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24679
24680 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24681 libm_alias_ldouble_other.
24682 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24683 undefine and redefine.
24684 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24685 (exp10l): Do not define here.
24686 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24687 (weak_alias): Undefine and redefine.
24688 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24689 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24690 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24691 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24692
24693 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24694 [!__fma] (fma): Define using libm_alias_double.
24695 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24696 [!__fmaf] (fmaf): Define using libm_alias_float.
24697 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24698 (fmal): Define using libm_alias_ldouble.
24699
24700 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24701
24702 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24703 New macro.
24704 (libm_alias_double_other): Likewise.
24705 (libm_alias_double_r): Use libm_alias_double_other_r.
24706 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24707 New macro.
24708 (libm_alias_float_other): Likewise.
24709 (libm_alias_float_r): Use libm_alias_float_other_r.
24710 * sysdeps/generic/libm-alias-float128.h
24711 (libm_alias_float128_other_r): New macro.
24712 (libm_alias_float128_other): Likewise.
24713 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24714 * sysdeps/generic/libm-alias-ldouble.h
24715 (libm_alias_ldouble_other_r): New macro.
24716 (libm_alias_ldouble_other): Likewise.
24717 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24718 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24719 (libm_alias_double_other_r): New macro.
24720 (libm_alias_double_other): Likewise.
24721 (libm_alias_double_r): Use libm_alias_double_other_r.
24722 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24723 (libm_alias_ldouble_other_r): New macro.
24724 (libm_alias_ldouble_other): Likewise.
24725 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24726 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24727 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24728 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24729 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24730 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24731 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24732 * math/w_exp2f.c: Use libm_alias_float_other.
24733 * math/w_expf.c: Likewise.
24734 * math/w_log2f.c: Likewise.
24735 * math/w_logf.c: Likewise.
24736 * math/w_powf.c: Likewise.
24737 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24738 [!__exp2f]: Use libm_alias_float_other.
24739 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24740 [!__expf]: Use libm_alias_float_other.
24741 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24742 [!__log2f]: Use libm_alias_float_other.
24743 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24744 [!__logf]: Use libm_alias_float_other.
24745 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24746 [!__powf]: Use libm_alias_float_other.
24747
24748 2017-10-10 Florian Weimer <fweimer@redhat.com>
24749
24750 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24751 function.
24752 (_nss_files_gethostbyname3_r): Call it.
24753
24754 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24755
24756 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24757 error. Remove default definition of declare_mgen_alias.
24758 [!declare_mgen_alias_r]: Likewise.
24759 * sysdeps/generic/math-type-macros-double.h
24760 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24761 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24762 (declare_mgen_alias_r): Likewise.
24763 * sysdeps/generic/math-type-macros-float128.h
24764 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24765 * sysdeps/generic/math-type-macros-ldouble.h
24766 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24767 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24768 macro.
24769 (declare_mgen_alias_r_s): Likewise.
24770 (declare_mgen_alias_r): Likewise.
24771 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24772 (lgamma_r): Define using libm_alias_double_r.
24773 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24774 (lgammaf_r): Define using libm_alias_float_r.
24775 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24776 (lgammal_r): Define using libm_alias_ldouble_r.
24777 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24778 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24779
24780 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24781
24782 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24783 extern declaration.
24784
24785 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24786
24787 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24788
24789 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24790
24791 [BZ #21326]
24792 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24793 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24794 * math/Makefile (test-math-cxx11): New test.
24795 * math/test-math-cxx11.cc: New file.
24796
24797 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24798
24799 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24800
24801 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24802 call to allocate the slave pty file descriptor.
24803
24804 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24805
24806 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24807 [!__fma] (fma): Define using libm_alias_double.
24808 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24809 [!__fma] (fma): Define using libm_alias_double.
24810
24811 * sysdeps/ieee754/float128/float128_private.h: Include
24812 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24813 (libm_alias_ldouble_r): Undefine and redefine.
24814 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24815 <libm-alias-ldouble.h>.
24816 (asinhl): Define using libm_alias_ldouble.
24817 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24818 <libm-alias-ldouble.h>.
24819 (atanl): Define using libm_alias_ldouble.
24820 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24821 <libm-alias-ldouble.h>.
24822 (cbrtl): Define using libm_alias_ldouble.
24823 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24824 <libm-alias-ldouble.h>.
24825 (ceill): Define using libm_alias_ldouble.
24826 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24827 <libm-alias-ldouble.h>.
24828 (copysignl): Define using libm_alias_ldouble.
24829 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24830 <libm-alias-ldouble.h>.
24831 (cosl): Define using libm_alias_ldouble.
24832 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24833 <libm-alias-ldouble.h>.
24834 (erfl): Define using libm_alias_ldouble.
24835 (erfcl): Likewise.
24836 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24837 <libm-alias-ldouble.h>.
24838 (expm1l): Define using libm_alias_ldouble.
24839 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24840 <libm-alias-ldouble.h>.
24841 (fabsl): Define using libm_alias_ldouble.
24842 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24843 <libm-alias-ldouble.h>.
24844 (floorl): Define using libm_alias_ldouble.
24845 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24846 <libm-alias-ldouble.h>.
24847 (fmal): Define using libm_alias_ldouble.
24848 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24849 <libm-alias-ldouble.h>.
24850 (frexpl): Define using libm_alias_ldouble.
24851 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24852 libm_alias_ldouble.
24853 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24854 <libm-alias-ldouble.h>.
24855 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24856 libm_alias_ldouble.
24857 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24858 <libm-alias-ldouble.h>.
24859 (getpayloadl): Define using libm_alias_ldouble.
24860 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24861 <libm-alias-ldouble.h>.
24862 (llrintl): Define using libm_alias_ldouble.
24863 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24864 <libm-alias-ldouble.h>.
24865 (llroundl): Define using libm_alias_ldouble.
24866 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24867 <libm-alias-ldouble.h>.
24868 (logbl): Define using libm_alias_ldouble.
24869 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24870 <libm-alias-ldouble.h>.
24871 (lrintl): Define using libm_alias_ldouble.
24872 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24873 <libm-alias-ldouble.h>.
24874 (lroundl): Define using libm_alias_ldouble.
24875 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24876 <libm-alias-ldouble.h>.
24877 (modfl): Define using libm_alias_ldouble.
24878 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24879 <libm-alias-ldouble.h>.
24880 (nearbyintl): Define using libm_alias_ldouble.
24881 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24882 <libm-alias-ldouble.h>.
24883 (nextafterl): Define using libm_alias_ldouble.
24884 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24885 <libm-alias-ldouble.h>.
24886 (nextupl): Define using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24888 <libm-alias-ldouble.h>.
24889 (remquol): Define using libm_alias_ldouble.
24890 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24891 <libm-alias-ldouble.h>.
24892 (rintl): Define using libm_alias_ldouble.
24893 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24894 <libm-alias-ldouble.h>.
24895 (roundevenl): Define using libm_alias_ldouble.
24896 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24897 <libm-alias-ldouble.h>.
24898 (roundl): Define using libm_alias_ldouble.
24899 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24900 using libm_alias_ldouble.
24901 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24902 <libm-alias-ldouble.h>.
24903 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24904 Define using libm_alias_ldouble.
24905 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24906 <libm-alias-ldouble.h>.
24907 (sincosl): Define using libm_alias_ldouble.
24908 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24909 <libm-alias-ldouble.h>.
24910 (sinl): Define using libm_alias_ldouble.
24911 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24912 <libm-alias-ldouble.h>.
24913 (tanhl): Define using libm_alias_ldouble.
24914 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24915 <libm-alias-ldouble.h>.
24916 (tanl): Define using libm_alias_ldouble.
24917 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24918 <libm-alias-ldouble.h>.
24919 (totalorderl): Define using libm_alias_ldouble.
24920 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24921 <libm-alias-ldouble.h>.
24922 (totalordermagl): Define using libm_alias_ldouble.
24923 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24924 <libm-alias-ldouble.h>.
24925 (truncl): Define using libm_alias_ldouble.
24926 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24927 libm_alias_ldouble.
24928 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24929 libm_alias_ldouble.
24930 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24931 <libm-alias-ldouble.h>.
24932 (weak_alias): Do not undefine and redefine.
24933 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24934 (copysignl): Define with long_double_symbol only if [IS_IN
24935 (libc)].
24936 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24937 <libm-alias-ldouble.h>.
24938 (weak_alias): Do not undefine and redefine.
24939 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24940 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24941 * sysdeps/ieee754/ldbl-64-128/s_modfl.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 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24946 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24947 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24948 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24949 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24950 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24951 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24952 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24953 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24954 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24955 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24956 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24957 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24958 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24959 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24960 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24961 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24962 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24963 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24964 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24965 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24966 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24967 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24968 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24969 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24970
24971 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24972
24973 [BZ #22111]
24974 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24975 (tcache_thread_freeres): Set tcache_shutting_down before
24976 freeing the tcache.
24977 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24978 * malloc/tst-malloc-tcache-leak.c: New file.
24979
24980 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24981
24982 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24983 back to powerpc32 file.
24984 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24985 (memrchr): Add __memrchr_power8 to ifunc list.
24986 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24987 extra bytes for unaligned inputs.
24988
24989 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24990
24991 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24992 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24993 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24994 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24995 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24996
24997 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24998
24999 * sysdeps/arm/libm-test-ulps: Update.
25000
25001 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25002 <libm-alias-ldouble.h>.
25003 (asinhl): Define using libm_alias_ldouble.
25004 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25005 <libm-alias-ldouble.h>.
25006 (cbrtl): Define using libm_alias_ldouble.
25007 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25008 <libm-alias-ldouble.h>.
25009 (copysignl): Define using libm_alias_ldouble.
25010 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25011 <libm-alias-ldouble.h>.
25012 (cosl): Define using libm_alias_ldouble.
25013 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25014 <libm-alias-ldouble.h>.
25015 (erfl): Define using libm_alias_ldouble.
25016 (erfcl): Likewise.
25017 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25018 <libm-alias-ldouble.h>.
25019 (fmal): Define using libm_alias_ldouble.
25020 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25021 <libm-alias-ldouble.h>.
25022 (frexpl): Define using libm_alias_ldouble.
25023 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25024 libm_alias_ldouble.
25025 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25026 <libm-alias-ldouble.h>.
25027 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25028 libm_alias_ldouble.
25029 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25030 <libm-alias-ldouble.h>.
25031 (getpayloadl): Define using libm_alias_ldouble.
25032 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25033 <libm-alias-ldouble.h>.
25034 (llrintl): Define using libm_alias_ldouble.
25035 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25036 <libm-alias-ldouble.h>.
25037 (llroundl): Define using libm_alias_ldouble.
25038 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25039 <libm-alias-ldouble.h>.
25040 (lrintl): Define using libm_alias_ldouble.
25041 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25042 <libm-alias-ldouble.h>.
25043 (lroundl): Define using libm_alias_ldouble.
25044 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25045 <libm-alias-ldouble.h>.
25046 (modfl): Define using libm_alias_ldouble.
25047 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25048 <libm-alias-ldouble.h>.
25049 (nextupl): Define using libm_alias_ldouble.
25050 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25051 <libm-alias-ldouble.h>.
25052 (remquol): Define using libm_alias_ldouble.
25053 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25054 <libm-alias-ldouble.h>.
25055 (roundevenl): Define using libm_alias_ldouble.
25056 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25057 <libm-alias-ldouble.h>.
25058 (roundl): Define using libm_alias_ldouble.
25059 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25060 using libm_alias_ldouble.
25061 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25062 <libm-alias-ldouble.h>.
25063 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25064 <libm-alias-ldouble.h>.
25065 (setpayloadsigl): Define using libm_alias_ldouble.
25066 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25067 <libm-alias-ldouble.h>.
25068 (sincosl): Define using libm_alias_ldouble.
25069 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25070 <libm-alias-ldouble.h>.
25071 (sinl): Define using libm_alias_ldouble.
25072 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25073 <libm-alias-ldouble.h>.
25074 (tanhl): Define using libm_alias_ldouble.
25075 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25076 <libm-alias-ldouble.h>.
25077 (tanl): Define using libm_alias_ldouble.
25078 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25079 <libm-alias-ldouble.h>.
25080 (totalorderl): Define using libm_alias_ldouble.
25081 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25082 <libm-alias-ldouble.h>.
25083 (totalordermagl): Define using libm_alias_ldouble.
25084 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25085 libm_alias_ldouble.
25086 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25087 libm_alias_ldouble.
25088
25089 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25090
25091 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25092 memmove_falkor.
25093 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25094 (__libc_ifunc_impl_list): Likewise.
25095 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25096 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25097
25098 * benchtests/bench-memmove-walk.c: New file.
25099 * benchtests/Makefile (string-benchset): Add it.
25100
25101 * benchtests/bench-memset-walk.c: New file.
25102 * benchtests/Makefile (string-benchset): Add it.
25103
25104 * benchtests/bench-memcpy-walk.c: New file.
25105 * benchtests/Makefile (string-benchset): Add it.
25106
25107 2017-10-05 Florian Weimer <fweimer@redhat.com>
25108
25109 nscd: Eliminate compilation time dependency in the build output.
25110 * nscd/nscd_stat.c (STATDATA_VERSION)
25111 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25112 (STATDATA_VERSION_FULL): New macro definitions.
25113 (compilation): Remove.
25114 (struct statdata): Adjust version member.
25115 (send_stats): Set version from STATDATA_VERSION_FULL.
25116 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25117
25118 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25119
25120 * configure.ac (--enable-add-ons): Remove option.
25121 (machine): Do not mention add-ons in comment.
25122 (LIBC_PRECONFIGURE): Likewise.
25123 (add_ons): Remove variable and sanity checks and logic to locate
25124 add-ons.
25125 (add_ons_automatic): Remove variable.
25126 (configured_add_ons): Likewise.
25127 (add_ons_sfx): Likewise.
25128 (add_ons_pfx): Likewise.
25129 (add_on_subdirs): Likewise.
25130 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25131 consideration of add-ons in Implies handling.
25132 (sysdeps_add_ons): Likewise.
25133 * configure: Regenerated.
25134 * libidn/configure.ac: Remove.
25135 * libidn/configure: Likewise.
25136 * sysdeps/unix/inet/configure.ac: New file.
25137 * sysdeps/unix/inet/configure: New generated file.
25138 * sysdeps/unix/inet/Subdirs: Add libidn.
25139 * Makeconfig (sysdeps-srcdirs): Remove variable.
25140 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25141 ($(common-objpfx)config.status): Do not depend on add-on files.
25142 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25143 comment.
25144 (all-subdirs): Do not include $(add-on-subdirs).
25145 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25146 * config.make.in (add-ons): Remove variable.
25147 (add-on-subdirs): Likewise.
25148 (sysdeps-add-ons): Likewise.
25149 * manual/Makefile (add-chapters): Remove.
25150 ($(objpfx)texis): Do not depend on $(add-chapters).
25151 (nonexamples): Do not handle $(add-chapters).
25152 (examples): Do not handle $(add-ons).
25153 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25154 libc-texinfo.sh.
25155 * manual/install.texi (Installation): Do not mention add-ons.
25156 (--enable-add-ons): Do not document configure option.
25157 * INSTALL: Regenerated.
25158 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25159 * manual/maint.texi (Hierarchy Conventions): Do not mention
25160 add-ons.
25161 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25162 --enable-add-ons.
25163 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25164 add-ons.
25165 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25166 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25167
25168 2017-10-05 Andreas Schwab <schwab@suse.de>
25169
25170 [BZ #15142]
25171 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25172 (_IO_flush_all_lockp): Always lock list_all_lock.
25173 (_IO_flush_all_linebuffered): Likewise.
25174 (_IO_unbuffer_all): Likewise.
25175
25176 2017-10-05 Florian Weimer <fweimer@redhat.com>
25177
25178 [BZ #15436]
25179 Do not flush stdio streams on abort.
25180 * stdlib/abort.c (fflush): Remove macro definition.
25181 (abort): Remove stages related to stdio flushing.
25182
25183 2017-10-05 Florian Weimer <fweimer@redhat.com>
25184
25185 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25186
25187 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25188
25189 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25190
25191 2017-10-05 Florian Weimer <fweimer@redhat.com>
25192
25193 * support/support_format_hostent.c (support_format_hostent): Add
25194 more error information for NETDB_INTERNAL.
25195
25196 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25197
25198 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25199 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25200 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25201 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25202 AC_DEFINE if multi-arch is enabled.
25203 * sysdeps/i386/configure: Regenerated.
25204
25205 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25206
25207 * Makeconfig (+link-static-before-libc): Use
25208 $(DEFAULT-LDFLAGS-$(@F)).
25209 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25210 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25211 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25212
25213 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25214
25215 * elf/Makefile (tests): Add tst-main1.
25216 (modules-names): Add tst-main1mod.
25217 ($(objpfx)tst-main1): New.
25218 (CRT-tst-main1): Likewise.
25219 (LDFLAGS-tst-main1): Likewise.
25220 (LDLIBS-tst-main1): Likewise.
25221 (tst-main1mod.so-no-z-defs): Likewise.
25222 * elf/tst-main1.c: New file.
25223 * elf/tst-main1mod.c: Likewise.
25224
25225 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25226
25227 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25228
25229 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25230
25231 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25232 (fma): Define using libm_alias_double.
25233 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25234 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25235 <math_ldbl_opt.h>.
25236 (fmal): Do not define as compat symbol here.
25237 * sysdeps/alpha/fpu/s_fma.c: New file.
25238
25239 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25240
25241 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25242
25243 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25244
25245 [BZ #22229]
25246 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25247 <math_ldbl_opt.h>
25248 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25249 and libc.
25250 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25251 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25252 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25253 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25255 Include <math_ldbl_opt.h>
25256 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25257 and libc.
25258 (compat_symbol): Undefine and redefine.
25259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25260 <math_ldbl_opt.h>
25261 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25262 (compat_symbol): Undefine and redefine.
25263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25264 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25265 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25266 GLIBC_2_1 for libm.
25267 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25268 GLIBC_2.0 copysignl symbol.
25269 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25270 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25271
25272 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25273
25274 2017-10-04 Florian Weimer <fweimer@redhat.com>
25275
25276 * scripts/check-local-headers.sh: Ignore nspr4 header file
25277 directory in addition to nspr.
25278
25279 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25280
25281 [BZ #17956]
25282 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25283 * configure: Regenerate.
25284 * crypt/Makefile (nss-cpp-flags): New variable.
25285 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25286 (CPPFLAGS-md5-crypt.c): Use it.
25287 * scripts/check-local-headers.sh: Ignore nspr header file
25288 directory.
25289
25290 2017-10-04 Andreas Schwab <schwab@suse.de>
25291
25292 * nis/Makefile (services): Remove compat.
25293 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25294 ($(objpfx)libnss_compat.so): Remove rule.
25295 * nis/Versions (libnss_compat): Remove.
25296 * nss/Makefile (services): Add compat.
25297 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25298 * nss/Versions (libnss_compat): Define.
25299 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25300 Don't include <rpc/types.h>. Replace bool_t by bool.
25301 * nss/nss_compat/compat-initgroups.c: Likewise.
25302 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25303 instead of <rpcsrv/ypclnt.h>.
25304 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25305 yp_get_default_domain.
25306 * nss/nss_compat/compat-pwd.c: Likewise.
25307 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25308 yp_get_default_domain.
25309 * nss/nss_compat/nisdomain.c: New file.
25310 * nss/nss_compat/nisdomain.h: Likewise.
25311
25312 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25313
25314 [BZ #22244]
25315 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25316 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25317
25318 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25319
25320 [BZ #22243]
25321 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25322 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25323
25324 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25325
25326 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25327 "movl main@GOTOFF(%ebx), %eax".
25328
25329 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25330
25331 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25332 allow undefined _DYNAMIC in PIE libc.a.
25333 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25334 Likewse.
25335
25336 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25337
25338 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25339 check _DYNAMIC.
25340
25341 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25342
25343 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25344 check _DYNAMIC.
25345
25346 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25347
25348 * math/test-math-iscanonical.cc (error): Replace bool with int.
25349
25350 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25351
25352 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25353 (modf): Define using libm_alias_double, only if [!__modf].
25354 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25355 <libm-alias-double.h>.
25356 (modf): Define using libm_alias_double, only if [!__modf].
25357 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25358 compat symbol here.
25359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25360 (weak_alias): Do not undefine and redefine.
25361 (strong_alias): Likewise.
25362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25363 (weak_alias): Likewise.
25364 (strong_alias): Likewise.
25365
25366 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25367 (logb): Define using libm_alias_double, only if [!__logb].
25368 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25369 <libm-alias-double.h>.
25370 (logb): Define using libm_alias_double, only if [!__logb].
25371 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25372 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25373 (weak_alias): Do not undefine and redefine.
25374 (strong_alias): Likewise.
25375 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25376 (weak_alias): Likewise.
25377 (strong_alias): Likewise.
25378
25379 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25380
25381 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25382 Check SHARED instead PIC.
25383
25384 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25385
25386 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25387 [!__fmaf] (fmaf): Define using libm_alias_float.
25388
25389 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25390 (frexp): Define using libm_alias_double.
25391 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25392 <libm-alias-double.h>.
25393 (frexp): Define using libm_alias_double.
25394 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25395 compat symbol here.
25396
25397 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25398
25399 [BZ #22235]
25400 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25401 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25402 (CFLAGS-test-math-iscanonical.cc): New variable.
25403 * math/test-math-iscanonical.cc: New file.
25404 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25405 Provide a C++ implementation based on function overloading,
25406 rather than using __MATH_TG, which uses C-only builtins.
25407 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25408 Likewise.
25409 * sysdeps/powerpc/powerpc64le/Makefile
25410 (CFLAGS-test-math-iscanonical.cc): New variable.
25411
25412 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25413
25414 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25415 (ceil): Define using libm_alias_double.
25416 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25417 (floor): Define using libm_alias_double.
25418 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25419 <libm-alias-double.h>.
25420 (llround): Define using libm_alias_double.
25421 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25422 <libm-alias-double.h>.
25423 (lround): Define using libm_alias_double.
25424 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25425 <libm-alias-double.h>.
25426 (nearbyint): Define using libm_alias_double.
25427 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25428 <libm-alias-double.h>.
25429 (remquo): Define using libm_alias_double.
25430 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25431 (rint): Define using libm_alias_double.
25432 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25433 (round): Define using libm_alias_double.
25434 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25435 (trunc): Define using libm_alias_double.
25436 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25437 <libm-alias-double.h>.
25438 (ceil): Define using libm_alias_double.
25439 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25440 <libm-alias-double.h>.
25441 (floor): Define using libm_alias_double.
25442 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25443 <libm-alias-double.h>.
25444 (llround): Define using libm_alias_double.
25445 [_LP64] (lround): Likewise.
25446 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25447 <libm-alias-double.h>.
25448 [!_LP64] (lround): Define using libm_alias_double.
25449 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25450 <libm-alias-double.h>.
25451 (nearbyint): Define using libm_alias_double.
25452 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25453 <libm-alias-double.h>.
25454 (remquo): Define using libm_alias_double.
25455 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25456 <libm-alias-double.h>.
25457 (rint): Define using libm_alias_double.
25458 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25459 <libm-alias-double.h>.
25460 (round): Define using libm_alias_double.
25461 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25462 <libm-alias-double.h>.
25463 (trunc): Define using libm_alias_double.
25464 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25465 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25466 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25467 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25468 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25469 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25470 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25471 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25472 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25473
25474 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25475
25476 * math/w_remainder.c: New file.
25477 * math/w_remainderf.c: New file.
25478 * math/w_remainderl.c: New file.
25479
25480 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25481
25482 * elf/rtld.c (BOOTSTRAP_MAP): New.
25483 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25484 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25485 Likewise.
25486 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25487 Likewise.
25488 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25489 Likewise.
25490
25491 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25492
25493 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25494 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25495 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25496 rtld_hidden_data_ver): Define to empty.
25497 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25498 __assert_perror_fail): Likewise.
25499 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25500 (__rewinddir): Likewise.
25501 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25502 (__profile_frequency): Likewise.
25503 * include/setjmp.h (__sigsetjmp): Likewise.
25504 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25505 __libc_sigaction): Likewise.
25506 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25507 not set hidden attribute.
25508 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25509 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25510 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25511 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25512 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25513 __fxstatat64): Likewise.
25514 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25515 (__uname): Likewise.
25516 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25517 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25518 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25519 (NO_RTLD_HIDDEN): Set.
25520 * sysdeps/mach/hurd/configure: Refresh.
25521 * config.h.in: Refresh.
25522
25523 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25524
25525 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25526 (atan): Define using libm_alias_double.
25527 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25528 (tan): Define using libm_alias_double.
25529 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25530 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25531
25532 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25533 define as weak alias of __atan. Do not define any aliases if
25534 [__atan].
25535 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25536 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25537 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25538 as weak alias of __tan. Do not define any aliases if [__tan].
25539 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25540 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25541 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25542 __atan.
25543 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25544 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25545 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25546 and define as weak alias of __atan.
25547 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25548 __atan.
25549 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25550 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25551 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25552 define as weak alias of __tan.
25553
25554 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25555
25556 * math/w_lgamma.c: New file.
25557 * math/w_lgammaf.c: New file.
25558 * math/w_lgammal.c: New file.
25559
25560 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25561
25562 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25563 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25564 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25565 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25566 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25567 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25568 * sysdeps/i386/fpu/w_log2f.c: New file.
25569 * sysdeps/i386/fpu/w_logf.c: New file.
25570 * sysdeps/i386/fpu/w_powf.c: New file.
25571 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25572 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25573 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25574
25575 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25576 H.J. Lu <hongjiu.lu@intel.com>
25577
25578 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25579 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25580 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25581 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25582 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25583 the new expf code.
25584 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25585 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25586 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25587 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25588 * sysdeps/i386/fpu/w_exp2f.c: New file.
25589 * sysdeps/i386/fpu/w_expf.c: New file.
25590 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25591 * sysdeps/x86_64/fpu/w_expf.c: New file.
25592
25593 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25594
25595 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25596 (log2f): Likewise.
25597 (powf): Likewise.
25598 * math/w_log2f.c: New file.
25599 * math/w_logf.c: New file.
25600 * math/w_powf.c: New file.
25601 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25602 * math/w_logf_compat.c (__logf_compat): Likewise.
25603 * math/w_powf_compat.c (__powf_compat): Likewise.
25604 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25605 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25606 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25607 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25608 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25609 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25610 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25611 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25612 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25613 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25614 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25615 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25616 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25617 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25618 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25620 Likewise.
25621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25622 Likewise.
25623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25624 Likewise.
25625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25626 Likewise.
25627 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25628 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25629 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25630 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25631 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25632 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25633 Likewise.
25634 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25635 Likewise.
25636 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25637 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25638 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25639
25640 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25641
25642 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25643 (sysdep_routines): Add memrchr_power8.
25644 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25645 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25646 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25647 New file.
25648 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25649 (memrchr): Add __memrchr_power8 to ifunc list.
25650 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25651
25652 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25653
25654 [BZ #18822]
25655 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25656 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25657 libc_hidden_def.
25658 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25659 (__posix_fallocate64_l64): Likewise.
25660
25661 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25662
25663 [BZ #18822]
25664 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25665 (__sched_setaffinity_new): Add libc_hidden_proto and
25666 libc_hidden_def.
25667
25668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25669
25670 [BZ #18822]
25671 * include/glob.h (__glob64): Add libc_hidden_proto.
25672 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25673 libc_hidden_def.
25674
25675 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25676
25677 [BZ #18822]
25678 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25679 attribute_hidden.
25680
25681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25682
25683 [BZ #18822]
25684 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25690 libc_hidden_def.
25691
25692 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25693
25694 [BZ #18822]
25695 * csu/version.c (__libc_print_version): Add attribute_hidden.
25696
25697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 [BZ #18822]
25700 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25701
25702 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25703
25704 [BZ #18822]
25705 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25706
25707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25708
25709 [BZ #18822]
25710 * nscd/nscd_helper.c (__nis_hash): New prototype.
25711
25712 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25713
25714 [BZ #18822]
25715 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25716 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25717 libc_hidden_def.
25718 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25719 * termios/tcgetattr.c (__tcgetattr): Likewise.
25720
25721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25722
25723 [BZ #18822]
25724 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25725 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25726 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25727 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25728 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25729
25730 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25731
25732 [BZ #18822]
25733 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25734
25735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25736
25737 [BZ #18822]
25738 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25739 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25740
25741 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25742
25743 [BZ #18822]
25744 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25745
25746 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25747
25748 [BZ #18822]
25749 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25750 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25751
25752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25753
25754 [BZ #18822]
25755 * include/ifreq.h: New file.
25756 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25757 (__ifreq): Likewise.
25758 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25759 (__ifreq): Likewise.
25760
25761 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25762
25763 [BZ #18822]
25764 * include/idna.h: New file.
25765 * inet/getnameinfo.c: Include <idna.h> instead of
25766 <libidn/idna.h>.
25767 (__idna_to_unicode_lzlz): Removed.
25768 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25769 <libidn/idna.h>.
25770 (__idna_to_ascii_lz): Removed.
25771 (__idna_to_unicode_lzlz): Likewise.
25772
25773 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25774
25775 [BZ #18822]
25776 * include/plural-exp.h: New file.
25777 * intl/plural-exp.c: Include <plural-exp.h> instead of
25778 "plural-exp.h".
25779
25780 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25781
25782 [BZ #18822]
25783 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25784 "getsourcefilter.h".
25785 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25786 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25787 "getsourcefilter.h".
25788 (__get_sol): Removed.
25789
25790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25791
25792 [BZ #18822]
25793 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25794 to ...
25795 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25796
25797 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25798
25799 [BZ #18822]
25800 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25801 attribute_hidden.
25802
25803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25804
25805 [BZ #18822]
25806 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25807
25808 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25809
25810 [BZ #18822]
25811 * include/search.h (__tdestroy): Add libc_hidden_proto.
25812 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25813
25814 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25815
25816 [BZ #18822]
25817 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25818
25819 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25820
25821 [BZ #18822]
25822 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25823 attribute_hidden.
25824
25825 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25826
25827 [BZ #18822]
25828 * include/signal.h (__kill): Add libc_hidden_proto.
25829 (__sigblock): Likewise.
25830 (__sigprocmask): Likewise.
25831 (__sigaltstack): Likewise.
25832 * signal/kill.c (__kill): Add libc_hidden_def.
25833 * signal/sigblock.c (__sigblock): Likewise.
25834 * signal/sigprocmask.c (__sigprocmask): Likewise.
25835 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25836 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25837 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25838 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25839 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25840 Likewise.
25841 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25842 Likewise.
25843 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25844 (__sigprocmask): Likewise.
25845 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25846 Likewise.
25847 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25848 (__sigprocmask): Likewise.
25849 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25850 Likewise.
25851
25852 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25853
25854 [BZ #18822]
25855 * include/string.h (__strsep): Add libc_hidden_proto.
25856 * string/strsep.c (__strsep): Add libc_hidden_def.
25857
25858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25859
25860 [BZ #18822]
25861 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25862 attribute_hidden.
25863 (__spawni): Likewise.
25864
25865 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25866
25867 [BZ #18822]
25868 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25869 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25870 libc_hidden_def.
25871
25872 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25873
25874 [BZ #18822]
25875 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25876
25877 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25878
25879 [BZ #18822]
25880 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25881 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25882 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25883 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25884 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25885 Likewise.
25886 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25887 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25888
25889 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25890
25891 [BZ #18822]
25892 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25893 (__dcigettext): Likewise.
25894
25895 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25896
25897 [BZ #18822]
25898 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25899 libc_hidden_proto.
25900 (__get_nprocs): Likewise.
25901 (__get_phys_pages): Likewise.
25902 (__get_avphys_pages): Likewise.
25903 (__get_child_max): Add attribute_hidden.
25904 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25905 (__get_nprocs): Likewise.
25906 (__get_phys_pages): Likewise.
25907 (__get_avphys_pages): Likewise.
25908 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25909 libc_hidden_def.
25910 (__get_nprocs): Likewise.
25911 (__get_phys_pages): Likewise.
25912 (__get_avphys_pages): Likewise.
25913 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25914 libc_hidden_def.
25915 (__get_nprocs_conf): Likewise.
25916 (__get_phys_pages): Likewise.
25917 (__get_avphys_pages): Likewise.
25918
25919 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25920
25921 [BZ #18822]
25922 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25923 attribute_hidden.
25924 (__netlink_close): Likewise.
25925 (__netlink_free_handle): Likewise.
25926 (__netlink_request): Likewise.
25927
25928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25929
25930 [BZ #18822]
25931 * include/rpc/rpc.h (__rpc_thread_variables): Add
25932 attribute_hidden.
25933 (__rpc_thread_svc_cleanup): Likewise.
25934 (__rpc_thread_clnt_cleanup): Likewise.
25935 (__rpc_thread_key_cleanup): Likewise.
25936
25937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25938
25939 [BZ #18822]
25940 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25941 (__writev): Likewise.
25942 * misc/readv.c (__readv): Add libc_hidden_def.
25943 * misc/writev.c (__writev): Likewise.
25944 * sysdeps/posix/readv.c (__readv): Likewise.
25945 * sysdeps/posix/writev.c (__writev): Likewise.
25946 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25947 (__readv): Likewise.
25948 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25949 (__writev): Likewise.
25950
25951 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25952
25953 [BZ #18822]
25954 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25955 (__regcomp): Add libc_hidden_proto.
25956 (__regexec): Likewise.
25957 (__regfree): Likewise.
25958 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25959 (__regfree): Likewise.
25960 * posix/regexec.c (__regexec): Likewise.
25961
25962 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25963
25964 [BZ #18822]
25965 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25966 (__getutent): Likewise.
25967 (__getutid): Likewise.
25968 (__getutline): Likewise.
25969 (__pututline): Likewise.
25970 (__getutent_r): Likewise.
25971 (__getutid_r): Likewise.
25972 (__getutline_r): Likewise.
25973 (__utmpname): Add attribute_hidden.
25974 (__setutent): Likewise.
25975 (__endutent): Likewise.
25976 * login/getutent.c (__getutent): Add libc_hidden_def.
25977 * login/getutent_r.c (__getutent_r): Likewise.
25978 (__pututline): Likewise.
25979 * login/getutid.c (__getutid): Likewise.
25980 * login/getutid_r.c (__getutid_r): Likewise.
25981 * login/getutline.c (__getutline): Likewise.
25982 * login/getutline_r.c (__getutline_r): Likewise.
25983 * login/updwtmp.c (__updwtmp): Likewise.
25984
25985 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25986
25987 [BZ #18822]
25988 * include/dirent.h (__opendir): Always add attribute_hidden.
25989 (__fdopendir): Likewise.
25990 (__closedir): Likewise.
25991 (__readdir): Likewise.
25992 (__readdir64): Add libc_hidden_proto.
25993 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25994 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25995 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25996 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25997 New alias.
25998
25999 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26000
26001 [BZ #18822]
26002 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26003 * include/netdb.h (__gethostbyaddr_r): Likewise.
26004 (__gethostbyname_r): Likewise.
26005 (__gethostbyname2_r): Likewise.
26006 (__getnetbyaddr_r): Likewise.
26007 (__getnetbyname_r): Likewise.
26008 (__getservbyname_r): Likewise.
26009 (__getservbyport_r): Likewise.
26010 (__getprotobyname_r): Likewise.
26011 (__getprotobynumber_r): Likewise.
26012 (__getnetgrent_r): Likewise.
26013 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26014 (__getrpcbynumber_r): Likewise.
26015 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26016
26017 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26018
26019 [BZ #18822]
26020 * include/stdio.h (__fcloseall): Add attribute_hidden.
26021 (__getline): Likewise.
26022 (__path_search): Likewise.
26023 (__gen_tempname): Likewise.
26024 (__libc_message): Likewise.
26025 (__flockfile): Likewise.
26026 (__funlockfile): Likewise.
26027 (__fxprintf): Likewise.
26028 (__fxprintf_nocancel): Likewise.
26029
26030 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26031
26032 [BZ #18822]
26033 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26034 (__sgetsgent_r): Likewise.
26035
26036 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26037
26038 [BZ #18822]
26039 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26040 (__statfs64): Likewise.
26041 (__fstatfs64): Likewise.
26042 * include/sys/statvfs.h (__statvfs64): Likewise.
26043 (__fstatvfs64): Likewise.
26044 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26045 (__statfs_filesize_max): Likewise.
26046 (__statfs_symlinks): Likewise.
26047 (__statfs_chown_restricted): Likewise.
26048
26049 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26050
26051 [BZ #18822]
26052 * include/time.h (__tzstring): Add attribute_hidden.
26053 (__tzfile_read): Likewise.
26054 (__tzfile_compute): Likewise.
26055 (__tzfile_default): Likewise.
26056 (__tzset_parse_tz): Likewise.
26057 (__offtime): Likewise.
26058 (__asctime_r): Likewise.
26059 (__tzset): Likewise.
26060 (__tz_convert): Likewise.
26061 (__getdate_r): Likewise.
26062 (__getclktck): Likewise.
26063
26064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26065
26066 [BZ #18822]
26067 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26068 (__nscd_unmap): Likewise.
26069 (__nscd_cache_search): Likewise.
26070 (__nscd_get_nl_timestamp): Likewise.
26071 (__nscd_getpwnam_r): Likewise.
26072 (__nscd_getpwuid_r): Likewise.
26073 (__nscd_getgrnam_r): Likewise.
26074 (__nscd_getgrgid_r): Likewise.
26075 (__nscd_gethostbyname_r): Likewise.
26076 (__nscd_gethostbyname2_r): Likewise.
26077 (__nscd_gethostbyaddr_r): Likewise.
26078 (__nscd_getai): Likewise.
26079 (__nscd_getgrouplist): Likewise.
26080 (__nscd_getservbyname_r): Likewise.
26081 (__nscd_getservbyport_r): Likewise.
26082 (__nscd_innetgr): Likewise.
26083 (__nscd_setnetgrent): Likewise.
26084
26085 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26086
26087 [BZ #18822]
26088 * include/gmp.h: Declare internal functions only if _ISOMAC is
26089 undefined.
26090 (__mpn_extract_double): Add attribute_hidden.
26091 (__mpn_extract_long_double): Likewise.
26092 (__mpn_extract_float128): Likewise.
26093 (__mpn_construct_float): Likewise.
26094 (__mpn_construct_double): Likewise.
26095 (__mpn_construct_long_double): Likewise.
26096 (__mpn_construct_float128): Likewise.
26097 (mpn_add_1): Likewise.
26098 (mpn_addmul_1): Likewise.
26099 (mpn_add_n): Likewise.
26100 (mpn_cmp): Likewise.
26101 (mpn_divrem): Likewise.
26102 (mpn_lshift): Likewise.
26103 (mpn_mul): Likewise.
26104 (mpn_mul_1): Likewise.
26105 (mpn_rshift): Likewise.
26106 (mpn_sub_1): Likewise.
26107 (mpn_submul_1): Likewise.
26108 (mpn_sub_n): Likewise.
26109
26110 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26111
26112 [BZ #18822]
26113 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26114 (__wcscat): Likewise.
26115 (__btowc): Likewise.
26116 (__wcrtomb): Likewise.
26117 (__mbsrtowcs): Likewise.
26118 (__wcsrtombs): Likewise.
26119 (__mbsnrtowcs): Likewise.
26120 (__wcsnrtombs): Likewise.
26121 (__wcsncpy): Likewise.
26122 (__wcpncpy): Likewise.
26123 (__wmemcpy): Likewise.
26124 (__wmempcpy): Likewise.
26125 (__wmemmove): Likewise.
26126 (__wcschrnul): Likewise.
26127 (__vfwscanf): Likewise.
26128 (__vswprintf): Likewise.
26129 (__fwprintf): Likewise.
26130 (__vfwprintf): Likewise.
26131
26132 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26133
26134 [BZ #18822]
26135 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26136 (__getgrgid_r): Likewise.
26137 (__getgrnam_r): Likewise.
26138 * include/pwd.h (__getpwuid_r): Likewise.
26139 (__getpwnam_r): Likewise.
26140 (__fgetpwent_r): Likewise.
26141 * include/shadow.h (__getspnam_r): Likewise.
26142 (__sgetspent_r): Likewise.
26143 (__fgetspent_r): Likewise.
26144
26145 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26146
26147 [BZ #18822]
26148 * include/unistd.h (__access): Add attribute_hidden.
26149 (__lseek64): Likewise.
26150 (__libc_pread64): Likewise.
26151 (__pipe2): Likewise.
26152 (__sleep): Likewise.
26153 (__chdir): Likewise.
26154 (__fchdir): Likewise.
26155 (__getcwd): Likewise.
26156 (__rmdir): Likewise.
26157 (__execvpe): Likewise.
26158 (__execve): Likewise.
26159 (__setsid): Likewise.
26160 (__getuid): Likewise.
26161 (__geteuid): Likewise.
26162 (__getgid): Likewise.
26163 (__getegid): Likewise.
26164 (__getgroups): Likewise.
26165 (__group_member): Likewise.
26166 (__ttyname_r): Likewise.
26167 (__isatty): Likewise.
26168 (__readlink): Likewise.
26169 (__unlink): Likewise.
26170 (__gethostname): Likewise.
26171 (__profil): Likewise.
26172 (__getdtablesize): Likewise.
26173 (__brk): Likewise.
26174 (__ftruncate): Likewise.
26175 (__ftruncate64): Likewise.
26176
26177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26178
26179 [BZ #18822]
26180 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26181 * argp/argp-fs-xinl.c: Likewise.
26182 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26183 * argp/argp-parse.c: Include <argp.h>.
26184 * argp/argp-xinl.c: Likewise.
26185 * include/argp-fmtstream.h: New file.
26186 * include/argp.h (__argp_error): Add attribute_hidden.
26187 (__argp_failure): Likewise.
26188 (__argp_input): Likewise.
26189 (__argp_state_help): Likewise.
26190
26191 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26192
26193 [BZ #18822]
26194 * include/wchar.h (____wcstof_l_internal): New prototype.
26195 (____wcstod_l_internal): Likewise.
26196 (____wcstold_l_internal): Likewise.
26197 (____wcstol_l_internal): Likewise.
26198 (____wcstoul_l_internal): Likewise.
26199 (____wcstoll_l_internal): Likewise.
26200 (____wcstoull_l_internal): Likewise.
26201 (____wcstof128_l_internal): Likewise.
26202 * sysdeps/ieee754/float128/wcstof128.c
26203 (____wcstof128_l_internal): Removed.
26204 * sysdeps/ieee754/float128/wcstof128_l.c
26205 (____wcstof128_l_internal): Likewise.
26206 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26207 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26208 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26209 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26210 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26211 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26212 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26213 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26214 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26215 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26216
26217 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26218
26219 [BZ #18822]
26220 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26221 instead of <sys/statvfs.h>.
26222 (__internal_statvfs): Removed.
26223 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26224 instead of <sys/statvfs.h>.
26225 (__internal_statvfs64): Removed.
26226 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26227 "internal_statvfs.h" instead of <sys/statvfs.h>.
26228 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26229 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26230 instead of <sys/statvfs.h>.
26231 (__internal_statvfs): Removed.
26232 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26233 instead of <sys/statvfs.h>.
26234 (__internal_statvfs64): Removed.
26235
26236 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26237
26238 [BZ #18822]
26239 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26240 (__gconv_close): Likewise.
26241 (__gconv): Likewise.
26242 (__gconv_find_transform): Likewise.
26243 (__gconv_lookup_cache): Likewise.
26244 (__gconv_compare_alias_cache): Likewise.
26245 (__gconv_load_cache): Likewise.
26246 (__gconv_get_path): Likewise.
26247 (__gconv_close_transform): Likewise.
26248 (__gconv_release_cache): Likewise.
26249 (__gconv_find_shlib): Likewise.
26250 (__gconv_release_shlib): Likewise.
26251 (__gconv_get_builtin_trans): Likewise.
26252 (__gconv_compare_alias): Likewise.
26253 * include/dlfcn.h (_dlerror_run): Likewise.
26254 * include/stdio.h (__fortify_fail_abort): Likewise.
26255 * include/time.h (__tz_compute): Likewise.
26256 (__strptime_internal): Likewise.
26257 * intl/gettextP.h (_nl_find_domain): Likewise.
26258 (_nl_load_domain): Likewise.
26259 (_nl_find_msg): Likewise.
26260 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26261 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26262 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26263 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26264 (__gai_find_request): Likewise.
26265 (__gai_remove_request): Likewise.
26266 (__gai_notify): Likewise.
26267 (__gai_notify_only): Likewise.
26268 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26269 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26270 (_dl_non_dynamic_init): Likewise.
26271 (_dl_aux_init): Likewise.
26272 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26273 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26274 Likewise.
26275 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26276 (__wcsmbs_clone_conv): Likewise.
26277 (__wcsmbs_named_conv): Likewise.
26278
26279 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26280
26281 [BZ #18822]
26282 * include/stdlib.h (__random): Add attribute_hidden.
26283 (__random_r): Likewise.
26284 (__srandom_r): Likewise.
26285 (__initstate_r): Likewise.
26286 (__setstate_r): Likewise.
26287 (__erand48_r): Likewise.
26288 (__nrand48_r): Likewise.
26289 (__jrand48_r): Likewise.
26290 (__srand48_r): Likewise.
26291 (__seed48_r): Likewise.
26292 (__lcong48_r): Likewise.
26293 (__drand48_iterate): Likewise.
26294 (__setenv): Likewise.
26295 (__unsetenv): Likewise.
26296 (__clearenv): Likewise.
26297 (__ptsname_r): Likewise.
26298 (__posix_openpt): Likewise.
26299 (__add_to_environ): Likewise.
26300 (__realpath): Add libc_hidden_proto.
26301 (__ecvt_r): Likewise.
26302 (__fcvt_r): Likewise.
26303 (__qecvt_r): Likewise.
26304 (__qfcvt_r): Likewise.
26305 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26306 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26307
26308 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26309
26310 [BZ #18822]
26311 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26312 * include/time.h (__mktime_internal): Likewise.
26313 * libio/iolibio.h (__fopen_internal): Likewise.
26314
26315 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26316
26317 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26318 pointer in frame.
26319 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26320 Correct offset used to restore PIC register.
26321
26322 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26323
26324 [BZ libc/22165]
26325 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26326 code to load address of __getcontext_ret when generating PIC code.
26327
26328 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26329
26330 * elf/Makefile (tests-static-internal): Add
26331 tst-tls1-static-non-pie.
26332 (LDFLAGS-tst-tls1-static-non-pie): New.
26333 * elf/tst-tls1-static-non-pie.c: New file.
26334
26335 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26336
26337 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26338 (asinh): Define using libm_alias_double.
26339 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26340 (cbrt): Define using libm_alias_double.
26341 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26342 <libm-alias-double.h>.
26343 (copysign): Define using libm_alias_double.
26344 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26345 (erf): Define using libm_alias_double.
26346 (erfc): Likewise.
26347 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26348 (expm1): Define using libm_alias_double.
26349 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26350 (fabs): Define using libm_alias_double.
26351 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26352 libm_alias_double.
26353 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26354 <libm-alias-double.h>.
26355 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26356 libm_alias_double.
26357 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26358 <libm-alias-double.h>.
26359 (getpayload): Define using libm_alias_double.
26360 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26361 <libm-alias-double.h>.
26362 (llrint): Define using libm_alias_double.
26363 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26364 (lrint): Define using libm_alias_double.
26365 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26366 <libm-alias-double.h>.
26367 (nextup): Define using libm_alias_double.
26368 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26369 <libm-alias-double.h>.
26370 (roundeven): Define using libm_alias_double.
26371 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26372 libm_alias_double.
26373 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26374 <libm-alias-double.h>.
26375 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26376 using libm_alias_double.
26377 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26378 (cos): Define using libm_alias_double.
26379 (sin): Likewise.
26380 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26381 <libm-alias-double.h>.
26382 (sincos): Define using libm_alias_double.
26383 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26384 (tanh): Define using libm_alias_double.
26385 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26386 <libm-alias-double.h>.
26387 (totalorder): Define using libm_alias_double.
26388 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26389 <libm-alias-double.h>.
26390 (totalordermag): Define using libm_alias_double.
26391 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26392 libm_alias_double.
26393 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26394 libm_alias_double.
26395 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26396 <libm-alias-double.h>.
26397 (getpayload): Define using libm_alias_double.
26398 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26399 <libm-alias-double.h>.
26400 (roundeven): Define using libm_alias_double.
26401 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26402 <libm-alias-double.h>.
26403 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26404 <libm-alias-double.h>.
26405 (totalorder): Define using libm_alias_double.
26406 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26407 <libm-alias-double.h>.
26408 (totalordermag): Define using libm_alias_double.
26409 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26410 libc compat symbol here.
26411 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26412 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26413 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26414 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26415 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26416 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26417 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26418 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26419 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26420 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26421
26422 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26423
26424 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26425 _dl_relocate_static_pie instead of _dl_start to compute load
26426 address in static PIE. Return 0 if _DYNAMIC is undefined for
26427 static executable.
26428
26429 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26430
26431 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26432 _DYNAMIC is undefined for static executable.
26433
26434 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26435
26436 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26437
26438 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26439
26440 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26441
26442 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26443
26444 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26445 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26446 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26447 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26448 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26449 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26450 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26451 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26452 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26453 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26454 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26455 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26456 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26457 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26458 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26459 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26460 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26461
26462 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26463
26464 * math/bits/cmathcalls.h (cimag): Remove inline.
26465 (creal): Remove inline.
26466 (conj): Remove inline.
26467
26468 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26469
26470 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26471 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26472 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26473 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26474 (issignalingf_inline): Likewise.
26475 (POWF_LOG2_TABLE_BITS): Likewise.
26476 (POWF_LOG2_POLY_ORDER): Likewise.
26477 (POWF_SCALE_BITS): Likewise.
26478 (POWF_SCALE): Likewise.
26479 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26480 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26481 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26482
26483 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26484
26485 * math/Makefile (type-float-routines): Add e_log2f_data.
26486 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26487 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26488 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26489 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26490 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26491 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26492 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26493
26494 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26495
26496 * math/Makefile (type-float-routines): Add e_logf_data.
26497 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26498 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26499 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26500 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26501 * sysdeps/i386/fpu/e_logf_data.c: New file.
26502 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26503 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26504
26505 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26506
26507 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26508 undefined _DYNAMIC in PIE libc.a.
26509 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26510 Likewse.
26511
26512 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26513
26514 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26515 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26516 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26517 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26518 (__signbit): Remove.
26519 (__signbitl): Remove.
26520 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26521 (__signbit): Remove.
26522 (__signbitl): Remove.
26523 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26524 (__signbit): Remove.
26525 (__signbitl): Remove.
26526 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26527 (__signbit): Remove.
26528 (__signbitl): Remove.
26529 * sysdeps/tile/bits/mathinline.h: Delete file.
26530 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26531 (__signbit): Remove.
26532 (__signbitl): Remove.
26533
26534 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26535
26536 * math/math.h: Improve handling of C99 isgreater macros.
26537 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26538 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26539 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26540 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26541 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26542
26543 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26544
26545 * sysdeps/aarch64/libm-test-ulps: Update.
26546
26547 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26548
26549 [BZ #22225]
26550 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26551 math_opt_barrier on argument when doing arithmetic on it.
26552 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26553 Likewise. Use math_force_eval not math_opt_barrier after
26554 arithmetic.
26555 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26556 math_opt_barrier on argument when doing arithmetic on it.
26557 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26558 Likewise.
26559
26560 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26561
26562 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26563 libc_hidden_def.
26564 (__freeifaddrs): Likewise.
26565
26566 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26567
26568 * include/dirent.h (__dirfd): New declaration.
26569 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26570 alias.
26571 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26572 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26573 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26574 * include/unistd.h (__revoke): New declaration.
26575 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26576 alias.
26577 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26578 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26579 revoke.
26580 * include/dirent.h (__seekdir): New declaration.
26581 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26582 redefine as weak alias.
26583 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26584 of seekdir.
26585 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26586 and use libc_hidden_def on them.
26587 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26588 them.
26589 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26590 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26591 instead of getifaddrs and freeifaddrs.
26592
26593 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26594
26595 [BZ #18822]
26596 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26597 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26598 (__dso_handle): Remove declaration.
26599 * dlfcn/tstatexit.c (__dso_handle): Removed.
26600 (main): Don't check __dso_handle.
26601 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26602 (main): Don't check __dso_handle.
26603 * include/dso_handle.h: New file.
26604 * malloc/mtrace.c: Include <dso_handle.h>.
26605 (mtrace): Pass __dso_handle directly.
26606 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26607 (__dso_handle): Remove declaration.
26608 (__pthread_atfork): Pass __dso_handle directly.
26609 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26610 (__dso_handle): Removed.
26611 * posix/wordexp-test.c: Include <dso_handle.h>.
26612 (__dso_handle): Remove declaration.
26613 (__app_register_atfork): Pass __dso_handle directly.
26614 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26615 (__dso_handle): Remove declaration.
26616 (at_quick_exit): Pass __dso_handle directly.
26617 * stdlib/atexit.c: Include <dso_handle.h>.
26618 (__dso_handle): Remove declaration.
26619 (atexit): Pass __dso_handle directly.
26620 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26621 (__dso_handle): Removed.
26622
26623 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26624
26625 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26626 using VDSO.
26627
26628 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26629
26630 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26631 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26632 values to correct default value for given type.
26633
26634 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26635
26636 [BZ #22101]
26637 * elf/Makefile (tests): Add tst-debug1.
26638 ($(objpfx)tst-debug1): New.
26639 ($(objpfx)tst-debug1.out): Likewise.
26640 ($(objpfx)tst-debug1mod1.so): Likewise.
26641 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26642 with p_filesz == 0.
26643 * elf/tst-debug1.c: New file.
26644
26645 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26646
26647 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26648 Define using __ifunc.
26649
26650 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26651
26652 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26653 exp2f() values.
26654
26655 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26656
26657 [BZ #22156]
26658 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26659
26660 2017-09-26 Florian Weimer <fweimer@redhat.com>
26661
26662 * resolv/Makefile (tests-internal): Fix typo in comment.
26663
26664 2017-09-26 Florian Weimer <fweimer@redhat.com>
26665
26666 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26667
26668 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26669
26670 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26671 Use an union instead of a max_align_t array for __space,
26672 so that __space is the same size on all platforms.
26673 * malloc/scratch_buffer_grow_preserve.c
26674 (__libc_scratch_buffer_grow_preserve): Likewise.
26675
26676 [BZ #22183]
26677 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26678 version to 2.
26679 * posix/Makefile (routines): Add glob-lstat-compat and
26680 glob64-lstat-compat.
26681 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26682 * posix/glob-lstat-compat.c: New file.
26683 * posix/glob64-lstat-compat.c: Likewise.
26684 * posix/tst-glob_lstat_compat.c: Likewise.
26685 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26686 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26687 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26688 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26689 Likewise.
26690 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26691 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26692 * posix/glob.c (glob_lstat): New function.
26693 (glob): Rename to __glob and add versioned symbol to 2.27.
26694 (glob_in_dir): Use glob_lstat.
26695 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26696 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26697 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26698 2.27.
26699 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26700 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26701 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26702 gl_lstat on glob call.
26703 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26704 and glob64 symbols.
26705 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26707 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26709 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26710 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26711 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26712 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26714 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26715 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26718 Likewise.
26719 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26723 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26727 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26728 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26729 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26730 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26731
26732 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26733
26734 * configure.ac (AS): Require binutils 2.25 or later.
26735 * configure: Regenerated.
26736
26737 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26738
26739 [BZ #22207]
26740 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26741 VM size.
26742
26743 2017-09-25 DJ Delorie <dj@redhat.com>
26744
26745 [BZ #22161]
26746 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26747 resetting timeout.
26748
26749 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26750
26751 * sysdeps/ieee754/dbl-64/sincos32.h
26752 [SINCCOS32_H]: Remove define.
26753 [SINCOS32_H]: Define.
26754
26755 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26756
26757 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26758 (exp2f): Likewise.
26759 * math/w_exp2f.c: New file.
26760 * math/w_expf.c: New file.
26761 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26762 * math/w_expf_compat.c (__expf_compat): Likewise.
26763 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26764 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26765 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26766 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26767 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26768 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26769 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26770 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26771 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26772 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26773 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26774 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26775 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26776 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26777 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26778 Likewise.
26779 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26780 Likewise.
26781 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26782 Likewise.
26783 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26784 Likewise.
26785 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26786 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26787 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26788 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26789 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26790 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26791 Likewise.
26792 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26793 Likewise.
26794 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26795 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26796 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26797
26798 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26799
26800 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26801 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26802 (roundtoint, converttoint): Likewise.
26803 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26804 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26805 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26806 * sysdeps/ieee754/flt-32/math_config.h: New file.
26807 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26808 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26809 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26810 * sysdeps/i386/fpu/math_errf.c: New file.
26811 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26812 * sysdeps/ia64/fpu/math_errf.c: New file.
26813 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26814 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26815
26816 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26817
26818 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26819 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26820 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26821 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26822 to make sure that these symbols are defined.
26823 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26824 of <limits.h>
26825 (__need_NULL): Do not define.
26826 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26827 alignment.
26828 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26829 CMGROUP_MAX, cmsgcred): Do not define.
26830 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26831 NULL.
26832 * bits/socket.h: Likewise.
26833 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26834 __gettimeofday instead of gettimeofday.
26835 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26836 instead of settimeofday.
26837
26838 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26839
26840 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26841 (asinhf): Define using libm_alias_float.
26842 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26843 (atanf): Define using libm_alias_float.
26844 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26845 (cbrtf): Define using libm_alias_float.
26846 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26847 (ceilf): Define using libm_alias_float.
26848 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26849 <libm-alias-float.h>.
26850 (copysignf): Define using libm_alias_float.
26851 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26852 (cosf): Define using libm_alias_float.
26853 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26854 (erff): Define using libm_alias_float.
26855 (erfcf): Likewise.
26856 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26857 (expm1f): Define using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26859 (fabsf): Define using libm_alias_float.
26860 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26861 (floorf): Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26863 (frexpf): Define using libm_alias_float.
26864 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26865 libm_alias_float.
26866 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26867 <libm-alias-float.h>.
26868 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26869 libm_alias_float.
26870 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26871 <libm-alias-float.h>.
26872 (getpayloadf): Define using libm_alias_float.
26873 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26874 <libm-alias-float.h>.
26875 (llrintf): Define using libm_alias_float.
26876 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26877 <libm-alias-float.h>.
26878 (llroundf): Define using libm_alias_float.
26879 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26880 (logbf): Define using libm_alias_float.
26881 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26882 (lrintf): Define using libm_alias_float.
26883 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26884 (lroundf): Define using libm_alias_float.
26885 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26886 (modff): Define using libm_alias_float.
26887 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26888 <libm-alias-float.h>.
26889 (nearbyintf): Define using libm_alias_float.
26890 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26891 <libm-alias-float.h>.
26892 (nextafterf): Define using libm_alias_float.
26893 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26894 <libm-alias-float.h>.
26895 (nextupf): Define using libm_alias_float.
26896 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26897 <libm-alias-float.h>.
26898 (remquof): Define using libm_alias_float.
26899 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26900 (rintf): Define using libm_alias_float.
26901 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26902 <libm-alias-float.h>.
26903 (roundevenf): Define using libm_alias_float.
26904 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26905 (roundf): Define using libm_alias_float.
26906 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26907 using libm_alias_float.
26908 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26909 <libm-alias-float.h>.
26910 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26911 Define using libm_alias_float.
26912 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26913 <libm-alias-float.h>.
26914 (sincosf): Define using libm_alias_float.
26915 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26916 (sinf): Define using libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26918 (tanf): Define using libm_alias_float.
26919 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26920 (tanhf): Define using libm_alias_float.
26921 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26922 <libm-alias-float.h>.
26923 (totalorderf): Define using libm_alias_float.
26924 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26925 <libm-alias-float.h>.
26926 (totalordermagf): Define using libm_alias_float.
26927 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26928 (truncf): Define using libm_alias_float.
26929 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26930 libm_alias_float.
26931 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26932 libm_alias_float.
26933
26934 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26935
26936 [BZ #22146]
26937 math/math.h: Let fpclassify use the builtin in C++ mode, even
26938 when optimazing for size.
26939
26940 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26941
26942 * csu/Makefile (generated): Do not add version-info.h.
26943 (before-compile): Likewise.
26944 (all-Banner-files): Remove variable.
26945 ($(objpfx)version-info.h): Remove rule.
26946 * csu/version.c (banner): Do not include "version-info.h".
26947 * libidn/Banner: Remove.
26948 * manual/contrib.texi (Simon Josefsson): New entry.
26949
26950 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26951
26952 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26953 Remove conditionals on LDBL_MANT_DIG.
26954 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26955 (__ieee754_lgammal_r): Likewise.
26956
26957 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26958
26959 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26960 _Float128 and L().
26961 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26962 _Float128 and L(). Replace _Float128 with long double and L(x)
26963 with xL, throughout the file.
26964 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26965 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26966 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26967 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26968
26969 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26970
26971 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26972 sysdeps/ieee754/ldbl-128ibm.
26973 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26974 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26975 of including it. Keep _Float128 and L() intact. These will be
26976 reviewed by a separate patch.
26977 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26978 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26979 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26980 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26981
26982 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26983
26984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26985 (__finitef128): Define to __redirect___finitef128.
26986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26987 (__isinff128): Define to __redirect___isinff128.
26988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26989 (__isnanf128): Define to __redirect___isnanf128.
26990
26991 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26992
26993 * sysdeps/powerpc/powerpc64le/Makefile
26994 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26995 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26996
26997 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26998 Carlos O'Donell <carlos@redhat.com>
26999
27000 [BZ #22180]
27001 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27002 * stdlib/test-dlclose-exit-race.c: New file.
27003 * stdlib/test-dlclose-exit-race-helper.c: New file.
27004 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27005
27006 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27007
27008 * crypt/Banner: Remove file.
27009 * nptl/Banner: Likewise.
27010 * resolv/Banner: Likewise.
27011 * soft-fp/Banner: Likewise.
27012 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27013 ($(objpfx)version.d): Remove dependency on banner.h.
27014 ($(objpfx)version.os): Likewise.
27015 * nptl/version.c (banner): Do not include banner.h.
27016 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27017 Jelinek and BIND code.
27018
27019 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27020 Carlos O'Donell <carlos@redhat.com>
27021
27022 * support/xdlfcn.h: New file.
27023 * support/xdlfcn.c: New file.
27024 * support/Makefile (libsupport-routines): Add xdlfcn.
27025 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27026
27027 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27028
27029 [BZ #20142]
27030 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27031 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27032 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27033 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27034 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27035 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27036 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27037 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27038
27039 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27040 Ricky Zhou <rickyz@google.com>
27041 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27042
27043 [BZ #14333]
27044 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27045 Remove atomics.
27046 (__new_exitfn): Fail registration when we finished at_exit processing.
27047 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27048 * stdlib/on_exit.c (__on_exit): Likewise.
27049 * stdlib/exit.c (__exit_funcs_done): New variable.
27050 (__run_exit_handlers): Use __exit_funcs_lock.
27051 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27052 declarations.
27053 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27054 (test-cxa_atexit-race, test-on_exit-race): New tests.
27055 * stdlib/test-atexit-race-common.c: New file.
27056 * stdlib/test-atexit-race.c: New file.
27057 * stdlib/test-at_quick_exit-race.c: New file.
27058 * stdlib/test-cxa_atexit-race.c: New file.
27059 * stdlib/test-on_exit-race.c: New file.
27060
27061 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27062
27063 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27064 * benchtests/exp2f-inputs: Copy of expf-inputs.
27065 * benchtests/log2f-inputs: Copy of logf-inputs.
27066
27067 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27068
27069 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27070 Explicitly take address of first element of array arguments in
27071 call to INLINE_SYSCALL.
27072
27073 2017-09-19 Andreas Schwab <schwab@suse.de>
27074
27075 [BZ #22134]
27076 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27077 execveat first.
27078 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27079 unimplemented.
27080 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27081 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27082 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27083 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27084 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27085 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27086 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27087 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27088 * posix/Makefile (tests): Add tst-fexecve.
27089 * posix/tst-fexecve.c: New file.
27090
27091 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27092
27093 * benchtests/Makefile: Add logf benchmark.
27094 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27095
27096 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27097
27098 * benchtests/Makefile: Add expf benchmark.
27099 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27100
27101 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27102
27103 * csu/Makefile: Add -funwind-tables to libc-start.c.
27104 * debug/Makefile: Add -funwind-tables to backtrace.c.
27105 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27106 * sysdeps/arm/Makefile: Likewise.
27107 * sysdeps/i386/Makefile: Likewise.
27108 * sysdeps/m68k/Makefile: Likewise.
27109 * sysdeps/mips/Makefile: Likewise.
27110 * sysdeps/nios2/Makefile: Likewise.
27111 * sysdeps/sh/Makefile: Likewise.
27112 * sysdeps/sparc/Makefile: Likewise.
27113
27114 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27115
27116 * benchtests/Makefile (bench-math): Add trunc and truncf.
27117 (CFLAGS-bench-trunc.c): New variable.
27118 (CFLAGS-bench-truncf.c): Likewise.
27119 * benchtests/trunc-inputs: New file.
27120 * benchtests/truncf-inputs: Likewise.
27121
27122 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27123
27124 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27125
27126 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27127
27128 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27129 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27130 redefine.
27131 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27132 (exp10l): Define as weak alias.
27133 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27134 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27135 and redefine.
27136 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27137 (remainderl): Define as weak alias.
27138
27139 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27140 (fmal): Define using libm_alias_ldouble.
27141 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27142 (acoshl): Define using libm_alias_ldouble.
27143 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27144 (acosl): Define using libm_alias_ldouble.
27145 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27146 (asinl): Define using libm_alias_ldouble.
27147 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27148 (atan2l): Define using libm_alias_ldouble.
27149 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27150 (atanhl): Define using libm_alias_ldouble.
27151 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27152 (coshl): Define using libm_alias_ldouble.
27153 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27154 (exp10l): Define using libm_alias_ldouble.
27155 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27156 (exp2l): Define using libm_alias_ldouble.
27157 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27158 (expl): Define using libm_alias_ldouble.
27159 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27160 (fmodl): Define using libm_alias_ldouble.
27161 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27162 (hypotl): Define using libm_alias_ldouble.
27163 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27164 (j0l): Define using libm_alias_ldouble.
27165 (y0l): Likewise.
27166 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27167 (j1l): Define using libm_alias_ldouble.
27168 (y1l): Likewise.
27169 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27170 (jnl): Define using libm_alias_ldouble.
27171 (ynl): Likewise.
27172 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27173 (log10l): Define using libm_alias_ldouble.
27174 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27175 (log2l): Define using libm_alias_ldouble.
27176 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27177 (logl): Define using libm_alias_ldouble.
27178 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27179 (powl): Define using libm_alias_ldouble.
27180 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27181 (remainderl): Define using libm_alias_ldouble.
27182 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27183 (sinhl): Define using libm_alias_ldouble.
27184 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27185 (sqrtl): Define using libm_alias_ldouble.
27186 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27187 (tgammal): Define using libm_alias_ldouble.
27188 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27189 (exp10l): Do not use long_double_symbol here.
27190 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27191 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27192 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27193 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27198 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27199 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27200 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27201 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27202 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27203 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27204 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27205 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27206 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27207 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27208 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27209 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27210 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27211 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27212
27213 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27214
27215 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27216 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27217
27218 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27219
27220 * io/read.c (read): Add libc_hidden_weak.
27221 * sysdeps/mach/hurd/read.c (read): Likewise.
27222 * io/write.c (write): Likewise.
27223 * sysdeps/mach/hurd/write.c (write): Likewise.
27224 * io/pread64.c (__pread64): Likewise.
27225 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27226 * posix/pread64.c (__pread64): Add libc_hidden_def.
27227
27228 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27229
27230 * benchtests/scripts/compare_strings.py: New option -g.
27231 (draw_graph): Print a message that a graph is being generated.
27232 (process_results): Generate graph only if -g is passed.
27233 (main): Process option -g.
27234
27235 * benchtests/scripts/compare_strings.py (process_results):
27236 Better spacing for output.
27237
27238 * benchtests/scripts/compare_strings.py: Use argparse.
27239 * benchtests/README: Document existence of compare_strings.py.
27240
27241 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27242
27243 * math/s_fma.c: Include <libm-alias-double.h>.
27244 (fma): Define using libm_alias_double.
27245 * math/s_nextafter.c: Include <libm-alias-double.h>.
27246 (nextafter): Define using libm_alias_double.
27247 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27248 (acos): Define using libm_alias_double.
27249 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27250 (aocsh): Define using libm_alias_double.
27251 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27252 (asin): Define using libm_alias_double.
27253 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27254 (atan2): Define using libm_alias_double.
27255 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27256 (atanh): Define using libm_alias_double.
27257 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27258 (cosh): Define using libm_alias_double.
27259 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27260 (exp10): Define using libm_alias_double.
27261 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27262 (exp2): Define using libm_alias_double.
27263 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27264 (exp): Define using libm_alias_double.
27265 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27266 (fmod): Define using libm_alias_double.
27267 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27268 (hypot): Define using libm_alias_double.
27269 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27270 (j0): Define using libm_alias_double.
27271 (y0): Likewise.
27272 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27273 (j1): Define using libm_alias_double.
27274 (y1): Likewise.
27275 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27276 (jn): Define using libm_alias_double.
27277 (yn): Likewise.
27278 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27279 (log10): Define using libm_alias_double.
27280 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27281 (log2): Define using libm_alias_double.
27282 * math/w_log_compat.c: Include <libm-alias-double.h>.
27283 (log): Define using libm_alias_double.
27284 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27285 (pow): Define using libm_alias_double.
27286 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27287 (remainder): Define using libm_alias_double.
27288 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27289 (sinh): Define using libm_alias_double.
27290 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27291 (sqrt): Define using libm_alias_double.
27292 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27293 (tgamma): Define using libm_alias_double.
27294 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27295 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27296 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27297 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27298 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27299 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27300 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27301 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27302 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27303 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27304 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27305 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27306 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27307 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27308 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27309 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27310 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27311 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27312 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27313 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27314 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27315 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27316 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27317 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27318 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27319
27320 * math/e_acoshl.c: Remove.
27321 * math/e_acosl.c: Likewise.
27322 * math/e_asinl.c: Likewise.
27323 * math/e_atan2l.c: Likewise.
27324 * math/e_atanhl.c: Likewise.
27325 * math/e_coshl.c: Likewise.
27326 * math/e_expl.c: Likewise.
27327 * math/e_fmodl.c: Likewise.
27328 * math/e_gammal_r.c: Likewise.
27329 * math/e_hypotl.c: Likewise.
27330 * math/e_j0l.c: Likewise.
27331 * math/e_j1l.c: Likewise.
27332 * math/e_jnl.c: Likewise.
27333 * math/e_lgammal_r.c: Likewise.
27334 * math/e_log10l.c: Likewise.
27335 * math/e_log2l.c: Likewise.
27336 * math/e_logl.c: Likewise.
27337 * math/e_powl.c: Likewise.
27338 * math/e_rem_pio2l.c: Likewise.
27339 * math/e_sinhl.c: Likewise.
27340 * math/e_sqrtf128.c: Likewise.
27341 * math/e_sqrtl.c: Likewise.
27342 * math/k_cosl.c: Likewise.
27343 * math/k_sinl.c: Likewise.
27344 * math/k_tanl.c: Likewise.
27345 * math/s_asinhl.c: Likewise.
27346 * math/s_atanl.c: Likewise.
27347 * math/s_cbrtl.c: Likewise.
27348 * math/s_erfl.c: Likewise.
27349 * math/s_expm1l.c: Likewise.
27350 * math/s_log1pl.c: Likewise.
27351 * math/s_tanhl.c: Likewise.
27352
27353 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27354
27355 [BZ #21745]
27356 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27357 [$(subdir) = math] (sysdep_calls): New variable. Has the
27358 previous contents of sysdep_routines, but re-sorted..
27359 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27360 sysdep_calls.
27361 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27362 defined in sysdep_calls and replace by the respective m_* names.
27363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27364 (compat_symbol): Undefine to avoid duplicated compat symbols in
27365 libc.
27366
27367 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27368
27369 * math/s_fmaf.c: Include <libm-alias-float.h>.
27370 (fmaf): Define using libm_alias_float.
27371 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27372 (acosf): Define using libm_alias_float.
27373 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27374 (acoshf): Define using libm_alias_float.
27375 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27376 (asinf): Define using libm_alias_float.
27377 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27378 (atan2f): Define using libm_alias_float.
27379 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27380 (atanhf): Define using libm_alias_float.
27381 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27382 (coshf): Define using libm_alias_float.
27383 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27384 (exp10f): Define using libm_alias_float.
27385 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27386 (fmodf): Define using libm_alias_float.
27387 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27388 (hypotf): Define using libm_alias_float.
27389 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27390 (j0f): Define using libm_alias_float.
27391 (y0f): Likewise.
27392 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27393 (j1f): Define using libm_alias_float.
27394 (y1f): Likewise.
27395 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27396 (jnf): Define using libm_alias_float.
27397 (ynf): Likewise.
27398 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27399 (log10f): Define using libm_alias_float.
27400 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27401 (log2f): Define using libm_alias_float.
27402 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27403 (logf): Define using libm_alias_float.
27404 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27405 (powf): Define using libm_alias_float.
27406 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27407 (remainderf): Define using libm_alias_float.
27408 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27409 (sinhf): Define using libm_alias_float.
27410 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27411 (sqrtf): Define using libm_alias_float.
27412 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27413 (tgammaf): Define using libm_alias_float.
27414
27415 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27416
27417 * include/math.h (roundeven): Change hidden_proto call to
27418 __roundeven.
27419 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27420 alias.
27421 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27422 (y0): Rename to __y0 and define as weak alias.
27423 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27424 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27425 alias.
27426 (y0f): Rename to __y0f and define as weak alias.
27427 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27428 alias.
27429 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27430 (y1): Rename to __y1 and define as weak alias.
27431 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27432 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27433 alias.
27434 (y1f): Rename to __y1f and define as weak alias.
27435 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27436 alias.
27437 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27438 (yn): Rename to __yn and define as weak alias.
27439 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27440 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27441 alias.
27442 (ynf): Rename to __ynf and define as weak alias.
27443 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27444 (fromfp): Define as weak alias.
27445 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27446 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27447 (fromfpx): Define as weak alias.
27448 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27449 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27450 __getpayload and define as weak alias.
27451 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27452 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27453 __roundeven and define as weak alias.
27454 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27455 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27456 __setpayload.
27457 (setpayload): Define as weak alias.
27458 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27459 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27460 __setpayloadsig.
27461 (setpayloadsig): Define as weak alias.
27462 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27463 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27464 __totalorder and define as weak alias.
27465 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27466 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27467 to __totalordermag and define as weak alias.
27468 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27469 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27470 (ufromfp): Define as weak alias.
27471 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27472 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27473 __ufromfpx.
27474 (ufromfpx): Define as weak alias.
27475 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27476 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27477 Rename to __getpayload and define as weak alias.
27478 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27479 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27480 Rename to __roundeven and define as weak alias.
27481 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27482 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27483 Rename to __totalorder and define as weak alias.
27484 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27485 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27486 (totalordermag): Rename to __totalordermag and define as weak
27487 alias.
27488 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27489 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27490 macro.
27491 (__roundevenl): Likewise.
27492 (__totalorderl): Likewise.
27493 (__totalordermagl): Likewise
27494 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27495 __fromfpf128.
27496 (fromfpf128): Define as weak alias.
27497 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27498 __fromfpxf128.
27499 (fromfpxf128): Define as weak alias.
27500 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27501 __setpayloadf128.
27502 (setpayloadf128): Define as weak alias.
27503 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27504 __setpayloadsigf128.
27505 (setpayloadsigf128): Define as weak alias.
27506 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27507 __ufromfpf128.
27508 (ufromfpf128): Define as weak alias.
27509 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27510 __ufromfpxf128.
27511 (ufromfpxf128): Define as weak alias.
27512 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27513 (fromfpf): Define as weak alias.
27514 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27515 __fromfpxf.
27516 (fromfpxf): Define as weak alias.
27517 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27518 __getpayloadf and define as weak alias.
27519 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27520 __roundevenf and define as weak alias.
27521 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27522 __setpayloadf.
27523 (setpayloadf): Define as weak alias.
27524 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27525 __setpayloadsigf.
27526 (setpayloadsigf): Define as weak alias.
27527 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27528 __totalorderf and define as weak alias.
27529 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27530 Rename to __totalordermagf and define as weak alias.
27531 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27532 __ufromfpf.
27533 (ufromfpf): Define as weak alias.
27534 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27535 __ufromfpxf.
27536 (ufromfpxf): Define as weak alias.
27537 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27538 __fromfpl.
27539 (fromfpl): Define as weak alias.
27540 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27541 __fromfpxl.
27542 (fromfpxl): Define as weak alias.
27543 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27544 to __getpayloadl and define as weak alias.
27545 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27546 __roundevenl and define as weak alias.
27547 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27548 __setpayloadl.
27549 (setpayloadl): Define as weak alias.
27550 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27551 __setpayloadsigl.
27552 (setpayloadsigl): Define as weak alias.
27553 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27554 to __totalorderl and define as weak alias.
27555 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27556 Rename to __totalordermagl and define as weak alias.
27557 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27558 __ufromfpl.
27559 (ufromfpl): Define as weak alias.
27560 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27561 __ufromfpxl.
27562 (ufromfpxl): Define as weak alias.
27563 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27564 __fromfpl.
27565 (fromfpl): Define as weak alias.
27566 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27567 __fromfpxl.
27568 (fromfpxl): Define as weak alias.
27569 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27570 Rename to __getpayloadl and define as weak alias.
27571 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27572 to __roundevenl and define as weak alias. Call __roundeven
27573 instead of roundeven.
27574 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27575 __setpayloadl.
27576 (setpayloadl): Define as weak alias.
27577 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27578 __setpayloadsigl.
27579 (setpayloadsigl): Define as weak alias.
27580 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27581 Rename to __totalorderl and define as weak alias.
27582 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27583 Rename to __totalordermagl and define as weak alias.
27584 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27585 __ufromfpl.
27586 (ufromfpl): Define as weak alias.
27587 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27588 __ufromfpxl.
27589 (ufromfpxl): Define as weak alias.
27590 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27591 __fromfpl.
27592 (fromfpl): Define as weak alias.
27593 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27594 __fromfpxl.
27595 (fromfpxl): Define as weak alias.
27596 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27597 __getpayloadl and define as weak alias.
27598 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27599 __roundevenl and define as weak alias.
27600 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27601 __setpayloadl.
27602 (setpayloadl): Define as weak alias.
27603 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27604 __setpayloadsigl.
27605 (setpayloadsigl): Define as weak alias.
27606 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27607 __totalorderl and define as weak alias.
27608 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27609 Rename to __totalordermagl and define as weak alias.
27610 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27611 __ufromfpl.
27612 (ufromfpl): Define as weak alias.
27613 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27614 __ufromfpxl.
27615 (ufromfpxl): Define as weak alias.
27616
27617 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27618
27619 * benchtests/bench-string.h (realloc_bufs): New function.
27620 (test_init): Call it.
27621 * benchtests/bench-memset-large.c (do_test): Likewise.
27622 * benchtests/bench-memset.c (do_test): Likewise.
27623
27624 * benchtests/bench-memset-large.c: Print output in JSON
27625 format.
27626 * benchtests/bench-memset.c: Likewise.
27627
27628 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27629
27630 [BZ #21084]
27631 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27632 * iconvdata/Makefile: Add IBM858.
27633 * iconvdata/gconv-modules: Likewise.
27634 * iconvdata/tst-tables.sh: Likewise.
27635 * iconvdata/ibm858.c: New file.
27636 * localedata/charmaps/IBM858: Likewise.
27637
27638 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27639
27640 [BZ #22023]
27641 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27642 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27643
27644 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27645
27646 [BZ #22112]
27647 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27648 and add tel_int_fmt.
27649
27650 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27651
27652 * sysdeps/generic/libm-alias-float128.h: New file.
27653 * sysdeps/generic/math-type-macros-float128.h: Include
27654 <libm-alias-float128.h>.
27655 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27656
27657 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27658
27659 * sysdeps/generic/libm-alias-ldouble.h: New file.
27660 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27661 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27662 * sysdeps/generic/math-type-macros-ldouble.h: Include
27663 <libm-alias-ldouble.h>.
27664 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27665 libm_alias_ldouble.
27666
27667 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27668
27669 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27670 * math/w_exp_compat.c: ... here.
27671 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27672 * math/w_expf_compat.c: ... here.
27673 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27674 * math/w_expl_compat.c: ... here.
27675 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27676 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27677 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27678 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27679
27680 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27681
27682 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27683 redefine.
27684 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27685 macro.
27686 (ldexpl): Only define as compat symbol for libc, not libm.
27687 (scalbnl): Define as compat symbol for libc here.
27688 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27689 define for [IS_IN (libc)].
27690 (__ldexpl_2): Remove alias.
27691 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27692 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27693 name in long_double_symbol call.
27694 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27695 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27696 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27697 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27698 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27699 Remove macro.
27700 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27701 Define as compat symbol.
27702
27703 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27704
27705 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27706 * sysdeps/unix/sysv/linux/alpha/Makefile
27707 [$(subdir) = csu] (sysdep_routines): Remove rule.
27708
27709 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27710
27711 * sysdeps/generic/libm-alias-double.h: New file.
27712 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27713 * sysdeps/generic/math-type-macros-double.h: Include
27714 <libm-alias-double.h>.
27715 [declare_mgen_alias] (declare_mgen_alias): Define to use
27716 libm_alias_double.
27717 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27718 (M_LIBM_NEED_COMPAT): Remove macro.
27719 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27720 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27721 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27722 code.
27723 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27724 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27725 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27726 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27727 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27728 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27729 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27730 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27731 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27732 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27733 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27734 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27735 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27736 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27737 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27738 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27739 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27740 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27741 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27742 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27743 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27744 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27745 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27746 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27747 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27748 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27749 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27750 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27751 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27752 macro.
27753 (declare_mgen_alias): New macro.
27754 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27755 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27757 (M_LIBM_NEED_COMPAT): Remove macro.
27758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27759 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27760 <first-versions.h>.
27761 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27762 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27763
27764 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27765
27766 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27767 (declare_mgen_alias_2): Remove.
27768 * sysdeps/generic/math-type-macros-double.h
27769 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27770 Likewise.
27771 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27772 alias.
27773 (ldexp): Define with declare_mgen_alias.
27774 (scalbn): Likewise.
27775
27776 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27777
27778 * grp/initgroups.c: Include config.h.
27779 (DEFAULT_CONFIG): New macro.
27780 (internal_getgrouplist): Use DEFAULT_CONFIG.
27781 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27782 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27783 (DEFAULT_DEFCONFIG): New macro.
27784 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27785 * nss/grp-lookup.c: Include config.h
27786 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27787 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27788 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27789 * manual/nss.texi: Update default values section.
27790
27791 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27792
27793 [BZ #21967]
27794 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27795 New.
27796 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27797 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27798 Handle MathVec_Prefer_No_AVX512.
27799 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27800 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27801 is set.
27802
27803 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27804
27805 * posix/sched_primax.c (__sched_get_priority_max): Add
27806 libc_hidden_def.
27807 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27808 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27809 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27810 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27811 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27812 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27813 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27814 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27815 Add aliases.
27816
27817 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27818
27819 * sysdeps/generic/libm-alias-float.h: New file.
27820 * sysdeps/generic/math-type-macros-float.h: Include
27821 <libm-alias-float.h>.
27822 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27823
27824 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27825
27826 [BZ #22093]
27827 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27828 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27829 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27830 (HWCAP_IMPORTANT): Likewise.
27831 (HWCAP_X86_64): New enum.
27832 (HWCAP_X86_AVX512_1): Updated.
27833 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27834 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27835 (modules-names): Add x86_64/tst-x86_64mod-1.
27836 (LDFLAGS-tst-x86_64mod-1.so): New.
27837 ($(objpfx)tst-x86_64-1): Likewise.
27838 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27839 (tst-x86_64-1-clean): Likewise.
27840 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27841 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27842
27843 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27844
27845 * po/sv.po: Update translations.
27846 * po/fr.po: Likewise.
27847
27848 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27849
27850 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27851 seconds.
27852 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27853 seconds.
27854 * elf/rtld-Rules: Fix $(error) use.
27855
27856 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27857
27858 [BZ #14925]
27859 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27860 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27861 * localedata/locales/bn_BD: “Bengali” was still used in some
27862 comments. Change it to “Bangla”.
27863
27864 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27865
27866 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27867
27868 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27869
27870 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27871 thunderx2t99p1 to list of cpu names.
27872 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27873 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27874
27875 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27876
27877 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27878 Use strcmp instead of tunable_is_name.
27879
27880 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27881
27882 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27883 (F_GET_RW_HINT): New macro.
27884 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27885 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27886 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27887 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27888 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27889 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27890 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27891 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27892 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27893
27894 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27895 (F_ADD_SEALS): New macro.
27896 [__USE_GNU] (F_GET_SEALS): Likewise.
27897 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27898 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27899 [__USE_GNU] (F_SEAL_GROW): Likewise.
27900 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27901
27902 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27903
27904 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27905 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27906 * posix/glob_internal.h (__glob_pattern_type):
27907 * posix/glob.c (glob):
27908 * posix/glob_pattern_p.c (__glob_pattern_p):
27909 Use them.
27910
27911 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27912 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27913 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27914 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27915 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27917 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27918 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27919 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27920 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27921 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27922 * sysdeps/wordsize-64/glob.c: Likewise.
27923 * sysdeps/wordsize-64/glob64.c: Likewise.
27924 * sysdeps/wordsize-64/globfree.c: Likewise.
27925 * sysdeps/wordsize-64/globfree64.c: Likewise.
27926 * sysdeps/unix/sysv/linux/glob.c: New file.
27927 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27928 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27929 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27930 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27931 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27932 adds !GLOB_NO_OLD_VERSION as an extra condition.
27933 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27934 using relative path instead of absolute one.
27935 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27936 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27937 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27938 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27939 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27940 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27941
27942 [BZ #1062]
27943 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27944 (glob): Use the same scratch buffer for both getlogin_r and
27945 getpwnam_r. Don’t require preallocation of the login name. This
27946 simplifies storage allocation, and corrects the handling of
27947 long login names.
27948
27949 [BZ #1062]
27950 * posix/glob.c (glob): Port recent patches to platforms
27951 lacking getpwnam_r.
27952 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27953 returns an error number rather than setting errno.
27954
27955 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27956 instead of GCC extension.
27957 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27958 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27959 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27960
27961 [BZ #866]
27962 [BZ #1062]
27963 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27964 * posix/bug-glob1.c: Remove file.
27965 * posix/tst-glob_symlinks.c: New file.
27966 * posix/glob.c (__lstat64): New macro.
27967 (is_dir): New function.
27968 (glob, glob_in_dir): Match symlinks even if they are dangling.
27969 (link_stat, link_exists_p): Remove. All uses removed.
27970
27971 [BZ #1062]
27972 [BZ #19971]
27973 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27974 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27975 All uses removed.
27976
27977 [BZ #1062]
27978 CVE-2017-15671
27979 * posix/Makefile (routines): Add globfree, globfree64, and
27980 glob_pattern_p.
27981 * posix/flexmember.h: New file.
27982 * posix/glob_internal.h: Likewise.
27983 * posix/glob_pattern_p.c: Likewise.
27984 * posix/globfree.c: Likewise.
27985 * posix/globfree64.c: Likewise.
27986 * sysdeps/gnu/globfree64.c: Likewise.
27987 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27988 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27989 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27990 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27991 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27992 * sysdeps/wordsize-64/globfree.c: Likewise.
27993 * sysdeps/wordsize-64/globfree64.c: Likewise.
27994 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27995 [NDEBUG): Remove comments.
27996 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27997 (dirent_type): New type. Use uint_fast8_t not
27998 uint8_t, as C99 does not require uint8_t.
27999 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28000 (struct readdir_result): Use dirent_type. Do not define skip_entry
28001 unless it is needed; this saves a byte on platforms lacking d_ino.
28002 (readdir_result_type, readdir_result_skip_entry):
28003 New functions, replacing ...
28004 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28005 these functions, which were removed. This makes the callers
28006 easier to read. All callers changed.
28007 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28008 (size_add_wrapv, glob_use_alloca): New static functions.
28009 (glob, glob_in_dir): Check for size_t overflow in several places,
28010 and fix some size_t checks that were not quite right.
28011 Remove old code using SHELL since Bash no longer
28012 uses this.
28013 (glob, prefix_array): Separate MS code better.
28014 (glob_in_dir): Remove old Amiga and VMS code.
28015 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28016 separate files.
28017 (glob_in_dir): Do not rely on undefined behavior in accessing
28018 struct members beyond their bounds. Use a flexible array member
28019 instead
28020 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28021 0/1. Caller changed.
28022 (glob): Fix memory leaks.
28023 * posix/glob64 (globfree64): Move to separate file.
28024 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28025 (globfree64): Remove hidden alias.
28026 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28027 oldglob.
28028 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28029 separate file.
28030 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28031 define.
28032 Move compat code to separate file.
28033 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28034 separate file.
28035
28036 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28037
28038 * resolv/tst-resolv-qtypes.c (domain): Changed to
28039 "const char domain[] =".
28040
28041 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28042
28043 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28044 version to 3.1.6.
28045
28046 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28047 (TCP_MD5SIG_EXT): Likewise.
28048 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28049 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28050 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28051
28052 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28053
28054 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28055
28056 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28057
28058 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28059
28060 [BZ #22100]
28061 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28062
28063 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28064
28065 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28066 before assuming that the file is empty. Avoid testing buffer content
28067 when nread == 0.
28068
28069 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28070
28071 [BZ #18858]
28072 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28073 Remove define.
28074 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28075 Likewise.
28076 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28077 Likewise.
28078 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28079 Likewise.
28080 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28081 Likewise.
28082 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28083 Likewise.
28084 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28085 Likewise.
28086
28087 2017-09-06 Florian Weimer <fweimer@redhat.com>
28088
28089 * malloc/dynarray_emplace_enlarge.c
28090 (__libc_dynarray_emplace_enlarge): Add missing else.
28091
28092 2017-09-06 Florian Weimer <fweimer@redhat.com>
28093
28094 [BZ #22096]
28095 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28096 case of failure to obtain the global conf object.
28097
28098 2017-09-06 Florian Weimer <fweimer@redhat.com>
28099
28100 [BZ #22095]
28101 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28102 dynarray allocation failure.
28103
28104 2017-09-06 Florian Weimer <fweimer@redhat.com>
28105
28106 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28107 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28108 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28109 New functions.
28110 (response): Call them. Add 'p', '6' flag processing.
28111 (test_reverse): New function.
28112 (test_get2_any): Call it.
28113 (test_no_inet6): Add 'p' test.
28114 (test_inet6): Likewise.
28115
28116 2017-09-06 Florian Weimer <fweimer@redhat.com>
28117
28118 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28119 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28120 the QNAME.
28121 (test_gai): Adjust query names. Add additional tests.
28122 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28123 test_get2. Adjust query names. Add additional tests.
28124 (test_no_inet6): New function, extracted from threadfunc.
28125 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28126 Add additional tests.
28127
28128 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28129
28130 [BZ #22070]
28131 * localedata/unicode-gen/utf8_gen.py: Set the width for
28132 characters with Prepended_Concatenation_Mark property to 1
28133 * localedata/charmaps/UTF-8: Updated using the improved script.
28134
28135 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28136
28137 [BZ #21750]
28138 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28139 use the range notation for all ranges of neighbouring characters
28140 with the same width.
28141
28142 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28143
28144 * sysdeps/generic/math-type-macros-double.h: Include
28145 <math-svid-compat.h>.
28146 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28147 * sysdeps/generic/math-type-macros-float.h: Include
28148 <math-svid-compat.h>.
28149 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28150 * sysdeps/generic/math-type-macros-ldouble.h: Include
28151 <math-svid-compat.h>.
28152 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28153 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28154 condition.
28155 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28156 * math/w_acosf_compat.c: Likewise.
28157 * math/w_acosh_compat.c: Likewise.
28158 * math/w_acoshf_compat.c: Likewise.
28159 * math/w_acoshl_compat.c: Likewise.
28160 * math/w_acosl_compat.c: Likewise.
28161 * math/w_asin_compat.c: Likewise.
28162 * math/w_asinf_compat.c: Likewise.
28163 * math/w_asinl_compat.c: Likewise.
28164 * math/w_atan2_compat.c: Likewise.
28165 * math/w_atan2f_compat.c: Likewise.
28166 * math/w_atan2l_compat.c: Likewise.
28167 * math/w_atanh_compat.c: Likewise.
28168 * math/w_atanhf_compat.c: Likewise.
28169 * math/w_atanhl_compat.c: Likewise.
28170 * math/w_cosh_compat.c: Likewise.
28171 * math/w_coshf_compat.c: Likewise.
28172 * math/w_coshl_compat.c: Likewise.
28173 * math/w_exp10_compat.c: Likewise.
28174 * math/w_exp10f_compat.c: Likewise.
28175 * math/w_exp10l_compat.c: Likewise.
28176 * math/w_exp2_compat.c: Likewise.
28177 * math/w_exp2f_compat.c: Likewise.
28178 * math/w_exp2l_compat.c: Likewise.
28179 * math/w_fmod_compat.c: Likewise.
28180 * math/w_fmodf_compat.c: Likewise.
28181 * math/w_fmodl_compat.c: Likewise.
28182 * math/w_hypot_compat.c: Likewise.
28183 * math/w_hypotf_compat.c: Likewise.
28184 * math/w_hypotl_compat.c: Likewise.
28185 * math/w_j0_compat.c: Likewise.
28186 * math/w_j0f_compat.c: Likewise.
28187 * math/w_j0l_compat.c: Likewise.
28188 * math/w_j1_compat.c: Likewise.
28189 * math/w_j1f_compat.c: Likewise.
28190 * math/w_j1l_compat.c: Likewise.
28191 * math/w_jn_compat.c: Likewise.
28192 * math/w_jnf_compat.c: Likewise.
28193 * math/w_jnl_compat.c: Likewise.
28194 * math/w_lgamma_r_compat.c: Likewise.
28195 * math/w_lgammaf_r_compat.c: Likewise.
28196 * math/w_lgammal_r_compat.c: Likewise.
28197 * math/w_log10_compat.c: Likewise.
28198 * math/w_log10f_compat.c: Likewise.
28199 * math/w_log10l_compat.c: Likewise.
28200 * math/w_log2_compat.c: Likewise.
28201 * math/w_log2f_compat.c: Likewise.
28202 * math/w_log2l_compat.c: Likewise.
28203 * math/w_log_compat.c: Likewise.
28204 * math/w_logf_compat.c: Likewise.
28205 * math/w_logl_compat.c: Likewise.
28206 * math/w_pow_compat.c: Likewise.
28207 * math/w_powf_compat.c: Likewise.
28208 * math/w_powl_compat.c: Likewise.
28209 * math/w_remainder_compat.c: Likewise.
28210 * math/w_remainderf_compat.c: Likewise.
28211 * math/w_remainderl_compat.c: Likewise.
28212 * math/w_sinh_compat.c: Likewise.
28213 * math/w_sinhf_compat.c: Likewise.
28214 * math/w_sinhl_compat.c: Likewise.
28215 * math/w_sqrt_compat.c: Likewise.
28216 * math/w_sqrtf_compat.c: Likewise.
28217 * math/w_sqrtl_compat.c: Likewise.
28218 * math/w_tgamma_compat.c: Likewise.
28219 * math/w_tgammaf_compat.c: Likewise.
28220 * math/w_tgammal_compat.c: Likewise.
28221 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28222 [LIBM_SVID_COMPAT].
28223 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28224 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28225 [LIBM_SVID_COMPAT].
28226 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28227 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28228 [LIBM_SVID_COMPAT].
28229 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28230 * sysdeps/i386/fpu/w_sqrt.c: New file.
28231 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28232 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28233 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28234 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28235 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28236 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28237 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28238 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28239 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28240 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28241 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28242 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28243 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28244 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28245 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28246 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28247 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28248 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28249 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28250 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28251 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28252 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28253 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28254 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28255 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28256 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28257 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28258 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28259 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28260 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28261 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28262 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28263 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28264 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28265 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28266 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28267 * sysdeps/ia64/fpu/w_log.c: Likewise.
28268 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28269 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28270 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28271 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28272 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28273 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28274 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28275 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28276 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28277 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28278 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28279 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28280 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28281 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28282 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28283 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28284 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28285 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28286 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28287 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28288 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28289 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28290 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28291 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28292 [LIBM_SVID_COMPAT].
28293 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28294 * sysdeps/ieee754/k_standard.c: Likewise.
28295 * sysdeps/ieee754/k_standardf.c: Likewise.
28296 * sysdeps/ieee754/k_standardl.c: Likewise.
28297 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28298 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28299 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28300 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28301 long_double_symbol call on [LIBM_SVID_COMPAT].
28302 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28303 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28304 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28305 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28306 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28307 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28308 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28309 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28310 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28311 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28312 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28313 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28314 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28316 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28319 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28320 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28322 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28323 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28324
28325 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28326
28327 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28328 * malloc/tst-mallocstate.c: Convert from test-skeleton
28329 to test-driver. Ifdef code using TEST_COMPAT macro.
28330 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28331 * math/test-matherr.c: Likewise.
28332
28333 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28334
28335 [BZ #22086]
28336 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28337 comparing word with byte-swapped constant.
28338
28339 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28340
28341 [BZ #20498]
28342 * locale/iso-639.def: add Miskito.
28343 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28344 * localedata/locales/miq_NI: New file.
28345
28346 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28347
28348 [BZ #18822]
28349 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28350 (__mkdir): Likewise.
28351 * io/chmod.c (__chmod): Add libc_hidden_def.
28352 * io/mkdir.c (__mkdir): Likewise.
28353 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28354 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28355 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28356 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28357
28358 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28359
28360 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28361 version to 4.13.
28362
28363 [BZ #22082]
28364 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28365 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28366
28367 2017-09-04 Florian Weimer <fweimer@redhat.com>
28368
28369 * math/math.h: Issue warning if log is defined.
28370
28371 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28372
28373 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28374 kernel version to 4.13.
28375
28376 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28377
28378 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28379 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28380 parameter.
28381 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28382 just <bits/types.h>.
28383 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28384 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28385 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28386 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28387 * misc/preadv2.c: Include <errno.h>.
28388 * misc/preadv64v2.c: Include <errno.h>.
28389 * misc/pwritev2.c: Include <errno.h>.
28390 * misc/pwritev64v2.c: Include <errno.h>.
28391 * sysdeps/posix/preadv2.c: Include <errno.h>.
28392 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28393 Fix <unistd.h> inclusion.
28394 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28395 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28396 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28397 __strtoul_internal): New functions.
28398 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28399 * sysdeps/posix/system.c: Include <sigsetops.h>.
28400 * sysdeps/mach/hurd/i386/Makefile
28401 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28402 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28403 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28404 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28405 __feraiseexcept_renamed to feraiseexcept instead of
28406 __GI_feraiseexcept.
28407 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28408 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28409 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28410 RWF_NOWAIT): Define to 0 if undefined already.
28411 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28412 boils down to 0.
28413 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28414 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28415
28416 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28417
28418 * manual/math.texi (pow10): Do not document.
28419 (pow10f): Likewise.
28420 (pow10l): Likewise.
28421 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28422 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28423 * math/libm-test-exp10.inc (pow10_test): Remove.
28424 (do_test): Do not call pow10.
28425 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28426 [NO_LONG_DOUBLE] (pow10l): Likewise.
28427 * math/w_exp10f_compat.c (pow10f): Likewise.
28428 * math/w_exp10l_compat.c (pow10l): Likewise.
28429 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28430 (pow10): Make into compat symbol.
28431 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28432 (pow10f): Make into compat symbol.
28433 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28434 (pow10l): Make into compat symbol.
28435 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28436 pow10.
28437 (CFLAGS-nldbl-pow10.c): Remove variable..
28438 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28439 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28440 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28441 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28442 Undefine and redefine.
28443 (pow10l): Make into compat symbol.
28444 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28445 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28446 * sysdeps/arm/libm-test-ulps: Likewise.
28447 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28448 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28449 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28450 * sysdeps/microblaze/libm-test-ulps: Likewise.
28451 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28452 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28453 * sysdeps/nios2/libm-test-ulps: Likewise.
28454 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28455 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28456 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28457 * sysdeps/sh/libm-test-ulps: Likewise.
28458 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28459 * sysdeps/tile/libm-test-ulps: Likewise.
28460 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28461
28462 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28463
28464 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28465
28466 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28467
28468 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28469 "../ChangeLog.old/ChangeLog.8".
28470 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28471 "../ChangeLog.old/ChangeLog.14".
28472
28473 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28474
28475 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28476 Threads Library.
28477
28478 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28479
28480 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28481
28482 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28483
28484 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28485 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28486
28487 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28488
28489 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28490 32 atexit handlers.
28491
28492 2017-09-01 Zack Weinberg <zackw@panix.com>
28493
28494 * math/math.h (HUGE_VAL): Improve commentary.
28495
28496 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28497 Andreas Schwab <schwab@suse.de>
28498
28499 [BZ #21530]
28500 * include/stdio.h (__gen_tempfd): New function.
28501 * stdio-common/Makefile (routines): Add gentempfd.
28502 * stdio-common/gentempfd.c: New file.
28503 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28504 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28505 unnamed file first.
28506
28507 2017-09-01 Florian Weimer <fweimer@redhat.com>
28508
28509 [BZ #21915]
28510 [BZ #21922]
28511 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28512 result to determine success or failure, not the errno value.
28513 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28514 (tst-nss-files-hosts-erange): Link with -ldl.
28515 * nss/tst-nss-files-hosts-erange.c: New file.
28516 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28517 (do_test): Add NO_DATA tests.
28518 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28519 (do_test): Call it.
28520
28521 2017-09-01 Florian Weimer <fweimer@redhat.com>
28522
28523 [BZ #21922]
28524 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28525 coming from gethostbyname2_r.
28526
28527 2017-09-01 Florian Weimer <fweimer@redhat.com>
28528
28529 * support/namespace.h (struct support_chroot_configuration): Add
28530 hosts, host_conf.
28531 (struct support_chroot): Add path_hosts, path_host_conf.
28532 * support/support_chroot.c (write_file): New function.
28533 (support_chroot_create): Call it to process /etc/resolv.conf,
28534 /etc/hosts, /etc/host.conf.
28535 (support_chroot_free): Update.
28536
28537 2017-09-01 Florian Weimer <fweimer@redhat.com>
28538
28539 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28540 status indicates it is set.
28541
28542 2017-09-01 Florian Weimer <fweimer@redhat.com>
28543
28544 [BZ #20532]
28545 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28546 function lookup failures more reliable.
28547
28548 2017-09-01 Florian Weimer <fweimer@redhat.com>
28549
28550 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28551 (getcanonname): Likewise.
28552 (gaih_inet): Likewise.
28553
28554 2017-09-01 Florian Weimer <fweimer@redhat.com>
28555
28556 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28557 (getcanonname): Likewise.
28558 (gaih_inet): Likewise.
28559
28560 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28561 Richard Henderson <rth@twiddle.net>
28562
28563 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28564 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28565 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28566 (IREG_SIZE, OREG_SIZE): New macros.
28567 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28568 (IREG_SIZE, OREG_SIZE): New macros.
28569 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28570 (IREG_SIZE): New macro.
28571 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28572 (IREG_SIZE): New macro.
28573 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28574 New includes.
28575 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28576 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28577 (__CONCATX): Handle exceptions correctly on large values that may
28578 set FE_INVALID.
28579 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28580 Initialize if not already set.
28581 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28582
28583 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28584
28585 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28586 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28587 Likewise.
28588 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28589 Likewise.
28590 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28591 Likewise.
28592 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28593 Likewise.
28594 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28595 Likewise.
28596 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28597 Likewise.
28598 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28599 Likewise.
28600 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28601 (NO_CANCELLATION): Likewise.
28602 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28603 Likewise.
28604 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28605 Likewise.
28606 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28607 Likewise.
28608 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28609 (NO_CANCELLATION): Likewise.
28610 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28611 (NO_CANCELLATION): Likewise.
28612 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28613 Likewise
28614 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28615 Likewise.
28616 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28617 Likewise.
28618 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28619 Likewise.
28620 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28621 hidden prototype.
28622 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28623 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28624
28625 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28626
28627 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28628 in resolver call.
28629
28630 2017-08-31 Florian Weimer <fweimer@redhat.com>
28631
28632 * include/libc-symbols.h (internal_function): Remove.
28633
28634 2017-08-31 Florian Weimer <fweimer@redhat.com>
28635
28636 * stdlib/fmtmsg.c (internal_addseverity): Remove
28637 internal_function.
28638
28639 2017-08-31 Florian Weimer <fweimer@redhat.com>
28640
28641 * stdio-common/printf_fp.c (group_number): Remove
28642 internal_function.
28643 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28644
28645 2017-08-31 Florian Weimer <fweimer@redhat.com>
28646
28647 * posix/fnmatch.c (internal_function): Remove definition.
28648 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28649 * posix/regcomp.c (peek_token, init_word_char)
28650 (duplicate_node_closure, fetch_token, peek_token)
28651 (peek_token_bracket, build_range_exp, build_collating_symbol):
28652 Likewise.
28653 * posix/regex_internal.c (re_string_construct_common)
28654 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28655 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28656 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28657 (re_string_translate_buffer, re_string_reconstruct)
28658 (re_string_peek_byte_case, re_string_fetch_byte_case)
28659 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28660 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28661 (re_node_set_add_intersect, re_node_set_init_union)
28662 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28663 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28664 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28665 (re_acquire_state_context): Likewise.
28666 * posix/regex_internal.h (internal_function): Remove definition.
28667 (re_string_realloc_buffers, build_wcs_buffer)
28668 (build_wcs_upper_buffer, build_upper_buffer)
28669 (re_string_translate_buffer, re_string_context_at)
28670 (re_string_char_size_at, re_string_wchar_at)
28671 (re_string_elem_size_at): Likewise.
28672 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28673 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28674 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28675 (re_search_internal, re_search_2_stub, re_search_stub)
28676 (re_copy_regs, prune_impossible_nodes, check_matching)
28677 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28678 (free_fail_stack_return, sift_states_iter_mb)
28679 (sift_states_backward, build_sifted_states)
28680 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28681 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28682 (check_subexp_limits, sift_states_bkref, merge_state_array)
28683 (find_recover_state, transit_state, merge_state_with_log)
28684 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28685 (transit_state_mb, transit_state_bkref, get_subexp)
28686 (get_subexp_sub, find_subexp_node, check_arrival)
28687 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28688 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28689 (check_node_accept_bytes, find_collation_sequence_value)
28690 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28691 (acquire_init_state_context, check_halt_node_context)
28692 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28693 (sub_epsilon_src_nodes): Likewise.
28694 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28695 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28696 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28697 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28698 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28699 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28700 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28701 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28702 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28703 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28704 (PREADV): Likewise.
28705 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28706 (PREADV): Likewise.
28707 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28708 (PWRITEV): Likewise.
28709 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28710 (PWRITEV): Likewise.
28711 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28712 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28713
28714 2017-08-31 Florian Weimer <fweimer@redhat.com>
28715
28716 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28717 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28718 Remove internal_function.
28719 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28720 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28721 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28722 (__deallocate_stack, __libc_pthread_init)
28723 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28724 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28725 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28726 Likewise.
28727 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28728 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28729 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28730 Likewise.
28731 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28732 (__pthread_mutex_unlock_usercnt): Likewise.
28733
28734 2017-08-31 Florian Weimer <fweimer@redhat.com>
28735
28736 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28737 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28738 (fts_safe_changedir): Remove internal_function.
28739 * io/ftw.c (internal_function): Remove definition.
28740 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28741
28742 2017-08-31 Florian Weimer <fweimer@redhat.com>
28743
28744 * inet/deadline.c (__deadline_current_time)
28745 (__deadline_from_timeval, __deadline_to_ms): Remove
28746 internal_function.
28747 * inet/getnameinfo.c (nrl_domainname): Likewise.
28748 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28749 * inet/inet6_option.c (add_pad): Likewise.
28750 * inet/net-internal.h (__deadline_current_time)
28751 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28752 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28753 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28754 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28755
28756 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28757
28758 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28759 include <bits/nan.h>.
28760 * math/Makefile (headers): Remove bits/nan.h.
28761 * bits/nan.h: Remove.
28762 * sysdeps/ieee754/bits/nan.h: Likewise.
28763 * sysdeps/mips/bits/nan.h: Likewise.
28764
28765 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28766 not include <bits/inf.h>.
28767 * math/Makefile (headers): Remove bits/inf.h.
28768 * bits/inf.h: Remove.
28769 * sysdeps/ieee754/bits/inf.h: Likewise.
28770
28771 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28772 bits/huge_vall.h or bits/huge_val_flt128.h.
28773 (HUGE_VAL): Define directly here.
28774 [__USE_ISOC99] (HUGE_VALF): Likewise.
28775 [__USE_ISOC99] (HUGE_VALL): Likewise.
28776 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28777 (HUGE_VAL_F128): Likewise.
28778 * math/Makefile (headers): Remove bits/huge_val.h,
28779 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28780 * bits/huge_val.h: Remove.
28781 * bits/huge_val_flt128.h: Likewise.
28782 * bits/huge_valf.h: Likewise.
28783 * bits/huge_vall.h: Likewise.
28784 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28785 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28786 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28787 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28788 * sysdeps/sh/bits/huge_val.h: Likewise.
28789 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28790 * sysdeps/x86/bits/huge_vall.h: Likewise.
28791
28792 2017-08-31 Florian Weimer <fweimer@redhat.com>
28793
28794 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28795 internal_function.
28796 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28797 Likewise.
28798 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28799 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28800 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28801 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28802 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28803 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28804 * elf/dl-libc.c (dlerror_run): Likewise.
28805 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28806 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28807 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28808 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28809 Likewise.
28810 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28811 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28812 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28813 * elf/dl-profile.c (_dl_start_profile): Likewise.
28814 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28815 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28816 Likewise.
28817 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28818 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28819 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28820 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28821 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28822 (_dl_allocate_tls_storage): Likewise.
28823 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28824 (_dl_check_all_versions): Likewise.
28825 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28826 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28827 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28828 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28829 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28830 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28831 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28832 internal_function from __dl_start.
28833 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28834 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28835 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28836 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28837 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28838 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28839 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28840 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28841 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28842 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28843 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28844 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28845 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28846 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28847 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28848 Likewise.
28849 (struct rtld_global_ro): Remove internal_function from the
28850 _dl_lookup_symbol_x member.
28851 (_dl_symbol_value): Remove. No longer defined anywhere.
28852 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28853 internal_function.
28854 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28855 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28856 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28857 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28858 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28859 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28860 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28861 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28862 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28863 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28864 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28865 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28866
28867 2017-08-31 Florian Weimer <fweimer@redhat.com>
28868
28869 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28870 Remove internal_function.
28871 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28872 Likewise.
28873 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28874 Likewise.
28875
28876 2017-08-31 Florian Weimer <fweimer@redhat.com>
28877
28878 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28879 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28880 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28881
28882 2017-08-31 Florian Weimer <fweimer@redhat.com>
28883
28884 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28885 (__gai_enqueue_request): Remove internal_function.
28886 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28887 (__gai_remove_request, __gai_notify, __gai_notify_only)
28888 (__gai_sigqueue): Likewise.
28889 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28890 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28891 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28892 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28893 Likewise.
28894
28895 2017-08-31 Florian Weimer <fweimer@redhat.com>
28896
28897 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28898 * include/dirent.h (__opendirat, __getdents, __getdents64)
28899 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28900 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28901 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28902 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28903 Likewise.
28904 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28905
28906 2017-08-31 Florian Weimer <fweimer@redhat.com>
28907
28908 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28909 internal_function.
28910 (GETCWD_RETURN_TYPE): Likewise.
28911
28912 2017-08-31 Florian Weimer <fweimer@redhat.com>
28913
28914 * include/time.h (__tz_compute, __strptime_internal): Remove
28915 internal_function.
28916 * time/strptime_l.c (__strptime_internal): Likewise.
28917 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28918
28919 2017-08-31 Florian Weimer <fweimer@redhat.com>
28920
28921 * iconv/gconv.c (__gconv): Remove internal_function.
28922 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28923 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28924 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28925 (__gconv_release_cache): Likewise.
28926 * iconv/gconv_close.c (__gconv_close): Likewise.
28927 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28928 (read_conf_file, __gconv_get_path): Likewise.
28929 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28930 (__gconv_release_step, gen_steps, increment_counter)
28931 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28932 (__gconv_close_transform, free_modules_db): Likewise.
28933 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28934 Likewise.
28935 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28936 (__gconv_find_transform, __gconv_lookup_cache)
28937 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28938 (__gconv_close_transform, __gconv_release_cache)
28939 (__gconv_loaded_object, __gconv_release_shlib)
28940 (__gconv_compare_alias): Likewise.
28941 * iconv/gconv_open.c (__gconv_open): Likewise.
28942 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28943 * iconv/iconvconfig.c (add_module): Likewise.
28944 * intl/dcigettext.c (plural_lookup, guess_category_value)
28945 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28946 * intl/eval-plural.h (plural_eval): Likewise.
28947 * intl/finddomain.c (_nl_find_domain): Likewise.
28948 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28949 (_nl_load_domain, _nl_find_msg): Likewise.
28950 (internal_function): Remove definition.
28951 * intl/loadinfo.h (internal_function): Likewise.
28952 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28953 internal_function.
28954 * intl/localealias.c (internal_function): Remove definition.
28955 (read_alias_file): Remove internal_function.
28956 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28957 * intl/plural-exp.h (internal_function): Remove definition.
28958 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28959 internal_function.
28960 * intl/plural.c: Regenerate.
28961 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28962 * locale/coll-lookup.c (__collidx_table_lookup)
28963 (__collseq_table_lookup): Likewise.
28964 * locale/coll-lookup.h (__collidx_table_lookup)
28965 (__collseq_table_lookup): Likewise.
28966 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28967 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28968 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28969 (_nl_unload_locale): Likewise.
28970 * locale/localeinfo.h (struct __locale_data): Remove
28971 internal_function from cleanup member.
28972 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28973 (_nl_remove_locale, _nl_load_locale_from_archive)
28974 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28975 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28976 (_nl_cleanup_time): Remove internal_function.
28977 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28978 (_nl_parse_alt_digit): Likewise.
28979 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28980 (_nl_select_era_entry): Likewise.
28981 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28982 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28983 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28984 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28985 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28986
28987 2017-08-31 Florian Weimer <fweimer@redhat.com>
28988
28989 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28990 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28991 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28992 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28993 Likewise.
28994 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28995 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28996 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28997 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28998 Likewise.
28999 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29000
29001 2017-08-31 Florian Weimer <fweimer@redhat.com>
29002
29003 * misc/getttyent.c (skip, value): Remove internal_function.
29004 * misc/syslog.c (openlog_internal): Likewise.
29005 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29006
29007 2017-08-31 Florian Weimer <fweimer@redhat.com>
29008
29009 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29010 (__nss_rewrite_field): Remove internal_function.
29011 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29012 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29013 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29014 * nss/nsswitch.c (nss_parse_file, nss_getline)
29015 (nss_parse_service_list, nss_new_service): Likewise.
29016 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29017 * nss/valid_field.c (__nss_valid_field): Likewise.
29018 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29019
29020 2017-08-31 Florian Weimer <fweimer@redhat.com>
29021
29022 * malloc/arena.c (__malloc_fork_lock_parent)
29023 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29024 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29025 internal_function from defintions.
29026 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29027 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29028 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29029 internal_function from declarations.
29030 * malloc/malloc.c (internal_function): Do not define.
29031 (mem2mem_check): Remove internal_function from declaration.
29032 (munmap_chunk, mremap_chunk): Remove internal_function.
29033 * malloc/mtrace.c (tr_where): Likewise.
29034
29035 2017-08-31 Florian Weimer <fweimer@redhat.com>
29036
29037 * include/rpc/pmap_clnt.h (__get_socket): Remove
29038 internal_function.
29039 * sunrpc/auth_des.c (synchronize): Likewise.
29040 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29041 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29042 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29043 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29044 (key_call): Likewise.
29045 * sunrpc/pm_getport.c (__get_socket): Likewise.
29046 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29047 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29048 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29049 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29050 (invalidate): Likewise.
29051 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29052 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29053 (set_input_fragment, get_input_bytes): Likewise.
29054
29055 2017-08-31 Florian Weimer <fweimer@redhat.com>
29056
29057 * malloc/malloc.c (_int_free): Remove locked variable and related
29058 asserts.
29059
29060 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29061
29062 [BZ #22051]
29063 * Makerules (build-module-helper-objlist): Filter out
29064 $(elf-objpfx)sofini.os.
29065 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29066 needed.
29067
29068 2017-08-31 Florian Weimer <fweimer@redhat.com>
29069
29070 * libio/fcloseall.c: Assume weak_alias is defined.
29071 * libio/feof.c: Likewise.
29072 * libio/fileno.c: Likewise.
29073 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29074 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29075 definitions.
29076 (_IO_file_open): Call __open directly.
29077 (_IO_new_file_sync): Assume ESPIPE is defined.
29078 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29079 (_IO_new_file_write): Call __write directly.
29080 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29081 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29082 * libio/genops.c: Assume _LIBC is defined.
29083 (save_for_backup): Remove internal_function.
29084 * libio/getc.c: Assume weak_alias is defined.
29085 * libio/getwc.c: Likewise.
29086 * libio/iofclose.c: Assume _LIBC is defined.
29087 * libio/iofdopen.c: Likewise.
29088 (_IO_fcntl): Remove macro definition.
29089 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29090 Call __fcntl directly.
29091 * libio/iofflush.c: Assume weak_alias is defined.
29092 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29093 defined.
29094 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29095 * libio/iofgets.c: Likewise.
29096 * libio/iofopen.c: Assume _LIBC is defined.
29097 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29098 * libio/iofputs.c: Assume weak_alias is defined.
29099 * libio/iofread.c: Likewise.
29100 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29101 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29102 * libio/ioftell.c: Assume weak_alias is defined.
29103 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29104 * libio/iofwide.c: Assume _LIBC is defined.
29105 (_IO_fwide): Drop SHARED conditional because it is implied by
29106 SHLIB_COMPAT.
29107 * libio/iofwrite.c: Assume weak_alias is defined.
29108 * libio/iogetdelim.c: Likewise.
29109 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29110 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29111 (_IO_getwline): Call __wmemcpy directly.
29112 * libio/iopopen.c: Assume _LIBC is defined.
29113 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29114 (_IO_close): Remove macro definitions.
29115 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29116 _exit directly.
29117 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29118 directly.
29119 * libio/ioputs.c: Assume weak_alias is defined.
29120 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29121 * libio/iosetbuffer.c: Assume weak_alias is defined.
29122 * libio/iosetvbuf.c: Likewise.
29123 * libio/ioungetc.c: Likewise.
29124 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29125 libc_hidden_def, libc_hidden_weak, NULL are defined.
29126 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29127 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29128 defined.
29129 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29130 definitions.
29131 (_IO_old_file_init_internal): Drop SHARED conditional because it
29132 is implied by SHLIB_COMPAT.
29133 (_IO_old_file_fopen): Call __open directly.
29134 (_IO_old_file_sync): Assume ESPIPE is defined.
29135 (_IO_old_file_write): Call __write directly.
29136 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29137 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29138 Call __fcntl directly.
29139 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29140 (_IO_old_fgetpos): Assume EIO is defined.
29141 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29142 (_IO_old_fgetpos64): Assume EIO is defined.
29143 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29144 (_IO_old_fsetpos): Assume EIO is defined.
29145 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29146 (_IO_old_fsetpos64): Assume EIO is defined.
29147 * libio/oldiopopen.c: Assume _LIBC is defined.
29148 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29149 (_IO_close): Remove macro definitions.
29150 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29151 directly.
29152 (_IO_old_proc_close): Call __close, __waitpid directly.
29153 * libio/put.c: Assume weak_alias is defined.
29154 * libio/stdfiles.c: Assume _LIBC is defined.
29155 * libio/stdio.c: Likewise.
29156 * libio/wfileops.c: Likewise.
29157 (_IO_wfile_sync): Assume ESPIPE is defined.
29158 * libio/wgenops.c: Assume _LIBC is defined.
29159 (save_for_wbackup): Remove internal_function.
29160
29161 2017-08-31 Florian Weimer <fweimer@redhat.com>
29162
29163 * malloc/malloc.c (top_check): Change return type to void. Remove
29164 internal_function.
29165 * malloc/hooks.c (top_check): Likewise.
29166 (malloc_check, realloc_check, memalign_check): Adjust.
29167
29168 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29169
29170 [BZ #21457]
29171 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29172 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29173 sigcontext and namespace requirements.
29174 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29175 * sysdeps/m68k/sys/ucontext.h: Likewise.
29176 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29177 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29178 <bits/sigcontext.h>.
29179 (__ctx): Define earlier.
29180 (mcontext_t): Define structure contents rather than using struct
29181 sigcontext.
29182 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29183 __glibc_reserved1 instead of __reserved.
29184 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29185 <bits/sigcontext.h>.
29186 (__ctx): Define earlier.
29187 (mcontext_t): Define structure contents rather than using struct
29188 sigcontext.
29189 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29190 mcontext_t instead of struct sigcontext.
29191 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29192 <bits/sigcontext.h>.
29193 (__ctx): Define earlier.
29194 (mcontext_t): Define structure contents rather than using struct
29195 sigcontext.
29196 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29197 <bits/sigcontext.h>.
29198 (__ctx): Define earlier.
29199 (mcontext_t): Define structure contents rather than using struct
29200 sigcontext.
29201 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29202 mcontext_t instead of struct sigcontext.
29203 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29204 mcontext_t instead of struct sigcontext.
29205 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29206 <bits/sigcontext.h>.
29207 (__ctx): New macro.
29208 (struct __ia64_fpreg_mcontext): New type.
29209 (mcontext_t): Define structure contents rather than using struct
29210 sigcontext.
29211 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29212 (uc_sigmask): Define using __ctx.
29213 (uc_stack): Likewise.
29214 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29215 <bits/sigcontext.h>.
29216 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29217 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29218 <bits/sigcontext.h>.
29219 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29220 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29221 <bits/sigcontext.h>.
29222 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29223 <bits/sigcontext.h>.
29224 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29225 <bits/sigcontext.h>.
29226 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29227 <bits/sigcontext.h>.
29228 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29229 <bits/sigcontext.h>.
29230 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29231 <bits/sigcontext.h>.
29232 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29233 <bits/sigcontext.h>.
29234 (__ctx): Define earlier.
29235 (mcontext_t): Define structure contents rather than using struct
29236 sigcontext.
29237 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29238 <bits/sigcontext.h>. Include <bits/types.h>.
29239 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29240 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29241 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29242 (test-xfail-UNIX98/signal.h/conform): Likewise.
29243 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29244 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29245 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29246 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29247 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29248 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29249 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29250 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29251 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29252
29253 2017-08-30 Florian Weimer <fweimer@redhat.com>
29254
29255 * malloc/dynarray_emplace_enlarge.c
29256 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29257 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29258 * malloc/tst-dynarray.c (test_long_overflow): New function.
29259 (do_test): Call it.
29260
29261 2017-08-30 Florian Weimer <fweimer@redhat.com>
29262
29263 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29264 (set_arena_corrupt): Remove definitions.
29265 (mtrim): Do not check for corrupt arena.
29266 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29267 Likewise.
29268
29269 2017-08-30 Florian Weimer <fweimer@redhat.com>
29270
29271 [BZ #21754]
29272 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29273 check_action.
29274 (ptmalloc_init): Do not set or use check_action.
29275 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29276 call to malloc_printerr. Remove return statement.
29277 (free_check): Likewise. Remove arena unlock.
29278 (top_check): Update comment. Adjust call to malloc_printerr.
29279 Remove heap repair code.
29280 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29281 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29282 (sysmalloc): Adjust call to malloc_printerr.
29283 (munmap_chunk, __libc_realloc): Likewise. Remove return
29284 statement.
29285 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29286 Remove errout label and corresponding gotos.
29287 (_int_free): Likewise. Remove arena unlock.
29288 (do_set_mallopt_check): Do not set check_action.
29289 (malloc_printerr): Adjust parameter list. Do not mark arena as
29290 corrupt.
29291 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29292 comment.
29293 * manual/probes.texi (Memory Allocation Probes): Remove
29294 memory_mallopt_check_action.
29295
29296 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29297
29298 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29299 Use pointer to uint64_t instead of long int for sp.
29300
29301 2017-08-30 Florian Weimer <fweimer@redhat.com>
29302
29303 [BZ #21754]
29304 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29305 without printing a backtrace. Do not leak any information in the
29306 error message.
29307 * manual/memory.texi (Heap Consistency Checking): Update.
29308 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29309
29310 2017-08-30 Florian Weimer <fweimer@redhat.com>
29311
29312 Do not scale NPTL tests with available number of CPUs.
29313 * nptl/tst-cond16.c (count): Set to constant value of 8.
29314 * nptl/tst-cond18.c (count): Likewise.
29315
29316 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29317
29318 [BZ #22035]
29319 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29320 Define to take a second argument that is a macro that
29321 concatentates a suffix, not the suffix itself.
29322 (__CONCAT_d): New macro.
29323 (__CONCAT_f): Likewise.
29324 (__CONCAT_l): Likewise.
29325
29326 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29327
29328 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29329 by child.
29330
29331 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29332 Aurelien Jarno <aurelien@aurel32.net>
29333 Maciej W. Rozycki <macro@imgtec.com>
29334
29335 [BZ #21956]
29336 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29337 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29338 `mips16-syscall6' and `mips16-syscall7'.
29339 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29340 (CFLAGS-mips16-syscall7.c): Remove.
29341 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29342 Remove `__mips16_syscall5', `__mips16_syscall6' and
29343 `__mips16_syscall7'.
29344 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29345 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29346 `__mips_syscall_return'.
29347 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29348 (__mips16_syscall1): Likewise.
29349 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29350 (__mips16_syscall2): Likewise.
29351 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29352 (__mips16_syscall3): Likewise.
29353 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29354 (__mips16_syscall4): Likewise.
29355 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29356 Remove.
29357 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29358 Remove.
29359 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29360 Remove.
29361 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29362 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29363 `__mips16_syscall5'. Remove prototype.
29364 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29365 `__mips16_syscall6'. Remove prototype.
29366 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29367 `__mips16_syscall7'. Remove prototype.
29368 (__nomips16, __mips16_syscall_return): Move to...
29369 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29370 (__nomips16, __mips_syscall_return): ... here.
29371 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29372 `__mips16_syscall_return' to `__mips_syscall_return'.
29373 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29374 `internal_syscall##nr'.
29375 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29376 `internal_syscall##nr'.
29377 (FORCE_FRAME_POINTER): Remove.
29378 (__mips_syscall5): New prototype.
29379 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29380 (__mips_syscall6): New prototype.
29381 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29382 (__mips_syscall7): New prototype.
29383 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29384 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29385 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29386 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29387 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29388 (sysdep_routines): Add libc-do-syscall.
29389 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29390 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29391
29392 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29393
29394 [BZ #21672]
29395 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29396 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29397 (advise_stack_range): New function.
29398 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29399 stack non required to advise_stack_range at allocatestack.c
29400
29401 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29402
29403 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29404
29405 2017-08-29 Florian Weimer <fweimer@redhat.com>
29406
29407 [BZ #22026]
29408 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29409 __end_fct. Mangle __end_fct after setting it to NULL.
29410 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29411 (modules-names, modules-names-tests): Add
29412 tst-gconv-init-failure-mod.
29413 (gconv-modules): New target.
29414 (tst-gconv-init-failure-mod.so): Link against libsupport.
29415 (tst-gconv-init-failure): Depend on gconv-modules,
29416 tst-gconv-init-failure-mod.so.
29417 * iconv/tst-gconv-init-failure-mod.c: New file.
29418 * iconv/tst-gconv-init-failure.c: Likewise.
29419 * iconv/test-gconv-modules: Likewise.
29420
29421 2017-08-29 Florian Weimer <fweimer@redhat.com>
29422
29423 [BZ #22025]
29424 * iconv/gconv_db.c (free_derivation): Remove redundant
29425 parentheses.
29426 (gen_steps): Unconditionally mangle __btowc_fct after
29427 initialization.
29428 (increment_counter): Likewise. Do not call init_fct for internal
29429 modules.
29430
29431 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29432
29433 [BZ #22028]
29434 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29435 (_MSUF_): Remove macro.
29436 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29437 Likewise.
29438 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29439 (__REDIRFROM_X): New macro.
29440 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29441 Likewise.
29442 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29443 (__REDIRTO_X): Likewise.
29444 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29445 arguments.
29446 (__MATH_REDIRCALL_2): Likewise.
29447 (__MATH_REDIRCALL_INTERNAL): Likewise.
29448 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29449 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29450 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29451 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29452 * math/test-finite-macros.c: New file.
29453 * math/Makefile (tests): Add test-finite-macros.
29454 (CFLAGS-test-finite-macros.c): New variable.
29455
29456 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29457 Jeff Law <law@redhat.com>
29458
29459 [BZ #22025]
29460 Mangle NULL pointers in iconv/gconv.
29461 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29462 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29463 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29464 is non-NULL before demangling the end_fct. Check for NULL
29465 end_fct after demangling.
29466 (__gconv_release_step): Demangle the end_fct before checking
29467 it for NULL. Remove assert on __shlibc_handle != NULL.
29468 (gen_steps): Don't check btowc_fct for NULL before mangling.
29469 Demangle init_fct before checking for NULL.
29470 (increment_counter): Likewise.
29471 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29472 end_fct for NULL before mangling.
29473 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29474 for NULL.
29475
29476 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29477
29478 [BZ #21971]
29479 * locale/iso-639.def: add Morisyen.
29480
29481 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29482
29483 [BZ #21930]
29484 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29485 (iszero): New C++ implementation that does not use
29486 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29487 signaling nans are enabled, since __builtin_types_compatible_p
29488 is a C-only feature.
29489 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29490 defined, include ieee754_float128.h for access to the union and
29491 member ieee854_float128.ieee.
29492 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29493 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29494 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29495 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29496 options of test-math-zero on powerpc64le.
29497
29498 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29499
29500 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29501 Change double to float.
29502
29503 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29504
29505 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29506 unconditional.
29507 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29508 conditional code; define contents only for [LIBM_SVID_COMPAT].
29509
29510 2017-08-28 Florian Weimer <fweimer@redhat.com>
29511
29512 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29513 (abi-lp64_be-options): Remove.
29514 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29515 (abi-hard-options): Likewise.
29516 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29517 (abi-o32_hard-options, abi-o32_soft_2008-options)
29518 (abi-o32_hard_2008-options, abi-n32_soft-options)
29519 (abi-n32_hard-options, abi-n32_soft_2008-options)
29520 (abi-n32_hard_2008-options, abi-n64_soft-options)
29521 (abi-n64_hard-options, abi-n64_soft_2008-options)
29522 (abi-n64_hard_2008-options): Likewise.
29523 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29524 (abi-64-v1-options, abi-64-v2-options): Likewise.
29525 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29526 (abi-64-options): Likewise.
29527 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29528 (abi-64-options): Likewise.
29529 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29530 (abi-64-options): Likewise.
29531 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29532 (abi-64-options, abi-x32-options): Likewise.
29533
29534 2017-08-28 Florian Weimer <fweimer@redhat.com>
29535
29536 Store supported list of SYS_* system calls in the source tree.
29537 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29538 (bits/syscall.h): Generate from list file.
29539 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29540 [$(subdir) = misc] (tests): Add tst-syscall-list.
29541 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29542 [$(subdir) = misc] (tst-syscall-list-macros.list)
29543 [$(subdir) = misc] (tst-syscall-list-nr.list)
29544 (tst-syscall-list-sys.list): Helper targets for new
29545 tst-syscall-list test.
29546 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29547 tst-syscall-list.sh.
29548 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29549 target. Do not include bits/syscall.d.
29550 [$(subdir) = misc] (generated): Do not update.
29551 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29552 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29553 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29554 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29555
29556 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29557
29558 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29559 (tst-cxa_atexit, tst-on_exit): Likewise.
29560 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29561 tst-cxa_atexit, and tst-on_exit.
29562 * stdlib/tst-atexit-common.c: New file.
29563 * stdlib/tst-atexit.c: New file.
29564 * stdlib/tst-at_quick_exit.c: New file.
29565 * stdlib/tst-cxa_atexit.c: New file.
29566 * stdlib/tst-on_exit.c: New file.
29567
29568 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29569
29570 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29571 * mach/stack_chk_fail_local.c: New file.
29572 * hurd/stack_chk_fail_local.c: New file.
29573 * mach/Machrules ($(interface-library)-routines): Add
29574 stack_chk_fail_local.
29575 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29576 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29577 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29578 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29579 * hurd/Makefile (CFLAGS-hurdstartup.o,
29580 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29581
29582 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29583
29584 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29585 (index_cpu_*, index_arch_*): Removed.
29586
29587 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29588
29589 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29590 Use uint64_t instead of unsigned long.
29591
29592 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29593
29594 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29595 [__HAVE_DISTINCT_FLOAT128].
29596
29597 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29598 of <bits/math-finite.h>.
29599 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29600 inclusion of <bits/math-finite.h>.
29601 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29602 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29603 __NO_LONG_DOUBLE_MATH].
29604 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29605 (__MATH_REDIRCALL_2): Likewise.
29606 (__MATH_REDIRCALL_INTERNAL): Likewise.
29607 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29608 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29609 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29610
29611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29612 Remove file.
29613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29614 Likewise.
29615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29616 Likewise.
29617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29618 Likewise.
29619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29620 Likewise.
29621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29622 Likewise.
29623 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29624 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29625 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29626 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29627 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29628 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29629 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29630 w_sqrtf_compat-ppc32.
29631
29632 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29633
29634 * math/math.h [defined __cplusplus] (issignaling): In the long
29635 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29636 is not defined. Call __issignaling, otherwise.
29637
29638 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29639
29640 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29641 syscall definitions and replace __builtin_expect with __glibc_likely.
29642 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29643 syscall.
29644 (SYSCALL_CANCELLABLE): Removedefinition
29645 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29646 definition.
29647 (PSEUDO_END): Likewise.
29648 [IS_IN (libpthread)] (CENABLE): Likewise.
29649 [IS_IN (libpthread)] (CDISABLE): Likewise.
29650 [IS_IN (libc)] (CENABLE): Likewise.
29651 [IS_IN (libc)] (CENABLE): Likewise.
29652 [IS_IN (librt)] (CDISABLE): Likewise.
29653 [IS_IN (librt)] (CDISABLE): Likewise.
29654 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29655 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29656 definition.
29657 (PSEUDO_END): Likewise.
29658 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29659 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29660 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29661 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29662 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29663 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29664 (CENABLE): Likewise.
29665 (CDISABLE): Likewise.
29666 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29667 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29668 defintion.
29669 (PSEUDO_END): Likewise.
29670 [IS_IN (libpthread)] (CENABLE): Likewise.
29671 [IS_IN (libpthread)] (CDISABLE): Likewise.
29672 [IS_IN (libc)] (CENABLE): Likewise.
29673 [IS_IN (libc)] (CENABLE): Likewise.
29674 [IS_IN (librt)] (CDISABLE): Likewise.
29675 [IS_IN (librt)] (CDISABLE): Likewise.
29676 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29677 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29678 definition.
29679 (PSEUDO_END): Likewise.
29680 [IS_IN (libpthread)] (CENABLE): Likewise.
29681 [IS_IN (libpthread)] (CDISABLE): Likewise.
29682 [IS_IN (libc)] (CENABLE): Likewise.
29683 [IS_IN (libc)] (CENABLE): Likewise.
29684 [IS_IN (librt)] (CDISABLE): Likewise.
29685 [IS_IN (librt)] (CDISABLE): Likewise.
29686 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29687 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29688 definition.
29689 (PSEUDO_END): Likewise.
29690 [IS_IN (libpthread)] (CENABLE): Likewise.
29691 [IS_IN (libpthread)] (CDISABLE): Likewise.
29692 [IS_IN (libc)] (CENABLE): Likewise.
29693 [IS_IN (libc)] (CENABLE): Likewise.
29694 [IS_IN (librt)] (CDISABLE): Likewise.
29695 [IS_IN (librt)] (CDISABLE): Likewise.
29696 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29697 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29698 definition.
29699 (PSEUDO_END): Likewise.
29700 [IS_IN (libpthread)] (CENABLE): Likewise.
29701 [IS_IN (libpthread)] (CDISABLE): Likewise.
29702 [IS_IN (libc)] (CENABLE): Likewise.
29703 [IS_IN (libc)] (CENABLE): Likewise.
29704 [IS_IN (librt)] (CDISABLE): Likewise.
29705 [IS_IN (librt)] (CDISABLE): Likewise.
29706 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29707 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29708 definition.
29709 (PSEUDO_END): Likewise.
29710 [IS_IN (libpthread)] (CENABLE): Likewise.
29711 [IS_IN (libpthread)] (CDISABLE): Likewise.
29712 [IS_IN (libc)] (CENABLE): Likewise.
29713 [IS_IN (libc)] (CENABLE): Likewise.
29714 [IS_IN (librt)] (CDISABLE): Likewise.
29715 [IS_IN (librt)] (CDISABLE): Likewise.
29716 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29717 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29718 definition.
29719 (PSEUDO_END): Likewise.
29720 [IS_IN (libpthread)] (CENABLE): Likewise.
29721 [IS_IN (libpthread)] (CDISABLE): Likewise.
29722 [IS_IN (libc)] (CENABLE): Likewise.
29723 [IS_IN (libc)] (CENABLE): Likewise.
29724 [IS_IN (librt)] (CDISABLE): Likewise.
29725 [IS_IN (librt)] (CDISABLE): Likewise.
29726 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29727 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29728 Remove definition.
29729 (PSEUDO_END): Likewise.
29730 [IS_IN (libpthread)] (CENABLE): Likewise.
29731 [IS_IN (libpthread)] (CDISABLE): Likewise.
29732 [IS_IN (libc)] (CENABLE): Likewise.
29733 [IS_IN (libc)] (CENABLE): Likewise.
29734 [IS_IN (librt)] (CDISABLE): Likewise.
29735 [IS_IN (librt)] (CDISABLE): Likewise.
29736 (SINGLE_THREAD_P): Likewise.
29737 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29738 definition.
29739 (PSEUDO_END): Likewise.
29740 [IS_IN (libpthread)] (CENABLE): Likewise.
29741 [IS_IN (libpthread)] (CDISABLE): Likewise.
29742 [IS_IN (libc)] (CENABLE): Likewise.
29743 [IS_IN (libc)] (CENABLE): Likewise.
29744 [IS_IN (librt)] (CDISABLE): Likewise.
29745 [IS_IN (librt)] (CDISABLE): Likewise.
29746 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29747 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29748 definition.
29749 (PSEUDO_END): Likewise.
29750 [IS_IN (libpthread)] (CENABLE): Likewise.
29751 [IS_IN (libpthread)] (CDISABLE): Likewise.
29752 [IS_IN (libc)] (CENABLE): Likewise.
29753 [IS_IN (libc)] (CENABLE): Likewise.
29754 [IS_IN (librt)] (CDISABLE): Likewise.
29755 [IS_IN (librt)] (CDISABLE): Likewise.
29756 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29757 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29758 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29759 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29760 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29761 definition.
29762 (PSEUDO_END): Likewise.
29763 [IS_IN (libpthread)] (CENABLE): Likewise.
29764 [IS_IN (libpthread)] (CDISABLE): Likewise.
29765 [IS_IN (libc)] (CENABLE): Likewise.
29766 [IS_IN (libc)] (CENABLE): Likewise.
29767 [IS_IN (librt)] (CDISABLE): Likewise.
29768 [IS_IN (librt)] (CDISABLE): Likewise.
29769 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29770 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29771 definition.
29772 (PSEUDO_END): Likewise.
29773 [IS_IN (libpthread)] (CENABLE): Likewise.
29774 [IS_IN (libpthread)] (CDISABLE): Likewise.
29775 [IS_IN (libc)] (CENABLE): Likewise.
29776 [IS_IN (libc)] (CENABLE): Likewise.
29777 [IS_IN (librt)] (CDISABLE): Likewise.
29778 [IS_IN (librt)] (CDISABLE): Likewise.
29779 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29780 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29781 definition.
29782 (PSEUDO_END): Likewise.
29783 [IS_IN (libpthread)] (CENABLE): Likewise.
29784 [IS_IN (libpthread)] (CDISABLE): Likewise.
29785 [IS_IN (libc)] (CENABLE): Likewise.
29786 [IS_IN (libc)] (CENABLE): Likewise.
29787 [IS_IN (librt)] (CDISABLE): Likewise.
29788 [IS_IN (librt)] (CDISABLE): Likewise.
29789 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29790 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29791 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29792 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29793 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29794 definition.
29795 (PSEUDO_END): Likewise.
29796 [IS_IN (libpthread)] (CENABLE): Likewise.
29797 [IS_IN (libpthread)] (CDISABLE): Likewise.
29798 [IS_IN (libc)] (CENABLE): Likewise.
29799 [IS_IN (libc)] (CENABLE): Likewise.
29800 [IS_IN (librt)] (CDISABLE): Likewise.
29801 [IS_IN (librt)] (CDISABLE): Likewise.
29802 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29803 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29804 definition.
29805 (PSEUDO_END): Likewise.
29806 [IS_IN (libpthread)] (CENABLE): Likewise.
29807 [IS_IN (libpthread)] (CDISABLE): Likewise.
29808 [IS_IN (libc)] (CENABLE): Likewise.
29809 [IS_IN (libc)] (CENABLE): Likewise.
29810 [IS_IN (librt)] (CDISABLE): Likewise.
29811 [IS_IN (librt)] (CDISABLE): Likewise.
29812 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29813
29814 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29815
29816 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29817
29818 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29819
29820 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29821
29822 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29823
29824 [BZ #21982]
29825 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29826 middle and outer with size_t instead of int. Repleace %d and
29827 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29828 "MAX (outer, nchars - 64)" to support unsigned outer and
29829 nchars. Also exit loop when outer == 0.
29830
29831 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29832
29833 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29834 * include/signal.h (__sigsuspend_nocancel): Likewise.
29835 * include/time.h (__nanosleep_nocancel): Likewise.
29836 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29837 * login/utmp_file.c: Include non cancellable syscall header.
29838 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29839 prototype.
29840
29841 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29842
29843 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29844 .byte sequences with AVX512F instructions.
29845 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29846 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29847 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29848 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29849 Likewise.
29850 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29851 Likewise.
29852
29853 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29854 Steve Ellcey <sellcey@cavium.com>
29855
29856 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29857 Use PTR_REG macro in cmp instruction.
29858
29859 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29860
29861 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29862 Change the return type of the ifunc resolver to match the return
29863 type of the target function.
29864
29865 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29866
29867 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29868 (preadv64): Likewise.
29869 (pwrite64(: Likewise.
29870 (pwritev64): Likewise.
29871
29872 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29873 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29874 (LOAD_ARGS_0): Likewise.
29875 (LOAD_ARGS_1): Likewise.
29876 (LOAD_ARGS_2): Likewise.
29877 (LOAD_ARGS_3): Likewise.
29878 (LOAD_ARGS_4): Likewise.
29879 (LOAD_ARGS_5): Likewise.
29880 (LOAD_ARGS_6): Likewise.
29881 (LOAD_REGS_0): Likewise.
29882 (LOAD_REGS_1): Likewise.
29883 (LOAD_REGS_2): Likewise.
29884 (LOAD_REGS_3): Likewise.
29885 (LOAD_REGS_4): Likewise.
29886 (LOAD_REGS_5): Likewise.
29887 (LOAD_REGS_6): Likewise.
29888 (ASM_ARGS_0): Likewise.
29889 (ASM_ARGS_1): Likewise.
29890 (ASM_ARGS_2): Likewise.
29891 (ASM_ARGS_3): Likewise.
29892 (ASM_ARGS_4): Likewise.
29893 (ASM_ARGS_5): Likewise.
29894 (ASM_ARGS_6): Likewise.
29895 (LOAD_ARGS_TYPES_1): Likewise.
29896 (LOAD_ARGS_TYPES_2): Likewise.
29897 (LOAD_ARGS_TYPES_3): Likewise.
29898 (LOAD_ARGS_TYPES_4): Likewise.
29899 (LOAD_ARGS_TYPES_5): Likewise.
29900 (LOAD_ARGS_TYPES_6): Likewise.
29901 (LOAD_REGS_TYPES_1): Likewise.
29902 (LOAD_REGS_TYPES_2): Likewise.
29903 (LOAD_REGS_TYPES_3): Likewise.
29904 (LOAD_REGS_TYPES_4): Likewise.
29905 (LOAD_REGS_TYPES_5): Likewise.
29906 (LOAD_REGS_TYPES_6): Likewise.
29907 (TYPEFY): New define.
29908 (ARGIFY): Likewise.
29909 (internal_syscall0): Likewise.
29910 (internal_syscall1): Likewise.
29911 (internal_syscall2): Likewise.
29912 (internal_syscall3): Likewise.
29913 (internal_syscall4): Likewise.
29914 (internal_syscall5): Likewise.
29915 (internal_syscall6): Likewise.
29916 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29917 (INTERNAL_SYSCALL_NCS): Remove define.
29918 (internal_syscall1): Add define.
29919
29920 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29921
29922 * math/w_remainder_compat.c: Remove duplicate inclusion of
29923 math-svid-compat.h.
29924 * math/w_remainderf_compat.c: Likewise.
29925 * math/w_remainderl_compat.c: Likewise.
29926
29927 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29928
29929 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29930
29931 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29932
29933 [BZ #21684]
29934 * math/tgmath.h (__floating_type): Simplify definitions.
29935 (__real_integer_type): New macro.
29936 (__complex_integer_type): Likewise.
29937 (__expr_is_real): Likewise.
29938 (__tgmath_real_type_sub): Update comment to describe handling of
29939 complex types.
29940 (__tgmath_complex_type_sub): New macro.
29941 (__tgmath_complex_type): Likewise.
29942 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29943 (__TGMATH_CF128): Use __expr_is_real.
29944 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29945 __expr_is_real.
29946 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29947 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29948 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29949 integer types.
29950
29951 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29952
29953 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29954 macro.
29955 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29956 alias.
29957 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29958 Likewise.
29959
29960 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29961 nanosleep_not_cancel with __nanosleep_nocancel.
29962 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29963 (__nanosleep_nocancel): New macro.
29964 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29965 function.
29966 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29967 macro.
29968 (__nanosleep_nocancel): New prototype.
29969
29970 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29971 pause_not_cancel with __pause_nocancel.
29972 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29973 (__pause_nocancel): New macro.
29974 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29975 macro.
29976 (__pause_nocancel): New prototype.
29977 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29978
29979 2017-08-22 Martin Sebor <msebor@redhat.com>
29980
29981 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29982 to return a pointer to the same type as the target function.
29983
29984 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29985
29986 [BZ #18822]
29987 [BZ #21986]
29988 * include/printf.h (__printf_fphex): Add attribute_hidden.
29989 (__guess_grouping): New prototype.
29990 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29991 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29992 libc_hidden_proto and libc_hidden_def.
29993 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29994 (__vstrfmon_l): Remove the third argument passed to
29995 __guess_grouping.
29996
29997 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29998
29999 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30000 definition for issignaling that does not rely on __MATH_TG,
30001 since __MATH_TG uses __builtin_types_compatible_p, which is only
30002 available in C mode.
30003 (CFLAGS-test-math-issignaling.cc): New variable.
30004 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30005 * math/test-math-issignaling.cc: New test for C++ implementation
30006 of type-generic issignaling.
30007 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30008 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30009 options of test-math-issignaling on powerpc64le.
30010
30011 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30012
30013 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30014 building libc.a.
30015 (hidden_proto): Likewise.
30016 (hidden_tls_proto): Likewise.
30017 (__hidden_proto): Likewise.
30018
30019 2017-08-22 Florian Weimer <fweimer@redhat.com>
30020
30021 math: Statically link tests of internal functionality.
30022 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30023 atest-exp2.
30024 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30025 (gmp-objs): Remove assignment.
30026 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30027
30028 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30029
30030 [BZ #21987]
30031 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30032 and copy to ...
30033 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30034 ... here.
30035 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30036 ... and here.
30037
30038 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30039 variable definitions above inclusion of ../Rules.
30040
30041 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30042
30043 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30044 case calling __builtin_unreachable.
30045
30046 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30047
30048 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30049 __waitpid_nocancel.
30050 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30051 (__waitpid_nocancel): New macro.
30052 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30053 macro.
30054 (__waitpid_nocancel): Replace macro with a function.
30055 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30056 function.
30057
30058 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30059 __fcntl_nocancel.
30060 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30061 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30062
30063 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30064 __writev_nocancel_nostatus.
30065 (write_call_graph): Likewise.
30066 (write_bb_counts): Likewise.
30067 * resolv/herror.c (herror): Likewise.
30068 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30069 macro.
30070 (__writev_nocancel_nostatus): New macro.
30071 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30072 Remove macro.
30073 (__writev_nocancel_nostatus): New function.
30074
30075 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30076
30077 Revert:
30078 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30079
30080 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30081 building libc.a.
30082 (hidden_proto): Likewise.
30083 (hidden_tls_proto): Likewise.
30084 (__hidden_proto): Likewise.
30085
30086 [BZ #21973]
30087 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30088 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30090 Likewise.
30091 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30092 Likewise.
30093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30094 Likewise.
30095 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30096 Likewise.
30097 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30098 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30099 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30100 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30101 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30102 GLIBC_2.0 sqrtl symbol.
30103
30104 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30105 [__USE_MISC] (_LIB_VERSION): Likewise.
30106 [__USE_MISC] (struct exception): Likewise.
30107 [__USE_MISC] (matherr): Likewise.
30108 [__USE_MISC] (DOMAIN): Likewise.
30109 [__USE_MISC] (SING): Likewise.
30110 [__USE_MISC] (OVERFLOW): Likewise.
30111 [__USE_MISC] (UNDERFLOW): Likewise.
30112 [__USE_MISC] (TLOSS): Likewise.
30113 [__USE_MISC] (PLOSS): Likewise.
30114 [__USE_MISC] (HUGE): Likewise.
30115 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30116 * math/math-svid-compat.h: New file.
30117 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30118 and matherrl.
30119 * include/math.h [!_ISOMAC] (__matherr): Remove.
30120 * manual/arith.texi (FP Exceptions): Do not document matherr.
30121 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30122 (tests-internal): New variable.
30123 (install-lib): Do not add libieee.a.
30124 (non-lib.a): Likewise.
30125 (extra-objs): Do not add libieee.a and ieee-math.o.
30126 (CPPFLAGS-s_lib_version.c): Remove variable.
30127 ($(objpfx)libieee.a): Remove rule.
30128 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30129 * math/ieee-math.c: Remove.
30130 * math/libm-test-support.c (matherr): Remove.
30131 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30132 and license notices. Include <math-svid-compat.h> and
30133 <shlib-compat.h>.
30134 (matherr): Undefine as macro. Use compat_symbol_reference.
30135 (_LIB_VERSION): Likewise.
30136 * math/test-matherr-2.c: New file.
30137 * math/test-matherr-3.c: Likewise.
30138 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30139 declaration.
30140 (__kernel_standard_f): Likewise.
30141 (__kernel_standard_l): Likewise.
30142 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30143 <math_private.h>. Include <math-svid-compat.h>.
30144 (_LIB_VERSION): Undefine as macro.
30145 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30146 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30147 [LIBM_SVID_COMPAT], use compat_symbol.
30148 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30149 <math_private.h>. Include <math-svid-compat.h>.
30150 (matherr): Undefine as macro.
30151 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30152 compat_symbol.
30153 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30154 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30155 compat_symbol_reference.
30156 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30157 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30158 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30159 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30160 (MATHERR_D): Remove declaration.
30161 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30162 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30163 [LIBM_BUILD] (pmatherrf): Likewise.
30164 [LIBM_BUILD] (pmatherr): Likewise.
30165 [LIBM_BUILD] (pmatherrl): Likewise.
30166 (DOMAIN): Likewise.
30167 (SING): Likewise.
30168 (OVERFLOW): Likewise.
30169 (UNDERFLOW): Likewise.
30170 (TLOSS): Likewise.
30171 (PLOSS): Likewise.
30172 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30173 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30174 compat_symbol.
30175 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30176 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30177 compat_symbol.
30178 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30179 * math/w_acos_compat.c: Likewise.
30180 * math/w_acosf_compat.c: Likewise.
30181 * math/w_acosh_compat.c: Likewise.
30182 * math/w_acoshf_compat.c: Likewise.
30183 * math/w_acoshl_compat.c: Likewise.
30184 * math/w_acosl_compat.c: Likewise.
30185 * math/w_asin_compat.c: Likewise.
30186 * math/w_asinf_compat.c: Likewise.
30187 * math/w_asinl_compat.c: Likewise.
30188 * math/w_atan2_compat.c: Likewise.
30189 * math/w_atan2f_compat.c: Likewise.
30190 * math/w_atan2l_compat.c: Likewise.
30191 * math/w_atanh_compat.c: Likewise.
30192 * math/w_atanhf_compat.c: Likewise.
30193 * math/w_atanhl_compat.c: Likewise.
30194 * math/w_cosh_compat.c: Likewise.
30195 * math/w_coshf_compat.c: Likewise.
30196 * math/w_coshl_compat.c: Likewise.
30197 * math/w_exp10_compat.c: Likewise.
30198 * math/w_exp10f_compat.c: Likewise.
30199 * math/w_exp10l_compat.c: Likewise.
30200 * math/w_exp2_compat.c: Likewise.
30201 * math/w_exp2f_compat.c: Likewise.
30202 * math/w_exp2l_compat.c: Likewise.
30203 * math/w_fmod_compat.c: Likewise.
30204 * math/w_fmodf_compat.c: Likewise.
30205 * math/w_fmodl_compat.c: Likewise.
30206 * math/w_hypot_compat.c: Likewise.
30207 * math/w_hypotf_compat.c: Likewise.
30208 * math/w_hypotl_compat.c: Likewise.
30209 * math/w_j0_compat.c: Likewise.
30210 * math/w_j0f_compat.c: Likewise.
30211 * math/w_j0l_compat.c: Likewise.
30212 * math/w_j1_compat.c: Likewise.
30213 * math/w_j1f_compat.c: Likewise.
30214 * math/w_j1l_compat.c: Likewise.
30215 * math/w_jn_compat.c: Likewise.
30216 * math/w_jnf_compat.c: Likewise.
30217 * math/w_jnl_compat.c: Likewise.
30218 * math/w_lgamma_main.c: Likewise.
30219 * math/w_lgamma_r_compat.c: Likewise.
30220 * math/w_lgammaf_main.c: Likewise.
30221 * math/w_lgammaf_r_compat.c: Likewise.
30222 * math/w_lgammal_main.c: Likewise.
30223 * math/w_lgammal_r_compat.c: Likewise.
30224 * math/w_log10_compat.c: Likewise.
30225 * math/w_log10f_compat.c: Likewise.
30226 * math/w_log10l_compat.c: Likewise.
30227 * math/w_log2_compat.c: Likewise.
30228 * math/w_log2f_compat.c: Likewise.
30229 * math/w_log2l_compat.c: Likewise.
30230 * math/w_log_compat.c: Likewise.
30231 * math/w_logf_compat.c: Likewise.
30232 * math/w_logl_compat.c: Likewise.
30233 * math/w_pow_compat.c: Likewise.
30234 * math/w_powf_compat.c: Likewise.
30235 * math/w_powl_compat.c: Likewise.
30236 * math/w_remainder_compat.c: Likewise.
30237 * math/w_remainderf_compat.c: Likewise.
30238 * math/w_remainderl_compat.c: Likewise.
30239 * math/w_scalb_compat.c: Likewise.
30240 * math/w_scalbf_compat.c: Likewise.
30241 * math/w_scalbl_compat.c: Likewise.
30242 * math/w_sinh_compat.c: Likewise.
30243 * math/w_sinhf_compat.c: Likewise.
30244 * math/w_sinhl_compat.c: Likewise.
30245 * math/w_sqrt_compat.c: Likewise.
30246 * math/w_sqrtf_compat.c: Likewise.
30247 * math/w_sqrtl_compat.c: Likewise.
30248 * math/w_tgamma_compat.c: Likewise.
30249 * math/w_tgammaf_compat.c: Likewise.
30250 * math/w_tgammal_compat.c: Likewise.
30251 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30252 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30253 * sysdeps/ieee754/k_standard.c: Likewise.
30254 * sysdeps/ieee754/k_standardf.c: Likewise.
30255 * sysdeps/ieee754/k_standardl.c: Likewise.
30256 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30257 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30258 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30259 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30260 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30261 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30262 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30263 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30264 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30266 Likewise.
30267 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30268 Likewise.
30269 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30270 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30271 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30272 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30273
30274 2017-08-21 Florian Weimer <fweimer@redhat.com>
30275
30276 [BZ #21864]
30277 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30278 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30279 Move before inclusion of ../Rules.
30280
30281 2017-08-21 Florian Weimer <fweimer@redhat.com>
30282
30283 [BZ #21972]
30284 * assert/assert.h (assert): Use static_cast (bool) for C++.
30285 Use the ternary operator in the warning branch for GNU C.
30286 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30287 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30288 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30289 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30290 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30291
30292 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30293
30294 [BZ #18822]
30295 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30296 (__syscall_clock_gettime): Add attribute_hidden.
30297 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30298 (__start_context): Likewise.
30299
30300 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30301
30302 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30303 building libc.a.
30304 (hidden_proto): Likewise.
30305 (hidden_tls_proto): Likewise.
30306 (__hidden_proto): Likewise.
30307
30308 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30309
30310 * include/libc-symbols.h (attribute_hidden): Enable hidden
30311 visibility in libc.a compiled with PIE.
30312
30313 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30314
30315 [BZ #18822]
30316 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30317 Add attribute_hidden.
30318
30319 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30320
30321 [BZ #21864]
30322 * Makerules (all-nonlib): Add $(others-extras).
30323 * catgets/Makefile (others-extras): New.
30324 * elf/Makefile (others-extras): Likewise.
30325 * nss/Makefile (others-extras): Likewise.
30326
30327 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30328
30329 [BZ #18822]
30330 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30331 * elf/dl-open.c: Include <libc-internal.h>.
30332 (__libc_multiple_libcs): Removed.
30333 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30334 <hp-timing.h>.
30335 * include/libc-internal.h (__libc_multiple_libcs): New.
30336 * misc/sbrk.c: Include <libc-internal.h>.
30337 (__libc_multiple_libcs): Removed.
30338
30339 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30340
30341 [BZ #18822]
30342 * grp/initgroups.c (__nss_group_database): Removed.
30343 (__nss_initgroups_database): Likewise.
30344 * nscd/gai.c (__nss_hosts_database): Likewise.
30345 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30346 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30347 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30348 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30349 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30350 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30351 attribute_hidden.
30352 * nss/nsswitch.c (__nss_database_custom): Define only if
30353 USE_NSCD is defined.
30354 (__nss_configure_lookup): Use __nss_database_custom only if
30355 USE_NSCD is defined.
30356 * nss/nsswitch.h (__nss_database_custom): Declare only if
30357 USE_NSCD is defined. Add attribute_hidden.
30358 (__nss_setent): Add attribute_hidden.
30359 (__nss_endent): Likewise.
30360 (__nss_getent_r): Likewise.
30361 (__nss_getent): Likewise.
30362 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30363
30364 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30365
30366 [BZ #18822]
30367 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30368 libc_hidden_proto and libc_hidden_def.
30369
30370 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30371
30372 [BZ #18822]
30373 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30374 Add libc_hidden_proto.
30375 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30376 Add libc_hidden_def.
30377
30378 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30379
30380 [BZ #21974]
30381 * gmon/Makefile (routines): Remove bb_init_func and
30382 bb_exit_func.
30383 (elide-routines.os): Removed.
30384 * gmon/bb_exit_func.c: Likewise.
30385 * gmon/bb_init_func.c: Likewise.
30386 * include/sys/gmon.h (__bb): Likewise.
30387 (__bb_init_func): Likewise.
30388 (__bb_exit_func): Likewise.
30389 * sysdeps/alpha/bb_init_func.S: Likewise.
30390
30391 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30392
30393 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30394 * include/setjmp.h (____longjmp_chk): Here. Add
30395 attribute_hidden.
30396
30397 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30398
30399 [BZ #18822]
30400 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30401 attribute_hidden.
30402 (__strspn_sse2): Likewise.
30403
30404 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30405
30406 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30407 (close_not_cancel_no_status): Likewise.
30408 (__close_nocancel): New macro.
30409 (__close_nocancel_nostatus): Likewise.
30410 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30411 macro.
30412 (close_not_cancel): Likewise.
30413 (close_not_cancel_no_status): Likewise.
30414 (__close_nocancel): New prototype.
30415 (__close_nocancel_nostatus): New function.
30416 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30417 * catgets/open_catalog.c (__open_catalog): Replace
30418 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30419 * gmon/gmon.c (write_gmon): Likewise.
30420 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30421 * intl/loadmsgcat.c (close): Likewise.
30422 * io/ftw.c (open_dir_stream): Likewise.
30423 (ftw_startup): Likewise.
30424 * libio/fileops.c (_IO_file_open): Likewise.
30425 (_IO_file_close_mmap): Likewise.
30426 (_IO_file_close): Likewise.
30427 * libio/iopopen.c (_IO_dup2): Likewise.
30428 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30429 * locale/loadlocale.c (_nl_load_locale): Likewise.
30430 * login/utmp_file.c (pututline_file): Likewise.
30431 (endutent_file): Likewise.
30432 * misc/daemon.c (daemon): Likewise.
30433 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30434 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30435 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30436 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30437 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30438 * nscd/nscd_helper.c (open_socket): Likewise.
30439 (__nscd_open_socket): Likewise.
30440 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30441 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30442 (__nscd_innetgr): Likewise.
30443 * nss/nss_db/db-open.c (internal_setent): Likewise.
30444 * resolv/res-close.c (__res_iclose): Likewise.
30445 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30446 * sysdeps/posix/closedir.c (__closedir): Likewise.
30447 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30448 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30449 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30450 (opendir_tail): Likewise.
30451 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30452 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30453 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30454 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30455 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30456 (gethostid): Likewise.
30457 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30458 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30459 Likewise.
30460 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30461 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30462 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30463 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30464 Likewise.
30465 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30466 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30467 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30468 Likewise.
30469 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30470 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30471 Likewise.
30472 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30473 Likewise.
30474 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30475 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30476 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30477 __close_nocancel.
30478
30479 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30480 (openat_not_cancel_3): Likewise.
30481 (openat64_not_cancel_3): Likewise).
30482 (openat_not_cancel_3): Likewise).
30483 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30484 macro.
30485 (openat_not_cancel_3): Likewise.
30486 (openat64_not_cancel): Likewise.
30487 (openat64_not_cancel_3): Likewise.
30488 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30489 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30490 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30491 __open{64}_nocancel.
30492 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30493 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30494 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30495
30496 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30497
30498 [BZ #18822]
30499 * include/argz.h (__argz_create_sep): New function prototype.
30500 (__argz_append): Likewise.
30501 (__argz_add): Likewise.
30502 (__argz_add_sep): Likewise.
30503 (__argz_delete): Likewise.
30504 (__argz_insert): Likewise.
30505 (__argz_replace): Likewise.
30506 * string/argz.h (__argz_create_sep): Removed.
30507 (__argz_append): Likewise.
30508 (__argz_add): Likewise.
30509 (__argz_add_sep): Likewise.
30510 (__argz_delete): Likewise.
30511 (__argz_insert): Likewise.
30512 (__argz_replace): Likewise.
30513
30514 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30515
30516 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30517 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30518 (GNU_PROPERTY_STACK_SIZE): Likewie.
30519 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30520 (GNU_PROPERTY_LOPROC): Likewise.
30521 (GNU_PROPERTY_HIPROC): Likewise.
30522 (GNU_PROPERTY_LOUSER): Likewise.
30523 (GNU_PROPERTY_HIUSER): Likewise.
30524 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30525 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30526 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30527 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30528 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30529 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30530 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30531 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30532 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30533 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30534 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30535 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30536 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30537 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30538 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30539 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30540 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30541 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30542 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30543 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30544 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30545 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30546 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30547
30548 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30549
30550 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30551 in C++ mode.
30552
30553 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30554
30555 [BZ #21930]
30556 * math/math.h (isinf): Check if in C or C++ mode before using
30557 __builtin_types_compatible_p, since this is a C mode feature.
30558
30559 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30560
30561 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30562 (__write_nocancel): New macro.
30563 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30564 Rewrite as a function prototype.
30565 (write_not_cancel): Remove macro.
30566 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30567 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30568 (write_gmon): Likewise.
30569 * libio/fileops.c (_IO_new_file_write): Likewise.
30570 * login/utmp_file.c (pututline_file): Likewise.
30571 (updwtmp_file): Likewise.
30572 * stdio-common/psiginfo.c (psiginfo): Likewise.
30573 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30574 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30575 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30576 Likewise.
30577 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30578 Likewise.
30579
30580 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30581 (__read_nocancel): New macro.
30582 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30583 __read_nocancel.
30584 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30585 macro.
30586 (__read_nocancel): New prototype.
30587 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30588 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30589 with __read_nocancel.
30590 * intl/loadmsgcat.c (read): Likewise.
30591 * libio/fileops.c (_IO_file_read): Likewise.
30592 * locale/loadlocale.c (_nl_load_locale): Likewise.
30593 * login/utmp_file.c (getutent_r_file): Likewise.
30594 (internal_getut_r): Likewise.
30595 (getutline_r_file): Likewise.
30596 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30597 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30598 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30599 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30600 Likewise.
30601 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30602 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30603 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30604 Likewise.
30605 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30606 Likewise.
30607 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30608 Likewise.
30609 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30610 Likewise.
30611 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30612
30613 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30614
30615 [BZ #21966]
30616 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30617 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30618 usable.
30619
30620 2017-08-17 DJ Delorie <dj@redhat.com>
30621
30622 * bug17079.c: Update to new test harness.
30623 * test-digits-dots.c: Likewise.
30624 * test-netdb.c: Likewise.
30625 * tst-field.c: Likewise.
30626 * tst-nss-getpwent.c: Likewise.
30627 * tst-nss-static.c: Likewise.
30628 * tst-nss-test1.c: Likewise.
30629 * tst-nss-test2.c: Likewise.
30630 * tst-nss-test3.c: Likewise.
30631 * tst-nss-test4.c: Likewise.
30632 * tst-nss-test5.c: Likewise.
30633
30634 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30635
30636 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30637 (open_not_cancel_2): Likewise.
30638 (open_nocancel): New macro.
30639 (open64_nocancel): Likewise.
30640 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30641 (open_not_cancel_2): Likewise.
30642 (__open_nocancel): New prototype.
30643 (__open64_nocancel): Likewise.
30644 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30645 __open_nocancel.
30646 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30647 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30648 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30649 with __open_nocancel.
30650 * csu/check_fds.c (check_one_fd): Likewise.
30651 * gmon/gmon.c (write_gmon): Likewise.
30652 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30653 * intl/loadmsgcat.c (open): Likewise.
30654 * libio/fileops.c (_IO_file_open): Likewise.
30655 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30656 * locale/loadlocale.c (_nl_load_locale): Likewise.
30657 * login/utmp_file.c (setutent_file): Likewise.
30658 * misc/daemon.c (daemon): Likewise.
30659 * nss/nss_db/db-open.c (internal_setent): Likewise.
30660 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30661 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30662 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30663 (__opendir): Likewise.
30664 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30665 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30666 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30667 (gethostid): Likewise.
30668 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30669 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30670 Likewise.
30671 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30672 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30673 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30674 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30675 Likewise.
30676 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30677 Likewise.
30678 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30679 Likewise.
30680 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30681 Likewise.
30682 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30683 Likewise.
30684 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30685 Likewise.
30686 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30687 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30688
30689 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30690
30691 * benchtests/bench-skeleton.c (main): Add support for
30692 latency benchmarking.
30693 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30694
30695 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30696
30697 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30698 the startup object.
30699
30700 2017-08-17 Florian Weimer <fweimer@redhat.com>
30701
30702 * include/sys/socket.h (__opensock): Remove internal_function.
30703 * socket/opensock.c (__opensock): Likewise.
30704 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30705
30706 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30707
30708 [BZ #21944]
30709 * signal/bits/types/__sigval_t.h: New file.
30710 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30711 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30712 and define sigval_t using __sigval_t.
30713 * include/bits/types/__sigval_t.h: New file.
30714 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30715 instead of <bits/types/__sigval_t.h>.
30716 (struct sigevent): Use __sigval_t instead of sigval_t.
30717 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30718 instead of <bits/types/__sigval_t.h>.
30719 (siginfo_t): Use __sigval_t instead of sigval_t.
30720 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30721 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30722 (struct sigevent): Use __sigval_t instead of sigval_t.
30723 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30724 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30725 (siginfo_t): Use __sigval_t instead of sigval_t.
30726 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30727
30728 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30729
30730 * NEWS: Remove "[Add new features here]" for 2.27.
30731
30732 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30733
30734 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30735 libc.so.
30736
30737 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30738
30739 * NEWS: Mention x86-64 FMA optimization.
30740
30741 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30742
30743 [BZ #21912]
30744 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30745 Add e_expf-fma.
30746 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30747 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30748 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30749
30750 2017-08-16 Andreas Schwab <schwab@suse.de>
30751
30752 [BZ #16750]
30753 CVE-2009-5064
30754 * elf/ldd.bash.in: Never run file directly.
30755
30756 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30757
30758 [BZ #21955]
30759 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30760 (L(SP_INF_0)): Likewise.
30761
30762 2017-08-15 Florian Weimer <fweimer@redhat.com>
30763
30764 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30765 run-built-tests.
30766
30767 2017-08-15 Florian Weimer <fweimer@redhat.com>
30768
30769 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30770 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30771 BROKEN_THREAD_SIGNALS code.
30772 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30773 request_list): Remove caller_pid member used for
30774 BROKEN_THREAD_SIGNALS.
30775 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30776 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30777 Remove BROKEN_THREAD_SIGNALS support.
30778 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30779 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30780
30781 2017-08-15 Florian Weimer <fweimer@redhat.com>
30782
30783 * gmon/Makefile (tests): Add tst-gmon.
30784 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30785 Set.
30786 (tests-special): Add tst-gmon-prof.out.
30787 (tst-gmon.out): Depend on clean-tst-gmon-data.
30788 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30789 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30790 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30791 startup object.
30792 * aclocal.m4 (GPROF): Set and substitute.
30793 * config.amke.in (GPROF): Set.
30794 * configure: Regenerate.
30795
30796 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30797
30798 * elf/elf.h A (NT_PPC_TAR): New macro.
30799 (NT_PPC_PPR): Likewise.
30800 (NT_PPC_DSCR): Likewise.
30801 (NT_PPC_EBB): Likewise.
30802 (NT_PPC_PMU): Likewise.
30803 (NT_PPC_TM_CGPR): Likewise.
30804 (NT_PPC_TM_CFPR): Likewise.
30805 (NT_PPC_TM_CVMX): Likewise.
30806 (NT_PPC_TM_CVSX): Likewise.
30807 (NT_PPC_TM_SPR): Likewise.
30808 (NT_PPC_TM_CTAR): Likewise.
30809 (NT_PPC_TM_CPPR): Likewise.
30810 (NT_PPC_TM_CDSCR): Likewise.
30811
30812 2017-08-15 Florian Weimer <fweimer@redhat.com>
30813
30814 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30815 regparm (2) instead of internal_function.
30816 (_MCOUNT_DECL): Adjust.
30817
30818 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30819
30820 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30821 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30822
30823 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30824
30825 * conform/data/sys/wait.h-data (si_value): Do not expect for
30826 XPG42.
30827
30828 2017-08-14 Florian Weimer <fweimer@redhat.com>
30829
30830 [BZ #21962]
30831 NSS: Create stubs for accidentally exported lookup functions.
30832 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30833 Remove declaration.
30834 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30835 (ether_hostton): Call __nss_ethers_lookup2 instead.
30836 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30837 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30838 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30839 (setup): Call __nss_netgroup_lookup2 instead.
30840 * nss/Makefile (routines): Add compat-lookup.
30841 * nss/Versions (GLIBC_2.27): Add symbol version.
30842 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30843 (DB_COMPAT_FCT): Remove.
30844 * nss/compat-lookup.c: New file.
30845 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30846 from databases.def.
30847 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30848 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30849 (netname2user): Call __nss_publickey_lookup2 instead.
30850 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30851 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30852 instead.
30853
30854 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30855 Sergei Trofimovich <slyfox@inbox.ru>
30856
30857 [BZ #21908]
30858 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30859 Rename to MMAP2_PAGE_UNIT.
30860 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30861 __OFF_T_MATCHES_OFF64_T is not defined.
30862 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30863 uint64_t.
30864 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30865 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30866
30867 2017-08-14 Florian Weimer <fweimer@redhat.com>
30868
30869 i386: Do not set internal_function.
30870 * config.h.in (USE_REGPARMS, internal_function): Remove.
30871 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30872 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30873
30874 2017-08-14 Florian Weimer <fweimer@redhat.com>
30875
30876 * elf/dl-init.c (_dl_init): Remove internal_function.
30877 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30878 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30879
30880 2017-08-14 Florian Weimer <fweimer@redhat.com>
30881
30882 * elf/rtld.c (_dl_start): Remove internal_function.
30883 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30884 _dl_start.
30885
30886 2017-08-14 Florian Weimer <fweimer@redhat.com>
30887
30888 * elf/dl-fini.c (_dl_fini): Remove internal_function
30889 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30890
30891 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30892
30893 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30894 (bit_cpu_SHSTK): Likewise.
30895 (index_cpu_IBT): Likewise.
30896 (index_cpu_SHSTK): Likewise.
30897 (reg_IBT): Likewise.
30898 (reg_SHSTK): Likewise.
30899 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30900 Handle index_cpu_IBT and index_cpu_SHSTK.
30901
30902 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30903
30904 [BZ #19982]
30905 * po/fr.po: Fix spelling mistake.
30906
30907 2017-08-13 Florian Weimer <fweimer@redhat.com>
30908
30909 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30910 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30911 (_dl_catch_error, _dl_receive_error): Likewise.
30912 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30913 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30914 (_dl_deallocate_tls): Likewise.
30915 * include/dlfcn.h (_dl_addr): Likewise.
30916 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30917 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30918 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30919 Likewise.
30920
30921 2017-08-13 Florian Weimer <fweimer@redhat.com>
30922
30923 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30924 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30925 internal_function.
30926 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30927
30928 2017-08-13 Florian Weimer <fweimer@redhat.com>
30929
30930 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30931 internal_function.
30932 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30933 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30934 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30935 internal_function from _dl_make_stack_executable_hook member.
30936 (_dl_make_stack_executable): Remove internal_function.
30937 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30938 Likewise.
30939 * sysdeps/unix/sysv/linux/dl-execstack.c
30940 (_dl_make_stack_executable): Likewise.
30941
30942 2017-08-13 Florian Weimer <fweimer@redhat.com>
30943
30944 * sysdeps/unix/sysv/linux/netlinkaccess.h
30945 (__netlink_assert_response): Remove internal_function.
30946 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30947 (__netlink_assert_response): Likewise.
30948
30949 2017-08-13 Florian Weimer <fweimer@redhat.com>
30950
30951 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30952 internal_function.
30953 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30954
30955 2017-08-13 Florian Weimer <fweimer@redhat.com>
30956
30957 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30958 internal_function.
30959 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30960 * inet/netgroup.h (__internal_setnetgrent)
30961 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30962 * inet/getnetgrent_r.c (__internal_setnetgrent)
30963 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30964 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30965 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30966 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30967 * nss/nsswitch.h (db_lookup_function): Likewise.
30968
30969 2017-08-13 Florian Weimer <fweimer@redhat.com>
30970
30971 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30972 Remove internal_function.
30973 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30974 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30975 message argument on the stack.
30976 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30977 Likeweise.
30978
30979 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30980
30981 Adapt test case data to the changes in the thousands
30982 separators.
30983
30984 [BZ #20756]
30985 * localedata/tst-langinfo.sh: Adapt test case data.
30986 * stdlib/tst-strfmon_l.c: Likewise.
30987 * stdlib/tst-strtod4.c: Likewise.
30988 * stdlib/tst-strtod5i.c: Likewise.
30989
30990 2017-08-11 Florian Weimer <fweimer@redhat.com>
30991
30992 [BZ #21242]
30993 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30994 Suppress pedantic warning resulting from statement expression.
30995 (__ASSERT_FUNCTION): Add missing __extension__.
30996
30997 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30998
30999 * benchtests/bench-memmove-large.c: Print output in JSON
31000 format.
31001 * benchtests/bench-memmove.c: Likewise.
31002
31003 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31004 * benchtests/bench-memchr.c (do_one_test): Likewise.
31005 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31006 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31007 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31008 * benchtests/bench-memmove.c (do_one_test): Likewise.
31009 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31010 * benchtests/bench-memset.c (do_one_test): Likewise.
31011 * benchtests/bench-string.h (test_init): Remove memsets.
31012
31013 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31014
31015 * manual/lang.texi
31016 (Computing the Width of an Integer Data Type): Rename section to
31017 "Width of an Integer Type". Remove inaccurate statement regarding
31018 lack of C language facilities for determining width of integer
31019 types, and reorder content to improve flow and context of
31020 discussion.
31021
31022 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31023
31024 * lang.texi (va_copy): Change standard from ISO to C99.
31025 (__va_copy): Add standard and header annotation.
31026 Update description for clarity of origins and current use.
31027
31028 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31029
31030 [BZ #21941]
31031 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31032 xssqrtqp requires operands to be in Vector Registers
31033 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31034 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31035 (__ieee754_sqrtf128): Likewise.
31036
31037 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31038
31039 * sysdeps/aarch64/memcmp.S (memcmp):
31040 Rewrite of optimized memcmp.
31041
31042 2017-08-10 Florian Weimer <fweimer@redhat.com>
31043
31044 Introduce ld.so exceptions.
31045 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31046 (_dl_exception_create, _dl_exception_create_format)
31047 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31048 (_dl_catch_exception): Declare.
31049 (_dl_catch_error): Update comment.
31050 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31051 errstring, malloced members with exception member.
31052 (_dl_out_of_memory): Remove.
31053 (fatal_error): New function, extracted from _dl_signal_error.
31054 (_dl_signal_exception, _dl_signal_cexception): New functions.
31055 (_dl_signal_error): Call _dl_exception_create to allocate an
31056 exception object.
31057 (_dl_catch_exception): New function, based on _dl_catch_error.
31058 (_dl_catch_error): Implement using _dl_catch_exception.
31059 * elf/dl-exception.c: New file.
31060 * elf/Makefile (dl-routines): Add dl-exception.
31061 (elide-routines.os): Likewise.
31062 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31063 _dl_exception_create_format, _dl_exception_free.
31064 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31065 _dl_signal_exception.
31066 * elf/dl-lookup.c (make_string): Remove.
31067 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31068 _dl_signal_cexception, _dl_exception_free.
31069 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31070 _dl_signal_exception.
31071 * elf/dl-sym.c (do_sym): Likewise.
31072 * elf/dl-version.c (make_string): Remove.
31073 (match_symbol): Use _dl_exception_create_format,
31074 _dl_signal_cexception, _dl_exception_free.
31075 (_dl_check_map_versions): Likewise.
31076 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31077 _dl_catch_exception.
31078 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31079 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31080 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31081 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31082 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31083 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31084 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31085 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31086 Likewise.
31087 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31089 (ld.so): Likewise.
31090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31091 (ld.so): Likewise.
31092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31093 Likewise.
31094 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31095 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31096 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31097 Likewise.
31098 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31099 Likewise.
31100 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31101
31102 2017-08-10 Florian Weimer <fweimer@redhat.com>
31103
31104 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31105 attribute_hidden, internal_function.
31106 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31107 internal_function.
31108
31109 2017-08-10 Florian Weimer <fweimer@redhat.com>
31110
31111 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31112 function which calls __builtin_unreachable.
31113
31114 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31115
31116 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31117 Indian monetary formatting
31118 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31119 test cases.
31120
31121 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31122
31123 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31124 Fix typo in comment.
31125
31126 [BZ #21928]
31127 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31128 PTRACE_SEIZE_DEVEL): Remove.
31129 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31130 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31131 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31132 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31133 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31134
31135 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31136
31137 * posix/bits/types.h (__qaddr_t): Remove.
31138
31139 [BZ #21457]
31140 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31141 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31142 __glibc_reserved1.
31143 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31144 (ucontext_t): Use __ctx with uc_flags.
31145 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31146 (__ctxt): Likewise.
31147 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31148 __glibc_reserved1.
31149 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31150 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31151 __glibc_reserved1.
31152 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31153 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31154 __glibc_reserved1.
31155 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31156 macro.
31157 (ucontext_t): Use __ctx with uc_flags.
31158 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31159 (ucontext_t): Use __ctx with uc_flags.
31160 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31161 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31162 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31163 (ucontext_t): Use __ctx with uc_flags.
31164 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31165 undefine further down.
31166 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31167 __glibc_reserved1.
31168 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31169 undefine further down.
31170 (ucontext_t): Use __ctx with uc_flags.
31171 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31172 undefine further down.
31173 (ucontext_t): Use __ctx with uc_flags.
31174 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31175 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31176 Rename uc_pad to __glibc_reserved1.
31177 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31178 undefine further down.
31179 (ucontext_t): Use __ctx with uc_flags.
31180 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31181 further down.
31182 (ucontext_t): Use __ctx with uc_flags.
31183 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31184 __ctx with uc_flags.
31185 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31186 (ucontext_t): Use __ctx with uc_flags.
31187 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31188 __ctx with uc_flags.
31189
31190 2017-08-09 Florian Weimer <fweimer@redhat.com>
31191
31192 [BZ #21932]
31193 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31194 before early return.
31195
31196 2017-08-09 Andreas Schwab <schwab@suse.de>
31197
31198 [BZ #21041]
31199 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31200 renamed alias.
31201
31202 [BZ #21041]
31203 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31204 tst-compat-forwarder.
31205 (modules-names): Add tst-compat-forwarder-mod.
31206 ($(objpfx)tst-compat-forwarder): Depend on
31207 $(objpfx)tst-compat-forwarder-mod.so.
31208 * nptl/tst-compat-forwarder.c: New file.
31209 * nptl/tst-compat-forwarder-mod.c: New file.
31210
31211 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31212
31213 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31214 comments.
31215
31216 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31217 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31218 memcpy_falkor.
31219 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31220 Bump.
31221 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31222 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31223 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31224 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31225 Add falkor.
31226 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31227 New macro.
31228
31229 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31230
31231 [BZ #759]
31232 * manual/setjmp.texi (getcontex): Document uc_stack value
31233 compatibility differences.
31234
31235 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31236
31237 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31238 (old_malloc_hook): Likewise.
31239 (old_memalign_hook): Likewise.
31240 (old_realloc_hook): Likewise.
31241 (struct hdr): Likewise.
31242 (flood): Likewise.
31243 (freehook): Likewise.
31244 (mallochook): Likewise.
31245 (memalignhook): Likewise.
31246 (reallochook): Likewise.
31247 (mprobe): Likewise.
31248 * malloc/mtrace.c (mallwatch): Likewise.
31249 (tr_old_free_hook): Likewise.
31250 (tr_old_malloc_hook): Likewise.
31251 (tr_old_realloc_hook): Likewise.
31252 (tr_old_memalign_hook): Likewise.
31253 (tr_where): Likewise.
31254 (lock_and_info): Likewise.
31255 (tr_freehook): Likewise.
31256 (tr_mallochook): Likewise.
31257 (tr_reallochook): Likewise.
31258 (tr_memalignhook): Likewise.
31259 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31260 * misc/mmap.c (__mmap): Likewise.
31261 * misc/mmap64.c (__mmap64): Likewise.
31262 * misc/mprotect.c (__mprotect): Likewise.
31263 * misc/msync.c (msync): Likewise.
31264 * misc/munmap.c (__munmap): Likewise.
31265 * posix/posix_madvise.c (posix_madvise): Likewise.
31266 * socket/send.c (__send): Likewise.
31267 * socket/sendto.c (__sendto): Likewise.
31268 * socket/setsockopt.c (__setsockopt): Likewise.
31269 * string/memcmp.c (__ptr_t): Remove macro.
31270 (MEMCMP): Use void * instead of ptr_t.
31271 * string/memrchr.c (__ptr_t): Remove macro.
31272 (__memrchr): Use void * instead of ptr_t.
31273 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31274 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31275 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31276 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31277 * sysdeps/mach/msync.c (msync): Likewise.
31278 * sysdeps/mach/munmap.c (__munmap): Likewise.
31279 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31280 Likewise.
31281 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31282 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31283 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31284 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31285 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31286 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31287 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31288 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31289 Likewise.
31290 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31291 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31292 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31293 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31294 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31295 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31296 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31297 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31298 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31299 Likewise.
31300 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31301 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31302 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31303 (MEMCMP): Use void * instead of ptr_t.
31304 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31305 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31306
31307 2017-08-08 Florian Weimer <fweimer@redhat.com>
31308
31309 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31310 return statement.
31311
31312 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31313
31314 [BZ #21913]
31315 * csu/libc-tls.c: Include <startup.h> first.
31316 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31317 * elf/dl-tunables.c: Include <startup.h> first.
31318 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31319 * sysdeps/generic/startup.h: New file.
31320 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31321 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31322 (I386_USE_SYSENTER): New. Defined to 0.
31323
31324 2017-08-08 Andreas Schwab <schwab@suse.de>
31325
31326 [BZ #21041]
31327 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31328 * nptl/pt-system.c (system): Likewise.
31329
31330 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31331
31332 [BZ #21780]
31333 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31334 EOPNOTSUPP.
31335 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31336 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31337 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31338 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31339 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31340 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31341 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31342
31343 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31344
31345 [BZ #21899]
31346 * bits/sigaction.h (struct sigaction): Define sa_handler and
31347 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31348 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31349 [__USE_XOPEN_EXTENDED].
31350 (SA_RESTART): Likewise.
31351 (SA_NODEFER): Likewise.
31352 (SA_RESETHAND): Likewise.
31353 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31354 (struct sigaction): Define sa_handler and sa_sigaction using union
31355 also for [__USE_XOPEN_EXTENDED].
31356 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31357 [__USE_XOPEN_EXTENDED].
31358 (SA_RESTART): Likewise.
31359 (SA_NODEFER): Likewise.
31360 (SA_RESETHAND): Likewise.
31361 * sysdeps/unix/sysv/linux/bits/sigaction.h
31362 (struct sigaction): Define sa_handler and sa_sigaction using union
31363 also for [__USE_XOPEN_EXTENDED].
31364 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31365 [__USE_XOPEN_EXTENDED].
31366 (SA_RESTART): Likewise.
31367 (SA_NODEFER): Likewise.
31368 (SA_RESETHAND): Likewise.
31369 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31370 (struct sigaction): Define sa_handler and sa_sigaction using union
31371 also for [__USE_XOPEN_EXTENDED].
31372 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31373 [__USE_XOPEN_EXTENDED].
31374 (SA_RESTART): Likewise.
31375 (SA_NODEFER): Likewise.
31376 (SA_RESETHAND): Likewise.
31377 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31378 (struct sigaction): Define sa_handler and sa_sigaction using union
31379 also for [__USE_XOPEN_EXTENDED].
31380 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31381 [__USE_XOPEN_EXTENDED].
31382 (SA_RESTART): Likewise.
31383 (SA_NODEFER): Likewise.
31384 (SA_RESETHAND): Likewise.
31385 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31386 (struct sigaction): Define sa_handler and sa_sigaction using union
31387 also for [__USE_XOPEN_EXTENDED].
31388 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31389 [__USE_XOPEN_EXTENDED].
31390 (SA_RESTART): Likewise.
31391 (SA_NODEFER): Likewise.
31392 (SA_RESETHAND): Likewise.
31393 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31394 (struct sigaction): Define sa_handler and sa_sigaction using union
31395 also for [__USE_XOPEN_EXTENDED].
31396 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31397 [__USE_XOPEN_EXTENDED].
31398 (SA_RESTART): Likewise.
31399 (SA_NODEFER): Likewise.
31400 (SA_RESETHAND): Likewise.
31401 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31402 (struct sigaction): Define sa_handler and sa_sigaction using union
31403 also for [__USE_XOPEN_EXTENDED].
31404 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31405 [__USE_XOPEN_EXTENDED].
31406 (SA_RESTART): Likewise.
31407 (SA_NODEFER): Likewise. Define directly rather than as alias.
31408 (SA_RESETHAND): Likewise.
31409 (SA_INTERRUPT): Define only for [__USE_MISC].
31410 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31411 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31412 [__USE_MISC].
31413 (SA_STACK): Define only for [__USE_MISC].
31414 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31415 (struct sigaction): Define sa_handler and sa_sigaction using union
31416 also for [__USE_XOPEN_EXTENDED].
31417 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31418 [__USE_XOPEN_EXTENDED].
31419 (SA_RESTART): Likewise.
31420 (SA_NODEFER): Likewise.
31421 (SA_RESETHAND): Likewise.
31422 (SA_NOPTRACE): Define only for [__USE_MISC].
31423
31424 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31425 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31426 (struct catalog_info): Likewise.
31427 * inet/htontest.c (lo): Likewise.
31428 (foo): Likewise.
31429 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31430 * inet/inet_net.c (inet_network): Likewise.
31431 * inet/inet_netof.c (inet_netof): Likewise.
31432 * inet/rcmd.c (__ivaliduser): Likewise.
31433 (iruserok): Likewise.
31434 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31435 * locale/programs/locale-spec.c (locale_special): Likewise.
31436 * nis/nis_findserv.c (struct findserv_req): Likewise.
31437 (__nis_findfastest_with_timeout): Likewise.
31438 * nss/test-netdb.c (test_network): Likewise.
31439 * resolv/inet_neta.c (inet_neta): Likewise.
31440 * resolv/ns_date.c (ns_datetosecs): Likewise.
31441 (SECS_PER_DAY): Likewise.
31442 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31443 Likewise.
31444 * resolv/res_comp.c (__putlong): Likewise.
31445 (__putshort): Likewise.
31446 (_getlong): Likewise.
31447 (_getshort): Likewise.
31448 * resolv/res_debug.c (p_time): Likewise.
31449 (precsize_ntoa): Likewise.
31450 (precsize_aton): Likewise.
31451 (latlon2ul): Likewise.
31452 (loc_aton): Likewise.
31453 (loc_ntoa): Likewise.
31454 * resolv/res_hconf.c (struct netaddr): Likewise.
31455 (_res_hconf_reorder_addrs): Likewise.
31456 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31457 (clnttcp_control): Likewise.
31458 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31459 (clntudp_control): Likewise.
31460 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31461 (clntunix_control): Likewise.
31462 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31463 * sunrpc/rpc/auth.h (union des_block): Likewise.
31464 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31465 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31466 (xdrrec_create): Likewise.
31467 (xdrrec_endofrecord): Likewise.
31468 (flush_out): Likewise.
31469 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31470 (xdrstdio_putlong): Likewise.
31471 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31472 Likewise.
31473
31474 * misc/sys/cdefs.h (__long_double_t): Remove.
31475 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31476 instead of __long_double_t,
31477 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31478
31479 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31480
31481 * benchtests/scripts/compare_strings.py: Avoid display error when
31482 running on a text terminal.
31483
31484 * benchtests/scripts/compare_strings.py (main): Add an
31485 optional -base option.
31486 (process_results): New argument base_func.
31487
31488 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31489 hardcoding memcpy.
31490 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31491 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31492
31493 2017-08-07 Andreas Schwab <schwab@suse.de>
31494
31495 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31496 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31497 * intl/Makefile ($(objpfx)tst-gettext.out)
31498 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31499 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31500 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31501 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31502 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31503 * posix/Makefile ($(objpfx)globtest.out)
31504 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31505 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31506 ($(objpfx)tst-printf.out): Likewise.
31507 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31508 ($(objpfx)tst-setcontext3.out): Likewise.
31509
31510 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31511
31512 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31513 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31514 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31515 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31516 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31517 and mptan-fma.
31518 (CFLAGS-doasin-fma.c): New.
31519 (CFLAGS-dosincos-fma.c): Likewise.
31520 (CFLAGS-e_asin-fma.c): Likewise.
31521 (CFLAGS-e_atan2-fma.c): Likewise.
31522 (CFLAGS-e_exp-fma.c): Likewise.
31523 (CFLAGS-e_log-fma.c): Likewise.
31524 (CFLAGS-e_pow-fma.c): Likewise.
31525 (CFLAGS-halfulp-fma.c): Likewise.
31526 (CFLAGS-mpa-fma.c): Likewise.
31527 (CFLAGS-mpatan-fma.c): Likewise.
31528 (CFLAGS-mpatan2-fma.c): Likewise.
31529 (CFLAGS-mpexp-fma.c): Likewise.
31530 (CFLAGS-mplog-fma.c): Likewise.
31531 (CFLAGS-mpsqrt-fma.c): Likewise.
31532 (CFLAGS-mptan-fma.c): Likewise.
31533 (CFLAGS-s_atan-fma.c): Likewise.
31534 (CFLAGS-sincos32-fma.c): Likewise.
31535 (CFLAGS-slowexp-fma.c): Likewise.
31536 (CFLAGS-slowpow-fma.c): Likewise.
31537 (CFLAGS-s_sin-fma.c): Likewise.
31538 (CFLAGS-s_tan-fma.c): Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31540 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31542 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31559 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31561 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31562 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31563 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31564 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31565 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31566 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31567 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31568 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31569 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31570
31571 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31572
31573 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31574 (min_of_type_f): New macro.
31575 (min_of_type_): Likewise.
31576 (min_of_type_l): Likewise.
31577 (min_of_type_f128): Likewise.
31578 (min_of_type): Define using __MATH_TG and taking an expression
31579 argument.
31580 (math_check_force_underflow): Pass expression instead of type to
31581 min_of_type.
31582 (math_check_force_underflow_nonneg): Likewise.
31583
31584 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31585
31586 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31587 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31588 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31589
31590 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31591
31592 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31593 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31594 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31595 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31596 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31597 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31598 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31599 memmove_chk-nonshared and memset_chk-nonshared
31600 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31601 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31602 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31603 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31604 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31605 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31606 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31607 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31608 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31609 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31610 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31611 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31612 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31613 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31615 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31617 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31618 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31619 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31621 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31623 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31624 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31625 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31626 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31627 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31628 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31630 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31632 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31633 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31634 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31635 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31636 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31638 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31639 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31640 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31641 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31642 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31643 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31646 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31648 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31649 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31650 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31651 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31652 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31653 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31654 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31655 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31656 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31657 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31658 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31659 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31660 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31661 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31662 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31663 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31664 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31665 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31666 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31667 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31668 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31669 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31670 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31671 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31672 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31673 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31674 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31675 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31676 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31677 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31680 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31682 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31688 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31690 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31692 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31694 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31695 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31696 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31697 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31698 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31699 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31700 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31701 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31702 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31703 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31704 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31705 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31706 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31707 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31708
31709 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31710
31711 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31712 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31713 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31714 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31715 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31716 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31717 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31718 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31719 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31720 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31721 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31722 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31723 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31724 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31725 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31726 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31727 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31728 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31729 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31730 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31731 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31732 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31766 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31769 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31770 ...
31771 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31772 Don't include <sysdep.h> nor <init-arch.h>.
31773 (_ZGVbN2v_cos): Removed.
31774 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31775 ...
31776 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31777 Don't include <sysdep.h> nor <init-arch.h>.
31778 (_ZGVdN4v_cos): Removed.
31779 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31780 ...
31781 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31782 Don't include <sysdep.h> nor <init-arch.h>.
31783 (_ZGVeN8v_cos): Removed.
31784 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31785 ...
31786 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31787 Don't include <sysdep.h> nor <init-arch.h>.
31788 (_ZGVbN2v_exp): Removed.
31789 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31790 ...
31791 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31792 Don't include <sysdep.h> nor <init-arch.h>.
31793 (_ZGVdN4v_exp): Removed.
31794 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31795 ...
31796 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31797 Don't include <sysdep.h> nor <init-arch.h>.
31798 (_ZGVeN8v_exp): Removed.
31799 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31800 ...
31801 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31802 Don't include <sysdep.h> nor <init-arch.h>.
31803 (_ZGVbN2v_log): Removed.
31804 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31805 ...
31806 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31807 Don't include <sysdep.h> nor <init-arch.h>.
31808 (_ZGVdN4v_log): Removed.
31809 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31810 ...
31811 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31812 Don't include <sysdep.h> nor <init-arch.h>.
31813 (_ZGVeN8v_log): Removed.
31814 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31815 ...
31816 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31817 Don't include <sysdep.h> nor <init-arch.h>.
31818 (_ZGVbN2vv_pow): Removed.
31819 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31820 ...
31821 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31822 Don't include <sysdep.h> nor <init-arch.h>.
31823 (_ZGVdN4vv_pow): Removed.
31824 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31825 ...
31826 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31827 Don't include <sysdep.h> nor <init-arch.h>.
31828 (_ZGVeN8vv_pow): Removed.
31829 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31830 ...
31831 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31832 Don't include <sysdep.h> nor <init-arch.h>.
31833 (_ZGVbN2v_sin): Removed.
31834 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31835 ...
31836 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31837 Don't include <sysdep.h> nor <init-arch.h>.
31838 (_ZGVbN4v_sin): Removed.
31839 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31840 ...
31841 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31842 Don't include <sysdep.h> nor <init-arch.h>.
31843 (_ZGVbN8v_sin): Removed.
31844 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31845 ...
31846 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31847 Don't include <sysdep.h> nor <init-arch.h>.
31848 (_ZGVbN2vvv_sincos): Removed.
31849 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31850 ...
31851 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31852 Don't include <sysdep.h> nor <init-arch.h>.
31853 (_ZGVdN4vvv_sincos): Removed.
31854 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31855 ...
31856 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31857 Don't include <sysdep.h> nor <init-arch.h>.
31858 (_ZGVeN8vvv_sincos): Removed.
31859 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31860 ...
31861 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31862 Don't include <sysdep.h> nor <init-arch.h>.
31863 (_ZGVeN16v_cosf): Removed.
31864 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31865 ...
31866 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31867 Don't include <sysdep.h> nor <init-arch.h>.
31868 (_ZGVbN4v_cosf): Removed.
31869 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31870 ...
31871 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31872 Don't include <sysdep.h> nor <init-arch.h>.
31873 (_ZGVdN8v_cosf): Removed.
31874 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31875 ...
31876 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31877 Don't include <sysdep.h> nor <init-arch.h>.
31878 (_ZGVeN16v_expf): Removed.
31879 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31880 ...
31881 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31882 Don't include <sysdep.h> nor <init-arch.h>.
31883 (_ZGVbN4v_expf): Removed.
31884 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31885 ...
31886 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31887 Don't include <sysdep.h> nor <init-arch.h>.
31888 (_ZGVdN8v_expf): Removed.
31889 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31890 ...
31891 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31892 Don't include <sysdep.h> nor <init-arch.h>.
31893 (_ZGVeN16v_logf): Removed.
31894 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31895 ...
31896 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31897 Don't include <sysdep.h> nor <init-arch.h>.
31898 (_ZGVbN4v_logf): Removed.
31899 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31900 ...
31901 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31902 Don't include <sysdep.h> nor <init-arch.h>.
31903 (_ZGVdN8v_logf): Removed.
31904 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31905 ...
31906 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31907 Don't include <sysdep.h> nor <init-arch.h>.
31908 (_ZGVeN16vv_powf): Removed.
31909 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31910 ...
31911 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31912 Don't include <sysdep.h> nor <init-arch.h>.
31913 (_ZGVbN4vv_powf): Removed.
31914 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31915 ...
31916 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31917 Don't include <sysdep.h> nor <init-arch.h>.
31918 (_ZGVdN8vv_powf): Removed.
31919 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31920 ...
31921 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31922 Don't include <sysdep.h> nor <init-arch.h>.
31923 (_ZGVeN16vvv_sincosf): Removed.
31924 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31925 ...
31926 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31927 Don't include <sysdep.h> nor <init-arch.h>.
31928 (_ZGVbN4vvv_sincosf): Removed.
31929 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31930 ...
31931 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31932 Don't include <sysdep.h> nor <init-arch.h>.
31933 (_ZGVdN8vvv_sincosf): Removed.
31934 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31935 ...
31936 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31937 Don't include <sysdep.h> nor <init-arch.h>.
31938 (_ZGVeN16v_sinf): Removed.
31939 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31940 ...
31941 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31942 Don't include <sysdep.h> nor <init-arch.h>.
31943 (_ZGVbN4v_sinf): Removed.
31944 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31945 ...
31946 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31947 Don't include <sysdep.h> nor <init-arch.h>.
31948 (_ZGVdN8v_sinf): Removed.
31949
31950 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31951
31952 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31953 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31954 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31955 s_rint-sse4_1 and s_rintf-sse4_1.
31956 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31957 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31958 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31959 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31960 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31961 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31962 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31963 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31964 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31965 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31966 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31967 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31968 (__ceil): Removed.
31969 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31970 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31971 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31972 (__ceilf): Removed.
31973 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31974 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31975 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31976 (__floor): Removed.
31977 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31978 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31979 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31980 (__floorf): Removed.
31981 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31982 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31983 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31984 (__nearbyint): Removed.
31985 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31986 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31987 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31988 (__nearbyintf): Removed.
31989 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31990 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31991 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31992 (__rint): Removed.
31993 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31994 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31995 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31996 (__rintf): Removed.
31997
31998 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31999
32000 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32001 SHARED. Avoid dynamic relocation against main in static PIE.
32002
32003 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32004
32005 [BZ #21815]
32006 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32007 (LDFLAGS-tst-prelink): Likewise.
32008
32009 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32010
32011 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32012 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32013 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32014 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32015 (INTERNAL_SYSCALL_NCS): Likewise.
32016 (LOADARGS_1): Likewise.
32017 (LOADARGS_5): Likewise.
32018 (RESTOREARGS_1): Likewise.
32019 (RESTOREARGS_5): Likewise.
32020
32021 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32022
32023 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32024 (MEMPCPY_SYMBOL): Likewise.
32025 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32026 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32027 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32028 in libc.a.
32029 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32030 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32031 Likewise.
32032 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32033 (__hidden_ver1): Don't use in libc.a.
32034 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32035 (__mempcpy): Don't create a weak alias in libc.a.
32036 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32037 libc.a.
32038 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32039 (__hidden_ver1): Don't use in libc.a.
32040
32041 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32042
32043 * config.make.in (have-insert): New.
32044 * configure.ac (libc_cv_insert): New. Set to yes if linker
32045 supports INSERT in linker script.
32046 (AC_SUBST(libc_cv_insert): New.
32047 * configure: Regenerated.
32048 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32049 if $(have-insert) == yes.
32050
32051 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32052
32053 * elf/Makefile (tests): Add vismain only if
32054 $(have-protected-data) == yes.
32055 (tests-pie): Likewise.
32056
32057 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32058
32059 [BZ #21871]
32060 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32061 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32062
32063 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32064
32065 [BZ #21790]
32066 * sysdeps/i386/i586/memset.S
32067 (__memset_zero_constant_len_parameter): Removed.
32068 * sysdeps/i386/i686/memset.S
32069 (__memset_zero_constant_len_parameter): Likewise.
32070 * sysdeps/i386/i686/multiarch/memset_chk.S
32071 (__memset_zero_constant_len_parameter): Likewise.
32072 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32073 Likewise.
32074
32075 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32076
32077 * stdlib/getentropy.c (getentropy): Change return type to int.
32078
32079 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32080
32081 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32082
32083 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32084
32085 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32086 u_intN_t.
32087 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32088 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32089 Likewise.
32090 (ieee_float_shape_type): Likewise.
32091 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32092 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32093 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32094 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32095 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32096 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32097 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32098 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32099 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32100 Likewise.
32101 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32102 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32103 (__ieee754_yn): Likewise.
32104 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32105 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32106 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32107 Likewise.
32108 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32109 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32110 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32111 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32112 (__erfc): Likewise.
32113 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32114 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32115 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32116 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32117 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32118 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32119 Likewise.
32120 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32121 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32122 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32123 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32124 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32125 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32126 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32127 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32128 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32129 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32130 (__issignaling): Likewise.
32131 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32132 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32133 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32134 Likewise.
32135 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32136 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32137 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32138 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32139 Likewise.
32140 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32141 Likewise.
32142 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32143 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32144 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32145 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32146 (__erfcf): Likewise.
32147 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32148 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32149 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32150 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32151 Likewise.
32152 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32153 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32154 Likewise.
32155 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32156 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32157 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32158 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32159 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32160 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32161 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32162 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32163 Likewise.
32164 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32165 Likewise.
32166 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32167 Likewise.
32168 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32169 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32170 Likewise.
32171 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32172 Likewise.
32173 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32174 (__ieee754_ynl): Likewise.
32175 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32176 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32177 Likewise.
32178 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32179 Likewise.
32180 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32181 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32182 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32183 Likewise.
32184 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32185 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32186 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32187 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32188 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32189 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32190 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32191 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32192 Likewise.
32193 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32194 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32195 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32196 Likewise.
32197 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32198 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32199 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32200 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32201 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32202 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32203 Likewise.
32204 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32205 Likewise.
32206 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32207 Likewise.
32208 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32209 Likewise.
32210 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32211 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32212 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32213 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32214 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32215 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32216 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32217 Likewise.
32218 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32219 Likewise.
32220 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32221 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32222 Likewise.
32223 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32224 (__ieee754_remainderl): Likewise.
32225 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32226 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32227 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32228 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32229 Likewise.
32230 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32231 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32232 Likewise.
32233 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32234 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32235 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32236 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32237 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32238 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32239 Likewise.
32240 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32241 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32242 (__ieee754_y0l): Likewise.
32243 (pzero): Likewise.
32244 (qzero): Likewise.
32245 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32246 (__ieee754_y1l): Likewise.
32247 (pone): Likewise.
32248 (qone): Likewise.
32249 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32250 (__ieee754_ynl): Likewise.
32251 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32252 (__ieee754_lgammal_r): Likewise.
32253 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32254 Likewise.
32255 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32256 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32257 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32258 (__erfcl): Likewise.
32259 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32260 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32261 Likewise.
32262 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32263 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32264 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32265 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32266 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32267 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32268 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32269 Likewise.
32270 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32271 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32272 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32273 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32274 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32275 Likewise.
32276 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32277 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32278 Likewise.
32279 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32280 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32281 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32282 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32283 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32284
32285 2017-08-03 Florian Weimer <fweimer@redhat.com>
32286
32287 [BZ #21885]
32288 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32289 on memory allocation failure.
32290
32291 2017-08-03 Alan Modra <amodra@gmail.com>
32292
32293 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32294 tst-tlsopt-powerpc.c with function name change and no test harness.
32295 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32296 Call tls_get_addr_opt_test.
32297 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32298 (modules-names): Add mod-tlsopt-powerpc.
32299 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32300 (tst-tlsopt-powerpc): Depend on .so.
32301 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32302 define. Expand use in TLS_GD and TLS_LD.
32303
32304 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32305
32306 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32307 function.
32308 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32309
32310 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32311
32312 [BZ #21686]
32313 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32314 comparing size with that of double.
32315 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32316 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32317 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32318 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32319 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32320 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32321 unsigned __int128 types.
32322
32323 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32324
32325 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32326 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32327 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32328 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32329 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32330
32331 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32332
32333 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32334
32335 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32336
32337 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32338 of SHARED.
32339 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32340 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32341 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32342 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32343 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32344 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32345 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32346
32347 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32348
32349 [BZ #21685]
32350 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32351 bit-field expressions passed to sizeof or typeof.
32352 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32353 (__TGMATH_F128): Likewise.
32354 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32355 (__TGMATH_CF128): Likewise.
32356 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32357 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32358 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32359 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32360 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32361 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32362 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32363 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32364 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32365 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32366 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32367 (__TGMATH_UNARY_IMAG): Likewise.
32368 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32369 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32370 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32371 type.
32372 (define_vars_for_type): Handle bit_field type specially.
32373 (Tests.__init__): Declare structure with bit-field element.
32374
32375 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32376
32377 [BZ #21791]
32378 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32379 (MEMCPY_CHK): Define only if SHARED is defined.
32380 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32381 Likewise.
32382 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32383 Likewise.
32384
32385 See ChangeLog.18 for earlier changes.