]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Fix pthread_tryjoin comment.
[thirdparty/glibc.git] / ChangeLog
1 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2
3 * nptl/pthread_tryjoin.c: Fix comment.
4
5 2019-02-18 Joseph Myers <joseph@codesourcery.com>
6
7 [BZ #24231]
8 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
9 after R_SPARC_H34 case.
10
11 2019-02-18 Florian Weimer <fweimer@redhat.com>
12
13 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
14 (getanswer): Do not call Dprintf.
15 (res_gethostbyname2_context): Likewise.
16 (res_gethostbyaddr_context): Likewise.
17
18 2019-02-18 Florian Weimer <fweimer@redhat.com>
19
20 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
21 declaration.
22 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
23 Remove definitions.
24 * libio/stdfiles.c: Update comment.
25 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
26 set _IO_stdin, _IO_stdout, _IO_stderr.
27 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
28 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
29 inline function.
30 (_IO_deallocate_file): New inline function.
31 * libio/iolibio.h (_IO_vprintf): Remove definition.
32 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
33 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
34 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
35 _IO_legacy_file.
36 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
37 __builtin_expect. Use _IO_legacy_file.
38
39 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
40
41 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
42 Initialize ctid with a known value and remove update of ctid
43 after clone.
44 (wait_tid): Adjust arguments and call futex_wait with ctid_val
45 as assumed current value of ctid_ptr.
46
47 2019-02-15 Florian Weimer <fweimer@redhat.com>
48
49 Check that non-sysdeps headers have wrapper headers.
50 * scripts/check-wrapper-headers.py: New file.
51 * Makefile (tests-special): Add check-wrapper-headers.out.
52 (check-wrapper-headers.out): New target.
53 * Rules (tests-special): Add check-wrapper-headers.out.
54 (check-wrapper-headers.out): New target.
55
56 2019-02-15 Florian Weimer <fweimer@redhat.com>
57
58 Add missing header wrappers under include/.
59 * include/ar.h: New file.
60 * include/bits/mqueue2.h: Likewise.
61 * include/bits/stdio.h: Likewise.
62 * include/bits/stdio2.h: Likewise.
63 * include/fstab.h: Likewise.
64 * include/fts.h: Likewise.
65 * include/lastlog.h: Likewise.
66 * include/netinet/icmp6.h: Likewise.
67 * include/netinet/igmp.h: Likewise.
68 * include/netinet/ip6.h: Likewise.
69 * include/re_comp.h: Likewise.
70 * include/regexp.h: Likewise.
71 * include/rpcsvc/bootparam.h: Likewise.
72 * include/rpcsvc/yp_prot.h: Likewise.
73 * include/sys/random.h: Likewise.
74 * include/sys/stropts.h: Likewise.
75 * include/sys/ttychars.h: Likewise.
76 * include/sys/vfs.h: Likewise.
77 * include/wait.h: Likewise.
78
79 2019-02-15 Florian Weimer <fweimer@redhat.com>
80
81 * nptl_db/proc_service.h: Move to ...
82 * sysdeps/nptl/proc_service.h: ... here.
83 * nptl_db/thread_db.h: Move to ...
84 * sysdeps/nptl/thread_db.h: ... here.
85 * nptl/descr.h: Include <thread_db.h>.
86
87 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
88
89 * io/Makefile (tests): Add tst-lockf.
90 * io/lockf.c (lockf): Use __fcntl and only define for
91 !__OFF_T_MATCHES_OFF64_T.
92 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
93 __OFF_T_MATCHES_OFF64_T case.
94 * io/tst-lockf.c: New file.
95 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
96 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
97 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
98 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
99 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
101 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
102 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
103 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
104
105 2019-02-15 Florian Weimer <fweimer@redhat.com>
106
107 [BZ #24211]
108 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
109 pd->result after the thread descriptor has been freed.
110
111 2019-02-15 Joseph Myers <joseph@codesourcery.com>
112
113 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
114 from function return type.
115
116 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
117
118 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
119
120 * scripts/test_printers_common.py: Set TERM to a known harmless
121 value.
122
123 2019-02-14 Joseph Myers <joseph@codesourcery.com>
124
125 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
126 (xdr_u_int): Likewise.
127 (xdr_enum): Likewise.
128 (xdr_bytes): Reword fall-through comment.
129 (xdr_string): Likewise.
130
131 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
132
133 [BZ #2421]
134 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
135 (tests): Add tst-join8 tst-join9.
136 * nptl/lll_timedwait_tid.c: Remove file.
137 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
138 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
139 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
140 * nptl/pthread_join_common.c (timedwait_tid): New function.
141 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
142 is set.
143 * nptl/tst-join5.c (thread_join): New function.
144 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
145 check.
146 * nptl/tst-join8.c: New file.
147 * nptl/tst-join9.c: Likewise.
148 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
149 lll_futex_timed_wait_cancel): Add generic macros.
150 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
151 Remove definitions.
152 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
153 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
154 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
155 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
156 Remove function.
157 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
158 Likewise.
159 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
160 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
161 (lll_futex_timed_wait_cancel): New macro.
162
163 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
164
165 * benchtests/Makefile: Add malloc-simple benchmark.
166 * benchtests/bench-malloc-simple.c: New benchmark.
167
168 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
169
170 * benchtests/bench-memmove.c (do_one_test): Remove unused
171 ORIG_SRC.
172 (do_test): Adjust.
173 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
174 ORIG_SRC.
175 (do_test): Adjust.
176
177 2019-01-13 Jim Wilson <jimw@sifive.com>
178
179 [BZ #24040]
180 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
181 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
182 (func): New.
183 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
184 call func directly.
185 * nptl/Makefile (tests): Add tst-unwind-thread.
186 (CFLAGS-tst-unwind-thread.c): Define.
187 * nptl/tst-unwind-thread.c: New file.
188 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
189 as undefined.
190
191 2019-02-13 Joseph Myers <joseph@codesourcery.com>
192
193 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
194 comment wording.
195 * nis/nis_call.c (__do_niscall3): Likewise.
196
197 * catgets/gencat.c (normalize_line): Use braces around empty
198 'else' body.
199 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
200 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
201 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
202 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
203 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
204 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
205 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
206 definition.
207
208 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
209 execlp returns.
210
211 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
212
213 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
214 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
215 * benchtests/bench-strchr.c (stupid_strchr): Remove.
216 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
217 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
218 * benchtests/bench-strlen.c (builtin_strlen): Remove.
219 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
220 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
221 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
222 * benchtests/bench-strspn.c (stupid_strspn): Remove.
223 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
224 * benchtests/bench-bcopy.c: Delete file.
225 * benchtests/bench-bzero.c: Likewise.
226 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
227 (simple_memccpy): Remove.
228 (generic_memccpy): Add function.
229 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
230 * benchtests/bench-memmove.c (simple_bcopy): Remove.
231 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
232 (generic_mempcpy): Add new function.
233 * benchtests/bench-memset.c (simple_bzero): Remove.
234 (builtin_bzero): Remove.
235 (builtin_memset): Remove.
236 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
237 (generic_rawmemchr): Add new function.
238
239 2019-02-12 Florian Weimer <fweimer@redhat.com>
240
241 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
242
243 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
244
245 [BZ #24122]
246 * elf/Makefile (tests): Add tst-audit13.
247 (modules-names): Add tst-audit13mod1.
248 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
249 rule.
250 * elf/tst-audit13.c: New file.
251 * elf/tst-audit13mod1.c: Likewise.
252
253 2019-02-12 Florian Weimer <fweimer@redhat.com>
254
255 [BZ #24122]
256 * elf/rtld.c (unload_audit_module): New function.
257 (report_audit_module_load_error): Likewise.
258 (load_audit_module): Likewise. Extracted from dl_main. Call
259 _dl_close if the laversion symbol cannot be found. Use early
260 returns for error handling. Add malloc error check. Check for a
261 zero return value from la_version. Remove spurious comment about
262 static TLS initialization. Remove useless casts.
263 (notify_audit_modules_of_loaded_object): New function. Extracted
264 from dl_main.
265 (load_audit_module): Likewise.
266 (dl_main): Call load_audit_modules.
267
268 2019-02-12 Joseph Myers <joseph@codesourcery.com>
269
270 * elf/dl-exception.c (_dl_exception_create_format): Add
271 fall-through comments.
272 * elf/ldconfig.c (parse_conf_include): Likewise.
273 * elf/rtld.c (print_statistics): Likewise.
274 * locale/programs/charmap.c (parse_charmap): Likewise.
275 * misc/mntent_r.c (__getmntent_r): Likewise.
276 * posix/wordexp.c (parse_arith): Likewise.
277 (parse_backtick): Likewise.
278 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
279 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
280 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
281
282 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
283
284 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
285 Use float instead of double.
286
287 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
288
289 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
290
291 2019-02-08 Joseph Myers <joseph@codesourcery.com>
292
293 * sysdeps/powerpc/bits/mathinline.h: Remove.
294
295 2019-02-08 Florian Weimer <fweimer@redhat.com>
296
297 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
298 * math/bits/math-finite.h: Move to ...
299 * bits/math-finite.h: ... here.
300
301 2019-02-08 Florian Weimer <fweimer@redhat.com>
302
303 * sysdeps/generic/bits/unistd_ext.h: Move to ...
304 * bits/unistd_ext.h: here.
305
306 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
307
308 [BZ #21915]
309 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
310 * nss/tst-nss-files-hosts-long.c: New file.
311 * nss/tst-nss-files-hosts-long.root: New directory.
312 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
313 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
314
315 2019-02-08 Florian Weimer <fweimer@redhat.com>
316
317 * include/bits/unistd_ext.h: Remove file.
318 * posix/bits/unistd_ext.h: Move to ...
319 * sysdeps/generic/bits/unistd_ext.h: ... here.
320
321 2019-02-08 Florian Weimer <fweimer@redhat.com>
322
323 * include/bits/unistd_ext.h: New file.
324
325 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
326
327 * time/tst-strftime2.c: Use array_length macros instead of magic
328 numbers.
329
330 2019-02-08 Florian Weimer <fweimer@redhat.com>
331
332 [BZ #24161]
333 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
334 argument.
335 * nptl/register-atfork.c (__run_fork_handlers): Only perform
336 locking if the new do_locking argument is true.
337 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
338 __run_fork_handlers.
339
340 2019-02-08 Florian Weimer <fweimer@redhat.com>
341
342 [BZ #6399]
343 Linux: Add gettid system call wrapper.
344 * posix/Makefile (headers): Add bits/unistd_ext.h.
345 * posix/bits/unistd_ext.h: New file.
346 * posix/unistd.h: Include it.
347 * manual/process.texi (Process Identification): Document gettid.
348 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
349 tst-gettid, tst-gettid-kill.
350 (tst-gettid): Link with $(shared-thread-library).
351 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
352 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
353 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
354 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
355 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
356 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
357 Add gettid.
358 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
359 Likewise.
360 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
361 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
362 Likewise.
363 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
364 Likewise.
365 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
366 Likewise.
367 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
368 Likewise.
369 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
370 Likewise.
371 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
372 Likewise.
373 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
374 Likewise.
375 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
376 (GLIBC_2.30): Likewise.
377 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
378 (GLIBC_2.30): Likewise.
379 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
380 (GLIBC_2.30): Likewise.
381 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
382 (GLIBC_2.30): Likewise.
383 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
384 Likewise.
385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
386 (GLIBC_2.30): Likewise.
387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
388 (GLIBC_2.30): Likewise.
389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
390 (GLIBC_2.30): Likewise.
391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
392 (GLIBC_2.30): Likewise.
393 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
394 Likewise.
395 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
396 Likewise.
397 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
398 Likewise.
399 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
400 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
401 Likewise.
402 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
403 Likewise.
404 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
405 Likewise.
406 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
407 Likewise.
408 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
409
410 2019-02-07 Florian Weimer <fweimer@redhat.com>
411
412 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
413 compatibility symbols.
414
415 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
416
417 [BZ #24180]
418 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
419 Add compiler barriers and comments.
420
421 2019-02-07 Florian Weimer <fweimer@redhat.com>
422
423 * include/array_length.h (array_length): Do not use a statement
424 expression and _Static_assert, so that array_length can be used at
425 file scope and as a constant expression.
426
427 2019-02-07 Florian Weimer <fweimer@redhat.com>
428
429 * support/xdlfcn.h (xdlmopen): Declare.
430 * support/xdlmopen.c: New file.
431 * support/Makefile (libsupport-routines): Add xdlmopen.
432
433 2019-02-06 Joseph Myers <joseph@codesourcery.com>
434
435 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
436 before return type, without separate inline.
437 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
438 * elf/dl-tunables.h (tunable_is_name): Likewise.
439 * malloc/malloc.c (do_set_trim_threshold): Likewise.
440 (do_set_top_pad): Likewise.
441 (do_set_mmap_threshold): Likewise.
442 (do_set_mmaps_max): Likewise.
443 (do_set_mallopt_check): Likewise.
444 (do_set_perturb_byte): Likewise.
445 (do_set_arena_test): Likewise.
446 (do_set_arena_max): Likewise.
447 (do_set_tcache_max): Likewise.
448 (do_set_tcache_count): Likewise.
449 (do_set_tcache_unsorted_limit): Likewise.
450 * nis/nis_subr.c (count_dots): Likewise.
451 * nptl/allocatestack.c (advise_stack_range): Likewise.
452 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
453 (do_sin): Likewise.
454 (reduce_sincos): Likewise.
455 (do_sincos): Likewise.
456 * sysdeps/unix/sysv/linux/x86/elision-conf.c
457 (do_set_elision_enable): Likewise.
458 (TUNABLE_CALLBACK_FNDECL): Likewise.
459
460 2019-02-06 Florian Weimer <fweimer@redhat.com>
461
462 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
463 (xdlsym): Use dlerror to detect a NULL symbol.
464
465 2019-02-06 Florian Weimer <fweimer@redhat.com>
466
467 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
468 <stap-probe.h>.
469 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
470
471 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
472
473 * libio/tst-bz24153.c (wide): Use wide char format specifier.
474
475 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
476
477 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
478 __wmemcmp and weak alias to wmemcmp.
479
480 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
481
482 [BZ #23403]
483 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
484 TLS_TCB_AT_TP tls variant.
485 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
486 Add alignment checks.
487 * support/Makefile (libsupport-routines): Add xposix_memalign and
488 xpthread_setstack.
489 * support/support.h: Add xposix_memalign.
490 * support/xthread.h: Add xpthread_attr_setstack.
491 * support/xposix_memalign.c: New File.
492 * support/xpthread_attr_setstack.c: Likewise.
493
494 2019-02-05 Florian Weimer <fweimer@redhat.com>
495
496 [BZ #24164]
497 arm: Use "nr" constraint for Systemtap probes, to avoid the
498 compiler using memory operands for constants, due to the "o"
499 alternative in the default "nor" constraint.
500 * include/stap-probe.h [USE_STAP_PROBE]: Include
501 <stap-probe-machine.h>
502 * sysdeps/generic/stap-probe-machine.h: New file.
503 * sysdeps/arm/stap-probe-machine.h: Likewise.
504
505 2019-02-04 Joseph Myers <joseph@codesourcery.com>
506
507 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
508 with 0, not tcache->entries[tc_idx].
509
510 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
511 once.
512
513 2019-02-04 Andreas Schwab <schwab@suse.de>
514
515 [BZ #16976]
516 [BZ #17396]
517 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
518 looking up collating elements match against (wide) character
519 sequence instead of name. Correct alignment adjustment.
520 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
521 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
522 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
523 (LOCALES): Add cs_CZ.ISO-8859-2.
524 * posix/tst-fnmatch4.c: New file.
525 * posix/tst-fnmatch5.c: New file.
526 * include/wchar.h (__wmemcmp): Declare.
527 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
528 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
529 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
530 * sysdeps/s390/wmemcmp.c: Likewise.
531
532 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
533
534 [BZ #24155]
535 CVE-2019-7309
536 * NEWS: Updated for CVE-2019-7309.
537 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
538 upper 32 bits of RDX register for x32. Use unsigned Jcc
539 instructions, instead of signed.
540 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
541 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
542
543 2019-02-04 Florian Weimer <fweimer@redhat.com>
544
545 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
546 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
547 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
548 Likewise.
549 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
550 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
551 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
552 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
553 Likewise.
554 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
555 Likewise.
556 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
557 Likewise.
558 (posix_spawn_file_actions_addopen): Likewise.
559 (posix_spawn_file_actions_addclose): Likewise.
560 (posix_spawn_file_actions_adddup2): Likewise.
561 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
562 qualifiers.
563 (posix_spawn_file_actions_addfchdir_np): Likewise.
564
565 2019-02-04 David Newall <glibc@davidnewall.com>
566
567 elf: Implement --preload option for the dynamic linker.
568 * elf/rtld.c (preloadarg): New variable.
569 (handle_preload_list): Pass through “where” argument to
570 do_preload.
571 (dl_main): Handle "--preload" and add second call to
572 handle_preload_list.
573 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
574 (tst-rtld-preload-OBJS): Set variable.
575 (tst-rtld-preload.out): New target.
576 * elf/tst-rtld-preload.sh: New file.
577
578 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
579
580 * Makefile (testrun.sh): Exit in case of incorrect argument.
581
582 2019-02-04 Florian Weimer <fweimer@redhat.com>
583
584 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
585 alignment gaps.
586
587 2019-02-03 Florian Weimer <fweimer@redhat.com>
588
589 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
590 implicit overflow checks.
591
592 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
593
594 * stdlib/isomac.c: Include <unistd.h>.
595
596 2019-02-03 Florian Weimer <fweimer@redhat.com>
597
598 * include/time.h (__tzfile_default): Use int, not long int, for
599 the GMT offsets.
600 * time/tzfile.c (struct ttinfo): Change type of the offset member
601 to int.
602 (__tzfile_read): Remove useless cast.
603 (__tzfile_default): Adjust prototype.
604 * time/tzset.c (tz_rule): Change type of the offset member to int.
605 (parse_offset): Change the type of the sign variable to int.
606
607 2019-02-03 Florian Weimer <fweimer@redhat.com>
608
609 [BZ #24153]
610 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
611 * libio/getchar.c (getchar): Likewise.
612 * libio/getchar_u.c (getchar_unlocked): Likewise.
613 * libio/getwchar.c (getwchar): Likewise.
614 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
615 * libio/iogets.c (_IO_gets): Likewise.
616 * libio/vscanf.c (_IO_vscanf): Likewise.
617 * libio/vwscanf.c (__vwscanf): Likewise.
618 * libio/tst-bz24153.c: New file.
619 * libio/Makefile (tests): Add it.
620
621 2019-02-02 Florian Weimer <fweimer@redhat.com>
622
623 [BZ #14829]
624 * manual/resource.texi (Basic Scheduling Functions): Add
625 portability note. Change process to task throughout the section.
626 Remove incorrect comment about sched_yield as it affects
627 tasks/threads, not entire processes.
628 * sysdeps/unix/sysv/linux/bits/posix_opt.h
629 (_POSIX_PRIORITY_SCHEDULING): Update comment.
630
631 2019-02-01 Joseph Myers <joseph@codesourcery.com>
632
633 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
634 * configure: Regenerated.
635 * manual/install.texi (Tools for Compilation): Update minimum GCC
636 version.
637 * INSTALL: Regenerated.
638
639 2019-02-01 Florian Weimer <fweimer@redhat.com>
640
641 * support/support_test_compare_string.c
642 (support_test_compare_string): Use "string" in error message.
643 * support/tst-test_compare_string.c (do_test): Adjust.
644
645 2019-02-01 Florian Weimer <fweimer@redhat.com>
646
647 * support/support_format_address_family.c
648 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
649
650 2019-02-01 Florian Weimer <fweimer@redhat.com>
651
652 * manual/socket.texi (Internet Address Formats): Clarify the byte
653 order of struct sockaddr_in, struct sockaddr_in6. Document
654 sin6_flowinfo and sin6_scope_id.
655
656 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
657
658 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
659 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
660 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
661 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
662 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
663 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
664
665 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
666
667 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
668 [!MEMCHR](MEMCHR): Set to __memchr.
669 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
670 Add memchr_generic and memchr_nosimd.
671 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
672 (__libc_ifunc_impl_list): Add memchr ifuncs.
673 * sysdeps/aarch64/multiarch/memchr.c: New file.
674 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
675 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
676
677 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
678
679 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
680 Add memset_emag.
681 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
682 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
683 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
684 Add IS_EMAG check for ifunc dispatch.
685 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
686 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
687
688 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
689
690 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
691 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
692 Add emag.
693 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
694 New macro.
695
696 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
697
698 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
699
700 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
701
702 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
703 syscall-template file.
704
705 2019-01-31 Carlos O'Donell <carlos@redhat.com>
706 Torvald Riegel <triegel@redhat.com>
707 Rik Prohaska <prohaska7@gmail.com>
708
709 [BZ# 23844]
710 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
711 tst-rwlock-trywrlock-stall.
712 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
713 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
714 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
715 Set __wrphase_fute to 1 only if we started the write phase.
716 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
717 * nptl/tst-rwlock-trywrlock-stall.c: New file.
718 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
719 * support/xpthread_rwlock_destroy.c: New file.
720 * support/xthread.h: Declare xpthread_rwlock_destroy.
721
722 2019-02-01 Joseph Myers <joseph@codesourcery.com>
723
724 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
725 version to 4.0.2.
726
727 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
728
729 [BZ #24051]
730 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
731 * libio/fileops.c (_IO_new_file_underflow): Likewise
732 * libio/wfileops.c (_IO_wfile_underflow): Likewise
733 * libio/putchar.c (putchar): Likewise.
734 * libio/putchar_u.c (putchar_unlocked): Likewise.
735 * libio/putwchar.c (putchar): Likewise.
736 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
737 * libio/tst-bz24051.c: New test.
738 * libio/Makefile (tests): Add tst-bz24051
739
740 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
741
742 regex: fix read overrun [BZ #24114]
743 Problem found by AddressSanitizer, reported by Hongxu Chen in:
744 https://debbugs.gnu.org/34140
745 * posix/regexec.c (proceed_next_node):
746 Do not read past end of input buffer.
747
748 2019-01-31 Florian Weimer <fweimer@redhat.com>
749
750 [BZ #24059]
751 * nss/nss_files/files-alias.c (get_next_alias): Handle
752 continuation line without newline at the end.
753 * nss/tst-nss-files-alias-truncated.c: New file.
754 * nss/Makefile [$(build-shared)] (tests): Add
755 tst-nss-files-alias-truncated.
756 (tst-nss-files-alias-truncated): Link with libnss_files.so.
757 * support/namespace.h (struct support_chroot_configuration): Add
758 aliases member.
759 (struct support_chroot): Add path_aliases member.
760 * support/support_chroot.c (support_chroot_create): Handle
761 aliases.
762 (support_chroot_free): Free path_aliases.
763
764 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
765
766 * version.h (RELEASE): Set to "development".
767 (VERSION): Set to "2.29.9000".
768 * NEWS: Add section for 2.30.
769
770 * version.h (RELEASE): Set to "stable".
771 (VERSION): Set to "2.29".
772 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
773
774 * NEWS: Add the list of bugs fixed in 2.29.
775 * manual/contrib.texi: Update contributors list with some more
776 names.
777 * manual/install.texi: Update latest versions of packages
778 tested.
779 * INSTALL: Regenerated.
780
781 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
782
783 * po/be.po: Update translations.
784 * po/bg.po: Likewise.
785 * po/ca.po: Likewise.
786 * po/cs.po: Likewise.
787 * po/da.po: Likewise.
788 * po/de.po: Likewise.
789 * po/el.po: Likewise.
790 * po/eo.po: Likewise.
791 * po/es.po: Likewise.
792 * po/fi.po: Likewise.
793 * po/fr.po: Likewise.
794 * po/gl.po: Likewise.
795 * po/hr.po: Likewise.
796 * po/hu.po: Likewise.
797 * po/ia.po: Likewise.
798 * po/id.po: Likewise.
799 * po/it.po: Likewise.
800 * po/ja.po: Likewise.
801 * po/ko.po: Likewise.
802 * po/lt.po: Likewise.
803 * po/nb.po: Likewise.
804 * po/nl.po: Likewise.
805 * po/pl.po: Likewise.
806 * po/pt_BR.po: Likewise.
807 * po/ru.po: Likewise.
808 * po/rw.po: Likewise.
809 * po/sk.po: Likewise.
810 * po/sl.po: Likewise.
811 * po/sv.po: Likewise.
812 * po/tr.po: Likewise.
813 * po/uk.po: Likewise.
814 * po/vi.po: Likewise.
815 * po/zh_CN.po: Likewise.
816 * po/zh_TW.po: Likewise.
817
818 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
819
820 [BZ #24130]
821 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
822 of $f3 register on $y_is_neg path.
823
824 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
825
826 [BZ #24110]
827 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
828 sigaltstack.ss_flags.
829
830 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
831
832 [BZ #23758]
833 * manual/time.texi (strftime): Document "%Ey".
834 * time/strftime_l.c (__strftime_internal): Set the default width
835 padding with zero of "%Ey" to 2.
836
837 [BZ #24096]
838 * manual/time.texi (strftime): Document "%EC" and "%EY".
839 * time/Makefile (tests): Add tst-strftime2.
840 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
841 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
842 override padding for "%Ey".
843 If an optional flag ('_' or '-') is specified to "%EY", interpret the
844 "%Ey" in the subformat as if decorated with that flag.
845 * time/tst-strftime2.c: New file.
846
847 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
848
849 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
850 are not defined.
851
852 [BZ #24122]
853 * elf/Makefile (tests): Add tst-audit13.
854 (modules-names): Add tst-audit13mod1.
855 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
856 rule.
857 * elf/rtld.c (dl_main): Handle invalid audit module version.
858 * elf/tst-audit13.c: New file.
859 * elf/tst-audit13mod1.c: Likewise.
860
861 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
862
863 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
864 returned by __hurd_at_flags.
865 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
866 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
867 directly instead of __hurd_file_name_lookup.
868
869 2019-01-21 Joseph Myers <joseph@codesourcery.com>
870
871 * scripts/build-many-glibcs.py (Context.checkout): Default
872 binutils version to 2.32 branch.
873
874 2019-01-21 Florian Weimer <fweimer@redhat.com>
875
876 [BZ #20018]
877 CVE-2016-10739
878 resolv: Reject trailing characters in host names
879 * include/arpa/inet.h (__inet_aton_exact): Declare.
880 (inet_aton): Remove hidden prototype. No longer used internally.
881 * nscd/gai.c (__inet_aton): Do not define.
882 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
883 * nss/digits_dots.c (__inet_aton): Likewise.
884 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
885 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
886 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
887 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
888 (tst-resolv-trailing): Likewise.
889 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
890 libc.
891 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
892 Make static. Add endp parameter.
893 (__inet_aton_exact): New function.
894 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
895 (__inet_addr): Call inet_aton_end.
896 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
897 not just IPv6. Call __inet_aton_exact.
898 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
899 (tests): Make const. Add additional test cases with trailing
900 characters.
901 (do_test): Use array_length.
902 * resolv/tst-inet_aton_exact.c: New file.
903 * resolv/tst-resolv-trailing.c: Likewise.
904 * resolv/tst-resolv-nondecimal.c: Likewise.
905 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
906
907 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
908
909 [BZ# 24097]
910 CVE-2019-6488
911 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
912 Clear the upper 32 bits of RSI register.
913 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
914 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
915 and tst-size_t-wcsnlen.
916 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
917 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
918
919 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
920
921 [BZ# 24097]
922 CVE-2019-6488
923 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
924 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
925 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
926 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
927 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
928
929 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
930
931 [BZ# 24097]
932 CVE-2019-6488
933 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
934 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
935 * sysdeps/x86_64/strcmp.S: Likewise.
936 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
937 tst-size_t-strncmp and tst-size_t-wcsncmp.
938 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
939 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
940 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
941
942 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
943
944 [BZ# 24097]
945 CVE-2019-6488
946 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
947 RDX_LP for length. Clear the upper 32 bits of RDX register.
948 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
949 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
950 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
951 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
952
953 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
954
955 [BZ# 24097]
956 CVE-2019-6488
957 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
958 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
959 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
960 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
961
962 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
963
964 [BZ# 24097]
965 CVE-2019-6488
966 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
967 length. Clear the upper 32 bits of RDX register.
968 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
969 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
970 Likewise.
971 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
972 Likewise.
973 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
974 tst-size_t-wmemchr.
975 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
976
977 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
978
979 [BZ# 24097]
980 CVE-2019-6488
981 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
982 length. Clear the upper 32 bits of RDX register.
983 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
984 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
985 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
986 tst-size_t-wmemcmp.
987 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
988 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
989
990 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
991
992 [BZ# 24097]
993 CVE-2019-6488
994 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
995 upper 32 bits of RDX register.
996 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
997 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
998 tst-size_t-wmemchr.
999 * sysdeps/x86_64/x32/test-size_t.h: New file.
1000 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1001 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1002
1003 2019-01-18 Florian Weimer <fweimer@redhat.com>
1004
1005 [BZ #24112]
1006 resolv: Do not send queries for non-host-names in nss_dns.
1007 * resolv/nss_dns/dns-host.c (check_name): New function.
1008 (_nss_dns_gethostbyname2_r): Use it.
1009 (_nss_dns_gethostbyname_r): Likewise.
1010 (_nss_dns_gethostbyname4_r): Likewise.
1011
1012 2019-01-21 Florian Weimer <fweimer@redhat.com>
1013
1014 * resolv/inet_addr.c: Reformat to GNU style.
1015 (__inet_addr, __inet_aton): Update comment.
1016
1017 2019-01-18 Florian Weimer <fweimer@redhat.com>
1018
1019 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1020 ("malloc: Use current (C11-style) atomics for fastbin access").
1021 This commit introduces a substantial performance regression on
1022 POWER and Aarch64.
1023 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1024 (REMOVE_FB): Define.
1025 (_int_malloc): Use it and reindent.
1026 (_int_free): Use CAS loop with
1027 catomic_compare_and_exchange_val_rel.
1028 (malloc_consolidate): Use atomic_exchange_acq.
1029
1030
1031 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1032
1033 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1034 -Wl,-z,now.
1035 (LDFLAGS-tst-minsigstksz-2): Likewise.
1036 (LDFLAGS-tst-minsigstksz-3): Likewise.
1037 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1038 (LDFLAGS-tst-minsigstksz-4): Likewise.
1039
1040 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1041
1042 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1043 than "alternate".
1044
1045 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1046
1047 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1048
1049 2019-01-16 Zack Weinberg <zackw@panix.com>
1050
1051 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1052 (xget_sigstack_location): New test support functions.
1053 * support/xsigstack.c: New file, implementing them.
1054 * support/tst-xsigstack.c: New test for them.
1055 * support/Makefile: Update.
1056
1057 * signal/tst-minsigstksz-1.c
1058 * signal/tst-minsigstksz-2.c
1059 * signal/tst-minsigstksz-3.c
1060 * signal/tst-minsigstksz-3a.c
1061 * signal/tst-minsigstksz-4.c: New tests.
1062 * signal/Makefile: Run them.
1063
1064 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1065
1066 * po/libc.pot: Regenerate.
1067
1068 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1069
1070 * math/libm-test-fma.inc (fma_test_data): Set
1071 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1072
1073 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1074
1075 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1076 (do_test): Changed __vector __int128_t to __vector unsigned int.
1077
1078 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1079
1080 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1081 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1082 stpcpy-avx2 and stpncpy-avx2.
1083 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1084 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1085 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1086 and __stpncpy_avx2.
1087 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1088 ifunc-strcpy.h}: rename header for a more generic name.
1089 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1090 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1091 AVX unaligned load is fast and vzeroupper is preferred.
1092 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1093 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1094 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1095 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1096 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1097 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1098
1099 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1100
1101 * argp/argp-help.c: Fix typo in comment.
1102 * misc/sys/cdefs.h: Likewise.
1103 * posix/regexec.c (sift_states_iter_mb): Likewise.
1104 * socket/sockatmark.c: Likewise.
1105 * socket/sys/socket.h: Likewise.
1106 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1107 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1108 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1109 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1110 * sysdeps/unix/sockatmark.c: Likewise.
1111 * time/strptime_l.c: Likewise.
1112
1113 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1114
1115 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1116 missing space after the cast of "_NL_CURRENT".
1117
1118 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1119
1120 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1121 ifdef to fix read of VSCR.
1122 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1123 tst-ucontext-ppc64-vscr.c to test list.
1124 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1125
1126 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1127
1128 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1129 fall-through.
1130
1131 2019-01-09 Jim Wilson <jimw@sifive.com>
1132
1133 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1134
1135 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1136
1137 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1138 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1139 __memcpy_falkor for ares.
1140 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1141 Add new define.
1142 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1143 Add ares cpu.
1144
1145 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1146
1147 [BZ #24066]
1148 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1149 4_FP_W_TYPEs are used for IEEE quad precision.
1150 * soft-fp/extendhftf2.c: Likewise.
1151 * soft-fp/extendsftf2.c: Likewise.
1152 * soft-fp/extendxftf2.c: Likewise.
1153 * soft-fp/trunctfdf2.c: Likewise.
1154 * soft-fp/trunctfhf2.c: Likewise.
1155 * soft-fp/trunctfsf2.c: Likewise.
1156 * soft-fp/trunctfxf2.c: Likewise.
1157 * sysdeps/alpha/ots_cvttx.c: Likewise.
1158 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1159 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1160 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1161 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1162 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1163 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1164 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1165 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1166 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1167 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1168 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1169 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1170 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1171 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1172 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1173 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1174 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1175
1176 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1177
1178 [BZ #24024]
1179 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1180 code with -fmath-errno.
1181 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1182 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1183 * string/test-strerror-errno.c: New file.
1184
1185 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1186
1187 [BZ #24046]
1188 * localedata/locales/en_US (date_fmt): Add, set to
1189 "%a %d %b %Y %r %Z".
1190
1191 2019-01-07 Florian Weimer <fweimer@redhat.com>
1192
1193 [BZ #24063]
1194 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1195 instead of @var{errno}.
1196 (Parsing of Integers): Likewise.
1197 (Parsing of Floats): Likewise.
1198 * manual/filesys.texi (Working with Directory Trees): Likewise.
1199 (Temporary Files): Likewise.
1200 * manual/job.texi (Terminal Access Functions): Likewise.
1201 * manual/llio.texi (Synchronizing I/O): Likewise.
1202 * manual/math.texi (SVID Random): Likewise.
1203 * manual/message.texi (The catgets Functions): Likewise.
1204 (Translation with gettext): Likewise.
1205 (Locating gettext catalog): Likewise.
1206 (Charset conversion in gettext): Likewise.
1207 * manual/nss.texi (NSS Module Function Internals): Likewise.
1208 * manual/search.texi (Hash Search Function): Likewise.
1209 * manual/setjmp.texi (System V contexts): Likewise.
1210 * manual/time.texi (Sleeping): Likewise.
1211 * manual/users.texi (Lookup User): Likewise.
1212 (Lookup Group): Likewise.
1213
1214 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1215
1216 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1217 fix typo.
1218
1219 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1220
1221 [BZ #19444]
1222 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1223 __builtin_unreachable for default case in switch.
1224 (__ieee754_yn): Likewise.
1225 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1226 (__ieee754_ynl): Likewise.
1227 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1228 (__ieee754_ynl): Likewise.
1229 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1230 (__ieee754_ynl): Likewise.
1231
1232 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1233
1234 * manual/maint.texi: Use @{ and @}.
1235
1236 2019-01-04 Florian Weimer <fweimer@redhat.com>
1237
1238 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1239 function.
1240 (do_in_chroot_1): Call it.
1241 (run_chroot_tests):
1242 Improve error reporting in case it is not possible to create a
1243 collision for the PTY name required by the test.
1244
1245 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1246
1247 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1248 lll_wait_tid with timeout.
1249 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1250 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1251 futex_reltimed_wait_cancelable for cancelabla mode.
1252 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1253 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1254 macros.
1255 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1256 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1257 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1258 SYSCALL_CANCEL_NCS): New macro.
1259 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1260 (lll_timedwait_tid): Remove macro.
1261 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1262 Likewise.
1263 (lll_timedwait_tid): Likewise.
1264 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1265 Likewise.
1266 (lll_timedwait_tid): Likewise.
1267 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1268 Likewise.
1269 (lll_timedwait_tid): Likewise.
1270 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1271 Use INTERNAL_SYSCALL_CANCEL.
1272 * sysdeps/unix/sysv/linux/futex-internal.h
1273 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1274 instead of __pthread_{enable,disable}_asynccancel.
1275 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1276 (lll_futex_wait_cancel): New macro.
1277
1278 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1279 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1280
1281 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1282 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1283
1284 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1285 in backtrace analysis.
1286 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1287 side-effects.
1288 (tf_send): Likewise.
1289
1290 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1291 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1292 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1293 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1294 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1295 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1296 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1297 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1298 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1299 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1300 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1301 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1302 Likewise.
1303 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1304 tst-cancel-wrappers.sh.
1305 (generated): Remove tst-cancel-wrappers.out.
1306 (tst-cancel-wrappers.out): Remove rule.
1307 * nptl/tst-cancel-wrappers.sh: Remove file.
1308
1309 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1310
1311 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1312 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1313 Update.
1314
1315 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1316
1317 [BZ #23640]
1318 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1319 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1320 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1321 close-on-exec reset for adddup2 file action.
1322 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1323
1324 2019-01-03 Zack Weinberg <zackw@panix.com>
1325
1326 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1327 parameter. Only use deprecated scanf when __USE_GNU is defined
1328 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1329 than 201103L, whichever is relevant for the language being compiled.
1330
1331 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1332 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1333 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1334 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1335 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1336
1337 * libio/iovsscanf.c
1338 * libio/fwscanf.c
1339 * libio/iovswscanf.c
1340 * libio/swscanf.c
1341 * libio/vscanf.c
1342 * libio/vwscanf.c
1343 * libio/wscanf.c
1344 * stdio-common/fscanf.c
1345 * stdio-common/scanf.c
1346 * stdio-common/vfscanf.c
1347 * stdio-common/vfwscanf.c
1348 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1349 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1350 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1351 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1352 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1353 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1354 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1355 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1356 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1357 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1358 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1359 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1360 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1361 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1362 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1363
1364 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1365 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1366 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1367 not sscanf.
1368 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1369 with a preprocessor macro.
1370
1371 * stdio-common/bug21.c, stdio-common/scanf14.c:
1372 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1373 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1374 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1375 to xscanf, xfscanf, xsscanf.
1376
1377 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1378 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1379 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1380 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1381 xfscanf, xsscanf.
1382 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1383 override feature selection macros or provide definitions of u_char etc.
1384 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1385 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1386 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1387 with -std=gnu89.
1388
1389 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1390
1391 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1392 bits/termios-misc.h.
1393 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1394 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1395 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1396 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1397 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1398 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1399
1400 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1401 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1402 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1403 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1404 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1405 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1406 termios-misc.h.
1407 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1408 (sysdep_headers): Add termios-misc.h.
1409
1410 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1411 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1412 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1413
1414 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1415 termios-tcflow.h.
1416 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1417 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1418 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1419 TCSAFLUSH): Move to termios-tcflow.h.
1420 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1421 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1422 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1423 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1424
1425 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1426 termios-c_lflag.h.
1427 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1428 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1429 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1430 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1431 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1432 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1433 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1434 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1435 Likewise.
1436 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1437 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1438 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1439 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1440
1441 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1442 termios-c_cflag.h.
1443 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1444 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1445 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1446 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1447 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1448 termios-c_cflag.h.
1449 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1450 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1451 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1452 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1453
1454 [BZ #23783]
1455 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1456 termios-baud.h.
1457 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1458 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1459 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1460 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1461 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1462 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1463 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1464 __MAX_BAUD): Move to termios-baud.h.
1465 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1466 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1467 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1468 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1469 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1470
1471 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1472 termios-c_oflag.h.
1473 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1474 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1475 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1476 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1477 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1478 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1479 termios-c_oflag.h.
1480 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1481 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1482 FFR1): Likewise.
1483 [USE_MISC] (XTABS): Likewise.
1484 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1485 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1486 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1487 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1488
1489 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1490 termios-c_iflag.h.
1491 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1492 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1493 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1494 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1495 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1496 IUTF8): Move to termios-c_iflag.h.
1497 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1498 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1499 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1500 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1501
1502 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1503 termios-cc.h.
1504 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1505 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1506 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1507 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1508 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1509 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1510 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1511 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1512 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1513 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1514 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1515 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1516
1517 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1518 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1519 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1520 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1521 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1522 termios-struct.h.
1523 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1524 termios-struct.h.
1525 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1526 Likewise.
1527 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1528 Likewise.
1529 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1530 Likewise.
1531 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1532 Likewise.
1533 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1534 _HAVE_C_OSPEED): Define.
1535 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1536 _HAVE_C_OSPEED): Likewise.
1537 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1538 _HAVE_C_OSPEED): Likewise.
1539 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1540 (cfsetospeed): Check for define value instead of existence.
1541 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1542 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1543 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1544 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1545 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1546
1547 [BZ #17783]
1548 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1549 Define.
1550 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1551 (TIOCSER_TEMT): Likewise.
1552 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1553 (TEOCSER_TEMT): Likewise.
1554
1555 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1556
1557 [BZ #24011]
1558 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1559
1560 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1561
1562 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1563
1564 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1565
1566 * sysdeps/htl/pt-barrierattr-setpshared.c
1567 (pthread_barrierattr_setpshared): Add stub warning.
1568 * sysdeps/htl/pt-condattr-setpshared.c
1569 (pthread_condattr_setpshared): Likewise.
1570 * sysdeps/htl/pt-mutexattr-setpshared.c
1571 (pthread_mutexattr_setpshared): Likewise.
1572 * sysdeps/htl/pt-rwlockattr-setpshared.c
1573 (pthread_rwlockattr_setpshared): Likewise.
1574 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1575 (pthread_mutexattr_setpshared): Likewise.
1576
1577 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1578
1579 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1580 constants to match with Linux 4.20.
1581
1582 * sysdeps/mips/mips32/libm-test-ulps: Update.
1583 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1584
1585 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1586
1587 [BZ #24034]
1588 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1589 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1590 than __typeof (...) for the a_ptr variable.
1591
1592 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1593
1594 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1595 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1596 * libio/Makefile (tests): Add tst-sprintf-ub and
1597 tst-sprintf-chk-ub.
1598 (CFLAGS-tst-sprintf-ub.c): New variable.
1599 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1600 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1601 destination buffer and check for overflows in fortified mode.
1602 * libio/libioP.h (PRINTF_CHK): New macro.
1603 * libio/tst-sprintf-chk-ub.c: New file.
1604 * libio/tst-sprintf-ub.c: Likewise.
1605
1606 2019-01-02 Florian Weimer <fweimer@redhat.com>
1607
1608 [BZ #24018]
1609 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1610 failure.
1611
1612 2019-01-02 Florian Weimer <fweimer@redhat.com>
1613
1614 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1615
1616 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1617
1618 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1619 macro.
1620
1621 * sysdeps/unix/sysv/linux/netpacket/packet.h
1622 (PACKET_IGNORE_OUTGOING): New macro.
1623
1624 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1625 macro.
1626
1627 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1628 version to 4.20.
1629 (riscv_flush_icache): New syscall.
1630
1631 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1632 trailing whitespace removed.
1633 * scripts/config.guess: Update to version 2019-01-01.
1634 * scripts/config.sub: Update to version 2019-01-01.
1635 * scripts/move-if-change: Update from gnulib.
1636
1637 * NEWS: Update copyright dates.
1638 * catgets/gencat.c (print_version): Likewise.
1639 * csu/version.c (banner): Likewise.
1640 * debug/catchsegv.sh: Likewise.
1641 * debug/pcprofiledump.c (print_version): Likewise.
1642 * debug/xtrace.sh (do_version): Likewise.
1643 * elf/ldconfig.c (print_version): Likewise.
1644 * elf/ldd.bash.in: Likewise.
1645 * elf/pldd.c (print_version): Likewise.
1646 * elf/sotruss.sh: Likewise.
1647 * elf/sprof.c (print_version): Likewise.
1648 * iconv/iconv_prog.c (print_version): Likewise.
1649 * iconv/iconvconfig.c (print_version): Likewise.
1650 * locale/programs/locale.c (print_version): Likewise.
1651 * locale/programs/localedef.c (print_version): Likewise.
1652 * login/programs/pt_chown.c (print_version): Likewise.
1653 * malloc/memusage.sh (do_version): Likewise.
1654 * malloc/memusagestat.c (print_version): Likewise.
1655 * malloc/mtrace.pl: Likewise.
1656 * manual/libc.texinfo: Likewise.
1657 * nptl/version.c (banner): Likewise.
1658 * nscd/nscd.c (print_version): Likewise.
1659 * nss/getent.c (print_version): Likewise.
1660 * nss/makedb.c (print_version): Likewise.
1661 * posix/getconf.c (main): Likewise.
1662 * scripts/test-installation.pl: Likewise.
1663 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1664
1665 * All files with FSF copyright notices: Update copyright dates
1666 using scripts/update-copyrights.
1667 * locale/programs/charmap-kw.h: Regenerated.
1668 * locale/programs/locfile-kw.h: Likewise.
1669
1670 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1671
1672 * timezone/zdump.c: Update from tzcode 2018i.
1673 * timezone/zic.c: Likewise.
1674
1675 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1676
1677 regex: improve Gnulib port to AIX
1678 From the glibc point of view, this removes duplicate macro
1679 definitions and is obviously safe.
1680 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1681 * posix/regex_internal.h:
1682 (__attribute__, __attribute_warn_unused_result__):
1683 Remove; already defined elsewhere.
1684
1685 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1686
1687 [BZ #24027]
1688 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1689 copying operation. (ncopies had the wrong type, resulting in an
1690 integer wraparound and too few elements being copied.)
1691
1692 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1693
1694 [BZ #24022]
1695 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1696 <asm/syscalls.h> exists with __has_include__ before including it.
1697
1698 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1699
1700 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1701 version to 4.20.
1702
1703 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1704
1705 * hurd/lookup-retry: Include <unistd.h>.
1706 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1707 Release it on return. Handle "pid" magical lookup retry.
1708
1709 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1710
1711 [BZ #10496]
1712 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1713 (t_fmt_ampm): Likewise.
1714 * localedata/locales/aa_ER (t_fmt): Likewise.
1715 (t_fmt_ampm): Likewise.
1716 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1717 (t_fmt_ampm): Likewise.
1718 * localedata/locales/aa_ET (t_fmt): Likewise.
1719 (t_fmt_ampm): Likewise.
1720 * localedata/locales/am_ET (t_fmt): Likewise.
1721 (t_fmt_ampm): Likewise.
1722 * localedata/locales/byn_ER (t_fmt): Likewise.
1723 (t_fmt_ampm): Likewise.
1724 * localedata/locales/om_ET (t_fmt): Likewise.
1725 (t_fmt_ampm): Likewise.
1726 * localedata/locales/sid_ET (t_fmt): Likewise.
1727 (t_fmt_ampm): Likewise.
1728 * localedata/locales/so_DJ (t_fmt): Likewise.
1729 (t_fmt_ampm): Likewise.
1730 * localedata/locales/so_ET (t_fmt): Likewise.
1731 (t_fmt_ampm): Likewise.
1732 * localedata/locales/so_SO (t_fmt): Likewise.
1733 (t_fmt_ampm): Likewise.
1734 * localedata/locales/ti_ER (t_fmt): Likewise.
1735 (t_fmt_ampm): Likewise.
1736 * localedata/locales/ti_ET (t_fmt): Likewise.
1737 (t_fmt_ampm): Likewise.
1738 * localedata/locales/tig_ER (t_fmt): Likewise.
1739 (t_fmt_ampm): Likewise.
1740 * localedata/locales/wal_ET (t_fmt): Likewise.
1741 (t_fmt_ampm): Likewise.
1742
1743 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1744 * localedata/locales/ar_IN (t_fmt): Likewise.
1745 * localedata/locales/bhb_IN (t_fmt): Likewise.
1746 * localedata/locales/bho_IN (t_fmt): Likewise.
1747 * localedata/locales/bi_VU (t_fmt): Likewise.
1748 * localedata/locales/bn_BD (t_fmt): Likewise.
1749 * localedata/locales/bn_IN (t_fmt): Likewise.
1750 * localedata/locales/brx_IN (t_fmt): Likewise.
1751 * localedata/locales/doi_IN (t_fmt): Likewise.
1752 * localedata/locales/en_HK (t_fmt): Likewise.
1753 (t_fmt_ampm): Likewise.
1754 * localedata/locales/en_IN (t_fmt): Likewise.
1755 * localedata/locales/en_PH (t_fmt): Likewise.
1756 * localedata/locales/gu_IN (t_fmt): Likewise.
1757 * localedata/locales/hi_IN (t_fmt): Likewise.
1758 * localedata/locales/hif_FJ (t_fmt): Likewise.
1759 * localedata/locales/hne_IN (t_fmt): Likewise.
1760 * localedata/locales/kn_IN (t_fmt): Likewise.
1761 * localedata/locales/kok_IN (t_fmt): Likewise.
1762 * localedata/locales/ks_IN (t_fmt): Likewise.
1763 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1764 * localedata/locales/mag_IN (t_fmt): Likewise.
1765 * localedata/locales/mai_IN (t_fmt): Likewise.
1766 * localedata/locales/mjw_IN (t_fmt): Likewise.
1767 * localedata/locales/ml_IN (t_fmt): Likewise.
1768 * localedata/locales/mni_IN (t_fmt): Likewise.
1769 * localedata/locales/mr_IN (t_fmt): Likewise.
1770 * localedata/locales/ms_MY (t_fmt): Likewise.
1771 * localedata/locales/pa_IN (t_fmt): Likewise.
1772 * localedata/locales/raj_IN (t_fmt): Likewise.
1773 * localedata/locales/sa_IN (t_fmt): Likewise.
1774 * localedata/locales/sat_IN (t_fmt): Likewise.
1775 * localedata/locales/sd_IN (t_fmt): Likewise.
1776 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1777 * localedata/locales/tcy_IN (t_fmt): Likewise.
1778 * localedata/locales/the_NP (t_fmt): Likewise.
1779 * localedata/locales/to_TO (t_fmt): Likewise.
1780 * localedata/locales/ur_IN (t_fmt): Likewise.
1781
1782 * localedata/locales/hif_FJ (d_t_fmt): Set to
1783 "%A %d %b %Y %I:%M:%S %p".
1784 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1785
1786 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1787 * localedata/locales/ar_BH (t_fmt): Likewise.
1788 * localedata/locales/ar_DZ (t_fmt): Likewise.
1789 * localedata/locales/ar_EG (t_fmt): Likewise.
1790 * localedata/locales/ar_IQ (t_fmt): Likewise.
1791 * localedata/locales/ar_JO (t_fmt): Likewise.
1792 * localedata/locales/ar_KW (t_fmt): Likewise.
1793 * localedata/locales/ar_LB (t_fmt): Likewise.
1794 * localedata/locales/ar_LY (t_fmt): Likewise.
1795 * localedata/locales/ar_OM (t_fmt): Likewise.
1796 * localedata/locales/ar_QA (t_fmt): Likewise.
1797 * localedata/locales/ar_SD (t_fmt): Likewise.
1798 * localedata/locales/ar_SS (t_fmt): Likewise.
1799 * localedata/locales/ar_SY (t_fmt): Likewise.
1800 * localedata/locales/ar_TN (t_fmt): Likewise.
1801 * localedata/locales/ar_YE (t_fmt): Likewise.
1802
1803 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1804 (t_fmt_ampm): Likewise.
1805 * localedata/locales/gez_ET (t_fmt): Likewise.
1806 (t_fmt_ampm): Likewise.
1807
1808 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1809 (t_fmt_ampm): Likewise.
1810 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1811
1812 * localedata/locales/zh_HK (t_fmt):
1813 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1814
1815 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1816 because this locale does not use the 12-hour clock.
1817 (t_fmt): Set to "%Z %H:%M:%S".
1818 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1819
1820 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1821 because this locale does not use the 12-hour clock.
1822 (t_fmt): Set to "%H:%M:%S %Z".
1823 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1824
1825 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1826 because this locale does not use the 12-hour clock.
1827 (t_fmt): Set to "%T".
1828 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1829 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1830
1831 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1832 because this locale does not use the 12-hour clock.
1833 (t_fmt): Set to "%H:%M:%S %Z".
1834 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1835
1836 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1837 because this locale does not use the 12-hour clock.
1838 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1839 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1840
1841 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1842
1843 [BZ #10496]
1844 [BZ #23724]
1845 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1846 (t_fmt_ampm): Likewise.
1847 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1848 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1849 (d_fmt): Set to "%-d.%-m.%y".
1850
1851 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1852
1853 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1854 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1855 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1856 Likewise.
1857 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1858 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1859 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1860 function.
1861 * support/blob_repeat.c (check_mul_overflow_size_t,
1862 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1863
1864 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1865
1866 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1867
1868 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1869
1870 regex: simplify Gnulib port
1871 This simplifies the code, by removing stuff intended for porting
1872 to Gnulib but no longer needed there.
1873 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1874 uses of libc_hidden_def, weak_alias.
1875 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1876 _Restrict_ except for public-facing headers.
1877 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1878 Remove; already defined elsewhere.
1879 * posix/regex.c, posix/regex_internal.h:
1880 Use __GNUC_PREREQ instead of rolling our own.
1881 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1882
1883 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1884
1885 * benchtests/bench-strlen.c (generic_strlen): New function.
1886 (memchr_strlen): New function.
1887
1888 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1889
1890 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1891 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1892 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1893
1894 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1895
1896 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1897
1898 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1899
1900 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1901 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1902 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1903 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1904 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1905 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1906 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1907
1908 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1909
1910 [BZ #24023]
1911 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1912 PLT reference in libc.so.
1913 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1914 _Q_lltoq and _Q_qtod PLT references in libc.so.
1915
1916 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1917
1918 * benchtests/bench-memchr.c: Cleanup defines.
1919 * benchtests/bench-memcmp.c: Likewise.
1920 * benchtests/bench-memset.c: Likewise.
1921 * benchtests/bench-memset-large.c: Likewise.
1922 * benchtests/bench-memset-walk.c: Likewise.
1923 * benchtests/bench-stpcpy.c: Likewise.
1924 * benchtests/bench-stpncpy.c: Likewise.
1925 * benchtests/bench-strcat.c: Likewise.
1926 * benchtests/bench-strchr.c: Likewise.
1927 * benchtests/bench-strcmp.c: Likewise.
1928 * benchtests/bench-strcpy.c: Likewise.
1929 * benchtests/bench-strcspn.c: Likewise.
1930 * benchtests/bench-string.h: Likewise.
1931 * benchtests/bench-strlen.c: Likewise.
1932 * benchtests/bench-strncat.c: Likewise.
1933 * benchtests/bench-strncmp.c: Likewise.
1934 * benchtests/bench-strncpy.c: Likewise.
1935 * benchtests/bench-strnlen.c: Likewise.
1936 * benchtests/bench-strpbrk.c: Likewise.
1937 * benchtests/bench-strrchr.c: Likewise.
1938 * benchtests/bench-strspn.c: Likewise.
1939
1940 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1941
1942 * stdlib/longlong.h: Update from GCC.
1943
1944 [BZ #23993]
1945 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1946 * configure: Regenerated.
1947 * manual/install.texi (Tools for Compilation): Update minimum GCC
1948 version.
1949 * INSTALL: Regenerated.
1950
1951 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1952
1953 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1954
1955 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1956
1957 * malloc/malloc.c (mremap_chunk): Additional checks.
1958
1959 2018-12-21 Mao Han <han_mao@c-sky.com>
1960
1961 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1962 * scripts/build-many-glibcs.py: Add C-SKY targets.
1963 * sysdeps/csky/Implies: New file.
1964 * sysdeps/csky/Makefile: Likewise.
1965 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1966 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1967 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1968 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1969 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1970 * sysdeps/csky/abiv2/memmove.S: Likewise.
1971 * sysdeps/csky/abiv2/memset.S: Likewise.
1972 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1973 * sysdeps/csky/abiv2/start.S: Likewise.
1974 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1975 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1976 * sysdeps/csky/abiv2/strlen.S: Likewise.
1977 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1978 * sysdeps/csky/abort-instr.h: Likewise.
1979 * sysdeps/csky/atomic-machine.h: Likewise.
1980 * sysdeps/csky/bits/endian.h: Likewise.
1981 * sysdeps/csky/bits/fenv.h: Likewise.
1982 * sysdeps/csky/bits/link.h: Likewise.
1983 * sysdeps/csky/bits/setjmp.h: Likewise.
1984 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1985 * sysdeps/csky/bsd-setjmp.S: Likewise.
1986 * sysdeps/csky/configure: Likewise.
1987 * sysdeps/csky/configure.ac: Likewise.
1988 * sysdeps/csky/dl-machine.h: Likewise.
1989 * sysdeps/csky/dl-procinfo.c: Likewise.
1990 * sysdeps/csky/dl-procinfo.h: Likewise.
1991 * sysdeps/csky/dl-sysdep.h: Likewise.
1992 * sysdeps/csky/dl-tls.h: Likewise.
1993 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1994 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1995 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1996 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1997 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1998 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1999 * sysdeps/csky/fpu/fegetround.c: Likewise.
2000 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2001 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2002 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2003 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2004 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2005 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2006 * sysdeps/csky/fpu/fesetround.c: Likewise.
2007 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2008 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2009 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2010 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2011 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2012 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2013 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2014 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2015 * sysdeps/csky/fpu_control.h: Likewise.
2016 * sysdeps/csky/gccframe.h: Likewise.
2017 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2018 * sysdeps/csky/ldsodefs.h: Likewise.
2019 * sysdeps/csky/libc-tls.c: Likewise.
2020 * sysdeps/csky/linkmap.h: Likewise.
2021 * sysdeps/csky/machine-gmon.h: Likewise.
2022 * sysdeps/csky/memusage.h: Likewise.
2023 * sysdeps/csky/nofpu/Implies: Likewise.
2024 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2025 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2026 * sysdeps/csky/nptl/Makefile: Likewise.
2027 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2028 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2029 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2030 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2031 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2032 * sysdeps/csky/nptl/tls.h: Likewise.
2033 * sysdeps/csky/preconfigure: Likewise.
2034 * sysdeps/csky/sfp-machine.h: Likewise.
2035 * sysdeps/csky/sotruss-lib.c: Likewise.
2036 * sysdeps/csky/stackinfo.h: Likewise.
2037 * sysdeps/csky/sysdep.h: Likewise.
2038 * sysdeps/csky/tininess.h: Likewise.
2039 * sysdeps/csky/tst-audit.h: Likewise.
2040 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2041 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2042 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2043 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2044 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2045 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2046 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2047 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2048 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2049 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2050 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2051 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2052 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2053 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2054 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2067 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2068 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2069 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2070 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2071 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2072 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2073 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2074 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2075 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2076 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2077 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2078 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2079 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2080 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2081 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2082 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2083 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2084
2085 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2086
2087 * include/time.h (__difftime64): Add.
2088 * time/difftime.c (subtract): convert to 64-bit time.
2089 * time/difftime.c (__difftime64): Add.
2090 * time/difftime.c (__difftime): Wrap around __difftime64.
2091
2092 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2093
2094 * manual/examples/add.c: Remove redundant "if not".
2095 * manual/examples/argp-ex1.c: Likewise.
2096 * manual/examples/argp-ex2.c: Likewise.
2097 * manual/examples/argp-ex3.c: Likewise.
2098 * manual/examples/argp-ex4.c: Likewise.
2099 * manual/examples/atexit.c: Likewise.
2100 * manual/examples/db.c: Likewise.
2101 * manual/examples/dir.c: Likewise.
2102 * manual/examples/dir2.c: Likewise.
2103 * manual/examples/execinfo.c: Likewise.
2104 * manual/examples/filecli.c: Likewise.
2105 * manual/examples/filesrv.c: Likewise.
2106 * manual/examples/fmtmsgexpl.c: Likewise.
2107 * manual/examples/genpass.c: Likewise.
2108 * manual/examples/inetcli.c: Likewise.
2109 * manual/examples/inetsrv.c: Likewise.
2110 * manual/examples/isockad.c: Likewise.
2111 * manual/examples/longopt.c: Likewise.
2112 * manual/examples/memopen.c: Likewise.
2113 * manual/examples/memstrm.c: Likewise.
2114 * manual/examples/mkdirent.c: Likewise.
2115 * manual/examples/mkfsock.c: Likewise.
2116 * manual/examples/mkisock.c: Likewise.
2117 * manual/examples/mygetpass.c: Likewise.
2118 * manual/examples/pipe.c: Likewise.
2119 * manual/examples/popen.c: Likewise.
2120 * manual/examples/rprintf.c: Likewise.
2121 * manual/examples/search.c: Likewise.
2122 * manual/examples/select.c: Likewise.
2123 * manual/examples/setjmp.c: Likewise.
2124 * manual/examples/sigh1.c: Likewise.
2125 * manual/examples/sigusr.c: Likewise.
2126 * manual/examples/stpcpy.c: Likewise.
2127 * manual/examples/strdupa.c: Likewise.
2128 * manual/examples/strftim.c: Likewise.
2129 * manual/examples/subopt.c: Likewise.
2130 * manual/examples/swapcontext.c: Likewise.
2131 * manual/examples/termios.c: Likewise.
2132 * manual/examples/testopt.c: Likewise.
2133 * manual/examples/testpass.c: Likewise.
2134 * manual/examples/timeval_subtract.c: Likewise.
2135
2136 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2137
2138 * sysdeps/x86/fpu/math_private.h: New file.
2139 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2140
2141 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2142 definition.
2143 (cosh): Likewise.
2144 (tanh): Likewise.
2145
2146 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2147
2148 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2149 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2150 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2151 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2152 fields.
2153 (_dl_show_auxv): Give a special treatment to
2154 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2155 and AT_L3_CACHEGEOMETRY.
2156 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2157 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2158 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2159 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2160
2161 2018-12-19 Andreas Schwab <schwab@suse.de>
2162
2163 * nscd/connections.c (check_use): Don't abort on invalid len.
2164
2165 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2166
2167 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2168 values in the 64bit value cases.
2169
2170 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2171
2172 * include/time.h
2173 (__ctime64_r): Add.
2174 * time/ctime_r.c
2175 (__ctime64_r): Add.
2176 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2177
2178 * include/time.h
2179 (__ctime64): Add.
2180 * time/gmtime.c
2181 (__ctime64): Add.
2182 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2183
2184 * include/time.h
2185 (__gmtime64_r): Add.
2186 * time/gmtime.c
2187 (__gmtime64_r): Add.
2188 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2189
2190 * include/time.h
2191 (__gmtime64): Add.
2192 * time/gmtime.c
2193 (__gmtime64): Add.
2194 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2195
2196 * include/time.h
2197 (__localtime64_r): Add.
2198 * time/localtime.c
2199 (__localtime64_r): Add.
2200 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2201
2202 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2203
2204 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2205 kernel_sigction definition.
2206
2207 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2208
2209 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2210
2211 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2212 __syscall_rt_sigaction.
2213 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2214 (kernel_sigaction): Use Linux generic defintion.
2215 (STUB): Define.
2216 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2217 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2218 (__syscall_rt_sigaction): Remove implementation.
2219 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2220 hidden.
2221 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2222 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2223 INTERNAL_SYSCALL): Remove definitions.
2224 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2225 action and signal set size.
2226 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2227 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2228
2229 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2230 James Clarke <jrtc27@jrtc27.com>
2231
2232 [BZ #23967]
2233 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2234 Define if SA_RESTORER is defined.
2235 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2236 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2237 already defined.
2238 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2239 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2240 definitions.
2241 (HAS_SA_RESTORER): Define.
2242 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2243 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2244 (HAS_SA_RESTORER): Define.
2245 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2246 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2247 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2248 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2249 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2250
2251 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2252
2253 * sysdeps/unix/sysv/linux/kernel-features.h
2254 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2255 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2256 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2257 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2258 (__ASSUME_ST_INO_64_BIT): Likewise.
2259 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2260 <kernel-features.h>.
2261 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2262 Remove conditional code.
2263 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2264 <kernel-features.h>.
2265 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2266 Remove conditional code.
2267 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2268 <kernel-features.h>.
2269 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2270 Remove conditional code.
2271 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2272 <kernel-features.h>.
2273 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2274 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2275
2276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2277
2278 * sysdeps/s390/multiarch/ifunc-resolve.h
2279 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2280 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2281 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2282 Delete macro definition.
2283 (s390_libc_ifunc_init): Rename to
2284 s390_libc_ifunc_expr_stfle_init.
2285 * sysdeps/s390/bzero: Use
2286 s390_libc_ifunc_expr_stfle_init instead of
2287 s390_libc_ifunc_init.
2288 * sysdeps/s390/memcmp.c: Likewise.
2289 * sysdeps/s390/memcpy.c: Likewise.
2290 * sysdeps/s390/mempcpy.c: Likewise.
2291 * sysdeps/s390/memset.c: Likewise.
2292
2293 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2294
2295 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2296 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2297
2298 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2299
2300 * sysdeps/s390/multiarch/Makefile
2301 (sysdep_routines): Remove wmemcmp variants.
2302 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2303 * sysdeps/s390/multiarch/ifunc-impl-list.c
2304 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2305 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2306 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2307 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2308 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2309 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2310 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2311 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2312
2313 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2314
2315 * sysdeps/s390/multiarch/Makefile
2316 (sysdep_routines): Remove wmemset variants.
2317 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2318 * sysdeps/s390/multiarch/ifunc-impl-list.c
2319 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2320 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2321 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2322 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2323 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2324 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2325 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2326 * sysdeps/s390/ifunc-wmemset.h: New file.
2327
2328 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2329
2330 * sysdeps/s390/multiarch/Makefile
2331 (sysdep_routines): Remove wmemchr variants.
2332 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2333 * sysdeps/s390/multiarch/ifunc-impl-list.c
2334 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2335 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2336 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2337 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2338 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2339 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2340 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2341 * sysdeps/s390/ifunc-wmemchr.h: New file.
2342
2343 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2344
2345 * sysdeps/s390/multiarch/Makefile
2346 (sysdep_routines): Remove wcscspn variants.
2347 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2348 * sysdeps/s390/multiarch/ifunc-impl-list.c
2349 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2350 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2351 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2352 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2353 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2354 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2355 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2356 * sysdeps/s390/ifunc-wcscspn.h: New file.
2357
2358 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2359
2360 * sysdeps/s390/multiarch/Makefile
2361 (sysdep_routines): Remove wcspbrk variants.
2362 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2363 * sysdeps/s390/multiarch/ifunc-impl-list.c
2364 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2365 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2366 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2367 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2368 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2369 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2370 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2371 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2372
2373 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2374
2375 * sysdeps/s390/multiarch/Makefile
2376 (sysdep_routines): Remove wcsspn variants.
2377 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2378 * sysdeps/s390/multiarch/ifunc-impl-list.c
2379 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2380 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2381 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2382 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2383 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2384 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2385 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2386 * sysdeps/s390/ifunc-wcsspn.h: New file.
2387
2388 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2389
2390 * sysdeps/s390/multiarch/Makefile
2391 (sysdep_routines): Remove wcsrchr variants.
2392 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2393 * sysdeps/s390/multiarch/ifunc-impl-list.c
2394 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2395 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2396 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2397 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2398 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2399 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2400 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2401 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2402
2403 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2404
2405 * sysdeps/s390/multiarch/Makefile
2406 (sysdep_routines): Remove wcschrnul variants.
2407 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2408 * sysdeps/s390/multiarch/ifunc-impl-list.c
2409 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2410 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2411 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2412 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2413 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2414 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2415 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2416 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2417
2418 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2419
2420 * sysdeps/s390/multiarch/Makefile
2421 (sysdep_routines): Remove wcschr variants.
2422 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2423 * sysdeps/s390/multiarch/ifunc-impl-list.c
2424 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2425 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2426 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2427 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2428 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2429 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2430 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2431 * sysdeps/s390/ifunc-wcschr.h: New file.
2432
2433 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2434
2435 * sysdeps/s390/multiarch/Makefile
2436 (sysdep_routines): Remove wcsncmp variants.
2437 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2438 * sysdeps/s390/multiarch/ifunc-impl-list.c
2439 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2440 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2441 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2442 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2443 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2444 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2445 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2446 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2447
2448 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2449
2450 * sysdeps/s390/multiarch/Makefile
2451 (sysdep_routines): Remove wcscmp variants.
2452 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2453 * sysdeps/s390/multiarch/ifunc-impl-list.c
2454 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2455 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2456 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2457 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2458 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2459 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2460 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2461 * sysdeps/s390/ifunc-wcscmp.h: New file.
2462
2463 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2464
2465 * sysdeps/s390/multiarch/Makefile
2466 (sysdep_routines): Remove wcsncat variants.
2467 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2468 * sysdeps/s390/multiarch/ifunc-impl-list.c
2469 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2470 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2471 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2472 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2473 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2474 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2475 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2476 * sysdeps/s390/ifunc-wcsncat.h: New file.
2477
2478 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2479
2480 * sysdeps/s390/multiarch/Makefile
2481 (sysdep_routines): Remove wcscat variants.
2482 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2483 * sysdeps/s390/multiarch/ifunc-impl-list.c
2484 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2485 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2486 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2487 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2488 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2489 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2490 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2491 * sysdeps/s390/ifunc-wcscat.h: New file.
2492
2493 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2494
2495 * sysdeps/s390/multiarch/Makefile
2496 (sysdep_routines): Remove wcpncpy variants.
2497 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2498 * sysdeps/s390/multiarch/ifunc-impl-list.c
2499 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2500 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2501 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2502 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2503 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2504 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2505 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2506 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2507
2508 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2509
2510 * sysdeps/s390/multiarch/Makefile
2511 (sysdep_routines): Remove wcsncpy variants.
2512 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2513 * sysdeps/s390/multiarch/ifunc-impl-list.c
2514 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2515 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2516 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2517 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2518 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2519 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2520 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2521 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2522
2523 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2524
2525 * sysdeps/s390/multiarch/Makefile
2526 (sysdep_routines): Remove wcpcpy variants.
2527 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2528 * sysdeps/s390/multiarch/ifunc-impl-list.c
2529 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2530 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2531 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2532 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2533 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2534 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2535 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2536 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2537
2538 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2539
2540 * sysdeps/s390/multiarch/Makefile
2541 (sysdep_routines): Remove wcscpy variants.
2542 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2543 * sysdeps/s390/multiarch/ifunc-impl-list.c
2544 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2545 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2546 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2547 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2548 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2549 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2550 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2551 * sysdeps/s390/ifunc-wcscpy.h: New file.
2552
2553 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2554
2555 * sysdeps/s390/multiarch/Makefile
2556 (sysdep_routines): Remove wcsnlen variants.
2557 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2558 * sysdeps/s390/multiarch/ifunc-impl-list.c
2559 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2560 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2561 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2562 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2563 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2564 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2565 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2566 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2567
2568 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2569
2570 * sysdeps/s390/multiarch/Makefile
2571 (sysdep_routines): Remove wcslen variants.
2572 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2573 * sysdeps/s390/multiarch/ifunc-impl-list.c
2574 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2575 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2576 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2577 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2578 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2579 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2580 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2581 * sysdeps/s390/ifunc-wcslen.h: New file.
2582
2583 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2584
2585 * sysdeps/s390/multiarch/Makefile
2586 (sysdep_routines): Remove memrchr variants.
2587 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2588 * sysdeps/s390/multiarch/ifunc-impl-list.c
2589 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2590 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2591 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2592 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2593 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2594 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2595 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2596 * sysdeps/s390/ifunc-memrchr.h: New file.
2597
2598 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2599
2600 * sysdeps/s390/multiarch/Makefile
2601 (sysdep_routines): Remove memccpy variants.
2602 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2603 * sysdeps/s390/multiarch/ifunc-impl-list.c
2604 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2605 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2606 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2607 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2608 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2609 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2610 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2611 * sysdeps/s390/ifunc-memccpy.h: New file.
2612
2613 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2614
2615 * sysdeps/s390/multiarch/Makefile
2616 (sysdep_routines): Remove rawmemchr variants.
2617 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2618 * sysdeps/s390/multiarch/ifunc-impl-list.c
2619 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2620 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2621 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2623 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2624 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2625 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2626 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2627
2628 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2629
2630 * sysdeps/s390/multiarch/Makefile
2631 (sysdep_routines): Remove memchr variants.
2632 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2633 * sysdeps/s390/multiarch/ifunc-impl-list.c
2634 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2635 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2636 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2637 * sysdeps/s390/multiarch/memchr.c: Move to ...
2638 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2639 * sysdeps/s390/ifunc-memchr.h: New file.
2640 * sysdeps/s390/s390-64/memchr.S: Move to ...
2641 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2642 for 31/64bit and ifunc handling.
2643 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2644 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2645 * sysdeps/s390/s390-32/memchr.S: Likewise.
2646
2647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2648
2649 * sysdeps/s390/multiarch/Makefile
2650 (sysdep_routines): Remove strcspn variants.
2651 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2652 * sysdeps/s390/multiarch/ifunc-impl-list.c
2653 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2654 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2655 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2656 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2657 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2658 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2659 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2660 * sysdeps/s390/ifunc-strcspn.h: New file.
2661
2662 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2663
2664 * sysdeps/s390/multiarch/Makefile
2665 (sysdep_routines): Remove strpbrk variants.
2666 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2667 * sysdeps/s390/multiarch/ifunc-impl-list.c
2668 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2669 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2670 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2671 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2672 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2673 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2674 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2675 * sysdeps/s390/ifunc-strpbrk.h: New file.
2676
2677 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2678
2679 * sysdeps/s390/multiarch/Makefile
2680 (sysdep_routines): Remove strspn variants.
2681 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2682 * sysdeps/s390/multiarch/ifunc-impl-list.c
2683 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2684 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2685 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2686 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2687 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2688 * sysdeps/s390/multiarch/strspn.c: Move to ...
2689 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2690 * sysdeps/s390/ifunc-strspn.h: New file.
2691
2692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2693
2694 * sysdeps/s390/multiarch/Makefile
2695 (sysdep_routines): Remove strrchr variants.
2696 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2697 * sysdeps/s390/multiarch/ifunc-impl-list.c
2698 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2699 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2700 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2701 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2702 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2703 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2704 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2705 * sysdeps/s390/ifunc-strrchr.h: New file.
2706
2707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2708
2709 * sysdeps/s390/multiarch/Makefile
2710 (sysdep_routines): Remove strchrnul variants.
2711 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2712 * sysdeps/s390/multiarch/ifunc-impl-list.c
2713 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2714 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2715 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2716 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2717 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2718 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2719 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2720 * sysdeps/s390/ifunc-strchrnul.h: New file.
2721
2722 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2723
2724 * sysdeps/s390/multiarch/Makefile
2725 (sysdep_routines): Remove strchr variants.
2726 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2727 * sysdeps/s390/multiarch/ifunc-impl-list.c
2728 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2729 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2730 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2731 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2732 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2733 * sysdeps/s390/multiarch/strchr.c: Move to ...
2734 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2735 * sysdeps/s390/ifunc-strchr.h: New file.
2736
2737 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2738
2739 * sysdeps/s390/multiarch/Makefile
2740 (sysdep_routines): Remove strncmp variants.
2741 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2742 * sysdeps/s390/multiarch/ifunc-impl-list.c
2743 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2744 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2745 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2747 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2748 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2749 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2750 * sysdeps/s390/ifunc-strncmp.h: New file.
2751
2752 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2753
2754 * sysdeps/s390/multiarch/Makefile
2755 (sysdep_routines): Remove strcmp variants.
2756 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2757 * sysdeps/s390/multiarch/ifunc-impl-list.c
2758 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2759 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2760 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2761 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2762 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2763 * sysdeps/s390/ifunc-strcmp.h: New file.
2764 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2765 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2766 for 31/64bit and ifunc handling.
2767 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2768 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2769 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2770
2771 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2772
2773 * sysdeps/s390/multiarch/Makefile
2774 (sysdep_routines): Remove strncat variants.
2775 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2776 * sysdeps/s390/multiarch/ifunc-impl-list.c
2777 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2778 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2779 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2780 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2781 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2782 * sysdeps/s390/multiarch/strncat.c: Move to ...
2783 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2784 * sysdeps/s390/ifunc-strncat.h: New file.
2785
2786 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2787
2788 * sysdeps/s390/multiarch/Makefile
2789 (sysdep_routines): Remove strcat variants.
2790 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2791 * sysdeps/s390/multiarch/ifunc-impl-list.c
2792 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2793 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2794 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2795 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2796 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2797 * sysdeps/s390/multiarch/strcat.c: Move to ...
2798 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2799 * sysdeps/s390/ifunc-strcat.h: New file.
2800
2801 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2802
2803 * sysdeps/s390/multiarch/Makefile
2804 (sysdep_routines): Remove stpncpy variants.
2805 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2806 * sysdeps/s390/multiarch/ifunc-impl-list.c
2807 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2808 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2809 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2810 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2811 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2812 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2813 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2814 * sysdeps/s390/ifunc-stpncpy.h: New file.
2815
2816 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2817
2818 * sysdeps/s390/multiarch/Makefile
2819 (sysdep_routines): Remove strncpy variants.
2820 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2821 * sysdeps/s390/multiarch/ifunc-impl-list.c
2822 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2823 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2824 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2825 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2826 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2827 * sysdeps/s390/ifunc-strncpy.h: New file.
2828 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2829 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2830 and adjust ifunc handling.
2831 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2832 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2833 and adjust ifunc handling.
2834 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2835 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2836
2837 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2838
2839 * sysdeps/s390/multiarch/Makefile
2840 (sysdep_routines): Remove stpcpy variants.
2841 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2842 * sysdeps/s390/multiarch/ifunc-impl-list.c
2843 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2844 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2845 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2846 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2847 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2848 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2849 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2850 * sysdeps/s390/ifunc-stpcpy.h: New file.
2851
2852 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2853
2854 * sysdeps/s390/multiarch/Makefile
2855 (sysdep_routines): Remove strcpy variants.
2856 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2857 * sysdeps/s390/multiarch/ifunc-impl-list.c
2858 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2859 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2860 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2861 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2862 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2863 * sysdeps/s390/ifunc-strcpy.h: New file.
2864 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2865 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2866 for 31/64bit and ifunc handling.
2867 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2868 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2869 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2870
2871 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2872
2873 * sysdeps/s390/multiarch/Makefile
2874 (sysdep_routines): Remove strnlen variants.
2875 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2876 * sysdeps/s390/multiarch/ifunc-impl-list.c
2877 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2878 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2879 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2880 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2881 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2882 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2883 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2884 * sysdeps/s390/ifunc-strnlen.h: New file.
2885
2886 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2887
2888 * sysdeps/s390/multiarch/Makefile
2889 (sysdep_routines): Remove strlen variants.
2890 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2891 * sysdeps/s390/multiarch/ifunc-impl-list.c
2892 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2893 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2894 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2895 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2896 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2897 * sysdeps/s390/multiarch/strlen.c: Move to ...
2898 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2899 * sysdeps/s390/ifunc-strlen.h: New file.
2900
2901 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2902
2903 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2904 * sysdeps/s390/multiarch/ifunc-impl-list.c
2905 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2906 * sysdeps/s390/ifunc-memmem.h: New file.
2907 * sysdeps/s390/memmem.c: Likewise.
2908 * sysdeps/s390/memmem-c.c: Likewise.
2909 * sysdeps/s390/memmem-vx.c: Likewise.
2910
2911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2912
2913 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2914 * sysdeps/s390/multiarch/ifunc-impl-list.c
2915 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2916 * sysdeps/s390/ifunc-strstr.h: New file.
2917 * sysdeps/s390/strstr.c: Likewise.
2918 * sysdeps/s390/strstr-c.c: Likewise.
2919 * sysdeps/s390/strstr-vx.c: Likewise.
2920
2921 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2922
2923 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2924 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2925 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2926 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2927 New defines.
2928 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2929 * sysdeps/s390/memmove-c.c: New file.
2930 * sysdeps/s390/memmove.c: Likewise.
2931 * sysdeps/s390/multiarch/ifunc-impl-list.c
2932 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2933
2934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2935
2936 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2937 * sysdeps/s390/configure.ac: Add check for z13 support.
2938 * sysdeps/s390/configure: Regenerated.
2939
2940 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2941
2942 * sysdeps/s390/memcopy.h: New file.
2943
2944 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2945
2946 * sysdeps/s390/s390-32/bcopy.S: Remove.
2947 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2948
2949 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * sysdeps/s390/ifunc-memcpy.h: New File.
2952 * sysdeps/s390/memcpy.S: Move to ...
2953 * sysdeps/s390/memcpy-z900.S ... here.
2954 Move implementations from memcpy-s390x.s to here.
2955 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2956 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2957 Remove memcpy/mempcpy variants.
2958 * sysdeps/s390/Makefile (sysdep_routines):
2959 Add memcpy/mempcpy variants.
2960 * sysdeps/s390/multiarch/ifunc-impl-list.c
2961 (__libc_ifunc_impl_list): Adjust ifunc variants for
2962 memcpy and mempcpy.
2963 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2964 to ...
2965 * sysdeps/s390/memcpy.c: ... here.
2966 Adjust ifunc variants for memcpy.
2967 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2968 * sysdeps/s390/mempcpy.c: ... here.
2969 Adjust ifunc variants for mempcpy.
2970 * sysdeps/s390/mempcpy.S: Delete file.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2975 * sysdeps/s390/memcpy.S: ... here.
2976 Adjust to be usable for 31/64bit.
2977 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2978 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2979 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2980 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2981 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2982 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2983 Adjust to be usable for 31/64bit.
2984 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2985 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2986 * sysdeps/s390/multiarch/memcpy.c: ... here.
2987 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2988
2989 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2990
2991 * sysdeps/s390/ifunc-memcmp.h: New File.
2992 * sysdeps/s390/memcmp.S: Move to ...
2993 * sysdeps/s390/memcmp-z900.S ... here.
2994 Move implementations from memcmp-s390x.s to here.
2995 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2996 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2997 Remove memcmp variants.
2998 * sysdeps/s390/Makefile (sysdep_routines):
2999 Add memcmp variants.
3000 * sysdeps/s390/multiarch/ifunc-impl-list.c
3001 (__libc_ifunc_impl_list): Adjust ifunc variants for
3002 memcmp.
3003 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3004 to ...
3005 * sysdeps/s390/memcmp.c: ... here.
3006 Adjust ifunc variants for memcmp.
3007
3008 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3009
3010 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3011 * sysdeps/s390/memcmp.S: ... here.
3012 Adjust to be usable for 31/64bit.
3013 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3014 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3015 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3016 Remove memcmp.
3017 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3018 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3019 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3020 Adjust to be usable for 31/64bit.
3021 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3022 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3023 * sysdeps/s390/multiarch/memcmp.c: ... here.
3024 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3025
3026 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3027
3028 * sysdeps/s390/s390-32/bzero.S: Delete file.
3029 * sysdeps/s390/s390-64/bzero.S: Likewise.
3030 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3031 * sysdeps/s390/bzero.c: New file.
3032 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3033 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3034 * sysdeps/s390/multiarch/ifunc-impl-list.c
3035 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3036
3037 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3038
3039 * sysdeps/s390/ifunc-memset.h: New File.
3040 * sysdeps/s390/memset.S: Move to ...
3041 * sysdeps/s390/memset-z900.S ... here.
3042 Move implementations from memset-s390x.s to here.
3043 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3044 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3045 Remove memset variants.
3046 * sysdeps/s390/Makefile (sysdep_routines):
3047 Add memset variants.
3048 * sysdeps/s390/multiarch/ifunc-impl-list.c
3049 (__libc_ifunc_impl_list): Adjust ifunc variants for
3050 memset.
3051 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3052 to ...
3053 * sysdeps/s390/memset.c: ... here.
3054 Adjust ifunc variants for memset.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/s390-64/memset.S: Move to ...
3059 * sysdeps/s390/memset.S: ... here.
3060 Adjust to be usable for 31/64bit.
3061 * sysdeps/s390/s390-32/memset.S: Delete File.
3062 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3063 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3064 Remove memset.
3065 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3066 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3067 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3068 Adjust to be usable for 31/64bit.
3069 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3070 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3071 * sysdeps/s390/multiarch/memset.c: ... here.
3072 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3073
3074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3075
3076 * sysdeps/s390/multiarch/ifunc-resolve.h
3077 (s390_libc_ifunc_init, s390_libc_ifunc,
3078 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3079
3080 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3081
3082 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3083 * sysdeps/s390/configure.ac: Add check for z10 support.
3084 * sysdeps/s390/configure: Regenerated.
3085
3086 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3087
3088 * sysdeps/i386/atomic-machine.h: Merged with ...
3089 * sysdeps/x86_64/atomic-machine.h: To ...
3090 * sysdeps/x86/atomic-machine.h: This. New file.
3091
3092 2018-12-18 Florian Weimer <fweimer@redhat.com>
3093
3094 Rewrite locale/gen-translit.pl in Python.
3095 * locale/Makefile (generated): Add C-translit.h.
3096 (before-compile): Add $(objpfx)C-translit.h.
3097 (C-translit.h): Move to $(objpfx). Create target directory.
3098 Build using Python script.
3099 * locale/gen-translit.py: New file.
3100 * locale/gen-translit.pl: Remove file.
3101 * locale/C-translit.h.in: Change comment character to '#' for
3102 easier parsing without a C preprocessor.
3103 * locale/C-translit.h: Remove generated file.
3104 * manual/install.texi (Tools for Compilation): Do not mention
3105 C-translit.h.
3106 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3107 Remove locale/C-translit.h.
3108 * scripts/update-copyrights: Likewise.
3109 * INSTALL: Regenerate.
3110
3111 2018-12-18 Florian Weimer <fweimer@redhat.com>
3112
3113 [BZ #23995]
3114 * localedata/locales/bi_VU: Remove executable bit from file.
3115
3116 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3117
3118 * include/time.h
3119 (__localtime64): Add.
3120 * manual/maint.texi: Document Y2038 symbol handling.
3121 * time/localtime.c
3122 (__localtime64): Add.
3123 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3124
3125 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3126
3127 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3128 Do not clobber r12.
3129
3130 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3131 to allow extra macros from first or second sources.
3132 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3133 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3134 (tests-special): Add $(objpfx)tst-mman-consts.out.
3135 ($(objpfx)tst-mman-consts.out): New makefile target.
3136
3137 2018-12-17 Mao Han <han_mao@c-sky.com>
3138
3139 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3140 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3141 without stat64 system call support.
3142 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3143 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3144 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3145 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3146 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3147 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3148 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3149 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3150 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3151 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3152 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3153
3154 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3155
3156 regex: fix storage-exhaustion error
3157 [BZ #18040]
3158 * posix/regexec.c (get_subexp):
3159 Do not continue if storage is exhausted.
3160
3161 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3162
3163 regex: fix heap-use-after-free error
3164 [BZ #18040]
3165 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3166 https://debbugs.gnu.org/32592
3167 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3168 call extend_buffers which reallocates the re_string_t internal buffer.
3169 Local variable 'buf' was not updated in such case, resulting in
3170 use-after-free.
3171 * posix/regexec.c (get_subexp): Update 'buf' after call to
3172 get_subexp_sub.
3173
3174 2018-12-15 Florian Weimer <fweimer@redhat.com>
3175
3176 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3177 (minimum_stride_size): Use it.
3178 (support_blob_repeat_allocate): Likewise.
3179
3180 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3181
3182 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3183 definition.
3184 (acosh): Likewise.
3185 (atanh): Likewise.
3186
3187 2018-12-14 Florian Weimer <fweimer@redhat.com>
3188
3189 * manual/process.texi (Process Creation Concepts): Remove
3190 documentation of process (ID) lifetime. List more process
3191 creation functions. Reference Process Identification section.
3192 (Process Identification): Add information about process ID
3193 lifetime. Describe Linux thread/task IDs.
3194 * manual/signal.texi (Signaling Another Process): Mention that the
3195 signal is always sent to the process.
3196
3197 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3198
3199 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3200 and tst-ldbl-efgcvt.
3201 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3202 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3203 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3204 (fcvt_tests, output_error, output_r_error, do_test): Use the
3205 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3206 select the type of floating-point variables and arguments; to
3207 produce extra tests for double and conversion specifiers for
3208 printf; and to set the names of called functions.
3209 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3210 in tst-efgcvt-template.c.
3211 * misc/tst-ldbl-efgcvt.c: Likewise.
3212
3213 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3214
3215 * nss/Makefile (tst-nss-test3.out): New rule.
3216
3217 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3218
3219 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3220 clobber sp.
3221
3222 2018-12-13 fanjinke <fanjinke@hygon.cn>
3223
3224 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3225 "HygonGenuine".
3226
3227 2018-12-13 Andreas Schwab <schwab@suse.de>
3228
3229 [BZ #23861]
3230 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3231 (__pthread_rwlock_rdlock_full): Update expected value for
3232 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3233 * nptl/tst-rwlock-pwn.c: New file.
3234 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3235
3236 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3237
3238 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3239 definition.
3240
3241 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3242
3243 * benchtests/scripts/compare_bench.py (do_compare): write to
3244 stderr in casestat is not present.
3245 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3246 stderr in case timings field is not present. Also string showing
3247 the output filename goes into the stderr.
3248
3249 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3250
3251 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3252 and ZeroDivisorError exceptions.
3253 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3254 argument to loop through user provided statistics.
3255 * benchtests/scripts/compare_bench.py (main): Include the --stats
3256 argument.
3257
3258 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3259
3260 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3261 instead of return.
3262
3263 2018-12-12 Florian Weimer <fweimer@redhat.com>
3264
3265 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3266 clause to copyright header.
3267
3268 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3269
3270 [BZ #23614]
3271 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3272 registers saved in the stack frame.
3273 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3274 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3275
3276 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3277
3278 * include/bits/monetary-ldbl.h: New file.
3279 * include/bits/printf-ldbl.h: Likewise.
3280 * include/bits/stdio-ldbl.h: Likewise.
3281 * include/bits/stdlib-ldbl.h: Likewise.
3282 * include/bits/syslog-ldbl.h: Likewise.
3283 * include/bits/wchar-ldbl.h: Likewise.
3284
3285 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3286
3287 * libio/libio.h: Remove redirection for _IO_vfprintf.
3288
3289 2018-12-11 Andreas Schwab <schwab@suse.de>
3290
3291 * Makerules: Remove all references to abilist-pattern.
3292 (update-all-abi): Simplify find expression.
3293
3294 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3295
3296 [BZ #23961]
3297 * math/auto-libm-test-in: Add new test case.
3298 * math/auto-libm-test-out-pow: Regenerated.
3299 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3300
3301 2018-12-10 DJ Delorie <dj@redhat.com>
3302
3303 [BZ #23948]
3304 * support/test-container.c: Move postclean step to before we
3305 change namespaces.
3306
3307 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3308
3309 * scripts/gen-as-const.py (main): Handle --python option.
3310 * scripts/gen-py-const.awk: Remove.
3311 * Makerules (py-const-script): Use gen-as-const.py.
3312 ($(py-const)): Likewise.
3313 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3314 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3315 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3316 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3317 ~PTHREAD_MUTEX_NO_ELISION_NP.
3318 * manual/README.pretty-printers: Update reference to
3319 gen-py-const.awk.
3320
3321 * scripts/glibcextract.py: New file.
3322 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3323 or tempfile. Import glibcexctract.
3324 (compute_c_consts): Remove. Moved to glibcextract.py.
3325 (gen_test): Update reference to compute_c_consts.
3326 (main): Likewise.
3327 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3328 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3329 * sysdeps/unix/sysv/linux/Makefile
3330 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3331 Redirect stderr as well as stdout.
3332
3333 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3334
3335 [BZ #19767]
3336 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3337 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3338 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3339 ALWAYS_USE_VSYSCALL.
3340 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3341 ALWAYS_USE_VSYSCALL.
3342 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3343 ALWAYS_USE_VSYSCALL.
3344
3345 2018-12-10 Florian Weimer <fweimer@redhat.com>
3346
3347 [BZ #23972]
3348 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3349 offset instead of count for clarity. Fix typo in comment.
3350 (__old_getdents64): Keep track of previous offset. Use it to call
3351 handle_overflow.
3352 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3353 that d_off is never zero.
3354
3355 2018-12-10 Andreas Schwab <schwab@suse.de>
3356
3357 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3358 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3359 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3360 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3361 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3362
3363 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3364
3365 * timezone/private.h: Update from tzcode 2018g.
3366 * timezone/tzfile.h: Likewise.
3367 * timezone/tzselect.ksh: Likewise.
3368 * timezone/zdump.c: Likewise.
3369 * timezone/zic.c: Likewise.
3370
3371 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3372
3373 [BZ #23490]
3374 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3375 (do_test): Adjust buffer size and fix format.
3376
3377 2018-12-07 DJ Delorie <dj@redhat.com>
3378
3379 [BZ #23907]
3380 * malloc/tst-tcfree3.c: New.
3381 * malloc/Makefile: Add it.
3382
3383 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3384
3385 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3386
3387 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3388
3389 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3390 used as a mask for the mode argument of __vfscanf_internal and
3391 __vfwscanf_internal.
3392 * stdio-common/vfscanf-internal.c
3393 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3394 (__strtof128_internal): Define to __wcstof128_internal.
3395 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3396 __strtof128_internal or __wcstof128_internal when the format of
3397 long double is the same as _Float128.
3398
3399 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3400
3401 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3402 * posix/confstr.c (confstr): Rename to __confstr.
3403 (__confstr): Add hidden def.
3404 (confstr): Add weak alias for __confstr.
3405 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3406 confstr.
3407
3408 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3409
3410 * NEWS: Mention getcpu.
3411 * include/sched.h (__getcpu): New libc_hidden_proto.
3412 * manual/resource.texi: Document getcpu.
3413 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3414 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3415 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3416 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3417 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3418 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3419 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3420 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3421 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3422 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3423 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3424 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3425 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3426 Likewise.
3427 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3428 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3429 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3431 Likewise.
3432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3433 Likewise.
3434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3435 Likewise.
3436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3437 Likewise.
3438 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3439 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3440 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3441 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3442 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3443 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3444 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3445 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3446 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3447 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3448 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3449 Also check getcpu.
3450
3451 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3452
3453 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3454 functions.
3455 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3456
3457 2018-12-07 Florian Weimer <fweimer@redhat.com>
3458
3459 [BZ #17405]
3460 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3461 * posix/Versions (GLIBC_2.29): Export
3462 posix_spawn_file_actions_addfchdir_np.
3463 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3464 * posix/spawn_faction_destroy.c
3465 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3466 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3467 and the field action.fchdir_action.
3468 * posix/tst-spawn-chdir.c (add_chdir): New function.
3469 (do_test): Add do_fchdir loop. Call add_chdir.
3470 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3471 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3472 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3473 posix_spawn_file_actions_addfchdir_np.
3474 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3475 Likewise.
3476 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3477 Likewise.
3478 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3479 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3480 Likewise.
3481 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3482 Likewise.
3483 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3484 Likewise.
3485 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3486 Likewise.
3487 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3488 Likewise.
3489 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3490 Likewise.
3491 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3492 (GLIBC_2.29): Likewise.
3493 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3494 (GLIBC_2.29): Likewise.
3495 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3496 (GLIBC_2.29): Likewise.
3497 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3498 (GLIBC_2.29): Likewise.
3499 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3500 Likewise.
3501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3502 (GLIBC_2.29): Likewise.
3503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3504 (GLIBC_2.29): Likewise.
3505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3506 (GLIBC_2.29): Likewise.
3507 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3508 (GLIBC_2.29): Likewise.
3509 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3510 Likewise.
3511 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3512 Likewise.
3513 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3514 Likewise.
3515 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3516 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3517 Likewise.
3518 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3519 Likewise.
3520 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3521 Likewise.
3522 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3523 Likewise.
3524
3525 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3526
3527 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3528 trailing whitespace removed.
3529 * scripts/config.guess: Update to version 2018-11-28.
3530 * scripts/config.sub: Update to version 2018-11-28.
3531 * scripts/install-sh: Update to version 2018-03-11.20.
3532 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3533 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3534
3535 2018-12-07 Florian Weimer <fweimer@redhat.com>
3536
3537 [BZ #23927]
3538 CVE-2018-19591
3539 * inet/tst-if_index-long.c: New file.
3540 * inet/Makefile (tests): Add tst-if_index-long.
3541
3542 2018-12-07 Florian Weimer <fweimer@redhat.com>
3543
3544 * support/check.h (support_record_failure_is_failed): Declare.
3545 * support/descriptors.h: New file.
3546 * support/support_descriptors.c: Likewise.
3547 * support/tst-support_descriptors.c: Likewise.
3548 * support/support_record_failure.c
3549 (support_record_failure_is_failed): New function.
3550 * support/Makefile (libsupport-routines): Add support_descriptors.
3551 (tests): Add tst-support_descriptors.
3552
3553 2018-12-05 Zack Weinberg <zackw@panix.com>
3554 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3555
3556 * stdio-common/vfprintf-internal.c
3557 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3558 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3559 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3560 and __no_long_double.
3561 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3562 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3563 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3564 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3565 and __nldbl_*syslog* functions.
3566 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3567 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3568 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3569 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3570 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3571 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3572 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3573 (__nldbl_vwprintf, __nldbl_wprintf):
3574 Directly call the appropriate __v*printf_internal routine, passing
3575 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3576 variable names.
3577 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3578 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3579 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3580 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3581 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3582 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3583 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3584 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3585 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3586 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3587 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3588 (__nldbl_syslog, __nldbl_vsyslog):
3589 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3590 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3591 appropriate.
3592 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3593 appropriate.
3594
3595 2018-12-05 Zack Weinberg <zackw@panix.com>
3596 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3597
3598 [BZ #11319]
3599 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3600 Moved here from debug/vsprintf_chk.c.
3601 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3602 and completion logic for the strfile to match exactly what
3603 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3604 _IO_str_init_static_internal instead of maxlen-1.
3605 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3606 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3607 __vsprintf_internal.
3608
3609 * debug/vsprintf_chk.c (__vsprintf_chk)
3610 * debug/sprintf_chk.c (__sprintf_chk):
3611 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3612 'flags' argument is positive, and slen as maxlen. No need to lock
3613 the FILE and/or construct a temporary FILE. Minimize and normalize
3614 header inclusions and variable names. Do not libc_hidden_def anything.
3615
3616 * debug/asprintf_chk.c (__asprintf_chk)
3617 * debug/dprintf_chk.c (__dprintf_chk)
3618 * debug/fprintf_chk.c (__fprintf_chk)
3619 * debug/fwprintf_chk.c (__fwprintf_chk)
3620 * debug/printf_chk.c (__printf_chk)
3621 * debug/snprintf_chk.c (__snprintf_chk)
3622 * debug/swprintf_chk.c (__swprintf_chk)
3623 * debug/vasprintf_chk.c (__vasprintf_chk)
3624 * debug/vdprintf_chk.c (__vdprintf_chk)
3625 * debug/vfprintf_chk.c (__vfprintf_chk)
3626 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3627 * debug/vprintf_chk.c (__vprintf_chk)
3628 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3629 * debug/vswprintf_chk.c (__vswprintf_chk)
3630 * debug/vwprintf_chk.c (__vwprintf_chk)
3631 * debug/wprintf_chk.c (__wprintf_chk):
3632 Directly call the corresponding vxxprintf_internal function, passing
3633 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3634 the FILE and/or construct a temporary FILE. Minimize and normalize
3635 header inclusions and variable names. Do not libc_hidden_def anything.
3636
3637 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3638 __obstack_vprintf_internal.
3639 (__obstack_vprintf_chk): Convert into a wrapper that calls
3640 __obstack_vprintf_internal (these two functions already had the
3641 same code) and move to new file...
3642 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3643 file.
3644 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3645 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3646 * debug/Makefile (routines): Add vobprintf_chk.
3647
3648 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3649 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3650 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3651 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3652 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3653 (__nldbl___obstack_vfprintf_chk):
3654 Directly call the corresponding vxxprintf_internal function,
3655 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3656 duplicate comparison of slen with 0 or maxlen from the corresponding
3657 non-__nldbl function.
3658
3659 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3660 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3661 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3662 Remove libc_hidden_proto.
3663
3664 * stdio-common/vfprintf-internal.c
3665 (__vfprintf_internal, __vfwprintf_internal):
3666 Do not check _IO_FLAGS2_FORTIFY.
3667 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3668 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3669 a comment explaining why it has the maxlen argument.
3670 (_IO_acquire_lock_clear_flags2_fct): Remove.
3671 (_IO_acquire_lock_clear_flags2): Remove.
3672 (_IO_release_lock): Remove conditional statement which will
3673 now never execute.
3674 (_IO_acquire_lock): Remove variable which is now unused.
3675 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3676 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3677
3678 * stdio-common/Makefile (tests): Add tst-bz11319 and
3679 tst-bz11319-fortify2.
3680 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3681 * stdio-common/tst-bz11319-fortify2.c: New file.
3682 * stdio-common/tst-bz11319.c: Likewise.
3683
3684 2018-12-05 Zack Weinberg <zackw@panix.com>
3685 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3686
3687 * misc/syslog.c: Include libioP.h, not iolibio.h.
3688 (__vsyslog_internal): New function with the former body of
3689 __vsyslog_chk; takes mode_flags argument same as
3690 __v*printf_internal. Call __vfprintf_internal directly.
3691
3692 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3693 Remove libc_hidden_def.
3694 (__syslog, __syslog_chk): Use __vsyslog_internal.
3695 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3696
3697 * include/sys/syslog.h: Add multiple inclusion guard.
3698 Add prototype for __vsyslog_internal.
3699 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3700
3701 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3702 Use __vsyslog_internal.
3703
3704 2018-12-05 Zack Weinberg <zackw@panix.com>
3705 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3706
3707 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3708 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3709 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3710 New functions.
3711 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3712 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3713
3714 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3715 Include wctype.h here if COMPILE_WPRINTF is defined.
3716 Define __vfprintf_internal or __vfwprintf_internal, depending
3717 on COMPILE_WPRINTF.
3718 Temporarily, on entry to this function, update mode_flags
3719 according to the environmental settings corresponding to
3720 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3721 Throughout, check mode_flags instead of __ldbl_is_dbl and
3722 _IO_FLAGS2_FORTIFY on the destination FILE.
3723 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3724 Include vfprintf-internal.c. Don't include wctype.h.
3725 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3726 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3727 and vfprintf.
3728 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3729 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3730 and vfwprintf.
3731 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3732
3733 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3734 and add mode_flags argument; use __vfprintf_internal.
3735 (__vdprintf): New function. Alias vdprintf to this.
3736 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3737 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3738 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3739 (__obstack_printf): Use __obstack_printf_internal.
3740 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3741 public aliases __vsnprintf and vsnprintf.
3742 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3743 called internally.
3744 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3745 public aliases _IO_vsprintf and vsprintf.
3746 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3747 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3748 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3749 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3750 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3751
3752 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3753 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3754 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3755 * stdio-common/printf.c: Use __vfprintf_internal.
3756
3757 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3758 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3759 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3760
3761 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3762 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3763 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3764 __vfwprintf_internal.
3765
3766 * libio/libio.h: Remove libc_hidden_proto and declaration for
3767 _IO_vfprintf.
3768 Remove declaration of _IO_vfwprintf.
3769 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3770 _IO_vsprintf.
3771 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3772 _IO_obstack_printf.
3773 * include/stdio.h: Add prototype for __vasprintf.
3774 (__vsnprintf): Remove declaration, because there are no more
3775 internal calls.
3776 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3777 declaration, because there are no more internal calls.
3778
3779 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3780 __vsnprintf_internal, instead of _IO_vsnprintf.
3781 * argp/argp-help.c (__argp_error, __argp_failure): Use
3782 __vasprintf_internal, instead of _IO_vasprintf.
3783 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3784 redefine, because there are no more internal calls.
3785
3786 2018-12-05 Zack Weinberg <zackw@panix.com>
3787 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3788
3789 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3790 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3791 Include libio/strfile.h instead of libioP.h.
3792 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3793 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3794 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3795 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3796 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3797 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3798 necessary. Do not set __no_long_double. Normalize variable names.
3799 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3800 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3801 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3802 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3803 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3804 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3805 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3806 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3807 Do not set __no_long_double. Normalize variable names.
3808
3809 2018-12-05 Zack Weinberg <zackw@panix.com>
3810 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3811
3812 * stdio-common/isoc99_scanf.c
3813 * stdio-common/isoc99_fscanf.c
3814 * stdio-common/isoc99_sscanf.c
3815 * stdio-common/isoc99_vscanf.c
3816 * stdio-common/isoc99_vfscanf.c
3817 * stdio-common/isoc99_vsscanf.c
3818 * wcsmbs/isoc99_wscanf.c
3819 * wcsmbs/isoc99_fwscanf.c
3820 * wcsmbs/isoc99_swscanf.c
3821 * wcsmbs/isoc99_vwscanf.c
3822 * wcsmbs/isoc99_vfwscanf.c
3823 * wcsmbs/isoc99_vswscanf.c:
3824 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3825 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3826 No need to lock and unlock the FILE passed to that function.
3827
3828 * stdio-common/vfscanf-internal.c
3829 (__vfscanf_internal, __vfwscanf_internal):
3830 Don't look at _IO_FLAGS2_SCANF_STD.
3831 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3832 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3833 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3834
3835 2018-12-05 Zack Weinberg <zackw@panix.com>
3836 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3837
3838 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3839 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3840 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3841 * libio/strfile.h: Add multiple inclusion guard.
3842 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3843
3844 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3845 consistency with the other version of this file.
3846 (ldbl_compat_symbol): New macro.
3847 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3848 New macro.
3849
3850 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3851 Define __vfscanf_internal or __vfwscanf_internal, depending on
3852 COMPILE_WSCANF; don't define any other public symbols.
3853 Remove errval and code to set errp.
3854 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3855 as the mode_flags argument.
3856 (encode_error, conv_error, input_error): Don't set errval.
3857 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3858 Include vfscanf-internal.c.
3859 * stdio-common/vfscanf.c: New file defining the public entry
3860 point vfscanf, which calls __vfscanf_internal.
3861 * stdio-common/vfwscanf.c: New file defining the public entry
3862 point vfwscanf, which calls __vfwscanf_internal.
3863
3864 * stdio-common/iovfscanf.c: New file.
3865 * stdio-common/iovfwscanf.c: Likewise.
3866
3867 * stdio-common/Makefile (routines): Add vfscanf-internal,
3868 vfwscanf-internal, iovfscanf, iovfwscanf.
3869 * stdio-common/Versions: Mention GLIBC_2.29, so that
3870 it can be used in SHLIB_COMPAT expressions.
3871 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3872 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3873 Call __vfscanf_internal, instead of _IO_vfscanf.
3874 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3875 _IO_vfscanf.
3876 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3877 _IO_vfwscanf.
3878
3879 * libio/iovsscanf.c: Clean up includes, when possible. Use
3880 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3881 __vfscanf_internal or __vfwscanf_internal directly.
3882 * libio/iovswscanf.c: Likewise.
3883 * libio/swscanf.c: Likewise.
3884 * libio/vscanf.c: Likewise.
3885 * libio/vwscanf.c: Likewise.
3886 * libio/wscanf.c: Likewise.
3887 * stdio-common/isoc99_fscanf.c: Likewise.
3888 * stdio-common/isoc99_scanf.c: Likewise.
3889 * stdio-common/isoc99_sscanf.c: Likewise.
3890 * stdio-common/isoc99_vfscanf.c: Likewise.
3891 * stdio-common/isoc99_vscanf.c: Likewise.
3892 * stdio-common/isoc99_vsscanf.c: Likewise.
3893 * stdio-common/scanf.c: Likewise.
3894 * stdio-common/sscanf.c: Likewise.
3895 * wcsmbs/isoc99_fwscanf.c: Likewise.
3896 * wcsmbs/isoc99_swscanf.c: Likewise.
3897 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3898 * wcsmbs/isoc99_vswscanf.c: Likewise.
3899 * wcsmbs/isoc99_vwscanf.c: Likewise.
3900 * wcsmbs/isoc99_wscanf.c: Likewise.
3901
3902 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3903
3904 * include/time.h
3905 (__tz_compute): Replace time_t with __time64_t.
3906 (__tz_convert): Replace time_t* with __time64_t.
3907 (__offtime): Replace time_t* with __time64_t.
3908 * time/gmtime.c
3909 (__gmtime_r): Adjust call to __tz_convert.
3910 (gmtime): Likewise.
3911 * time/localtime.c
3912 (__localtime_r): Likewise.
3913 (localtime): Likewise.
3914 * time/offtime.c: Replace time_t with __time64_t.
3915 * time/tzset.c: Likewise.
3916
3917 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3918
3919 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3920 dynamic linker unless [$(run-built-tests) = yes].
3921
3922 2018-12-03 DJ Delorie <dj@delorie.com>
3923
3924 * support/test-container.c (check_for_unshare_hints): New.
3925 (main): Call it if unshare fails. Add support for "su" scriptlet
3926 command.
3927
3928 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3929
3930 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3931 'START' to indicate that start text should be output.
3932 (gen_test): Likewise.
3933 (main): Generate 'START' for first symbol or '--' line, or at end
3934 of input if not previously generated.
3935
3936 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3937
3938 [BZ #19767]
3939 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3940 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3941 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3942 ALWAYS_USE_VSYSCALL.
3943
3944 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3945
3946 [BZ #23913]
3947 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3948 new_argv by one.
3949
3950 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3951
3952 [BZ #23923]
3953 * locale/programs/localedef.c: Declare boolean hard_links default true.
3954 (options): Add --no-hard-links option.
3955 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3956 * locale/programs/localedef.h: Declare prototype for hard_links.
3957 * locale/programs/locfile.c (write_locale_data): Don't use hard
3958 links if hard_links is false.
3959
3960 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3961
3962 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3963 cpu_features_basic.
3964 (__cache_sysconf): Likewise.
3965 (init_cacheinfo): Likewise.
3966 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3967 populate COMMON_CPUID_INDEX_80000007 and
3968 COMMON_CPUID_INDEX_80000008.
3969 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3970 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3971 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3972 (init_cpu_features): Use _Static_assert on
3973 index_arch_Fast_Unaligned_Load.
3974 __get_cpuid_registers and __get_arch_feature. Updated for
3975 cpu_features_basic. Set stepping in cpu_features.
3976 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3977 (FEATURE_INDEX_2): New.
3978 (FEATURE_INDEX_MAX): Changed to enum.
3979 (COMMON_CPUID_INDEX_D_ECX_1): New.
3980 (COMMON_CPUID_INDEX_80000007): Likewise.
3981 (COMMON_CPUID_INDEX_80000008): Likewise.
3982 (cpuid_registers): Likewise.
3983 (cpu_features_basic): Likewise.
3984 (CPU_FEATURE_USABLE): Likewise.
3985 (bit_arch_XXX_Usable): Likewise.
3986 (cpu_features): Use cpuid_registers and cpu_features_basic.
3987 (bit_arch_XXX): Reweritten.
3988 (bit_cpu_XXX): Likewise.
3989 (index_cpu_XXX): Likewise.
3990 (reg_XXX): Likewise.
3991 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3992 <support/check.h>.
3993 (CHECK_CPU_FEATURE): New.
3994 (CHECK_CPU_FEATURE_USABLE): Likewise.
3995 (cpu_kinds): Likewise.
3996 (do_test): Print vendor, family, model and stepping. Check
3997 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3998 (TEST_FUNCTION): Removed.
3999 Include <support/test-driver.c> instead of
4000 "../../test-skeleton.c".
4001 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4002 Check POPCNT instead of POPCOUNT.
4003 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4004
4005 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4006
4007 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4008 there is no element in `consts'.
4009
4010 2018-12-01 Florian Weimer <fweimer@redhat.com>
4011
4012 * support/support_capture_subprocess.c
4013 (support_capture_subprocess): Check that pipe descriptors have
4014 expected values. Close original pipe descriptors in subprocess.
4015
4016 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4017
4018 [BZ #23032]
4019 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4020 attr with __pthread_default_barrierattr.
4021 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4022 attr with __pthread_default_condattr.
4023 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4024 attr with __pthread_default_mutexattr.
4025 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4026 attr with __pthread_default_rwlockattr.
4027
4028 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4029
4030 * manual/tunables.texi (POSIX Thread Tunables): New node.
4031 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4032 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4033 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4034 __pthread_tunables_init.
4035 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4036 (max_adaptive_count): Define.
4037 * nptl/pthread_mutex_conf.c: New file.
4038 * nptl/pthread_mutex_conf.h: New file.
4039 * sysdeps/generic/adaptive_spin_count.h: New file.
4040 * sysdeps/nptl/dl-tunables.list: New file.
4041 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4042 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4043 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4044 Likewise.
4045
4046 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4047
4048 [BZ #20544]
4049 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4050 * stdlib/on_exit.c (__on_exit): Likewise.
4051 * stdlib/Makefile (tests): Add tst-bz20544.
4052 * stdlib/tst-bz20544.c: New test.
4053
4054 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4055
4056 [BZ #19767]
4057 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4058 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4059 New.
4060
4061 2018-11-30 Florian Weimer <fweimer@redhat.com>
4062
4063 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4064 Extend error logging.
4065 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4066 symbol.
4067
4068 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4069
4070 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4071 __sigismember instead of sigismember.
4072 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4073 cancel_handler): New definitions.
4074 (do_system): Use posix_spawn instead of fork and execl and remove
4075 reentracy code.
4076 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4077 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4078 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4079 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4080 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4081 * sysdeps/unix/sysv/linux/system.c: Likewise.
4082
4083 [BZ #22834]
4084 [BZ #17490]
4085 * NEWS: Add new semantic for atfork with popen and system.
4086 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4087 fork and execl.
4088
4089 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4090
4091 [BZ #23690]
4092 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4093 modification order when accessing reloc_result->addr.
4094 * include/link.h (reloc_result): Add field init.
4095 * nptl/Makefile (tests): Add tst-audit-threads.
4096 (modules-names): Add tst-audit-threads-mod1 and
4097 tst-audit-threads-mod2.
4098 Add rules to build tst-audit-threads.
4099 * nptl/tst-audit-threads-mod1.c: New file.
4100 * nptl/tst-audit-threads-mod2.c: Likewise.
4101 * nptl/tst-audit-threads.c: Likewise.
4102 * nptl/tst-audit-threads.h: Likewise.
4103
4104 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4105
4106 * scripts/gen-as-const.py: New file.
4107 * scripts/gen-as-const.awk: Remove.
4108 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4109 gen-as-const.py.
4110 ($(objpfx)test-as-const-%.c): Likewise.
4111
4112 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4113
4114 * elf/dl-exception.c: Include <_itoa.h>.
4115
4116 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4117
4118 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4119 returned by __f_setlk.
4120
4121 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4122 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4123
4124 * elf/Makefile (tests-internal): Add tst-create_format1.
4125 * elf/dl-exception.c (_dl_exception_create_format): Support
4126 %x, %lx and %zx.
4127 * elf/tst-create_format1.c: New file.
4128
4129 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4130
4131 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4132 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4133 gnulib.)
4134 * argp/argp-help.c (__argp_failure): Likewise.
4135
4136 2018-11-29 Mao Han <han_mao@c-sky.com>
4137
4138 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4139 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4140 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4141 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4142 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4143 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4144 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4145 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4146 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4147 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4148 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4149 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4150 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4151 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4152 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4153 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4154 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4155 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4156 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4157 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4158 (R_CKCORE_TLS_TPOFF32): New defines.
4159
4160 2018-11-29 Florian Weimer <fweimer@redhat.com>
4161
4162 * posix/Makefile (before-compile): Remove testcases.h and
4163 ptestcases.h.
4164 (generated): Add testcases.h and ptestcases.h.
4165 (testcases.h, ptestcases.h): Move to $(objpfx).
4166 (runtests.o): Add dependency on testcases.h.
4167 (runptests.o): Add dependency on ptestcases.h.
4168 * posix/testcases.h, posix/ptestcases.h: Remove files.
4169 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4170 not touch posix/testcases.h and posix/ptestcases.h.
4171
4172 2018-11-28 Florian Weimer <fweimer@redhat.com>
4173
4174 support: Add signal support to support_capture_subprocess_check.
4175 * support/capture_subprocess.h (support_capture_subprocess_check):
4176 Adjust comment and rename parameter.
4177 * support/support_capture_subprocess_check.c
4178 (print_actual_status): New function.
4179 (support_capture_subprocess_check): Support negative
4180 status_or_signal. Call print_actual_status.
4181 * support/tst-support_capture_subprocess.c (do_test): Call
4182 support_capture_subprocess_check.
4183 * libio/tst-vtables-common.c (termination_status)
4184 (init_termination_status): Remove.
4185 (check_for_termination): Adjust support_capture_subprocess_check
4186 call.
4187 (do_test): Remove call to init_termination_status.
4188
4189 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4190
4191 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4192 source directory instead of a copy.
4193 (CommandList.create_copy_dir): Remove.
4194
4195 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4196
4197 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4198
4199 2018-11-28 Florian Weimer <fweimer@redhat.com>
4200
4201 * support/support.h (support_quote_string): Do not use str
4202 parameter name.
4203
4204 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4205
4206 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4207 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4208
4209 2018-11-27 Florian Weimer <fweimer@redhat.com>
4210
4211 * support/support.h (support_quote_string): Declare.
4212 * support/support_quote_string.c: New file.
4213 * support/tst-support_quote_string.c: Likewise.
4214 * support/Makefile (libsupport-routines): Add
4215 support_quote_string.
4216 (tests): Add tst-support_quote_string.
4217
4218 2018-11-27 Florian Weimer <fweimer@redhat.com>
4219
4220 [BZ #23927]
4221 CVE-2018-19591
4222 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4223 descriptor leak in case of ENODEV error.
4224
4225 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4226
4227 [BZ #19767]
4228 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4229 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4230 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4231
4232 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4233
4234 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4235 Error for unknown lines.
4236
4237 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4238
4239 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4240 Touch additional files.
4241
4242 2018-11-26 Florian Weimer <fweimer@redhat.com>
4243
4244 [BZ #23907]
4245 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4246 double-frees.
4247
4248 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4249
4250 [BZ #19767]
4251 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4252 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4253 SHARED. Include sysdep.h.
4254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4255 ALWAYS_USE_VSYSCALL.
4256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4257 ALWAYS_USE_VSYSCALL.
4258
4259 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4260
4261 [BZ #19767]
4262 * nptl/Makefile (tests-static): Add tst-cond11-static.
4263 (tests): Likewise.
4264 * nptl/tst-cond11-static.c: New File.
4265 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4266 tst-affinity-static.
4267 (tests): Likewise.
4268 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4269 instead of SHARED.
4270 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4271 (USE_VSYSCALL): Likewise.
4272 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4273 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4274 instead of SHARED.
4275 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4276 SHARED.
4277 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4278 New.
4279
4280 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4281
4282 [BZ #23915]
4283 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4284 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4285 Undefine.
4286
4287 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4288
4289 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4290 (tst-cet-legacy-1a-ARGS): New.
4291 ($(objpfx)tst-cet-legacy-1a): New target.
4292 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4293
4294 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4295
4296 * conform/conformtest.py (CompileSubTest.__init__): Set
4297 self.run_early to False.
4298 (ExecuteSubTest.__init__): Likewise.
4299 (HeaderTests.run): Try running all non-optional, non-XFAILed
4300 compilation tests in a single execution of the compiler.
4301
4302 * conform/conformtest.py (CompileSubTest): New class.
4303 (ExecuteSubTest): Likewise.
4304 (ElementTest.run): Rename to gen_subtests. Append tests to
4305 self.subtests instead of running them.
4306 (ConstantTest.run): Likewise.
4307 (SymbolTest.run): Likewise.
4308 (TypeTest.run): Likewise.
4309 (TagTest.run): Likewise.
4310 (FunctionTest.run): Likewise.
4311 (VariableTest.run): Likewise.
4312 (MacroFunctionTest.run): Likewise.
4313 (MacroStrTest.run): Likewise.
4314 (HeaderTests.handle_test_line): Generate subtests for tests.
4315 (HeaderTests.run): Run subtests for tests.
4316
4317 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4318
4319 * math/Versions (GLIBC_2.29): Add pow.
4320 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4321 symbol.
4322 * math/w_pow.c: New file.
4323 * sysdeps/i386/fpu/w_pow.c: New file.
4324 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4325 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4326 and add necessary aliases.
4327 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4328 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4329 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4346 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4347 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4348 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4349 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4350 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4351 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4352 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4353 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4354 __pow.
4355 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4356 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4357 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4358
4359 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4360
4361 * math/Versions (GLIBC_2.29): Add log2.
4362 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4363 symbol.
4364 * math/w_log2.c: New file.
4365 * sysdeps/i386/fpu/w_log2.c: New file.
4366 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4367 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4368 and add necessary aliases.
4369 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4370 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4371 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4385 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4388 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4389 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4390 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4391 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4395
4396 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4397
4398 * math/Versions (GLIBC_2.29): Add log.
4399 * math/w_log_compat.c (__log_compat): Change to versioned compat
4400 symbol.
4401 * math/w_log.c: New file.
4402 * sysdeps/i386/fpu/w_log.c: New file.
4403 * sysdeps/ia64/fpu/e_log.S: Update.
4404 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4405 and add necessary aliases.
4406 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4407 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4408 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4409 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4410 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4411 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4412 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4413 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4414 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4415 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4416 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4417 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4425 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4426 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4427 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4428 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4429 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4430 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4431 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4432 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4433 __log.
4434 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4435 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4436 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4437 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4438
4439 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4440
4441 * math/Versions (GLIBC_2.29): Add exp and exp2.
4442 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4443 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4444 * math/w_exp_compat.c (__exp_compat): Likewise.
4445 * math/w_exp.c: New file.
4446 * math/w_exp2.c: New file.
4447 * sysdeps/i386/fpu/w_exp.c: New file.
4448 * sysdeps/i386/fpu/w_exp2.c: New file.
4449 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4450 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4451 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4452 and add necessary aliases.
4453 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4454 and add necessary aliases.
4455 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4456 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4457 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4458 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4459 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4460 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4461 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4462 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4463 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4464 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4465 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4466 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4467 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4468 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4469 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4470 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4471 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4472 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4476 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4477 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4478 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4479 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4480 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4481 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4482 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4483 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4484 (__ieee754_exp): Rename to __exp.
4485 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4486 (__ieee754_exp): Rename to __exp.
4487 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4488 (__ieee754_exp): Rename to __exp.
4489 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4490 __exp.
4491 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4492
4493 2018-11-20 DJ Delorie <dj@redhat.com>
4494
4495 * malloc/malloc.c (tcache_entry): Add key field.
4496 (tcache_put): Set it.
4497 (tcache_get): Likewise.
4498 (_int_free): Check for double free in tcache.
4499 * malloc/tst-tcfree1.c: New.
4500 * malloc/tst-tcfree2.c: New.
4501 * malloc/Makefile: Run the new tests.
4502 * manual/probes.texi: Document memory_tcache_double_free probe.
4503
4504 * dlfcn/dlerror.c (check_free): Prevent double frees.
4505
4506 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4507
4508 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4509
4510 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4511
4512 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4513 in tests. Use names for format arguments.
4514 (ConstantTest.run): Likewise.
4515 (SymbolTest.run): Likewise.
4516 (TypeTest.run): Likewise.
4517 (TagTest.run): Likewise.
4518 (FunctionTest.run): Likewise.
4519 (VariableTest.run): Likewise.
4520 (MacroFunctionTest.run): Likewise.
4521 (MacroStrTest.run): Likewise.
4522 (HeaderTests.__init__): Set self.num_tests.
4523 (HeaderTests.handle_test_line): Set test.num. Increment
4524 self.num_tests.
4525
4526 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4527
4528 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4529 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4530 SEEK_SET.
4531
4532 2018-11-19 Mao Han <han_mao@c-sky.com>
4533
4534 * scripts/config.guess: Update to version 2018-08-29.
4535 * scripts/config.sub: Update to version 2018-08-29.
4536
4537 2018-11-19 Florian Weimer <fweimer@redhat.com>
4538
4539 support: Print timestamps in timeout handler.
4540 * support/support_test_main.c (print_timestamp): New function.
4541 (signal_handler): Use it to print the termination time and the
4542 time of the last write to standard output.
4543
4544 2018-11-16 Zack Weinberg <zackw@panix.com>
4545 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4546
4547 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4548 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4549 argument.
4550 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4551 and add flags argument. Check flags instead of __ldbl_is_dbl when
4552 deciding whether to set is_long_double.
4553 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4554 passing zero for flags argument.
4555 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4556
4557 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4558 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4559 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4560 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4561 variable names. Remove libc_hidden_def/libc_hidden_proto from
4562 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4563 longer called from within the library.
4564 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4565 for __nldbl___vstrfmon_l, declare it explicitly.
4566
4567 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4568
4569 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4570
4571 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4572 macros
4573 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4574 F_SETLK64, F_SETLKW64, respectively.
4575 * sysdeps/mach/hurd/f_setlk.c: New file.
4576 * sysdeps/mach/hurd/f_setlk.h: New file.
4577 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4578 f_setlk.
4579 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4580 (__libc_fcntl): Move non-flock operations to...
4581 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4582 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4583
4584 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4585
4586 mktime: DEBUG_MKTIME cleanup
4587 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4588 And it’s no longer needed now that glibc and Gnulib both have
4589 their own testing mechanisms for mktime.
4590 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4591
4592 mktime: fix non-EOVERFLOW errno handling
4593 [BZ#23789]
4594 mktime was not properly reporting failures when the underlying
4595 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4596 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4597 The problem could happen on non-glibc platforms, with Gnulib.
4598 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4599 (tm_diff): ... this simpler function, which does not change errno.
4600 All callers changed to deal with errno themselves.
4601 (ranged_convert, __mktime_internal): Return failure immediately if
4602 the underlying function reports any failure other than EOVERFLOW.
4603 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4604 gap code fails.
4605
4606 mktime: fix bug with Y2038 DST transition
4607 [BZ#23789]
4608 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4609 mishandle a DST transition that jumps over the Y2038 boundary.
4610 No such DST transitions are known so this is only a theoretical
4611 bug, but we might as well do things right.
4612
4613 mktime: make more room for overflow
4614 [BZ#23789]
4615 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4616 This is so that we can add tm_diff results to a previous guess,
4617 which will be useful in a later patch.
4618
4619 mktime: simplify offset guess
4620 [BZ#23789]
4621 * time/mktime.c (__mktime_internal): Omit excess precision.
4622
4623 mktime: new test for mktime failure
4624 [BZ#23789]
4625 Based on a test suggested by Albert Aribaud in:
4626 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4627 * time/Makefile (tests): Add bug-mktime4.
4628 * time/bug-mktime4.c: New file.
4629
4630 mktime: fix EOVERFLOW bug
4631 [BZ#23789]
4632 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4633 Include libc-config.h, not config.h, for __set_errno.
4634 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4635
4636 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4637
4638 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4639 __attribute_copy__ to copy attributes from name. Drop static qualifier
4640 to avoid warnings about leaf attribute not having effect on static
4641 functions.
4642
4643 2018-11-13 Florian Weimer <fweimer@redhat.com>
4644
4645 * malloc/malloc.c (fastbin_push_entry): New function.
4646 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4647 (REMOVE_FB): Remove macro.
4648 (_int_malloc): Use fastbin_pop_entry and reindent.
4649 (_int_free): Use fastbin_push_entry.
4650 (malloc_consolidate): Use atomic_exchange_acquire.
4651
4652 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4653
4654 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4655 alias attribute, not with strong_alias.
4656
4657 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4658 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4659 with additional parameter thread.
4660 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4661 in terms of __hidden_ver2.
4662 (hidden_tls_def): New macro.
4663 (libc_hidden_tls_def): Likewise.
4664 (rtld_hidden_tls_def): Likewise.
4665 (libm_hidden_tls_def): Likewise.
4666 (libmvec_hidden_tls_def): Likewise.
4667 (libresolv_hidden_tls_def): Likewise.
4668 (librt_hidden_tls_def): Likewise.
4669 (libdl_hidden_tls_def): Likewise.
4670 (libnss_files_hidden_tls_def): Likewise.
4671 (libnsl_hidden_tls_def): Likewise.
4672 (libnss_nisplus_hidden_tls_def): Likewise.
4673 (libutil_hidden_tls_def): Likewise.
4674 (libutil_hidden_tls_def): Likweise.
4675 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4676 libc_hidden_tls_def.
4677 (__sim_disabled_exceptions_thread): Likewise.
4678 (__sim_round_mode_thread): Likewise.
4679
4680 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4681 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4682 copy attributes from name.
4683
4684 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4685
4686 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4687 Use __attribute_copy__ to copy attributes from name.
4688
4689 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4690 with __hidden_ver1 call.
4691 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4692 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4693 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4694 (__cosf): Do not declare here.
4695 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4696 (__sincosf): Do not declare here.
4697 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4698 (__sinf): Do not declare here.
4699
4700 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4701 (__BIG_ENDIAN): Likewise.
4702 (__BYTE_ORDER): Likewise.
4703 (strong_alias): Likewise.
4704 (_strong_alias): Likewise.
4705
4706 2018-11-12 Florian Weimer <fweimer@redhat.com>
4707
4708 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4709 function. Move after the definition of in_smallbin_range. Do not
4710 use __builtin_expect for paths that lead to a noreturn function.
4711 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4712 because it is unclear whether this is in fact an unlikely
4713 condition.
4714 (_int_malloc, _int_free): Adjust.
4715 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4716 variables.
4717 * malloc/arena.c (heap_trim): Likewise.
4718
4719 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4720
4721 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4722 it, free it if needed.
4723 (reauthenticate): Test and use ccwdir.
4724 (child_init_port): In non-resetids case, test and use ccwdir.
4725 (child_chdir): New nested function to set ccwdir.
4726 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4727 * hurd/hurd/port.h (_hurd_port_move): New function.
4728 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4729 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4730 * hurd/Versions (_hurd_port_move): Export function.
4731 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4732 symbol.
4733 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4734 of dtablesize for allocating dtable_cloexec.
4735
4736 2018-11-09 Martin Sebor <msebor@redhat.com>
4737
4738 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4739 it's already defined.
4740 (_strong_alias): Use __attribute_copy__.
4741 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4742 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4743 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4744 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4745 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4746 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4747 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4748 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4749 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4750 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4751 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4752 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4753 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4754 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4755 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4756 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4757 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4758 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4759 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4760
4761 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4762
4763 * misc/tst-efgcvt.c: Include support/check.h and
4764 support/test-driver.c. Do not include test-skeleton.c.
4765 (error_count): Remove.
4766 (output_error): Replace increments to error_count with calls to
4767 support_record_failure.
4768 (output_r_error): Likewise.
4769 (special): Likewise.
4770 (do_test): Unconditionally return zero.
4771 (TEST_FUNCTION): Remove.
4772
4773 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4774
4775 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4776 not $(@D)/scratch.
4777 ($(linknamespace-header-tests)): Likewise.
4778
4779 * conform/conformtest.py: New file.
4780 * conform/conformtest.pl: Remove.
4781 * conform/GlibcConform.pm: Likewise.
4782 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4783 (KEYWORDS_C99): Likewise.
4784 (KEYWORDS): Likewise.
4785 * conform/Makefile ($(conformtest-header-tests)): Use
4786 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4787 option. Use --header instead of --headers.
4788 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4789 function entries.
4790 * conform/data/spawn.h-data: Likewise.
4791 * conform/data/fcntl.h-data (openat): Add space after function
4792 name.
4793 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4794 (wcscasecmp_l): Likewise.
4795 * conform/data/termios.h-data (c_cc): Add space after element
4796 name.
4797
4798 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4799
4800 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4801 instead of manually comparing and reporting mismatching strings.
4802 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4803 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4804
4805 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4806
4807 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4808 __ASSUME_SOCKETCALL.
4809 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4810 (__ASSUME_SOCKETCALL): Remove.
4811 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4812 (__ASSUME_SOCKETCALL): Likewise.
4813 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4814 (__ASSUME_SOCKETCALL): Likewise.
4815 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4816 (__ASSUME_SOCKETCALL): Likewise.
4817 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4818 (__ASSUME_SOCKETCALL): Likewise.
4819 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4820 (__ASSUME_SOCKETCALL): Likewise.
4821 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4822 (__ASSUME_SOCKETCALL): Likewise.
4823
4824 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4825
4826 [BZ #23509]
4827 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4828 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4829 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4830 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4831 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4832 lc_unknown.
4833
4834 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4835
4836 [BZ #17630]
4837 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4838
4839 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4840
4841 [BZ #23867]
4842 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4843 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4844 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4845 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4846
4847 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4848
4849 * support/support_test_compare_string.c
4850 (support_test_compare_string): Fix printf format.
4851
4852 2018-11-07 Florian Weimer <fweimer@redhat.com>
4853
4854 Implement TEST_COMPARE_STRING.
4855 * support/check.h (TEST_COMPARE_STRING): Define.
4856 (support_test_compare_string): Declare.
4857 * support/Makefile (libsupport-routines): Add
4858 support_test_compare_string.
4859 (tests): Add tst-test_compare_string.
4860 * support/support_test_compare_string.c: New file.
4861 * support/tst-test_compare_string.c: Likewise.
4862
4863 2018-11-07 Andreas Schwab <schwab@suse.de>
4864
4865 [BZ #23864]
4866 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4867 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4868 Undef.
4869
4870 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4871
4872 [BZ #23862]
4873 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4874 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4875 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4876 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4877 Likewise.
4878
4879 2018-11-06 Florian Weimer <fweimer@redhat.com>
4880
4881 [BZ #17405]
4882 * posix/Makefile (routines): Add spawn_faction_addchdir.
4883 (tests): Add tst-spawn-chdir.
4884 * posix/Versions (GLIBC_2.29): Add
4885 posix_spawn_file_actions_addchdir_np.
4886 * posix/spawn_faction_addchdir.c: New file.
4887 * posix/spawn_faction_destroy.c
4888 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4889 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4890 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4891 chdir_action.
4892 * posix/tst-spawn-chdir.c: New file.
4893 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4894 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4895 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4896 posix_spawn_file_actions_addchdir_np.
4897 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4898 Likewise.
4899 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4900 Likewise.
4901 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4902 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4903 Likewise.
4904 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4905 Likewise.
4906 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4907 Likewise.
4908 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4909 Likewise.
4910 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4911 Likewise.
4912 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4913 Likewise.
4914 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4915 (GLIBC_2.29): Likewise.
4916 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4917 (GLIBC_2.29): Likewise.
4918 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4919 (GLIBC_2.29): Likewise.
4920 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4921 (GLIBC_2.29): Likewise.
4922 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4923 Likewise.
4924 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4925 (GLIBC_2.29): Likewise.
4926 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4927 (GLIBC_2.29): Likewise.
4928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4929 (GLIBC_2.29): Likewise.
4930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4931 (GLIBC_2.29): Likewise.
4932 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4933 Likewise.
4934 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4935 Likewise.
4936 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4937 Likewise.
4938 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4939 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4940 Likewise.
4941 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4942 Likewise.
4943 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4944 Likewise.
4945 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4946 Likewise.
4947
4948 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4949
4950 * misc/Makefile (tests): Add tst-ldbl-error.
4951 * misc/tst-ldbl-error.c: New file.
4952
4953 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4954
4955 * misc/Makefile (tests): Add tst-ldbl-warn.
4956 * misc/tst-ldbl-warn.c: New file.
4957
4958 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4959
4960 * argp/Makefile (tests): Add tst-ldbl-argp.
4961 * argp/tst-ldbl-argp.c: New file.
4962
4963 2018-11-05 Arjun Shankar <arjun@redhat.com>
4964
4965 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4966 __gconv_path_elem and call __gconv_get_path unconditionally.
4967
4968 2018-11-05 Andreas Schwab <schwab@suse.de>
4969
4970 [BZ #22927]
4971 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4972 creating the first helper thread failed.
4973
4974 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4975
4976 * sysdeps/mach/hurd/msync.c: New file.
4977
4978 2018-11-02 Florian Weimer <fweimer@redhat.com>
4979
4980 * support/shell-container.c (copy_func): Call
4981 support_copy_file_range instead of copy_file_range to support
4982 cross-device copies.
4983
4984 2018-11-02 Florian Weimer <fweimer@redhat.com>
4985
4986 * support/test-container.c: Include <libc-pointer-arith.h> for
4987 ALIGN_UP.
4988
4989 2018-11-01 Zong Li <zong@andestech.com>
4990
4991 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4992 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4993 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4994 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4995
4996 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4997 variable to avoid overlap arguments.
4998
4999 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5000
5001 * posix/bug-regex22.c (main): Use puts with distinct error
5002 messages for unexpected success of re_compile_pattern, not printf
5003 with NULL argument to %s.
5004
5005 * stdio-common/bug22.c: Include <libc-diag.h>.
5006 (do_test): Disable -Wformat-overflow= warnings around fprintf
5007 calls outputting more than INT_MAX characters.
5008 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5009 around printf call with NULL %s argument.
5010
5011 [BZ #23848]
5012 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5013 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5014 Undefine.
5015 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5016 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5017 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5018 (__ASSUME_SENDTO_SYSCALL): Likewise.
5019 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5020 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5021 [!__arch64__].
5022 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5023 (__ASSUME_CONNECT_SYSCALL): Likewise.
5024 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5025 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5026 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5027 Define.
5028 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5029 Likewise.
5030 [__LINUX_KERNEL_VERSION >= 0x040400]
5031 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5032 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5033 Remove.
5034 (listen): Likewise.
5035 (setsockopt): Likewise.
5036
5037 2018-11-01 Fredrik Noring <noring@nocrew.org>
5038
5039 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5040 with the ISA override.
5041
5042 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5043
5044 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5045 #endif.
5046
5047 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5048
5049 * manual/errno.texi (EIEIO): Document how translators should
5050 translate the error message.
5051 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5052 printing trailing whitespaces refused by git.
5053 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5054 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5055 * hurd/Makefile (user-interfaces): Add pci.
5056
5057 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5058
5059 * conform/linknamespace.py: New file.
5060 * conform/linknamespace.pl: Remove file.
5061 * conform/Makefile ($(linknamespace-header-tests)): Use
5062 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5063 option.
5064
5065 2018-10-30 Florian Weimer <fweimer@redhat.com>
5066
5067 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5068 memory leaks.
5069
5070 2018-10-30 Florian Weimer <fweimer@redhat.com>
5071
5072 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5073
5074 2018-10-30 Florian Weimer <fweimer@redhat.com>
5075
5076 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5077 support_blob_repeat.
5078
5079 2018-10-30 Florian Weimer <fweimer@redhat.com>
5080
5081 Avoid spurious test failures in stdlib/test-bz22786.
5082 * support/Makefile (libsupport-routines): Add blob_repeat.
5083 (tests): Add tst-support_blob_repeat.
5084 * support/blob_repeat.h: New file.
5085 * support/blob_repeat.c: Likewise.
5086 * support/tst-support_blob_repeat.c: Likewise.
5087 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5088 support_blob_repeat_allocate.
5089
5090 2018-10-30 Andreas Schwab <schwab@suse.de>
5091
5092 [BZ #23125]
5093 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5094 Don't use tail call.
5095 * elf/tst-unwind-main.c: New file.
5096 * elf/Makefile (tests): Add tst-unwind-main.
5097 (CFLAGS-tst-unwind-main.c): Define.
5098
5099 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5100
5101 [BZ #23791]
5102 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5103 n_cs_precedes to 0.
5104 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5105
5106 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5107
5108 * conform/glibcconform.py: Do not import shutil.
5109 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5110 of mkdtemp.
5111
5112 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5113 critic_missing for versions before 3.4.
5114 * configure: Regenerated.
5115 * manual/install.texi (Tools for Compilation): Document
5116 requirement for Python to build glibc.
5117 * INSTALL: Regenerated.
5118 * Rules [PYTHON]: Make code unconditional.
5119 * benchtests/Makefile [PYTHON]: Likewise.
5120 * conform/Makefile [PYTHON]: Likewise.
5121 * manual/Makefile [PYTHON]: Likewise.
5122 * math/Makefile [PYTHON]: Likewise.
5123
5124 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5125
5126 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5127 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5128 answer to interrupt_operation, return EIEIO instead of EINTR.
5129 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5130 _hurd_intr_rpc_msg_about_to global point to start of controlled
5131 assembly snippet. Make it check canceled flag.
5132 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5133 the _hurd_intr_rpc_msg_about_to point.
5134 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5135 issue, remove cancel flag check.
5136
5137 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5138
5139 * scripts/build-many-glibcs.py: Remove compatibility for missing
5140 os.cpu_count and re.fullmatch.
5141
5142 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5143
5144 [BZ #23822]
5145 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5146 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5147 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5148
5149 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5150
5151 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5152 macro.
5153
5154 2018-10-25 Florian Weimer <fweimer@redhat.com>
5155
5156 [BZ #23562]
5157 [BZ #23821]
5158 XFAIL siginfo_t si_band conform test on sparc64.
5159 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5160 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5161 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5162 (conformtest-xfail-conds): Add sparc64-linux.
5163 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5164 sparc64.
5165 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5166
5167 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5168
5169 * elf/elf.h (NT_MIPS_DSP): New macro.
5170 (NT_MIPS_FP_MODE): Likewise.
5171
5172 2018-10-25 Zong Li <zong@andestech.com>
5173
5174 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5175 name by adding the file extension (.so).
5176
5177 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5178
5179 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5180 (test-xfail-ISO11/threads.h/linknamespace,
5181 test-xfail-ISO11/threads.h/conform): Add.
5182
5183 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5184
5185 * math/gen-libm-test.py: Import os.
5186 (ALL_FLOATS_MANUAL): New constant.
5187 (ALL_FLOATS_SUFFIX): Likewise.
5188 (Ulps.all_functions): New function.
5189 (real_all_ulps): Likewise.
5190 (generate_err_table_sub): Likewise.
5191 (generate_err_table): Likewise.
5192 (main): Handle -s and -m options.
5193 * manual/libm-err-tab.pl: Remove.
5194 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5195 instead of libm-err-tab.pl.
5196 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5197 != no].
5198 * manual/install.texi (Tools for Compilation): Document
5199 requirement for Python to build manual.
5200 * INSTALL: Regenerated.
5201
5202 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5203
5204 * bits/time64.h: New file.
5205 * include/time.h: Replace internal_time_t with __time64_t.
5206 * posix/bits/types (__time64_t): Add.
5207 * stdlib/Makefile: Add bits/time64.h to includes.
5208 * time/tzfile.c: Replace internal_time_t with __time64_t.
5209
5210 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5211
5212 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5213 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5214 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5215 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5216 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5217 prototype.
5218 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5219 * posix/spawn_faction_addclose.c
5220 (__posix_spawn_file_actions_addclose): Add hidden definition.
5221 * posix/spawn_faction_adddup2.c
5222 (__posix_spawn_file_actions_adddup2): Likewise.
5223 * posix/spawn_faction_destroy.c
5224 (__posix_spawn_file_actions_destroy): Likewise.
5225 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5226 Likewise.
5227 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5228 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5229 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5230 Likewise.
5231 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5232 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5233 Likewise.
5234
5235 2018-10-24 Andreas Schwab <schwab@suse.de>
5236
5237 [BZ #18093]
5238 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5239 format cache.
5240 * elf/cache.c (print_cache): Likewise.
5241
5242 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5243
5244 * bits/timesize.h: New file.
5245 * stdlib/Makefile (headers): Add bits/timesize.h.
5246 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5247 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5248 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5249 (__SEM_PAD_AFTER_TIME): Likewise.
5250 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5251 (__SHM_PAD_AFTER_TIME): Likewise.
5252 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5253 (__MSQ_PAD_BEFORE_TIME): Likewise.
5254 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5255 (__SEM_PAD_BEFORE_TIME): Likewise.
5256 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5257 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5258 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5259 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5260 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5261 (__MSQ_PAD_BEFORE_TIME): Likewise.
5262 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5263 (__SEM_PAD_BEFORE_TIME): Likewise.
5264 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5265 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5266 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5267 (__MSQ_PAD_BEFORE_TIME): Likewise.
5268 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5269 (__SEM_PAD_BEFORE_TIME): Likewise.
5270 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5271 (__SHM_PAD_BEFORE_TIME): Likewise.
5272 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5273 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5274 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5275
5276 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5277
5278 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5279 USE_RDTSCP is defined.
5280 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5281 USE_RDTSCP is defined.
5282
5283 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5284
5285 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5286 defined.
5287
5288 [BZ #23709]
5289 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5290 independently of other flags.
5291
5292 2018-10-23 Florian Weimer <fweimer@redhat.com>
5293
5294 * time/tst-mktime2.c (N_STRINGS): Remove.
5295 (set_timezone): New function.
5296 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5297 (mktime_test1): Report localtime failure and check errno value.
5298 Use TEST_COMPARE.
5299 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5300 (do_test): Remove alarm call. Use set_timezone and array_length.
5301
5302 2018-10-23 Andreas Schwab <schwab@suse.de>
5303
5304 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5305 (__start_context): Use END instead of PSEUDO_END.
5306
5307 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5308
5309 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5310 version to 4.19.
5311
5312 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5313 version to 4.19.
5314
5315 [BZ #23793]
5316 * wcsmbs/c32rtomb.c: New file.
5317 * wcsmbs/mbrtoc32.c: Likewise.
5318 * wcsmbs/tst-c32-state.c: Likewise.
5319 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5320 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5321 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5322 (tests): Add tst-c32-state.
5323 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5324 $(gen-locales).
5325
5326 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5327
5328 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5329 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5330
5331 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5332
5333 [BZ #23794]
5334 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5335 pair and return 0 in that case, and use saved character to
5336 interpret following character.
5337 * wcsmbs/tst-c16-surrogate.c: New file.
5338 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5339 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5340 Depend on $(gen-locales)
5341
5342 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5343
5344 [BZ #23562]
5345 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5346 (struct siginfo_t): Use correct type for si_band.
5347
5348 2018-10-19 Florian Weimer <fweimer@redhat.com>
5349
5350 [BZ #23689]
5351 * resource/bits/types/struct_rusage.h (struct rusage): Update
5352 comment on struct. Remove extraneous field comment.
5353
5354 2018-10-18 David S. Miller <davem@davemloft.net>
5355
5356 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5357 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5358 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5359 sysdep_routines in subdir elf.
5360 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5361 version for __vdso_clock_gettime.
5362 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5363 Define.
5364 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5365 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5366
5367 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5368
5369 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5370
5371 * sysdeps/i386/init-arch.h: Removed.
5372 * sysdeps/i386/i586/init-arch.h: Likewise.
5373 * sysdeps/i386/i686/init-arch.h: Likewise.
5374 * sysdeps/i386/i686/hp-timing.h: Likewise.
5375 * sysdeps/x86_64/hp-timing.h: Likewise.
5376 * sysdeps/i386/isa.h: New file.
5377 * sysdeps/i386/i586/isa.h: Likewise.
5378 * sysdeps/i386/i686/isa.h: Likewise.
5379 * sysdeps/x86_64/isa.h: Likewise.
5380 * sysdeps/x86/hp-timing.h: New file.
5381 * sysdeps/x86/init-arch.h: Include <isa.h>.
5382
5383 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5384
5385 * math/libm-test-pow.inc (pow_test_data): Do not allow
5386 divide-by-zero exception for pow(+/- 0, -Inf).
5387
5388 2018-10-17 Zack Weinberg <zackw@panix.com>
5389
5390 * manual/job.texi (Job Control is Optional): Remove node, as
5391 job control has not been optional in quite some time.
5392 (Job Control): Mention briefly that systems older than
5393 POSIX.1-2001 might not support job control.
5394 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5395 defined on systems conforming to POSIX.1-2001.
5396
5397 2018-10-17 Arjun Shankar <arjun@redhat.com>
5398
5399 [BZ #22062]
5400 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5401 indentation.
5402 * (__gconv_read_conf): Mark function static.
5403 * (once): New static variable.
5404 * (__gconv_load_conf): New function.
5405 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5406 * iconv/gconv_db.c (once): Remove static variable.
5407 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5408 __gconv_read_conf.
5409 * (__gconv_find_transform): Likewise.
5410 * iconv/tst-iconv-mt.c: New test.
5411 * iconv/Makefile: Add tst-iconv_mt.
5412
5413 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5414
5415 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5416 bits/shm-pad.h.
5417 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5418 (shmatt_t): Define as __syscall_ulong_t.
5419 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5420 and [__SHM_PAD_AFTER_TIME].
5421 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5422 Define shm_segsz and associated padding based on
5423 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5424 Use __syscall_ulong_t instead of unsigned long int.
5425 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5426 unsigned long int.
5427 [__USE_MISC] (struct shm_info): Likewise.
5428 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5429 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5430 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5431 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5432 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5433 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5434 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5435 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5436 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5437 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5438 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5439
5440 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5441 bits/shmlba.h.
5442 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5443 (SHMLBA): Remove macro.
5444 (__getpagesize): Remove function declaration.
5445 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5446 <bits/shmlba.h>.
5447 (SHMLBA): Remove macro.
5448 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5449 <bits/shmlba.h>.
5450 (SHMLBA): Remove macro.
5451 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5452 <bits/shmlba.h>.
5453 (SHMLBA): Remove macro.
5454 (__getpagesize): Remove function declaration.
5455 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5456 <bits/shmlba.h>.
5457 (SHMLBA): Remove macro.
5458 (__getshmlba): Remove function declaration.
5459 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5460 (SHMLBA): Remove macro.
5461 (__getpagesize): Remove function declaration.
5462 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5463 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5464 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5465 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5466 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5467 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5468 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5469 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5470 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5471 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5472
5473 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5474
5475 [BZ #23275]
5476 * nptl/tst-mutex10.c: New File.
5477 * nptl/Makefile (tests): Add tst-mutex10.
5478 (tst-mutex10-ENV): New variable.
5479 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5480 Ensure that elision path is used if elision is available.
5481 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5482 Likewise.
5483 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5484 Likewise.
5485 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5486 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5487 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5488 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5489 Likewise.
5490 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5491 (__pthread_mutex_cond_lock_adjust): Likewise.
5492 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5493 Likewise.
5494 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5495 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5496 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5497 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5498 Add comments.
5499 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5500 Use atomic_load_relaxed and atomic_store_relaxed.
5501 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5502 Use atomic_store_relaxed.
5503
5504 2018-10-17 Andreas Schwab <schwab@suse.de>
5505
5506 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5507 * crypt/badsalttest.c (TIMEOUT): Likewise.
5508 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5509 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5510 * io/test-lfs.c (TIMEOUT): Likewise.
5511 * libio/tst-atime.c (TIMEOUT): Likewise.
5512 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5513 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5514 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5515 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5516 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5517 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5518 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5519 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5520 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5521 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5522 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5523 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5524 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5525 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5526 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5527 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5528 * nptl/tst-once2.c (TIMEOUT): Likewise.
5529 * nptl/tst-once3.c (TIMEOUT): Likewise.
5530 * nptl/tst-once4.c (TIMEOUT): Likewise.
5531 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5532 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5533 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5534 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5535 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5536 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5537 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5538 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5539 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5540 * posix/tst-chmod.c (TIMEOUT): Likewise.
5541 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5542 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5543 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5544 * posix/tst-regex2.c (TIMEOUT): Likewise.
5545 * posix/tst-waitid.c (TIMEOUT): Likewise.
5546 * rt/tst-aio.c (TIMEOUT): Likewise.
5547 * rt/tst-aio10.c (TIMEOUT): Likewise.
5548 * rt/tst-aio4.c (TIMEOUT): Likewise.
5549 * rt/tst-aio5.c (TIMEOUT): Likewise.
5550 * rt/tst-aio6.c (TIMEOUT): Likewise.
5551 * rt/tst-aio64.c (TIMEOUT): Likewise.
5552 * rt/tst-aio7.c (TIMEOUT): Likewise.
5553 * rt/tst-aio9.c (TIMEOUT): Likewise.
5554 * rt/tst-clock.c (TIMEOUT): Likewise.
5555 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5556 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5557 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5558 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5559 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5560 * rt/tst-timer4.c (TIMEOUT): Likewise.
5561 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5562 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5563 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5564 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5565 * time/tst-ftime.c (TIMEOUT): Likewise.
5566 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5567
5568 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5569
5570 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5571 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5572 for thunderX2.
5573
5574 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5575
5576 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5577 bits/sem-pad.h.
5578 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5579 instead of <bits/wordsize.h>.
5580 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5581 and [__SEM_PAD_AFTER_TIME].
5582 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5583 __syscall_ulong_t instead of unsigned long int.
5584 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5585 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5586 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5587 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5588 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5589 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5590 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5591 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5592 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5593 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5594 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5595
5596 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5597
5598 regex: simplify by using intprops.h
5599 [BZ#23744]
5600 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5601 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5602 intprops.h defines them.
5603
5604 regex: __builtin_expect → __glibc_unlikely
5605 [BZ#23744]
5606 This refactoring was prompted by a problem when the regex code is
5607 used as part of Gnulib and when the builder’s compiler does not grok
5608 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5609 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5610 Although this refactoring does not fix the problem directly,
5611 we might as well have Gawk use the now-preferred glibc style for when
5612 __builtin_expect is unavailable.
5613 * posix/regex_internal.h (BE): Remove.
5614 All uses replaced by __glibc_unlikely or __glibc_likely.
5615
5616 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5617
5618 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5619 bits/msq-pad.h.
5620 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5621 instead of <bits/wordsize.h>.
5622 (msgqnum_t): Define as __syscall_ulong_t.
5623 (msglen_t): Likewise.
5624 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5625 and [__MSQ_PAD_AFTER_TIME].
5626 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5627 __syscall_ulong_t instead of unsigned long int.
5628 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5629 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5630 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5631 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5632 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5633 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5634 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5635 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5636 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5637 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5638 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5639
5640 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5641
5642 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5643 (struct shmid_ds): Condition padding after time fields on
5644 [__WORDSIZE == 32].
5645 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5646 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5647 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5648
5649 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5650 (struct semid_ds): Condition padding after time fields on
5651 [__WORDSIZE == 32].
5652 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5653 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5654 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5655 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5656
5657 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5658 (struct msqid_ds): Condition padding after time fields on
5659 [__WORDSIZE == 32].
5660 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5661 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5662 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5663 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5664
5665 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5666
5667 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5668
5669 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5670
5671 * libio/tst-readline.c (TIMEOUT): Define.
5672
5673 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5674
5675 mktime fix for Gnulib + coreutils
5676 [BZ#23745]
5677 This fix affects only Gnulib. Problem discovered when
5678 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5679 * time/mktime.c:
5680 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5681 Do not define since it is not used. Defining an unused static
5682 function prompts a warning from GCC when Coreutils is configured
5683 with --enable-gcc-warnings.
5684
5685 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5686
5687 * benchtests/scripts/compare_bench.py (main): set float type on
5688 threshold argument.
5689
5690 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5691
5692 [BZ #23740]
5693 * localedata/locales/kl_GL (mon): Update, the relative case.
5694 (alt_mon): Add, fill with month names in the nominative case.
5695 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5696 (d_fmt): Set to "%b %d %Y".
5697
5698 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5699
5700 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5701 <bits/mman-linux.h>.
5702 (PROT_READ): Don't define here.
5703 (PROT_WRITE): Likewise.
5704 (PROT_EXEC): Likewise.
5705 (PROT_NONE): Likewise.
5706 (PROT_GROWSDOWN): Likewise.
5707 (PROT_GROWSUP): Likewise.
5708 (MAP_SHARED): Likewise.
5709 (MAP_PRIVATE): Likewise.
5710 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5711 [__USE_MISC] (MAP_FILE): Likewise.
5712 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5713 [__USE_MISC] (MAP_ANON): Likewise.
5714 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5715 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5716 (MCL_CURRENT): Likewise.
5717 (MCL_FUTURE): Likewise.
5718 (MCL_ONFAULT): Likewise.
5719 [__USE_MISC] (MADV_NORMAL): Likewise.
5720 [__USE_MISC] (MADV_RANDOM): Likewise.
5721 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5722 [__USE_MISC] (MADV_WILLNEED): Likewise.
5723 [__USE_MISC] (MADV_DONTNEED): Likewise.
5724 [__USE_MISC] (MADV_FREE): Likewise.
5725 [__USE_MISC] (MADV_REMOVE): Likewise.
5726 [__USE_MISC] (MADV_DONTFORK): Likewise.
5727 [__USE_MISC] (MADV_DOFORK): Likewise.
5728 [__USE_MISC] (MADV_HWPOISON): Likewise.
5729 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5730 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5731 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5732 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5733 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5734 (__MAP_ANONYMOUS): New macro.
5735 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5736 <bits/mman-linux.h> inclusion.
5737 (MAP_FIXED): Likewise.
5738 (MS_SYNC): Likewise.
5739 (MS_ASYNC): Likewise.
5740 (MS_INVALIDATE): Likewise.
5741 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5742 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5743 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5744 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5745 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5746 [__USE_MISC] (MADV_DODUMP): Likewise.
5747 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5748 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5749
5750 [BZ #23735]
5751 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5752 Define.
5753 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5754 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5755 Add test-nldbl-redirect.
5756 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5757 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5758 $(objpfx)libnldbl_nonshared.a.
5759
5760 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5761
5762 * support/support.h (support_objdir_elf_ldso): New variable.
5763 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5764 * support/Makefile (CFLAGS-support_paths.c): Add definition
5765 for OBJDIR_ELF_LDSO_PATH.
5766 * support/test-container.c (main): Search for the ld.so
5767 which is also used by the testsuite.
5768
5769 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5770
5771 [BZ #20209]
5772 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5773 should be "sap" rather than "sab".
5774 (day): Fix spelling of Sunday, should be "sapaat" rather than
5775 "sabaat".
5776
5777 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5778
5779 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5780
5781 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5782
5783 [BZ #19444]
5784 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5785 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5786 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5787
5788 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5789
5790 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5791
5792 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5793
5794 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5795 Add -mrtm.
5796 (CFLAGS-elision-unlock.c): Likewise.
5797 (CFLAGS-elision-timed.c): Likewise.
5798 (CFLAGS-elision-trylock.c): Likewise.
5799 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5800
5801 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5802
5803 [BZ #21037]
5804 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5805 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5806 new fd_to_filename interface.
5807 * libio/freopen64.c (freopen64): Likewise.
5808 * libio/tst-memstream.h: New file.
5809 * libio/tst-memstream4.c: Likewise.
5810 * libio/tst-wmemstream4.c: Likewise.
5811 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5812 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5813 and remove internal dynamic allocation.
5814
5815 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5816
5817 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5818 (MREMAP_MAYMOVE): Do not define here.
5819 [__USE_GNU] (MREMAP_FIXED): Likewise.
5820 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5821 (MREMAP_MAYMOVE): Define here instead.
5822 [__USE_GNU] (MREMAP_FIXED): Likewise.
5823 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5824 (MREMAP_MAYMOVE): Remove.
5825 [__USE_GNU] (MREMAP_FIXED): Likewise.
5826
5827 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5828
5829 * math/fromfp.h: Do not include <math_private.h>.
5830 * math/s_cacosh_template.c: Likewise.
5831 * math/s_casin_template.c: Likewise.
5832 * math/s_casinh_template.c: Likewise.
5833 * math/s_ccos_template.c: Likewise.
5834 * math/s_cproj_template.c: Likewise.
5835 * math/s_fdim_template.c: Likewise.
5836 * math/s_fmaxmag_template.c: Likewise.
5837 * math/s_fminmag_template.c: Likewise.
5838 * math/s_iseqsig_template.c: Likewise.
5839 * math/s_ldexp_template.c: Likewise.
5840 * math/s_nextdown_template.c: Likewise.
5841 * math/w_log1p_template.c: Likewise.
5842 * math/w_scalbln_template.c: Likewise.
5843 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5844 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5845 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5846 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5847 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5848 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5849 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5850 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5851 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5852 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5853 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5854 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5855 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5856 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5857 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5858 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5859 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5860 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5861 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5862 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5863 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5864 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5865 * sysdeps/ieee754/k_standardf.c: Likewise.
5866 * sysdeps/ieee754/k_standardl.c: Likewise.
5867 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5868 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5869 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5870 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5871 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5872 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5873 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5874 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5875 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5876 * sysdeps/ieee754/s_signgam.c: Likewise.
5877 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5878 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5879 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5880 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5881 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5882 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5883 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5884 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5885 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5886 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5887 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5888 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5889 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5890 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5891 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5892 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5893 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5894 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5895 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5896 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5897 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5898 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5899 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5900 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5901 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5902 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5903 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5904 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5905 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5906 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5907 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5908 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5909 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5910 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5911 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5912 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5913 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5914 <math_private.h>.
5915 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5916
5917 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5918
5919 [BZ #23716]
5920 * sysdeps/i386/dl-cet.c: Removed.
5921 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5922 prototype.
5923 (_dl_runtime_profile_shstk): Likewise.
5924 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5925 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5926
5927 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5928
5929 [BZ #23579]
5930 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5931 do_test_with_invalid_iov): New tests.
5932 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5933 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5934 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5935 errno is ENOSYS.
5936 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5937 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5938 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5939
5940 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5941
5942 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5943 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5944 (MATH_REDIRECT_BINARY_ARGS): New macro.
5945 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5946 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5947 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5948 header inclusion.
5949 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5950 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5951 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5952 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5953 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5954 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5955 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5956 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5957 Likewise.
5958 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5959 Likewise.
5960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5962 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5963 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5965 Likewise.
5966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5967 Likewise.
5968 * sysdeps/generic/math_private_calls.h
5969 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5970 Do not declare and define as an inline function.
5971 * math/divtc3.c (__divtc3): Use copysign functions instead of
5972 __copysign variants.
5973 * math/multc3.c (__multc3): Likewise.
5974 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5975 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5976 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5977 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5978 Likewise.
5979 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5980 (__ieee754_yn): Likewise.
5981 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5982 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5983 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5984 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5985 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5986 (__sin): Likewise.
5987 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5988 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5989 Likewise.
5990 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5991 Likewise.
5992 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5993 Likewise.
5994 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5995 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5996 Likewise.
5997 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5998 (__ieee754_ynf): Likewise.
5999 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6000 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6001 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6002 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6003 Likewise.
6004 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6005 (__ieee754_ynl): Likewise.
6006 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6007 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6008 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6009 Likewise.
6010 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6011 (__ieee754_ynl): Likewise.
6012 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6013 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6014 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6015 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6016 Likewise.
6017 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6018 (__ieee754_ynl)
6019 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6020 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6021 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6022 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6023 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6024
6025 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6026 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6027 using MATH_REDIRECT.
6028 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6029 header inclusion.
6030 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6031 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6032 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6033 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6034 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6035 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6036 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6038 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6039 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6041 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6042 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6043 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6044 (round): Redirect to __round.
6045 (__roundl): Call round instead of __round.
6046 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6047 Remove macro.
6048 [_ARCH_PWR5X] (__roundf): Likewise.
6049 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6050 functions instead of __round variants.
6051 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6052 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6053 Likewise.
6054 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6055 Likewise.
6056 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6057 Likewise.
6058 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6059 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6060 __lroundl.
6061 (__ieee754_expl): Call roundl instead of __roundl.
6062
6063 2018-09-27 Andreas Schwab <schwab@suse.de>
6064
6065 [BZ #23717]
6066 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6067 (do_test): Make st1 static.
6068
6069 2018-09-26 Andreas Schwab <schwab@suse.de>
6070
6071 [BZ #23707]
6072 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6073 * elf/Makefile (tests): Add tst-unwind-ctor.
6074 (modules-names): Add tst-unwind-ctor-lib.
6075 ($(objpfx)tst-unwind-ctor): Depend on
6076 $(objpfx)tst-unwind-ctor-lib.so.
6077
6078 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6079
6080 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6081 file. Most contents moved from ....
6082 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6083 and include <bits/mman-map-flags-generic.h>.
6084 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6085 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6086 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6087 <bits/mman-map-flags-generic.h>.
6088 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6089 macros defined in <bits/mman-map-flags-generic.h>.
6090 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6091 <bits/mman-map-flags-generic.h>.
6092 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6093 defined in <bits/mman-map-flags-generic.h>.
6094
6095 2018-09-26 Andreas Schwab <schwab@suse.de>
6096
6097 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6098 output.
6099
6100 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6101 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6102 Fangrui Song <maskray@google.com>
6103
6104 [BZ #20480]
6105 * config.make.in (have-textrel_ifunc): New define.
6106 * configure.ac: Add check if linker supports textrel relocation with
6107 ifunc.
6108 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6109 tst-ifunc-textrel.
6110 (CFLAGS-tst-ifunc-textrel.c): New rule.
6111 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6112 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6113 * elf/tst-ifunc-textrel.c: New file.
6114
6115 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6116
6117 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6118 <bits/procfs-prregset.h>.
6119 (prgregset_t): Define using __prgregset_t.
6120 (prfpregset_t): Define using __prfpregset_t.
6121 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6122 (sysdep_headers): Add bits/procfs-prregset.h.
6123 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6124 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6125 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6126 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6127
6128 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6129 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6130 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6131 pr_uid and pr_gid.
6132 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6133 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6134 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6135 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6136 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6137 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6138 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6139 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6140 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6141 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6142 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6143 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6144 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6145 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6146 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6147 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6148 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6149 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6150 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6151 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6152 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6153 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6154 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6155 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6156
6157 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6158 AArch64 version. Include <bits/procfs.h>.
6159 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6160 (sysdep_headers): Add bits/procfs.h.
6161 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6162 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6163 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6164 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6165 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6166 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6167 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6168 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6169 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6170 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6171 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6172 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6173 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6174 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6175 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6176 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6177 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6178
6179 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6180
6181 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6182 Use libsupport.
6183
6184 2018-09-25 Arjun Shankar <arjun@redhat.com>
6185
6186 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6187 (__gconv_max_path_elem_len): Likewise.
6188 (__gconv_nmodules): Likewise.
6189 (__gconv_get_path): Likewise.
6190 (path_elem): Move to ...
6191 * iconv/gconv_conf.c: ... here.
6192 (__gconv_get_path): Mark function static.
6193 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6194 * iconv/gconv_open.c: ... here.
6195
6196 2018-09-24 Andreas Schwab <schwab@suse.de>
6197
6198 * scripts/haveversions.awk: New file.
6199 * Makerules ($(common-objpfx)Versions.def)
6200 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6201 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6202 Move rules ...
6203 * Makeconfig ($(common-objpfx)Versions.def)
6204 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6205 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6206 ... here.
6207 ($(common-objpfx)Versions.mk): New rule. Include it.
6208 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6209 Emit error if build-obsolete-nsl = yes.
6210 * manual/install.texi (Configuring and compiling): Describe
6211 --enable-obsolete-nsl as unavaiable after version 2.28.
6212 * INSTALL: Regenerate.
6213
6214 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6215
6216 * NEWS: Add note about new TLE support on powerpc64le.
6217 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6218 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6219 __ununsed1.
6220 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6221 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6222 * sysdeps/powerpc/powerpc32/sysdep.h,
6223 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6224 ABORT_TRANSACTION): Remove macros.
6225 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6226 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6227 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6229 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6230 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6231 usage.
6232 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6233
6234 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6235
6236 [BZ #10425]
6237 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6238 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6239 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6240 which is the same as in it_IT.
6241 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6242 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6243
6244 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6245
6246 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6247 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6248 using MATH_REDIRECT.
6249 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6250 header inclusion.
6251 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6252 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6253 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6254 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6255 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6256 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6258 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6261 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6262 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6263 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6264 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6265 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6266 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6267 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6268 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6269 (ceil): Redirect to __ceil.
6270 (floor): Redirect to __floor.
6271 (trunc): Redirect to __trunc.
6272 (__truncl): Call trunc instead of __trunc.
6273 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6274 Remove macro.
6275 [_ARCH_PWR5X] (__truncf): Likewise.
6276 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6277 trunc functions instead of __trunc variants.
6278 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6279 Likewise.
6280 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6281 Likewise.
6282 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6283 Likewise.
6284 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6285 Likewise.
6286
6287 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6288 [__i586__ || __pentium__].
6289 [__i486__]: Handle explicitly.
6290 (HAS_CPUID): Define to 1 if above macros are undefined.
6291 (HAS_I586): Likewise.
6292 (HAS_I686): Likewise.
6293
6294 2018-09-20 Florian Weimer <fweimer@redhat.com>
6295
6296 * misc/tst-gethostid.c: New file.
6297 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6298 (tst-gethostid): Link with -ldl.
6299
6300 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6301
6302 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6303 value from gethostbyname_r.
6304
6305 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6306
6307 * stdlib/tst-setcontext9.c (f1): Rename to...
6308 (f1a): ... this.
6309 (f1b): New function implementing lower half of f1 in alternate stack.
6310
6311 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6312
6313 Fix mktime localtime offset confusion
6314 [BZ #23603]
6315 * include/time.h (__mktime_internal): The localtime offset is now
6316 of type long int instead of time_t. This is the longstanding type
6317 in glibc, and it is more than enough to represent difference
6318 between localtime and gmtime even if it is 32 bits and time_t is
6319 64. Changing it now will let us avoid an unnecessary change when
6320 time_t is widened to 64 bits on 32-bit platforms.
6321 * time/mktime-internal.h (mktime_offset_t): Now long int.
6322
6323 Merge mktime, timegm from upstream Gnulib
6324 [BZ #23603][BZ #16346]
6325 This fixes some obscure problems with integer overflow.
6326 Although it looks scary, it is almost all a byte-for-byte copy
6327 from Gnulib, and the Gnulib code has been tested reasonably well.
6328 * include/intprops.h: New file, copied from Gnulib.
6329 * include/verify.h, time/mktime-internal.h:
6330 New tiny files, simplified from Gnulib.
6331 * time/mktime.c: Copy from Gnulib. This has the following changes:
6332 Do not include config.h if DEBUG_MKTIME is nonzero.
6333 Include stdbool.h, intprops.h, verify.h.
6334 Include string.h only if needed.
6335 Include stdlib.h on MS-Windows.
6336 Include mktime-internal.h.
6337 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6338 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6339 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6340 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6341 simplify later conditionals; default the others to zero. Use
6342 these conditionals to express only the code needed on the current
6343 platform. In uses of these conditionals, explicitly spell out how
6344 _LIBC affects things, so it’s easier to review from a glibc
6345 viewpoint.
6346 (WRAPV): Remove; no longer needed now that we have
6347 systematic overflow checking.
6348 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6349 compartmentalize tzset issues. Move system-dependent tzsettish
6350 code here from mktime.
6351 (verify): Remove; now done by verify.h. All uses changed.
6352 (long_int): Use a more-conservative definition, to avoid
6353 integer overflow.
6354 (SHR): Remove, replacing with ...
6355 (shr): New function, which means we needn’t worry about side
6356 effects in args, and conversion analysis is simpler.
6357 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6358 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6359 (time_t_avg, time_t_add_ok): Remove.
6360 (mktime_min, mktime_max): New constants.
6361 (leapyear, isdst_differ): Use bool for booleans.
6362 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6363 Use long_int, not time_t, for mktime differences.
6364 (long_int_avg): New function, replacing time_t_avg.
6365 INT_ADD_WRAPV replaces time_t_add_ok.
6366 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6367 All uses changed.
6368 (convert_time): New function.
6369 (ranged_convert): Use it.
6370 (__mktime_internal): Last arg now points to mktime_offset_t, not
6371 time_t. All uses changed. This is a no-op on glibc, where
6372 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6373 offset guess. Directly check for integer overflow instead of
6374 using a heuristic that works only 99.9...% of the time.
6375 Access *OFFSET only once, to avoid an unlikely race if the
6376 compiler delays a load and if this cascades into a signed integer
6377 overflow.
6378 (mktime): Move tzsettish code to my_tzset, and move
6379 localtime_offset to within mktime so that it doesn’t
6380 need a separate ifdef.
6381 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6382 instead of localtime.
6383 * time/timegm.c: Copy from Gnulib. This has the following changes:
6384 Include mktime-internal.h.
6385 [!_LIBC]: Include config.h and time.h. Do not include
6386 timegm.h or time_r.h. Make __mktime_internal a macro,
6387 and include mktime-internal.h to get its declaration.
6388 (timegm): Temporary is now mktime_offset_t, not time_t.
6389 This affects only Gnulib.
6390
6391 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6392
6393 [BZ #23637]
6394 * string/test-strstr.c (pr23637): New function.
6395 (test_main): Add tests with longer needles.
6396 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6397 * string/strstr.c (AVAILABLE): Likewise.
6398
6399 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6400
6401 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6402
6403 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6404
6405 * NEWS: Mention pow improvements.
6406 * math/Makefile (type-double-routines): Add e_pow_log_data.
6407 * sysdeps/generic/math_private.h (__exp1): Remove.
6408 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6409 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6410 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6411 contraction.
6412 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6413 (exp_inline): Remove.
6414 (__ieee754_exp): Only single double input is handled.
6415 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6416 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6417 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6418 (__pow_log_data): Define.
6419 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6420 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6421 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6422 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6423 contraction.
6424 (CFLAGS-e_pow-fma4.c): Likewise.
6425
6426 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6427
6428 Simplify tzfile fstat failure code
6429 [BZ #21716]
6430 * time/tzfile.c (__tzfile_read): Simplify slightly.
6431
6432 Fix tzfile low-memory assertion failure
6433 [BZ #21716]
6434 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6435 when registering time zone abbreviations.
6436
6437 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6438
6439 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6440 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6441 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6442 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6443 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6444 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6445 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6446 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6447 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6448
6449 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6450 __ceil.
6451 (__ceill): Call ceil instead of __ceil.
6452 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6453 __floor.
6454 (__floorl): Call floor instead of __floor.
6455
6456 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6457
6458 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6459 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6460 using MATH_REDIRECT.
6461 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6462 header inclusion.
6463 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6464 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6465 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6466 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6467 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6468 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6469 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6470 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6471 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6472 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6475 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6476 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6477 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6478 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6479 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6480 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6481 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6482 Remove macro.
6483 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6484 functions instead of __ceil variants.
6485 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6486 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6487 Likewise.
6488 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6489 Likewise.
6490 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6491 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6492 Likewise.
6493 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6494 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6495
6496 [BZ #21286]
6497 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6498 constant.
6499 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6500 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6501 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6502 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6503 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6504 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6505 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6506 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6507 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6508 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6509 (ILL_BADIADDR): Remove constant.
6510 (TRAP_BRANCH): Likewise.
6511 (TRAP_HWBKPT): Likewise.
6512
6513 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6514
6515 [BZ #23656]
6516 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6517 Remove [_MIPS_SIM = _ABIN32] conditional case.
6518 (struct elf_prpsinfo): Likewise.
6519
6520 [BZ #23649]
6521 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6522 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6523 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6524 Likewise.
6525 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6526 elf_prpsinfo): Likewise.
6527 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6528 elf_prpsinfo): Likewise.
6529 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6530 Likewise.
6531
6532 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6533 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6534 using MATH_REDIRECT.
6535 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6536 header inclusion.
6537 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6538 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6539 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6540 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6541 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6542 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6543 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6544 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6545 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6546 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6547 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6548 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6549 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6550 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6551 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6552 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6553 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6554 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6555 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6558 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6559 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6560 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6561 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6562 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6563 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6564 __rint variants.
6565 * math/e_scalbf.c (invalid_fn): Likewise.
6566 * math/e_scalbl.c (invalid_fn): Likewise.
6567 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6568 Likewise.
6569 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6570 Likewise.
6571 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6572 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6573 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6574 Likewise.
6575 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6576 Likewise.
6577 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6578 Likewise.
6579 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6580 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6581
6582 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6583 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6584 New macro.
6585 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6586 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6587 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6588 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6589 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6590 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6591 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6592 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6593 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6594 && !NO_MATH_REDIRECT] (floor): Likewise.
6595 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6596 header inclusion.
6597 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6598 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6599 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6600 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6601 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6602 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6603 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6604 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6607 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6609 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6610 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6611 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6612 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6613 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6614 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6615 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6616 Remove macro.
6617 [_ARCH_PWR5X] (__floorf): Likewise.
6618 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6619 inline function.
6620 [__SSE4_1__] (__floorf): Likewise.
6621 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6622 instead of __floor variants.
6623 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6624 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6625 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6626 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6627 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6628 * math/w_tgamma_compat.c (__tgamma): Likewise.
6629 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6630 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6631 * math/w_tgammal_compat.c (__tgammal): Likewise.
6632 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6633 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6634 Likewise.
6635 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6636 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6637 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6638 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6639 Likewise.
6640 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6641 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6642 Likewise.
6643 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6644 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6645 Likewise.
6646 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6647 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6648 Likewise.
6649 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6650 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6651 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6652 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6653 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6654 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6655
6656 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6657
6658 * elf/Makefile (modules-names-tests): New variable.
6659
6660 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6661
6662 * NEWS: Mention log2 improvements.
6663 * math/Makefile (type-double-routines): Add e_log2_data.
6664 * sysdeps/i386/fpu/e_log2_data.c: New file.
6665 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6666 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6667 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6668 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6669 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6670 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6671
6672 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6673
6674 * NEWS: Mention log improvement.
6675 * math/Makefile (type-double-routines): Add e_log_data.
6676 * sysdeps/i386/fpu/e_log_data.c: New file.
6677 * sysdeps/ia64/fpu/e_log_data.c: New file.
6678 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6679 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6680 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6681 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6682 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6683 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6684
6685 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6686 Xuepeng Guo <xuepeng.guo@intel.com>
6687
6688 [BZ #23606]
6689 * sysdeps/i386/start.S: Include <sysdep.h>
6690 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6691 enabled. Add cfi_undefined (eip).
6692
6693 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6694
6695 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6696 (MOVQ): Likewise.
6697 (EXTRACT_WORDS64): Likewise.
6698 (INSERT_WORDS64): Likewise.
6699 (GET_FLOAT_WORD): Likewise.
6700 (SET_FLOAT_WORD): Likewise.
6701
6702 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6703 argument.
6704 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6705 build, but not for second build if --full-gcc. Use
6706 --enable-languages=all for second build if --full-gcc.
6707 (get_parser): Add --full-gcc option.
6708 (main): Update call to Context.
6709
6710 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6711
6712 [BZ #10797]
6713 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6714 Single Quotation Mark).
6715 (thousands_sep): Likewise.
6716 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6717 * localedata/locales/it_IT (thousands_sep): Use ".".
6718 (grouping): Use "3;3".
6719
6720 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6721
6722 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6723 x86_64 and i686 configs using --enable-obsolete-rpc
6724 --enable-obsolete-nsl.
6725
6726 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6727
6728 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6729
6730 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6731
6732 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6733 Increment size of new_argv by one.
6734
6735 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6736
6737 [BZ #17426]
6738 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6739 * localedata/locales/ar_IN (d_fmt): Likewise.
6740 * localedata/locales/bhb_IN (d_fmt): Likewise.
6741 * localedata/locales/bho_IN (d_fmt): Likewise.
6742 * localedata/locales/bn_BD (d_fmt): Likewise.
6743 * localedata/locales/bn_IN (d_fmt): Likewise.
6744 * localedata/locales/doi_IN (d_fmt): Likewise.
6745 * localedata/locales/gu_IN (d_fmt): Likewise.
6746 * localedata/locales/hi_IN (d_fmt): Likewise.
6747 * localedata/locales/hne_IN (d_fmt): Likewise.
6748 * localedata/locales/kn_IN (d_fmt): Likewise.
6749 * localedata/locales/mag_IN (d_fmt): Likewise.
6750 * localedata/locales/mai_IN (d_fmt): Likewise.
6751 * localedata/locales/mjw_IN (d_fmt): Likewise.
6752 * localedata/locales/ml_IN (d_fmt): Likewise.
6753 * localedata/locales/mni_IN (d_fmt): Likewise.
6754 * localedata/locales/mr_IN (d_fmt): Likewise.
6755 * localedata/locales/pa_IN (d_fmt): Likewise.
6756 * localedata/locales/raj_IN (d_fmt): Likewise.
6757 * localedata/locales/sat_IN (d_fmt): Likewise.
6758 * localedata/locales/sd_IN (d_fmt): Likewise.
6759 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6760 * localedata/locales/ta_IN (d_fmt): Likewise.
6761 * localedata/locales/ta_LK (d_fmt): Likewise.
6762 * localedata/locales/tcy_IN (d_fmt): Likewise.
6763 * localedata/locales/ur_IN (d_fmt): Likewise.
6764
6765 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6766 * localedata/locales/ks_IN (d_fmt): Likewise.
6767 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6768
6769 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6770 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6771 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6772 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6773
6774 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6775
6776 * NEWS: Mention exp and exp2 improvements.
6777 * math/Makefile (libm-support): Remove t_exp.
6778 (type-double-routines): Add math_err and e_exp_data.
6779 * sysdeps/aarch64/libm-test-ulps: Update.
6780 * sysdeps/arm/libm-test-ulps: Update.
6781 * sysdeps/i386/fpu/e_exp_data.c: New file.
6782 * sysdeps/i386/fpu/math_err.c: New file.
6783 * sysdeps/i386/fpu/t_exp.c: Remove.
6784 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6785 * sysdeps/ia64/fpu/math_err.c: New file.
6786 * sysdeps/ia64/fpu/t_exp.c: Remove.
6787 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6788 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6789 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6790 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6791 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6792 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6793 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6794 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6795 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6796 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6797 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6798 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6799 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6800 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6801 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6802 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6803
6804 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6805
6806 * sysdeps/alpha/fpu/math_private.h: Remove.
6807
6808 * sysdeps/generic/math_private.h
6809 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6810 Move this inline function ....
6811 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6812 * include/math.h [!_ISOMAC]: To here....
6813
6814 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6815
6816 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6817 code ....
6818 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6819 * include/fenv.h [!_ISOMAC]: ... to here.
6820 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6821 (feraiseexcept): Likewise.
6822 * math/fromfp.h: Do not include <fenv_private.h>.
6823 * math/s_cexp_template.c: Likewise.
6824 * math/s_csin_template.c: Likewise.
6825 * math/s_csinh_template.c: Likewise.
6826 * math/s_ctan_template.c: Likewise.
6827 * math/s_ctanh_template.c: Likewise.
6828 * math/s_iseqsig_template.c: Likewise.
6829 * math/w_acos_compat.c: Likewise.
6830 * math/w_acosf_compat.c: Likewise.
6831 * math/w_acosl_compat.c: Likewise.
6832 * math/w_asin_compat.c: Likewise.
6833 * math/w_asinf_compat.c: Likewise.
6834 * math/w_asinl_compat.c: Likewise.
6835 * math/w_j0_compat.c: Likewise.
6836 * math/w_j0f_compat.c: Likewise.
6837 * math/w_j0l_compat.c: Likewise.
6838 * math/w_j1_compat.c: Likewise.
6839 * math/w_j1f_compat.c: Likewise.
6840 * math/w_j1l_compat.c: Likewise.
6841 * math/w_jn_compat.c: Likewise.
6842 * math/w_jnf_compat.c: Likewise.
6843 * math/w_log10_compat.c: Likewise.
6844 * math/w_log10f_compat.c: Likewise.
6845 * math/w_log10l_compat.c: Likewise.
6846 * math/w_log2_compat.c: Likewise.
6847 * math/w_log2f_compat.c: Likewise.
6848 * math/w_log2l_compat.c: Likewise.
6849 * math/w_log_compat.c: Likewise.
6850 * math/w_logf_compat.c: Likewise.
6851 * math/w_logl_compat.c: Likewise.
6852 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6853 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6854 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6855 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6856 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6857 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6858 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6859 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6860 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6861 * sysdeps/ieee754/k_standardl.c: Likewise.
6862 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6863 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6864 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6865 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6866 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6868 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6869 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6870 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6871 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6872 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6873 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6874 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6875 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6876 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6877 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6878 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6879 * math/w_ilogb_template.c: Include <fenv.h> instead of
6880 <fenv_private.h>.
6881 * math/w_llogb_template.c: Likewise.
6882 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6883 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6884
6885 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6886
6887 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6888 * math/fromfp.h: Include <fenv_private.h>.
6889 * math/math-narrow.h: Likewise.
6890 * math/s_cexp_template.c: Likewise.
6891 * math/s_csin_template.c: Likewise.
6892 * math/s_csinh_template.c: Likewise.
6893 * math/s_ctan_template.c: Likewise.
6894 * math/s_ctanh_template.c: Likewise.
6895 * math/s_iseqsig_template.c: Likewise.
6896 * math/w_acos_compat.c: Likewise.
6897 * math/w_acosf_compat.c: Likewise.
6898 * math/w_acosl_compat.c: Likewise.
6899 * math/w_asin_compat.c: Likewise.
6900 * math/w_asinf_compat.c: Likewise.
6901 * math/w_asinl_compat.c: Likewise.
6902 * math/w_ilogb_template.c: Likewise.
6903 * math/w_j0_compat.c: Likewise.
6904 * math/w_j0f_compat.c: Likewise.
6905 * math/w_j0l_compat.c: Likewise.
6906 * math/w_j1_compat.c: Likewise.
6907 * math/w_j1f_compat.c: Likewise.
6908 * math/w_j1l_compat.c: Likewise.
6909 * math/w_jn_compat.c: Likewise.
6910 * math/w_jnf_compat.c: Likewise.
6911 * math/w_llogb_template.c: Likewise.
6912 * math/w_log10_compat.c: Likewise.
6913 * math/w_log10f_compat.c: Likewise.
6914 * math/w_log10l_compat.c: Likewise.
6915 * math/w_log2_compat.c: Likewise.
6916 * math/w_log2f_compat.c: Likewise.
6917 * math/w_log2l_compat.c: Likewise.
6918 * math/w_log_compat.c: Likewise.
6919 * math/w_logf_compat.c: Likewise.
6920 * math/w_logl_compat.c: Likewise.
6921 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6922 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6923 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6924 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6925 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6926 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6927 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6928 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6929 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6930 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6931 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6932 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6933 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6934 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6935 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6937 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6939 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6940 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6941 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6942 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6943 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6944 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6945 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6946 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6947 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6948 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6949 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6950 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6951 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6952 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6953 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6954 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6955 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6956 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6957 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6958 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6959 * sysdeps/ieee754/k_standardl.c: Likewise.
6960 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6961 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6962 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6963 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6964 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6965 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6966 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6967 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6968 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6969 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6970 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6971 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6974 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6975 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6976 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6977 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6978 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6980 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6981 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6982 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6983 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6984 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6985 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6986 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6987 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6988 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6989 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6990 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6991 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6992 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6993 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6994 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6995 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6996 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6997 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6998 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6999 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7000 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7001 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7002 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7003 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7004 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7005 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7006 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7007 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7008 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7009 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7010 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7011 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7012 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7013 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7014 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7015 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7016 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7017 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7018 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7019 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7020 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7021 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7022 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7023 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7024 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7025 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7026 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7027 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7028 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7029 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7030 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7031
7032 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7033
7034 [BZ #20271]
7035 * include/stdio.h (__libc_fatal): Mention newline in comment.
7036 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7037 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7038 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7039 * nss/nsswitch.c (__nss_next2): Likewise.
7040 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7041 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7042 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7043 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7044 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7045 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7046 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7047 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7048 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7049 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7050 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7051 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7052 (__netlink_assert_response): Likewise.
7053
7054 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7055
7056 * conform/glibcconform.py: New file.
7057 * conform/list-header-symbols.py: Likewise.
7058 * conform/list-header-symbols.pl: Remove.
7059 * conform/Makefile (tests-special): Only add linknamespace tests
7060 if [PYTHON].
7061 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7062
7063 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7064
7065 [BZ #23597]
7066 * support/Makefile (libsupport-routines): Add
7067 support_copy_file_range and xcopy_file_range.
7068 * support/support.h: Include <sys/types.h>.
7069 (support_copy_file_range): New prototype.
7070 * support/support_copy_file_range.c: New file. Copied and
7071 modified from io/copy_file_range-compat.c.
7072 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7073 instead of copy_file_range.
7074 * support/xcopy_file_range.c: New file.
7075 * support/xunistd.h (xcopy_file_range): New prototype.
7076
7077 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7078
7079 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7080 xpthread_create and xpthread_join.
7081
7082 2018-08-30 Florian Weimer <fweimer@redhat.com>
7083
7084 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7085
7086 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7087
7088 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7089 if malloc fails.
7090
7091 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7092
7093 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7094 and minus_oflow as non-finite.
7095
7096 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7097
7098 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7099 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7100 moved to fenv_private.h except for ...
7101 (TOINT_INTRINSICS): Kept in math_private.h.
7102 (roundtoint): Likewise.
7103 (converttoint): Likewise.
7104 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7105 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7106 * sysdeps/arm/math_private.h: Remove.
7107 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7108 ....
7109 * sysdeps/generic/math_private.h: ... this file. Include
7110 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7111 Include <fenv_private.h>. Remove functions and macros moved to
7112 fenv_private.h.
7113 * sysdeps/i386/fpu/math_private.h: Remove.
7114 * sysdeps/mips/math_private.h: Move to ....
7115 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7116 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7117 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7118 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7119 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7120 * sysdeps/powerpc/fpu/math_private.h: Do not include
7121 <fenv_private.h>.
7122 * sysdeps/riscv/rvf/math_private.h: Move to ....
7123 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7124 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7125 <fenv_private.h>.
7126 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7127 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7128 * sysdeps/sparc/fpu/math_private.h: Remove.
7129 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7130 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7131 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7132 <fenv_private.h>.
7133 * sysdeps/x86_64/fpu/math_private.h: Do not include
7134 <sysdeps/i386/fpu/fenv_private.h>.
7135
7136 2018-08-28 Florian Weimer <fweimer@redhat.com>
7137
7138 [BZ #23578]
7139 * posix/tst-regcomp-truncated.c: New file.
7140 * posix/Makefile (tests): Add it.
7141 (tst-regcomp-truncated.out): Depend on generated locales.
7142
7143 2018-08-28 Florian Weimer <fweimer@redhat.com>
7144
7145 * support/test-container.c (main): Treat unshare failure with
7146 EPERM as an unsupported test.
7147
7148 2018-08-28 Florian Weimer <fweimer@redhat.com>
7149
7150 [BZ #23520]
7151 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7152 * nscd/netgroupcache.c
7153 (addgetnetgrentX): Add tofreep parameter. Do not free
7154 heap-allocated buffer.
7155 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7156 (addgetnetgrentX_ignore): New function.
7157 (addgetnetgrent): Call it.
7158 (readdgetnetgrent): Likewise.
7159
7160 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7161
7162 * string/memmem.c: Use memcmp for first match.
7163
7164 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7165
7166 [BZ #17426]
7167 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7168
7169 2018-08-27 DJ Delorie <dj@redhat.com>
7170
7171 * support/Makefile (others): Don't list programs explicitly as a
7172 dependency of "others".
7173
7174 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7175
7176 * sysdeps/generic/math-tests-trap-force.h: New file.
7177 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7178 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7179 * sysdeps/powerpc/math-tests.h: Remove file.
7180 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7181
7182 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7183 Torvald Riegel <triegel@redhat.com>
7184
7185 [BZ #23538]
7186 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7187 Update r to include the set wake-request flag if waiters are
7188 remaining after spinning.
7189
7190 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7191
7192 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7193
7194 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7195
7196 [BZ #23578]
7197 regex: fix uninitialized memory access
7198 I introduced this bug into gnulib in commit
7199 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7200 eventually it was merged into glibc. The bug was found by
7201 project-repo <bugs@feusi.co> and reported here:
7202 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7203 Diagnosis and draft fix reported by Assaf Gordon here:
7204 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7205 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7206 * posix/regex_internal.c (build_wcs_upper_buffer):
7207 Fix bug when mbrtowc returns 0.
7208
7209 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7210
7211 * po/be.po: Update translation.
7212
7213 2018-08-24 DJ Delorie <dj@delorie.com>
7214
7215 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7216 $(libunwind).
7217
7218 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7219
7220 [BZ #23400]
7221 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7222 create temporary files in source tree.
7223
7224 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7225
7226 * sysdeps/generic/math-tests-trap.h: New file.
7227 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7228 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7229 * sysdeps/aarch64/math-tests.h: Remove file.
7230 * sysdeps/arm/math-tests.h: Likewise.
7231 * sysdeps/riscv/math-tests.h: Likewise.
7232 * sysdeps/aarch64/math-tests-trap.h: New file.
7233 * sysdeps/arm/math-tests-trap.h: Likewise.
7234 * sysdeps/riscv/math-tests-trap.h: Likewise.
7235
7236 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7237
7238 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7239 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7240 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7241 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7242 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7243 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7244 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7245 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7246 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7247 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7248 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7249 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7250 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7251 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7252 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7253 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7254 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7255 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7256
7257 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7258
7259 * sysdeps/generic/math-tests-exceptions.h: New file.
7260 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7261 (EXCEPTION_TESTS_float): Do not define here.
7262 (EXCEPTION_TESTS_double): Likewise.
7263 (EXCEPTION_TESTS_long_double): Likewise.
7264 (EXCEPTION_TESTS_float128): Likewise.
7265 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7266 Likewise.
7267 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7268 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7269 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7270 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7271 * sysdeps/mips/math-tests.h: Likewise.
7272 * sysdeps/nios2/math-tests.h: Likewise.
7273 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7274 (EXCEPTION_TESTS_float): Do not define here.
7275 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7276 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7277 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7278
7279 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7280
7281 * NEWS: Move optimized sinf entry to 2.29.
7282
7283 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7284
7285 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7286
7287 2018-08-22 DJ Delorie <dj@redhat.com>
7288
7289 * Makefile (testroot.pristine): New rules to initialize the
7290 test-in-container "testroot".
7291 * Makerules (all-testsuite): Add tests-container.
7292 * Rules (tests-expected): Add tests-container.
7293 (binaries-all-tests): Likewise.
7294 (tests-container): New, run these tests in the testroot container.
7295 * support/Makefile (others): Add *-container, support_paths.c,
7296 xmkdirp, and links-dso-program.
7297 * support/links-dso-program-c.c: New.
7298 * support/links-dso-program.cc: New.
7299 * support/test-container.c: New.
7300 * support/shell-container.c: New.
7301 * support/echo-container.c: New.
7302 * support/true-container.c: New.
7303 * support/xmkdirp.c: New.
7304 * support/xsymlink.c: New.
7305 * support/support_paths.c: New.
7306 * support/support.h: Add support paths prototypes.
7307 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7308
7309 * nss/tst-nss-test3.c: Convert to test-in-container.
7310 * nss/tst-nss-test3.root/: New.
7311
7312 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7313
7314 regex: port Gnulib code to z/OS POSIX environment
7315 Problem reported by Arnold Robbins in:
7316 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7317 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7318 Undef.
7319
7320 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7321
7322 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7323 (ROUNDING_TESTS_double): Remove.
7324 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7325 (ROUNDING_TESTS_double): Remove.
7326 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7327 (ROUNDING_TESTS_double): Remove.
7328 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7329 (ROUNDING_TESTS_float): Remove.
7330 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7331 (ROUNDING_TESTS_float): Remove.
7332 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7333 (ROUNDING_TESTS_float): Remove.
7334 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7335 !TEST_MATHVEC here.
7336 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7337 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7338
7339 * sysdeps/generic/math-tests-rounding.h: New file.
7340 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7341 (ROUNDING_TESTS_float): Do not define here.
7342 (ROUNDING_TESTS_double): Likewise.
7343 (ROUNDING_TESTS_long_double): Likewise.
7344 (ROUNDING_TESTS_float128): Likewise.
7345 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7346 (ROUNDING_TESTS_double): Undefine before defining.
7347 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7348 (ROUNDING_TESTS_double): Undefine before defining.
7349 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7350 (ROUNDING_TESTS_double): Undefine before defining.
7351 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7352 (ROUNDING_TESTS_float): Undefine before defining.
7353 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7354 (ROUNDING_TESTS_float): Undefine before defining.
7355 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7356 (ROUNDING_TESTS_float): Undefine before defining.
7357 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7358 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7359 not define here.
7360 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7361 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7362 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7363 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7364 (ROUNDING_TESTS_float): Do not define here.
7365 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7366 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7367 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7368 (ROUNDING_TESTS_float): Likewise.
7369 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7370 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7371 * sysdeps/mips/math-tests.h [__mips_soft_float]
7372 (ROUNDING_TESTS_float): Likewise.
7373 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7374 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7375 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7376 (ROUNDING_TESTS_double): Likewise.
7377 (ROUNDING_TESTS_long_double): Likewise.
7378
7379 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7380
7381 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7382 (PF_XDP): New macro.
7383 (AF_XDP): New macro.
7384 (SOL_XDP): New macro.
7385
7386 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7387
7388 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7389 (TCP_INQ): Likewise.
7390 (TCP_CM_INQ): Likewise.
7391 (TCP_REPAIR_ON): Likewise.
7392 (TCP_REPAIR_OFF): Likewise.
7393 (TCP_REPAIR_OFF_NO_WP): Likewise.
7394 (struct tcp_zerocopy_receive): New type.
7395
7396 2018-08-21 Florian Weimer <fweimer@redhat.com>
7397
7398 * support/support.h (support_descriptor_supports_holes): Declare.
7399 * support/Makefile (libsupport-routines): Add
7400 support_descriptor_supports_holes.
7401 * support/support_descriptor_supports_holes.c: New file.
7402 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7403 and stop testing if holes are not supported.
7404 * io/test-lfs.c (do_prepare): Likewise.
7405 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7406 Likewise.
7407 * timezone/tst-tzset.c (create_tz_file): Likewise.
7408 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7409 variable.
7410 (do_prepare): Set it.
7411 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7412
7413 2018-08-21 Florian Weimer <fweimer@redhat.com>
7414
7415 [BZ #17248]
7416 * Makeconfig (+cflags): Do not sort (and deduplicate).
7417
7418 2018-08-21 Florian Weimer <fweimer@redhat.com>
7419
7420 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7421 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7422
7423 2018-08-20 Florian Weimer <fweimer@redhat.com>
7424
7425 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7426 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7427
7428 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7429
7430 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7431 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7432 and ssi_arch members.
7433
7434 * elf/elf.c (NT_VMCOREDD): New macro.
7435 (AT_MINSIGSTKSZ): Likewise.
7436
7437 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7438
7439 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7440 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7441 s_cosf-ppc64 and s_cosf-power8.
7442 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7443 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7444 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7445 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7450 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7452 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7453 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7454
7455 2018-08-17 Florian Weimer <fweimer@redhat.com>
7456
7457 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7458
7459 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7460
7461 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7462
7463 2018-08-16 Florian Weimer <fweimer@redhat.com>
7464
7465 * configure.ac: Add --with-nonshared-cflags option.
7466 * config.make.in (extra-nonshared-cflags): Set variable.
7467 * Makeconfig (CFLAGS-.oS): Use it.
7468 * manual/install.texi (Configuring and compiling): Document
7469 --with-nonshared-cflags.
7470 * configure: Regenerate.
7471 * INSTALL: Likewise.
7472
7473 2018-08-16 Florian Weimer <fweimer@redhat.com>
7474
7475 * Makeconfig (ASFLAGS): Always append required assembler flags.
7476
7477 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7478
7479 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7480 (malloc_consolidate): Likewise.
7481
7482 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7483
7484 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7485
7486 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7487
7488 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7489 every strlen call.
7490
7491 * benchtests/bench-strlen.c: Print performance numbers in json.
7492
7493 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7494
7495 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7496 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7497 only for little endian.
7498 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7499 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7500 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7501 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7502 Add check for little endian.
7503 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7504 (__strcmp_power9): Add check for little endian.
7505 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7506 Add check for little endian.
7507 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7508 (__strncmp_power9): Add check for little endian.
7509 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7510 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7511 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7512 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7513 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7514
7515 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7516
7517 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7518 [!STRLEN](STRLEN): Set to __strlen.
7519 * sysdeps/aarch64/multiarch/strlen.c: New file.
7520 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7521 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7522 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7523 (__libc_ifunc_impl_list): Add strlen.
7524 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7525 strlen_generic and strlen_asimd.
7526
7527 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7528
7529 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7530 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7531 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7532
7533 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7534
7535 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7536
7537 2018-08-14 Florian Weimer <fweimer@redhat.com>
7538
7539 [BZ #23519]
7540 * include/stdio.h (__vfxprintf): Declare.
7541 * stdio-common/fxprintf.c (__vfxprintf): New function.
7542 (__fxprintf): Call it.
7543 * misc/err.c (convert_and_print): Remove function.
7544 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7545 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7546 * misc/Makefile (tests): Add tst-warn-wide.
7547 * misc/tst-warn-wide.c: New file.
7548
7549 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7550 Szabolcs Nagy <szabolcs.nagy@arm.com>
7551
7552 * NEWS: Mention sinf, cosf, sincosf.
7553 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7554 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7555 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7556 constants rather than including generic sincosf.h.
7557 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7558 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7559 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7560 (reduced_cos): Remove.
7561 (sinf_poly): New function.
7562 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7563
7564 2018-08-14 Florian Weimer <fweimer@redhat.com>
7565
7566 [BZ #23521]
7567 [BZ #23522]
7568 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7569 processing, bail out if no room, and close the stream before
7570 returning ERANGE.
7571 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7572 (tst-nss-files-alias-leak): Link with libdl.
7573 (tst-nss-files-alias-leak.out): Depend on nss_files.
7574
7575 * nss/tst-nss-files-alias-leak.c: New file.
7576
7577 2018-08-14 Florian Weimer <fweimer@redhat.com>
7578
7579 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7580 server_user, stat_user.
7581
7582 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7583
7584 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7585 version to 4.18.
7586 (io_pgetevents): New syscall.
7587 (rseq): Likewise.
7588
7589 * manual/install.texi (Configuring and compiling): Do not list
7590 tools used for testing pretty printers here.
7591 (Tools for Compilation): List Python, PExpect and GDB here.
7592 Update descriptions of uses of Perl and Python.
7593 * INSTALL: Regenerate.
7594
7595 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7596 version to 4.18.
7597
7598 2018-08-13 Florian Weimer <fweimer@redhat.com>
7599
7600 * misc/error.c (error): Add missing va_end call.
7601 (error_at_line): Likewise.
7602
7603 2018-08-13 Florian Weimer <fweimer@redhat.com>
7604
7605 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7606
7607 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7608
7609 * benchtests/scripts/benchout.schema.json (properties): Add
7610 new properties.
7611
7612 * benchtests/bench-skeleton.c (main): Add duration and
7613 iterations attributes.
7614
7615 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7616
7617 regex: Gnulib unibyte RRI uses bytes not chars
7618 Adjust the non-glibc code to agree with what Gawk needs for
7619 rational range interpretation (RRI) for regular expression ranges.
7620 In unibyte locales, Gawk wants ranges to use the underlying byte
7621 rather than the character code point. This change does not affect
7622 glibc proper.
7623 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7624 In unibyte locales, use the byte value rather than
7625 running it through btowc.
7626
7627 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7628
7629 * sysdeps/generic/math-tests-snan.h: New file.
7630 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7631 (SNAN_TESTS_float): Do not define here.
7632 (SNAN_TESTS_double): Likewise.
7633 (SNAN_TESTS_long_double): Likewise.
7634 (SNAN_TESTS_float128): Likewise.
7635 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7636 * sysdeps/i386/fpu/math-tests.h: Remove file.
7637 * sysdeps/ia64/math-tests-snan.h: New file.
7638 * sysdeps/ia64/math-tests.h: Remove file.
7639 * sysdeps/x86/math-tests.h: Likewise.
7640 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7641
7642 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7643 Szabolcs Nagy <szabolcs.nagy@arm.com>
7644
7645 * math/Makefile: Add s_sincosf_data.c.
7646 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7647 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7648 (sincosf_poly): Likewise.
7649 (reduce_small): Likewise.
7650 (reduce_large): Likewise.
7651 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7652 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7653 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7654 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7655
7656 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7657 Szabolcs Nagy <szabolcs.nagy@arm.com>
7658
7659 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7660 (converttoint): Use lround.
7661 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7662 document the semantics when TOINT_INTRINSICS is set.
7663 (converttoint): Likewise.
7664 (TOINT_RINT): Remove.
7665 (TOINT_SHIFT): Remove.
7666 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7667 path.
7668
7669 2018-08-10 Florian Weimer <fweimer@redhat.com>
7670
7671 [BZ #23497]
7672 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7673 function.
7674 (__old_getdents64): Use getdents64. Convert entries without
7675 moving them.
7676 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7677 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7678 tst-readdir64-compat.
7679
7680 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7681
7682 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7683 Fix unwind.
7684
7685 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7686
7687 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7688 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7689 code to s390x-mcount.h and #include it.
7690 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7691 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7692 (__fentry__): Add.
7693
7694 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7695
7696 * stdlib/Versions: Remove __fentry__.
7697 * sysdeps/i386/Versions: Add __fentry__.
7698 * sysdeps/x86_64/Versions: Add __fentry__.
7699
7700 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7701
7702 * sysdeps/s390/Makefile: Register the new tests.
7703 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7704 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7705 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7706 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7707 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7708 * sysdeps/s390/tst-dl-runtime.c: New file.
7709
7710 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7711
7712 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7713 Do not clobber R0.
7714
7715 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7716
7717 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7718 Do not clobber R0.
7719
7720 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7721
7722 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7723 Do not clobber R0.
7724
7725 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7726
7727 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7728 Do not clobber R0.
7729
7730 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7731
7732 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7733 Use symbolic offsets for stack variables.
7734
7735 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7736
7737 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7738 Use symbolic offsets for stack variables.
7739
7740 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7741
7742 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7743 Use symbolic offsets for stack variables.
7744
7745 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7746
7747 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7748 Use symbolic offsets for stack variables.
7749
7750 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7751
7752 * math/gen-libm-test.py: New file.
7753 * math/gen-libm-test.pl: Remove.
7754 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7755 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7756 gen-libm-test.pl.
7757 ($(libm-test-c-noauto-obj)): Likewise.
7758 ($(libm-test-c-auto-obj)): Likewise.
7759 ($(libm-test-c-narrow-obj)): Likewise.
7760 (regen-ulps): Likewise.
7761 * math/README.libm-test: Update references to gen-libm-test.pl.
7762 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7763 referencing gen-libm-test.pl.
7764 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7765 * math/libm-test-support.c: Likewise.
7766 * math/libm-test-support.h: Likewise.
7767 * sysdeps/generic/libm-test-ulps: Likewise.
7768
7769 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7770
7771 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7772 Fix value.
7773
7774 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7775
7776 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7777 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7778
7779 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7780
7781 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7782 symbols.
7783 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7784 __pthread_setspecific): Add hidden proto.
7785 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7786 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7787
7788 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7789
7790 * benchtests/bench-string.h (buf1_size, buf2_size): New
7791 variables.
7792 (init_sizes): New function.
7793 (test_init): Use it.
7794 (alloc_buf, exit_error): New functions.
7795 (alloc_bufs): Use ALLOC_BUF.
7796 (realloc_bufs): Remove.
7797 * benchtests/bench-memcmp.c (do_test): Adjust.
7798 * benchtests/bench-memset-large.c (do_test): Likewise.
7799 * benchtests/bench-memset-walk.c (do_test): Likewise.
7800 * benchtests/bench-memset.c (do_test): Likewise.
7801 * benchtests/bench-strncmp.c (do_test): Likewise.
7802
7803 2018-08-06 Andreas Schwab <schwab@suse.de>
7804
7805 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7806 of CONST_THREAD_AREA.
7807
7808 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7809
7810 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7811 (STATE_SAVE_MASK): Likewise.
7812 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7813 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7814 (STATE_SAVE_MASK): Likewise.
7815 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7816 instead of <cpu-features.h>.
7817
7818 2018-08-03 DJ Delorie <dj@redhat.com>
7819
7820 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7821 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7822
7823 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7824
7825 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7826
7827 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7828 after TEST_* calls.
7829 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7830 * math/libm-test-logb.inc (logb_test_data): Likewise.
7831
7832 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7833
7834 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7835 * string/strstr.c (AVAILABLE): Likewise.
7836
7837 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7838
7839 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7840 <init-arch.h>.
7841 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7842 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7843 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7844
7845 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7846
7847 * po/be.po: Update translation.
7848
7849 * po/be.po: Update translation.
7850
7851 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7852
7853 * sysdeps/x86/cpu-features-offsets.sym
7854 (rtld_global_ro_offsetof): Removed.
7855 (CPU_FEATURES_SIZE): Likewise.
7856 (CPUID_OFFSET): Likewise.
7857 (CPUID_SIZE): Likewise.
7858 (CPUID_EAX_OFFSET): Likewise.
7859 (CPUID_EBX_OFFSET): Likewise.
7860 (CPUID_ECX_OFFSET): Likewise.
7861 (CPUID_EDX_OFFSET): Likewise.
7862 (FAMILY_OFFSET): Likewise.
7863 (MODEL_OFFSET): Likewise.
7864 (FEATURE_OFFSET): Likewise.
7865 (FEATURE_SIZ): Likewise.
7866 (COMMON_CPUID_INDEX_1): Likewise.
7867 (COMMON_CPUID_INDEX_7): Likewise.
7868 (FEATURE_INDEX_1): Likewise.
7869 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7870
7871 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7872
7873 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7874 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7875 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7876 (install-locales): Depend on install-locale-archive.
7877 (install-locale-archive): Define.
7878 (install-locale-files): Define.
7879 (build-one-locale): Define macro.
7880 * manual/install.texi (Running make install): Document.
7881 * manual/INSTALL: Regenerate.
7882
7883 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7884
7885 * benchtests/scripts/compare_strings.py: Import traceback.
7886 (parse_file): Pretty-print error.
7887
7888 * NEWS: Mention the change.
7889 * elf/dl-tunables.list: Rename tune namespace to cpu.
7890 * sysdeps/powerpc/dl-tunables.list: Likewise.
7891 * sysdeps/x86/dl-tunables.list: Likewise.
7892 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7893 cpu.name.
7894 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7895 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7896 * manual/README.tunables: Likewise.
7897 * manual/tunables.texi: Likewise.
7898 * sysdeps/powerpc/cpu-features.c: Likewise.
7899 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7900 (init_cpu_features): Likewise.
7901 * sysdeps/x86/cpu-features.c: Likewise.
7902 * sysdeps/x86/cpu-features.h: Likewise.
7903 * sysdeps/x86/cpu-tunables.c: Likewise.
7904 * sysdeps/x86_64/Makefile: Likewise.
7905 * sysdeps/x86/dl-cet.c: Likewise.
7906
7907 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7908
7909 [BZ #23479]
7910 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7911 [__mips_hard_float].
7912 (FE_UNDERFLOW): Likewise.
7913 (FE_OVERFLOW): Likewise.
7914 (FE_DIVBYZERO): Likewise.
7915 (FE_INVALID): Likewise.
7916 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7917 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7918 (FE_UPWARD): Likewise.
7919 (FE_DOWNWARD): Likewise.
7920 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7921 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7922 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7923 [__mips_hard_float].
7924 (FP_ROUNDMODE): Likewise.
7925 (FP_RND_NEAREST): Likewise.
7926 (FP_RND_ZERO): Likewise.
7927 (FP_RND_PINF): Likewise.
7928 (FP_RND_MINF): Likewise.
7929 (FP_EX_INVALID): Likewise.
7930 (FP_EX_OVERFLOW): Likewise.
7931 (FP_EX_UNDERFLOW): Likewise.
7932 (FP_EX_DIVZERO): Likewise.
7933 (FP_EX_INEXACT): Likewise.
7934 (FP_INIT_ROUNDMODE): Likewise.
7935 * sysdeps/mips/nofpu/fesetenv.c: New file.
7936 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7937
7938 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7939
7940 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7941 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7942 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7943 conditional on [FE_UPWARD].
7944
7945 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7946
7947 regex: fix memory leak in Gnulib
7948 Problem and fix reported by Assaf Gordon in:
7949 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7950 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7951 range_ends members too, as they are defined in 'struct
7952 re_charset_t' even if not _LIBC. This affects only Gnulib.
7953
7954 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7955
7956 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7957 ...
7958 (get_common_indices): This.
7959 (init_cpu_features): Updated.
7960
7961 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7962
7963 * sysdeps/generic/math-tests-snan-payload.h: New file.
7964 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7965 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7966 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7967 * sysdeps/generic/math-tests.h: Include
7968 <math-tests-snan-payload.h>.
7969 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7970 * sysdeps/hppa/math-tests.h: Remove file.
7971 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7972 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7973 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7974 Likewise.
7975
7976 * sysdeps/generic/math-tests-snan-cast.h: New file.
7977 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7978 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7979 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7980 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7981
7982 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7983
7984 * version.h (RELEASE): Set to "development".
7985 (VERSION): Set to "2.28.9000".
7986 * NEWS (2.29): New section.
7987
7988 * version.h (RELEASE): Set to "stable".
7989 (VERSION): Set to "2.28".
7990 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7991 * NEWS: Add the list of bugs fixed in 2.28.
7992
7993 * po/ca.po: Update to latest version.
7994 * po/cs.po: Likewise
7995 * po/da.po: Likewise
7996 * po/el.po: Likewise
7997 * po/eo.po: Likewise
7998 * po/es.po: Likewise
7999 * po/fi.po: Likewise
8000 * po/fr.po: Likewise
8001 * po/gl.po: Likewise
8002 * po/hu.po: Likewise
8003 * po/ia.po: Likewise
8004 * po/id.po: Likewise
8005 * po/it.po: Likewise
8006 * po/ja.po: Likewise
8007 * po/ko.po: Likewise
8008 * po/lt.po: Likewise
8009 * po/nb.po: Likewise
8010 * po/nl.po: Likewise
8011 * po/pt_BR.po: Likewise
8012 * po/ru.po: Likewise
8013 * po/rw.po: Likewise
8014 * po/sk.po: Likewise
8015 * po/sl.po: Likewise
8016 * po/tr.po: Likewise
8017 * po/zh_CN.po: Likewise
8018 * po/zh_TW.po: Likewise
8019
8020 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8021
8022 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8023 initialization...
8024 (init): ... before initializing libpthread.
8025
8026 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8027 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8028 (__mach_setup_tls): ... new function.
8029 (mach_setup_tls): New alias.
8030 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8031 __mach_setup_thread.
8032 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8033 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8034 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8035 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8036
8037 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8038
8039 * manual/install.texi: Update versions.
8040 * INSTALL: Regenerate.
8041
8042 * manual/contrib.texi (Contributors): Update contributions.
8043
8044 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8045
8046 * po/be.po: Update translations.
8047
8048 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8049
8050 * sysdeps/sh/libm-test-ulps: Update.
8051
8052 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8053
8054 * po/bg.po: Update translations.
8055 * po/de.po: Likewise.
8056 * po/hr.po: Likewise.
8057 * po/pt_BR.po: Likewise.
8058 * po/sv.po: Likewise.
8059 * po/vi.po: Likewise.
8060
8061 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8062
8063 [BZ #23467]
8064 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8065 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8066 (CFLAGS-tst-cet-property-1.o): New.
8067 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8068 ($(objpfx)tst-cet-property-2): Likewise.
8069 ($(objpfx)tst-cet-property-2.out): Likewise.
8070 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8071 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8072 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8073 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8074 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8075
8076 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8077
8078 [BZ #23458]
8079 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8080
8081 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8082
8083 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8084 __sbrk): Do not set attribute_hidden.
8085 * sysdeps/mach/hurd/not-errno.h: New file.
8086 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8087 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8088
8089 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8090
8091 * po/uk.po: Update translations.
8092 * po/cs.po: Likewise.
8093 * po/pl.po: Likewise.
8094
8095 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8096
8097 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8098 parse beyond the note end.
8099
8100 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8101
8102 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8103 kernel does not support OFD locks.
8104 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8105
8106 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8107
8108 * sysdeps/mach/hurd/Versions (libc): Make __access and
8109 __access_noerrno external so they can override the ld symbols.
8110 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8111 __writev, __open64, __access_noerrno extern so they can be overrided.
8112 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8113 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8114
8115 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8116
8117 * po/libc.pot: Regenerate.
8118
8119 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8120
8121 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8122
8123 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8124
8125 [BZ #23459]
8126 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8127 function.
8128 (init_cpu_features): Call get_extended_indices for both Intel
8129 and AMD CPUs.
8130 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8131 Remove "for AMD" comment.
8132
8133 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8134
8135 [BZ # 23456]
8136 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8137 COMMON_CPUID_INDEX_80000001.
8138
8139 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8140
8141 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8142 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8143
8144 2018-07-26 Florian Weimer <fweimer@redhat.com>
8145
8146 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8147 aliases for symbols not in the implementation namespace.
8148
8149 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8150
8151 [BZ #23393]
8152 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8153 lowercase in LATIN script.
8154 * localedata/Makefile (test-input): Add en_US.UTF-8.
8155 * localedata/en_US.UTF-8.in: New file.
8156 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8157 and restore old tests.
8158 * posix/tst-regexloc.c (do_test): Add back range expression test.
8159
8160 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8161
8162 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8163
8164 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8165
8166 * nptl/threads.h: Move to ...
8167 * sysdeps/nptl/threads.h: ... here.
8168 * sysdeps/hurd/stdc-predef.h: New file.
8169
8170 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8171
8172 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8173 tst-cet-setcontext-1 if CET is enabled.
8174 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8175 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8176
8177 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8178
8179 * include/threads.h: Move to ...
8180 * sysdeps/nptl/threads.h: ... here.
8181 * sysdeps/htl/threads.h: New file.
8182 * conform/Makefile (linknamespace-libs-ISO11): Use
8183 static-thread-library instead of linking libpthread.
8184 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8185
8186 2018-07-25 Florian Weimer <fweimer@redhat.com>
8187
8188 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8189 nanoseconds into seconds.
8190 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8191 (do_test): Likewise.
8192 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8193 (do_test): Likewise. Avoid nanosecond overflow and spurious
8194 timeouts due to system load.
8195 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8196 (child_wait): Increment it.
8197 (do_test): Wait as long as necessary until all expected threads
8198 have arrived.
8199
8200 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8201 H.J. Lu <hongjiu.lu@intel.com>
8202
8203 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8204 __ssp.
8205 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8206 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8207 (__push___start_context): New.
8208 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8209 <asm/prctl.h>.
8210 (__getcontext): Record the current shadow stack base. Save the
8211 caller's shadow stack pointer and base.
8212 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8213 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8214 (__push___start_context): New prototype.
8215 (__makecontext): Call __push___start_context to allocate a new
8216 shadow stack, push __start_context onto the new stack as well
8217 as the new shadow stack.
8218 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8219 <asm/prctl.h>.
8220 (__setcontext): Restore the target shadow stack.
8221 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8222 <asm/prctl.h>.
8223 (__swapcontext): Record the current shadow stack base. Save
8224 the caller's shadow stack pointer and base. Restore the target
8225 shadow stack.
8226 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8227 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8228 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8229
8230 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8231
8232 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8233 tst-setcontext8 and tst-setcontext9.
8234 * stdlib/tst-setcontext6.c: New file.
8235 * stdlib/tst-setcontext7.c: Likewise.
8236 * stdlib/tst-setcontext8.c: Likewise.
8237 * stdlib/tst-setcontext9.c: Likewise.
8238
8239 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8240
8241 * stdlib/Makefile ((tests): Add tst-setcontext5.
8242 * stdlib/tst-setcontext5.c: New file.
8243
8244 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8245
8246 * stdlib/Makefile (tests): Add tst-setcontext4.
8247 * stdlib/tst-setcontext4.c: New file.
8248
8249 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8250
8251 * stdlib/Makefile (tests): Add tst-swapcontext1.
8252 * stdlib/tst-swapcontext1.c: New test.
8253
8254 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8255
8256 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8257 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8258 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8259 and tst-cet-legacy-4c.
8260 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8261 and tst-cet-legacy-mod-4.
8262 (CFLAGS-tst-cet-legacy-2.c): New.
8263 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8264 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8265 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8266 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8267 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8268 ($(objpfx)tst-cet-legacy-1): Likewise.
8269 ($(objpfx)tst-cet-legacy-2): Likewise.
8270 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8271 ($(objpfx)tst-cet-legacy-2a): Likewise.
8272 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8273 ($(objpfx)tst-cet-legacy-4): Likewise.
8274 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8275 ($(objpfx)tst-cet-legacy-4a): Likewise.
8276 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8277 (tst-cet-legacy-4a-ENV): Likewise.
8278 ($(objpfx)tst-cet-legacy-4b): Likewise.
8279 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8280 (tst-cet-legacy-4b-ENV): Likewise.
8281 ($(objpfx)tst-cet-legacy-4c): Likewise.
8282 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8283 (tst-cet-legacy-4c-ENV): Likewise.
8284 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8285 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8286 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8287 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8288 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8289 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8290 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8291 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8292 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8293 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8294 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8295
8296 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8297
8298 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8299 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8300 with ssp_base.
8301 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8302 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8303 with ssp_base.
8304
8305 2018-07-25 Andreas Schwab <schwab@suse.de>
8306
8307 [BZ #23442]
8308 * locale/weightwc.h (findidx): Handle the case where usrc is a
8309 prefix of cp but one character too short.
8310
8311 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8312
8313 * NEWS: Add ISO C threads addition.
8314
8315 2018-07-24 Florian Weimer <fweimer@redhat.com>
8316
8317 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8318 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8319 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8320 4.13.
8321
8322 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8323
8324 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8325 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8326 <sys/prctl.h> and <asm/prctl.h>.
8327 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8328 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8329 and <asm/prctl.h>.
8330 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8331 ARCH_CET_LEGACY_BITMAP.
8332 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8333 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8334 * sysdeps/x86/libc-start.c: Include <startup.h>.
8335
8336 2018-07-24 Florian Weimer <fweimer@redhat.com>
8337
8338 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8339 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8340
8341 2018-07-24 Rical Jasan <rj@2c3t.io>
8342 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8343 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8344
8345 [BZ #14092]
8346 * manual/debug.texi: Update adjacent chapter name.
8347 * manual/probes.texi: Likewise.
8348 * manual/threads.texi (ISO C Threads): New section.
8349 (POSIX Threads): Convert to a section.
8350
8351 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8352 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8353
8354 [BZ# 14092]
8355 * nptl/Makefile (tests): Add new test files.
8356 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8357 * nptl/tst-cnd-basic.c: Likewise.
8358 * nptl/tst-cnd-broadcast.c: Likewise.
8359 * nptl/tst-cnd-timedwait.c: Likewise.
8360 * nptl/tst-mtx-basic.c: Likewise.
8361 * nptl/tst-mtx-recursive.c: Likewise.
8362 * nptl/tst-mtx-timedlock.c: Likewise.
8363 * nptl/tst-mtx-trylock.c: Likewise.
8364 * nptl/tst-thrd-basic.c: Likewise.
8365 * nptl/tst-thrd-detach.c: Likewise.
8366 * nptl/tst-thrd-sleep.c: Likewise.
8367 * nptl/tst-tss-basic.c: Likewise.
8368
8369 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8370
8371 [BZ #14092]
8372 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8373 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8374 symbols.
8375 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8376 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8377 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8378 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8379 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8380 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8381 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8382 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8383 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8388 Likewise.
8389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8390 Likewise.
8391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8392 Likewise.
8393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8394 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8395 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8396 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8397 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8398 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8403 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8404 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8405 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8406 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8407 Likewise.
8408 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8409 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8410 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8411 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8412 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8413 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8414 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8415 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8416 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8417 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8418 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8419 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8420 ikewise.
8421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8423 Likewise.
8424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8425 Likewise.
8426 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8427 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8428 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8429 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8430 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8431 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8432 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8433 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8434
8435 [BZ #14092]
8436 * conform/data/threads.h-data (thread_local): New macro.
8437 (TSS_DTOR_ITERATIONS): Likewise.
8438 (tss_t): New type.
8439 (tss_dtor_t): Likewise.
8440 (tss_create): New function.
8441 (tss_get): Likewise.
8442 (tss_set): Likewise.
8443 (tss_delete): Likewise.
8444 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8445 tss_get, and tss_set objects.
8446 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8447 * nptl/tss_create.c: New file.
8448 * nptl/tss_delete.c: Likewise.
8449 * nptl/tss_get.c: Likewise.
8450 * nptl/tss_set.c: Likewise.
8451 * sysdeps/nptl/threads.h (thread_local): New define.
8452 (TSS_DTOR_ITERATIONS): Likewise.
8453 (tss_t): New typedef.
8454 (tss_dtor_t): Likewise.
8455 (tss_create): New prototype.
8456 (tss_get): Likewise.
8457 (tss_set): Likewise.
8458 (tss_delete): Likewise.
8459
8460 [BZ #14092]
8461 * conform/data/threads.h-data (cnd_t): New type.
8462 (cnd_init): New function.
8463 (cnd_signal): Likewise.
8464 (cnd_broadcast): Likewise.
8465 (cnd_wait): Likewise.
8466 (cnd_timedwait): Likewise.
8467 (cnd_destroy): Likewise.
8468 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8469 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8470 object.
8471 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8472 * nptl/cnd_broadcast.c: New file.
8473 * nptl/cnd_destroy.c: Likewise.
8474 * nptl/cnd_init.c: Likewise.
8475 * nptl/cnd_signal.c: Likewise.
8476 * nptl/cnd_timedwait.c: Likewise.
8477 * nptl/cnd_wait.c: Likewise.
8478 * sysdeps/nptl/threads.h (cnd_t): New type.
8479 (cnd_init): New prototype.
8480 (cnd_signa): Likewise.
8481 (cnd_broadcast): Likewise.
8482 (cnd_wait): Likewise.
8483 (cnd_timedwait): Likewise.
8484 (cnd_destroy): Likewise.
8485
8486 [BZ #14092]
8487 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8488 (once_flag): New type.
8489 (call_once): New function.
8490 * nptl/Makefile (libpthread-routines): Add call_once object.
8491 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8492 * nptl/call_once.c: New file.
8493 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8494 (once_flag): New type.
8495 (call_once): New prototype.
8496
8497 [BZ #14092]
8498 * conform/data/threads.h-data (mtx_plain): New constant.
8499 (mtx_recursive): Likewise.
8500 (mtx_timed): Likewise.
8501 (mtx_t): New type.
8502 (mtx_init): New function.
8503 (mtx_lock): Likewise.
8504 (mtx_timedlock): Likewise.
8505 (mtx_trylock): Likewise.
8506 (mtx_unlock): Likewise.
8507 (mtx_destroy): Likewise.
8508 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8509 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8510 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8511 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8512 * nptl/mtx_destroy.c: New file.
8513 * nptl/mtx_init.c: Likewise.
8514 * nptl/mtx_lock.c: Likewise.
8515 * nptl/mtx_timedlock.c: Likewise.
8516 * nptl/mtx_trylock.c: Likewise.
8517 * nptl/mtx_unlock.c: Likewise.
8518 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8519 (mtx_recursive): Likewise.
8520 (mtx_timed): Likewise.
8521 (mtx_t): New type.
8522 (mtx_init): New prototype.
8523 (mtx_lock): Likewise.
8524 (mtx_timedlock): Likewise.
8525 (mtx_trylock): Likewise.
8526 (mtx_unlock): Likewise.
8527 (mtx_destroy): Likewise.
8528
8529 [BZ #14092]
8530 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8531 (linknamespace-libs-ISO11): Add libpthread.a.
8532 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8533 functions.
8534 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8535 * nptl/Makefile (headers): Add threads.h.
8536 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8537 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8538 thrd_yield.
8539 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8540 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8541 thrd_join, thrd_sleep, and thrd_yield symbols.
8542 * nptl/descr.h (struct pthread): Add c11 field.
8543 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8544 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8545 routine with expected function prototype.
8546 (__pthread_create_2_1): Add C11 threads check based on attribute
8547 value.
8548 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8549 * nptl/thrd_create.c: New file.
8550 * nptl/thrd_current.c: Likewise.
8551 * nptl/thrd_detach.c: Likewise.
8552 * nptl/thrd_equal.c: Likewise.
8553 * nptl/thrd_exit.c: Likewise.
8554 * nptl/thrd_join.c: Likewise.
8555 * nptl/thrd_priv.h: Likewise.
8556 * nptl/thrd_sleep.c: Likewise.
8557 * nptl/thrd_yield.c: Likewise.
8558 * include/threads.h: Likewise.
8559
8560 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8561
8562 * bits/indirect-return.h: New file.
8563 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8564 * sysdeps/x86/bits/indirect-return.h: Likewise.
8565 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8566 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8567 (swapcontext): Add __INDIRECT_RETURN.
8568 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8569 (prepare_test_buffer): Use it.
8570
8571 2018-07-24 Andreas Schwab <schwab@suse.de>
8572
8573 [BZ #23448]
8574 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8575 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8576
8577 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8578
8579 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8580 Redefine if shadow stack is enabled.
8581 (SYSCALL_ERROR_LABEL): Likewise.
8582 (__vfork): Pop shadow stack and jump back to to caller directly
8583 when shadow stack is in use.
8584 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8585 Redefine if shadow stack is enabled.
8586 (SYSCALL_ERROR_LABEL): Likewise.
8587 (__vfork): Pop shadow stack and jump back to to caller directly
8588 when shadow stack is in use.
8589
8590 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8591
8592 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8593 enabled.
8594 (foo): Likewise.
8595 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8596 (foo): Likewise.
8597
8598 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8599
8600 * scripts/build-many-glibcs.py (Context.checkout): Default
8601 binutils version to 2.31 branch.
8602
8603 2018-07-20 Zong Li <zong@andestech.com>
8604
8605 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8606 URL of gcc's tarball.
8607
8608 2018-07-20 Florian Weimer <fweimer@redhat.com>
8609
8610 [BZ #23396]
8611 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8612 not compare an extra byte after the end of the weights.
8613
8614 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8615
8616 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8617 to 1.
8618 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8619 hidden prototypes.
8620 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8621 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8622 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8623 list of libraries whose stack executability is expected.
8624 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8625 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8626 variable.
8627 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8628 libc.so libpthread.so.
8629
8630 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8631
8632 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8633 SOCK_NONBLOCK.
8634 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8635 and SOCK_NONBLOCK.
8636 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8637 implement __pipe2.
8638 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8639
8640 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8641
8642 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8643 library to improve command line parsing.
8644 (__main__): make schema file as optional parameter (--schema),
8645 defaulting to benchtests/scripts/benchout.schema.json.
8646 (main): move out of the parsing stuff to __main_  and leave it
8647 only as caller of main comparison functions.
8648
8649 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8650
8651 * NEWS: Add a note for Intel CET status.
8652 * manual/install.texi: Likewise.
8653 * INSTALL: Regenerated.
8654
8655 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8656
8657 [BZ #23140]
8658 * localedata/locales/oc_FR (mon): Rename to...
8659 (alt_mon): This, then update October (typo fix).
8660 (mon): New content (genitive case, month names preceded by
8661 "de" or "d’").
8662
8663 [BZ #23422]
8664 * localedata/locales/oc_FR (abday): Update all items.
8665 (day): Update Wednesday and Saturday (typo fixes).
8666 (abmon): Update all items, except May.
8667 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8668 (LC_IDENTIFICATION): Bump the revision number and date.
8669 Keep the "category" entries in alphabetic order.
8670 (LC_ADDRESS): Remove no longer needed comment.
8671 (LC_COLLATE): Use “copy "ca_ES"”.
8672 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8673 "name_mrs".
8674
8675 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8676
8677 * grp/tst_fgetgrent.c: Include <unistd.h>.
8678 (main): Use mkstemp instead of tmpnam.
8679 * io/test-utime.c (main): Likewise.
8680 * posix/annexc.c (macrofile): Change to modifiable array.
8681 (main): Remove macrofile here.
8682 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8683 macrofile here.
8684 (check_header): Do not remove macrofile here.
8685 * posix/bug-getopt1.c: Include <stdlib.h>.
8686 (do_test): Use mkstemp instead of tmpnam.
8687 * posix/bug-getopt2.c: Include <stdlib.h>.
8688 (do_test): Use mkstemp instead of tmpnam.
8689 * posix/bug-getopt3.c: Include <stdlib.h>.
8690 (do_test): Use mkstemp instead of tmpnam.
8691 * posix/bug-getopt4.c: Include <stdlib.h>.
8692 (do_test): Use mkstemp instead of tmpnam.
8693 * posix/bug-getopt5.c: Include <stdlib.h>.
8694 (do_test): Use mkstemp instead of tmpnam.
8695 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8696 (main): Use mkstemp instead of tmpnam.
8697 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8698 (main): Use mkstemp instead of tmpnam.
8699 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8700 (main): use mkstemp instead of tmpnam.
8701 * stdlib/isomac.c (macrofile): Change to modifiable array.
8702 (main): Remove macrofile here.
8703 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8704 macrofile here.
8705 (check_header): Do not remove macrofile here.
8706
8707 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8708
8709 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8710 glibc.tune.x86_shstk.
8711
8712 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8713
8714 * NEWS: Mention --enable-cet.
8715 * manual/install.texi: Document --enable-cet.
8716 * INSTALL: Regenerated.
8717
8718 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8721 Add _CET_NOTRACK before indirect jump to jump table.
8722
8723 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8724
8725 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8726 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8727 to jump table.
8728
8729 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8730
8731 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8732 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8733 to jump table.
8734
8735 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8736
8737 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8738 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8739 to jump table.
8740
8741 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8742
8743 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8744 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8745 to jump table.
8746
8747 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8750 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8751 to jump table.
8752 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8753
8754 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8755
8756 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8757 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8758 to jump table.
8759
8760 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 * sysdeps/i386/i686/multiarch/memset-sse2.S
8763 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8764 to jump table.
8765
8766 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8767
8768 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8769 indirect jump to jump table.
8770
8771 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8772
8773 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8774 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8775 to jump table.
8776 (MEMCPY): Likewise.
8777
8778 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8779
8780 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8781 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8782 to jump table.
8783 (MEMCPY): Likewise.
8784
8785 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8786
8787 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8788 _CET_NOTRACK before indirect jump to jump table.
8789
8790 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8791
8792 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8793 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8794 to jump table.
8795
8796 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8797
8798 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8799 indirect jump to jump table.
8800
8801 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8802
8803 [BZ #22241]
8804 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8805 (LOCALES): Likewise.
8806 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8807 * localedata/locales/sah_RU: New file.
8808 * localedata/sah_RU.UTF-8.in: New file.
8809
8810 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8811
8812 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8813 "sysdep.h".
8814 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8815 _CET_ENDBR to indirect jump targets and adjust jump destination
8816 for _CET_ENDBR.
8817 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8818 "sysdep.h".
8819 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8820 _CET_ENDBR to indirect jump targets and adjust jump destination
8821 for _CET_ENDBR.
8822 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8823 "sysdep.h".
8824 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8825 _CET_ENDBR to indirect jump targets and adjust jump destination
8826 for _CET_ENDBR.
8827
8828 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8829
8830 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8831 _CET_ENDBR.
8832
8833 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8834
8835 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8836 _CET_ENDBR.
8837 (_dl_tlsdesc_undefweak): Likewise.
8838 (_dl_tlsdesc_dynamic): Likewise.
8839 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8840 (_dl_tlsdesc_resolve_rel): Likewise.
8841 (_dl_tlsdesc_resolve_rela): Likewise.
8842 (_dl_tlsdesc_resolve_hold): Likewise.
8843 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8844 (_dl_tlsdesc_undefweak): Likewise.
8845 (_dl_tlsdesc_dynamic): Likewise.
8846 (_dl_tlsdesc_resolve_rela): Likewise.
8847 (_dl_tlsdesc_resolve_hold): Likewise.
8848
8849 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8850
8851 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8852 (_fini): Likewise.
8853 * sysdeps/x86_64/crti.S (_init): Likewise.
8854 (_fini): Likewise.
8855
8856 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8857
8858 [BZ #23140]
8859 * localedata/locales/os_RU (mon): Rename to...
8860 (alt_mon): This.
8861 (mon): Import from CLDR (genitive case).
8862
8863 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8866 cet-tunables.h> when CET is enabled.
8867
8868 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8869
8870 [BZ #21598]
8871 * configure.ac: Add --enable-cet.
8872 * configure: Regenerated.
8873 * elf/Makefille (all-built-dso): Add a comment.
8874 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8875 Include <dl-prop.h>.
8876 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8877 segment.
8878 * elf/dl-open.c: Include <dl-prop.h>.
8879 (dl_open_worker): Call _dl_open_check.
8880 * elf/rtld.c: Include <dl-prop.h>.
8881 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8882 _rtld_main_check.
8883 * sysdeps/generic/dl-prop.h: New file.
8884 * sysdeps/i386/dl-cet.c: Likewise.
8885 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8886 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8887 * sysdeps/x86/cet-tunables.h: Likewise.
8888 * sysdeps/x86/check-cet.awk: Likewise.
8889 * sysdeps/x86/configure: Likewise.
8890 * sysdeps/x86/configure.ac: Likewise.
8891 * sysdeps/x86/dl-cet.c: Likewise.
8892 * sysdeps/x86/dl-procruntime.c: Likewise.
8893 * sysdeps/x86/dl-prop.h: Likewise.
8894 * sysdeps/x86/libc-start.h: Likewise.
8895 * sysdeps/x86/link_map.h: Likewise.
8896 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8897 _CET_ENDBR.
8898 (_dl_runtime_profile): Likewise.
8899 (_dl_runtime_resolve_shstk): New.
8900 (_dl_runtime_profile_shstk): Likewise.
8901 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8902 if CET is enabled.
8903 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8904 (CFLAGS-.os): Likewise.
8905 (CFLAGS-.op): Likewise.
8906 (CFLAGS-.oS): Likewise.
8907 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8908 is enabled.
8909 (tests-special): Add $(objpfx)check-cet.out.
8910 (cet-built-dso): New.
8911 (+$(cet-built-dso:=.note)): Likewise.
8912 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8913 ($(objpfx)check-cet.out): New.
8914 (generated): Add check-cet.out.
8915 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8916 <cet-tunables.h>.
8917 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8918 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8919 (init_cpu_features): Call get_cet_status to check CET status
8920 and update dl_x86_feature_1 with CET status. Call
8921 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8922 (set_x86_shstk). Disable and lock CET in libc.a.
8923 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8924 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8925 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8926 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8927 (_CET_ENDBR): Define if not defined.
8928 (ENTRY): Add _CET_ENDBR.
8929 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8930 x86_shstk.
8931 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8932 _CET_ENDBR.
8933 (_dl_runtime_profile): Likewise.
8934
8935 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8936
8937 [BZ #21895]
8938 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8939 restore r2 on longjmp.
8940 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8941 test list.
8942 Added rules to build test tst-setjmp-bug21895-static.
8943 Added module setjmp-bug21895 and rules to build a shared object from it.
8944 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8945 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8946
8947 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8948
8949 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8950 * benchtests/bench-strstr.c: Likewise.
8951 * string/memmem.c (FASTSEARCH): Define.
8952 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8953 Add support for FASTSEARCH.
8954 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8955 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8956 (FASTSEARCH): Define.
8957 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8958 * string/test-strstr.c: Likewise.
8959
8960 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8961
8962 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8963 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8964
8965 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8966 H.J. Lu <hongjiu.lu@intel.com>
8967
8968 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8969 (__longjmp): Restore shadow stack pointer if shadow stack is
8970 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8971 isn't defined for __longjmp_cancel.
8972 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8973 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8974 and SHADOW_STACK_POINTER_OFFSET is defined.
8975 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8976 (setjmp): Save shadow stack pointer if shadow stack is enabled
8977 and SHADOW_STACK_POINTER_OFFSET is defined.
8978 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8979 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8980 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8981 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8982 <jmp_buf-ssp.h>.
8983 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8984 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8985 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8986 Remove jmp_buf-ssp.sym.
8987 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8988 <jmp_buf-ssp.h>.
8989 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8990 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8991 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8992 jmp_buf-ssp.sym.
8993 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8994 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8995 (__longjmp): Restore shadow stack pointer if shadow stack is
8996 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8997 isn't defined for __longjmp_cancel.
8998 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8999 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9000 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9001
9002 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9003
9004 [BZ #22563]
9005 * nptl/pthread_create.c: Include <tls-setup.h>.
9006 (__pthread_create_2_1): Call tls_setup_tcbhead.
9007 * sysdeps/generic/tls-setup.h: New file.
9008 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9009 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9010 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9011 Likewise.
9012 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9013 to feature_1.
9014 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9015 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9016 (X86_FEATURE_1_SHSTK): Likewise.
9017 (CET_ENABLED): Likewise.
9018 (IBT_ENABLED): Likewise.
9019 (SHSTK_ENABLED): Likewise.
9020
9021 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9022
9023 [BZ #23208]
9024 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9025 (LOCALES): Likewise.
9026 * localedata/dsb_DE.UTF-8.in: New file.
9027 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9028
9029 2018-07-12 Florian Weimer <fweimer@redhat.com>
9030
9031 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9032 __mprotect, not mprotect.
9033
9034 2018-07-11 Florian Weimer <fweimer@redhat.com>
9035
9036 * io/Makefile (headers): Add bits/statx.h.
9037
9038 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9039
9040 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9041 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9042 and headers.
9043 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9044 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9045 for utf8_gen.py
9046
9047 2018-07-10 Florian Weimer <fweimer@redhat.com>
9048
9049 * io/Makefile (routines): Add statx.
9050 (tests-internal): Add tst-statx.
9051 * io/Versions (GLIBC_2.28): Export statx.
9052 * io/bits/statx.h: New file.
9053 * io/sys/stat.h [__USE_GNU]: Include it.
9054 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9055 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9056 Define.
9057 * io/statx.c: New file.
9058 * io/statx_generic.: Likewise.
9059 * io/tst-statx.: Likewise.
9060 * include/bits/statx.h: Likewise.
9061 * sysdeps/unix/sysv/linux/kernel-features.h
9062 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9063 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9064 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9065 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9066 Undefine.
9067 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9068 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9069 * sysdeps/unix/sysv/linux/statx.c: New file.
9070 * manual/filesys.texi: Note that statx is undocumented.
9071 * sysdeps/**/libc*.abilist: Update.
9072
9073 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9074
9075 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9076 a kernel issue which lead to test failure in some cases.
9077
9078 2018-07-10 Florian Weimer <fweimer@redhat.com>
9079
9080 [BZ #23036]
9081 * posix/regexec.c (check_node_accept_bytes): When comparing
9082 weights, do not compare an extra byte after the end of the
9083 weights.
9084
9085 2018-07-10 Florian Weimer <fweimer@redhat.com>
9086
9087 * libio/readline.c: Fix copyright year.
9088 * libio/tst-readline.c Likewise.
9089 * nss/tst-nss-files-hosts-getent.c: Likewise.
9090
9091 2018-07-06 Florian Weimer <fweimer@redhat.com>
9092
9093 [BZ #18991]
9094 * nss/nss_files/files-XXX.c (internal_getent): Use
9095 __libc_readline_unlocked. Seek back to the start of the line if
9096 parsing failes with ERANGE.
9097 (get_contents_ret, get_contents): Remove.
9098 * nss/tst-nss-files-hosts-getent.c: New file.
9099 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9100 (tst-nss-files-hosts-getent): Link with -ldl.
9101
9102 2018-07-06 Florian Weimer <fweimer@redhat.com>
9103
9104 * include/stdio.h (__libc_readline_unlocked): Declare.
9105 (__ftello64, __fseeko64): Declare aliases.
9106 * libio/readline.c: New file.
9107 * libio/tst-readline.c: Likewise.
9108 (routines): Add readline.
9109 (tests-internal): Add tst-readlime.
9110 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9111 __libc_readline_unlocked.
9112 * libio/fseeko.c (__fseeko): Rename from fseeko.
9113 (fseeko): Add alias.
9114 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9115 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9116 (fseeko64): Add alias.
9117 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9118 * libio/ftello64.c (__ftello64): Rename from ftello64.
9119 (ftello64): Add alias.
9120
9121 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9122
9123 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9124 HWCAP_ATOMICS.
9125
9126 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9127
9128 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9129 Use dl_hwcap without masking.
9130 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9131 Remove HWCAP_CPUID.
9132
9133 2018-07-06 Florian Weimer <fweimer@redhat.com>
9134
9135 * conform/conformtest.pl (checknamespace): Escape literal braces
9136 in regular expressions.
9137
9138 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9139
9140 * sysdeps/x86/cpu-features.c (get_common_indeces):
9141 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9142 * sysdeps/x86/cpu-features.c (init_cpu_features):
9143 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9144
9145 2018-07-05 Florian Weimer <fweimer@redhat.com>
9146
9147 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9148 protector.
9149 (CFLAGS-elf-init.oS): Likewise.
9150
9151 2018-07-05 Florian Weimer <fweimer@redhat.com>
9152 Carlos O'Donell <carlos@redhat.com>
9153
9154 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9155 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9156 with stack protector enabled because there is no risk of infinite
9157 recursion.
9158
9159 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9160
9161 [BZ #19818]
9162 [BZ #23307]
9163 * libc-abis (ABSOLUTE): New ABI.
9164 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9165 * NEWS: Mention the new ABI.
9166
9167 2018-07-05 Florian Weimer <fweimer@redhat.com>
9168
9169 [BZ # 17662]
9170 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9171 (RENAME_WHITEOUT): Define.
9172 [__USE_GNU] (renameat2): Declare.
9173 * stdio-common/Makefile (routines): Add renameat2.
9174 (tests): Add tst-renameat2.
9175 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9176 * stdio-common/renameat2.c: New file.
9177 * stdio-common/tst-renameat2.c: Likewise.
9178 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9179 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9180 undocumented.
9181 * sysdeps/unix/sysv/linux/kernel-features.h
9182 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9183 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9184 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9185 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9186 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9187 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9188 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9189 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9190 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9191 * include/stdio.h (__renameat): Add alias for renameat.
9192 * stdio-common/renameat.c (__renameat): Rename from renameat.
9193 Add hidden definition and alias.
9194 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9195 * sysdeps/mach/hurd/renameat.c: Likewise.
9196 * sysdeps/**/libc*.abilist: Add renameat2.
9197
9198 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9199
9200 * posix/bug-regex33.c: Fix build after regex sync.
9201
9202 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9203
9204 [BZ #23164]
9205 * localedata/tst-langinfo-setlocale.c: New file.
9206 * localedata/tst-langinfo-setlocale-static.c: New file.
9207 * localedata/tst-langinfo-newlocale.c: New file.
9208 * localedata/tst-langinfo-newlocale-static.c: New file.
9209 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9210 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9211 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9212 (tests-static): Remove tst-langinfo-static. Add
9213 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9214 (tests-special): Remove $(objpfx)tst-langinfo.out,
9215 $(objpfx)tst-langinfo-static.out. Add
9216 $(objpfx)tst-langinfo-setlocale.out,
9217 $(objpfx)tst-langinfo-newlocale.out,
9218 $(objpfx)tst-langinfo-setlocale-static.out,
9219 $(objpfx)tst-langinfo-newlocale-static.out.
9220 ($(objpfx)tst-langinfo.out): Remove.
9221 ($(objpfx)tst-langinfo-static.out): Remove.
9222 ($(objpfx)tst-langinfo-newlocale.out): New target.
9223 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9224 (test-xfail-tst-langinfo-newlocale-static): Add.
9225 ($(objpfx)tst-langinfo-setlocale.out): New target.
9226 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9227 * localedata/tst-langinfo.c: Call test_locale.
9228 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9229 data.
9230
9231 2018-07-04 Florian Weimer <fweimer@redhat.com>
9232
9233 testrun.sh: Implement --tool=strace, --tool=valgrind
9234 * Makefile (testrun-script): Define variable.
9235 (testrun.sh): Use variable.
9236 * manual/install.texi (Tools for Compilation): make 4.0 or later
9237 is required.
9238 * configure.ac: Check for make 4.0 or later.
9239 * INSTALL: Regenerate.
9240 * configure: Likewise.
9241
9242 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9243
9244 [BZ #23233]
9245 [BZ #21163]
9246 [BZ #18986]
9247 [BZ #13762]
9248 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9249 * posix/PCRE.tests: Remove invalid test.
9250 * posix/bug-regex28.c: Fix expected values for used syntax.
9251 * posix/bug-regex37.c: New file.
9252 * posix/bug-regex38.c: Likewise.
9253 * posix/regcomp.c: Sync with gnulib.
9254 * posix/regex.c: Likewise.
9255 * posix/regex.h: Likewise.
9256 * posix/regex_internal.c: Likewise.
9257 * posix/regex_internal.h: Likewise.
9258 * posix/regexec.c: Likewise.
9259
9260 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9261
9262 [BZ #23308]
9263 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9264 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9265 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9266 * localedata/unicode-gen/PropList.txt: likewise.
9267 * localedata/unicode-gen/UnicodeData.txt: likewise.
9268 * localedata/charmaps/UTF-8: Regenerate.
9269 * localedata/locales/i18n_ctype: likewise.
9270 * localedata/locales/tr_TR: likewise.
9271 * localedata/locales/translit_circle: likewise.
9272 * localedata/locales/translit_cjk_compat: likewise.
9273 * localedata/locales/translit_combining: likewise.
9274 * localedata/locales/translit_compat: likewise.
9275 * localedata/locales/translit_font: likewise.
9276 * localedata/locales/translit_fraction: likewise.
9277
9278 2018-07-03 Florian Weimer <fweimer@redhat.com>
9279
9280 [BZ #23363]
9281 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9282 * stdio-common/tst-printf.sh: Adjust expected output.
9283 * LICENSES: Update.
9284
9285 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9286
9287 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9288 symbol.
9289
9290 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9291
9292 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9293 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9294 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9295 * stdio-common/tst-printfsz-islongdouble.c: New file.
9296 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9297 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9298 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9299 [subdir == stdio-common] (tests-internal): Add
9300 test-printf-size-ieee128, and test-printf-size-ibm128.
9301 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9302 (CFLAGS-test-printf-size-ibm128.c): New variables.
9303 [subdir == stdio-common] (tests-special): Add
9304 $(objpfx)test-printf-size-ieee128.out and
9305 $(objpfx)test-printf-size-ibm128.out.
9306 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9307 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9308 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9309 __printf_sizeieee128.
9310 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9311 New file.
9312 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9313 Likewise.
9314 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9315 Likewise.
9316
9317 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9318
9319 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9320 (exp2f_inline): Likewise.
9321 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9322 (__math_uflowf): Likewise.
9323 (__math_may_uflowf): Likewise.
9324 (__math_divzerof): Likewise.
9325 (__math_invalidf): Likewise.
9326 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9327 (__math_oflowf): Likewise.
9328 (__math_uflowf): Likewise.
9329 (__math_may_uflowf): Likewise.
9330 (__math_divzerof): Likewise.
9331 (__math_invalidf): Likewise.
9332
9333 2018-06-29 DJ Delorie <dj@redhat.com>
9334 Carlos O'Donell <carlos@redhat.com>
9335
9336 [BZ #23329]
9337 * include/libc-symbols.h: Comment the freeres framework.
9338 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9339 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9340 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9341 * dlfcn/dlerror.c: Include libc-symbols.h
9342 (__dlerror_main_freeres): New function.
9343 * dlfcn/dlfreeres.c: New file.
9344 * dlfcn/sdlfreeres.c: New file.
9345 * include/dlfcn.h: Declare __dlerror_main_freeres.
9346 * malloc/set-freeres.c: Declare __libdl_freeres, and
9347 __libpthread_freeres.
9348 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9349 the releavant libraries are loaded.
9350 * malloc/thread-freeres.c: Add comments.
9351 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9352 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9353 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9354 (__free_stacks): Rename to...
9355 (free_stacks): ...this. Mark static.
9356 (queue_stack): Call free_stacks.
9357 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9358 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9359 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9360 ptr_freeres element from struct.
9361 (pthread_functions): Remove .ptr_freeres from struct initializer.
9362 [SHARED] (nptl_freeres): Remove.
9363 * nptl/nptlfreeres.c: New file.
9364 * nptl/pthreadP.h
9365 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9366 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9367 attribute_hidden.
9368 (__free_stacks): Rename to...
9369 (__nptl_stacks_freeres): ...this.
9370 (__shm_directory_freeres): Declare.
9371 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9372 (__nptl_unwind_freeres): ...this.
9373 * resolv/res-close.c: Add comment.
9374 * resolv/resolv_conf.c: Include libc-symbols.h.
9375 * string/strerror_l.c: Include libc-symbols.h.
9376 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9377 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9378 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9379 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9380
9381 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9382
9383 * stdlib/tst-strfmon_l.c: Add tests for long double.
9384
9385 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9386
9387 [BZ #23208]
9388 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9389 * localedata/locales/dsb_DE: New file.
9390
9391 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9392
9393 [BZ #23140]
9394 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9395 genitive case).
9396 (alt_mon): New entry, import from CLDR (nominative case).
9397
9398 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9399
9400 [BZ #22996]
9401 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9402
9403 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9404
9405 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9406 Use vector registers.
9407
9408 * sysdeps/aarch64/multiarch/memmove_falkor.S
9409 (__memcpy_falkor): Use vector registers.
9410
9411 2018-06-29 Martin Sebor <msebor@redhat.com>
9412
9413 * manual/stdio.texi (Customizing Printf): Mention interaction
9414 with GCC built-ins.
9415
9416 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9417
9418 [BZ #23307]
9419 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9420 `st_value' is 0 if `st_shndx' is SHN_ABS.
9421 * elf/tst-absolute-zero.c: New file.
9422 * elf/tst-absolute-zero-lib.c: New file.
9423 * elf/tst-absolute-zero-lib.lds: New file.
9424 * elf/Makefile (tests): Add `tst-absolute-zero'.
9425 (modules-names): Add `tst-absolute-zero-lib'.
9426 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9427 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9428 ($(objpfx)tst-absolute-zero: New dependency.
9429
9430 2018-06-29 Zack Weinberg <zackw@panix.com>
9431
9432 * configure.ac: New command-line option --disable-crypt.
9433 Force --disable-nss-crypt when --disable-crypt is given, with a
9434 warning if it was explicitly enabled.
9435 * configure: Regenerate.
9436 * config.make.in: New boolean substitution variable $(build-crypt).
9437 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9438 when $(build-crypt).
9439 * manual/install.texi: Document --disable-crypt.
9440 * INSTALL: Regenerate.
9441
9442 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9443 which is never set.
9444 * conform/Makefile: Only include libcrypt.a in
9445 linknamespace-libs-xsi and linknamespace-libs-XPG4
9446 when $(build-crypt).
9447 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9448 USE_CRYPT to 1 when $(build-crypt).
9449 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9450 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9451 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9452
9453 2018-06-29 Zack Weinberg <zackw@panix.com>
9454
9455 * crypt/crypt.h, posix/unistd.h: Update comments and
9456 prototypes for crypt and crypt_r.
9457
9458 * manual/crypt.texi (Cryptographic Functions): New initial
9459 exposition.
9460 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9461 (Unpredictable Bytes): Improve initial exposition. Clarify error
9462 behavior of getentropy and getrandom.
9463 * manual/examples/genpass.c: Generate a salt using getentropy
9464 instead of the current time. Use hash $5$ (SHA-2-256).
9465 * manual/examples/testpass.c: Demonstrate validation against
9466 hashes generated with three different one-way functions.
9467
9468 * manual/intro.texi: crypt.texi does not need an overview
9469 anymore.
9470
9471 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9472 * manual/terminal.texi: Consistently refer to "passphrases"
9473 * instead of "passwords", and to the "user database" instead
9474 * of the "password database".
9475 * manual/users.texi: Similarly. Add notes about how actual
9476 passphrase hashes are now stored in the shadow database.
9477 Remove 20-year-old junk todo note.
9478
9479 2018-06-29 Zack Weinberg <zackw@panix.com>
9480
9481 * manual/crypt.texi: Use a normal top-level @node declaration.
9482 Move most of the introductory text to the 'crypt' section.
9483 Move the example programs below the @deftypefun for 'crypt_r'.
9484 Move the 'getpass' section...
9485 * manual/terminal.texi: ...here.
9486
9487 2018-06-29 Zack Weinberg <zackw@panix.com>
9488 Florian Weimer <fweimer@redhat.com>
9489
9490 * posix/unistd.h: Do not declare encrypt.
9491 (_XOPEN_CRYPT): Remove macro definition.
9492 (crypt): Declare only for _USE_MISC.
9493 * stdlib/stdlib.h: Do not declare setkey.
9494 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9495 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9496
9497 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9498 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9499 into compat symbols. Don't define initial_perm if it's not
9500 going to be used.
9501 * crypt/cert.c: Link explicitly with the expected versions for
9502 setkey and encrypt. If they are not available at all, mark
9503 the test as unsupported.
9504
9505 * sunrpc/des_crypt.c: Unconditionally block linkage with
9506 cbc_crypt and ecb_crypt for new binaries.
9507 * sunrpc/des_soft.c: Unconditionally block linkage with
9508 des_setparity for new binaries.
9509
9510 * manual/crypt.texi: Remove the entire "DES Encryption"
9511 section. Also remove the paragraph talking about FIPS 140-2
9512 from the introduction.
9513 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9514 of libgcrypt for "real" encryption, not DES.
9515 * manual/conf.texi (Constants for Sysconf): Mention that
9516 _XOPEN_CRYPT is no longer impelemented.
9517
9518 * conform/data/unistd.h-data: Remove crypt function declaration.
9519
9520 2018-06-29 Florian Weimer <fweimer@redhat.com>
9521
9522 [BZ #23351]
9523 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9524 (disallow_malloc_check): Remove variable.
9525 (__malloc_check_init): Adjust.
9526 (malloc_set_state): Update comment.
9527 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9528 declarations.
9529
9530 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9531
9532 [BZ #23140]
9533 * localedata/locales/ast_ES (mon): Rename to...
9534 (alt_mon): This.
9535 (mon): Import from CLDR (genitive case).
9536
9537 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9538 Jakub Sitnicki <jkbs@redhat.com>
9539
9540 [BZ #21812]
9541 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9542 on NLM_F_DUMP_INTR.
9543
9544 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9545
9546 * manual/llio.texi: Remove spurious space.
9547
9548 2018-06-28 Florian Weimer <fweimer@redhat.com>
9549
9550 [BZ #23349]
9551 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9552 _STRUCT_TIMESPEC.
9553
9554 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9555
9556 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9557 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9558 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9559 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9560 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9561 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9562 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9563
9564 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9565
9566 [BZ #23266]
9567 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9568 Copy and null-terminate entries that are not terminated, in
9569 addition to empty ones.
9570
9571 2018-06-27 Florian Weimer <fweimer@redhat.com>
9572
9573 [BZ #18023]
9574 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9575 (extend_alloca_account): Remove.
9576 * manual/stdio.texi (Variable Arguments Output): Update comment.
9577
9578 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9579
9580 * nptl/sockperf.c: Remove file.
9581
9582 2018-06-27 Florian Weimer <fweimer@redhat.com>
9583
9584 [BZ #18023]
9585 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9586 scratch_buffer instead of extend_alloca.
9587
9588 2018-06-27 Florian Weimer <fweimer@redhat.com>
9589
9590 [BZ #18023]
9591 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9592 scratch_buffer instead of extend_alloca. Update comments.
9593
9594 2018-06-27 Florian Weimer <fweimer@redhat.com>
9595
9596 [BZ #18023]
9597 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9598 instead of extend_alloca.
9599
9600 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9601
9602 [BZ #13888]
9603 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9604 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9605 /tmp.
9606 * scripts/test-installation.pl: Put temporary files in build
9607 directory, not /tmp.
9608 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9609 (CFLAGS-bug4.c): Likewise.
9610 (CFLAGS-bug5.c): Likewise.
9611 (CFLAGS-test-fseek.c): Likewise.
9612 (CFLAGS-test-popen.c): Likewise.
9613 (CFLAGS-test_rdwr.c): Likewise.
9614 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9615 /tmp.
9616 * stdio-common/bug4.c (main): Likewise.
9617 * stdio-common/bug5.c (main): Likewise.
9618 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9619 * stdio-common/test-popen.c (do_test): Likewise.
9620 * stdio-common/test_rdwr.c (main): Likewise.
9621
9622 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9623
9624 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9625 (sem_open): Set sem.newsem.pad to zero for valgrind.
9626
9627 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9628
9629 [BZ #20251]
9630 * NEWS: Mention fcntl64 addition.
9631 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9632 * login/utmp_file.c: Likewise.
9633 * sysdeps/posix/fdopendir.c: Likewise.
9634 * sysdeps/posix/opendir.c: Likewise.
9635 * sysdeps/unix/pt-fcntl.c: Likewise.
9636 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9637 __fcntl64_nocancel_adjusted): New prototype.
9638 (__fcntl_nocancel_adjusted): Remove prototype.
9639 * io/Makefile (routines): Add fcntl64.
9640 (CFLAGS-fcntl64.c): New rule.
9641 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9642 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9643 * io/fcntl.h (fcntl64): Add prototype and redirect if
9644 __USE_FILE_OFFSET64 is defined.
9645 * io/fcntl64.c: New file.
9646 * manual/llio.text: Add a note for which commands fcntl acts a
9647 cancellation point.
9648 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9649 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9650 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9651 New symbols.
9652 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9653 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9654 non-LFS case.
9655 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9656 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9657 to __fcntl64_nocancel.
9658 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9659 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9660 to __fcntl64_nocancel.
9661 * sysdeps/generic/not-cancel.h: Likewise.
9662 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9663 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9664 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9665 (fcntl64): New symbol.
9666 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9667 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9668 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9670 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9671 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9672 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9673 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9674 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9675 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9676 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9677 fcntl64): Likewise.
9678 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9679 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9680 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9681 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9682 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9683 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9684 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9685 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9686 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9687 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9688 Likewise.
9689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9690 Likewise.
9691 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9692 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9693 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9694
9695 2018-06-26 Florian Weimer <fweimer@redhat.com>
9696
9697 Run thread shutdown functions in an explicit order.
9698 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9699 definition.
9700 (__libc_thread_freeres): Call thread shutdown functions
9701 explicitly.
9702 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9703 * include/string.h (__strerror_thread_freeres): Declare.
9704 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9705 arena_thread_freeres. No longer static. Remove thread shutdown
9706 hook registration.
9707 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9708 Declare.
9709 * resolv/res-close.c (__res_thread_freeres): Renamed from
9710 res_thread_freeres. No longer static. Remove thread shutdown
9711 hook registration.
9712 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9713 * resolv/resolv_conf.c (freeres): Remove incorrect section
9714 attribute and use libc_freeres_fn.
9715 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9716 strerror_thread_freeres. No longer static. Remove thread
9717 shutdown hook registration.
9718 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9719 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9720 shutdown hook registration.
9721 * Makerules (shlib.lds): Do not provide section boundary symbols
9722 for __libc_thread_subfreeres.
9723 * manual/memory.texi (Basic Allocation): Update comment.
9724
9725 2018-06-26 Florian Weimer <fweimer@redhat.com>
9726
9727 Remove always-defined _RPC_THREAD_SAFE_ macro.
9728 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9729 Do not define _RPC_THREAD_SAFE_.
9730 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9731 conditional.
9732 * sunrpc/clnt_perr.c: Likewise.
9733 * sunrpc/clnt_raw.c: Likewise.
9734 * sunrpc/clnt_simp.c: Likewise.
9735 * sunrpc/key_call.c: Likewise.
9736 * sunrpc/rpc_common.c: Likewise.
9737 * sunrpc/rpc_main.c: Likewise.
9738 * sunrpc/rpc_thread.c: Likewise.
9739 * sunrpc/svc.c: Likewise.
9740 * sunrpc/svc_raw.c: Likewise.
9741 * sunrpc/svc_simple.c: Likewise.
9742 * sumrpc/svcauth_des.c: Likewise.
9743
9744 2018-06-26 Florian Weimer <fweimer@redhat.com>
9745
9746 * libio/Makefile (tests-internal): Add tst-vtables,
9747 tst-vtables-interposed.
9748 * libio/tst-vtables.c: New file.
9749 * libio/tst-vtables-common.c: Likewise.
9750 * libio/tst-vtables-interposed.c: Likewise.
9751
9752 2018-06-26 Florian Weimer <fweimer@redhat.com>
9753
9754 * support/support_test_main.c (support_test_main): Only call
9755 setvbuf if not disables.
9756 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9757 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9758
9759 2018-06-26 Florian Weimer <fweimer@redhat.com>
9760
9761 [BZ #23313]
9762 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9763
9764 2018-06-25 Florian Weimer <fweimer@redhat.com>
9765
9766 [BZ #18023]
9767 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9768 Use struct scratch_buffer instead of extend_alloca.
9769
9770 2018-06-25 Florian Weimer <fweimer@redhat.com>
9771
9772 [BZ #18023]
9773 * nss/getent.c (initgroups_keys): Use dynarray instead of
9774 extend_alloca.
9775
9776 2018-06-25 Florian Weimer <fweimer@redhat.com>
9777
9778 [BZ #18023]
9779 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9780 Use struct scratch_buffer instead of extend_alloca.
9781
9782 2018-06-25 Florian Weimer <fweimer@redhat.com>
9783
9784 [BZ #18023]
9785 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9786 back to malloc directly, without stack allocations.
9787
9788 2018-06-25 Florian Weimer <fweimer@redhat.com>
9789
9790 [BZ #18023]
9791 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9792 of extend_alloca.
9793
9794 2018-06-25 Florian Weimer <fweimer@redhat.com>
9795
9796 [BZ #18023]
9797 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9798 of extend_alloca.
9799 * nscd/hstcache.c (addhstbyX): Likewise.
9800 * nscd/pwdcache.c (addpwbyX): Likewise.
9801 * nscd/servicescache.c (addservbyX): Likewise.
9802
9803 2018-06-25 Florian Weimer <fweimer@redhat.com>
9804
9805 [BZ #18023]
9806 * nscd/connections.c (read_cmdline): New function.
9807 (restart): Use it. Update comment.
9808
9809 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9810
9811 [BZ #23140]
9812 * localedata/locales/csb_PL (mon): Rename to...
9813 (alt_mon): This.
9814 (abmon): Rename to...
9815 (ab_alt_mon): This.
9816 (mon): Add with proper genitive forms, copy from Wikipedia.
9817 (abmon): Likewise.
9818
9819 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9820
9821 [BZ #19485]
9822 * localedata/locales/csb_PL (mon): Fix typos:
9823 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9824 (yesstr): Add, value is "jo".
9825 (nostr): Add, value is "nié".
9826
9827 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9828
9829 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9830 all log1p and significand functions on m680x0.
9831 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9832 of s_significand.c..
9833 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9834 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9835 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9836 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9837 s_log1p.c and include it..
9838
9839 2018-06-21 Vincent Chen <vincentc@andestech.com>
9840
9841 * elf/elf.h (R_NDS32_NONE): New define.
9842 (R_NDS32_32_RELA): Likewise.
9843 (R_NDS32_COPY): Likewise.
9844 (R_NDS32_GLOB_DAT): Likewise.
9845 (R_NDS32_JUMP_SLOT): Likewise.
9846 (R_NDS32_RELATIVE): Likewise.
9847 (R_NDS32_TLS_TPOFF): Likewise.
9848 (R_NDS32_TLS_DESC): Likewise.
9849
9850 2018-06-21 Mark Wielaard <mark@klomp.org>
9851
9852 * elf/elf.h (R_BPF_MAP_FD): Removed.
9853 (R_BPF_64_64, R_BPF_64_32): New.
9854
9855 2018-06-21 Florian Weimer <fweimer@redhat.com>
9856
9857 [BZ #23253]
9858 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9859 Renamed from libc_feholdsetround_ctx.
9860 (default_libc_feresetround_ctx): Renamed from
9861 libc_feresetround_ctx.
9862 (default_libc_feholdsetround_noex_ctx): Renamed from
9863 libc_feholdsetround_noex_ctx.
9864 (default_libc_feresetround_noex_ctx): Renamed from
9865 libc_feresetround_noex_ctx.
9866 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9867 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9868 forwardning to the old implementations under the new names.
9869 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9870 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9871 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9872 (libc_feresetround_ctx): Forward to default implements for i386
9873 and MATH_SET_BOTH_ROUNDING_MODES.
9874 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9875 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9876
9877 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9878
9879 * string/tst-cmp.c: Include <libc-diag.h>.
9880 (strncmp_max): Disable -Wstringop-overflow= around call to
9881 strncmp.
9882 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9883 strncasecmp.
9884
9885 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9886 (main): Disable -Wunused-value around call to strpbrk.
9887 * string/bug-strspn1.c: Include <libc-diag.h>.
9888 (main): Disable -Wunused-value around call to strspn.
9889
9890 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9891 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9892
9893 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9894 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9895
9896 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9897
9898 * math/Makefile (libm-calls): Move s_significandF to...
9899 (gen-libm-calls): ... here.
9900 * math/s_significand_template.c: New file.
9901 * math/s_significand.c: Removed.
9902 * math/s_significandf.c: Removed.
9903 * math/s_significandl.c: Removed.
9904 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9905 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9906
9907 * math/e_exp2_template.c (declare_mgen_finite_alias,
9908 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9909 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9910 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9911
9912 2018-06-20 Florian Weimer <fweimer@redhat.com>
9913
9914 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9915
9916 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9917
9918 [BZ #23280]
9919 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9920 floating-point number to strtod functions rather than possibly
9921 negating result of those functions.
9922 * stdio-common/tst-scanf-round.c: New file.
9923 * stdio-common/Makefile (tests): Add tst-scanf-round.
9924 ($(objpfx)tst-scanf-round): Depend on $(libm).
9925
9926 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9927
9928 * sysdeps/mach/hurd/localplt.data: Move to...
9929 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9930 R_386_GLOB_DAT like on Linux i386.
9931
9932 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9933
9934 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9935 (SHM_STAT_ANY): New macro.
9936 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9937 (SHM_STAT_ANY): Likewise.
9938 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9939 (SHM_STAT_ANY): Likewise.
9940 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9941 (SHM_STAT_ANY): Likewise.
9942 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9943 (SHM_STAT_ANY): Likewise.
9944 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9945 (SHM_STAT_ANY): Likewise.
9946 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9947 (SHM_STAT_ANY): Likewise.
9948 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9949 (SHM_STAT_ANY): Likewise.
9950 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9951 (SHM_STAT_ANY): Likewise.
9952 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9953 (SHM_STAT_ANY): Likewise.
9954 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9955 (SHM_STAT_ANY): Likewise.
9956 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9957 (SHM_STAT_ANY): Likewise.
9958
9959 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9960 (SEM_STAT_ANY): New macro.
9961 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9962 (SEM_STAT_ANY): Likewise.
9963 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9964 (SEM_STAT_ANY): Likewise.
9965 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9966 (SEM_STAT_ANY): Likewise.
9967 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9968 (SEM_STAT_ANY): Likewise.
9969 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9970 (SEM_STAT_ANY): Likewise.
9971 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9972 (SEM_STAT_ANY): Likewise.
9973 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9974 (SEM_STAT_ANY): Likewise.
9975 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9976 (SEM_STAT_ANY): Likewise.
9977 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9978 (SEM_STAT_ANY): Likewise.
9979
9980 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9981 (MSG_STAT_ANY): New macro.
9982 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9983 (MSG_STAT_ANY): Likewise.
9984 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9985 (MSG_STAT_ANY): Likewise.
9986 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9987 (MSG_STAT_ANY): Likewise.
9988 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9989 (MSG_STAT_ANY): Likewise.
9990 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9991 (MSG_STAT_ANY): Likewise.
9992 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9993 (MSG_STAT_ANY): Likewise.
9994 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9995 (MSG_STAT_ANY): Likewise.
9996 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9997 (MSG_STAT_ANY): Likewise.
9998 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9999 (MSG_STAT_ANY): Likewise.
10000
10001 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10002 (MAP_TYPE): Change value to 0x2b.
10003
10004 2018-06-18 Florian Weimer <fweimer@redhat.com>
10005
10006 [BZ #15722]
10007 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10008 socket with SOCK_CLOEXEC.
10009
10010 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10011
10012 [BZ #23303]
10013 * sysdeps/powerpc/powerpc64/le/Makefile
10014 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10015 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10016 (gnulib-tests): Also add $(f128-loader-link) for
10017 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10018
10019 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10020
10021 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10022 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10023 of sendfile.
10024 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10025 (sendfile64): New strong alias.
10026 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10027 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10028 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10029 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10030 attribute.
10031 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10032 ___pthread_get_cleanup_stack.
10033 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10034 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10035 * mach/shortcut.awk: Make syscall stubs include
10036 <mach-shortcuts-hidden.h> and add hidden definition.
10037 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10038 (__mach_msg): Add hidden prototype.
10039 * mach/msg.c: Include <mach.h>.
10040 (__mach_msg): Add hidden definition.
10041 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10042 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10043 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10044 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10045 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10046 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10047 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10048 prototype and definition.
10049 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10050 hidden target for _hurd_self_sigstate.
10051
10052 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10053
10054 [BZ #23007]
10055 * stdlib/tst-strtod-nan-sign-main.c: New file.
10056 * stdlib/tst-strtod-nan-sign.c: Likewise.
10057 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10058 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10059 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10060 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10061 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10062
10063 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10064
10065 [BZ #23007]
10066 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10067 appropriate sign.
10068
10069 2018-06-14 Florian Weimer <fweimer@redhat.com>
10070
10071 [BZ #23290]
10072 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10073 that the result stays within the ISO-8859-1 range.
10074 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10075 characters are defined in IBM273.
10076
10077 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10078
10079 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10080 __mach_task_self): Remove attribute_hidden.
10081
10082 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10083
10084 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10085 ignore -Wrestrict for one test.
10086
10087 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10088 Szabolcs Nagy <szabolcs.nagy@arm.com>
10089
10090 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10091
10092 2018-06-14 Florian Weimer <fweimer@redhat.com>
10093
10094 * scripts/update-abilist.sh: Accept empty list of files to patch.
10095
10096 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10097
10098 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10099 test-xfail-check-abi-libmachuser): Add.
10100 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10101 __libc_read and __libc_write to __read and __write.
10102 * sysdeps/hurd/include/hurd/port.h: New file.
10103 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10104 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10105 __thread_switch, __evc_wait): Move declarations to...
10106 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10107 attribute_hidden.
10108 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10109 use PLT to call _hurd_self_sigstate.
10110
10111 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10112
10113 [BZ #23279]
10114 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10115 MAX_EXP as overflowing.
10116 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10117 overflow flag.
10118 (round_str): Output also whether result overflows in each rounding
10119 mode.
10120 * stdlib/tst-strtod-round-data: Add more tests.
10121 * stdlib/tst-strtod-round-data.h: Regenerated.
10122 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10123 (TEST): Handle extra arguments for overflow flags.
10124 (struct test_overflow): New type.
10125 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10126 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10127 (test_in_one_mode): Take argument with overflow information.
10128 (do_test): Update calls to test_in_one_mode.
10129
10130 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10131
10132 * elf/dl-load (_dl_dst_substitute): Correct comment.
10133 (_dl_dst_count): Likewise.
10134
10135 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10136 lll_futex_timed_wait.
10137
10138 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10139
10140 [BZ #23277]
10141 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10142 attribute.
10143 * math/test-nan-const.c: New file.
10144 * math/Makefile (tests): Add test-nan-const.
10145 (CFLAGS-test-nan-const.c): New variable.
10146
10147 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10148
10149 * benchtests/scripts/compare_strings.py (process_results): Add
10150 funcs argument. Compare only functions which are selected.
10151 (main): Check if base function is among selected functions.
10152 Pass selected functions to process_results.
10153 (__main__): Add -f/--functions argument.
10154
10155 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10156 Hongbo Zhang <hongbo.zhang@linaro.org>
10157
10158 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10159 __memcpy_falkor for phecda core.
10160 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10161 __memmove_falkor for phecda core.
10162 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10163 __memset_falkor for phecda core.
10164 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10165 for phecda core.
10166 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10167 macro to identify phecda core.
10168
10169 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10170 Andreas Schwab <schwab@suse.de>
10171 Dmitry V. Levin <ldv@altlinux.org>
10172 Florian Weimer <fweimer@redhat.com>
10173
10174 [BZ #23102]
10175 [BZ #21942]
10176 [BZ #18018]
10177 [BZ #23259]
10178 CVE-2011-0536
10179 * elf/dl-dst.h: Remove DL_DST_COUNT.
10180 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10181 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10182 (is_dst): Comment. Support ELF gABI.
10183 (_dl_dst_count): Comment. Simplify and count DSTs.
10184 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10185 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10186 locals.
10187
10188 2018-06-12 Zack Weinberg <zackw@panix.com>
10189
10190 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10191 * sysdeps/unix/sysv/linux/dl-sysdep.c
10192 Include not-cancel.h. Use __close_nocancel instead of __close,
10193 __open64_nocancel instead of __open, __read_nocancel instead of
10194 __libc_read, and __write_nocancel instead of __libc_write.
10195
10196 * csu/check_fds.c (check_one_fd)
10197 * sysdeps/posix/fdopendir.c (__fdopendir)
10198 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10199 instead of __fcntl and/or __libc_fcntl.
10200
10201 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10202 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10203 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10204 Use __open64_nocancel instead of __open_nocancel.
10205
10206 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10207 hidden_proto declarations to the end and issue them if either
10208 IS_IN(libc) or IS_IN(rtld).
10209 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10210 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10211 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10212 read_nocancel, waitpid_nocancel, write_nocancel.
10213
10214 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10215 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10216 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10217
10218 * nptl/pt-fcntl.c: New file.
10219 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10220 (libpthread-routines): Add pt-fcntl.
10221 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10222 (__libc_fcntl): Remove attribute_hidden.
10223 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10224 __fcntl_nocancel_adjusted, not fcntl_common.
10225 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10226 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10227 to fcntl_nocancel.c.
10228 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10229 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10231 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10232
10233 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10234 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10235 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10236 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10237 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10238 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10239 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10240 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10241 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10242 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10243 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10244 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10245 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10246 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10247 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10248 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10249 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10250 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10251 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10252 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10253
10254 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10255 libpthread-routines.
10256 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10257 defines nothing.
10258
10259 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10260 __libc_read, and __write instead of __libc_write. Define
10261 __open64 in addition to __open.
10262
10263 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10264
10265 [BZ #23250]
10266 [BZ #10686]
10267 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10268 to _private_tm[3] and add __glibc_reserved2.
10269 Add _Static_assert of offset of __private_ss == 0x30.
10270 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10271 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10272
10273 2018-06-12 Florian Weimer <fweimer@redhat.com>
10274
10275 x86: Make strncmp usable from rtld.
10276 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10277 __strncmp_ia32 if in libc (and not in rtld).
10278 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10279 strncmp if not in libc (and not to __strncmp_sse2).
10280
10281 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10282
10283 [BZ #23140]
10284 * localedata/locales/gd_GB (mon): Rename to...
10285 (alt_mon): This.
10286 (mon): Import from CLDR (genitive case).
10287 * localedata/locales/hsb_DE (mon): Rename to...
10288 (alt_mon): This.
10289 (mon): Import from CLDR (genitive case).
10290 * localedata/locales/wa_BE (mon): Rename to...
10291 (alt_mon): This.
10292 (mon): Add, fill with the proper genitive forms, but CLDR data
10293 is incomplete; completed according to the comments in this file.
10294 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10295
10296 * localedata/locales/wa_BE (country_name): Reword
10297 "Beljike" -> "Beldjike".
10298
10299 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10300
10301 [BZ #23272]
10302 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10303 cases of non-finite arguments.
10304 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10305
10306 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10307
10308 [BZ #23174]
10309 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10310
10311 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10312
10313 [BZ #23264]
10314 * include/unistd.h (__execvpex): New prototype.
10315 * posix/Makefile (tests): Add tst-spawn4.
10316 (tests-internal): Add tst-spawn4-compat.
10317 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10318 * posix/tst-spawn4-compat.c: New file.
10319 * posix/tst-spawn4.c: Likewise.
10320 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10321 binaries as shell scripts.
10322 * sysdeps/posix/spawni.c (__spawni): Likewise.
10323
10324 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10325
10326 [BZ #23145]
10327 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10328 ($(all-built-dso:=.dynsym): New target.
10329 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10330 ($(objpfx)check-initfini.out): New target.
10331 (generated): Add check-initfini.out.
10332 * scripts/check-initfini.awk: New file.
10333 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10334 (_fini): Likewise.
10335 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10336 (_fini): Likewise.
10337 * sysdeps/arm/crti.S (_init): Mark as hidden.
10338 (_fini): Likewise.
10339 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10340 (_fini): Likewise.
10341 * sysdeps/i386/crti.S (_init): Mark as hidden.
10342 (_fini): Likewise.
10343 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10344 (_fini): Likewise.
10345 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10346 (_fini): Likewise.
10347 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10348 (_fini): Likewise.
10349 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10350 (_fini): Likewise.
10351 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10352 (_fini): Likewise.
10353 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10354 (_fini): Likewise.
10355 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10356 (_fini): Likewise.
10357 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10358 (_fini): Likewise.
10359 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10360 (_fini): Likewise.
10361 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10362 (_fini): Likewise.
10363 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10364 (_fini): Likewise.
10365 * sysdeps/sh/crti.S (_init): Mark as hidden.
10366 (_fini): Likewise.
10367 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10368 (_fini): Likewise.
10369 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10370 (_fini): Likewise.
10371
10372 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10373
10374 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10375 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10376 and TF redirection to KFtype and KF only when the default
10377 long double type is not the IEEE 128-bit floating point type.
10378
10379 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10380
10381 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10382 macro.
10383 (HWCAP_USCAT): Likewise.
10384 (HWCAP_ILRCPC): Likewise.
10385 (HWCAP_FLAGM): Likewise.
10386 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10387 Increase to 28.
10388 (_dl_aarch64_cap_flags): Add new flag names.
10389
10390 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10391 (MAP_FIXED_NOREPLACE): New macro.
10392 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10393 (MAP_FIXED_NOREPLACE): Likewise.
10394 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10395 (MAP_FIXED_NOREPLACE): Likewise.
10396 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10397 (MAP_FIXED_NOREPLACE): Likewise.
10398 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10399 (MAP_FIXED_NOREPLACE): Likewise.
10400 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10401 (MAP_FIXED_NOREPLACE): Likewise.
10402 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10403 (MAP_FIXED_NOREPLACE): Likewise.
10404 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10405 (MAP_FIXED_NOREPLACE): Likewise.
10406 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10407 (MAP_FIXED_NOREPLACE): Likewise.
10408 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10409 (MAP_FIXED_NOREPLACE): Likewise.
10410 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10411 (MAP_FIXED_NOREPLACE): Likewise.
10412 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10413 (MAP_FIXED_NOREPLACE): Likewise.
10414 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10415 (MAP_FIXED_NOREPLACE): Likewise.
10416 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10417 (MAP_FIXED_NOREPLACE): Likewise.
10418 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10419 (MAP_FIXED_NOREPLACE): Likewise.
10420
10421 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10422 version to 4.17.
10423
10424 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10425
10426 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10427 version to 4.17
10428
10429 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10430
10431 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10432 int.
10433 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10434
10435 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10436
10437 * benchtests/scripts/compare_string.py: (process_results) Catch
10438 exception in non-existent base_func and catch exception in
10439 non-existent attribute.
10440 (parse_file) Catch exception if input file does not exist.
10441
10442 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10443
10444 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10445 options to avoid diff calculation and omit header, respectively.
10446 (main): process --no-diff and --no-header
10447
10448 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10449 H.J. Lu <hongjiu.lu@intel.com>
10450
10451 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10452 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10453 wcsncmp-sse2.
10454 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10455 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10456 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10457 and __wcsncmp_sse2.
10458 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10459 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10460 AVX unaligned load is fast and vzeroupper is preferred.
10461 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10462 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10463 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10464 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10465 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10466 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10467 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10468 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10469 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10470 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10471 is undefined.
10472
10473 2018-06-01 Florian Weimer <fweimer@redhat.com>
10474
10475 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10476 configuring with --disable-multi-arch, building with
10477 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10478 Haswell-era CPU.
10479
10480 2018-06-01 Florian Weimer <fweimer@redhat.com>
10481
10482 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10483 results from building with “-march=x86-64 -mtune=generic
10484 -mfpmath=sse” and running on a Haswell-era CPU.
10485
10486 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10487
10488 [BZ #18473]
10489 * soft-fp/sqrttf2.c: Remove file.
10490 * soft-fp/sqrtdf2.c: Move to ....
10491 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10492 <shlib-compat.h>.
10493 (__sqrtdf2): Make conditional on
10494 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10495 symbol.
10496 * soft-fp/sqrtsf2.c: Move to ....
10497 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10498 <shlib-compat.h>.
10499 (__sqrtsf2): Make conditional on
10500 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10501 symbol.
10502 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10503 (gcc-double-routines): Remove sqrtdf2.
10504 (gcc-quad-routines): Remove sqrttf2.
10505 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10506 Do not filter out sqrtsf2 and sqrtdf2.
10507 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10508 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10509
10510 2018-06-01 Florian Weimer <fweimer@redhat.com>
10511
10512 * sysdeps/generic/libcidn.abilist: Remove file.
10513
10514 2018-06-01 Florian Weimer <fweimer@redhat.com>
10515
10516 [BZ #23236]
10517 * libio/strfile.h (struct _IO_str_fields): Rename members to
10518 discourage their use and add comment.
10519 (_IO_STR_DYNAMIC): Remove unused macro.
10520 * libio/strops.c (_IO_str_init_static_internal): Do not use
10521 callback pointers. Call malloc and free.
10522 (_IO_str_overflow): Do not use callback pointers. Call malloc
10523 and free.
10524 (enlarge_userbuf): Likewise.
10525 (_IO_str_finish): Call free.
10526 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10527 _allocate_buffer_unused.
10528 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10529 and free.
10530 (enlarge_userbuf): Likewise.
10531 (_IO_wstr_finish): Call free.
10532 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10533 _allocate_buffer_unused, _free_buffer_unused.
10534 * libio/memstream.c (__open_memstream): Likewise.
10535 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10536 * libio/wmemstream.c (open_wmemstream): Likewise.
10537
10538 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10539
10540 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10541 AMD Ryzen 7 1800X.
10542
10543 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10544
10545 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10546 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10547 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10548 New file.
10549 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10550 Likewise.
10551 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10552
10553 2018-05-29 Florian Weimer <fweimer@redhat.com>
10554
10555 * support/Makefile (libsupport-routines): Add
10556 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10557 xpthread_barrierattr_setpshared.
10558 * support/xpthread_barrierattr_destroy.c: New file.
10559 * support/xpthread_barrierattr_init.c: Likewise.
10560 * support/xpthread_barrierattr_setpshared.c: Likewise.
10561
10562 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10563
10564 [BZ #23206]
10565 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10566 _r_debug and update DT_DEBUG for debugger.
10567
10568 2018-05-29 Florian Weimer <fweimer@redhat.com>
10569
10570 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10571 (tst-strtod5i.out): Likewise.
10572
10573 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10574
10575 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10576 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10577 (sparc64-quad-routines): New variable. Moved from ....
10578 [$(subdir) = soft-fp] (sysdep_routines): Add
10579 $(sparc64-quad-routines). Moved from ....
10580 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10581 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10582 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10583 moved from ....
10584 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10585 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10586 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10587 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10588 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10589 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10590 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10591 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10592 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10593 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10594 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10595 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10596 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10597 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10598 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10599 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10600 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10601 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10602 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10603 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10604 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10605 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10606 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10607 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10608 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10609 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10610 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10611 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10612 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10613 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10614 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10615 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10616 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10617 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10618 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10619 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10620 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10621 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10622 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10623 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10624 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10625 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10626 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10627 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10628 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10629 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10630 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10631 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10632 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10633 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10634 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10635 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10636 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10637 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10638 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10639 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10640 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10641 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10642
10643 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10644 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10645 (sparc32-quad-routines): New variable. Moved from ....
10646 [$(subdir) = soft-fp] (sysdep_routines): Add
10647 $(sparc32-quad-routines). Moved from ....
10648 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10649 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10650 moved from ....
10651 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10652 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10653 * sysdeps/sparc/sparc32/q_add.c: ... here.
10654 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10655 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10656 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10657 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10658 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10659 * sysdeps/sparc/sparc32/q_div.c: ... here.
10660 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10661 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10662 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10663 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10664 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10665 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10666 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10667 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10668 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10669 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10670 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10671 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10672 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10673 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10674 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10675 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10676 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10677 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10678 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10679 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10680 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10681 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10682 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10683 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10684 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10685 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10686 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10687 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10688 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10689 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10690 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10691 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10692 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10693 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10694 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10695 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10696 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10697 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10698 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10699 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10700 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10701 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10702 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10703 * sysdeps/sparc/sparc32/q_util.c: ... here.
10704 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10705 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10706 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10707 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10708
10709 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10710 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10711
10712 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10713 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10714 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10715 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10716
10717 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10718
10719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10720 powerpc/soft-fp.
10721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10722 Likewise.
10723 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10724 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10725
10726 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10727
10728 [BZ #23171]
10729 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10730 double version.
10731
10732 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10733
10734 * sysdeps/sh/Implies: Remove sh/soft-fp.
10735 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10736 * sysdeps/sh/sfp-machine.h: ... here.
10737
10738 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10739
10740 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10741 (__mempcpy_erms): Skip zero length.
10742 (__memmove_erms): Likewise.
10743 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10744 (__memset_erms): Likewise.
10745
10746 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10747
10748 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10749 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10750 Add functions moved from ....
10751 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10752 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10753 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10754 from ....
10755 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10756 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10757 * sysdeps/alpha/e_sqrtl.c: ... here.
10758 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10759 * sysdeps/alpha/local-soft-fp.h: ... here.
10760 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10761 * sysdeps/alpha/ots_add.c: ... here.
10762 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10763 * sysdeps/alpha/ots_cmp.c: ... here.
10764 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10765 * sysdeps/alpha/ots_cmpe.c: ... here.
10766 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10767 * sysdeps/alpha/ots_cvtqux.c: ... here.
10768 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10769 * sysdeps/alpha/ots_cvtqx.c: ... here.
10770 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10771 * sysdeps/alpha/ots_cvttx.c: ... here.
10772 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10773 * sysdeps/alpha/ots_cvtxq.c: ... here.
10774 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10775 * sysdeps/alpha/ots_cvtxt.c: ... here.
10776 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10777 * sysdeps/alpha/ots_div.c: ... here.
10778 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10779 * sysdeps/alpha/ots_mul.c: ... here.
10780 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10781 * sysdeps/alpha/ots_nintxq.c: ... here.
10782 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10783 * sysdeps/alpha/ots_sub.c: ... here.
10784 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10785 * sysdeps/alpha/sfp-machine.h: ... here.
10786
10787 2018-05-23 Florian Weimer <fweimer@redhat.com>
10788
10789 [BZ #19728]
10790 [BZ #19729]
10791 [BZ #22247]
10792 CVE-2016-6261
10793 CVE-2016-6263
10794 CVE-2017-14062
10795 Switch to extern IDNA implementation (libidn2).
10796 * libidn: Remove subdirectory.
10797 * LICENSES: Do not mention licensing conditions for the removed
10798 libidn code.
10799 * config.h.in (HAVE_LIBIDN): Remove.
10800 * include/dlfcn.h (__libc_dlopen): Update comment.
10801 * include/idna.h: Remove file.
10802 * inet/Makefile (routines): Add idna.
10803 (tests-static, tests-internal): Add tst-idna_name_classify.
10804 (LOCALES): Generate locales for tests.
10805 (tst-idna_name_classify.out): Depend on generated locales.
10806 * inet/idna_name_classify.c: New file.
10807 * inet/tst-idna_name_classify.c: Likewise.
10808 * inet/net-internal.h (__idna_to_dns_encoding)
10809 (__idna_from_dns_encoding): Declare.
10810 * inet/net-internal.h (enum idna_name_classification): Define.
10811 (__idna_name_classify): Declare.
10812 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10813 __idna_from_dns_encoding.
10814 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10815 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10816 name as a fallback in case of encoding errors.
10817 (getnameinfo): Use DEPRECATED_NI_IDN.
10818 * inet/idna.c: New file.
10819 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10820 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10821 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10822 (modules-names): Add tst-no-libidn2.
10823 (extra-test-objs): Add tst-no-libidn2.os.
10824 (LDFLAGS-tst-no-libidn2.so): Set soname.
10825 (LOCALES): Set, and generate locales.
10826 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10827 (tst-resolv-ai_idn-latin1): Likewise.
10828 (tst-resolv-ai_idn-nolibidn2): Likewise.
10829 (tst-resolv-ai_idn.out): Depend on locales.
10830 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10831 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10832 tst-no-libidn2.so.
10833 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10834 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10835 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10836 * resolv/tst-resolv-ai_idn.c: New file.
10837 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10838 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10839 * resolv/tst-no-libidn2.c: Likewise.
10840 * support/support_format_addrinfo.c (format_ai_flags): Do not
10841 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10842 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10843 (gaih_inet): Call __idna_to_dns_encoding and
10844 __idna_from_dns_encoding, and use the original (punycode) name if
10845 __idna_from_dns_encoding fails due to an encoding error.
10846 (getaddrinfo): Use DEPRECATED_AI_IDN.
10847 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10848 * sysdeps/unix/inet/configure: Remove file.
10849 * sysdeps/unix/inet/configure.ac: Likewise.
10850
10851 2018-05-23 Florian Weimer <fweimer@redhat.com>
10852
10853 Implement allocate_once.
10854 * include/allocate_once.h: New file.
10855 * misc/allocate_once.c: Likewise.
10856 * misc/tst-allocate_once.c: Likewise.
10857 * misc/Makefile (routines): Add allocate_once.
10858 (tests-internal): Add tst-allocate_once.
10859 (generated): Add tst-allocate_once.mtrace,
10860 tst-allocate_once-mem.out.
10861 (tests-special): Add tst-allocate_once-mem.out.
10862 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10863 (tst-allocate_once-mem.out): Call mtrace.
10864 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10865
10866 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10867
10868 [BZ #23196]
10869 * string/test-memcpy.c (do_test1): New function.
10870 (test_main): Call it.
10871
10872 2018-05-23 Andreas Schwab <schwab@suse.de>
10873
10874 [BZ #23196]
10875 CVE-2018-11237
10876 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10877 (L(preloop_large)): Save initial destination pointer in %r11 and
10878 use it instead of %rax after the loop.
10879 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10880
10881 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10882
10883 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10884 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10885 -I../soft-fp. Moved from ....
10886 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10887 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10888 * sysdeps/aarch64/e_sqrtl.c: ... here.
10889 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10890 * sysdeps/aarch64/sfp-machine.h: ... here.
10891
10892 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10893 -Wmaybe-uninitialized around access to fq[0].
10894 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10895 Likewise.
10896
10897 [BZ #18471]
10898 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10899 aliases for non-libc case of versioned symbols.
10900 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10901 (llseek): Define as compat symbol if
10902 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10903 with link warning.
10904 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10905 Make into a compat symbol, disabled for minimum symbol version
10906 GLIBC_2.28 and later.
10907 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10908
10909 2018-05-22 Florian Weimer <fweimer@redhat.com>
10910
10911 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10912 not add -mpreferred-stack-boundary=4.
10913 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10914 (stack-align-test-flags): Likewise.
10915 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10916 Likewise.
10917 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10918 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10919 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10920 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10921 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10922 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10923 (CFLAGS-tst-align2.c): Likewise.
10924
10925 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10926
10927 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10928 (index_arch_Prefer_FSRM): Likewise.
10929 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10930 Also check Prefer_FSRM.
10931 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10932 Also return OPTIMIZE (erms) for Prefer_FSRM.
10933
10934 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10937 (index_cpu_FSRM): Likewise.
10938 (reg_FSRM): Likewise.
10939
10940 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10941
10942 * math/gen-tgmath-tests.py: Import sys.
10943 (Tests.__init__): Initialize macros_seen.
10944 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10945 if requested to do so for this macro.
10946 (Tests.add_all_tests): Take argument for macro for which to
10947 generate tests.
10948 (Tests.check_macro_list): New function.
10949 (main): Handle check-list argument and argument specifying macro
10950 for which to generate tests.
10951 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10952 [PYTHON] (tgmath3-macro-tests): Likewise.
10953 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10954 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10955 not test-tgmath3.c.
10956 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10957 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10958 to CFLAGS.
10959 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10960 [PYTHON] ($(foreach
10961 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10962 rule.
10963 [PYTHON] (tests-special): Add
10964 $(objpfx)test-tgmath3-macro-list.out.
10965 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10966
10967 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10968 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10969 later.
10970
10971 [BZ #22639]
10972 * time/tzset.c (SECSPERDAY): Cast to time_t.
10973 * time/tst-y2039.c: New file.
10974 * time/Makefile (tests): Add tst-y2039.
10975
10976 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10977
10978 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10979 (PREFETCH_ONE_SET): Remove duplicate line.
10980
10981 2018-05-17 Florian Weimer <fweimer@redhat.com>
10982
10983 * sysdeps/generic/math-type-macros-double.h: Include
10984 <math-nan-payload-double.h> after <libm-alias-double.h>.
10985 * sysdeps/generic/math-type-macros-float.h: Include
10986 <math-nan-payload-float.h> after <libm-alias-float.h>.
10987 * sysdeps/generic/math-type-macros-float128.h: Include
10988 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10989 * sysdeps/generic/math-type-macros-ldouble.h: Include
10990 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10991
10992 2018-05-17 Andreas Schwab <schwab@suse.de>
10993
10994 * resolv/res_send.c (__res_context_send): Don't set errno when
10995 returing error after malloc failure.
10996
10997 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10998
10999 * nptl/allocatestack.c (allocate_stack): Remove the
11000 !__ASSUME_PRIVATE_FUTEX paths.
11001 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11002 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11003 Likewise.
11004 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11005 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11006 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11007 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11008 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11009 !__ASSUME_PRIVATE_FUTEX path.
11010 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11011 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11012 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11013 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11014 !__ASSUME_PRIVATE_FUTEX macros.
11015 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11016 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11017 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11018 * sysdeps/unix/sysv/linux/kernel-features.h
11019 (__ASSUME_PRIVATE_FUTEX): Removed.
11020
11021 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11022
11023 * math/Makefile (libm-narrow-fns): Add div.
11024 (libm-test-funcs-narrow): Likewise.
11025 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11026 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11027 * math/gen-auto-libm-tests.c (test_functions): Add div.
11028 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11029 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11030 (NARROW_DIV_TRIVIAL): Likewise.
11031 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11032 macro.
11033 (__ddivl): Likewise.
11034 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11035 ddiv.
11036 (CFLAGS-nldbl-ddiv.c): New variable.
11037 (CFLAGS-nldbl-fdiv.c): Likewise.
11038 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11039 __nldbl_ddivl.
11040 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11041 prototype.
11042 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11043 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11044 * math/auto-libm-test-in: Add tests of div.
11045 * math/auto-libm-test-out-narrow-div: New generated file.
11046 * math/libm-test-narrow-div.inc: New file.
11047 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11048 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11049 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11050 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11051 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11052 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11053 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11054 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11055 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11056 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11057 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11058 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11059 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11060 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11061 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11062 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11063 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11064 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11065 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11066 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11070 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11074 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11075 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11091
11092 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11093
11094 [BZ #23178]
11095 * nscd/nscd-client.h (sendfileall): Remove prototype.
11096 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11097 (handle_request): Use writeall instead of sendfileall.
11098 * nscd/aicache.c (addhstaiX): Likewise.
11099 * nscd/grpcache.c (cache_addgr): Likewise.
11100 * nscd/hstcache.c (cache_addhst): Likewise.
11101 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11102 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11103 * nscd/pwdcache.c (cache_addpw): Likewise.
11104 * nscd/servicescache.c (cache_addserv): Likewise.
11105 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11106 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11107 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11108 Remove define.
11109
11110 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11111
11112 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11113 Include <string/strncat.c>.
11114 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11115 alias.
11116 (__GI___strncat): New hidden alias.
11117
11118 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11119
11120 * sysdeps/mips/mips32/libm-test-ulps: Update.
11121 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11122
11123 2018-05-16 Florian Weimer <fweimer@redhat.com>
11124
11125 * support/Makefile (libsupport-routines): Add support_quote_blob,
11126 support_test_compare_blob.
11127 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11128 * support/check.h (TEST_COMPARE_BLOB): Define.
11129 (support_test_compare_blob): Declare.
11130 * support/support.h (support_quote_blob): Declare.
11131 * support/support_quote_blob.c: New file.
11132 * support/support_test_compare_blob.c: Likewise.
11133 * support/tst-support_quote_blob.c: Likewise.
11134 * support/tst-test_compare_blob.c: Likewise.
11135
11136 2018-05-16 Florian Weimer <fweimer@redhat.com>
11137
11138 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11139 of <strtod_nan_double.h>.
11140 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11141 instead of SET_MANTISSA.
11142 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11143 of include <strtod_nan_float.h>.
11144 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11145 instead of <strtod_nan_ldouble.h>.
11146 * stdlib/strtod_nan_double.h: Move to ...
11147 * sysdeps/generic/math-nan-payload-double.h: ... here.
11148 (FLOAT): Remove definition.
11149 (SET_MANTISSA): Rename to ...
11150 (SET_NAN_PAYLOAD): ... this.
11151 * stdlib/strtod_nan_float.h: Move to ...
11152 * sysdeps/generic/math-nan-payload-float.h: ... here.
11153 (FLOAT): Remove definition.
11154 (SET_MANTISSA): Rename to ...
11155 (SET_NAN_PAYLOAD): ... this.
11156 * sysdeps/generic/math-type-macros-double.h: Include
11157 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11158 instead of <math-svid-compat.h>.
11159 * sysdeps/generic/math-type-macros-float.h: Include
11160 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11161 instead of <math-svid-compat.h>.
11162 * sysdeps/generic/math-type-macros-float128.h: Include
11163 <math-nan-payload-float128.h>.
11164 * sysdeps/generic/math-type-macros-ldouble.h: Include
11165 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11166 instead of <math-svid-compat.h>.
11167 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11168 check for definition.
11169 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11170 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11171 Include <ieee754_float128.h>.
11172 (FLOAT): Remove definition.
11173 (SET_MANTISSA): Rename to ...
11174 (SET_NAN_PAYLOAD): ... this.
11175 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11176 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11177 Do not include <float128_private.h>.
11178 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11179 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11180 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11181 (FLOAT): Remove definition.
11182 (SET_MANTISSA): Rename to ...
11183 (SET_NAN_PAYLOAD): ... this.
11184 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11185 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11186 (FLOAT): Remove definition.
11187 (SET_MANTISSA): Rename to ...
11188 (SET_NAN_PAYLOAD): ... this.
11189 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11190 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11191 (FLOAT): Remove definition.
11192 (SET_MANTISSA): Rename to ...
11193 (SET_NAN_PAYLOAD): ... this.
11194 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11195 of "../stdlib/strtod_nan_double.h".
11196 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11197 of "../stdlib/strtod_nan_float.h".
11198 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11199 instead of "../stdlib/strtod_nan_ldouble.h".
11200 * manual/arith.texi (Parsing of Floats): Adjust comment.
11201
11202 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11203
11204 * math/Makefile (libm-narrow-fns): Add mul.
11205 (libm-test-funcs-narrow): Likewise.
11206 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11207 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11208 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11209 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11210 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11211 (NARROW_MUL_TRIVIAL): Likewise.
11212 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11213 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11214 macro.
11215 (__dmull): Likewise.
11216 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11217 dmul.
11218 (CFLAGS-nldbl-dmul.c): New variable.
11219 (CFLAGS-nldbl-fmul.c): Likewise.
11220 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11221 __nldbl_dmull.
11222 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11223 prototype.
11224 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11225 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11226 * math/auto-libm-test-in: Add tests of mul.
11227 * math/auto-libm-test-out-narrow-mul: New generated file.
11228 * math/libm-test-narrow-mul.inc: New file.
11229 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11230 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11231 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11232 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11233 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11234 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11235 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11236 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11237 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11238 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11239 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11240 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11241 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11242 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11243 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11244 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11245 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11246 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11247 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11248 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11249 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11250 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11251 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11252 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11253 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11254 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11255 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11256 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11257 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11258 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11259 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11260 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11265 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11266 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11267 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11268 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11269 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11270 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11271 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11272 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11273
11274 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11275
11276 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11277 with *%eax in call.
11278
11279 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11280
11281 * sysdeps/i386/ldsodefs.h: Removed.
11282 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11283 * sysdeps/x86/ldsodefs.h: This.
11284 (La_i86_regs): New.
11285 (La_i86_retval): Likewise.
11286 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11287 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11288
11289 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11290
11291 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11292 unnecessary testl.
11293
11294 2018-05-13 Alan Modra <amodra@gmail.com>
11295
11296 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11297 R_PARISC_TLS_DTPOFF32 reloc addend.
11298
11299 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11300
11301 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11302 * math/math.h: Restrict the prototype definition for the functions
11303 issignaling(_Float128) and iszero(_Float128); and template
11304 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11305 __HAVE_FLOAT128_UNLIKE_LDBL.
11306 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11307 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11308 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11309 __f128() constants; define the type _Float128 as long double;
11310 and reuse long double in __CFLOAT128.
11311
11312 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11313
11314 * sysdeps/generic/math_private.h: Do not include
11315 <math-barriers.h>.
11316 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11317 <math_private.h>.
11318 * math/fromfp.h: Include <math-barriers.h>.
11319 * math/math-narrow.h: Likewise.
11320 * math/s_nextafter.c: Likewise.
11321 * math/s_nexttowardf.c: Likewise.
11322 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11323 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11324 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11325 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11326 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11327 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11328 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11329 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11330 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11331 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11332 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11333 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11334 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11335 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11336 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11337 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11338 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11339 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11340 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11341 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11342 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11343 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11344 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11345 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11346 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11347 * sysdeps/ieee754/k_standardl.c: Likewise.
11348 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11349 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11350 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11351 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11352 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11353 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11354 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11355 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11356 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11357 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11358 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11359 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11360 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11361 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11362 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11363 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11364 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11365 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11366 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11367 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11368 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11369 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11370
11371 2018-05-11 Florian Weimer <fweimer@redhat.com>
11372
11373 Use 64-bit epoch values in the time zone file parser.
11374 * include/time.h (internal_time_t): Define.
11375 (__tzfile_compute): Use it.
11376 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11377 member.
11378 (transitions): Switch to internal_time_t.
11379 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11380 types.
11381 (__tzfile_compute): Use internal_time_t for timer argument. Check
11382 for truncation before calling __offtime.
11383
11384 2018-05-11 Florian Weimer <fweimer@redhat.com>
11385
11386 [BZ #23166]
11387 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11388 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11389 Likewise.
11390 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11391 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11392 export without --enable-obsolete-rpc.
11393 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11394 symbol. This should not have been exported, ever.
11395
11396 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11397
11398 [BZ #23152]
11399 * localedata/locales/gd_GB (abmon): Fix typo in May:
11400 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11401
11402 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11403
11404 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11405 Use multiple registers to copy data in loop tail.
11406
11407 * sysdeps/aarch64/multiarch/memmove_falkor.S
11408 (__memmove_falkor): Use multiple registers to move data in
11409 loop tail.
11410
11411 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11412
11413 * math/math-underflow.h: New file.
11414 * sysdeps/generic/math_private.h: Do not include <float.h>.
11415 (fabs_tg): Remove macro. Moved to math-underflow.h.
11416 (min_of_type_f): Likewise.
11417 (min_of_type_): Likewise.
11418 (min_of_type_l): Likewise.
11419 (min_of_type_f128): Likewise.
11420 (min_of_type): Likewise.
11421 (math_check_force_underflow): Likewise.
11422 (math_check_force_underflow_nonneg): Likewise.
11423 (math_check_force_underflow_complex): Likewise.
11424 * math/e_exp2_template.c: Include <math-underflow.h>.
11425 * math/k_casinh_template.c: Likewise.
11426 * math/s_catan_template.c: Likewise.
11427 * math/s_catanh_template.c: Likewise.
11428 * math/s_ccosh_template.c: Likewise.
11429 * math/s_cexp_template.c: Likewise.
11430 * math/s_clog10_template.c: Likewise.
11431 * math/s_clog_template.c: Likewise.
11432 * math/s_csin_template.c: Likewise.
11433 * math/s_csinh_template.c: Likewise.
11434 * math/s_csqrt_template.c: Likewise.
11435 * math/s_ctan_template.c: Likewise.
11436 * math/s_ctanh_template.c: Likewise.
11437 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11438 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11439 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11440 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11441 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11442 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11443 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11444 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11445 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11446 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11447 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11448 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11449 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11450 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11451 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11452 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11453 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11454 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11455 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11456 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11457 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11458 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11459 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11460 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11461 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11462 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11463 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11464 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11465 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11466 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11467 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11468 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11469 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11470 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11471 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11472 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11474 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11475 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11476 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11477 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11478 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11479 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11480 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11481 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11482 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11488 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11490 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11491 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11493 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11495 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11497 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11498 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11499 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11500 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11501 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11504 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11505 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11506 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11507 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11508 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11509 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11510 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11511 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11512 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11513 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11514 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11515 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11516 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11517 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11518 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11519 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11520 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11521
11522 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11523
11524 * sysdeps/generic/math-barriers.h: New file.
11525 * sysdeps/generic/math_private.h [!math_opt_barrier]
11526 (math_opt_barrier): Move to math-barriers.h.
11527 [!math_opt_barrier] (math_force_eval): Likewise.
11528 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11529 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11530 math-barriers.h.
11531 (math_force_eval): Likewise.
11532 * sysdeps/alpha/fpu/math-barriers.h: New file.
11533 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11534 math-barriers.h.
11535 (math_force_eval): Likewise.
11536 * sysdeps/x86/fpu/math-barriers.h: New file.
11537 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11538 math-barriers.h.
11539 (math_force_eval): Likewise.
11540 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11541 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11542 multiple-include guard for rename.
11543 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11544 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11545 math-barriers.h.
11546 (math_force_eval): Likewise.
11547
11548 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11549
11550 [BZ #22786]
11551 CVE-2018-11236
11552 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11553 computation.
11554 * stdlib/Makefile (test-bz22786): New test.
11555 * stdlib/test-bz22786.c: New test.
11556
11557 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11558
11559 * include/math-narrow-eval.h: New file. Contents moved from ....
11560 * sysdeps/generic/math_private.h: ... here.
11561 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11562 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11563 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11564 * stdlib/strtod_l.c: Likewise.
11565 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11566 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11567 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11568 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11569 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11570 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11571 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11572 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11573 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11574 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11575 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11576 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11577 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11578 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11579 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11580 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11581 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11582 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11583 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11584 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11585 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11586 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11587 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11588 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11589 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11590 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11591 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11592 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11593 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11594
11595 2018-05-08 Andreas Schwab <schwab@suse.de>
11596
11597 * sysdeps/nptl/internaltypes.h: Fix comment.
11598
11599 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11600
11601 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11602 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11603 hidden.
11604
11605 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11606
11607 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11608 of I into loop header.
11609 * benchtests/bench-memmove-walk.c
11610 (test_main): Likewise.
11611
11612 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11613
11614 Revert:
11615 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11616 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11617
11618 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11619
11620 [BZ #20419]
11621 * elf/dl-load.c (open_verify): Fix stack overflow.
11622 * elf/Makefile (tst-big-note): New test.
11623 * elf/tst-big-note-lib.S: New.
11624 * elf/tst-big-note.c: New.
11625
11626 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11627
11628 * scripts/abilist.awk: Ignore absolute symbols.
11629 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11630 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11631 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11632 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11633 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11634 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11635 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11636 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11637 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11638 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11639 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11640 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11721 Likewise.
11722 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11735 Likewise.
11736 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11763 Likewise.
11764 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11784 Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11817 Likewise.
11818 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11821 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11823 Likewise.
11824 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11825 Likewise.
11826 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11828 Likewise.
11829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11831 Likewise.
11832 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11833 Likewise.
11834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11837 Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11839 Likewise.
11840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11841 Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11846 Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11853 Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11856 Likewise.
11857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11858 Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11860 Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11862 Likewise.
11863 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11866 Likewise.
11867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11868 Likewise.
11869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11870 Likewise.
11871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11874 Likewise.
11875 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11889 Likewise.
11890 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11902 Likewise.
11903 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11928 Likewise.
11929 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11942 Likewise.
11943 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11971 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11981
11982 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11983
11984 [BZ #23137]
11985 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11986 Use atomic_load_acquire to load __tid.
11987
11988 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11989
11990 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11991 Restore the pointer into %rdx, after syscall and use %rdx,
11992 instead of %rsi, to restore context.
11993
11994 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11995
11996 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11997 Pop the pointer into %rdx after syscall and use %rdx, instead
11998 of %rsi, to restore context.
11999
12000 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12001
12002 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12003 handlers after setjmp.
12004 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12005 defined.
12006 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12007 <libc-pointer-arith.h>.
12008 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12009 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12010 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12011 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12012 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12013 * sysdeps/x86/__longjmp_cancel.S: New file.
12014 * sysdeps/x86/longjmp.c: Likewise.
12015 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12016
12017 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12018
12019 * NEWS: Add ustat.h deprecation entry.
12020 * bits/ustat.h: Remove file.
12021 * misc/sys/ustat.h: Likewise.
12022 * misc/ustat.h: Likewise.
12023 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12024 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12025 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12026 compatibility mode.
12027 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12028 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12029 generic Linux implementation.
12030
12031 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12032
12033 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12034 * math/w_expl_compat.c: Likewise.
12035 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12036
12037 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12038
12039 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12040
12041 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12042
12043 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12044 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12045 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12046 Remove.
12047 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12049 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12050 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12051 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12052 and SYSCALL_LL64.
12053
12054 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12055
12056 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12057
12058 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12059 * math/w_asin_template.c: Likewise.
12060 * math/w_atanh_template.c: Likewise.
12061
12062 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12063
12064 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12065 to powerpc/powerpc64/be for big-endian.
12066 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12067 little-endian.
12068
12069 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12070 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/power5+/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/power6/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12101
12102 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12103 adjusted to imply powerpc64 and older processors on powerpc64/be.
12104 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/be/power5+/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/power6/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12125 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12128 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12129 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12130 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12131 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12132 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12135
12136 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12137 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12138 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12139 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12140
12141 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12142 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12143 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12144 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12145
12146 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12147 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12148 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12149 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12150 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12151 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12152 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12153 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12154 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12155 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12156 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12157
12158 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12159 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12160 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12161 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12162 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12163 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12164 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12165 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12166 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12167 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12168 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12169
12170 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12171 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12172 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12173 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12174 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12175 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12176 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12178 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12179 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12180 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12182
12183 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12184 and adjusted to imply olders processors.
12185 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12186 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12187 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12188 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12189 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12190 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12191 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12192 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12193 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12194 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12195 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12196
12197 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12198 powerpc64/le.
12199 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12200 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12201
12202 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12203 powerpc64le.
12204 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12206
12207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12208 powerpc64/be.
12209 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12211 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12212
12213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12214 powerpc64 and adjusted.
12215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12216 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12218 Likewise.
12219
12220 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12221
12222 * sysdeps/tile: Remove.
12223 * sysdeps/unix/sysv/linux/tile: Likewise.
12224 * README (tilegx-*-linux-gnu): Remove from list of supported
12225 configurations.
12226 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12227 contribution of support for generic Linux kernel syscall
12228 interface.
12229 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12230 tilegx configurations.
12231 (Config.install_linux_headers): Do not handle tile.
12232 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12233 in comment.
12234 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12235 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12236 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12237 conditional undefine and redefine.
12238 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12239 in comment.
12240 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12241 conditional undefine and redefine.
12242
12243 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12244
12245 * signal/tst-sigaction.c: New file to test BZ #23069.
12246 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12247
12248 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12249
12250 [BZ #22766]
12251 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12252 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12253 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12254 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12255
12256 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12257
12258 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12259 _DIRENT_MATCHES_DIRENT64 is not defined.
12260 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12261 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12262 is defined.
12263 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12264 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12265
12266 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12267
12268 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12269 version to GCC 8 branch.
12270
12271 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12272
12273 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12274 (check_no_hidden): Use type of original function when declaring
12275 alias.
12276
12277 * sysdeps/unix/sysv/linux/sys/ptrace.h
12278 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12279 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12280 (struct __ptrace_seccomp_metadata): New type.
12281 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12282 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12283 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12284 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12285 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12286 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12287 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12288 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12289 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12290 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12291 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12292 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12293 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12294 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12295 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12296 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12297
12298 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12299
12300 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12301 defined.
12302 * dirent/versionsort.c (versionsort): Likewise.
12303 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12304 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12305 * dirent/versionsort64.c (versionsort64): Likewise.
12306 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12307 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12308 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12309 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12310 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12311 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12312 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12313 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12314 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12315 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12318 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12319 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12320
12321 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12322
12323 * elf/elf.h (NT_PPC_PKEY): New macro.
12324
12325 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12326
12327 [BZ #23094]
12328 * localedata/locales/hr_HR: fix thousands_sep and
12329 mon_thousands_sep
12330
12331 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12332
12333 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12334 (XTABS): Define to TAB3.
12335
12336 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12337
12338 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12339
12340 * dirent/scandir-tail-common.c: New file.
12341 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12342 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12343 * dirent/scandir.c: Use scandir-tail-common.c.
12344 * dirent/scandirat.c: Likewise.
12345 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12346 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12347 if _DIRENT_MATCHES_DIRENT64 is defined.
12348 * dirent/scandirat64.c (scandirat64): Likewise.
12349 * include/dirent.h (__scandir_tail): Only define iff
12350 _DIRENT_MATCHES_DIRENT64 is not defined.
12351 (__scandir64_tail): Define regardless.
12352 (__scandirat, scandirat64): Remove libc_hidden_proto.
12353 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12354 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12355 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12356 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12357 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12358 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12359 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12360
12361 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12362
12363 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12364 New macro.
12365 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12366 Increase to 24.
12367 (_dl_aarch64_cap_flags): Add asimdfhm.
12368
12369 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12370
12371 * sysdeps/nios2/libm-test-ulps: Update.
12372
12373 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12374
12375 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12376 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12377
12378 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12379 requirements.
12380 (_DIRENT_MATCHES_DIRENT64): Undef
12381 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12382 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12383 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12384 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12385 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12386 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12387 use getdents64 syscalls as base.
12388 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12389 symbol if required.
12390 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12391 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12392 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12393 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12394 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12395 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12396 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12397 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12398 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12399 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12400 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12401
12402 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12403
12404 * scripts/test_printers_common.py (init_test): Disable lock elision.
12405
12406 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12407
12408 * math/test-tgmath.c (count_double, count_float,
12409 count_ldouble, count_cdouble, count_cfloat,
12410 count_cldouble): Use volatile int.
12411
12412 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12413
12414 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12415 (conformtest-xfail-conds): Add i386-gnu.
12416 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12417 i386-gnu.
12418 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12419 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12420 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12421 msqid_ds.msg_lrpid): Likewise.
12422 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12423 Likewise.
12424 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12425 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12426 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12427 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12428 unsigned int.
12429 (struct statvfs64): Likewise.
12430 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12431 Likewise.
12432 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12433 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12434 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12435 instead of wait_queue.
12436 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12437 instead of vm_area_struct.
12438 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12439 struct sched_param definition to it.
12440 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12441 * bits/types/struct_sched_param.h: New file.
12442 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12443 <bits/types/struct_sched_param.h> instead of <sched.h>.
12444 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12445 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12446 generic version but include <bits/pthreadtypes.h> to make struct
12447 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12448 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12449 non-compliant.
12450 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12451 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12452 [__USE_XOPEN] (OFDEL): New macro.
12453 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12454 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12455 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12456 prototypes.
12457 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12458 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12459 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12460 non-compliant.
12461 * sysdeps/i386/sys/ucontext.h: Likewise.
12462 * sysdeps/m68k/sys/ucontext.h: Likewise.
12463 * sysdeps/mips/sys/ucontext.h: Likewise.
12464 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12465 * sysdeps/mach/hurd/i386/Makefile
12466 (test-xfail-POSIX/fcntl.h/conform): Add.
12467 (test-xfail-POSIX/signal.h/conform): Add.
12468 (test-xfail-POSIX/semaphore.h/conform): Add.
12469 (test-xfail-POSIX/regex.h/conform): Add.
12470 (test-xfail-POSIX/aio.h/conform): Add.
12471 (test-xfail-POSIX/mqueue.h/conform): Add.
12472 (test-xfail-POSIX/sys/types.h/conform): Add.
12473 (test-xfail-UNIX98/fcntl.h/conform): Add.
12474 (test-xfail-UNIX98/netdb.h/conform): Add.
12475 (test-xfail-UNIX98/signal.h/conform): Add.
12476 (test-xfail-UNIX98/semaphore.h/conform): Add.
12477 (test-xfail-UNIX98/regex.h/conform): Add.
12478 (test-xfail-UNIX98/aio.h/conform): Add.
12479 (test-xfail-UNIX98/ftw.h/conform): Add.
12480 (test-xfail-UNIX98/mqueue.h/conform): Add.
12481 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12482 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12483 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12484 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12485 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12486 (test-xfail-UNIX98/sys/types.h/conform): Add.
12487 (test-xfail-UNIX98/stdlib.h/conform): Add.
12488 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12489 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12490 (test-xfail-POSIX2008/netdb.h/conform): Add.
12491 (test-xfail-POSIX2008/signal.h/conform): Add.
12492 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12493 (test-xfail-POSIX2008/regex.h/conform): Add.
12494 (test-xfail-POSIX2008/aio.h/conform): Add.
12495 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12496 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12497 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12498 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12499 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12500 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12501 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12502 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12503 (test-xfail-XOPEN2K/signal.h/conform): Add.
12504 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12505 (test-xfail-XOPEN2K/regex.h/conform): Add.
12506 (test-xfail-XOPEN2K/aio.h/conform): Add.
12507 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12508 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12509 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12510 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12511 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12512 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12513 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12514 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12515 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12516 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12517 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12518 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12519 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12520 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12521 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12522 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12523 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12524 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12525 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12526 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12527 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12528 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12529 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12530 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12531 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12532 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12533 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12534 i386-gnu.
12535 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12536 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12537
12538 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12539
12540 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12541 --enable-obsolete for powerpc-linux-gnuspe.
12542
12543 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12544
12545 * conform/data/sys/un.h-data: Allow sun_ prefix.
12546 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12547 prototypes.
12548 * sysdeps/mach/include/mach.h: Likewise.
12549 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12550 * sysdeps/mach/include/mach_error.h: Likewise.
12551
12552 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12553
12554 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12555 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12556 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12557 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12558
12559 2018-04-16 Andreas Schwab <schwab@suse.de>
12560
12561 [BZ #19527]
12562 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12563
12564 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12565
12566 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12567 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12568
12569 2018-04-12 DJ Delorie <dj@redhat.com>
12570
12571 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12572 version to 4.16.
12573
12574 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12575
12576 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12577 (struct kernel_sigaction): Use the same definition on 31bit as is used
12578 on 64bit.
12579
12580 2018-04-09 Florian Weimer <fweimer@redhat.com>
12581
12582 [BZ #23037]
12583 * resolv/res_send.c (send_dg): Use designated initializers instead
12584 of assignment to zero-initialize other fields of struct mmsghdr.
12585
12586 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12587
12588 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12589 __READDIR_ALIAS): Undefine after usage.
12590 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12591 __READDIR_R_ALIAS): Likewise.
12592 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12593 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12594 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12595 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12596 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12597 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12598 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12599 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12600 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12601 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12602 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12603 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12604 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12605 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12606 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12607 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12608 * sysdeps/unix/sysv/linux/readdir.c: New file.
12609 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12610 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12611 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12612
12613 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12614
12615 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12616
12617 * manual/charset.texi (Converting a Character): Fix typo.
12618
12619 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12620
12621 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12622
12623 * sysdeps/arm/libm-test-ulps: Update.
12624
12625 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12626 as base implementation.
12627 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12628 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12629 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12630 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12631 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12632 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12633 remove unrequired definitions and update comments.
12634 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12635 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12636 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12637 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12638 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12639 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12640 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12641 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12642 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12643 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12644 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12645 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12646 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12647 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12648 and RESET_SA_RESTORER hooks.
12649
12650 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12651
12652 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12653
12654 2018-04-05 Florian Weimer <fweimer@redhat.com>
12655
12656 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12657 integer overflow, memory leak on error, and indeterminate errno
12658 value. Add a null wide character to terminate the result string.
12659 * manual/charset.texi (Converting a Character): Mention embedded
12660 null bytes in the mbrtowc input string. Explain what happens in
12661 the -2 result case. Do not claim that mbrtowc is simple or
12662 obvious to use. Adjust the description of the code example. Use
12663 @code, not @var, for concrete variables.
12664
12665 2018-04-05 Florian Weimer <fweimer@redhat.com>
12666
12667 * manual/examples/mbstouwcs.c: New file.
12668 * manual/charset.texi (Converting a Character): Include it.
12669
12670 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12671
12672 * include/dirent.h (dirfd): Add hidden proto.
12673 * dirent/dirfd.c (dirfd): Add hidden def.
12674 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12675 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12676
12677 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12678
12679 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12680 sin, cos and sincos to 1 ULP.
12681
12682 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12683
12684 [BZ #19818]
12685 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12686 symbols.
12687 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12688 * elf/tst-absolute-sym.c: New file.
12689 * elf/tst-absolute-sym-lib.c: New file.
12690 * elf/tst-absolute-sym-lib.lds: New file.
12691 * elf/Makefile (tests): Add `tst-absolute-sym'.
12692 (modules-names): Add `tst-absolute-sym-lib'.
12693 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12694 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12695 ($(objpfx)tst-absolute-sym): New dependency.
12696
12697 [BZ #19818]
12698 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12699 parameter.
12700 (SYMBOL_ADDRESS): New macro.
12701 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12702 SYMBOL_ADDRESS for symbol address calculation.
12703 * elf/dl-runtime.c (_dl_fixup): Likewise.
12704 (_dl_profile_fixup): Likewise.
12705 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12706 * elf/rtld.c (dl_main): Likewise.
12707 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12708 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12709 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12710 (elf_machine_rela): Likewise.
12711 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12712 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12713 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12714 (elf_machine_rela): Likewise.
12715 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12716 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12717 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12718 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12719 Likewise.
12720 (elf_machine_reloc): Likewise.
12721 (elf_machine_got_rel): Likewise.
12722 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12723 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12724 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12725 Likewise.
12726 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12727 Likewise.
12728 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12729 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12730 Likewise.
12731 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12732 Likewise.
12733 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12734 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12735 Likewise.
12736 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12737 Likewise.
12738 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12739 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12740
12741 2018-04-04 Zack Weinberg <zackw@panix.com>
12742
12743 * sysdeps/generic/internal-signals.h: Include signal.h,
12744 sigsetops.h, and stdbool.h.
12745 (__libc_signal_block_all): Actually block all signals.
12746 (__libc_signal_block_app): Likewise.
12747 (__libc_signal_restore_set): Actually restore the signal mask.
12748
12749 2018-04-04 Florian Weimer <fweimer@redhat.com>
12750
12751 inet: Actually build and run tst-deadline.
12752 * inet/Makefile (tests-internal): Add tst-deadline and do not
12753 overwrite the variable.
12754 (tests-static-internal): Remove variable.
12755
12756 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12757
12758 [BZ #22947]
12759 * bits/uio-ext.h (RWF_APPEND): New.
12760 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12761 * manual/llio.texi: Document RWF_APPEND.
12762 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12763 (RWF_SUPPORTED): Add RWF_APPEND.
12764
12765 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12766
12767 [BZ #22391]
12768 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12769 check for internal nptl signals.
12770 * nptl/sigaction.c (__sigaction): Likewise.
12771 * signal/sigaddset.c (sigaddset): Likewise.
12772 * signal/sigdelset.c (sigdelset): Likewise.
12773 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12774 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12775 value.
12776 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12777 to filter out internal nptl signals.
12778 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12779 also check realtime signals using standard macros.
12780 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12781 __is_internal_signal, __libc_signal_block_all,
12782 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12783 * sysdeps/nptl/sigfillset.c: Remove file.
12784 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12785 Change return to bool.
12786 (__clear_internal_signals): Remove SIGTIMER clean since it is
12787 equal to SIGCANEL on Linux.
12788 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12789 signal set was constructed using standard functions.
12790
12791 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12792
12793 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12794 ifname is too long.
12795 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12796 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12797 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12798 hidden def.
12799 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12800 * signal/sigaddset.c: Include <sigsetopts.h>.
12801 * signal/sigdelset.c: Likewise.
12802
12803 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12804
12805 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12806 (__cos): Likewise.
12807 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12808 logic as sin and cos.
12809
12810 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12811
12812 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12813 inputs. Return correct sign.
12814 (do_sincos): Remove small input check before do_sin, let do_sin set
12815 the sign.
12816 (__sin): Likewise.
12817 (__cos): Likewise.
12818
12819 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12820
12821 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12822 (do_cos_slow): Likewise.
12823 (do_sin_slow): Likewise.
12824 (reduce_and_compute): Likewise.
12825 (slow): Likewise.
12826 (slow1): Likewise.
12827 (slow2): Likewise.
12828 (sloww): Likewise.
12829 (sloww1): Likewise.
12830 (sloww2): Likewise.
12831 (bslow): Likewise.
12832 (bslow1): Likewise.
12833 (bslow2): Likewise.
12834 (cslow2): Likewise.
12835
12836 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12837
12838 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12839 (do_cos): Remove corp parameter and calculations.
12840 (do_sin): Likewise.
12841 (do_sincos): Remove cor variable.
12842 (__sin): Use do_sincos for huge inputs.
12843 (__cos): Likewise.
12844 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12845 (reduce_and_compute_sincos): Remove unused function.
12846
12847 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12848
12849 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12850 reduce_sincos, improve accuracy to 136 bits.
12851 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12852 (__sin): Use improved reduction and simplified do_sincos calculation.
12853 (__cos): Likewise.
12854 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12855
12856 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12857
12858 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12859 (do_sincos_2): Likewise.
12860 (__sin): Remove middle range reduction case.
12861 (__cos): Likewise.
12862 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12863 reduction case.
12864
12865 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12866
12867 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12868 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12869 inputs.
12870 (__cos): Likewise.
12871 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12872
12873 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12874
12875 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12876 version to 4.16
12877
12878 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12879
12880 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12881 Remove definitions.
12882 (opendir_oflags): Use O_DIRECTORY regardless.
12883 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12884 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12885
12886 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12887
12888 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12889 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12890 macros.
12891 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12892 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12893 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12894 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12895 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12896 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12897
12898 * htl/Makefile: Bump licence to LGPL 2.1+.
12899 * htl/alloca_cutoff.c: Likewise.
12900 * htl/cthreads-compat.c: Likewise.
12901 * htl/lockfile.c: Likewise.
12902 * htl/pt-alloc.c: Likewise.
12903 * htl/pt-cancel.c: Likewise.
12904 * htl/pt-cleanup.c: Likewise.
12905 * htl/pt-create.c: Likewise.
12906 * htl/pt-dealloc.c: Likewise.
12907 * htl/pt-detach.c: Likewise.
12908 * htl/pt-exit.c: Likewise.
12909 * htl/pt-getattr.c: Likewise.
12910 * htl/pt-initialize.c: Likewise.
12911 * htl/pt-internal.h: Likewise.
12912 * htl/pt-join.c: Likewise.
12913 * htl/pt-self.c: Likewise.
12914 * htl/pt-setcancelstate.c: Likewise.
12915 * htl/pt-setcanceltype.c: Likewise.
12916 * htl/pt-sigmask.c: Likewise.
12917 * htl/pt-spin-inlines.c: Likewise.
12918 * htl/pt-testcancel.c: Likewise.
12919 * htl/pt-yield.c: Likewise.
12920 * htl/tests/test-1.c: Likewise.
12921 * htl/tests/test-10.c: Likewise.
12922 * htl/tests/test-11.c: Likewise.
12923 * htl/tests/test-12.c: Likewise.
12924 * htl/tests/test-13.c: Likewise.
12925 * htl/tests/test-14.c: Likewise.
12926 * htl/tests/test-15.c: Likewise.
12927 * htl/tests/test-16.c: Likewise.
12928 * htl/tests/test-17.c: Likewise.
12929 * htl/tests/test-2.c: Likewise.
12930 * htl/tests/test-3.c: Likewise.
12931 * htl/tests/test-4.c: Likewise.
12932 * htl/tests/test-5.c: Likewise.
12933 * htl/tests/test-6.c: Likewise.
12934 * htl/tests/test-7.c: Likewise.
12935 * htl/tests/test-8.c: Likewise.
12936 * htl/tests/test-9.c: Likewise.
12937 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12938 * sysdeps/htl/bits/cancelation.h: Likewise.
12939 * sysdeps/htl/bits/pthread-np.h: Likewise.
12940 * sysdeps/htl/bits/pthread.h: Likewise.
12941 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12942 * sysdeps/htl/bits/semaphore.h: Likewise.
12943 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12944 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12945 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12946 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12947 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12948 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12949 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12950 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12951 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12952 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12953 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12954 * sysdeps/htl/old_pt-atfork.c: Likewise.
12955 * sysdeps/htl/pt-atfork.c: Likewise.
12956 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12957 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12958 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12959 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12960 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12961 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12962 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12963 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12964 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12965 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12966 * sysdeps/htl/pt-attr-init.c: Likewise.
12967 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12968 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12969 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12970 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12971 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12972 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12973 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12974 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12975 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12976 * sysdeps/htl/pt-attr.c: Likewise.
12977 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12978 * sysdeps/htl/pt-barrier-init.c: Likewise.
12979 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12980 * sysdeps/htl/pt-barrier.c: Likewise.
12981 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12982 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12983 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12984 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12985 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12986 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12987 * sysdeps/htl/pt-cond-init.c: Likewise.
12988 * sysdeps/htl/pt-cond-signal.c: Likewise.
12989 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12990 * sysdeps/htl/pt-cond-wait.c: Likewise.
12991 * sysdeps/htl/pt-cond.c: Likewise.
12992 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12993 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12994 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12995 * sysdeps/htl/pt-condattr-init.c: Likewise.
12996 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12997 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12998 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12999 * sysdeps/htl/pt-equal.c: Likewise.
13000 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13001 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13002 * sysdeps/htl/pt-getschedparam.c: Likewise.
13003 * sysdeps/htl/pt-getspecific.c: Likewise.
13004 * sysdeps/htl/pt-init-specific.c: Likewise.
13005 * sysdeps/htl/pt-key-create.c: Likewise.
13006 * sysdeps/htl/pt-key-delete.c: Likewise.
13007 * sysdeps/htl/pt-key.h: Likewise.
13008 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13009 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13010 * sysdeps/htl/pt-mutex-init.c: Likewise.
13011 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13012 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13013 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13014 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13015 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13016 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13017 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13018 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13019 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13020 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13021 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13022 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13023 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13024 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13025 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13026 * sysdeps/htl/pt-mutexattr.c: Likewise.
13027 * sysdeps/htl/pt-once.c: Likewise.
13028 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13029 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13030 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13031 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13032 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13033 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13034 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13035 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13036 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13037 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13038 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13039 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13040 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13041 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13042 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13043 * sysdeps/htl/pt-setschedparam.c: Likewise.
13044 * sysdeps/htl/pt-setschedprio.c: Likewise.
13045 * sysdeps/htl/pt-setspecific.c: Likewise.
13046 * sysdeps/htl/pt-spin.c: Likewise.
13047 * sysdeps/htl/pt-startup.c: Likewise.
13048 * sysdeps/htl/pthread.h: Likewise.
13049 * sysdeps/htl/sem-close.c: Likewise.
13050 * sysdeps/htl/sem-destroy.c: Likewise.
13051 * sysdeps/htl/sem-getvalue.c: Likewise.
13052 * sysdeps/htl/sem-init.c: Likewise.
13053 * sysdeps/htl/sem-open.c: Likewise.
13054 * sysdeps/htl/sem-post.c: Likewise.
13055 * sysdeps/htl/sem-timedwait.c: Likewise.
13056 * sysdeps/htl/sem-trywait.c: Likewise.
13057 * sysdeps/htl/sem-unlink.c: Likewise.
13058 * sysdeps/htl/sem-wait.c: Likewise.
13059 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13060 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13061 * sysdeps/mach/htl/pt-block.c: Likewise.
13062 * sysdeps/mach/htl/pt-spin.c: Likewise.
13063 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13064 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13065 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13066 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13067 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13068 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13069 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13070 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13071 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13072 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13073 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13074 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13075 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13076 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13077 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13078 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13079 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13080 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13081 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13082 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13083 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13084 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13085 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13087 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13088 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13089 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13090 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13091 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13092 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13093 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13094 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13095 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13096 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13097 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13098 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13099 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13100 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13101 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13102 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13103 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13104 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13105 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13106
13107 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13108 * README: Remove the mention of out-of-tree patches needed for
13109 GNU/Hurd.
13110
13111 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13112 (UTIME_NOW, UTIME_OMIT): Define macros.
13113
13114 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13115 instead of pthread_detach.
13116 (__cthread_fork): Call __pthread_create instead of pthread_create.
13117 (__cthread_keycreate): Call __pthread_key_create instead of
13118 pthread_key_create.
13119 (__cthread_getspecific): Call __pthread_getspecific instead of
13120 pthread_getspecific.
13121 (__cthread_setspecific): Call __pthread_setspecific instead of
13122 pthread_setspecific.
13123 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13124 __pthread_mutex_unlock instead of pthread_mutex_lock and
13125 pthread_mutex_unlock.
13126 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13127 ___pthread_get_cleanup_stack.
13128 (__pthread_get_cleanup_stack): New strong alias.
13129 * htl/pt-create.c: Include <pthreadP.h>.
13130 (entry_point): Call __pthread_exit instead of pthread_exit.
13131 (pthread_create): Rename to __pthread_create.
13132 (pthread_create): New strong alias.
13133 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13134 (pthread_detach): New strong alias.
13135 (__pthread_detach): Call __pthread_cond_broadcast instead of
13136 pthread_cond_broadcast.
13137 * htl/pt-exit.c: Include <pthreadP.h>.
13138 (__pthread_exit): Call __pthread_setcancelstate and
13139 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13140 __pthread_get_cleanup_stack.
13141 * htl/pt-testcancel.c: Include <pthreadP.h>.
13142 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13143 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13144 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13145 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13146 pthread_attr_getstacksize.
13147 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13148 Rename to __pthread_attr_getstackaddr.
13149 (pthread_attr_getstackaddr): New strong alias.
13150 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13151 Rename to __pthread_attr_getstacksize.
13152 (pthread_attr_getstacksize): New strong alias.
13153 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13154 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13155 (pthread_attr_setstack): New strong alias.
13156 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13157 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13158 pthread_attr_getstacksize, pthread_attr_setstacksize and
13159 pthread_attr_setstackaddr.
13160 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13161 Rename to __pthread_attr_setstackaddr.
13162 (pthread_attr_setstackaddr): New strong alias.
13163 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13164 Rename to __pthread_attr_setstacksize.
13165 (pthread_attr_setstacksize): New strong alias.
13166 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13167 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13168 pthread_exit.
13169 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13170 (__pthread_key_create): New hidden def.
13171 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13172 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13173 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13174 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13175 __pthread_setspecific, __pthread_setcancelstate,
13176 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13177 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13178 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13179 declarations.
13180 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13181 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13182 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13183 (pthread_attr_setstackaddr): New strong alias.
13184 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13185 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13186 (pthread_attr_setstacksize): New strong alias.
13187 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13188 (call_exit): Call __pthread_exit instead of pthread_exit.
13189 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13190 (_pthread_mutex_init): New hidden definition.
13191 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13192 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13193 instead of pthread_attr_init and pthread_attr_setstack.
13194
13195 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13196 __vm_deallocate instead of vm_allocate and vm_deallocate.
13197 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13198 setenv.
13199 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13200 of geteuid.
13201 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13202 strdup.
13203 * hurd/siginfo.c: Include <libioP.h>.
13204 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13205 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13206 munmap.
13207 * mach/devstream.c: Include <libioP.h>.
13208 (dealloc_ref): Call __mach_port_deallocate instead of
13209 mach_port_deallocate.
13210 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13211 Call __mach_port_deallocate instead of mach_port_deallocate.
13212 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13213 pathconf.
13214 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13215 munmap.
13216 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13217 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13218 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13219 of munmap.
13220 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13221 of close.
13222 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13223 instead of sysconf.
13224 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13225 __clock_gettime instead of clock_gettime.
13226 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13227 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13228 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13229 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13230 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13231 tcgetattr.
13232 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13233 __clock_gettime and __nanosleep instead of clock_gettime and
13234 nanosleep.
13235 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13236 __hurd_catch_signal.
13237 (hurd_catch_signal): New strong alias.
13238 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13239 __hurd_catch_signal instead of hurd_catch_signal.
13240 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13241 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13242 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13243 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13244 (_hurd_thread_sigstate): Add hidden def.
13245 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13246 mutex_unlock.
13247 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13248 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13249 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13250 __hurd_file_name_path_lookup.
13251 (hurd_file_name_path_lookup): New strong alias.
13252 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13253 hurd_file_name_path_lookup.
13254 * mach/errstring.c (mach_error_type): Add hidden def.
13255 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13256 * mach/mutex-init.c (__mutex_init): Add hidden def.
13257 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13258 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13259 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13260 * sysdeps/mach/hurd/getcwd.c
13261 (_hurd_canonicalize_directory_name_internal): Rename to
13262 __hurd_canonicalize_directory_name_internal.
13263 (_hurd_canonicalize_directory_name_internal): New strong alias.
13264 (__canonicalize_directory_name_internal, __getcwd): Call
13265 __hurd_canonicalize_directory_name_internal instead of
13266 _hurd_canonicalize_directory_name_internal.
13267 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13268 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13269 hidden defs.
13270 * sysdeps/hurd/include/hurd.h: New file.
13271 * sysdeps/hurd/include/hurd/fd.h: New file.
13272 * sysdeps/hurd/include/hurd/signal.h: New file.
13273 * sysdeps/mach/include/lock-intern.h: New file.
13274 * sysdeps/mach/include/mach.h: New file.
13275 * sysdeps/mach/include/mach/mig_support.h: New file.
13276 * sysdeps/mach/include/mach_error.h: New file.
13277 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13278 prototype.
13279 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13280 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13281 _HEADER_H_HIDDEN_DEF macro.
13282 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13283 _hurd_fd_error_signal): Add hidden prototype.
13284 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13285 hidden def.
13286 * libio/iolibio.h (_IO_puts): New hidden prototype.
13287 * libio/ioputs.c (_IO_puts): New hidden def.
13288 * sysdeps/mach/hurd/localplt.data: New file.
13289
13290 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13291 Amos Jeffries <squid3@treenet.co.nz>
13292 David Michael <fedora.dm0@gmail.com>
13293 Marco Gerards <marco@gnu.org>
13294 Marcus Brinkmann <marcus@gnu.org>
13295 Neal H. Walfield <neal@gnu.org>
13296 Pino Toscano <toscano.pino@tiscali.it>
13297 Richard Braun <rbraun@sceen.net>
13298 Roland McGrath <roland@gnu.org>
13299 Samuel Thibault <samuel.thibault@ens-lyon.org>
13300 Thomas DiModica <ricinwich@yahoo.com>
13301 Thomas Schwinge <tschwinge@gnu.org>
13302
13303 * htl: New directory.
13304 * sysdeps/htl: New directory.
13305 * sysdeps/hurd/htl: New directory.
13306 * sysdeps/i386/htl: New directory.
13307 * sysdeps/mach/htl: New directory.
13308 * sysdeps/mach/hurd/htl: New directory.
13309 * sysdeps/mach/hurd/i386/htl: New directory.
13310 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13311 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13312 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13313
13314 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13315
13316 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13317 signals in thread created for runing timers.
13318
13319 2018-04-01 Florian Weimer <fweimer@redhat.com>
13320
13321 * support/support_format_addrinfo.c (support_format_addrinfo):
13322 Include unknown error number in formatted result.
13323
13324 2018-03-29 Florian Weimer <fweimer@redhat.com>
13325
13326 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13327 capture SIGBUS.
13328
13329 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13330
13331 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13332 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13333 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13334 (__ASSUME_CLONE_BACKWARDS): Define.
13335
13336 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13337
13338 [BZ #23024]
13339 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13340 early when linux sentinel value is set.
13341
13342 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13343
13344 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13345
13346 2018-03-27 Andreas Schwab <schwab@suse.de>
13347
13348 [BZ #23005]
13349 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13350 allocation of private copy of nsaddr_list fails.
13351
13352 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13353
13354 [BZ #16552]
13355 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13356 * sysdeps/unix/sysv/linux/umount.c: ... here.
13357 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13358 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13359 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13360 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13362 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13363 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13364
13365 2018-03-26 Andreas Schwab <schwab@suse.de>
13366
13367 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13368 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13369 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13370 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13371 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13372 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13373 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13374 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13375 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13376 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13377 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13378 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13379 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13380 (R_RISCV_NUM): Define.
13381
13382 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13383
13384 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13385 TLS declaration of errno.
13386 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13387 __libc_setup_tls.
13388 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13389 (ARCH_SETUP_TLS): Likewise.
13390 * sysdeps/mach/hurd/libc-start.h: New file copied from
13391 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13392 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13393 instead of __libc_setup_tls.
13394 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13395 __libc_setup_tls before initializing libpthread and running _hurd_init
13396 which starts the signal thread.
13397 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13398 Declare function.
13399 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13400
13401 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13402
13403 [BZ #22998]
13404 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13405 after it is defined.
13406
13407 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13408 Max Horn <max@quendi.de>
13409
13410 [BZ #22644]
13411 CVE-2017-18269
13412 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13413 branch conditions.
13414 * string/test-memmove.c (do_test2): New testcase.
13415
13416 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13417
13418 * sysdeps/generic/frame.h: Remove file.
13419 * sysdeps/arm/frame.h: Likewise.
13420 * sysdeps/hppa/frame.h: Likewise.
13421 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13422 macro.
13423 (GET_FRAME): Likewise.
13424 (GET_STACK): Likewise.
13425 (CALL_SIGHANDLER): Likewise.
13426 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13427 Likewise.
13428 (GET_FRAME): Likewise.
13429 (GET_STACK): Likewise.
13430 (CALL_SIGHANDLER): Likewise.
13431 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13432 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13433 (GET_FRAME): Likewise.
13434 (GET_STACK): Likewise.
13435 (CALL_SIGHANDLER): Likewise.
13436 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13437 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13438 (GET_FRAME): Likewise.
13439 (GET_STACK): Likewise.
13440 (ADVANCE_STACK_FRAME): Likewise.
13441 (CALL_SIGHANDLER): Likewise.
13442 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13443 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13444 (GET_FRAME): Likewise.
13445 (GET_STACK): Likewise.
13446 (CALL_SIGHANDLER): Likewise.
13447 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13448 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13449 (GET_FRAME): Likewise.
13450 (GET_STACK): Likewise.
13451 (CALL_SIGHANDLER): Likewise.
13452 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13453 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13454 (GET_FRAME): Likewise.
13455 (GET_STACK): Likewise.
13456 (CALL_SIGHANDLER): Likewise.
13457 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13458 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13459 (GET_FRAME): Likewise.
13460 (GET_STACK): Likewise.
13461 (CALL_SIGHANDLER): Likewise.
13462 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13463 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13464 (GET_FRAME): Likewise.
13465 (GET_STACK): Likewise.
13466 (CALL_SIGHANDLER): Likewise.
13467 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13468 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13469 (GET_FRAME): Likewise.
13470 (GET_STACK): Likewise.
13471 (CALL_SIGHANDLER): Likewise.
13472 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13473 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13474 (GET_FRAME): Likewise.
13475 (GET_STACK): Likewise.
13476 (CALL_SIGHANDLER): Likewise.
13477 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13478 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13479 (GET_FRAME): Likewise.
13480 (GET_STACK): Likewise.
13481 (CALL_SIGHANDLER): Likewise.
13482 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13483 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13484 (GET_FRAME): Likewise.
13485 (GET_STACK): Likewise.
13486 (CALL_SIGHANDLER): Likewise.
13487 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13488 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13489 (FIRST_FRAME_POINTER): Likewise.
13490 (ADVANCE_STACK_FRAME): Likewise.
13491 (GET_STACK): Likewise.
13492 (GET_FRAME): Likewise.
13493 (CALL_SIGHANDLER): Likewise.
13494 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13495 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13496 (ADVANCE_STACK_FRAME): Likewise.
13497 (GET_STACK): Likewise.
13498 (GET_FRAME): Likewise.
13499 (CALL_SIGHANDLER): Likewise.
13500 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13501 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13502 (GET_FRAME): Likewise.
13503 (GET_STACK): Likewise.
13504 (CALL_SIGHANDLER): Likewise.
13505 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13506 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13507 (GET_FRAME): Likewise.
13508 (GET_STACK): Likewise.
13509 (CALL_SIGHANDLER): Likewise.
13510
13511 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13512
13513 * sysdeps/x86_64/backtrace.c: Move to ....
13514 * debug/backtrace.c: ... here.
13515 * sysdeps/aarch64/backtrace.c: Remove file.
13516 * sysdeps/alpha/backtrace.c: Likewise.
13517 * sysdeps/hppa/backtrace.c: Likewise.
13518 * sysdeps/ia64/backtrace.c: Likewise.
13519 * sysdeps/mips/backtrace.c: Likewise.
13520 * sysdeps/nios2/backtrace.c: Likewise.
13521 * sysdeps/riscv/backtrace.c: Likewise.
13522 * sysdeps/sh/backtrace.c: Likewise.
13523 * sysdeps/tile/backtrace.c: Likewise.
13524
13525 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13526
13527 [BZ #22987]
13528 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13529 function.
13530 (fdimf): Likewise.
13531 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13532
13533 [BZ #17343]
13534 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13535 possibly overflowing computations.
13536
13537 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13538
13539 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13540 values from Linux-specific section now that it is in the GNU section.
13541 * sysdeps/gnu/errlist.c: Regenerate.
13542
13543 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13544
13545 * math/Makefile (libm-narrow-fns): Add sub.
13546 (libm-test-funcs-narrow): Likewise.
13547 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13548 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13549 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13550 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13551 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13552 (NARROW_SUB_TRIVIAL): Likewise.
13553 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13554 macro.
13555 (__dsubl): Likewise.
13556 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13557 dsub.
13558 (CFLAGS-nldbl-dsub.c): New variable.
13559 (CFLAGS-nldbl-fsub.c): Likewise.
13560 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13561 __nldbl_dsubl.
13562 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13563 prototype.
13564 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13565 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13566 * math/auto-libm-test-in: Add tests of sub.
13567 * math/auto-libm-test-out-narrow-sub: New generated file.
13568 * math/libm-test-narrow-sub.inc: New file.
13569 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13570 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13571 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13572 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13573 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13574 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13575 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13576 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13577 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13578 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13579 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13580 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13581 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13582 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13583 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13584 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13585 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13586 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13587 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13588 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13589 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13590 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13591 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13592 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13593 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13594 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13595 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13596 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13605 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13606 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13607 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13608 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13609 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13610 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13611 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13612 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13613 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13614 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13615
13616 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13617
13618 [BZ #20079]
13619 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13620
13621 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13622
13623 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13624
13625 2018-03-18 Richard Braun <rbraun@sceen.net>
13626
13627 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13628 thread reference.
13629
13630 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13631
13632 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13633 (__libc_cleanup_fct): Define function.
13634 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13635 __libc_cleanup_end): Rewrite implementation using
13636 __attribute__ ((__cleanup__)).
13637 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13638 * hurd/Makefile (routines): Add hurdlock.
13639 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13640 interface.
13641 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13642 * hurd/hurdpid.c: Include <lowlevellock.h>
13643 (_S_msg_proc_newids): Use lll_wait to synchronize.
13644 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13645 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13646 * mach/Makefile (lock-headers): Remove machine-lock.h.
13647 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13648 <machine-lock.h>.
13649 (__spin_lock_t): New type.
13650 (__SPIN_LOCK_INITIALIZER): New macro.
13651 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13652 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13653 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13654 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13655 (__mutex_init): Initialize with lll.
13656 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13657 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13658 needing lll.
13659 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13660 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13661 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13662 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13663 (__setpgid): Use lll for synchronization.
13664 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13665 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13666 instead of <cthreads.h>.
13667 (_IO_lock_inexpensive): New macro
13668 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13669 (__libc_lock_self0): New declaration.
13670 (__libc_lock_owner_self): New macro.
13671 (__libc_key_t): Remove type.
13672 (_LIBC_LOCK_INITIALIZER): New macro.
13673 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13674 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13675 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13676 __libc_lock_define_initialized_recursive,
13677 __rtld_lock_define_initialized_recursive,
13678 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13679 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13680 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13681 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13682 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13683 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13684 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13685 New macros.
13686 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13687 * hurd/hurdlock.c: New file.
13688 * hurd/hurdlock.h: New file.
13689 * mach/lowlevellock.h: New file
13690
13691 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13692
13693 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13694 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13695 when opening a symlink with O_NOFOLLOW.
13696 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13697 path when flags contains O_NOFOLLOW.
13698 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13699 if flags contains O_DIRECTORY and the result is a directory.
13700 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13701 oneself when the pointer given in D is nul (as set by ext2fs).
13702 * sysdeps/mach/hurd/mlockall.c: New file.
13703 * sysdeps/mach/hurd/munlockall.c: New file.
13704
13705 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13706
13707 * hurd/hurdsig.c: Include <pthread.h>.
13708 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13709 get the signal thread stack layout.
13710 * hurd/Makefile (headers): Remove threadvar.h.
13711 (inline-headers): Remove threadvar.h.
13712 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13713 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13714 __hurd_threadvar_max, __hurd_errno_location.
13715 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13716 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13717 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13718 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13719 unless TLS is not initialized yet, in which case we do not need a
13720 critical section yet anyway.
13721 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13722 <machine-sp.h>.
13723 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13724 declarations.
13725 (__hurd_threadvar_index): Remove enum.
13726 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13727 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13728 inlines.
13729 (__hurd_reply_port0): New variable declaration.
13730 (__hurd_local_reply_port): New macro.
13731 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13732 (interrupted_reply_port_location): Add thread_t parameter. Use it
13733 with THREAD_TCB to access thread-local variables.
13734 (_hurdsig_abort_rpcs): Pass ss->thread to
13735 interrupted_reply_port_location.
13736 (_hurd_internal_post_signal): Likewise.
13737 (_hurdsig_init): Use presence of cthread_fork instead of
13738 __hurd_threadvar_stack_mask to start signal thread by hand.
13739 Remove signal thread threadvar initialization.
13740 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13741 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13742 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13743 of threadvar.
13744 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13745 __libc_lock_self0.
13746 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13747 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13748 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13749 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13750 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13751 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13752 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13753 define variables.
13754 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13755 <hurd/threadvar.h>.
13756 [IS_IN(rtld)] (rtld_errno): New variable.
13757 [IS_IN(rtld)] (__errno_location): New weak function.
13758 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13759 * sysdeps/mach/hurd/errno.c: Remove file.
13760 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13761 (__fork): Remove THREADVAR_SPACE macro and its use.
13762 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13763 variable.
13764 (init): Do not initialize threadvar.
13765 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13766 symbol.
13767 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13768 __hurd_local_reply_port instead of threadvar.
13769 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13770 _hurd_sigstate fields.
13771 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13772 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13773 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13774 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13775 instead of threadvar.
13776 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13777 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13778 (use_threadvar, global_reply_port): Remove variables.
13779 (__hurd_reply_port0): New variable.
13780 (__mig_get_reply_port): Use __hurd_local_reply_port and
13781 __hurd_reply_port0 instead of threadvar.
13782 (__mig_dealloc_reply_port): Likewise.
13783 (__mig_init): Do not initialize threadvar.
13784 * sysdeps/mach/hurd/profil.c: Fix comment.
13785 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13786 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13787 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13788 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13789 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13790 __cthread_setspecific.
13791 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13792 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13793 __cthread_t instead of cthread_fork, cthread_detach,
13794 pthread_getattr_np, pthread_attr_getstack.
13795 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13796 __cthread_keycreate.
13797 (cthread_getspecific): Rename to __cthread_getspecific.
13798 (cthread_setspecific): Rename to __cthread_setspecific.
13799 (__libc_getspecific): Use __cthread_getspecific instead of
13800 cthread_getspecific.
13801 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13802 __cthread_keycreate instead of cthread_keycreate.
13803 (__libc_setspecific): Use __cthread_setspecific instead of
13804 cthread_setspecific.
13805 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13806 Likewise.
13807 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13808 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13809 testing whether it is defined.
13810
13811 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13812
13813 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13814 Define macro.
13815 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13816 * sysdeps/mach/i386/thread_state.h
13817 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13818 i386_THREAD_STATE.
13819 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13820 i386_THREAD_STATE.
13821 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13822
13823 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13824 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13825
13826 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13827 macros.
13828 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13829 descriptor instead of creating a new one.
13830 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13831
13832 * mach/setup-thread.c: Include <ldsodefs.h>.
13833 (__mach_setup_thread): Call _dl_allocate_tls, pass
13834 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13835 MACHINE_THREAD_STATE_FLAVOR, before getting
13836 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13837 MACHINE_THREAD_STATE_FLAVOR with the result.
13838 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13839 MACHINE_THREAD_STATE_FIX_NEW.
13840 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13841 too. Add original thread parameter.
13842
13843 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13844
13845 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13846 Remove inline function.
13847
13848 * sysdeps/i386/fpu/libm-test-ulps: Update.
13849 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13850
13851 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13852
13853 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13854 commit.
13855
13856 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13857
13858 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13859 (__sincos_code): Remove define and undefine.
13860 [__FAST_MATH__] (__sincos): Remove inline function.
13861 [__FAST_MATH__] (__sincosf): Remove inline function.
13862 [__FAST_MATH__] (__sincosl): Remove inline function.
13863 (__atan2l): Remove inline functions.
13864 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13865 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13866 function.
13867 (floor): Remove inline function.
13868 (ceil): Likewise.
13869 [__FAST_MATH__] (__ldexp_code): Remove macro.
13870 [__FAST_MATH__] (ldexp): Remove inline function.
13871 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13872 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13873 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13874 [__USE_ISOC99] (__lrint_code): Remove macro.
13875 [__USE_ISOC99] (__llrint_code): Likewise.
13876 [__USE_ISOC99] (lrintf): Remove inline function.
13877 [__USE_ISOC99] (lrint): Likewise.
13878 [__USE_ISOC99] (lrintl): Likewise.
13879 [__USE_ISOC99] (llrint): Likewise.
13880 [__USE_ISOC99] (llrintf): Likewise.
13881 [__USE_ISOC99] (llrintl): Likewise.
13882
13883 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13884
13885 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13886 (__ieee754_sqrtf): Remove.
13887 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13888 (__ieee754_sqrtf): Remove.
13889 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13890 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13891 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13892 (__ieee754_sqrtf): Remove.
13893 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13894 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13895 (sqrtf): Remove.
13896 (sqrtl): Remove.
13897 (__ieee754_sqrt): Remove.
13898 (__ieee754_sqrtf): Remove.
13899 (__ieee754_sqrtl): Remove.
13900 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13901 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13902 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13903 (__ieee754_sqrtf): Remove.
13904 (__ieee754_sqrtl): Remove.
13905
13906 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13907
13908 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13909 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13910 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13911 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13912 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13913 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13914 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13915 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13916 Likewise.
13917 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13918 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13919 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13920 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13921 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13922 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13923 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13924 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13925 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13926 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13927 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13928 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13929 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13930 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13931 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13932 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13933 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13934 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13935 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13936 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13937 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13938 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13939 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13940 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13941 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13942 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13943 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13944 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13945 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13946 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13947 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13948 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13949 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13950 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13951 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13952 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13953 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13954 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13955 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13956 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13957
13958 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13959
13960 * include/math.h (sqrt): Declare with asm redirect.
13961 (sqrtf): Likewise.
13962 (sqrtl): Likewise.
13963 (sqrtf128): Likewise.
13964 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13965 nonlib and libnldbl with -fmath-errno.
13966 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13967 * math/w_sqrt_template.c: Likewise.
13968 * math/w_sqrtf_compat.c: Likewise.
13969 * math/w_sqrtl_compat.c: Likewise.
13970 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13971 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13972 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13973 complex.h.
13974
13975 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13976
13977 * benchtests/Makefile: Define _ISOMAC.
13978 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13979 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13980 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13981 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13982 * benchtests/bench-timing.h: Define attribute_hidden.
13983
13984 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13985
13986 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13987 mov + lsr.
13988
13989 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13990
13991 [BZ #22963]
13992 * localedata/locales/cs_CZ (mon): Rename to...
13993 (alt_mon): This.
13994 (mon): Import from CLDR (genitive case).
13995
13996 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13997
13998 [BZ #22937]
13999 * localedata/locales/el_CY (abmon): Rename to...
14000 (ab_alt_mon): This.
14001 (abmon): Import from CLDR (abbreviated genitive case).
14002 * localedata/locales/el_GR (abmon): Rename to...
14003 (ab_alt_mon): This.
14004 (abmon): Import from CLDR (abbreviated genitive case).
14005
14006 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14007
14008 [BZ #22932]
14009 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14010
14011 2018-03-15 Robert Buj <robert.buj@gmail.com>
14012
14013 [BZ #22848]
14014 * localedata/locales/ca_ES (abmon): Rename to...
14015 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14016 (mon): Rename to...
14017 (alt_mon): This.
14018 (abmon): Import from CLDR (genitive case, month names preceded by
14019 "de" or "d’").
14020 (mon): Likewise.
14021 (abday): Synchronize with CLDR.
14022 (d_t_fmt): Likewise.
14023 (d_fmt): Likewise.
14024 (am_pm): Likewise.
14025
14026 (LC_TIME): Improve indentation.
14027 (LC_TELEPHONE): Likewise.
14028 (LC_NAME): Likewise.
14029 (LC_ADDRESS): Likewise.
14030
14031 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14032
14033 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14034 (lrintf): Remove definitions used only with old GCC.
14035 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14036 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14037 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14038 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14039 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14040 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14041 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14042 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14043 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14044 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14045 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14046 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14047 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14048 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14049 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14050 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14051 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14052 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14053 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14054 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14055 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14056 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14057 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14058 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14059 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14060 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14061 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14062 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14063
14064 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14065
14066 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14067 instruction to unbreak builds with binutils 2.26 and older.
14068
14069 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14070
14071 * sysdeps/aarch64/strncmp.S (count): New macro.
14072 (strncmp): Store misaligned length in SRC1 in COUNT.
14073 (mutual_align): Adjust.
14074 (misaligned8): Load dword at a time when it is safe.
14075
14076 2018-03-12 Zack Weinberg <zackw@panix.com>
14077
14078 [BZ #1190]
14079 [BZ #19476]
14080 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14081 if the _IO_EOF_SEEN bit is already set; update commentary.
14082 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14083 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14084
14085 * support/support_openpty.c, support/tty.h: New files.
14086 * support/Makefile (libsupport-routines): Add support_openpty.
14087
14088 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14089 New test cases.
14090 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14091 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14092
14093 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14094
14095 * po/pt_BR.po: Update translations.
14096
14097 2018-03-12 David Michael <fedora.dm0@gmail.com>
14098
14099 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14100 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14101 get a port to the startup server.
14102
14103 2018-03-11 Zack Weinberg <zackw@panix.com>
14104
14105 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14106 before nldbl-compat.h.
14107
14108 2018-03-10 Zack Weinberg <zackw@panix.com>
14109
14110 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14111 math.h or math_private.h.
14112
14113 * sysdeps/alpha/fpu/s_isnan.c
14114 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14115 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14116 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14117 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14118 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14119 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14120 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14121 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14122 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14123 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14124 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14125 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14126 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14127 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14128 Include math_private.h.
14129
14130 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14131 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14132 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14133 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14134 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14135 * sysdeps/powerpc/power7/fpu/s_logb.c:
14136 Include math.h and math_private.h.
14137
14138 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14139 uses of $at in .set noat / .set at.
14140
14141 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14142
14143 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14144 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14145 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14146 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14147 Likewise.
14148
14149 2018-03-09 Florian Weimer <fweimer@redhat.com>
14150
14151 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14152 in comment.
14153
14154 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14155
14156 [BZ #22919]
14157 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14158 Add nop before __startcontext, add explaining comments.
14159
14160 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14161
14162 [BZ #22926]
14163 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14164 empty for __SPE__.
14165 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14166 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14167 Do not build hardware transactional code for __SPE__.
14168 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14169 (__lll_trylock_elision): Likewise.
14170 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14171 (__lll_unlock_elision): Likewise.
14172
14173 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14174 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14175 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14176 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14177 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14178 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14179 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14180 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14181 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14182 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14183 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14184 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14185 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14186 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14187 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14188 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14189 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14190 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14191 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14192 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14193 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14194 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14195 (__ASSUME_CLONE_BACKWARDS): Define.
14196 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14197 __clone2 if __NR_clone2 is defined.
14198 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14199 (__ASSUME_CLONE_BACKWARDS): Likewise.
14200 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14201 (__ASSUME_CLONE_BACKWARDS): Likewise.
14202 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14203 (__ASSUME_CLONE2): Likewise.
14204 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14205 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14206 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14207 variants and the define architecture can use.
14208 (__ASSUME_CLONE_DEFAULT): Define as default.
14209 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14210 (__ASSUME_CLONE_BACKWARDS): Likewise.
14211 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14212 (__ASSUME_CLONE_BACKWARDS): Likewise.
14213 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14214 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14215
14216 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14217
14218 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14219
14220 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14221 time.
14222
14223 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14224 (do_test_limit): Likewise.
14225
14226 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14227 for every implementation.
14228 (do_test): Likewise.
14229
14230 * benchtests/bench-strncmp.c: Convert output to json.
14231
14232 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14233
14234 * io/futimens.c: Add missing start-of-file descriptive comment.
14235 * io/utime.c: Likewise.
14236 * misc/futimesat.c: Likewise.
14237 * misc/utimes.c: Likewise.
14238 * sysdeps/mach/hurd/futimesat.c: Likewise.
14239 * sysdeps/mach/hurd/utimes.c: Likewise.
14240 * sysdeps/posix/utime.c: Likewise.
14241 * sysdeps/posix/utimes.c: Likewise.
14242 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14243 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14244 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14245 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14246
14247 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14248
14249 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14250 hurd_futimes.
14251 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14252 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14253 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14254 (__futimens): Move implementation to...
14255 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14256 utime_tvalue_from_tspec): ... new helper functions.
14257 (hurd_futimens): New function.
14258 * sysdeps/mach/hurd/futimesat.c: New file.
14259 * sysdeps/mach/hurd/utimensat.c: New file.
14260
14261 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14262
14263 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14264 UTIME_OMIT): New macros.
14265 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14266 before reverting to converting time spec to time value and calling
14267 __file_utimes.
14268 * sysdeps/mach/hurd/utime-helper.c: New file.
14269 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14270 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14271 reverting to utime_tvalue_from_tval and __file_utimes.
14272 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14273 (__lutimes): Just call hurd_futimens after lookup.
14274 * sysdeps/mach/hurd/utimes.c: Likewise.
14275
14276 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14277
14278 * bits/sigaction.h: Add include guard.
14279 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14280 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14281 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14282 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14283 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14284 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14285 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14286 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14287 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14288
14289 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14290
14291 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14292 -Wmaybe-uninitialized for -Os.
14293 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14294 this disabling.
14295
14296 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14297
14298 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14299 __INO_T_MATCHES_INO64_T is defined.
14300 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14301 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14302 of definition.
14303 * dirent/alphasort64.c: Likewise.
14304 * dirent/scandir.c: Likewise.
14305 * dirent/scandir64-tail.c: Likewise.
14306 * dirent/scandir64.c: Likewise.
14307 * dirent/scandirat.c: Likewise.
14308 * dirent/scandirat64.c: Likewise.
14309 * dirent/versionsort.c: Likewise.
14310 * dirent/versionsort64.c: Likewise.
14311 * include/dirent.h: Likewise.
14312
14313 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14314 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14315 for socketpair endpoint.
14316 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14317 WRITE_BUFFER_SIZE as buffer size for sending socket.
14318 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14319 issue on system where send is implemented with sendto syscall.
14320 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14321 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14322 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14323 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14324
14325 [BZ #21269]
14326 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14327 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14328 sa_restorer for vDSO case.
14329 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14330
14331 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14332
14333 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14334 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14335 * hurd/hurd/ioctl.h: Include <mach/port.h>
14336 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14337 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14338 <mach/mach_types.h> and <mach/message.h>.
14339 (headers): Move mach/param.h to bits/mach/param.h.
14340 * sysdeps/mach/i386/mach/param.h: Move file to ...
14341 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14342 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14343 of <mach/param.h>.
14344 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14345 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14346 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14347 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14348 trivial, for C++ conformity.
14349 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14350 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14351 Process mig output through $(migheadersed).
14352 * hurd/Makefile (migheadersed): Define variable.
14353 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14354 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14355 headers.
14356 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14357 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14358 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14359 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14360 <bits/types/sigset_t.h>.
14361 [!defined __USE_GNU]: Do not #error out.
14362 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14363 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14364 Include <stddef.h> and <bits/types/sigset_t.h>
14365 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14366 instead of sighandler_t.
14367 * stdlib/errno.h (error_t): Move definition to...
14368 * bits/types/error_t.h: ... new header.
14369 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14370 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14371 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14372 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14373 * hurd/hurd.h: Include <bits/types/error_t.h>
14374 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14375 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14376 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14377 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14378 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14379 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14380 * sysdeps/mach/hurd/futimens.c: New file.
14381
14382 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14383
14384 [BZ #22918]
14385 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14386 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14387 * nscd/gai.c (__nss_hosts_database): Readd definition.
14388 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14389 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14390 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14391
14392 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14393
14394 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14395 (ifunc_one): Likewise.
14396
14397 2018-03-01 DJ Delorie <dj@delorie.com>
14398
14399 [BZ #22342]
14400 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14401 key value.
14402
14403 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14404
14405 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14406 `match_pid' parameter.
14407 (td_ta_thr_iter): Update accordingly.
14408
14409 2018-03-01 Florian Weimer <fweimer@redhat.com>
14410
14411 * nptl/Makefile (install-lib-ldscripts): Remove.
14412 (install): Remove rule.
14413 ($(inst_libdir)/libpthread.so): Likewise.
14414
14415 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14416
14417 [BZ #22896]
14418 * localedata/locales/an_ES: update month and day names,
14419 improve d_fmt, improve postal_fmt, add country_post,
14420 add country_isbn
14421
14422 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14423
14424 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14425 Ukrainian instead of Bulgarian.
14426
14427 2018-03-01 Florian Weimer <fweimer@redhat.com>
14428
14429 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14430 reference.
14431
14432 2018-03-01 Florian Weimer <fweimer@redhat.com>
14433
14434 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14435 * nptl/Makefile (routines): Add pthread_atfork.
14436 (static-only-routines): Set to pthread_atfork.
14437 (libpthread-routines): Remove pthread_atfork.
14438 (libpthread-static-only-routines): Remove.
14439 (install): Update comment.
14440 (libpthread.so): Do not install libpthread_nonshared.a.
14441 (tests): Do not link with libpthread_nonshared.a.
14442 (generated): Remove libpthread_nonshared.a.
14443 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14444 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14445 with libpthread_nonshared.a.
14446
14447 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14448
14449 [BZ #22902]
14450 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14451 (libc_feholdexcept_setroundf128): New macro.
14452 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14453
14454 [BZ #15105]
14455 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14456 libc_hidden_def.
14457 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14458 * include/inttypes.h: New file.
14459
14460 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14461
14462 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14463 -Os in two more places.
14464
14465 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14466
14467 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14468 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14469 be sorted correctly at the moment because of a bug.
14470
14471 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14472
14473 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14474 treat ñ as a primary different character, sync the collation
14475 for Spanish with CLDR.
14476 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14477 * localedata/Makefile: Add new test files.
14478 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14479 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14480 collation order.
14481 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14482 * localedata/am_ET.UTF-8.in: New test file.
14483 * localedata/az_AZ.UTF-8.in: Likewise.
14484 * localedata/be_BY.UTF-8.in: Likewise.
14485 * localedata/ber_DZ.UTF-8.in: Likewise.
14486 * localedata/ber_MA.UTF-8.in: Likewise.
14487 * localedata/bg_BG.UTF-8.in: Likewise.
14488 * localedata/br_FR.UTF-8.in: Likewise.
14489 * localedata/cmn_TW.UTF-8.in: Likewise.
14490 * localedata/crh_UA.UTF-8.in: Likewise.
14491 * localedata/csb_PL.UTF-8.in: Likewise.
14492 * localedata/cv_RU.UTF-8.in: Likewise.
14493 * localedata/cy_GB.UTF-8.in: Likewise.
14494 * localedata/dz_BT.UTF-8.in: Likewise.
14495 * localedata/eo.UTF-8.in: Likewise.
14496 * localedata/es_ES.UTF-8.in: Likewise.
14497 * localedata/fa_IR.UTF-8.in: Likewise.
14498 * localedata/fi_FI.UTF-8.in: Likewise.
14499 * localedata/fil_PH.UTF-8.in: Likewise.
14500 * localedata/fur_IT.UTF-8.in: Likewise.
14501 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14502 * localedata/ha_NG.UTF-8.in: Likewise.
14503 * localedata/ig_NG.UTF-8.in: Likewise.
14504 * localedata/ik_CA.UTF-8.in: Likewise.
14505 * localedata/kk_KZ.UTF-8.in: Likewise.
14506 * localedata/ku_TR.UTF-8.in: Likewise.
14507 * localedata/ky_KG.UTF-8.in: Likewise.
14508 * localedata/ln_CD.UTF-8.in: Likewise.
14509 * localedata/mi_NZ.UTF-8.in: Likewise.
14510 * localedata/ml_IN.UTF-8.in: Likewise.
14511 * localedata/mn_MN.UTF-8.in: Likewise.
14512 * localedata/mr_IN.UTF-8.in: Likewise.
14513 * localedata/mt_MT.UTF-8.in: Likewise.
14514 * localedata/nb_NO.UTF-8.in: Likewise.
14515 * localedata/om_KE.UTF-8.in: Likewise.
14516 * localedata/os_RU.UTF-8.in: Likewise.
14517 * localedata/ps_AF.UTF-8.in: Likewise.
14518 * localedata/ro_RO.UTF-8.in: Likewise.
14519 * localedata/ru_RU.UTF-8.in: Likewise.
14520 * localedata/sc_IT.UTF-8.in: Likewise.
14521 * localedata/se_NO.UTF-8.in: Likewise.
14522 * localedata/sq_AL.UTF-8.in: Likewise.
14523 * localedata/sv_SE.UTF-8.in: Likewise.
14524 * localedata/szl_PL.UTF-8.in: Likewise.
14525 * localedata/tg_TJ.UTF-8.in: Likewise.
14526 * localedata/tk_TM.UTF-8.in: Likewise.
14527 * localedata/tt_RU.UTF-8.in: Likewise.
14528 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14529 * localedata/ug_CN.UTF-8.in: Likewise.
14530 * localedata/uz_UZ.UTF-8.in: Likewise.
14531 * localedata/vi_VN.UTF-8.in: Likewise.
14532 * localedata/yi_US.UTF-8.in: Likewise.
14533 * localedata/yo_NG.UTF-8.in: Likewise.
14534 * localedata/zh_CN.UTF-8.in: Likewise.
14535 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14536 file and fix bugs in the collation.
14537 * localedata/locales/az_AZ: Likewise.
14538 * localedata/locales/be_BY: Likewise.
14539 * localedata/locales/ber_DZ: Likewise.
14540 * localedata/locales/ber_MA: Likewise.
14541 * localedata/locales/bg_BG: Likewise.
14542 * localedata/locales/br_FR: Likewise.
14543 * localedata/locales/br_FR@euro: Likewise.
14544 * localedata/locales/ca_ES: Likewise.
14545 * localedata/locales/cns11643_stroke: Likewise.
14546 * localedata/locales/crh_UA: Likewise.
14547 * localedata/locales/cs_CZ: Likewise.
14548 * localedata/locales/csb_PL: Likewise.
14549 * localedata/locales/cv_RU: Likewise.
14550 * localedata/locales/cy_GB: Likewise.
14551 * localedata/locales/da_DK: Likewise.
14552 * localedata/locales/dz_BT: Likewise.
14553 * localedata/locales/en_CA: Likewise.
14554 * localedata/locales/eo: Likewise.
14555 * localedata/locales/es_CU: Likewise.
14556 * localedata/locales/es_EC: Likewise.
14557 * localedata/locales/es_ES: Likewise.
14558 * localedata/locales/es_US: Likewise.
14559 * localedata/locales/et_EE: Likewise.
14560 * localedata/locales/fa_IR: Likewise.
14561 * localedata/locales/fi_FI: Likewise.
14562 * localedata/locales/fil_PH: Likewise.
14563 * localedata/locales/fur_IT: Likewise.
14564 * localedata/locales/gez_ER@abegede: Likewise.
14565 * localedata/locales/ha_NG: Likewise.
14566 * localedata/locales/hr_HR: Likewise.
14567 * localedata/locales/hsb_DE: Likewise.
14568 * localedata/locales/hu_HU: Likewise.
14569 * localedata/locales/ig_NG: Likewise.
14570 * localedata/locales/ik_CA: Likewise.
14571 * localedata/locales/is_IS: Likewise.
14572 * localedata/locales/iso14651_t1_pinyin: Likewise.
14573 * localedata/locales/kk_KZ: Likewise.
14574 * localedata/locales/ku_TR: Likewise.
14575 * localedata/locales/ky_KG: Likewise.
14576 * localedata/locales/ln_CD: Likewise.
14577 * localedata/locales/lt_LT: Likewise.
14578 * localedata/locales/lv_LV: Likewise.
14579 * localedata/locales/mi_NZ: Likewise.
14580 * localedata/locales/ml_IN: Likewise.
14581 * localedata/locales/mn_MN: Likewise.
14582 * localedata/locales/mr_IN: Likewise.
14583 * localedata/locales/mt_MT: Likewise.
14584 * localedata/locales/nb_NO: Likewise.
14585 * localedata/locales/om_KE: Likewise.
14586 * localedata/locales/os_RU: Likewise.
14587 * localedata/locales/pl_PL: Likewise.
14588 * localedata/locales/ps_AF: Likewise.
14589 * localedata/locales/ro_RO: Likewise.
14590 * localedata/locales/ru_RU: Likewise.
14591 * localedata/locales/ru_UA: Likewise.
14592 * localedata/locales/sc_IT: Likewise.
14593 * localedata/locales/se_NO: Likewise.
14594 * localedata/locales/si_LK: Likewise.
14595 * localedata/locales/sq_AL: Likewise.
14596 * localedata/locales/sv_FI: Likewise.
14597 * localedata/locales/sv_FI@euro: Likewise.
14598 * localedata/locales/sv_SE: Likewise.
14599 * localedata/locales/szl_PL: Likewise.
14600 * localedata/locales/tg_TJ: Likewise.
14601 * localedata/locales/ti_ER: Likewise.
14602 * localedata/locales/tk_TM: Likewise.
14603 * localedata/locales/tl_PH: Likewise.
14604 * localedata/locales/tr_TR: Likewise.
14605 * localedata/locales/tt_RU: Likewise.
14606 * localedata/locales/tt_RU@iqtelif: Likewise.
14607 * localedata/locales/ug_CN: Likewise.
14608 * localedata/locales/uk_UA: Likewise.
14609 * localedata/locales/uz_UZ: Likewise.
14610 * localedata/locales/uz_UZ@cyrillic: Likewise.
14611 * localedata/locales/vi_VN: Likewise.
14612 * localedata/locales/yi_US: Likewise.
14613 * localedata/locales/yo_NG: Likewise.
14614
14615 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14616
14617 * gen-locales.mk: Make test files which contain @ modifiers in their
14618 name work.
14619 * localedata/gen-locale.sh: Likewise.
14620
14621 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14622
14623 * posix/tst-fnmatch.input: Fix results for range expressions
14624 for non C locales.
14625 * posix/tst-regexloc.c: Do not use a range expression for
14626 de_DE.ISO-8859-1 locale.
14627
14628 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14629
14630 * posix/bug-regex5.c: Fix test case because with the new
14631 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14632 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14633 file.
14634
14635 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14636
14637 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14638 downloaded from ISO, the collation order of @-. and space has changed.
14639 Therefore, this test file needed to be adapted.
14640 * localedata/fr_CA.UTF-8.in: Likewise.
14641 * localedata/fr_FR.UTF-8.in: Likewise.
14642 * localedata/uk_UA.UTF-8.in: Likewise.
14643
14644 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14645
14646 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14647 order of ȥ in the new iso14651_t1_common file.
14648 * localedata/pl_PL.UTF-8.in: Likewise.
14649
14650 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14651
14652 * localedata/locales/iso14651_t1_common: Add sections for various
14653 scripts to the iso14651_t1_common file.
14654
14655 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14656
14657 * localedata/locales/iso14651_t1_common: Use the code point of a
14658 character in the fourth collation level instead of IGNORE for all
14659 entries which have IGNORE on all 4 levels.
14660
14661 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14662
14663 * localedata/locales/iso14651_t1_common: Add some convenient collation
14664 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14665 rules similar to those in CLDR.
14666
14667 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14668
14669 * localedata/locales/iso14651_t1_common: The new version of this
14670 file downloaded from ISO contained several syntax errors which
14671 are fixed by this patch.
14672
14673 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14674
14675 * localedata/locales/iso14651_t1_common: replace all <U.....>
14676 with <U000.....> because glibc understands only 4 digit or 8 digit
14677
14678 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14679
14680 * localedata/locales/iso14651_t1_common: Necessary changes
14681 to make the file downloaded from ISO usable by glibc.
14682
14683 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14684
14685 [BZ #14095]
14686 * localedata/locales/iso14651_t1_common: Update file to
14687 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14688
14689 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14690
14691 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14692 of <nptl/pthreadP.h>
14693 (thread_attr_compare): Move function to...
14694 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14695 * sysdeps/nptl/timer_routines.h: ... new header.
14696 * sysdeps/mach/hurd/gai_misc.h: New file.
14697
14698 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14699
14700 * string/strcoll_l.c: Include <libc-diag.h>.
14701 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14702 declarations of seq1 and seq2.
14703
14704 [BZ #15105]
14705 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14706 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14707
14708 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14709
14710 [BZ #22433]
14711 [BZ #22807]
14712 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14713 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14714 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14715 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14716 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14717 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14718
14719 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14720
14721 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14722 macros used in __ptrace_request.
14723
14724 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14725
14726 [BZ #22792]
14727 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14728 to $(CC).
14729 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14730 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14731 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14732 <tcb-offsets.h>.
14733
14734 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14735
14736 [BZ #15105]
14737 * ctype/ctype.c (tolower): Use libc_hidden_def.
14738 (toupper): Likewise.
14739 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14740 [!_ISOMAC] (toupper): Likewise.
14741
14742 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14743
14744 * localedata/Makefile: Remove --quiet argument when
14745 installing locales
14746
14747 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14748
14749 [BZ #17438]
14750 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14751 in d_fmt.
14752 * localedata/locales/pt_PT (LC_TIME): likewise
14753
14754 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14755
14756 [BZ #22646]
14757 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14758 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14759 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14760
14761 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14762
14763 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14764
14765 * nptl/Makefile (routines): Remove unregister-atfork.
14766 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14767 (fork_handler_alloc): Remove function.
14768 (fork_handlers, fork_handler_init): New variables.
14769 (__fork_lock): Rename to atfork_lock.
14770 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14771 to use a dynamic array to add/remove atfork handlers.
14772 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14773 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14774 Remove declaration.
14775 (fork_handler): Remove next, refcntr, and need_signal member.
14776 (__run_fork_handler_type): New enum.
14777 (__run_fork_handlers): New prototype.
14778 * nptl/register-atfork.c: Remove file.
14779 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14780
14781 * sysdeps/nptl/nptl-signals.h: Move to ...
14782 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14783 comments.
14784 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14785 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14786 unnecessary check for SIGTIMER.
14787 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14788 remove unnecessary removal of SIGTIMER.
14789 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14790 include-signals.h rename.
14791 * nptl/pthreadP.h: Likewise.
14792 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14793 __is_internal_signal instead of __nptl_is_internal_signal.
14794
14795 2018-02-22 Andrew Waterman <andrew@sifive.com>
14796
14797 [BZ # 22884]
14798 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14799 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14800 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14801 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14802
14803 2018-02-22 DJ Delorie <dj@delorie.com>
14804
14805 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14806
14807 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14808
14809 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14810 do_misaligned, not misaligned8.
14811
14812 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14813
14814 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14815 Add memcpy_thunderx2.
14816 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14817 Increment to 4.
14818 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14819 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14820 and IS_THUNDERX2PA checks.
14821 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14822 Use macro to set name appropriately.
14823 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14824 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14825 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14826 New macro.
14827 (IS_THUNDERX2): New macro.
14828
14829 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14830
14831 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14832
14833 2018-02-21 Zack Weinberg <zackw@panix.com>
14834
14835 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14836 Define here, unconditionally.
14837 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14838 * libio/libioP.h: Remove #if 0 blocks.
14839 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14840 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14841 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14842
14843 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14844 Assume weak_alias is always defined.
14845
14846 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14847 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14848 Remove #if 0 and #ifdef TODO blocks.
14849 Assume text_set_element is always defined.
14850
14851 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14852 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14853 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14854
14855 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14856 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14857 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14858 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14859 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14860 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14861 Reformat bit flags for _flags field to make occupancy clearer.
14862 Update commentary.
14863 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14864 Keep definitions consistent with those in libio/libio.h.
14865
14866 * libio/libio.h (_IO_file_flags): Remove macro.
14867 All uses changed to _flags.
14868
14869 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14870 (__HAVE_COLUMN, _IO_BE): Don't define.
14871 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14872 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14873 * libio/libioP.h (EOF): Don't define.
14874 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14875 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14876 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14877 testing _IO_UNIFIED_JUMPTABLES.
14878
14879 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14880 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14881 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14882 (_IO_size_t): Delete; all uses changed to size_t.
14883 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14884 (_IO_off_t): Delete; all uses changed to off_t.
14885 (_IO_off64_t): Delete; all uses changed to off64_t.
14886 (_IO_pid_t): Delete; all uses changed to pid_t.
14887 (_IO_uid_t): Delete; all uses changed to uid_t.
14888 (_IO_wint_t): Delete; all uses changed to wint_t.
14889 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14890 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14891 (_IO_cookie_io_functions_t): Delete; all uses changed to
14892 cookie_io_functions_t.
14893 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14894 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14895 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14896 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14897
14898 * libio/iofopncook.c: Remove unnecessary forward declarations.
14899 * libio/iolibio.h: Correct outdated commentary.
14900 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14901 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14902 Remove unnecessary casts.
14903 * stdio-common/getline.c: Use _IO_getdelim directly.
14904 Don't redefine ssize_t.
14905 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14906 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14907 Remove outdated comments.
14908 * stdio-common/vfscanf.c: Don't redefine va_list.
14909
14910 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14911 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14912 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14913 which are always true, and __cplusplus, which is always false.
14914
14915 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14916
14917 [BZ #15105]
14918 [BZ #19463]
14919 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14920 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14921 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14922 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14923 libc_hidden_proto.
14924 [!_ISOMAC] (putc_unlocked): Likewise.
14925 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14926 define inline if [__USE_EXTERN_INLINES].
14927 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14928 putc_unlocked.
14929
14930 [BZ #15105]
14931 [BZ #19463]
14932 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14933 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14934 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14935 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14936 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14937 getc_unlocked.
14938 * time/tzfile.c (__tzfile_read): Likewise.
14939
14940 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14941
14942 [BZ #22517]
14943 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14944
14945 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14946
14947 * io/fcntl.h: Fix a typo in a comment.
14948
14949 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14950
14951 [BZ #22862]
14952 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14953 define _DEFAULT_SOURCE.
14954 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14955
14956 2018-02-21 Florian Weimer <fweimer@redhat.com>
14957
14958 [BZ #20890]
14959 * elf/cache.c (save_cache): Call fsync on temporary file before
14960 renaming it.
14961 (save_aux_cache): Call fdatasync on temporary file before renaming
14962 it.
14963
14964 2018-02-21 Florian Weimer <fweimer@redhat.com>
14965
14966 [BZ #22787]
14967 * include/caller.h: Remove file.
14968 * elf/dl-caller.c: Likewise.
14969 * elf/Makefile (dl-routines): Remove dl-caller.
14970 (shared-only-routines): Do not add dl-caller.
14971 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14972 __check_caller.
14973 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14974 member.
14975 (dl_open_worker): Do not call __check_caller.
14976 (_dl_open): Do not set caller_dl_open member.
14977 * elf/rtld.c (_rtld_global_ro): Do not initialize
14978 _dl_check_caller member.
14979 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14980 _dl_check_caller member.
14981 (_dl_check_caller): Remove declaration.
14982 * sysdeps/unix/sysv/linux/dl-execstack.c
14983 (_dl_make_stack_executable): Do not call __check_caller.
14984
14985 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14986
14987 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14988 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14989
14990 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14991
14992 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14993 description.
14994
14995 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14996
14997 [BZ #16335]
14998 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14999 of 199606L, 200112L, and 200809L.
15000 (_XOPEN_SOURCE): Document special values of 600 and 700.
15001 (_ISOC11_SOURCE): Document macro.
15002 (_ATFILE_SOURCE): Likewise.
15003 (_FORTIFY_SOURCE): Likewise.
15004
15005 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15006
15007 [BZ #15105]
15008 [BZ #19463]
15009 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15010 and define as weak alias of __ferror_unlocked. Use
15011 libc_hidden_weak.
15012 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15013 libc_hidden_proto.
15014 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15015 function if [__USE_EXTERN_INLINES].
15016 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15017 ferror_unlocked.
15018
15019 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15020
15021 [BZ #6889]
15022 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15023
15024 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15025
15026 [BZ #22818]
15027 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15028 the GLIBC_2.1 version.
15029
15030 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15031
15032 [BZ #21508]
15033 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15034 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15035 intl/tst-gettext-de.po from po/de.po by removing the
15036 POT-Creation-Date line.
15037 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15038 ../po/de.po.
15039 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15040 ../po/de.po.
15041
15042 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15043
15044 * mach/Makefile (headers): Add mach/param.h.
15045 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15046 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15047 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15048 (__ptsname_r): Move implementation to...
15049 (__ptsname_internal): ... new function. Add filling the STP
15050 structure.
15051
15052 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15053
15054 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15055 idouble to 1 ULP.
15056
15057 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15058
15059 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15060 syntax.
15061
15062 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15063
15064 * nptl/Makefile (tst-mutex8-ENV): Delete.
15065 * nptl/tst-mutex8.c (check_type):
15066 Add runtime check if mutex will be elided.
15067
15068 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15069
15070 [BZ #20980]
15071 [BZ #21234]
15072 * manual/install.texi (Configuring and compiling): Describe
15073 passing CC and CFLAGS on configure command line, not as
15074 environment variables. Use @code markup on those variables.
15075 Specify what options go in CC and what go in CFLAGS. Note the
15076 requirement to compile with optimization.
15077 * INSTALL: Regenerated.
15078
15079 [BZ #18124]
15080 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15081 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15082 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15083 __sigprocmask instead of sigprocmask.
15084 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15085 Likewise.
15086 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15087 __sigsetjmp and sigprocmask.
15088
15089 [BZ #15105]
15090 * include/argz.h (argz_next): Use libc_hidden_proto.
15091 (__argz_next): Likewise.
15092 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15093 (argz_next): Use libc_hidden_weak.
15094
15095 [BZ #15105]
15096 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15097 libc_hidden_proto.
15098 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15099 libc_hidden_def.
15100
15101 [BZ #15105]
15102 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15103 libc_hidden_proto.
15104 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15105
15106 [BZ #15105]
15107 [BZ #19463]
15108 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15109 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15110 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15111 (__feof_unlocked): New declaration, and inline function if
15112 [__USE_EXTERN_INLINES].
15113 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15114 instead of feof_unlocked.
15115 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15116 * nss/nsswitch.c (nss_parse_file): Likewise.
15117 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15118 Likewise.
15119 * time/getdate.c (__getdate_r): Likewise.
15120 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15121 Define as macro to call __feof_unlocked.
15122
15123 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15124
15125 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15126
15127 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15128
15129 * math/Makefile: Remove mpexp.c and mplog.c
15130 * sysdeps/i386/fpu/mpexp.c: Delete file.
15131 * sysdeps/i386/fpu/mplog.c: Likewise.
15132 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15133 * sysdeps/ia64/fpu/mplog.c: Likewise.
15134 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15135 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15136 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15137 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15138 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15139 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15140 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15141 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15142 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15143 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15144 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15145 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15146 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15147 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15148 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15149 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15150
15151 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15152
15153 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15154
15155 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15156
15157 * sysdeps/sh/libm-test-ulps: Update.
15158
15159 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15160
15161 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15162 idouble to 1 ULP.
15163
15164 2018-02-12 Zack Weinberg <zackw@panix.com>
15165
15166 [BZ #19239]
15167 * posix/sys/types.h: Don't include sys/sysmacros.h.
15168 * misc/sys/sysmacros.h: Remove the conditional deprecation
15169 warnings for the macros defined by this header.
15170
15171 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15172
15173 * manual/probes.texi: Remove slowexp probes.
15174 * math/Makefile: Remove slowexp.
15175 * sysdeps/generic/math_private.h (__slowexp): Remove.
15176 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15177 document error bounds.
15178 * sysdeps/i386/fpu/slowexp.c: Remove.
15179 * sysdeps/ia64/fpu/slowexp.c: Remove.
15180 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15181 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15182 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15183 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15184 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15185 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15186 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15187 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15188 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15189 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15190 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15191
15192 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15193
15194 [BZ #13932]
15195 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15196 * benchtests/pow-inputs: Update comment for slow path cases.
15197 * manual/probes.texi (slowpow_p10): Delete removed probe.
15198 (slowpow_p10): Likewise.
15199 * math/Makefile: Remove halfulp.c and slowpow.c.
15200 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15201 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15202 (__halfulp): Remove.
15203 (__slowpow): Remove.
15204 * sysdeps/i386/fpu/halfulp.c: Delete file.
15205 * sysdeps/i386/fpu/slowpow.c: Likewise.
15206 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15207 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15208 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15209 improve comments and add error analysis.
15210 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15211 (power1): Remove function:
15212 (log1): Remove error argument, add error analysis.
15213 (my_log2): Remove function.
15214 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15215 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15216 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15217 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15218 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15219 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15220 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15221 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15222 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15223 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15224 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15225 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15226 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15227 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15228
15229 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15230
15231 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15232 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15233
15234 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15235
15236 [BZ #22433]
15237 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15238 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15239 and PTRACE_SETHBPREGS.
15240
15241 2018-02-10 Zack Weinberg <zackw@panix.com>
15242
15243 [BZ #22830]
15244 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15245 correctly.
15246 * malloc/tst-malloc-stats-cancellation.c: New test case.
15247 * malloc/Makefile: Add new test case.
15248
15249 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15250
15251 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15252
15253 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15254
15255 * math/Makefile (libm-narrow-fns): Add add.
15256 (libm-test-funcs-narrow): Likewise.
15257 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15258 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15259 * math/gen-auto-libm-tests.c (test_functions): Add add.
15260 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15261 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15262 (NARROW_ADD_TRIVIAL): Likewise.
15263 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15264 macro.
15265 (__daddl): Likewise.
15266 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15267 dadd.
15268 (CFLAGS-nldbl-dadd.c): New variable.
15269 (CFLAGS-nldbl-fadd.c): Likewise.
15270 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15271 __nldbl_daddl.
15272 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15273 prototype.
15274 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15275 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15276 * math/auto-libm-test-in: Add tests of add.
15277 * math/auto-libm-test-out-narrow-add: New generated file.
15278 * math/libm-test-narrow-add.inc: New file.
15279 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15280 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15281 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15282 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15283 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15284 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15285 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15286 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15287 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15288 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15289 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15290 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15291 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15292 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15293 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15294 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15295 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15296 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15297 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15298 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15299 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15300 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15301 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15302 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15303 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15304 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15305 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15306 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15307 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15308 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15309 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15310 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15312 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15313 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15315 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15316 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15317 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15318 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15319 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15320 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15321 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15322 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15323 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15324 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15325
15326 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15327 (f128-pairs): New variable.
15328 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15329 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15330 to CFLAGS.
15331 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15332 Also make tests add $(f128-loader-link) to gnulib-tests.
15333
15334 2018-02-09 DJ Delorie <dj@redhat.com>
15335
15336 [BZ #22827]
15337 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15338 64-bit ELF type for 64-bit ELF objects.
15339
15340 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15341
15342 * math/libm-test-driver.c (snan_tests_arg): New variable.
15343 * math/libm-test-support.h (snan_tests_arg): New declaration.
15344 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15345
15346 * math/Makefile (test-type-pairs): New variable.
15347 (test-type-pairs-f64xf128-yes): Likewise.
15348 (tests): Add test-narrow-macros.
15349 (libm-test-funcs-narrow): New variable.
15350 (libm-test-c-narrow): Likewise.
15351 (generated): Add $(libm-test-c-narrow).
15352 (libm-tests-base-narrow): New variable.
15353 (libm-tests-narrow): Likewise.
15354 (libm-tests): Add $(libm-tests-narrow).
15355 (libm-tests-for-type): Handle $(libm-tests-narrow).
15356 (libm-test-c-narrow-obj): New variable.
15357 ($(libm-test-c-narrow-obj)): New rule.
15358 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15359 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15360 $(o-iterator) to set dependencies and CFLAGS.
15361 * math/gen-auto-libm-tests.c: Document use for narrowing
15362 functions.
15363 (output_for_one_input_case): Take argument NARROW.
15364 (generate_output): Likewise. Update call to
15365 output_for_one_input_case.
15366 (main): Take --narrow option. Update call to generate_output.
15367 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15368 (apply_lit): Update call to _apply_lit.
15369 (apply_arglit): New function.
15370 (parse_args): Handle "a" arguments.
15371 (parse_auto_input): Handle format names using ":".
15372 * math/README.libm-test: Document "a" parameter type.
15373 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15374 (ARG_TYPE_TRUE_MIN): Likewise.
15375 (ARG_TYPE_MAX): Likwise.
15376 (ARG_MIN_EXP): Likewise.
15377 (ARG_MAX_EXP): Likewise.
15378 (ARG_MANT_DIG): Likewise.
15379 (TEST_COND_arg_ibm128): Likewise.
15380 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15381 (TEST_COND_arg_fmt): New macro.
15382 (init_max_error): Update prototype.
15383 * math/libm-test-support.c (test_ibm128): New variable.
15384 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15385 instead of using [TEST_COND_ibm128] conditional.
15386 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15387 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15388 [TEST_NARROW] (TEST_MSG): New definition.
15389 (arg_plus_zero): New macro.
15390 (arg_minus_zero): Likewise.
15391 (arg_plus_infty): Likewise.
15392 (arg_minus_infty): Likewise.
15393 (arg_qnan_value_pl): Likewise.
15394 (arg_qnan_value): Likewise.
15395 (arg_snan_value_pl): Likewise.
15396 (arg_snan_value): Likewise.
15397 (arg_max_value): Likewise.
15398 (arg_min_value): Likewise.
15399 (arg_min_subnorm_value): Likewise.
15400 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15401 (RUN_TEST_LOOP_aa_f): New macro.
15402 (TEST_SUFF): New macro.
15403 (TEST_SUFF_STR): Likewise.
15404 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15405 (TEST_COND_any_ibm128): New macro.
15406 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15407 this_func. Update call to init_max_error.
15408 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15409 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15410 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15411 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15412 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15413 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15414 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15415 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15416 * math/test-math-vector.h (TEST_NARROW): Likewise.
15417 * math/test-arg-double.h: New file.
15418 * math/test-arg-float128.h: Likewise.
15419 * math/test-arg-float32x.h: Likewise.
15420 * math/test-arg-float64.h: Likewise.
15421 * math/test-arg-float64x.h: Likewise.
15422 * math/test-arg-ldouble.h: Likewise.
15423 * math/test-math-narrow.h: Likewise.
15424 * math/test-narrow-macros.c: Likewise.
15425 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15426 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15427 test-narrow-macros-ldbl-64.
15428 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15429
15430 * math/bits/mathcalls-narrow.h: New file.
15431 * include/bits/mathcalls-narrow.h: Likewise.
15432 * math/math-narrow.h: Likewise.
15433 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15434 (__MATHCALL_NARROW_ARGS_2): Likewise.
15435 (__MATHCALL_NARROW_ARGS_3): Likewise.
15436 (__MATHCALL_NARROW_NORMAL): Likewise.
15437 (__MATHCALL_NARROW_REDIR): Likewise.
15438 (__MATHCALL_NARROW): Likewise.
15439 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15440 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15441 defined.
15442 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15443 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15444 (libm-narrow-fns): New variable.
15445 (libm-narrow-types-basic): Likewise.
15446 (libm-narrow-types-ldouble-yes): Likewise.
15447 (libm-narrow-types-float128-yes): Likewise.
15448 (libm-narrow-types-float128-alias-yes): Likewise.
15449 (libm-narrow-types): Likewise.
15450 (libm-routines): Add narrowing functions.
15451 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15452 (libc_feholdexcept_setroundf128): New macro.
15453 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15454 * sysdeps/ieee754/float128/float128_private.h: Include
15455 <math/math-narrow.h>.
15456 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15457 Undefine and redefine.
15458 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15459 (libm_alias_float_ldouble): Undefine and redefine.
15460 (libm_alias_double_ldouble): Likewise.
15461
15462 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15463
15464 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15465
15466 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15467 FPCR/FPSR.
15468
15469 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15470
15471 * manual/creature.texi: Convert references to gcc.info to gcc.
15472 * manual/stdio.texi: Likewise.
15473 * manual/string.texi: Likewise.
15474
15475 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15476
15477 [BZ #17979]
15478 * posix/bits/types.h (__int_least8_t): New typedef.
15479 (__uint_least8_t): Likewise.
15480 (__int_least16_t): Likewise.
15481 (__uint_least16_t): Likewise.
15482 (__int_least32_t): Likewise.
15483 (__uint_least32_t): Likewise.
15484 (__int_least64_t): Likewise.
15485 (__uint_least64_t): Likewise.
15486 * sysdeps/generic/stdint.h (int_least8_t): Define using
15487 __int_least8_t.
15488 (int_least16_t): Define using __int_least16_t.
15489 (int_least32_t): Define using __int_least32_t.
15490 (int_least64_t): Define using __int_least64_t.
15491 (uint_least8_t): Define using __uint_least8_t.
15492 (uint_least16_t): Define using __uint_least16_t.
15493 (uint_least32_t): Define using __uint_least32_t.
15494 (uint_least64_t): Define using __uint_least64_t.
15495 * wcsmbs/uchar.h: Include <bits/types.h>.
15496 (char16_t): Define using __uint_least16_t conditional only on
15497 [!__USE_ISOCXX11].
15498 (char32_t): Define using __uint_least32_t conditional only on
15499 [!__USE_ISOCXX11].
15500 * wcsmbs/test-char-types.c: New file.
15501 * wcsmbs/Makefile (tests): Add test-char-types.
15502
15503 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15504 version to 4.0.1.
15505
15506 2018-02-07 Zack Weinberg <zackw@panix.com>
15507
15508 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15509 Delete all contents except for definitions of _G_HAVE_MMAP and
15510 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15511 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15512 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15513 change as above.
15514
15515 * libio/libio.h: Don't include bits/_G_config.h here.
15516 Include stddef.h with __need_wchar_t defined. Include
15517 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15518 Define _IO_iconv_t here, directly.
15519 Don't define _IO_HAVE_ST_BLKSIZE.
15520 * libio/libioP.h: Include _G_config.h here. Move include of
15521 shlib-compat.h up with rest of includes. Simplify conditionals
15522 controlling definition of _IO_JUMPS_OFFSET.
15523
15524 * csu/init.c: Remove always-true #if around entire file.
15525 Don't include stdio.h. Set _IO_stdin_used to hardwired
15526 constant 0x20001, and update commentary.
15527 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15528 Replace all uses of _G_va_list with __gnuc_va_list.
15529 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15530 instead of #if _IO_HAVE_ST_BLKSIZE.
15531 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15532 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15533 not #ifdef.
15534
15535 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15536 multiple-include guard to match.
15537 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15538 into this file.
15539 Remove preprocessor conditionals that are always true and/or
15540 redundant to other preprocessor conditionals in the same nest.
15541 Include shlib-compat.h unconditionally.
15542 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15543 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15544 defined after including stdio.h.
15545 Use __BEGIN_DECLS/__END_DECLS.
15546
15547 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15548 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15549 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15550
15551 2018-02-07 Zack Weinberg <zackw@panix.com>
15552
15553 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15554 New single-type headers split from _G_config.h.
15555 * libio/bits/types/cookie_io_functions_t.h
15556 * libio/bits/types/struct_FILE.h
15557 New single-type headers split from libio.h.
15558
15559 * libio/Makefile: Install the above new headers. Don't install
15560 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15561 bits/libio-ldbl.h.
15562 * libio/_G_config.h, libio/libio.h: Delete file.
15563
15564 * libio/bits/libio.h: Remove improper-inclusion guard.
15565 Include stdio.h and don't repeat anything that it does.
15566 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15567 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15568 __io_read_fn as cookie_read_function_t,
15569 __io_write_fn as cookie_write_function_t,
15570 __io_seek_fn as cookie_seek_function_t,
15571 __io_close_fn as cookie_close_function_t,
15572 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15573 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15574 here, in the "compatibility defines" section. Remove an #if 0
15575 block. Use the "body" macros from bits/types/struct_FILE.h to
15576 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15577 and _IO_ferror_unlocked.
15578 Move prototypes of __uflow and __overflow...
15579
15580 * libio/stdio.h: ...here. Don't include bits/libio.h.
15581 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15582 directly from stdarg.h. Include bits/types/__fpos_t.h,
15583 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15584 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15585 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15586 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15587 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15588 __ssize_t, not _IO_ssize_t. Unconditionally define
15589 BUFSIZ as 8192 and EOF as (-1).
15590
15591 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15592 macros from bits/types/struct_FILE.h instead of _IO_* macros
15593 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15594 instead of _IO_ssize_t.
15595 * libio/bits/stdio2.h: Similarly.
15596
15597 * libio/iolibio.h: Add multiple-include guard.
15598 Include bits/libio.h after stdio.h.
15599 * libio/libioP.h: Add multiple-include guard.
15600 Include stdio.h and bits/libio.h before iolibio.h.
15601
15602 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15603 * include/bits/types/cookie_io_functions_t.h
15604 * include/bits/types/struct_FILE.h: New wrappers.
15605
15606 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15607 Get definitions of _G_fpos_t and _G_fpos64_t from
15608 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15609 respectively. Remove improper-inclusion guards.
15610
15611 * conform/data/stdio.h-data: Update expectations of va_list.
15612 * scripts/check-installed-headers.sh: Remove special case for
15613 libio.h and _G_config.h.
15614
15615 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15616
15617 [BZ #15105]
15618 [BZ #19463]
15619 * include/sys/sysmacros.h [!_ISOMAC]
15620 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15621 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15622 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15623 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15624 libc_hidden_proto.
15625 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15626 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15627 Likewise.
15628 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15629 Undefine and redefine to add use __gnu_dev_ prefix.
15630 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15631 Likewise.
15632 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15633 and define as hidden inline function.
15634 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15635 Likewise.
15636 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15637 Likewise.
15638 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15639 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15640 (gnu_dev_minor): Likewise.
15641 (gnu_dev_makedev): Likewise.
15642 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15643 makedev.
15644 * posix/wordexp.c (exec_comm_child): Likewise.
15645 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15646 instead of minor and __gnu_dev_major instead of major.
15647 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15648 __gnu_dev_major instead of major.
15649 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15650 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15651 instead of gnu_dev_minor.
15652 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15653 (SLAVE_P): Likewise.
15654 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15655 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15656 instead of major.
15657
15658 [BZ #21313]
15659 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15660 in another place.
15661 * locale/weightwc.h (findidx): Likewise.
15662
15663 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15664
15665 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15666 (slowlog_inexact): Likewise
15667 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15668 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15669
15670 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15671
15672 [BZ #22797]
15673 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15674 missing second underscore to parameter name.
15675
15676 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15677
15678 [BZ #14508]
15679 [BZ #15512]
15680 [BZ #17082]
15681 [BZ #20530]
15682 * bits/byteswap.h: Update file comment. Do not include
15683 <bits/byteswap-16.h>.
15684 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15685 constant.
15686 (__bswap_16): Define as inline function.
15687 (__bswap_constant_32): Reformat definition.
15688 (__bswap_32): Always define as inline function, not macro, using
15689 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15690 otherwise __bswap_constant_32.
15691 (__bswap_constant_64): Reformat definition. Do not use
15692 __extension__ here.
15693 (__bswap_64): Always define as inline function, not macro. Use
15694 __extension__ on function definition. Use __builtin_bswap64 if
15695 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15696 * string/test-endian-file-scope.c: New file.
15697 * string/test-endian-sign-conversion.c: Likewise.
15698 * string/Makefile (headers): Remove bits/byteswap-16.h.
15699 (tests): Add test-endian-file-scope and
15700 test-endian-sign-conversion.
15701 (CFLAGS-test-endian-sign-conversion.c): New variable.
15702 * bits/byteswap-16.h: Remove file.
15703 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15704 * sysdeps/ia64/bits/byteswap.h: Likewise.
15705 * sysdeps/m68k/bits/byteswap.h: Likewise.
15706 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15707 * sysdeps/s390/bits/byteswap.h: Likewise.
15708 * sysdeps/tile/bits/byteswap.h: Likewise.
15709 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15710 * sysdeps/x86/bits/byteswap.h: Likewise.
15711
15712 [BZ #17721]
15713 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15714 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15715 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15716 199901L] (__restrict): Define to restrict.
15717
15718 [BZ #19667]
15719 * string/testcopy.c: Include <support/support.h>. Do not include
15720 <malloc.h>. Use <support/test-driver.c>.
15721 (main): Rename to do_test. Make static. Use xmalloc instead of
15722 malloc.
15723
15724 [BZ #13575]
15725 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15726 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15727 (SSIZE_MAX): Define to INT_MAX.
15728 * posix/test-ssize-max.c: New file.
15729 * posix/Makefile (tests): Add test-ssize-max.
15730
15731 [BZ #19668]
15732 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15733 <support/support.h>. Do not include <malloc.h>.
15734 (query_auxv): Use xmalloc instead of malloc.
15735
15736 [BZ #14553]
15737 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15738 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15739 instead of loff_t.
15740
15741 2018-02-06 Florian Weimer <fweimer@redhat.com>
15742
15743 [BZ #18023]
15744 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15745 Use scratch_buffer instead of extend_alloca.
15746
15747 2018-02-06 Zack Weinberg <zackw@panix.com>
15748
15749 * libio/stdio.h: Don't define getc or putc as macros.
15750 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15751 not _IO_getc and _IO_putc.
15752
15753 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15754 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15755
15756 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15757
15758 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15759 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15760
15761 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15762
15763 [BZ #14890]
15764 * elf/elf.h (NT_PRFPREG): New macro.
15765 (NT_S390_VXRS_LOW): Likewise.
15766 (NT_S390_VXRS_HIGH): Likewise.
15767 (NT_S390_GS_CB): Likewise.
15768 (NT_S390_GS_BC): Likewise.
15769 (NT_S390_RI_CB): Likewise.
15770
15771 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15772 (MAP_SYNC): New macro.
15773 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15774 Likewise.
15775 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15776 (MAP_SYNC): Likewise.
15777 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15778 (MAP_SYNC): Likewise.
15779 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15780 (MAP_SYNC): Likewise.
15781 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15782 (MAP_SYNC): Likewise.
15783 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15784 (MAP_SYNC): Likewise.
15785 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15786 (MAP_SYNC): Likewise.
15787 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15788 Likewise.
15789 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15790 Likewise.
15791
15792 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15793 (MAP_SHARED_VALIDATE): New macro.
15794 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15795 (MAP_SHARED_VALIDATE): Likewise.
15796
15797 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15798
15799 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15800 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15801 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15802
15803 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15804
15805 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15806 (DT_NUM): Updated to 35.
15807
15808 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15809
15810 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15811 __builtin_expect with __glibc_likely and __glibc_unlikely.
15812 (elf_machine_rela): Likewise.
15813 (elf_machine_lazy_rel): Likewise.
15814
15815 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15816
15817 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15818 __builtin_expect with __glibc_likely and __glibc_unlikely.
15819 (elf_machine_lazy_rel): Likewise.
15820
15821 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15822
15823 [BZ #22638]
15824 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15825 SHARED.
15826 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15827
15828 2018-02-05 Andreas Schwab <schwab@suse.de>
15829
15830 [BZ #22761]
15831 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15832 string.
15833
15834 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15835
15836 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15837 not check against PTHREAD_STACK_MIN.
15838
15839 2018-02-02 Sean McKean <smckean83@gmail.com>
15840
15841 [BZ #22735]
15842 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15843
15844 2018-02-02 Florian Weimer <fweimer@redhat.com>
15845
15846 [BZ #22753]
15847 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15848 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15849 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15850 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15851 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15852 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15853 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15854 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15855 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15856 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15857 * misc/tst-preadvwritev2.c (do_test): Call it.
15858 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15859
15860 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15861
15862 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15863
15864 * benchtests/bench-memcmp.c: Print json instead of plain text.
15865
15866 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15867 every test run.
15868
15869 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15870
15871 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15872 version to 4.15.
15873 (s390_sthyi): New syscall.
15874
15875 * sysdeps/generic/ldbl-classify-compat.h: New file.
15876 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15877 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15878 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15879 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15880 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15881 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15882 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15883 <ldbl-classify-compat.h>.
15884 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15885 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15886 <ldbl-classify-compat.h>.
15887 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15888 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15889 <ldbl-classify-compat.h>.
15890 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15891 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15892 <ldbl-classify-compat.h>.
15893 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15894 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15895 <ldbl-classify-compat.h>.
15896 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15897 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15898 <ldbl-classify-compat.h>.
15899 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15900 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15901 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15902 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15903 * sysdeps/microblaze/math_private.h: Likewise.
15904 * sysdeps/nios2/math_private.h: Likewise.
15905 * sysdeps/sh/math_private.h: Likewise.
15906
15907 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15908 * sysdeps/m68k/coldfire/math_private.h: ... here.
15909 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15910 * sysdeps/tile/math_private.h: Likewise.
15911 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15912 Remove macro.
15913 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15914 Likewise.
15915
15916 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15917 Remove macro.
15918 (libc_fetestexcept): Likewise.
15919 (libc_feupdateenv_test): Likewise.
15920 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15921 (libc_fetestexcept): Likewise.
15922 (libc_feupdateenv_test): Likewise.
15923 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15924 (libc_fetestexcept): Likewise.
15925 (libc_feupdateenv_test): Likewise.
15926 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15927 (libc_fetestexcept): Likewise.
15928 (libc_feupdateenv_test): Likewise.
15929
15930 * sysdeps/generic/math_private.h
15931 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15932 New inline function.
15933 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15934 Likewise.
15935
15936 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15937 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15938 * sysdeps/generic/math_private.h
15939 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15940 inline function.
15941 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15942 Likewise.
15943 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15944 Likewise.
15945 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15946 Likewise.
15947 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15948 Likewise.
15949 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15950 Likewise.
15951 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15952 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15953 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15954 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15955 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15956 (__fegetenv): Likewise.
15957 (fesetenv): Likewise.
15958 (__fesetenv): Likewise.
15959 (feupdateenv): Likewise.
15960 (__feupdateenv): Likewise.
15961 (fegetround): Likewise.
15962 (__fegetround): Likewise.
15963 (fesetround): Likewise.
15964 (__fesetround): Likewise.
15965
15966 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15967 (feraiseexcept): New macro.
15968 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15969 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15970 Remove macro.
15971 (__feraiseexcept): Likewise.
15972 (feclearexcept): Likewise.
15973 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15974 (__feraiseexcept): Likewise.
15975 (feclearexcept): Likewise.
15976 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15977 (__feraiseexcept): Likewise.
15978 (feclearexcept): Likewise.
15979 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15980 (__feraiseexcept): Likewise.
15981 (feclearexcept): Likewise.
15982 (fetestexcept): Likewise.
15983
15984 * sysdeps/m68k/coldfire/math-tests.h: New file.
15985
15986 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15987 * sysdeps/m68k/bits/fenv.h: ... here.
15988 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15989 not define.
15990 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15991 Likewise.
15992 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15993 Likewise.
15994 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15995 Likewise.
15996 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15997 Likewise.
15998 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15999 Define to 0.
16000 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16001 (__FE_UNDEFINED): New enum constant.
16002 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16003 Do not define.
16004 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16005 Likewise.
16006 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16007 Likewise.
16008 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16009 to match generic bits/fenv.h.
16010 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16011 Do not define.
16012
16013 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16014 packed on bits.
16015 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16016 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16017 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16018 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16019
16020 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16021 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16022 Joseph Myers <joseph@codesourcery.com>
16023
16024 [BZ #21314]
16025 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16026 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16027 computation using c.
16028 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16029 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16030 computation using c.
16031
16032 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16033
16034 * version.h (RELEASE): Set to "development".
16035 (VERSION): Set to "2.27.9000".
16036 * NEWS (2.28): New section.
16037
16038 * version.h (RELEASE): Set to "stable".
16039 (VERSION): Set to "2.27".
16040 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16041
16042 * NEWS: Add the list of bugs fixed in 2.27.
16043
16044 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16045
16046 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16047 against PTHREAD_STACK_MIN.
16048
16049 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16050
16051 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16052 New entries.
16053 (Rafal Luzynski, Andreas Schwab): Update.
16054
16055 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16056
16057 [BZ #10871]
16058 * NEWS: List the languages which actually use the alternative
16059 months feature in this release. Also explain that "alt_mon" and
16060 "ab_alt_mon" are optional.
16061
16062 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16063
16064 [BZ #22765]
16065 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16066
16067 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16068
16069 * manual/install.texi (Tools for Compilation): Update the newest
16070 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16071 * INSTALL: Regenerated.
16072
16073 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16074
16075 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16076 instead of __builtin_expect.
16077
16078 2018-01-30 Florian Weimer <fweimer@redhat.com>
16079
16080 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16081 data.
16082 * nss/tst-nss-getpwent.c (do_test): Likewise.
16083
16084 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16085
16086 [BZ #10871]
16087 * localedata/locales/hr_HR (mon): Rename to...
16088 (alt_mon): This.
16089 (mon): Import from CLDR (genitive case).
16090 (d_t_fmt): Update the comment.
16091
16092 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16093
16094 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16095 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16096 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16097
16098 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16099
16100 * mach/Versions: Fix version when __mach_host_self_ was added.
16101 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16102 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16103 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16104 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16105 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16106 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16107 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16108 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16109 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16110 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16111 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16112 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16113 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16114 || to respect codestyle.
16115 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16116 (do_test_bz20181): Rename accordingly.
16117 * malloc/malloc.c: Include <assert.h>.
16118 (assert): Do not define.
16119 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16120 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16121 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16122 * sysdeps/mach/hurd/hp-timing.h: New file.
16123 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16124
16125 2018-01-29 Darius Rad <darius@bluespec.com>
16126
16127 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16128
16129 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16130
16131 * sysdeps/init_array/crti.S (.section .init_array): Add
16132 PREINIT_FUNCTION when defined.
16133 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16134 * config.h.in: Regenerate.
16135 * manual/platform.texi: Add RISC-V documenation for
16136 __riscv_flush_icache.
16137 * sysdeps/riscv/__longjmp.S: New file.
16138 * sysdeps/riscv/backtrace.c: Likewise.
16139 * sysdeps/riscv/bits/endian.h: Likewise.
16140 * sysdeps/riscv/bits/setjmp.h: Likewise.
16141 * sysdeps/riscv/bits/wordsize.h: Likewise.
16142 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16143 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16144 * sysdeps/riscv/dl-trampoline.S: Likewise.
16145 * sysdeps/riscv/gccframe.h: Likewise.
16146 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16147 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16148 * sysdeps/riscv/machine-gmon.h: Likewise.
16149 * sysdeps/riscv/memusage.h: Likewise.
16150 * sysdeps/riscv/setjmp.S: Likewise.
16151 * sysdeps/riscv/sys/asm.h: Likewise.
16152 * sysdeps/riscv/tls-macros.h: Likewise.
16153 * sysdeps/riscv/dl-tls.h: New file.
16154 * sysdeps/riscv/libc-tls.c: Likewise.
16155 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16156 * sysdeps/riscv/nptl/tls.h: Likewise.
16157 * sysdeps/riscv/stackinfo.h: Likewise.
16158 * sysdeps/riscv/bits/fenv.h: New file.
16159 * sysdeps/riscv/e_sqrtl.c: Likewise.
16160 * sysdeps/riscv/fpu_control.h: Likewise.
16161 * sysdeps/riscv/math-tests.h: Likewise.
16162 * sysdeps/riscv/nofpu/Implies: Likewise.
16163 * sysdeps/riscv/sfp-machine.h: Likewise.
16164 * sysdeps/riscv/tininess.h: Likewise.
16165 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16166 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16167 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16168 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16169 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16170 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16171 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16172 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16173 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16174 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16175 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16176 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16177 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16178 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16179 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16180 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16181 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16182 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16183 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16184 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16185 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16186 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16187 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16188 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16189 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16190 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16191 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16192 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16193 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16194 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16195 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16196 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16197 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16198 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16199 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16200 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16201 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16202 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16203 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16204 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16205 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16206 * sysdeps/riscv/rvf/math_private.h: Likewise.
16207 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16208 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16209 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16210 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16211 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16212 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16213 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16214 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16215 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16216 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16217 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16218 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16219 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16220 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16221 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16222 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16223 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16224 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16225 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16226 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16227 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16228 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16229 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16230 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16231 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16232 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16233 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16234 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16236 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16237 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16240 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16242 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16245 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16246 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16247 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16249 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16251 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16252 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16253 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16254 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16258 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16259 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16260 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16261 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16262 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16263 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16264 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16265 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16266 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16267 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16268 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16269 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16270 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16271 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16272 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16273 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16275 * sysdeps/riscv/Implies: New file.
16276 * sysdeps/riscv/Makefile: Likewise.
16277 * sysdeps/riscv/configure: Likewise.
16278 * sysdeps/riscv/configure.ac: Likewise.
16279 * sysdeps/riscv/nptl/Makefile: Likewise.
16280 * sysdeps/riscv/preconfigure: Likewise.
16281 * sysdeps/riscv/rv64/Implies-after: Likewise.
16282 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16283 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16284 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16285 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16286 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16287 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16288 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16289 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16290 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16291 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16292 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16293 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16294 (Config): Likewise.
16295
16296 2018-01-29 Florian Weimer <fweimer@redhat.com>
16297
16298 [BZ #22701]
16299 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16300 libnsl_hidden_proto.
16301 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16302 libnsl_hidden_proto.
16303 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16304 * nis/Makefile (libnsl-routines): Add nss-default only for
16305 build-obsolete-nsl.
16306 * nis/nis_defaults.c (__nis_default_ttl): Add
16307 libnsl_hidden_nolink_def.
16308 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16309 declaration.
16310 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16311 * nis/ypclnt.c (yp_maplist): Likewise.
16312
16313 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16314
16315 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16316 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16317
16318 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16319
16320 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16321 clean -dxfq for git updates when replacing sources.
16322
16323 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16324 --disable-libcilkrts unconditionally, not just for the final GCC
16325 build for Hurd.
16326
16327 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16328 version to 4.15.
16329
16330 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16331
16332 [BZ #10871]
16333 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16334 case).
16335
16336 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16337
16338 [BZ #10871]
16339 * localedata/locales/be_BY (mon): Rename to...
16340 (alt_mon): This, then synchronize with CLDR (nominative case).
16341 (abmon): Rename to...
16342 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16343 (mon): Import from CLDR (genitive case).
16344 (abmon): Likewise.
16345 * localedata/locales/be_BY@latin (mon): Rename to...
16346 (alt_mon): This.
16347 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16348
16349 * localedata/locales/be_BY@latin (lang_name): Reworded to
16350 "biełaruskaja mova".
16351
16352 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16353
16354 [BZ #10871]
16355 * localedata/locales/el_CY (mon): Renamed to...
16356 (alt_mon): This.
16357 (mon): Import from CLDR (genitive case).
16358 * localedata/locales/el_GR: Likewise.
16359
16360 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16361
16362 [BZ #10871]
16363 * localedata/locales/ru_RU (mon): Rename to...
16364 (alt_mon): This.
16365 (abmon): Rename to...
16366 (ab_alt_mon): This.
16367 (mon): Import from CLDR (genitive case).
16368 (abmon): Copy from the old content except the 5th month which is
16369 now in the genitive case, even when abbreviated.
16370 * localedata/locales/ru_UA: Likewise.
16371 * time/tst-strptime.c (day_tests): Add an actual example of
16372 a difference between %b and %Ob in Russian.
16373
16374 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16375
16376 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16377 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16378 a `c' variable.
16379 * resolv/res-close.c: Include <stdlib.h>.
16380 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16381 <sys/wait.h>, <time.h>, <sys/uio.h>.
16382 (NOT_CANCEL_H): Add inclusion guard.
16383 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16384 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16385 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16386 return 0.
16387 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16388 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16389 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16390 instead of void *.
16391 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16392 timer_ptr2id to cast struct timer_node * to void *.
16393 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16394 --disable-libcilkrts to gcc configure.
16395 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16396 and make them the default for now.
16397 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16398 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16399 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16400 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16401 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16402 MACH_IPC_COMPAT.
16403 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16404 __task_terminate would ever return successfully.
16405 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16406 to global scope.
16407 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16408 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16409 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16410 critical section to make code simpler and avoid warning.
16411 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16412 critical section to make code simpler and avoid warning.
16413 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16414 const char * instead of char *.
16415 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16416 __hurd_file_name_split, hurd_file_name_split,
16417 __hurd_directory_name_split, hurd_directory_name_split,
16418 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16419 hurd_file_name_path_lookup): Make lookup function parameter take a
16420 const char *name instead of char *name.
16421 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16422 __hurd_directory_name_split): Likewise.
16423 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16424 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16425 * sysdeps/mach/hurd/check_native.c: New file.
16426 * sysdeps/mach/hurd/check_pf.c: New file.
16427 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16428 (__freeifaddrs): Define macro to freeifaddrs.
16429 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16430 * sysdeps/mach/libmachuser.abilist: New file.
16431 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16432 (do_test_bz20181): Rename accordingly.
16433 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16434 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16435 <sys/mount.h>.
16436 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16437 version only if __USE_EXTERN_INLINES is defined.
16438 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16439 __hurd_sockfail): Likewise.
16440 (_hurd_fd_get): Always declare functions, and provide inline versions
16441 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16442 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16443 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16444 _hurd_port_set): Always declare functions, and provide inline versions
16445 only if __USE_EXTERN_INLINES and _LIBC are defined and
16446 IS_IN(libc).
16447 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16448 _hurd_critical_section_unlock): Likewise.
16449 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16450 * __hurd_threadvar_location): Likewise.
16451 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16452 _hurd_userlink_clear): Likewise.
16453 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16454 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16455 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16456 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16457 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16458 __spin_lock_locked): Likewise.
16459 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16460 __spin_lock_locked): Likewise.
16461 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16462 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16463 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16464 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16465 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16466 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16467 _POSIX_NO_TRUNC): Define to 0.
16468 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16469 check size against PTHREAD_STACK_MIN.
16470 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16471 IS_IN(libpthread)]: Include <sigsetops.h>.
16472 * mach/Makefile (user-interfaces): Add mach/gnumach.
16473 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16474 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16475 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16476 instead of invalid -1.
16477 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16478 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16479 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16480 <net/ppp_defs.h>.
16481
16482 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16483
16484 * hurd/fcntl-internal.h: New file.
16485
16486 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16487
16488 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16489
16490 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16491
16492 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16493
16494 [BZ #22701]
16495 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16496 Build only shared objects.
16497
16498 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16499
16500 * README: Update for hppa.
16501
16502 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16503
16504 * sysdeps/sparc/fpu/libm-test-ulps: Update
16505 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16506
16507 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16508
16509 Revert:
16510
16511 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16512
16513 [BZ #22563]
16514 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16515 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16516 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16517 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16518 to feature_1.
16519
16520 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16521
16522 [BZ #22563]
16523 * bits/types/__cancel_jmp_buf_tag.h: New file.
16524 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16525 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16526 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16527 * nptl/Makefile (headers): Add
16528 bits/types/__cancel_jmp_buf_tag.h.
16529 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16530 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16531 * sysdeps/nptl/pthread.h: Include
16532 <bits/types/__cancel_jmp_buf_tag.h>.
16533 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16534 __cancel_jmp_buf.
16535 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16536
16537 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16538
16539 [BZ #10871]
16540 * localedata/locales/uk_UA (mon): Renamed to...
16541 (alt_mon): This.
16542 (alt_digits): "0" removed and then renamed to...
16543 (mon): This.
16544 (date_fmt): Definition changed not to use the alternative
16545 digits hack.
16546
16547 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16548
16549 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16550 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16551 * elf/elf.h (EF_RISCV_RVC): New define.
16552 (EF_RISCV_FLOAT_ABI): Likewise.
16553 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16554 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16555 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16556 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16557 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16558 define.
16559 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16560
16561 2018-01-25 Andreas Schwab <schwab@suse.de>
16562
16563 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16564 single quotes.
16565 * sysdeps/gnu/configure: Regenerate.
16566 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16567 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16569 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16570 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16571 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16572 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16573 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16574
16575 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16576
16577 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16578 URL, and run autoconf, make it the default for now.
16579
16580 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16581
16582 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16583 soft-float ColdFire configuration.
16584
16585 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16586 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16587 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16588
16589 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16590 MicroBlaze file.
16591
16592 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16593 ....
16594 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16595 ... here.
16596 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16597 New file.
16598
16599 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16600 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16601 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16602 file.
16603
16604 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16605
16606 [BZ #22742]
16607 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16608 Rename to __reserved and add comment.
16609 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16610 Rename to __reserved.
16611
16612 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16613
16614 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16615 i686-gnu configurations.
16616 (Context.run_builds): Include mig, gnumach and hurd in components
16617 considered.
16618 (Context.checkout): Add mig, gnumach and hurd to components.
16619 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16620 hurd.
16621 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16622 (Config.build): Install gnumach headers, build mig and install
16623 hurd headers for 'gnu' OS.
16624 (Config.install_gnumach_headers): New function.
16625 (Config.install_hurd_headers): Likewise.
16626 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16627 when building for 'gnu' OS.
16628
16629 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16630
16631 * manual/tunables.texi (Hardware Capability Tunables): Fix
16632 spelling.
16633
16634 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16635
16636 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16637 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16638 (ALTMON_11, ALTMON_12): Improve documentation.
16639 * manual/time.texi (strftime): Likewise.
16640
16641 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16642
16643 [BZ #10871]
16644 * localedata/locales/pl_PL: Alternative month names added,
16645 primary month names are genitive now.
16646 * time/tst-strptime.c (day_tests): Actually use a genitive case
16647 of a month name in Polish language.
16648
16649 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16650
16651 [BZ #10871]
16652 * manual/locale.texi: Document ALTMON_1..12 constants for
16653 nl_langinfo. Specify when to use ALTMON instead of MON.
16654 * manual/time.texi (strftime, strptime): Document GNU extension
16655 permitting O modifier with %B and %b. Specify when to use
16656 %OB instead of %B.
16657
16658 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16659
16660 [BZ #10871]
16661 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16662 names, define them as the same as abbreviated month names explicitly.
16663 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16664 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16665 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16666 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16667 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16668 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16669 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16670 _NL_WABALTMON_12): New enum constants.
16671 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16672 wab_alt_mon, and ab_alt_mon_defined members.
16673 (time_output): Output ab_alt_mon and wab_alt_mon members.
16674 (time_read): Read them, initialize them as copies of abmon and wabmon
16675 respectively if they are missing, initialize ab_alt_mon_defined.
16676 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16677 * locale/programs/locfile-kw.h: Regenerate.
16678 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16679 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16680 and ru_RU.UTF-8.
16681 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16682 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16683 (__strftime_internal): Handle %Ob and %Oh formats.
16684 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16685 (__strptime_internal): Handle %Ob and %Oh formats.
16686 * time/tst-strptime.c (day_tests): Add more tests to parse different
16687 forms of month names including the new %Ob format specifier.
16688
16689 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16690
16691 [BZ #10871]
16692 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16693 define them as the same as primary full month names explicitly.
16694 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16695 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16696 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16697 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16698 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16699 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16700 _NL_WALTMON_12): New enum constants.
16701 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16702 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16703 macros.
16704 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16705 walt_mon, and alt_mon_defined members.
16706 (time_output): Output alt_mon and walt_mon members.
16707 (time_read): Read them, initialize them as copies of mon and wmon
16708 respectively if they are missing, initialize alt_mon_defined.
16709 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16710 * locale/programs/locfile-kw.h: Regenerate.
16711 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16712 * localedata/tst-langinfo.c (map): Add tests for the new constants
16713 ALTMON_1 .. ALTMON_12.
16714 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16715 and pl_PL.UTF-8.
16716 * time/strftime_l.c (f_altmonth): New macro.
16717 (__strftime_internal): Handle %OB format.
16718 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16719 (__strptime_internal): Handle %OB format.
16720 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16721 of month names including the new %OB format specifier.
16722
16723 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16724
16725 [BZ #22685]
16726 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16727 from ABORT_TRANSACTION.
16728 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16729 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16730 ABORT_TRANSACTION_IMPL): Likewise.
16731 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16732 Linux code, but remove the code that aborts transactions.
16733
16734 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16735
16736 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16737
16738 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16739
16740 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16741 in date: "2004-14-09" should be "2004-09-14".
16742 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16743 "2003-15-09" should be "2003-09-15".
16744
16745 2018-01-18 Arjun Shankar <arjun@redhat.com>
16746
16747 [BZ #22343]
16748 [BZ #22774]
16749 CVE-2018-6485
16750 CVE-2018-6551
16751 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16752 after padding.
16753 (_int_memalign): check for integer overflow before calling
16754 _int_malloc.
16755 * malloc/tst-malloc-too-large.c: New test.
16756 * malloc/Makefile: Add tst-malloc-too-large.
16757
16758 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16759
16760 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16761 in date: "2017-24-07" should be "2017-07-24".
16762 * localedata/locales/mai_IN: Likewise.
16763 * localedata/locales/mai_NP: Likewise.
16764
16765 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16766
16767 * po/ru.po: Update translations.
16768
16769 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16770
16771 [BZ #22719]
16772 * sysdeps/hppa/backtrace.c: New file.
16773
16774 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16775
16776 [BZ #22715]
16777 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16778 align La_x86_64_retval to VEC_SIZE.
16779
16780 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16781
16782 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16783 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16784
16785 2018-01-16 Florian Weimer <fweimer@redhat.com>
16786
16787 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16788 Move tst-thread-exit-clobber ...
16789 [$(CXX)] (tests-unsupported): ... to here.
16790
16791 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16792
16793 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16794 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16795 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16796 (_dl_aarch64_cap_flags): Update.
16797 (_DL_HWCAP_COUNT): Update.
16798
16799 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16800
16801 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16802 (_DL_HWCAP_LAST): Remove.
16803 (_DL_HWCAP_COUNT): Move to ...
16804 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16805 (_DL_HWCAP_COUNT): ... here.
16806
16807 2018-01-16 Florian Weimer <fweimer@redhat.com>
16808
16809 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16810 mode with GNU extensions.
16811
16812 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16813
16814 * elf/elf.h (NT_ARM_SVE): Define.
16815
16816 2018-01-15 Florian Weimer <fweimer@redhat.com>
16817
16818 [BZ #22636]
16819 * nptl/tst-minstack-throw.cc: New file.
16820 * nptl/Makefile (tests): Add tst-minstack-throw.
16821 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16822 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16823
16824 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16825
16826 * scripts/build-many-glibcs.py (Context.checkout): Default
16827 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16828 version to 1.1.0.
16829
16830 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16831
16832 [BZ #22707]
16833 * elf/elf.h (DF_1_STUB): Define.
16834 (DF_1_PIE): Define.
16835
16836 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16837
16838 [BZ #22697]
16839 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16840 Do not add 0.5 to integer or out-of-range arguments.
16841
16842 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16843
16844 * po/bg.po: Update translations.
16845 * po/cs.po: Likewise.
16846 * po/de.po: Likewise.
16847 * po/ko.po: Likewise.
16848 * po/pl.po: Likewise.
16849 * po/sv.po: Likewise.
16850 * po/uk.po: Likewise.
16851 * po/vi.po: Likewise.
16852
16853 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16854
16855 * aarch64/start.S (_start): Use __wrap_main.
16856 (__wrap_main): New local symbol.
16857
16858 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16859
16860 [BZ #22679]
16861 CVE-2018-1000001
16862 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16863 generic_getcwd if the path returned by getcwd syscall is not absolute.
16864 * io/tst-getcwd-abspath.c: New test.
16865 * io/Makefile (tests): Add tst-getcwd-abspath.
16866
16867 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16868
16869 * malloc/malloc.c (malloc_consolidate): Add size check.
16870
16871 2018-01-12 Florian Weimer <fweimer@redhat.com>
16872
16873 * support/write_message.c (write_message): Preserve errno.
16874 * support/check.c (print_failure): Likewise.
16875 * support/support_test_verify_impl.c (support_test_verify_impl):
16876 Likewise.
16877 * support/support_test_compare_failure.c
16878 (support_test_compare_failure): Likewise.
16879
16880 2018-01-12 Florian Weimer <fweimer@redhat.com>
16881
16882 [BZ #22701]
16883 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16884 Prevent installation of libnsl.so.
16885 (libnsl-inhibit-o): Do not build (or install) static libraries.
16886
16887 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16888
16889 [BZ #22657]
16890 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16891 before the day number which may produce a double space.
16892 (date_fmt): Likewise.
16893
16894 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16895
16896 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16897 instead of fegetenv.
16898
16899 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16900
16901 [BZ #22702]
16902 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16903 comment to say exceptions are discarded.
16904 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16905 __fegetenv.
16906 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16907 be enabled.
16908
16909 2018-01-11 Florian Weimer <fweimer@redhat.com>
16910
16911 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16912 and error message.
16913
16914 2018-01-11 Florian Weimer <fweimer@redhat.com>
16915
16916 [BZ #22636]
16917 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16918 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16919
16920 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16921
16922 [BZ #22693]
16923 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16924 negative arguments in test for NaN or infinity argument.
16925
16926 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16927
16928 * po/libc.pot: Regenerate.
16929
16930 2018-01-10 Florian Weimer <fweimer@redhat.com>
16931
16932 [BZ #22636]
16933 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16934 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16935
16936 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16937
16938 * hurd/hurd/fd.h: Include <fcntl.h>
16939 (__hurd_at_flags): New function.
16940 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16941 with call to __hurd_at_flags.
16942 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16943 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16944 __faccessat
16945 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16946 (__access_noerrno): Use __faccessat_common instead of access_common.
16947 (__access): Likewise.
16948 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16949 with a call to __faccessat.
16950 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16951 (__faccessat_common): ... this. Move implementation of __access into it when
16952 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16953 reauthenticate_cwdir_at helper to implement AT mechanism.
16954 (__faccessat_noerrno): New function, just calls __faccessat_common.
16955 (__faccessat): New function, just calls __faccessat_common.
16956 (faccessat): Define weak alias.
16957
16958 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16959
16960 [BZ #22691]
16961 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16962 (CFLAGS-s_fmaxmagl.c): New variable.
16963 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16964
16965 [BZ #22690]
16966 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16967 long int for arguments of possibly overflowing addition or
16968 subtraction.
16969 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16970
16971 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16972
16973 [BZ #22688]
16974 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16975 (CFLAGS-e_remainderl.c): New variable.
16976
16977 [BZ #22687]
16978 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16979 variable.
16980 (CFLAGS-s_cacoshl.c): Likewise.
16981 (CFLAGS-s_casinhl.c): Likewise.
16982 (CFLAGS-s_catanl.c): Likewise.
16983 (CFLAGS-s_catanhl.c): Likewise.
16984 (CFLAGS-s_cexpl.c): Likewise.
16985 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16986 (CFLAGS-s_csinhl.c): Likewise.
16987 (CFLAGS-s_clogl.c): Likewise.
16988 (CFLAGS-s_clog10l.c): Likewise.
16989 (CFLAGS-s_csinl.c): Likewise.
16990 (CFLAGS-s_csqrtl.c): Likewise.
16991
16992 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16993 2017-01-09 Svante Signell <svante.signell@gmail.com>
16994
16995 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16996 (_hurd_exec_paths): New function.
16997 * hurd/hurd.h (_hurd_exec): Deprecate function.
16998 (_hurd_exec_paths): Declare function.
16999 * hurd/Versions: Export _hurd_exec_paths.
17000 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17001 (__execve): Use __getcwd to build absolute path, and use
17002 _hurd_exec_paths instead of _hurd_exec.
17003 * sysdeps/mach/hurd/spawni.c: Likewise.
17004 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17005 _hurd_exec.
17006
17007 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17008
17009 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17010 test instead of failing in case of ENOENT returned by posix_openpt.
17011
17012 2018-01-08 Florian Weimer <fweimer@redhat.com>
17013
17014 resolv: Support binary labels in test framework.
17015 * support/resolv_test.c (struct to_be_freed): Remove.
17016 (struct compressed_name): New.
17017 (allocate_compressed_name, ascii_tolower)
17018 (compare_compressed_name): New functions.
17019 (struct resolv_response_builder): Update type of
17020 compression_offsets for use with tsearch. Rempve to_be_freed.
17021 (response_push_pointer_to_free): Remove function.
17022 (resolv_response_add_name): Rewrite using struct compressed_name
17023 and tsearch instead of hsearch_r.
17024 (response_builder_allocate): Remove initialization of
17025 compression_offsets.
17026 (response_builder_free): Update for removal of to_be_freed. Use
17027 tdestroy instead of hdestroy_r.
17028 * resolv/Makefile (tests): Add tst-resolv-binary.
17029 (tst-resolv-binary): Link with -lresolv -lpthread.
17030
17031 2018-01-08 Florian Weimer <fweimer@redhat.com>
17032
17033 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17034 time. Pass positive flag instead of negative flag to
17035 support_test_compare_failure.
17036 (support_test_compare_failure): Change negative parameter to
17037 positive.
17038 * support/support_test_compare_failure.c (report)
17039 (support_test_compare_failure): Likewise.
17040 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17041 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17042
17043 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17044
17045 [BZ #22637]
17046 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17047 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17048 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17049 stacksize.
17050 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17051
17052 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17053
17054 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17055 Add s_sincosf-sse2 and s_sincosf-fma.
17056 (CFLAGS-s_sincosf-fma.c): New.
17057 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17058 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17059 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17060 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17061 __sincosf is defined.
17062
17063 2018-01-08 Florian Weimer <fweimer@redhat.com>
17064
17065 * nptl/tst-thread-exit-clobber.cc: New file.
17066 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17067 C++11 mode.
17068 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17069 (tests): Add tst-thread-exit-clobber.
17070 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17071
17072 2018-01-08 Florian Weimer <fweimer@redhat.com>
17073
17074 * support/check.h (support_static_assert): Define.
17075 (TEST_COMPARE): Use it.
17076
17077 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17078
17079 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17080 [!__RLIM_T_MATCHES_RLIM64_T]
17081 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17082 __getrlimit64. Add libc_hidden_weak.
17083
17084 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17085
17086 * elf/elf.h (R_RISCV_NONE): New define.
17087 (R_RISCV_32): Likewise.
17088 (R_RISCV_64): Likewise.
17089 (R_RISCV_RELATIVE): Likewise.
17090 (R_RISCV_COPY): Likewise.
17091 (R_RISCV_JUMP_SLOT): Likewise.
17092 (R_RISCV_TLS_DTPMOD32): Likewise.
17093 (R_RISCV_TLS_DTPMOD64): Likewise.
17094 (R_RISCV_TLS_DTPREL32): Likewise.
17095 (R_RISCV_TLS_DTPREL64): Likewise.
17096 (R_RISCV_TLS_TPREL32): Likewise.
17097 (R_RISCV_TLS_TPREL64): Likewise.
17098 * Makerules (make-link-multidir): Make directories before linking into
17099 them.
17100 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17101 define.
17102 (VDSO_HASH_LINUX_4_15): Likewise.
17103 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17104 in subdirectories of lib.
17105 * nptl/Makefile (/librt.so): Always depend on
17106 "$(shared-thread-library)".
17107
17108 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17109
17110 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17111 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17112 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17113 (___tls_get_addr).
17114 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17115 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17116 "-O2 -march=i686".
17117 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17118 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17119 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17120 * sysdeps/gnu/glob-lstat-compat.c: New file.
17121 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17122 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17123
17124 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17125
17126 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17127 Reserve 16 chars to reloc_addr before calling _itoa_word.
17128
17129 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17130
17131 [BZ #22678]
17132 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17133 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17134
17135 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17136 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17137
17138 * resource/tst-getrlimit.c: Add copyright header.
17139
17140 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17141 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17142
17143 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17144 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17145 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17146 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17147 instead.
17148 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17149 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17150 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17151 RLIM64_INFINITY): Fix values to match the kernel ones.
17152 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17153 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17154 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17155 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17156 getrlimit64@@GLIBC_2_27.
17157 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17158 and setrlimit64.
17159 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17160 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17161 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17162 setrlimit, getrlimit64 and setrlimit64.
17163
17164 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17165
17166 [BZ #22648]
17167 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17168 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17169
17170 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17171
17172 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17173 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17174 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17175
17176 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17177
17178 [BZ #15479]
17179 [BZ #22666]
17180 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17181 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17182
17183 [BZ #15479]
17184 [BZ #22665]
17185 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17186 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17187 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17188 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17189
17190 2018-01-04 Florian Weimer <fweimer@redhat.com>
17191
17192 [BZ #22667]
17193 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17194 Align the stack before calling exit.
17195 * stdlib/tst-makecontext-align.c: New file.
17196 * stdlib/Makefile (tests): Add tst-makecontext-align.
17197
17198 2018-01-04 Florian Weimer <fweimer@redhat.com>
17199
17200 Add support for calling dlvsym from libc.so.
17201 * include/dlfcn.h (__libc_dlvsym): Declare.
17202 * elf/Makefile (tests-static-internal): Add
17203 tst-libc_dlvsym-static.
17204 (tests-internal): Add tst-libc_dlvsym.
17205 (modules-names): Add tst-libc_dlvsym-dso.
17206 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17207 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17208 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17209 object tst-libc_dlvsym-dso.so needs to be built before running
17210 these tests.
17211 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17212 * elf/Versions: Export __libc_dlvsym.
17213 * elf/dl-libc.c (struct do_dlvsym_args): New.
17214 (do_dlvsym, __libc_dlvsym): New functions.
17215 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17216 (_dl_open_hook2): New variable.
17217 (__libc_register_dl_open_hook): Set it.
17218 * elf/tst-libc_dlvsym-dso.c: New file.
17219 * elf/tst-libc_dlvsym-static.c: Likewise.
17220 * elf/tst-libc_dlvsym.c: Likewise.
17221 * elf/tst-libc_dlvsym.h: Likewise.
17222
17223 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17224
17225 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17226 include <sys/mount.h>.
17227
17228 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17229
17230 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17231 Add __NO_MATH_ERRNO__ check.
17232
17233 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17234
17235 * sysdeps/mips/mips32/libm-test-ulps: Update.
17236 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17237
17238 2018-01-02 Florian Weimer <fweimer@redhat.com>
17239
17240 * misc/tst-pselect.c: Add copyright header.
17241
17242 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17243
17244 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17245 comment.
17246 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17247 comment.
17248 (settrlimit): Rename into setrlimit.
17249 (__sttrlimit): Rename into __setrlimit.
17250
17251 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17252 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17253 never defined in that case.
17254
17255 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17256
17257 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17258
17259 * sysdeps/arm/libm-test-ulps: Update.
17260
17261 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17262 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17263
17264 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17265
17266 * NEWS: Add cosf and sincosf to list of optimized functions.
17267
17268 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17269
17270 [BZ #22660]
17271 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17272 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17273 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17274 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17275
17276 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17277
17278 [BZ #22433]
17279 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17280
17281 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17282 making a copy of it.
17283
17284 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17285
17286 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17287 trailing whitespace removed.
17288 * scripts/config.guess: Update to version 2018-01-01.
17289 * scripts/config.sub: Update to version 2018-01-01.
17290 * scripts/move-if-change: Update from gnulib.
17291
17292 * NEWS: Update copyright dates.
17293 * catgets/gencat.c (print_version): Likewise.
17294 * csu/version.c (banner): Likewise.
17295 * debug/catchsegv.sh: Likewise.
17296 * debug/pcprofiledump.c (print_version): Likewise.
17297 * debug/xtrace.sh (do_version): Likewise.
17298 * elf/ldconfig.c (print_version): Likewise.
17299 * elf/ldd.bash.in: Likewise.
17300 * elf/pldd.c (print_version): Likewise.
17301 * elf/sotruss.sh: Likewise.
17302 * elf/sprof.c (print_version): Likewise.
17303 * iconv/iconv_prog.c (print_version): Likewise.
17304 * iconv/iconvconfig.c (print_version): Likewise.
17305 * locale/programs/locale.c (print_version): Likewise.
17306 * locale/programs/localedef.c (print_version): Likewise.
17307 * login/programs/pt_chown.c (print_version): Likewise.
17308 * malloc/memusage.sh (do_version): Likewise.
17309 * malloc/memusagestat.c (print_version): Likewise.
17310 * malloc/mtrace.pl: Likewise.
17311 * manual/libc.texinfo: Likewise.
17312 * nptl/version.c (banner): Likewise.
17313 * nscd/nscd.c (print_version): Likewise.
17314 * nss/getent.c (print_version): Likewise.
17315 * nss/makedb.c (print_version): Likewise.
17316 * posix/getconf.c (main): Likewise.
17317 * scripts/test-installation.pl: Likewise.
17318 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17319
17320 * All files with FSF copyright notices: Update copyright dates
17321 using scripts/update-copyrights.
17322 * locale/programs/charmap-kw.h: Regenerated.
17323 * locale/programs/locfile-kw.h: Likewise.
17324
17325 2017-12-31 Zack Weinberg <zackw@panix.com>
17326
17327 * libio/bits/libio-ldbl.h: Correct check for improper
17328 inclusion. Add own multiple include guard.
17329
17330 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17331 Dmitry V. Levin <ldv@altlinux.org>
17332
17333 [BZ #22625]
17334 CVE-2017-16997
17335 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17336 string token expansion. Check for NULL pointer or empty string possibly
17337 returned by expand_dynamic_string_token.
17338 (decompose_rpath): Check for empty path after dynamic string
17339 token expansion.
17340
17341 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17342
17343 [BZ #22433]
17344 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17345
17346 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17347 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17348 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17349 and PTRACE_SYSCALL.
17350 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17351 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17352 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17353 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17354 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17355 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17356
17357 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17358 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17359 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17360 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17361 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17362 bits/ptrace-shared.h.
17363 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17364 <bits/ptrace-shared.h>.
17365 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17366 __ptrace_peeksiginfo_flags, ptrace): Remove.
17367 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17368 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17369 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17370 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17371 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17372
17373 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17374
17375 [BZ #17804]
17376 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17377 end of the loop. Improve comments.
17378
17379 2017-12-29 Zack Weinberg <zackw@panix.com>
17380
17381 [BZ #22615]
17382 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17383 might be set on success.
17384
17385 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17386
17387 [BZ #22611]
17388 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17389 is unchanged on success.
17390
17391 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17392
17393 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17394 updated.
17395 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17396 expand_dynamic_string_token): Likewise.
17397 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17398 is_path argument.
17399
17400 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17401 contains ':'.
17402
17403 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17404 is set and name contains ':', and all code depending on these checks.
17405
17406 2017-12-24 Zack Weinberg <zackw@panix.com>
17407
17408 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17409 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17410 respectively.
17411 * libio/libio.h: Rename the original version of this file to
17412 libio/bits/libio.h. Error out if not included by stdio.h or the
17413 stub libio.h.
17414 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17415 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17416 if not included by bits/libio.h or the stub _G_config.h.
17417 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17418 sysdeps/unix/sysv/linux/bits. Error out if not included by
17419 bits/libio.h or the stub _G_config.h.
17420 * libio/stdio.h: Include bits/libio.h, not libio.h.
17421 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17422 well as libio.h and _G_config.h.
17423
17424 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17425 * libio/strfile.h, stdio-common/vfscanf.c
17426 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17427 Include stdio.h, not _G_config.h nor libio.h.
17428 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17429 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17430
17431 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17432
17433 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17434
17435 [BZ #22347]
17436 * stdlib/getrandom.c (getrandom): Fix comment.
17437 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17438
17439 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17440
17441 [BZ #21161]
17442 * manual/arith.texi (strtoul): Fix a typo.
17443
17444 [BZ #22596]
17445 * manual/arith.texi (finite): Fix the description of the return
17446 value.
17447
17448 2017-12-22 Eric Blake <ebb9@byu.net>
17449
17450 Avoid gcc warnings on cygwin
17451 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17452 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17453 Avoid unused variable.
17454
17455 2017-12-22 Florian Weimer <fweimer@redhat.com>
17456
17457 * io/Makefile (routines): Add copy_file_range.
17458 (tests): Add tst-copy_file_range.
17459 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17460 * io/Versions (GLIBC_2.27): Export copy_file_range.
17461 * io/copy_file_range-compat.c: New file.
17462 * io/copy_file_range.c: Likewise.
17463 * io/tst-copy_file_range-compat.c: Likewise.
17464 * io/tst-copy_file_range.c: Likewise.
17465 * manual/llio.texi (Copying File Data): New section.
17466 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17467 * support/Makefile (libsupport-routines): Add support-xfstat,
17468 xftruncate, xlseek.
17469 * support/support-xfstat.c: New file.
17470 * support/xftruncate.c: Likewise.
17471 * support/xlseek.c: Likewise.
17472 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17473 * sysdeps/unix/sysv/linux/**.abilist: Update.
17474 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17475
17476 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17477
17478 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17479 disable-multi-arch variant to aarch64-linux-gnu.
17480
17481 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17482
17483 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17484 trailing whitespace removed.
17485 * scripts/config.guess: Update to version 2017-12-17.
17486 * scripts/config.sub: Update to version 2017-11-23.
17487 * scripts/install-sh: Update to version 2017-09-23.17.
17488 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17489
17490 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17491
17492 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17493 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17494 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17495 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17496 * sysdeps/tile/crtn.S: Likewise.
17497 * sysdeps/tile/dl-start.S (_start): Likewise.
17498 * sysdeps/tile/dl-trampoline.S: Likewise.
17499 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17500 * sysdeps/tile/start.S (_start): Likewise.
17501 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17502 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17503 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17504 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17505 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17506 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17507 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17508
17509 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17510 comment.
17511 * sysdeps/tile/preconfigure: Remove tilegx folder.
17512 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17513 * sysdeps/tile/Implies: ... here.
17514 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17515 * sysdeps/tile/Makefile: ... here.
17516 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17517 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17518 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17519 * sysdeps/tile/bits/wordsize.h: ... here.
17520 * sysdeps/tile/tilegx/*: Move to ...
17521 * sysdeps/tile/*: ... here.
17522 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17523 * sysdeps/tile/tilegx32/Implies: ... here.
17524 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17525 * sysdeps/tile/tilegx64/Implies: ... here.
17526 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17527 to ...
17528 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17529 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17530 * sysdeps/unix/sysv/linux/tile/*: ... here.
17531 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17532 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17533 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17534 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17535
17536 * README: Remove tilepro-*-linux-gnu from supported architecture.
17537 * scripts/build-many-glibcs.py: Likewise.
17538 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17539 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17540 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17541 elf_machine_matches_host, elf_machine_dynamic,
17542 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17543 howto, elf_machine_rela): Likewise.
17544 * sysdeps/tile/dl-start.S (_start): Likewise.
17545 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17546 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17547 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17548 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17549 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17550 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17551 Likewise.
17552 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17553 * sysdeps/tile/preconfigure: Likewise.
17554 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17555 POINTER_CHK_GUARD): Likewise.
17556 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17557 * sysdeps/tile/start.S (_start): Likewise.
17558 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17559 Likewise.
17560 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17561 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17562 CMOVNEZ): Remove.
17563 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17564 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17565 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17566 Likewise.
17567 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17568 * sysdeps/tile/tilepro/Implies: Remove file.
17569 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17570 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17571 * sysdeps/tile/tilepro/memchr.c: Likewise.
17572 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17573 * sysdeps/tile/tilepro/memset.c: Likewise.
17574 * sysdeps/tile/tilepro/memusage.h: Likewise.
17575 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17576 * sysdeps/tile/tilepro/strchr.c: Likewise.
17577 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17578 * sysdeps/tile/tilepro/strlen.c: Likewise.
17579 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17580 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17581 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17582 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17583 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17584 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17585 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17586 Likewise.
17587 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17588 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17589 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17590 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17591 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17592 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17593 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17594 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17595 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17596 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17597 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17598 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17599 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17600 tilepro mention in comment.
17601
17602 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17603 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17604 * nptl/pthread_join_common.c: New file: common function used on
17605 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17606 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17607 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17608 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17609 (cleanup): Move definition to pthread_join_common.c.
17610 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17611 Remove superflous checks.
17612 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17613 Likewise.
17614
17615 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17616
17617 * sysdeps/aarch64/libm-test-ulps: Update.
17618
17619 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17620
17621 * sysdeps/aarch64/memset.S (MEMSET): Define.
17622
17623 2017-12-20 Florian Weimer <fweimer@redhat.com>
17624
17625 [BZ #22635]
17626 nptl: Provide full implementation of pthread_self in libc.so.
17627 * nptl/Makefile (routines): Add pthread_self.
17628 (libpthread-routines): Replace pthread_self with
17629 compat-pthread_self.
17630 * nptl/forward.c (pthread_self): Remove.
17631 * nptl/nptl-init.c (pthread_functions): Do not initialize
17632 ptr_pthread_self.
17633 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17634 * nptl/compat-pthread_self.c: New file.
17635 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17636 Remove ptr_pthread_self.
17637
17638 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17639
17640 * posix/regcomp.c: Fix spelling in comments.
17641 * posix/regex.h: Likewise.
17642 * posix/regex_internal.c: Likewise.
17643 * posix/regexec.c: Likewise.
17644
17645 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17646
17647 [BZ #22377]
17648 * math/Makefile [C++] (tests): Add test for iseqsig.
17649 * math/math.h [C++] (iseqsig): New implementation, which does
17650 not rely on __MATH_TG/__builtin_types_compatible_p.
17651 * math/test-math-iseqsig.cc: New file.
17652 * sysdeps/powerpc/powerpc64le/Makefile
17653 (CFLAGS-test-math-iseqsig.cc): New variable.
17654
17655 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17656
17657 * elf/dl-load.c (is_trusted_path): Remove.
17658 (fillin_rpath): Remove check_trusted argument and its use,
17659 all callers changed.
17660
17661 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17662
17663 [BZ #22630]
17664 * Makeconfig (link-pie-before-libc): Replace -pie with
17665 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17666 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17667 (tst-dlopen-aout-no-pie): New.
17668 (LDFLAGS-tst-prelink): Removed.
17669 (tst-prelink-no-pie): New.
17670 (LDFLAGS-tst-main1): Removed.
17671 (tst-main1-no-pie): New.
17672 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17673 (tst-gmon-no-pie): New.
17674
17675 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17676
17677 * manual/install.texi: Document that --enable-static-pie
17678 implies PIE.
17679 * INSTALL: Regenerated.
17680
17681 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17682
17683 [BZ #21309]
17684 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17685 unsigned.
17686
17687 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17688
17689 Revert:
17690
17691 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17692
17693 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17694
17695 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17696
17697 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17698 <errno.h>. Include "eexp.tbl".
17699 (half): New constant.
17700 (one): Likewise.
17701 (__ieee754_exp): Rewrite.
17702 (__slowexp): Remove prototype.
17703 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17704 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17705 * sysdeps/i386/fpu/slowexp.c: Likewise.
17706 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17707 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17708 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17709 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17710 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17711 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17712 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17713 comment.
17714 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17715 (CPPFLAGS-slowexp.c): Remove variable.
17716 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17717 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17718 (CFLAGS-slowexp-fma.c): Remove variable.
17719 (CFLAGS-slowexp-fma4.c): Likewise.
17720 (CFLAGS-slowexp-avx.c): Likewise.
17721 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17722 define as macro.
17723 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17724 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17725 * math/Makefile (type-double-routines): Remove slowexp.
17726 * manual/probes.texi (slowexp_p6): Remove.
17727 (slowexp_p32): Likewise.
17728
17729 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17730
17731 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17732 arithmetic.
17733
17734 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17735
17736 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17737
17738 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17739
17740 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17741
17742 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17743 <errno.h>. Include "eexp.tbl".
17744 (half): New constant.
17745 (one): Likewise.
17746 (__ieee754_exp): Rewrite.
17747 (__slowexp): Remove prototype.
17748 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17749 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17750 * sysdeps/i386/fpu/slowexp.c: Likewise.
17751 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17752 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17753 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17754 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17755 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17756 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17757 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17758 comment.
17759 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17760 (CPPFLAGS-slowexp.c): Remove variable.
17761 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17762 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17763 (CFLAGS-slowexp-fma.c): Remove variable.
17764 (CFLAGS-slowexp-fma4.c): Likewise.
17765 (CFLAGS-slowexp-avx.c): Likewise.
17766 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17767 define as macro.
17768 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17769 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17770 * math/Makefile (type-double-routines): Remove slowexp.
17771 * manual/probes.texi (slowexp_p6): Remove.
17772 (slowexp_p32): Likewise.
17773
17774 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17775 James Clarke <jrtc27@jrtc27.com>
17776
17777 [BZ #22603]
17778 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17779 addition.
17780
17781 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17782
17783 [BZ #22605]
17784 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17785 code.
17786
17787 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17788
17789 [BZ #22563]
17790 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17791 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17792 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17793 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17794 to feature_1.
17795
17796 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17797
17798 [BZ #22563]
17799 * bits/types/__cancel_jmp_buf_tag.h: New file.
17800 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17801 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17802 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17803 * nptl/Makefile (headers): Add
17804 bits/types/__cancel_jmp_buf_tag.h.
17805 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17806 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17807 * sysdeps/nptl/pthread.h: Include
17808 <bits/types/__cancel_jmp_buf_tag.h>.
17809 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17810 __cancel_jmp_buf.
17811 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17812
17813 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17814
17815 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17816 --enable-static-pie variants to x86_64, x32 and i686.
17817
17818 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17819
17820 [BZ #22631]
17821 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17822 argument for attrubutes. All callers changed.
17823 (__inline_mathop1): Likewise. All callers changed.
17824 (__inline_mathop): Likewise. All callers changed.
17825 [__USE_MISC] (scalbn): Use __inline_forward instead of
17826 __inline_forward_c.
17827 [__USE_ISOC99] (scalbln): Likewise.
17828 [__USE_ISOC99] (nearbyint): Likewise.
17829 [__USE_ISOC99] (lrint): Likewise.
17830 [__USE_MISC] (scalbnf): Likewise.
17831 [__USE_ISOC99] (scalblnf): Likewise.
17832 [__USE_ISOC99] (nearbyintf): Likewise.
17833 [__USE_ISOC99] (lrintf): Likewise.
17834 [__USE_MISC] (scalbnl): Likewise.
17835 [__USE_ISOC99] (scalblnl): Likewise.
17836 [__USE_ISOC99] (nearbyintl): Likewise.
17837 [__USE_ISOC99] (lrintl): Likewise.
17838 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17839 __inline_mathop and __m81_defun changed.
17840
17841 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17842 CPU or FPU for ARM hard-float configurations.
17843
17844 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17845
17846 * nptl/tst-attr3.c: Include <libc-diag.h>.
17847 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17848
17849 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17850
17851 * string/tester.c (test_strncat): Also disable -Warray-bounds
17852 warnings for two tests.
17853
17854 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17855
17856 [BZ #22614]
17857 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17858 $(cc-pie-default) == yes.
17859 * config.make.in (cc-pie-default): New.
17860 * configure.ac (libc_cv_pie_default): Renamed to ...
17861 (libc_cv_cc_pie_default): This.
17862 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17863 * configure: Regenerated.
17864
17865 2017-12-18 Florian Weimer <fweimer@redhat.com>
17866
17867 [BZ #20204]
17868 ld.so: Harden dl-libc/libdl hooks.
17869 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17870 (rtld_active): New function.
17871 * dlfcn/dladdr.c (__dladdr): Call it.
17872 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17873 * dlfcn/dlclose.c (__dlcose): Likewise.
17874 * dlfcn/dlerror.c (__dlerror): Likewise.
17875 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17876 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17877 * dlfcn/dlopen.c (__dlopen): Likewise.
17878 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17879 * dlfcn/dlsym.c (__dlsym): Likewise.
17880 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17881 * libio/vtables.c (_IO_vtable_check): Likewise.
17882 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17883 (__libc_dlclose): Likewise.
17884 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17885 assignment.
17886
17887 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17888
17889 [BZ #22446]
17890 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17891 buffers for readlink input and output.
17892
17893 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17894
17895 [BZ #22624]
17896 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17897 inhibit_stack_protector.
17898
17899 [BZ #22624]
17900 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17901 inhibit_stack_protector.
17902
17903 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17904
17905 [BZ #22627]
17906 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17907 code and invocation.
17908
17909 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17910
17911 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17912
17913 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17914
17915 [BZ #22505]
17916 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17917
17918 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17919
17920 * sysdeps/s390/fpu/libm-test-ulps: Update.
17921
17922 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17923
17924 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17925
17926 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17927
17928 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17929 constants to s_sincosf.h file.
17930 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17931 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17932 implementation.
17933 * sysdeps/ieee754/flt-32/s_sincosf.h:
17934 New file.
17935
17936 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17937
17938 [BZ #14681]
17939 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17940 before mtrace.
17941
17942 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17943
17944 [BZ #19574]
17945 * INSTALL: Regenerated.
17946 * Makeconfig (real-static-start-installed-name): New.
17947 (pic-default): Updated for --enable-static-pie.
17948 (pie-default): New for --enable-static-pie.
17949 (default-pie-ldflag): Likewise.
17950 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17951 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17952 Replace $(static-start-installed-name) with
17953 $(real-static-start-installed-name).
17954 (+prectorT): Updated for --enable-static-pie.
17955 (+postctorT): Likewise.
17956 (CFLAGS-.o): Add $(pie-default).
17957 (CFLAGS-.op): Likewise.
17958 * NEWS: Mention --enable-static-pie.
17959 * config.h.in (ENABLE_STATIC_PIE): New.
17960 * configure.ac (--enable-static-pie): New configure option.
17961 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17962 (have-static-pie): Likewise.
17963 Enable static PIE if linker supports --no-dynamic-linker.
17964 (ENABLE_STATIC_PIE): New AC_DEFINE.
17965 (enable-static-pie): New LIBC_CONFIG_VAR.
17966 * configure: Regenerated.
17967 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17968 gr$(start-installed-name) for --enable-static-pie.
17969 (extra-objs): Likewise.
17970 (install-lib): Likewise.
17971 (extra-objs): Add static-reloc.o and static-reloc.os
17972 ($(objpfx)$(start-installed-name)): Also depend on
17973 $(objpfx)static-reloc.o.
17974 ($(objpfx)r$(start-installed-name)): New.
17975 ($(objpfx)g$(start-installed-name)): Also depend on
17976 $(objpfx)static-reloc.os.
17977 ($(objpfx)gr$(start-installed-name)): New.
17978 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17979 in libc.a.
17980 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17981 initimage.
17982 * csu/static-reloc.c: New file.
17983 * elf/Makefile (routines): Add dl-reloc-static-pie.
17984 (elide-routines.os): Likewise.
17985 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17986 (tst-tls1-static-non-pie-no-pie): New.
17987 * elf/dl-reloc-static-pie.c: New file.
17988 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17989 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17990 STATIC_PIE_BOOTSTRAP.
17991 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17992 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17993 (tests-static): Likewise.
17994 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17995 (tst-gmon-static-no-pie): New.
17996 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17997 (CRT-tst-gmon-static-pie): Likewise.
17998 (tst-gmon-static-pie-ENV): Likewise.
17999 (tests-special): Likewise.
18000 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18001 (clean-tst-gmon-static-pie-data): Likewise.
18002 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18003 * gmon/tst-gmon-static-pie.c: New file.
18004 * manual/install.texi: Document --enable-static-pie.
18005 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18006 (_dl_get_dl_main_map): Likewise.
18007 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18008 * sysdeps/x86_64/configure.ac: Likewise.
18009 * sysdeps/i386/configure: Regenerated.
18010 * sysdeps/x86_64/configure: Likewise.
18011 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18012 (ASFLAGS-.op): Likewise.
18013
18014 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18015
18016 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18017 * posix/tst-mmap-offset.c (fname): Use /tmp.
18018 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18019
18020 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18021
18022 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18023
18024 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18025
18026 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18027 errno.
18028
18029 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18030
18031 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18032 --with-float=hard for arm-linux-gnueabihf configurations.
18033
18034 [BZ #14121]
18035 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18036 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18037 ($(mo-installed)): Use $(objpfx)%.mo.
18038 (realclean): Remove rule.
18039
18040 * po/Makefile (linguas): Remove rule and dependencies.
18041 (linguas.mo): Likewise.
18042 (.PHONY): Do not depend on linguas and linguas.mo.
18043 (podir): Remove variable.
18044 (pofiles): Likewise.
18045 [$(pofiles)] (%.po): Remove rule.
18046
18047 * sysdeps/sparc/sparc32/Makefile
18048 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18049 start-of-line whitespace in argument of echo.
18050 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18051 with whitespace. Generate __wrap_.udiv alias.
18052 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18053 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18054 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18055 * sysdeps/sparc/sparc32/urem.S: Likewise.
18056
18057 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18058
18059 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18060 for aligned inputs.
18061
18062 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18063
18064 * benchtests/bench-strcmp.c: Print output in JSON format.
18065
18066 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18067
18068 2017-12-14 Florian Weimer <fweimer@redhat.com>
18069
18070 [BZ #22607]
18071 CVE-2017-1000409
18072 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18073 the expanded path string.
18074
18075 2017-12-14 Florian Weimer <fweimer@redhat.com>
18076
18077 [BZ #22606]
18078 CVE-2017-1000408
18079 * elf/dl-load.c (system_dirs): Update comment.
18080 (nsystem_dirs_len): Use array_length.
18081 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18082
18083 2017-12-14 Florian Weimer <fweimer@redhat.com>
18084
18085 Simplify compiling most of support/ outside of glibc.
18086 * support/check_addrinfo.c: Include <string.h>.
18087 * support/check_dns_packet.c: Likewise.
18088 * support/check_hostent.c: Likewise.
18089 * support/support_can_chroot.c: Include <support/xunistd.h>.
18090 * support/support_format_addrinfo.c: Include <stdlib.h>
18091 * support/support_format_dns_packet.c: Include <stdbool.h>.
18092 * support/support_format_hostent.c: Include <stdlib.h>.
18093 * support/support_format_netent.c: Likewise.
18094 * support/support_write_string.c: Include <support/xunistd.h>.
18095 * support/xdlfcn.c: Include <stddef.h>.
18096
18097 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18098
18099 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18100
18101 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18102 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18103
18104 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18105 (sysdeps_routines): Add memset-niagara7.
18106 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18107 Likewise.
18108 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18109 file.
18110 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18111 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18112 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18113 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18114 Add niagara7 option.
18115 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18116 memset.
18117
18118 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18119 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18120 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18121 Likewise.
18122 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18123 New file.
18124 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18125 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18126 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18127 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18128 and __memmove_niagara7.
18129 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18130 Add niagara7 option.
18131 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18132 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18133 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18134 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18135 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18136
18137 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18138
18139 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18140 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18141 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18142 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18143
18144 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18145 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18146 _dl_sparc_cap_flags array.
18147 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18148
18149 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18150
18151 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18152 time whenever possible.
18153
18154 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18155
18156 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18157 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18158
18159 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18160
18161 * soft-fp/fmadf4.c: Move to ....
18162 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18163 * soft-fp/fmasf4.c: Move to ....
18164 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18165 * soft-fp/fmatf4.c: Move to ....
18166 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18167 * sysdeps/ieee754/soft-fp/Makefile: New file.
18168 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18169 * sysdeps/arm/preconfigure: Regenerated.
18170 * sysdeps/arm/nofpu/Implies: New file.
18171 * sysdeps/arm/s_fma.c: Remove file.
18172 * sysdeps/arm/s_fmaf.c: Likewise.
18173 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18174 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18175 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18176 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18177 * sysdeps/microblaze/s_fma.c: Remove file.
18178 * sysdeps/microblaze/s_fmaf.c: Likewise.
18179 * sysdeps/mips/mips32/nofpu/Implies: New file.
18180 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18181 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18182 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18183 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18184 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18185 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18186 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18187 implementation.
18188 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18189 * sysdeps/nios2/s_fma.c: Remove file.
18190 * sysdeps/nios2/s_fmaf.c: Likewise.
18191 * sysdeps/sh/nofpu/Implies: New file.
18192 * sysdeps/sh/s_fma.c: Remove file.
18193 * sysdeps/sh/s_fmaf.c: Likewise.
18194 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18195 * sysdeps/tile/s_fma.c: Remove file.
18196 * sysdeps/tile/s_fmaf.c: Likewise.
18197
18198 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18199
18200 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18201 Add s_cosf-sse2 and s_cosf-fma.
18202 (CFLAGS-s_cosf-fma.c): New.
18203 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18204 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18205 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18206
18207 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18208
18209 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18210
18211 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18212
18213 * libio/Makefile (tests): Add tst-bz22415.
18214 (tst-bz22415-ENV): New rule.
18215 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18216 (tests-special): Add tst-bz22415-mem.out.
18217 ($(objpfx)tst-bz22415-mem.out): New rule.
18218 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18219 in case of a successful seek operation.
18220 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18221 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18222 buffer is required.
18223 * libio/tst-bz22415.c: New test.
18224
18225 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18226
18227 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18228
18229 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18230 __IPC_64 to 0 to avoid IPC_64 being set.
18231
18232 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18233
18234 [BZ #22593]
18235 * math/bits/mathcalls.h (nextafter): Remove const.
18236 (nexttoward): Likewise.
18237
18238 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18239
18240 * configure.ac (--with-fp): Remove configure option.
18241 (with_fp_cond): New variable.
18242 (libc_cv_with_fp): New configure test. Use this variable instead
18243 of with_fp.
18244 * configure: Regenerated.
18245 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18246 * manual/install.texi (Configuring and compiling): Remove
18247 --without-fp.
18248 * INSTALL: Regenerated.
18249 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18250 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18251 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18252 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18253 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18254 use --without-fp to configure glibc.
18255
18256 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18257
18258 * manual/locale.texi (nl_langinfo): Fix a typo.
18259
18260 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18261
18262 [BZ #22588]
18263 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18264
18265 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18266
18267 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18268 (CFLAGS-argp-parse.c): Likewise.
18269 (CFLAGS-argp-fmtstream.c): Likewise.
18270 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18271 (CPPFLAGS-sha512-crypt.c): Likewise.
18272 (CPPFLAGS-md5-crypt.c): Likewise.
18273 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18274 (CFLAGS-stack_chk_fail_local.c): Likewise.
18275 (CFLAGS-backtrace.c): Likewise.
18276 (CFLAGS-sprintf_chk.c): Likewise.
18277 (CFLAGS-snprintf_chk.c): Likewise.
18278 (CFLAGS-vsprintf_chk.c): Likewise.
18279 (CFLAGS-vsnprintf_chk.c): Likewise.
18280 (CFLAGS-asprintf_chk.c): Likewise.
18281 (CFLAGS-vasprintf_chk.c): Likewise.
18282 (CFLAGS-obprintf_chk.c): Likewise.
18283 (CFLAGS-dprintf_chk.c): Likewise.
18284 (CFLAGS-vdprintf_chk.c): Likewise.
18285 (CFLAGS-printf_chk.c): Likewise.
18286 (CFLAGS-fprintf_chk.c): Likewise.
18287 (CFLAGS-vprintf_chk.c): Likewise.
18288 (CFLAGS-vfprintf_chk.c): Likewise.
18289 (CFLAGS-gets_chk.c): Likewise.
18290 (CFLAGS-fgets_chk.c): Likewise.
18291 (CFLAGS-fgets_u_chk.c): Likewise.
18292 (CFLAGS-fread_chk.c): Likewise.
18293 (CFLAGS-fread_u_chk.c): Likewise.
18294 (CFLAGS-swprintf_chk.c): Likewise.
18295 (CFLAGS-vswprintf_chk.c): Likewise.
18296 (CFLAGS-wprintf_chk.c): Likewise.
18297 (CFLAGS-fwprintf_chk.c): Likewise.
18298 (CFLAGS-vwprintf_chk.c): Likewise.
18299 (CFLAGS-vfwprintf_chk.c): Likewise.
18300 (CFLAGS-fgetws_chk.c): Likewise.
18301 (CFLAGS-fgetws_u_chk.c): Likewise.
18302 (CFLAGS-read_chk.c): Likewise.
18303 (CFLAGS-pread_chk.c): Likewise.
18304 (CFLAGS-pread64_chk.c): Likewise.
18305 (CFLAGS-recv_chk.c): Likewise.
18306 (CFLAGS-recvfrom_chk.c): Likewise.
18307 (CFLAGS-tst-longjmp_chk.c): Likewise.
18308 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18309 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18310 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18311 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18312 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18313 (CFLAGS-tst-chk1.c): Likewise.
18314 (CFLAGS-tst-chk2.c): Likewise.
18315 (CFLAGS-tst-chk3.c): Likewise.
18316 (CFLAGS-tst-chk4.cc): Likewise.
18317 (CFLAGS-tst-chk5.cc): Likewise.
18318 (CFLAGS-tst-chk6.cc): Likewise.
18319 (CFLAGS-tst-lfschk1.c): Likewise.
18320 (CFLAGS-tst-lfschk2.c): Likewise.
18321 (CFLAGS-tst-lfschk3.c): Likewise.
18322 (CFLAGS-tst-lfschk4.cc): Likewise.
18323 (CFLAGS-tst-lfschk5.cc): Likewise.
18324 (CFLAGS-tst-lfschk6.cc): Likewise.
18325 (CFLAGS-tst-ssp-1.c): Likewise.
18326 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18327 (CFLAGS-scandir64.c): Likewise.
18328 (CFLAGS-scandir-tail.c): Likewise.
18329 (CFLAGS-scandir64-tail.c): Likewise.
18330 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18331 (CFLAGS-dl-tunables.c): Likewise.
18332 (CFLAGS-dl-runtime.c): Likewise.
18333 (CFLAGS-dl-lookup.c): Likewise.
18334 (CFLAGS-dl-iterate-phdr.c): Likewise.
18335 (CFLAGS-vismain.c): Likewise.
18336 (CFLAGS-tst-linkall-static.c): Likewise.
18337 (CFLAGS-tst-linkall-static.c): Likewise.
18338 (CPPFLAGS-dl-load.c): Likewise.
18339 (CFLAGS-ldconfig.c): Likewise.
18340 (CFLAGS-dl-cache.c): Likewise.
18341 (CFLAGS-cache.c): Likewise.
18342 (CFLAGS-rtld.c): Likewise.
18343 (CFLAGS-multiload.c): Likewise.
18344 (CFLAGS-filtmod1.c): Likewise.
18345 (CFLAGS-tst-align.c): Likewise.
18346 (CFLAGS-tst-align2.c): Likewise.
18347 (CFLAGS-tst-alignmod.c): Likewise.
18348 (CFLAGS-tst-alignmod2.c): Likewise.
18349 (CPPFLAGS-tst-execstack.c): Likewise.
18350 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18351 (CFLAGS-tst-latepthreadmod.c): Likewise.
18352 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18353 (CFLAGS-getgrnam_r.c): Likewise.
18354 (CFLAGS-getgrent_r.c): Likewise.
18355 (CFLAGS-getgrent.c): Likewise.
18356 (CFLAGS-fgetgrent.c): Likewise.
18357 (CFLAGS-fgetgrent_r.c): Likewise.
18358 (CFLAGS-putgrent.c): Likewise.
18359 (CFLAGS-initgroups.c): Likewise.
18360 (CFLAGS-getgrgid.c): Likewise.
18361 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18362 (CFLAGS-getsgent.c): Likewise.
18363 (CFLAGS-fgetsgent.c): Likewise.
18364 (CFLAGS-fgetsgent_r.c): Likewise.
18365 (CFLAGS-putsgent.c): Likewise.
18366 (CFLAGS-getsgnam.c): Likewise.
18367 (CFLAGS-getsgnam_r.c): Likewise.
18368 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18369 (CFLAGS-iconv_charmap.c): Likewise.
18370 (CFLAGS-dummy-repertoire.c): Likewise.
18371 (CFLAGS-charmap.c): Likewise.
18372 (CFLAGS-linereader.c): Likewise.
18373 (CFLAGS-simple-hash.c): Likewise.
18374 (CFLAGS-gconv_conf.c): Likewise.
18375 (CFLAGS-iconvconfig.c): Likewise.
18376 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18377 (CFLAGS-gethstbyad.c): Likewise.
18378 (CFLAGS-gethstbynm_r.c): Likewise.
18379 (CFLAGS-gethstbynm.c): Likewise.
18380 (CFLAGS-gethstbynm2_r.c): Likewise.
18381 (CFLAGS-gethstbynm2.c): Likewise.
18382 (CFLAGS-gethstent_r.c): Likewise.
18383 (CFLAGS-gethstent.c): Likewise.
18384 (CFLAGS-rcmd.c): Likewise.
18385 (CFLAGS-getnetbynm_r.c): Likewise.
18386 (CFLAGS-getnetbynm.c): Likewise.
18387 (CFLAGS-getnetbyad_r.c): Likewise.
18388 (CFLAGS-getnetbyad.c): Likewise.
18389 (CFLAGS-getnetent_r.c): Likewise.
18390 (CFLAGS-getnetent.c): Likewise.
18391 (CFLAGS-getaliasent_r.c): Likewise.
18392 (CFLAGS-getaliasent.c): Likewise.
18393 (CFLAGS-getrpcent_r.c): Likewise.
18394 (CFLAGS-getrpcent.c): Likewise.
18395 (CFLAGS-getservent_r.c): Likewise.
18396 (CFLAGS-getservent.c): Likewise.
18397 (CFLAGS-getprtent_r.c): Likewise.
18398 (CFLAGS-getprtent.c): Likewise.
18399 (CFLAGS-either_ntoh.c): Likewise.
18400 (CFLAGS-either_hton.c): Likewise.
18401 (CFLAGS-getnetgrent.c): Likewise.
18402 (CFLAGS-getnetgrent_r.c): Likewise.
18403 (CFLAGS-tst-checks-posix.c): Likewise.
18404 (CFLAGS-tst-sockaddr.c): Likewise.
18405 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18406 (CFLAGS-tst-translit.c): Likewise.
18407 (CFLAGS-tst-gettext2.c): Likewise.
18408 (CFLAGS-tst-codeset.c): Likewise.
18409 (CFLAGS-tst-gettext3.c): Likewise.
18410 (CFLAGS-tst-gettext4.c): Likewise.
18411 (CFLAGS-tst-gettext5.c): Likewise.
18412 (CFLAGS-tst-gettext6.c): Likewise.
18413 * io/Makefile (CFLAGS-open.c): Likewise.
18414 (CFLAGS-open64.c): Likewise.
18415 (CFLAGS-creat.c): Likewise.
18416 (CFLAGS-creat64.c): Likewise.
18417 (CFLAGS-fcntl.c): Likewise.
18418 (CFLAGS-poll.c): Likewise.
18419 (CFLAGS-ppoll.c): Likewise.
18420 (CFLAGS-lockf.c): Likewise.
18421 (CFLAGS-statfs.c): Likewise.
18422 (CFLAGS-fstatfs.c): Likewise.
18423 (CFLAGS-statvfs.c): Likewise.
18424 (CFLAGS-fstatvfs.c): Likewise.
18425 (CFLAGS-fts.c): Likewise.
18426 (CFLAGS-fts64.c): Likewise.
18427 (CFLAGS-ftw.c): Likewise.
18428 (CFLAGS-ftw64.c): Likewise.
18429 (CFLAGS-lockf.c): Likewise.
18430 (CFLAGS-posix_fallocate.c): Likewise.
18431 (CFLAGS-posix_fallocate64.c): Likewise.
18432 (CFLAGS-fallocate.c): Likewise.
18433 (CFLAGS-fallocate64.c): Likewise.
18434 (CFLAGS-read.c): Likewise.
18435 (CFLAGS-write.c): Likewise.
18436 (CFLAGS-test-stat.c): Likewise.
18437 (CFLAGS-test-lfs.c): Likewise.
18438 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18439 (CFLAGS-fputc.c): Likewise.
18440 (CFLAGS-fputwc.c): Likewise.
18441 (CFLAGS-freopen64.c): Likewise.
18442 (CFLAGS-freopen.c): Likewise.
18443 (CFLAGS-fseek.c): Likewise.
18444 (CFLAGS-fseeko64.c): Likewise.
18445 (CFLAGS-fseeko.c): Likewise.
18446 (CFLAGS-ftello64.c): Likewise.
18447 (CFLAGS-ftello.c): Likewise.
18448 (CFLAGS-fwide.c): Likewise.
18449 (CFLAGS-genops.c): Likewise.
18450 (CFLAGS-getc.c): Likewise.
18451 (CFLAGS-getchar.c): Likewise.
18452 (CFLAGS-getwc.c): Likewise.
18453 (CFLAGS-getwchar.c): Likewise.
18454 (CFLAGS-iofclose.c): Likewise.
18455 (CFLAGS-iofflush.c): Likewise.
18456 (CFLAGS-iofgetpos64.c): Likewise.
18457 (CFLAGS-iofgetpos.c): Likewise.
18458 (CFLAGS-iofgets.c): Likewise.
18459 (CFLAGS-iofgetws.c): Likewise.
18460 (CFLAGS-iofputs.c): Likewise.
18461 (CFLAGS-iofputws.c): Likewise.
18462 (CFLAGS-iofread.c): Likewise.
18463 (CFLAGS-iofsetpos64.c): Likewise.
18464 (CFLAGS-iofsetpos.c): Likewise.
18465 (CFLAGS-ioftell.c): Likewise.
18466 (CFLAGS-iofwrite.c): Likewise.
18467 (CFLAGS-iogetdelim.c): Likewise.
18468 (CFLAGS-iogetline.c): Likewise.
18469 (CFLAGS-iogets.c): Likewise.
18470 (CFLAGS-iogetwline.c): Likewise.
18471 (CFLAGS-ioputs.c): Likewise.
18472 (CFLAGS-ioseekoff.c): Likewise.
18473 (CFLAGS-ioseekpos.c): Likewise.
18474 (CFLAGS-iosetbuffer.c): Likewise.
18475 (CFLAGS-iosetvbuf.c): Likewise.
18476 (CFLAGS-ioungetc.c): Likewise.
18477 (CFLAGS-ioungetwc.c): Likewise.
18478 (CFLAGS-oldfileops.c): Likewise.
18479 (CFLAGS-oldiofclose.c): Likewise.
18480 (CFLAGS-oldiofgetpos64.c): Likewise.
18481 (CFLAGS-oldiofgetpos.c): Likewise.
18482 (CFLAGS-oldiofsetpos64.c): Likewise.
18483 (CFLAGS-oldiofsetpos.c): Likewise.
18484 (CFLAGS-peekc.c): Likewise.
18485 (CFLAGS-putc.c): Likewise.
18486 (CFLAGS-putchar.c): Likewise.
18487 (CFLAGS-putwc.c): Likewise.
18488 (CFLAGS-putwchar.c): Likewise.
18489 (CFLAGS-rewind.c): Likewise.
18490 (CFLAGS-wfileops.c): Likewise.
18491 (CFLAGS-wgenops.c): Likewise.
18492 (CFLAGS-oldiofopen.c): Likewise.
18493 (CFLAGS-iofopen.c): Likewise.
18494 (CFLAGS-iofopen64.c): Likewise.
18495 (CFLAGS-oldtmpfile.c): Likewise.
18496 (CFLAGS-tst_putwc.c): Likewise.
18497 * locale/Makefile (CFLAGS-md5.c): Likewise.
18498 (CFLAGS-charmap.c): Likewise.
18499 (CFLAGS-locfile.c): Likewise.
18500 (CFLAGS-charmap-dir.c): Likewise.
18501 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18502 (CFLAGS-getpt.c): Likewise.
18503 (CFLAGS-pt_chown.c): Likewise.
18504 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18505 (CFLAGS-obstack.c): Likewise.
18506 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18507 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18508 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18509 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18510 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18511 (CFLAGS-test-tgmath.c): Likewise.
18512 (CFLAGS-test-tgmath2.c): Likewise.
18513 (CFLAGS-test-tgmath-ret.c): Likewise.
18514 (CFLAGS-test-powl.c): Likewise.
18515 (CFLAGS-test-snan.c): Likewise.
18516 (CFLAGS-test-signgam-finite.c): Likewise.
18517 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18518 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18519 (CFLAGS-test-signgam-uchar.c): Likewise.
18520 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18521 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18522 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18523 (CFLAGS-test-signgam-uint.c): Likewise.
18524 (CFLAGS-test-signgam-uint-init.c): Likewise.
18525 (CFLAGS-test-signgam-uint-static.c): Likewise.
18526 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18527 (CFLAGS-test-signgam-ullong.c): Likewise.
18528 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18529 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18530 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18531 (CFLAGS-test-math-cxx11.cc): Likewise.
18532 (CFLAGS-test-math-isinff.cc): Likewise.
18533 (CFLAGS-test-math-iszero.cc): Likewise.
18534 (CFLAGS-test-math-issignaling.cc): Likewise.
18535 (CFLAGS-test-math-iscanonical.cc): Likewise.
18536 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18537 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18538 (CFLAGS-test-flt-eval-method.c): Likewise.
18539 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18540 (CFLAGS-test-finite-macros.c): Likewise.
18541 * misc/Makefile (CFLAGS-select.c): Likewise.
18542 (CFLAGS-tsearch.c): Likewise.
18543 (CFLAGS-lsearch.c): Likewise.
18544 (CFLAGS-pselect.c): Likewise.
18545 (CFLAGS-readv.c): Likewise.
18546 (CFLAGS-writev.c): Likewise.
18547 (CFLAGS-preadv.c): Likewise.
18548 (CFLAGS-preadv64.c): Likewise.
18549 (CFLAGS-pwritev.c): Likewise.
18550 (CFLAGS-pwritev64.c): Likewise.
18551 (CFLAGS-preadv2.c): Likewise.
18552 (CFLAGS-preadv64v2.c): Likewise.
18553 (CFLAGS-pwritev2.c): Likewise.
18554 (CFLAGS-pwritev64v2.c): Likewise.
18555 (CFLAGS-usleep.c): Likewise.
18556 (CFLAGS-syslog.c): Likewise.
18557 (CFLAGS-error.c): Likewise.
18558 (CFLAGS-getpass.c): Likewise.
18559 (CFLAGS-mkstemp.c): Likewise.
18560 (CFLAGS-mkstemp64.c): Likewise.
18561 (CFLAGS-getsysstats.c): Likewise.
18562 (CFLAGS-getusershell.c): Likewise.
18563 (CFLAGS-err.c): Likewise.
18564 (CFLAGS-tst-tsearch.c): Likewise.
18565 (CFLAGS-msync.c): Likewise.
18566 (CFLAGS-fdatasync.c): Likewise.
18567 (CFLAGS-fsync.c): Likewise.
18568 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18569 (CFLAGS-unwind.c): Likewise.
18570 (CFLAGS-unwind-forcedunwind.c): Likewise.
18571 (CFLAGS-pthread_cancel.c): Likewise.
18572 (CFLAGS-pthread_setcancelstate.c): Likewise.
18573 (CFLAGS-pthread_setcanceltype.c): Likewise.
18574 (CFLAGS-cancellation.c): Likewise.
18575 (CFLAGS-libc-cancellation.c): Likewise.
18576 (CFLAGS-pthread_exit.c): Likewise.
18577 (CFLAGS-forward.c): Likewise.
18578 (CFLAGS-pthread_testcancel.c): Likewise.
18579 (CFLAGS-pthread_join.c): Likewise.
18580 (CFLAGS-pthread_timedjoin.c): Likewise.
18581 (CFLAGS-pthread_once.c): Likewise.
18582 (CFLAGS-pthread_cond_wait.c): Likewise.
18583 (CFLAGS-sem_wait.c): Likewise.
18584 (CFLAGS-sem_timedwait.c): Likewise.
18585 (CFLAGS-fcntl.c): Likewise.
18586 (CFLAGS-lockf.c): Likewise.
18587 (CFLAGS-pread.c): Likewise.
18588 (CFLAGS-pread64.c): Likewise.
18589 (CFLAGS-pwrite.c): Likewise.
18590 (CFLAGS-pwrite64.c): Likewise.
18591 (CFLAGS-wait.c): Likewise.
18592 (CFLAGS-waitpid.c): Likewise.
18593 (CFLAGS-sigwait.c): Likewise.
18594 (CFLAGS-msgrcv.c): Likewise.
18595 (CFLAGS-msgsnd.c): Likewise.
18596 (CFLAGS-tcdrain.c): Likewise.
18597 (CFLAGS-open.c): Likewise.
18598 (CFLAGS-open64.c): Likewise.
18599 (CFLAGS-pause.c): Likewise.
18600 (CFLAGS-recv.c): Likewise.
18601 (CFLAGS-send.c): Likewise.
18602 (CFLAGS-accept.c): Likewise.
18603 (CFLAGS-sendto.c): Likewise.
18604 (CFLAGS-connect.c): Likewise.
18605 (CFLAGS-recvfrom.c): Likewise.
18606 (CFLAGS-recvmsg.c): Likewise.
18607 (CFLAGS-sendmsg.c): Likewise.
18608 (CFLAGS-close.c): Likewise.
18609 (CFLAGS-read.c): Likewise.
18610 (CFLAGS-write.c): Likewise.
18611 (CFLAGS-nanosleep.c): Likewise.
18612 (CFLAGS-sigsuspend.c): Likewise.
18613 (CFLAGS-msync.c): Likewise.
18614 (CFLAGS-fdatasync.c): Likewise.
18615 (CFLAGS-fsync.c): Likewise.
18616 (CFLAGS-pt-system.c): Likewise.
18617 (CFLAGS-tst-cleanup2.c): Likewise.
18618 (CFLAGS-tst-cleanupx2.c): Likewise.
18619 (CFLAGS-flockfile.c): Likewise.
18620 (CFLAGS-ftrylockfile.c): Likewise.
18621 (CFLAGS-funlockfile.c): Likewise.
18622 (CFLAGS-tst-initializers1.c): Likewise.
18623 (CFLAGS-tst-initializers1-c89.c): Likewise.
18624 (CFLAGS-tst-initializers1-c99.c): Likewise.
18625 (CFLAGS-tst-initializers1-c11.c): Likewise.
18626 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18627 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18628 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18629 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18630 (CFLAGS-nscd_getgr_r.c): Likewise.
18631 (CFLAGS-nscd_gethst_r.c): Likewise.
18632 (CFLAGS-nscd_getai.c): Likewise.
18633 (CFLAGS-nscd_initgroups.c): Likewise.
18634 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18635 (CFLAGS-pause.c): Likewise.
18636 (CFLAGS-pread.c): Likewise.
18637 (CFLAGS-pread64.c): Likewise.
18638 (CFLAGS-pwrite.c): Likewise.
18639 (CFLAGS-pwrite64.c): Likewise.
18640 (CFLAGS-sleep.c): Likewise.
18641 (CFLAGS-wait.c): Likewise.
18642 (CFLAGS-waitid.c): Likewise.
18643 (CFLAGS-waitpid.c): Likewise.
18644 (CFLAGS-getopt.c): Likewise.
18645 (CFLAGS-wordexp.c): Likewise.
18646 (CFLAGS-sysconf.c): Likewise.
18647 (CFLAGS-pathconf.c): Likewise.
18648 (CFLAGS-fpathconf.c): Likewise.
18649 (CFLAGS-spawn.c): Likewise.
18650 (CFLAGS-spawnp.c): Likewise.
18651 (CFLAGS-spawni.c): Likewise.
18652 (CFLAGS-glob.c): Likewise.
18653 (CFLAGS-glob64.c): Likewise.
18654 (CFLAGS-getconf.c): Likewise.
18655 (CFLAGS-nanosleep.c): Likewise.
18656 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18657 (CFLAGS-getpwent.c): Likewise.
18658 (CFLAGS-getpw.c): Likewise.
18659 (CFLAGS-fgetpwent_r.c): Likewise.
18660 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18661 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18662 (CFLAGS-mq_timedreceive.c): Likewise.
18663 (CFLAGS-mq_timedsend.c): Likewise.
18664 (CFLAGS-clock_nanosleep.c): Likewise.
18665 (CFLAGS-librt-cancellation.c): Likewise.
18666 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18667 (CFLAGS-getspent.c): Likewise.
18668 (CFLAGS-fgetspent.c): Likewise.
18669 (CFLAGS-fgetspent_r.c): Likewise.
18670 (CFLAGS-putspent.c): Likewise.
18671 (CFLAGS-getspnam.c): Likewise.
18672 (CFLAGS-getspnam_r.c): Likewise.
18673 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18674 (CFLAGS-sigsuspend.c): Likewise.
18675 (CFLAGS-sigtimedwait.c): Likewise.
18676 (CFLAGS-sigwait.c): Likewise.
18677 (CFLAGS-sigwaitinfo.c): Likewise.
18678 (CFLAGS-sigreturn.c): Likewise.
18679 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18680 (CFLAGS-vfwprintf.c): Likewise.
18681 (CFLAGS-tmpfile.c): Likewise.
18682 (CFLAGS-tmpfile64.c): Likewise.
18683 (CFLAGS-tempname.c): Likewise.
18684 (CFLAGS-psignal.c): Likewise.
18685 (CFLAGS-vprintf.c): Likewise.
18686 (CFLAGS-cuserid.c): Likewise.
18687 (CFLAGS-errlist.c): Likewise.
18688 (CFLAGS-siglist.c): Likewise.
18689 (CFLAGS-scanf15.c): Likewise.
18690 (CFLAGS-scanf17.c): Likewise.
18691 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18692 (CFLAGS-msort.c): Likewise.
18693 (CFLAGS-qsort.c): Likewise.
18694 (CFLAGS-system.c): Likewise.
18695 (CFLAGS-fmtmsg.c): Likewise.
18696 (CFLAGS-strfmon.c): Likewise.
18697 (CFLAGS-strfmon_l.c): Likewise.
18698 (CFLAGS-strfromd.c): Likewise.
18699 (CFLAGS-strfromf.c): Likewise.
18700 (CFLAGS-strfroml.c): Likewise.
18701 (CFLAGS-tst-bsearch.c): Likewise.
18702 (CFLAGS-tst-qsort.c): Likewise.
18703 (CFLAGS-tst-makecontext2.c): Likewise.
18704 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18705 (CFLAGS-xnlm_prot.c): Likewise.
18706 (CFLAGS-xrstat.c): Likewise.
18707 (CFLAGS-xyppasswd.c): Likewise.
18708 (CFLAGS-xklm_prot.c): Likewise.
18709 (CFLAGS-xrex.c): Likewise.
18710 (CFLAGS-xsm_inter.c): Likewise.
18711 (CFLAGS-xmount.c): Likewise.
18712 (CFLAGS-xrusers.c): Likewise.
18713 (CFLAGS-xspray.c): Likewise.
18714 (CFLAGS-xnfs_prot.c): Likewise.
18715 (CFLAGS-xrquota.c): Likewise.
18716 (CFLAGS-xkey_prot.c): Likewise.
18717 (CFLAGS-auth_unix.c): Likewise.
18718 (CFLAGS-key_call.c): Likewise.
18719 (CFLAGS-pmap_rmt.c): Likewise.
18720 (CFLAGS-clnt_perr.c): Likewise.
18721 (CFLAGS-openchild.c): Likewise.
18722 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18723 (CFLAGS-msgsnd.c): Likewise.
18724 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18725 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18726 (CFLAGS-tzset.c): Likewise.
18727 (CFLAGS-getdate.c): Likewise.
18728 (CFLAGS-test_time.c): Likewise.
18729 (CPPFLAGS-tst-tzname.c): Likewise.
18730 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18731 (CFLAGS-zic.c): Likewise.
18732 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18733 (CFLAGS-wcswidth.c): Likewise.
18734 (CFLAGS-wcstol.c): Likewise.
18735 (CFLAGS-wcstoul.c): Likewise.
18736 (CFLAGS-wcstoll.c): Likewise.
18737 (CFLAGS-wcstoull.c): Likewise.
18738 (CFLAGS-wcstod.c): Likewise.
18739 (CFLAGS-wcstold.c): Likewise.
18740 (CFLAGS-wcstof128.c): Likewise.
18741 (CFLAGS-wcstof.c): Likewise.
18742 (CFLAGS-wcstol_l.c): Likewise.
18743 (CFLAGS-wcstoul_l.c): Likewise.
18744 (CFLAGS-wcstoll_l.c): Likewise.
18745 (CFLAGS-wcstoull_l.c): Likewise.
18746 (CFLAGS-wcstod_l.c): Likewise.
18747 (CFLAGS-wcstold_l.c): Likewise.
18748 (CFLAGS-wcstof128_l.c): Likewise.
18749 (CFLAGS-wcstof_l.c): Likewise.
18750 (CPPFLAGS-tst-wchar-h.c): Likewise.
18751 (CPPFLAGS-wcstold_l.c): Likewise.
18752
18753 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18754
18755 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18756
18757 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18758 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18759
18760 * manual/tunables.texi (Hardware Capability Tunables): Document
18761 glibc.tune.cached_memopt.
18762 * sysdeps/powerpc/cpu-features.c: New file.
18763 * sysdeps/powerpc/cpu-features.h: New file.
18764 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18765 _dl_powerpc_cpu_features.
18766 * sysdeps/powerpc/dl-tunables.list: New file.
18767 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18768 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18769 (INIT_ARCH): Initialize use_aligned_memopt.
18770 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18771 IS_IN(rtld))]: Restrict dl_platform_init availability and
18772 initialize CPU features used by tunables.
18773 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18774 Add memcpy-power8-cached.
18775 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18776 __memcpy_power8_cached.
18777 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18778 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18779 New file.
18780
18781 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18782
18783 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18784 (CFLAGS-noinl-tester.c): Likewise.
18785 (CFLAGS-tst-strlen.c): Likewise.
18786 (CFLAGS-stratcliff.c): Likewise.
18787 (CFLAGS-test-ffs.c): Likewise.
18788 (CFLAGS-tst-inlcall.c): Likewise.
18789 (CFLAGS-tst-xbzero-opt.c): Likewise.
18790 (CFLAGS-memcpy.c): Likewise.
18791 (CFLAGS-wordcopy.c): Likewise.
18792
18793 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18794
18795 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18796 Store r15 on stack and add cfi rule.
18797 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18798 Likewise.
18799
18800 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18801
18802 [BZ #22577]
18803 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18804 call.
18805
18806 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18807
18808 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18809 Add s_sinf-sse2 and s_sinf-fma.
18810 (CFLAGS-s_sinf-fma.c): New.
18811 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18812 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18813 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18814
18815 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18816
18817 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18818
18819 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18820
18821 [BZ #22568]
18822 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18823 part of result to imaginary part of argument if it is zero and the
18824 real part of the argument is not finite.
18825 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18826 of result to real part of argument if it is zero and the imaginary
18827 part of the argument is not finite.
18828
18829 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18830
18831 [BZ #22524]
18832 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18833 and to the list of locales to be built for testing.
18834 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18835 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18836 and build the collation rules upon that.
18837
18838 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18839
18840 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18841 * manual/math.texi (Mathematics): Document support for _Float32.
18842 * math/Makefile (test-types): Add float32.
18843 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18844 * stdlib/Versions (GLIBC_2.27): Likewise.
18845 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18846 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18847 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18850 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18851 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18857 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18858 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18859 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18864 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18865 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18866 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18867 Likewise.
18868 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18869 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18870 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18871 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18872 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18874 Likewise.
18875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18876 Likewise.
18877 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18878 Likewise.
18879 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18880 Likewise.
18881
18882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18883 Likewise.
18884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18885 Likewise.
18886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18887 Likewise.
18888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18889 Likewise.
18890 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18891 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18892 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18893 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18894 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18897 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18898 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18901 Likewise.
18902 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18903 Likewise.
18904 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18905 Likewise.
18906 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18907 Likewise.
18908 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18909 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18910 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18911 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18912 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18913 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18914 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18915 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18916
18917 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18918
18919 * stdlib/strtof.c: Include <bits/floatn.h>
18920 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18921 and later undefine as macro. Define as weak alias if
18922 [!USE_WIDE_CHAR].
18923 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18924 and later undefine as macro. Define as weak alias if
18925 [USE_WIDE_CHAR].
18926 * stdlib/strtof_l.c: Include <bits/floatn.h>
18927 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18928 and later undefine as macro. Define as weak alias if
18929 [!USE_WIDE_CHAR].
18930 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18931 and later undefine as macro. Define as weak alias if
18932 [USE_WIDE_CHAR].
18933
18934 * stdlib/strfromf.c: Include <bits/floatn.h>.
18935 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18936 and later undefine as macro and define as weak alias.
18937
18938 * math/test-float32.h: New file.
18939
18940 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18941 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18942 (libm_alias_float_other_r): Create f32 alias.
18943 (libm_alias_float_r): Use semicolon before call to
18944 libm_alias_float_other_r.
18945
18946 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18947 second argument to libm_alias_float_other.
18948 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18949 second argument to libm_alias_float_other.
18950 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18951 argument to libm_alias_float_other.
18952
18953 [BZ #22561]
18954 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18955 real part of result for argument 0 + i * NaN.
18956 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18957 results for tests of 0 + i * NaN.
18958
18959 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18960
18961 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18962
18963 2017-12-06 David S. Miller <davem@davemloft.net>
18964
18965 * sysdeps/sparc/fpu/libm-test-ulps: Update
18966 exp_{downward,towardzero,upward} ulps.
18967
18968 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18969
18970 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18971 variables static.
18972
18973 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18974 (Y0_2D): Likewise.
18975 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18976 (Y0_2D): Likewise.
18977 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18978 (Y0_2D): Likewise.
18979 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18980 (Y0_2D): Likewise.
18981
18982 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18983
18984 [BZ #22515]
18985 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18986 and to the list of locales to be built for testing.
18987 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18988 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18989 and build the collation rules upon that.
18990
18991 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18992
18993 * NEWS: Add sinf to list of optimized functions.
18994
18995 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18996
18997 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18998 (__HAVE_FLOAT32X): Likewise.
18999 * manual/math.texi (Mathematics): Document support for _Float64
19000 and _Float32x.
19001 * math/Makefile (test-types): Add float64 and float32x.
19002 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19003 functions.
19004 * stdlib/Versions (GLIBC_2.27): Likewise.
19005 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19006 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19007 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19008 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19009 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19010 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19011 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19012 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19014 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19015 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19016 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19017 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19018 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19019 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19020 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19021 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19022 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19024 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19025 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19026 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19027 Likewise.
19028 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19029 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19030 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19031 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19032 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19034 Likewise.
19035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19036 Likewise.
19037 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19038 Likewise.
19039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19040 Likewise.
19041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19042 Likewise.
19043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19044 Likewise.
19045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19046 Likewise.
19047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19048 Likewise.
19049 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19050 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19051 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19052 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19053 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19054 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19055 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19056 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19057 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19058 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19059 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19060 Likewise.
19061 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19062 Likewise.
19063 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19064 Likewise.
19065 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19066 Likewise.
19067 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19068 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19069 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19070 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19071 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19072 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19073 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19074 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19075
19076 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19077
19078 * bits/floatn-common.h: Include <bits/long-double.h>.
19079 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19080 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19081 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19082 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19083 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19084 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19085 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19086 (__builtin_huge_valf64): Use __builtin_huge_vall.
19087 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19088 (__builtin_inff64): Use __builtin_infl.
19089 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19090 (__builtin_nanf64): Use __builtin_nanl.
19091 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19092 (__builtin_nansf64): Use __builtin_nansl.
19093
19094 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19095 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19096 Carlos O'Donnell <carlos@redhat.com>
19097
19098 * elf/dl-tunables.list: Add elision parameters.
19099 * manual/tunables.texi: Add entries about elision tunable.
19100 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19101 Add callback functions to dynamically enable/disable elision.
19102 Add multiple callbacks functions to set elision parameters.
19103 Deleted __libc_enable_secure check.
19104 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19105 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19106 * configure: Regenerated.
19107 * configure.ac: Option enable_lock_elision was deleted.
19108 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19109 * config.make.in: Remove references to enable_lock_elision.
19110 * manual/install.texi: Elision configure option was removed.
19111 * INSTALL: Regenerated to remove enable_lock_elision.
19112 * nptl/Makefile:
19113 Disable elision so it can verify error case for destroying a mutex.
19114 * sysdeps/powerpc/nptl/elide.h:
19115 Cleanup ENABLE_LOCK_ELISION check.
19116 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19117 * sysdeps/s390/configure: Regenerated.
19118 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19119 * nptl/tst-mutex8.c:
19120 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19121 * sysdeps/powerpc/powerpc32/sysdep.h:
19122 Deleted all ENABLE_LOCK_ELISION checks.
19123 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19124 * sysdeps/powerpc/sysdep.h: Likewise.
19125 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19126 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19127 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19128 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19129 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19130 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19131 enable-lock-elision.
19132
19133 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19134
19135 * stdlib/strtod.c: Include <bits/floatn.h>.
19136 (BUILD_DOUBLE): New macro.
19137 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19138 (strtof64): Define and later undefine as macro. Define as weak
19139 alias if [!USE_WIDE_CHAR].
19140 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19141 (wcstof64): Define and later undefine as macro. Define as weak
19142 alias if [USE_WIDE_CHAR].
19143 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19144 (strtof32x): Define and later undefine as macro. Define as weak
19145 alias if [!USE_WIDE_CHAR].
19146 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19147 (wcstof32x): Define and later undefine as macro. Define as weak
19148 alias if [USE_WIDE_CHAR].
19149 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19150 (BUILD_DOUBLE): New macro.
19151 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19152 (strtof64_l): Define and later undefine as macro. Define as weak
19153 alias if [!USE_WIDE_CHAR].
19154 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19155 (wcstof64_l): Define and later undefine as macro. Define as weak
19156 alias if [USE_WIDE_CHAR].
19157 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19158 (strtof32x_l): Define and later undefine as macro. Define as weak
19159 alias if [!USE_WIDE_CHAR].
19160 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19161 (wcstof32x_l): Define and later undefine as macro. Define as weak
19162 alias if [USE_WIDE_CHAR].
19163
19164 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19165
19166 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19167 (reduced): Use ones as double instead of integer.
19168
19169 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19170
19171 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19172
19173 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19174
19175 * stdlib/strfromd.c: Include <bits/floatn.h>.
19176 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19177 and later undefine as macro and define as weak alias.
19178 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19179 Likewise.
19180
19181 * math/test-float32x.h: New file.
19182 * math/test-float64.h: Likewise.
19183
19184 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19185 (libm_alias_double_other_r_f64): New macro.
19186 (libm_alias_double_other_r_f32x): Likewise.
19187 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19188 libm_alias_double_other_r_f32x.
19189 (libm_alias_double_r): Use semicolon before call to
19190 libm_alias_double_other_r.
19191 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19192 <bits/floatn.h>.
19193 (libm_alias_double_other_r_f64): New macro.
19194 (libm_alias_double_other_r_f32x): Likewise.
19195 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19196 libm_alias_double_other_r_f32x.
19197
19198 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19199
19200 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19201 int.
19202 (SINF_FUNC): Likewise. Replace floor with simple casts.
19203
19204 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19205
19206 [BZ #22517]
19207 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19208 and to the list of locales to be built for testing.
19209 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19210 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19211 and build the collation rules upon that.
19212
19213 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19214
19215 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19216 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19217 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19218 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19219 instead of __insn__xxx.
19220 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19221 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19222 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19223 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19224 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19225 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19226
19227 2017-12-05 Florian Weimer <fweimer@redhat.com>
19228
19229 Linux: Implement interfaces for memory protection keys
19230 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19231 xsignal, xsysconf.
19232 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19233 * support/xunistd.h (xsysconf): Declare.
19234 * support/xraise.c: New file.
19235 * support/xsigaction.c: Likewise.
19236 * support/xsignal.c: Likewise.
19237 * support/xsysconf.c: Likewise.
19238 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19239 pkey_set, pkey_get, pkey_mprotect.
19240 [misc] (tests): Add tst-pkey.
19241 (tst-pkey): Link with -lpthread.
19242 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19243 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19244 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19245 (PKEY_DISABLE_WRITE): Define.
19246 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19247 Declare.
19248 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19249 (SEGV_PKUERR): Add.
19250 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19251 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19252 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19253 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19254 Add.
19255 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19256 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19257 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19258 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19259 * sysdeps/unix/sysv/linux/**.abilist: Update.
19260
19261 2017-12-05 Florian Weimer <fweimer@redhat.com>
19262
19263 * support/tst-test_compare.c (subprocess): Use long long instead
19264 of long argument for consistent type width across 32-bit and
19265 64-bit architectures.
19266 (do_test): Adjust expected output.
19267
19268 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19269
19270 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19271 (cosf): Define using libm_alias_float.
19272 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19273 (fabsf): Define using libm_alias_float.
19274 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19275 (fmaf): Define using libm_alias_float.
19276 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19277 (rintf): Define using libm_alias_float.
19278 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19279 (sinf): Define using libm_alias_float.
19280 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19281 <libm-alias-float.h>.
19282 (modff): Define using libm_alias_float.
19283 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19284 <libm-alias-float.h>.
19285 (logbf): Define using libm_alias_float.
19286 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19287 <libm-alias-float.h>.
19288 (ceilf): Define using libm_alias_float.
19289 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19290 <libm-alias-float.h>.
19291 (copysignf): Define using libm_alias_float.
19292 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19293 <libm-alias-float.h>.
19294 (floorf): Define using libm_alias_float.
19295 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19296 <libm-alias-float.h>.
19297 (llrintf): Define using libm_alias_float.
19298 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19299 <libm-alias-float.h>.
19300 (llroundf): Define using libm_alias_float.
19301 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19302 <libm-alias-float.h>.
19303 (lrintf): Define using libm_alias_float.
19304 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19305 <libm-alias-float.h>.
19306 (lroundf): Define using libm_alias_float.
19307 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19308 <libm-alias-float.h>.
19309 (nearbyintf): Define using libm_alias_float.
19310 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19311 <libm-alias-float.h>.
19312 (rintf): Define using libm_alias_float.
19313 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19314 <libm-alias-float.h>.
19315 (roundf): Define using libm_alias_float.
19316 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19317 <libm-alias-float.h>.
19318 (truncf): Define using libm_alias_float.
19319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19320 Include <libm-alias-float.h>.
19321 (ceilf): Define using libm_alias_float.
19322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19323 Include <libm-alias-float.h>.
19324 (copysignf): Define using libm_alias_float.
19325 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19326 Include <libm-alias-float.h>.
19327 (floorf): Define using libm_alias_float.
19328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19329 Include <libm-alias-float.h>.
19330 (llrintf): Define using libm_alias_float.
19331 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19332 Include <libm-alias-float.h>.
19333 (llroundf): Define using libm_alias_float.
19334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19335 Include <libm-alias-float.h>.
19336 (logbf): Define using libm_alias_float.
19337 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19338 Include <libm-alias-float.h>.
19339 (lrintf): Define using libm_alias_float.
19340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19341 Include <libm-alias-float.h>.
19342 (lroundf): Define using libm_alias_float.
19343 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19344 Include <libm-alias-float.h>.
19345 (modff): Define using libm_alias_float.
19346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19347 Include <libm-alias-float.h>.
19348 (roundf): Define using libm_alias_float.
19349 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19350 Include <libm-alias-float.h>.
19351 (truncf): Define using libm_alias_float.
19352 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19353 <libm-alias-float.h>.
19354 (llrintf): Define using libm_alias_float.
19355 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19356 <libm-alias-float.h>.
19357 (llroundf): Define using libm_alias_float.
19358 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19359 <libm-alias-float.h>.
19360 (ceilf): Define using libm_alias_float.
19361 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19362 <libm-alias-float.h>.
19363 (floorf): Define using libm_alias_float.
19364 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19365 <libm-alias-float.h>.
19366 (llroundf): Define using libm_alias_float.
19367 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19368 <libm-alias-float.h>.
19369 (lroundf): Define using libm_alias_float.
19370 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19371 <libm-alias-float.h>.
19372 (roundf): Define using libm_alias_float.
19373 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19374 <libm-alias-float.h>.
19375 (truncf): Define using libm_alias_float.
19376 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19377 <libm-alias-float.h>.
19378 (copysignf): Define using libm_alias_float.
19379 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19380 <libm-alias-float.h>.
19381 (llrintf): Define using libm_alias_float.
19382 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19383 <libm-alias-float.h>.
19384 (llroundf): Define using libm_alias_float.
19385 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19386 <libm-alias-float.h>.
19387 (lrintf): Define using libm_alias_float.
19388 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19389 <libm-alias-float.h>.
19390 (lroundf): Define using libm_alias_float.
19391 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19392 <libm-alias-float.h>.
19393 (ceilf): Define using libm_alias_float.
19394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19395 <libm-alias-float.h>.
19396 (copysignf): Define using libm_alias_float.
19397 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19398 <libm-alias-float.h>.
19399 (cosf): Define using libm_alias_float.
19400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19401 <libm-alias-float.h>.
19402 (floorf): Define using libm_alias_float.
19403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19404 <libm-alias-float.h>.
19405 (llrintf): Define using libm_alias_float.
19406 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19407 <libm-alias-float.h>.
19408 (llroundf): Define using libm_alias_float.
19409 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19410 <libm-alias-float.h>.
19411 (logbf): Define using libm_alias_float.
19412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19413 <libm-alias-float.h>.
19414 (modff): Define using libm_alias_float.
19415 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19416 <libm-alias-float.h>.
19417 (roundf): Define using libm_alias_float.
19418 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19419 <libm-alias-float.h>.
19420 (sinf): Define using libm_alias_float.
19421 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19422 <libm-alias-float.h>.
19423 (truncf): Define using libm_alias_float.
19424 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19425 <libm-alias-float.h>.
19426 (ceilf): Define using libm_alias_float.
19427 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19428 <libm-alias-float.h>.
19429 (copysignf): Define using libm_alias_float.
19430 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19431 <libm-alias-float.h>.
19432 (floorf): Define using libm_alias_float.
19433 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19434 <libm-alias-float.h>.
19435 (llrintf): Define using libm_alias_float.
19436 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19437 <libm-alias-float.h>.
19438 (llroundf): Define using libm_alias_float.
19439 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19440 <libm-alias-float.h>.
19441 (nearbyintf): Define using libm_alias_float.
19442 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19443 <libm-alias-float.h>.
19444 (rintf): Define using libm_alias_float.
19445 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19446 <libm-alias-float.h>.
19447 (roundf): Define using libm_alias_float.
19448 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19449 <libm-alias-float.h>.
19450 (truncf): Define using libm_alias_float.
19451 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19452 <libm-alias-float.h>.
19453 (ceilf): Define using libm_alias_float.
19454 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19455 <libm-alias-float.h>.
19456 (floorf): Define using libm_alias_float.
19457 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19458 <libm-alias-float.h>.
19459 (llroundf): Define using libm_alias_float.
19460 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19461 <libm-alias-float.h>.
19462 (roundf): Define using libm_alias_float.
19463 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19464 <libm-alias-float.h>.
19465 (truncf): Define using libm_alias_float.
19466 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19467 <libm-alias-float.h>.
19468 (copysignf): Define using libm_alias_float.
19469 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19470 <libm-alias-float.h>.
19471 (llrintf): Define using libm_alias_float.
19472 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19473 <libm-alias-float.h>.
19474 (llroundf): Define using libm_alias_float.
19475 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19476 <libm-alias-float.h>.
19477 (cosf): Define using libm_alias_float.
19478 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19479 <libm-alias-float.h>.
19480 (llrintf): Define using libm_alias_float.
19481 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19482 <libm-alias-float.h>.
19483 (llroundf): Define using libm_alias_float.
19484 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19485 <libm-alias-float.h>.
19486 (sinf): Define using libm_alias_float.
19487
19488 2017-12-04 Florian Weimer <fweimer@redhat.com>
19489
19490 * support/check.h (TEST_COMPARE): Define.
19491 (support_test_compare_failure): Declare.
19492 * support/Makefile (libsupport-routines): Add
19493 support_test_compare_failure.
19494 (tests): Add tst-test_compare.
19495 * support /support_test_compare_failure.c: New file.
19496 * support/tst-test_compare.c: Likewise.
19497
19498 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19499
19500 [BZ #22527]
19501 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19502 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19503 available, this rewrite of the collation rules does reproduce
19504 the test file in the same order.
19505
19506 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19507
19508 [BZ #10580]
19509 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19510 digraphs in the month and day names. Using single code points for
19511 digraphs is deprecated. While there are dedicated Unicode
19512 codepoints, for the digraphs, these are included for backwards
19513 compatibility and modern texts use a sequence of Basic Latin
19514 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19515 This makes the month and day names agree exactly with CLDR now,
19516 CLDR does not use the single code points for the digraphs either.
19517
19518 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19519
19520 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19521
19522 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19523
19524 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19525 of floor.
19526
19527 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19528
19529 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19530 Define only for libc.so.
19531
19532 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19533
19534 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19535 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19536 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19537 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19538 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19539
19540 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19541
19542 [BZ #5997]
19543 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19544
19545 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19546
19547 [BZ libc/19170]
19548 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19549 PREINIT_FUNCTION_WEAK is nonzero.
19550 (gmon_initializer): New function. Put procedure label for it in
19551 .init_array section.
19552 (_init): Don't call PREINIT_FUNCTION.
19553 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19554 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19555 value when map argument is null.
19556
19557 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19558 depi instruction from PIC pc-relative sequence.
19559 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19560 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19561 (elf_machine_load_address): Likewise.
19562 (elf_machine_runtime_setup): Likewise.
19563
19564 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19565
19566 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19567 <libm-alias-double.h>.
19568 (logb): Define using libm_alias_double.
19569 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19570 <libm-alias-double.h>.
19571 (copysign): Define using libm_alias_double.
19572 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19573 <libm-alias-double.h>.
19574 (llrint): Define using libm_alias_double.
19575 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19576 <libm-alias-double.h>.
19577 (llround): Define using libm_alias_double.
19578 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19579 <libm-alias-double.h>.
19580 (lrint): Define using libm_alias_double.
19581 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19582 <libm-alias-double.h>.
19583 (lround): Define using libm_alias_double.
19584 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19585 Include <libm-alias-double.h>.
19586 (copysign): Define using libm_alias_double.
19587 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19588 Include <libm-alias-double.h>.
19589 (llrint): Define using libm_alias_double.
19590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19591 Include <libm-alias-double.h>.
19592 (llround): Define using libm_alias_double.
19593 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19594 <libm-alias-double.h>.
19595 (logb): Define using libm_alias_double.
19596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19597 Include <libm-alias-double.h>.
19598 (lrint): Define using libm_alias_double.
19599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19600 Include <libm-alias-double.h>.
19601 (lround): Define using libm_alias_double.
19602 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19603 <libm-alias-double.h>.
19604 (llrint): Define using libm_alias_double.
19605 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19606 <libm-alias-double.h>.
19607 (llround): Define using libm_alias_double.
19608 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19609 <libm-alias-double.h>.
19610 (llround): Define using libm_alias_double.
19611 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19612 <libm-alias-double.h>.
19613 (lround): Define using libm_alias_double.
19614 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19615 <libm-alias-double.h>.
19616 (copysign): Define using libm_alias_double.
19617 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19618 <libm-alias-double.h>.
19619 (llrint): Define using libm_alias_double.
19620 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19621 <libm-alias-double.h>.
19622 (llround): Define using libm_alias_double.
19623 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19624 <libm-alias-double.h>.
19625 (lrint): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19627 <libm-alias-double.h>.
19628 (lround): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19630 <libm-alias-double.h>.
19631 (copysign): Define using libm_alias_double.
19632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19633 <libm-alias-double.h>.
19634 (llrint): Define using libm_alias_double.
19635 (lrint): Likewise.
19636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19637 <libm-alias-double.h>.
19638 (llround): Define using libm_alias_double.
19639 (lround): Likewise.
19640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19641 <libm-alias-double.h>.
19642 (logb): Define using libm_alias_double.
19643 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19644 <libm-alias-double.h>.
19645 (copysign): Define using libm_alias_double.
19646 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19647 <libm-alias-double.h>.
19648 (llrint): Define using libm_alias_double.
19649 (lrint): Likewise.
19650 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19651 <libm-alias-double.h>.
19652 (llround): Define using libm_alias_double.
19653 (lround): Likewise.
19654 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19655 <libm-alias-double.h>.
19656 (llround): Define using libm_alias_double.
19657 (lround): Likewise.
19658 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19659 <libm-alias-double.h>.
19660 (copysign): Define using libm_alias_double.
19661 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19662 <libm-alias-double.h>.
19663 (llrint): Define using libm_alias_double.
19664 (lrint): Likewise.
19665 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19666 <libm-alias-double.h>.
19667 (llround): Define using libm_alias_double.
19668 (lround): Likewise.
19669 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19670 <libm-alias-double.h>.
19671 (llrint): Define using libm_alias_double.
19672 (lrint): Likewise.
19673 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19674 <libm-alias-double.h>.
19675 (llround): Define using libm_alias_double.
19676 (lround): Likewise.
19677
19678 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19679
19680 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19681 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19682 compat symbol based on llround.
19683
19684 * sysdeps/powerpc/power7/fpu/s_logb.c
19685 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19686 symbol based on __logb, not on logb.
19687 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19688 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19690 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19691
19692 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19693 (rint): Define using libm_alias_double.
19694 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19695 <libm-alias-double.h>.
19696 (modf): Define using libm_alias_double.
19697 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19698 <libm-alias-double.h>.
19699 (ceil): Define using libm_alias_double.
19700 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19701 <libm-alias-double.h>.
19702 (floor): Define using libm_alias_double.
19703 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19704 <libm-alias-double.h>.
19705 (nearbyint): Define using libm_alias_double.
19706 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19707 <libm-alias-double.h>.
19708 (rint): Define using libm_alias_double.
19709 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19710 <libm-alias-double.h>.
19711 (round): Define using libm_alias_double.
19712 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19713 <libm-alias-double.h>.
19714 (trunc): Define using libm_alias_double.
19715 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19716 <libm-alias-double.h>.
19717 (ceil): Define using libm_alias_double.
19718 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19719 Include <libm-alias-double.h>.
19720 (floor): Define using libm_alias_double.
19721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19722 <libm-alias-double.h>.
19723 (modf): Define using libm_alias_double.
19724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19725 Include <libm-alias-double.h>.
19726 (round): Define using libm_alias_double.
19727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19728 Include <libm-alias-double.h>.
19729 (trunc): Define using libm_alias_double.
19730 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19731 <libm-alias-double.h>.
19732 (ceil): Define using libm_alias_double.
19733 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19734 <libm-alias-double.h>.
19735 (floor): Define using libm_alias_double.
19736 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19737 <libm-alias-double.h>.
19738 (round): Define using libm_alias_double.
19739 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19740 <libm-alias-double.h>.
19741 (trunc): Define using libm_alias_double.
19742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19743 <libm-alias-double.h>.
19744 (ceil): Define using libm_alias_double.
19745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19746 <libm-alias-double.h>.
19747 (floor): Define using libm_alias_double.
19748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19749 <libm-alias-double.h>.
19750 (modf): Define using libm_alias_double.
19751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19752 <libm-alias-double.h>.
19753 (round): Define using libm_alias_double.
19754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19755 <libm-alias-double.h>.
19756 (trunc): Define using libm_alias_double.
19757 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19758 <libm-alias-double.h>.
19759 (ceil): Define using libm_alias_double.
19760 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19761 <libm-alias-double.h>.
19762 (floor): Define using libm_alias_double.
19763 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19764 <libm-alias-double.h>.
19765 (nearbyint): Define using libm_alias_double.
19766 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19767 <libm-alias-double.h>.
19768 (rint): Define using libm_alias_double.
19769 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19770 <libm-alias-double.h>.
19771 (round): Define using libm_alias_double.
19772 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19773 <libm-alias-double.h>.
19774 (trunc): Define using libm_alias_double.
19775 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19776 <libm-alias-double.h>.
19777 (ceil): Define using libm_alias_double.
19778 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19779 <libm-alias-double.h>.
19780 (floor): Define using libm_alias_double.
19781 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19782 <libm-alias-double.h>.
19783 (round): Define using libm_alias_double.
19784 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19785 <libm-alias-double.h>.
19786 (trunc): Define using libm_alias_double.
19787
19788 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19789 (fabs): Define using libm_alias_double.
19790 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19791 (fma): Define using libm_alias_double.
19792 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19793 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19794 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19795 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19796
19797 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19798
19799 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19800
19801 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19802 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19803 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19804
19805 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19806 due redirect macro.
19807
19808 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19809
19810 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19811
19812 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19813
19814 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19815 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19816 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19817 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19818
19819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19820 (libm-sysdep_routines): Add s_nearbyintf-generic and
19821 s_nearbyint-generic.
19822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19823 New file.
19824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19826 Likewise.
19827 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19828 Likewise.
19829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19830 file.
19831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19832 Likewise.
19833
19834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19835 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19837 file.
19838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19840 Likewise.
19841 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19844
19845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19846 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19848 file.
19849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19851 Likewise.
19852 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19855
19856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19857 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19859 file.
19860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19862 Likewise.
19863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19866
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19868 (sysdep_calls): New rule.
19869 (sysdep_routines): Use sysdep_calls as base.
19870 (libm-sysdep_routines): Add generic rule for symbols shared with
19871 libc. Add s_copysign-generic and s_copysign-generic objects.
19872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19873 New file.
19874 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19876 Likewise.
19877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19880
19881 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19882
19883 [BZ #22519]
19884 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19885 the list of locales to be built for testing.
19886 * localedata/is_IS.UTF-8.in: New file.
19887 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19888 on iso14651_t1.
19889
19890 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19891
19892 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19893 <libm-alias-float.h>.
19894 (fabsf): Define using libm_alias_float.
19895
19896 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19897
19898 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19899
19900 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19901
19902 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19903 <libm-alias-float.h>.
19904 (fabsf): Define using libm_alias_float.
19905 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19906 <libm-alias-float.h>.
19907 (lrintf): Define using libm_alias_float.
19908 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19909 <libm-alias-float.h>.
19910 (rintf): Define using libm_alias_float.
19911
19912 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19913 <libm-alias-double.h>.
19914 (fabs): Define using libm_alias_double.
19915 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19916 <libm-alias-double.h>.
19917 (lrint): Define using libm_alias_double.
19918 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19919 <libm-alias-double.h>.
19920 (rint): Define using libm_alias_double.
19921
19922 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19923 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19924 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19925 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19926 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19927 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19928 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19929 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19930 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19931 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19932 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19933 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19935 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19936 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19937 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19939 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19940 s_atan_template.c.
19941 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19943 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19944 s_ceil_template.c.
19945 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19947 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19948 s_cos_template.c.
19949 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19950 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19951 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19952 s_expm1_template.c.
19953 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19954 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19955 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19956 s_fabs_template.c.
19957 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19958 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19959 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19960 s_floor_template.c.
19961 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19962 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19963 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19964 s_frexp_template.c.
19965 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19966 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19967 s_lrint_template.c.
19968 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19969 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19970 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19971 s_modf_template.c.
19972 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19974 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19975 s_nearbyint_template.c.
19976 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19977 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19978 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19979 s_remquo_template.c.
19980 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19981 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19982 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19983 s_rint_template.c.
19984 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19985 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19986 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19987 s_sin_template.c.
19988 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19989 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19990 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19991 s_sincos_template.c.
19992 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19993 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19994 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19995 s_tan_template.c.
19996 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19997 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19998 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19999 s_tanh_template.c.
20000 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20001 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20002 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20003 s_trunc_template.c.
20004 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20005 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20006 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20007 s_atan.c instead of including s_atan.c.
20008 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20009 s_atanf.c instead of including s_atanf.c.
20010 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20011 s_atanl.c instead of including s_atanl.c.
20012 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20013 instead of s_atan.c.
20014 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20015 instead of s_atanf.c.
20016 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20017 instead of s_atanl.c.
20018
20019 * scripts/update-copyrights: Do not handle intl/plural.c
20020 specially.
20021
20022 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20023
20024 [BZ #22432]
20025 * configure.ac (BISON): Require to be present.
20026 * configure: Regenerated.
20027 * intl/Makefile (generated): Add plural.c.
20028 [$(BISON) != no]: Make code unconditional.
20029 (plural.c): Change rule to $(objpfx)plural.c.
20030 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20031 * intl/plural.c: Remove.
20032 * manual/install.texi (Tools for Compilation): Document bison as
20033 required.
20034 * INSTALL: Regenerated.
20035
20036 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20037
20038 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20039 <libm-alias-double.h>.
20040 (llrint): Define using libm_alias_double.
20041 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20042 <libm-alias-float.h>.
20043 (llrintf): Define using libm_alias_float.
20044 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20045 <libm-alias-ldouble.h>.
20046 (llrintl): Define using libm_alias_ldouble.
20047
20048 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20049 declare_mgen_alias instead of weak_alias.
20050 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20051 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20052 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20053
20054 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20055
20056 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20057 Add add_n-generic.
20058 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20059 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20060 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20061
20062 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20063 Add submul_1-generic.
20064 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20065 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20066 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20067
20068 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20069 Add addmul_1-generic.
20070 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20071 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20072 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20073
20074 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20075 Add sub_n-generic.
20076 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20077 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20078 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20079
20080 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20081 Add mul_1-generic.
20082 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20083 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20084 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20085
20086 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20087
20088 According to CLDR, collation rules for Serbian and Bosnian
20089 should be the same as for Croatian.
20090
20091 [BZ #22534]
20092 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20093 and to the list of locales to be built for testing.
20094 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20095 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20096 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20097 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20098
20099 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20100
20101 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20102 to make test case pass.
20103 * localedata/hr_HR.UTF-8.in: Add more test strings.
20104
20105 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20106
20107 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20108
20109 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20110
20111 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20112 the list of locales to built for testing.
20113 * localedata/hr_HR.UTF-8.in: New file.
20114
20115 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20116
20117 [BZ #10580]
20118 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20119 iso14651_t1.
20120 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20121 CLDR (except use ligatures for the digraphs, CLDR does not use
20122 the ligatures), add first_workday, some fixes in the date and time
20123 formats.
20124 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20125 for Đ and đ.
20126 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20127 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20128 Add int_p_cs_precedes and int_n_cs_precedes.
20129 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20130 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20131 LC_MONETARY now).
20132 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20133 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20134 name_miss.
20135 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20136 and lang_lib. Change postal_fmt.
20137
20138 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20139
20140 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20141 <setjmp.h>.
20142 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20143 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20144 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20145 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20146 * sysdeps/generic/setjmpP.h: New file.
20147 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20148 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20149 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20150 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20151 Add jmp_buf-ssp.sym.
20152 (tests): Add tst-saved_mask-1.
20153
20154 2017-11-30 Arjun Shankar <arjun@redhat.com>
20155
20156 [BZ #22375]
20157 CVE-2017-17426
20158 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20159 instead of request2size.
20160
20161 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20162
20163 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20164 (__lllrint): Remove alias.
20165 (lllrint): Likewise.
20166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20167 (__lllrintf): Likewise.
20168 (lllrintf): Likewise.
20169
20170 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20171 <libm-alias-float.h>.
20172 (copysignf): Define using libm_alias_float.
20173 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20174 <libm-alias-float.h>.
20175 (fabsf): Define using libm_alias_float.
20176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20177 Include <libm-alias-float.h>.
20178 (copysignf): Define using libm_alias_float.
20179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20180 <libm-alias-float.h>.
20181 (fabsf): Define using libm_alias_float.
20182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20183 <libm-alias-float.h>.
20184 (fdimf): Define using libm_alias_float.
20185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20186 <libm-alias-float.h>.
20187 (fmaf): Define using libm_alias_float.
20188 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20189 <libm-alias-float.h>.
20190 (llrintf): Define using libm_alias_float.
20191 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20192 Include <libm-alias-float.h>.
20193 (nearbyintf): Define using libm_alias_float.
20194 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20195 <libm-alias-float.h>.
20196 (rintf): Define using libm_alias_float.
20197 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20198 <libm-alias-float.h>.
20199 (llrintf): Define using libm_alias_float.
20200 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20201 <libm-alias-float.h>.
20202 (lrintf): Define using libm_alias_float.
20203 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20204 <libm-alias-float.h>.
20205 (nearbyintf): Define using libm_alias_float.
20206 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20207 <libm-alias-float.h>.
20208 (rintf): Define using libm_alias_float.
20209 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20210 <libm-alias-float.h>.
20211 (ceilf): Define using libm_alias_float.
20212 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20213 <libm-alias-float.h>.
20214 (floorf): Define using libm_alias_float.
20215 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20216 <libm-alias-float.h>.
20217 (fmaf): Define using libm_alias_float.
20218 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20219 <libm-alias-float.h>.
20220 (lrintf): Define using libm_alias_float.
20221 (llrintf): Likewise.
20222 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20223 <libm-alias-float.h>.
20224 (nearbyintf): Define using libm_alias_float.
20225 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20226 <libm-alias-float.h>.
20227 (rintf): Define using libm_alias_float.
20228 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20229 <libm-alias-float.h>.
20230 (truncf): Define using libm_alias_float.
20231 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20232 <libm-alias-float.h>.
20233 (copysignf): Define using libm_alias_float.
20234 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20235 <libm-alias-float.h>.
20236 (fabsf): Define using libm_alias_float.
20237 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20238 <libm-alias-float.h>.
20239 (lrintf): Define using libm_alias_float.
20240 (llrintf): Likewise.
20241 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20242 <libm-alias-float.h>.
20243 (nearbyintf): Define using libm_alias_float.
20244 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20245 <libm-alias-float.h>.
20246 (rintf): Define using libm_alias_float.
20247
20248 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20249
20250 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20251 <libm-alias-double.h>.
20252 (copysign): Define using libm_alias_double.
20253 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20254 <libm-alias-double.h>.
20255 (fabs): Define using libm_alias_double.
20256 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20257 Include <libm-alias-double.h>.
20258 (copysign): Define using libm_alias_double.
20259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20260 <libm-alias-double.h>.
20261 (fabs): Define using libm_alias_double.
20262 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20263 <libm-alias-double.h>.
20264 (fdim): Define using libm_alias_double.
20265 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20266 <libm-alias-double.h>.
20267 (fma): Define using libm_alias_double.
20268 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20269 <libm-alias-double.h>.
20270 (llrint): Define using libm_alias_double.
20271 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20272 Include <libm-alias-double.h>.
20273 (nearbyint): Define using libm_alias_double.
20274 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20275 <libm-alias-double.h>.
20276 (rint): Define using libm_alias_double.
20277 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20278 <libm-alias-double.h>.
20279 (fabs): Define using libm_alias_double.
20280 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20281 <libm-alias-double.h>.
20282 (llrint): Define using libm_alias_double.
20283 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20284 <libm-alias-double.h>.
20285 (nearbyint): Define using libm_alias_double.
20286 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20287 <libm-alias-double.h>.
20288 (rint): Define using libm_alias_double.
20289 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20290 <libm-alias-double.h>.
20291 (ceil): Define using libm_alias_double.
20292 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20293 <libm-alias-double.h>.
20294 (floor): Define using libm_alias_double.
20295 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20296 <libm-alias-double.h>.
20297 (fma): Define using libm_alias_double.
20298 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20299 <libm-alias-double.h>.
20300 (lrint): Define using libm_alias_double.
20301 (llrint): Likewise.
20302 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20303 <libm-alias-double.h>.
20304 (nearbyint): Define using libm_alias_double.
20305 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20306 <libm-alias-double.h>.
20307 (rint): Define using libm_alias_double.
20308 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20309 <libm-alias-double.h>.
20310 (trunc): Define using libm_alias_double.
20311 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20312 <libm-alias-double.h>.
20313 (copysign): Define using libm_alias_double.
20314 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20315 <libm-alias-double.h>.
20316 (fabs): Define using libm_alias_double.
20317 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20318 <libm-alias-double.h>.
20319 (lrint): Define using libm_alias_double.
20320 (llrint): Likewise.
20321 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20322 <libm-alias-double.h>.
20323 (nearbyint): Define using libm_alias_double.
20324 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20325 <libm-alias-double.h>.
20326 (rint): Define using libm_alias_double.
20327
20328 [BZ #22229]
20329 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20330 <math_ldbl_opt.h>.
20331 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20332
20333 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20334 SPARC --disable-multi-arch glibc variants.
20335
20336 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20337 <libm-alias-float.h>.
20338 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20339 if [SHARED].
20340 * sysdeps/x86_64/fpu/multiarch/e_expf.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_log2f.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_logf.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_powf.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/s_ceilf.c: Include
20357 <libm-alias-float.h>.
20358 (ceilf): Define using libm_alias_float.
20359 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20360 <libm-alias-float.h>.
20361 (floorf): Define using libm_alias_float.
20362 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20363 <libm-alias-float.h>.
20364 (fmaf): Define using libm_alias_float.
20365 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20366 <libm-alias-float.h>.
20367 (nearbyintf): Define using libm_alias_float.
20368 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20369 <libm-alias-float.h>.
20370 (rintf): Define using libm_alias_float.
20371 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20372 <libm-alias-float.h>.
20373 (truncf): Define using libm_alias_float.
20374 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20375 (copysignf): Define using libm_alias_float.
20376 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20377 (cosf): Define using libm_alias_float.
20378 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20379 (fabsf): Define using libm_alias_float.
20380 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20381 (fmaxf): Define using libm_alias_float.
20382 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20383 (fminf): Define using libm_alias_float.
20384 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20385 (llrintf): Define using libm_alias_float.
20386 [!__ILP32__] (lrintf): Likewise.
20387 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20388 (sincosf): Define using libm_alias_float.
20389 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20390 (sinf): Define using libm_alias_float.
20391 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20392 (lrintf): Define using libm_alias_float.
20393
20394 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20395 <libm-alias-double.h>.
20396 (atan): Define using libm_alias_double.
20397 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20398 <libm-alias-double.h>.
20399 (ceil): Define using libm_alias_double.
20400 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20401 <libm-alias-double.h>.
20402 (floor): Define using libm_alias_double.
20403 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20404 <libm-alias-double.h>.
20405 (fma): Define using libm_alias_double.
20406 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20407 <libm-alias-double.h>.
20408 (nearbyint): Define using libm_alias_double.
20409 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20410 <libm-alias-double.h>.
20411 (rint): Define using libm_alias_double.
20412 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20413 <libm-alias-double.h>.
20414 (sin): Define using libm_alias_double.
20415 (cos): Likewise.
20416 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20417 <libm-alias-double.h>.
20418 (tan): Define using libm_alias_double.
20419 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20420 <libm-alias-double.h>.
20421 (trunc): Define using libm_alias_double.
20422 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20423 (copysign): Define using libm_alias_double.
20424 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20425 (fabs): Define using libm_alias_double.
20426 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20427 (fmax): Define using libm_alias_double.
20428 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20429 (fmin): Define using libm_alias_double.
20430 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20431 (llrint): Define using libm_alias_double.
20432 [!__ILP32__] (lrint): Likewise.
20433 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20434 (lrint): Define using libm_alias_double.
20435
20436 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20437
20438 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20439 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20440 objects.
20441 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20442 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20443 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20444 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20445 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20446 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20447
20448 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20449 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20450 objects.
20451 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20452 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20453 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20454 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20455 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20457
20458 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20459 (libm-sysdep_routines): Add s_nearbyint-generic and
20460 s_nearbyintf-generic objects.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20462 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20463 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20464 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20465 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20466 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20467
20468 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20469 Add s_finitef-generic and s_finite-generic objects.
20470 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20471 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20472 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20473 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20474 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20475 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20476
20477 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20478 Add s_isinff-generic and s_isinf-generic objects.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20482 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20484 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20485
20486 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20487 Add s_isnanf-generic and s_isnan-generic objects.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20489 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20491 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20494
20495 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20496 macro.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20498 rule.
20499 (sysdep_routines): Use sysdep_calls as base.
20500 (libm-sysdep_routines): Add generic rule for symbols shared with
20501 libc. Add s_signbit-generic and s_signbitf-generic objects.
20502 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20503 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20504 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20505 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20506 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20507 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20508
20509 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20510
20511 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20512 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20513 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20514 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20515 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20516 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20517 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20518 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20519 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20520 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20521 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20522 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20523 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20524 libm_alias_float_r.
20525 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20526 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20527 (logf): Likewise.
20528 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20529 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20530 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20531 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20532 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20533 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20534 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20535 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20536 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20537 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20538 libm_alias_float.
20539 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20540 (cosf): Likewise.
20541 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20542 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20543 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20544 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20545 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20546 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20547 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20548 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20549 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20550 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20551 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20552 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20553 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20554 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20555 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20556 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20557 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20558 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20559 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20560 libm_alias_float.
20561 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20562 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20563 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20564 * sysdeps/ia64/fpu/w_lgammaf_main.c
20565 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20566 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20567
20568 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20569 Alexandre Oliva <aoliva@redhat.com>
20570
20571 [BZ #17750]
20572 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20573 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20574 accents sorting.
20575 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20576 sorting.
20577 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20578 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20579 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20580 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20581 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20582 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20583 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20584 instead of “ifdef DIACRIT_BACKWARD”.
20585
20586 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20587
20588 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20589 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20590 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20591 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20592 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20593 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20594 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20595 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20596 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20597 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20598 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20599 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20600 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20601 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20602 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20603 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20604 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20605 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20607 ($(have-as-vis3) == yes): Remove conditional.
20608 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20609 Likewise.
20610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20611 file.
20612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20613 file.
20614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20615 file.
20616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20617 file.
20618 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20619 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20620 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20621 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20622 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20623 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20624 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20625 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20626
20627 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20628
20629 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20630 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20631 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20632 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20633 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20634 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20635 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20636 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20637 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20638 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20639 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20640 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20641 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20642 libm_alias_double_r.
20643 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20644 (log): Likewise.
20645 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20646 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20647 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20648 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20649 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20650 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20651 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20652 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20653 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20654 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20655 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20656 libm_alias_double.
20657 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20658 (cos): Likewise.
20659 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20660 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20661 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20662 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20663 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20664 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20665 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20666 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20667 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20668 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20669 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20670 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20671 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20672 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20673 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20674 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20675 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20676 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20677 libm_alias_double.
20678 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20679 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20680 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20681 * sysdeps/ia64/fpu/w_lgamma_main.c
20682 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20683 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20684
20685 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20686
20687 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20688 address of $global$ into %dp register earlier. Use pc-relative
20689 instruction sequence for PIC case.
20690
20691 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20692
20693 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20694 (asinhf): Define using libm_alias_float.
20695 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20696 (atanf): Define using libm_alias_float.
20697 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20698 (cbrtf): Define using libm_alias_float.
20699 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20700 (ceilf): Define using libm_alias_float.
20701 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20702 (copysignf): Define using libm_alias_float.
20703 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20704 (expm1f): Define using libm_alias_float.
20705 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20706 (fabsf): Define using libm_alias_float.
20707 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20708 (floorf): Define using libm_alias_float.
20709 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20710 (fmaxf): Define using libm_alias_float.
20711 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20712 (fminf): Define using libm_alias_float.
20713 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20714 (frexpf): Define using libm_alias_float.
20715 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20716 (llrintf): Define using libm_alias_float.
20717 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20718 (logbf): Define using libm_alias_float.
20719 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20720 (lrintf): Define using libm_alias_float.
20721 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20722 (nearbyintf): Define using libm_alias_float.
20723 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20724 (remquof): Define using libm_alias_float.
20725 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20726 (rintf): Define using libm_alias_float.
20727 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20728 (truncf): Define using libm_alias_float.
20729 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20730 <libm-alias-float.h>.
20731 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20732 if [SHARED].
20733 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20734 <libm-alias-float.h>.
20735 (expf): Define using libm_alias_float, or libm_alias_float_other
20736 if [SHARED].
20737 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20738 <libm-alias-float.h>.
20739 (log2f): Define using libm_alias_float, or libm_alias_float_other
20740 if [SHARED].
20741 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20742 <libm-alias-float.h>.
20743 (logf): Define using libm_alias_float, or libm_alias_float_other
20744 if [SHARED].
20745 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20746 <libm-alias-float.h>.
20747 (powf): Define using libm_alias_float, or libm_alias_float_other
20748 if [SHARED].
20749 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20750 <libm-alias-float.h>.
20751 (cosf): Define using libm_alias_float.
20752 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20753 <libm-alias-float.h>.
20754 (sincosf): Define using libm_alias_float.
20755 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20756 <libm-alias-float.h>.
20757 (sinf): Define using libm_alias_float.
20758 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20759 (fmaxf): Define using libm_alias_float.
20760 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20761 (fminf): Define using libm_alias_float.
20762 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20763 <libm-alias-float.h>.
20764 (fmaf): Define using libm_alias_float.
20765
20766 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20767 (asinh): Define using libm_alias_double.
20768 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20769 (atan): Define using libm_alias_double.
20770 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20771 (cbrt): Define using libm_alias_double.
20772 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20773 (ceil): Define using libm_alias_double.
20774 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20775 (copysign): Define using libm_alias_double.
20776 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20777 (expm1): Define using libm_alias_double.
20778 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20779 (fabs): Define using libm_alias_double.
20780 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20781 (fdim): Define using libm_alias_double.
20782 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20783 (floor): Define using libm_alias_double.
20784 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20785 (fmax): Define using libm_alias_double.
20786 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20787 (fmin): Define using libm_alias_double.
20788 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20789 (frexp): Define using libm_alias_double.
20790 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20791 (llrint): Define using libm_alias_double.
20792 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20793 (logb): Define using libm_alias_double.
20794 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20795 (lrint): Define using libm_alias_double.
20796 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20797 (nearbyint): Define using libm_alias_double.
20798 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20799 (remquo): Define using libm_alias_double.
20800 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20801 (rint): Define using libm_alias_double.
20802 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20803 (trunc): Define using libm_alias_double.
20804 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20805 (fmax): Define using libm_alias_double.
20806 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20807 (fmin): Define using libm_alias_double.
20808 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20809 (fma): Define using libm_alias_double.
20810
20811 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20812
20813 [BZ #22370]
20814 * elf/dl-hwcaps.c (ROUND): Removed.
20815 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20816 and ELF_NOTE_NEXT_OFFSET.
20817 * elf/dl-load.c (ROUND): Removed.
20818 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20819 * elf/readelflib.c (ROUND): Removed.
20820 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20821 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20822 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20823 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20824
20825 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20826
20827 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20828 [!__fmaf] (fmaf): Define using libm_alias_float.
20829
20830 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20831 [!__fma] (fma): Define using libm_alias_double.
20832 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20833
20834 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20835
20836 [BZ #22336]
20837 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20838 and implement the collation rules for cs from CLDR on top of that.
20839 * Makefile: Add cs_CZ.UTF-8 to test-input.
20840 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20841
20842 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20843
20844 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20845
20846 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20847 Icarus Sparry <icarus.w.sparry@intel.com>
20848
20849 * benchtests/Makefile:Add BENCHSET to allow subsets of
20850 benchmarks to be run.
20851 * benchtests/README: Add documentation for: Running subsets of
20852 benchmarks.
20853
20854 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20855
20856 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20857 range of tests names.
20858
20859 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20860 result from property and remove "max", min" and "mean" from
20861 required properties based on benchtests/bench-skeleton.c.
20862
20863 2017-11-28 Florian Weimer <fweimer@redhat.com>
20864
20865 [BZ #20826]
20866 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20867 due to Internet requirement.
20868 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20869 tst-getaddrinfo5.
20870 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20871
20872 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20873
20874 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20875 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20876 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20877 (sysdep_routines): Add memset-ultra1.
20878 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20879 file.
20880 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20881 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20882 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20883 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20884 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20885 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20886 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20887 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20888
20889 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20890 file.
20891 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20892 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20893 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20894 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20895 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20896 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20897 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20898 macro.
20899 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20900 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20901 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20902 (sysdep_routines): Add memcpy-ultra1.
20903 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20904 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20905
20906 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20907
20908 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20909 (cfloat_versions): Take function argument without trailing 'f'.
20910 Call libm_alias_float_other.
20911 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20912 * sysdeps/alpha/fpu/cargf.c: Likewise.
20913 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20914 * sysdeps/alpha/fpu/conjf.c: Likewise.
20915 * sysdeps/alpha/fpu/crealf.c: Likewise.
20916 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20917 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20918 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20919 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20920 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20921 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20922 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20923 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20924 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20925 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20926 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20927 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20928 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20929 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20930 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20931 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20932 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20933 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20934 (clog10f): Use libm_alias_float_other.
20935 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20936 (ceilf): Define using libm_alias_float.
20937 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20938 (copysignf): Define using libm_alias_float.
20939 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20940 (fabsf): Define using libm_alias_float.
20941 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20942 (floorf): Define using libm_alias_float.
20943 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20944 (fmaxf): Define using libm_alias_float.
20945 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20946 (fminf): Define using libm_alias_float.
20947 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20948 (lrintf): Define using libm_alias_float.
20949 (llrintf): Likewise.
20950 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20951 (lroundf): Define using libm_alias_float.
20952 (llroundf): Likewise.
20953 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20954 (rintf): Define using libm_alias_float.
20955 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20956 (truncf): Define using libm_alias_float.
20957
20958 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20959 (ceilf): Define using libm_alias_float.
20960 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20961 (floorf): Define using libm_alias_float.
20962 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20963 (fmaf): Define using libm_alias_float.
20964 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20965 (fmaxf): Define using libm_alias_float.
20966 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20967 (fminf): Define using libm_alias_float.
20968 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20969 (llrintf): Define using libm_alias_float.
20970 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20971 (llroundf): Define using libm_alias_float.
20972 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20973 (lrintf): Define using libm_alias_float.
20974 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20975 (lroundf): Define using libm_alias_float.
20976 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20977 <libm-alias-float.h>.
20978 (nearbyintf): Define using libm_alias_float.
20979 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20980 (rintf): Define using libm_alias_float.
20981 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20982 (roundf): Define using libm_alias_float.
20983 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20984 (truncf): Define using libm_alias_float.
20985
20986 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20987 (ceil): Define using libm_alias_double.
20988 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20989 (copysign): Define using libm_alias_double.
20990 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20991 (fabs): Define using libm_alias_double.
20992 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20993 (floor): Define using libm_alias_double.
20994 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20995 (fmax): Define using libm_alias_double.
20996 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20997 (fmin): Define using libm_alias_double.
20998 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20999 (lrint): Define using libm_alias_double.
21000 (llrint): Likewise.
21001 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21002 (lround): Define using libm_alias_double.
21003 (llround): Likewise.
21004 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21005 (rint): Define using libm_alias_double.
21006 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21007 (trunc): Define using libm_alias_double.
21008
21009 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21010 (libm_alias_double_r): Add semicolon after weak_alias call.
21011
21012 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21013
21014 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21015 (ceil): Define using libm_alias_double.
21016 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21017 (floor): Define using libm_alias_double.
21018 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21019 (fma): Define using libm_alias_double.
21020 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21021 (fmax): Define using libm_alias_double.
21022 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21023 (fmin): Define using libm_alias_double.
21024 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21025 (llrint): Define using libm_alias_double.
21026 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21027 (llround): Define using libm_alias_double.
21028 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21029 (lrint): Define using libm_alias_double.
21030 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21031 (lround): Define using libm_alias_double.
21032 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21033 (nearbyint): Define using libm_alias_double.
21034 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21035 (rint): Define using libm_alias_double.
21036 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21037 (round): Define using libm_alias_double.
21038 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21039 (trunc): Define using libm_alias_double.
21040
21041 2017-11-27 Florian Weimer <fweimer@redhat.com>
21042
21043 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21044 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21045 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21046 (tests): Add tst-mlock2.
21047 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21048 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21049 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21050 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21051 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21052 for mlock. Document mlock2.
21053
21054 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21055
21056 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21057 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21058 Likewise.
21059 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21060 Likewise.
21061 * sysdeps/x86/Makeconfig: New file.
21062 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21063 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21064 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21065 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21066 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21067 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21068 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21069 Likewise.
21070 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21071 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21072 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21073 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21074 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21075 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21076 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21077 * manual/math.texi (Mathematics): Document support for _Float64x.
21078 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21079 * stdlib/Versions (GLIBC_2.27): Likewise.
21080 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21081 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21082 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21083 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21084 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21085 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21086 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21087 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21088 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21089 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21090 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21091 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21092 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21093 Likewise.
21094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21095 Likewise.
21096 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21097 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21098 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21099 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21100 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21101 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21102 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21103 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21104 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21105 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21106 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21107 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21108 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21109 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21110
21111 2017-11-27 Andreas Schwab <schwab@suse.de>
21112
21113 * elf/Makefile (dl-routines): Add dl-sort-maps.
21114 * elf/dl-sort-maps.c: New file.
21115 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21116 (_dl_sort_maps): Declare.
21117 * elf/dl-fini.c (_dl_sort_fini): Remove.
21118 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21119 * elf/dl-close.c (_dl_close_worker): Likewise.
21120 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21121 open-coding it.
21122 * elf/dl-open.c (dl_open_worker): Likewise.
21123
21124 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21125
21126 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21127 using libm_alias_float128.
21128 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21129 Likewise.
21130 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21131 Likewise.
21132 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21133 (setpayloadsigf128): Likewise.
21134 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21135 Likewise.
21136 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21137 Likewise.
21138
21139 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21140 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21141 -mfloat128 to CFLAGS.
21142 ($(foreach
21143 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21144 Likewise.
21145 (CFLAGS-libm-test-support-float64x.c): New variable.
21146 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21147 $(f128-loader-link) to gnulib-tests.
21148
21149 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21150 (libm_alias_float128_other_r): If
21151 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21152 alias.
21153 (libm_alias_float128_r): Add semicolon after weak_alias call.
21154 * sysdeps/generic/libm-alias-ldouble.h
21155 (libm_alias_ldouble_other_r_f128): New macro.
21156 (libm_alias_ldouble_other_r_f64x): Likewise.
21157 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21158 and libm_alias_ldouble_other_r_f64x.
21159 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21160 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21161 (libm_alias_ldouble_other_r_f128): New macro.
21162 (libm_alias_ldouble_other_r_f64x): Likewise.
21163 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21164 and libm_alias_ldouble_other_r_f64x.
21165
21166 * stdlib/strfroml.c: Always include <stdlib.h>.
21167 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21168 undefine as macro and define as weak alias.
21169 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21170 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21171 <stdlib.h>.
21172 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21173 Define and later undefine as macro and define as weak alias.
21174
21175 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21176 Define and later undefine as macro. Define as weak alias if
21177 [!USE_WIDE_CHAR].
21178 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21179 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21180 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21181 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21182 Define and later undefine as macro. Define as weak alias if
21183 [!USE_WIDE_CHAR].
21184 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21185 Define and later undefine as macro. Define as weak alias if
21186 [USE_WIDE_CHAR].
21187 * sysdeps/ieee754/float128/strtof128_l.c
21188 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21189 Define and later undefine as macro. Define as weak alias if
21190 [!USE_WIDE_CHAR].
21191 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21192 Define and later undefine as macro. Define as weak alias if
21193 [USE_WIDE_CHAR].
21194 * sysdeps/ieee754/ldbl-128/strtold_l.c
21195 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21196 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21197 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21198 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21199 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21200 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21201 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21202 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21203 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21204 * sysdeps/ieee754/ldbl-96/strtold_l.c
21205 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21206 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21207 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21208 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21209
21210 * math/test-float64x.h: New file.
21211 * math/Makefile (type-float64x-yes): New variable.
21212 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21213
21214 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21215 function-like macro.
21216 (min_of_type_): Likewise.
21217 (min_of_type_l): Likewise.
21218 (min_of_type_f128): Likewise.
21219 (min_of_type): Pass () as last argument of __MATH_TG.
21220
21221 * stdlib/tst-strtod-round-skeleton.c
21222 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21223 headers.
21224
21225 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21226 for combinations of long double with _Float64 and _Float64x.
21227
21228 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21229 (__DECL_SIMD_cosf32): Likewise.
21230 (__DECL_SIMD_cosf64): Likewise.
21231 (__DECL_SIMD_cosf32x): Likewise.
21232 (__DECL_SIMD_cosf64x): Likewise.
21233 (__DECL_SIMD_cosf128x): Likewise.
21234 (__DECL_SIMD_sinf16): Likewise.
21235 (__DECL_SIMD_sinf32): Likewise.
21236 (__DECL_SIMD_sinf64): Likewise.
21237 (__DECL_SIMD_sinf32x): Likewise.
21238 (__DECL_SIMD_sinf64x): Likewise.
21239 (__DECL_SIMD_sinf128x): Likewise.
21240 (__DECL_SIMD_sincosf16): Likewise.
21241 (__DECL_SIMD_sincosf32): Likewise.
21242 (__DECL_SIMD_sincosf64): Likewise.
21243 (__DECL_SIMD_sincosf32x): Likewise.
21244 (__DECL_SIMD_sincosf64x): Likewise.
21245 (__DECL_SIMD_sincosf128x): Likewise.
21246 (__DECL_SIMD_logf16): Likewise.
21247 (__DECL_SIMD_logf32): Likewise.
21248 (__DECL_SIMD_logf64): Likewise.
21249 (__DECL_SIMD_logf32x): Likewise.
21250 (__DECL_SIMD_logf64x): Likewise.
21251 (__DECL_SIMD_logf128x): Likewise.
21252 (__DECL_SIMD_expf16): Likewise.
21253 (__DECL_SIMD_expf32): Likewise.
21254 (__DECL_SIMD_expf64): Likewise.
21255 (__DECL_SIMD_expf32x): Likewise.
21256 (__DECL_SIMD_expf64x): Likewise.
21257 (__DECL_SIMD_expf128x): Likewise.
21258 (__DECL_SIMD_powf16): Likewise.
21259 (__DECL_SIMD_powf32): Likewise.
21260 (__DECL_SIMD_powf64): Likewise.
21261 (__DECL_SIMD_powf32x): Likewise.
21262 (__DECL_SIMD_powf64x): Likewise.
21263 (__DECL_SIMD_powf128x): Likewise.
21264
21265 * stdlib/Versions (libc): Move entries for wcstof128 and
21266 wcstof128_l to ....
21267 * wcsmbs/Versions (libc): ... here.
21268 Include <float128-abi.h>.
21269
21270 2017-11-24 Florian Weimer <fweimer@redhat.com>
21271
21272 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21273 bits/mman-shared.h.
21274 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21275 <bits/mman-shared.h>.
21276 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21277 to ...
21278 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21279 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21280 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21281 <bits/mman-shared.h>.
21282
21283 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21284
21285 [BZ #22457]
21286 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21287 posix_memalign/free.
21288 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21289
21290 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21291
21292 [BZ #22469]
21293 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21294 and implement the collation rules for pl from CLDR on top of that.
21295 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21296 of locales to be built for testing.
21297 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21298
21299 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21300
21301 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21302 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21303 libm_alias_ldouble_other.
21304 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21305 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21306 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21307 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21308 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21309 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21310 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21311 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21312 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21313 libm_alias_ldouble_r.
21314 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21315 libm_alias_ldouble_other.
21316 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21317 (log10l): Likewise.
21318 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21319 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21320 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21321 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21322 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21323 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21324 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21325 (atan2l): Likewise.
21326 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21327 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21328 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21329 libm_alias_ldouble.
21330 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21331 (cosl): Likewise.
21332 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21333 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21334 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21335 (expl): Likewise.
21336 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21337 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21338 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21339 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21340 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21341 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21342 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21343 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21344 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21345 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21346 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21347 libm_alias_ldouble.
21348 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21349 libm_alias_ldouble_other.
21350 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21351 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21352 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21353 libm_alias_ldouble.
21354 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21355 libm_alias_ldouble_other.
21356 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21357 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21358 * sysdeps/ia64/fpu/w_lgammal_main.c
21359 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21360 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21361
21362 2017-11-23 Florian Weimer <fweimer@redhat.com>
21363
21364 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21365 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21366 alike. Remove freeres marker.
21367 * malloc/arena.c (arena_thread_freeres): Call
21368 tcache_thread_shutdown.
21369
21370 2017-11-23 Florian Weimer <fweimer@redhat.com>
21371
21372 [BZ #22459]
21373 Export nscd hash function as __nss_hash.
21374 * include/nss.h (__nss_hash): Declare.
21375 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21376 symbol.
21377 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21378 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21379 of __nscd_hash.
21380 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21381 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21382 * nss/Makefiles (routines): Add nss_hash.
21383 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21384 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21385 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21386 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21387
21388 2017-11-23 Florian Weimer <fweimer@redhat.com>
21389
21390 [BZ #22478]
21391 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21392 Return error code, not -1.
21393 * signal/tst-sigwait-eintr.c: New file.
21394 * signal/Makefile (tests): Add tst-sigwait-eintr.
21395
21396 2017-11-23 Florian Weimer <fweimer@redhat.com>
21397
21398 Linux: Add memfd_create system call wrapper
21399 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21400 tst-memfd_create.
21401 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21402 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21403 [__USE_GNU] (memfd_create): Declare.
21404 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21405 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21406 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21407 * sysdeps/unix/sysv/linux/**.abilist: Update.
21408 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21409
21410 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21411
21412 * localedata/gen-locale.sh: Fix typo in variable name.
21413
21414 * resolv/res_debug.c (p_secstodate): Condition definition on
21415 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21416 directly as __p_secstodate, and as a compat symbol. Do not use
21417 libresolv_hidden_def.
21418 * resolv/resolv.h (p_secstodate): Remove macro and function
21419 declaration.
21420 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21421 using p_secstodate.
21422 * include/resolv.h (__p_secstodate): Do not use
21423 libresolv_hidden_proto.
21424 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21425 (tests-internal): ... here.
21426 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21427 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21428 and declare and use __p_secstodate and use compat_symbol_reference
21429 in that case.
21430 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21431 implementation returning 77.
21432
21433 [BZ #22463]
21434 * resolv/res_debug.c: Include <libc-diag.h>.
21435 (p_secstodate): Assert time_t at least as wide as u_long. On
21436 overflow, use integer seconds since the epoch as output, or use
21437 "<overflow>" as output and set errno to EOVERFLOW if integer
21438 seconds since the epoch would be 14 or more characters.
21439 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21440 for sprintf call.
21441 * resolv/tst-p_secstodate.c: New file.
21442 * resolv/Makefile (tests): Add tst-p_secstodate.
21443 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21444
21445 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21446 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21447 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21448
21449 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21450
21451 * posix/regcomp.c (init_word_char): Add comments.
21452
21453 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21454
21455 [BZ #22447]
21456 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21457 strlen to compute length of ut_user and set trailing NUL byte of
21458 result explicitly.
21459
21460 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21461
21462 [BZ #15537]
21463 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21464 using “copy "iso14651_t1"” and then implementing the
21465 collation rules for lv from CLDR on top of that.
21466 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21467 of locales to be built for testing.
21468 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21469 sorting.
21470
21471 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21472
21473 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21474 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21475 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21476 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21477 [__USE_MISC] (MADV_HWPOISON): New macro.
21478 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21479
21480 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21481
21482 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21483 -Wmissing-braces on GCC 4.9.
21484
21485 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21486
21487 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21488 * sysdeps/s390/s390-32/start.S (_start): Likewise
21489 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21490 (thread_start): Likewise.
21491 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21492 (thread_start): Likewise.
21493 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21494 (__makecontext_ret): Likewise.
21495 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21496 (__makecontext_ret): Likewise.
21497
21498 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21499
21500 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21501 __wcschrnul): Remove attribute_hidden.
21502
21503 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21504
21505 regex: don't assume uint64_t or uint32_t
21506 This avoids -Werror=overflow errors for 32-bit systems in
21507 the 64-bit case. Problem reported by Joseph Myers in:
21508 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21509 Also, when this code is used in Gnulib it ports to platforms
21510 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21511 them, and on some 32-bit compilers there is no uint64_t.
21512 Problem reported by Gianluigi Tiesi in:
21513 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21514 * posix/regcomp.c (init_word_char): Don't assume that the types
21515 uint64_t and uint32_t exist. Adapted from Gnulib patch
21516 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21517 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21518
21519 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21520
21521 * sysdeps/aarch64/memset-reg.h: New file.
21522 * sysdeps/aarch64/memset.S: Use it.
21523 (__memset): Rename to MEMSET macro.
21524 [ZVA_MACRO]: Use zva_macro.
21525 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21526 Add memset_generic and memset_falkor.
21527 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21528 (__libc_ifunc_impl_list): Add memset ifuncs.
21529 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21530 local variable zva_size.
21531 * sysdeps/aarch64/multiarch/memset.c: New file.
21532 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21533 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21534 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21535 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21536 (DCZID_DZP_MASK): New macro.
21537 (DCZID_BS_MASK): Likewise.
21538 (init_cpu_features): Read and set zva_size.
21539 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21540 (struct cpu_features): New member zva_size.
21541
21542 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21543 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21544 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21545
21546 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21547 backwards. Fix timing computation.
21548 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21549 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21550 on memset by N at a time. Fix timing computation.
21551
21552 2017-11-20 Florian Weimer <fweimer@redhat.com>
21553
21554 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21555 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21556
21557 2017-11-19 Florian Weimer <fweimer@redhat.com>
21558
21559 manual: Document mprotect
21560 * manual/memory.texi (Memory Protection): New section.
21561 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21562 documentation of PROT_* flags and reference the Memory Protection
21563 section instead.
21564
21565 2017-11-19 Florian Weimer <fweimer@redhat.com>
21566
21567 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21568 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21569 (Scatter-Gather): ... to here. Remove misleading comment.
21570
21571 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21572
21573 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21574 style.
21575
21576 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21577 when /proc/<pid>/setgroups does not exist.
21578
21579 2017-11-18 Florian Weimer <fweimer@redhat.com>
21580
21581 * sysdeps/unix/sysv/linux/tst-ttyname.c
21582 (become_root_in_mount_ns): Remove.
21583 (do_in_chroot_1): Call support_enter_mount_namespace.
21584 (do_in_chroot_2): Likewise.
21585 (do_test): Call support_become_root early.
21586
21587 2017-11-18 Florian Weimer <fweimer@redhat.com>
21588
21589 * support/namespace.h (support_enter_mount_namespace): Declare.
21590 * support/support_enter_mount_namespace.c: New file.
21591 * support/Makefile (libsupport-routines): Add
21592 support_enter_mount_namespace.
21593
21594 2017-11-18 Florian Weimer <fweimer@redhat.com>
21595
21596 * support/temp_file.c (support_create_temp_directory): Use
21597 test_dir and do not rely on the presence of the XXXXXX suffix.
21598 * support/temp_file.h (support_create_temp_directory): Update
21599 comment.
21600 * support/tst-xreadlink.c (do_test): Adjust.
21601 * support/support_chroot.c (support_chroot_create): Likewise.
21602
21603 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21604
21605 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21606 macro.
21607 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21608 htm-no-suspend.
21609
21610 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21611
21612 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21613 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21614 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21615 (ceill): Define using libm_alias_ldouble.
21616 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21617 <libm-alias-ldouble.h>.
21618 (copysignl): Define using libm_alias_ldouble.
21619 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21620 (fabsl): Define using libm_alias_ldouble.
21621 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21622 (floorl): Define using libm_alias_ldouble.
21623 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21624 (fmaxl): Define using libm_alias_ldouble.
21625 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21626 (fminl): Define using libm_alias_ldouble.
21627 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21628 (llrintl): Define using libm_alias_ldouble.
21629 (lrintl): Likewise.
21630 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21631 <libm-alias-ldouble.h>.
21632 (nearbyintl): Define using libm_alias_ldouble.
21633 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21634 (truncl): Define using libm_alias_ldouble.
21635 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21636 <libm-alias-ldouble.h>.
21637 (lrintl): Define using libm_alias_ldouble.
21638
21639 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21640 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21641 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21642 (asinhl): Define using libm_alias_ldouble.
21643 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21644 (atanl): Define using libm_alias_ldouble.
21645 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21646 (cbrtl): Define using libm_alias_ldouble.
21647 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21648 (ceill): Define using libm_alias_ldouble.
21649 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21650 (copysignl): Define using libm_alias_ldouble.
21651 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21652 (fabsl): Define using libm_alias_ldouble.
21653 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21654 (floorl): Define using libm_alias_ldouble.
21655 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21656 (fmaxl): Define using libm_alias_ldouble.
21657 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21658 (fminl): Define using libm_alias_ldouble.
21659 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21660 (frexpl): Define using libm_alias_ldouble.
21661 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21662 (llrintl): Define using libm_alias_ldouble.
21663 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21664 (logbl): Define using libm_alias_ldouble.
21665 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21666 (lrintl): Define using libm_alias_ldouble.
21667 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21668 (nearbyintl): Define using libm_alias_ldouble.
21669 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21670 (nextafterl): Define using libm_alias_ldouble.
21671 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21672 (remquol): Define using libm_alias_ldouble.
21673 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21674 (rintl): Define using libm_alias_ldouble.
21675 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21676 (truncl): Define using libm_alias_ldouble.
21677 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21678 (fmaxl): Define using libm_alias_ldouble.
21679 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21680 (fminl): Define using libm_alias_ldouble.
21681
21682 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21683 to C syntax instead of availability and properties of types.
21684 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21685 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21686 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21687 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21688 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21689 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21690
21691 2017-11-17 Florian Weimer <fweimer@redhat.com>
21692
21693 support_become_root: Enable file creation in namespaces.
21694 * support/support_become_root.c (setup_mapping): New function.
21695 (support_become_root): Call it.
21696
21697 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21698
21699 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21700 macro.
21701
21702 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21703
21704 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21705 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21706
21707 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21708
21709 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21710
21711 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21712 version to 4.14.
21713
21714 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21715
21716 * INSTALL: Fix botched up regeneration.
21717
21718 * NEWS: Update sourceare link to https.
21719 * configure.ac: Likewise.
21720 * crypt/md5test-giant.c: Likewise.
21721 * dlfcn/bug-atexit1.c: Likewise.
21722 * dlfcn/bug-atexit2.c: Likewise.
21723 * localedata/README: Likewise.
21724 * malloc/tst-mallocfork.c: Likewise.
21725 * manual/install.texi: Likewise.
21726 * nptl/tst-pthread-getattr.c: Likewise.
21727 * stdio-common/tst-fgets.c: Likewise.
21728 * stdio-common/tst-fwrite.c: Likewise.
21729 * sunrpc/Makefile: Likewise.
21730 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21731 * wcsmbs/tst-mbrtowc2.c: Likewise.
21732 * configure: Regenerate.
21733 * INSTALL: Regenerate.
21734
21735 2017-11-15 Martin Sebor <msebor@redhat.com>
21736
21737 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21738 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21739 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21740
21741 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21742
21743 [BZ #22145]
21744 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21745 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21746
21747 [BZ #22145]
21748 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21749 Defer is_pty check until end of the function.
21750 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21751
21752 [BZ #22145]
21753 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21754 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21755 (ttyname): Likewise.
21756 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21757 (__ttyname_r): Likewise.
21758
21759 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21760 int to bool.
21761
21762 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21763
21764 * manual/terminal.texi (Is It a Terminal):
21765 Mention ENODEV for ttyname and ttyname_r.
21766
21767 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21768
21769 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21770 constant and macro.
21771
21772 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21773 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21774 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21775 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21776 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21777 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21778
21779 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21780
21781 * signal/sigrelse.c (sigrelse): Optimize implementation.
21782
21783 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21784 (__sigpause): Rely on __sigsuspend to implement single thread
21785 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21786
21787 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21788
21789 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21790 kernel version to 4.14.
21791
21792 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21793
21794 [BZ #22442]
21795 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21796 Check if ifname is too long.
21797
21798 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21799
21800 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21801
21802 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21803
21804 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21805 was accidentally lost.
21806
21807 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21808
21809 * localedata/locales/az_IR: Add standard copyright header.
21810
21811 2017-11-15 Florian Weimer <fweimer@redhat.com>
21812
21813 [BZ #22439]
21814 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21815 not just the top one. Output a new "subheaps" statistic.
21816
21817 2017-11-15 Florian Weimer <fweimer@redhat.com>
21818
21819 [BZ #22408]
21820 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21821 under the per-arena lock.
21822 * malloc/Makefile (tests): Add tst-malloc_info.
21823 (tst-malloc_info): Link with libpthread.
21824 * malloc/tst-malloc_info.c: New file.
21825
21826 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21827
21828 [BZ #21660]
21829 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21830 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21831 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21832 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21833 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21834 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21835 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21836 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21837 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21838 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21839 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21840 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21841 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21842 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21843 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21844 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21845 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21846 (__floating_type): Likewise.
21847 (__real_integer_type): Likewise.
21848 (__complex_integer_type): Likewise.
21849 (__expr_is_real): Likewise.
21850 (__tgmath_real_type_sub): Likewise.
21851 (__tgmath_real_type): Likewise.
21852 (__tgmath_complex_type_sub): Likewise.
21853 (__tgmath_complex_type): Likewise.
21854 (__TGMATH_F128): Likewise.
21855 (__TGMATH_CF128): Likewise.
21856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21857 new macros.
21858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21859 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21860 Likewise.
21861 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21862 Likewise.
21863 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21864 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21865 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21866 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21867 Likewise.
21868 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21869 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21870 Likewise.
21871 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21872 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21873 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21874 Likewise.
21875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21876 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21877 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21878 (cimag): Likewise.
21879 (creal): Likewise.
21880
21881 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21882
21883 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21884 for stpncpy calls for GCC 8.
21885 (test_strncat): Disable -Wstringop-truncation warning for strncat
21886 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21887 strncat call for GCC 7.
21888 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21889 calls for GCC 8.
21890 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21891 trailing NUL.
21892
21893 * string/bug-strncat1.c: Include <libc-diag.h>.
21894 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21895
21896 2017-11-13 Claude Paroz <claude@2xlibre.net>
21897
21898 [BZ #22387]
21899 * localedata/locales/aa_DJ: Improved readibility by replacing
21900 <Uxxxx> sequences in the ASCII printable range by their ASCII
21901 character equivalents.
21902 * localedata/locales/aa_ER: Likewise.
21903 * localedata/locales/aa_ER@saaho: Likewise.
21904 * localedata/locales/aa_ET: Likewise.
21905 * localedata/locales/af_ZA: Likewise.
21906 * localedata/locales/agr_PE: Likewise.
21907 * localedata/locales/ak_GH: Likewise.
21908 * localedata/locales/am_ET: Likewise.
21909 * localedata/locales/anp_IN: Likewise.
21910 * localedata/locales/ar_AE: Likewise.
21911 * localedata/locales/ar_BH: Likewise.
21912 * localedata/locales/ar_DZ: Likewise.
21913 * localedata/locales/ar_EG: Likewise.
21914 * localedata/locales/ar_IN: Likewise.
21915 * localedata/locales/ar_IQ: Likewise.
21916 * localedata/locales/ar_JO: Likewise.
21917 * localedata/locales/ar_KW: Likewise.
21918 * localedata/locales/ar_LB: Likewise.
21919 * localedata/locales/ar_LY: Likewise.
21920 * localedata/locales/ar_MA: Likewise.
21921 * localedata/locales/ar_OM: Likewise.
21922 * localedata/locales/ar_QA: Likewise.
21923 * localedata/locales/ar_SA: Likewise.
21924 * localedata/locales/ar_SD: Likewise.
21925 * localedata/locales/ar_SS: Likewise.
21926 * localedata/locales/ar_SY: Likewise.
21927 * localedata/locales/ar_TN: Likewise.
21928 * localedata/locales/ar_YE: Likewise.
21929 * localedata/locales/as_IN: Likewise.
21930 * localedata/locales/ast_ES: Likewise.
21931 * localedata/locales/ayc_PE: Likewise.
21932 * localedata/locales/az_AZ: Likewise.
21933 * localedata/locales/az_IR: Likewise.
21934 * localedata/locales/be_BY: Likewise.
21935 * localedata/locales/be_BY@latin: Likewise.
21936 * localedata/locales/bem_ZM: Likewise.
21937 * localedata/locales/ber_DZ: Likewise.
21938 * localedata/locales/ber_MA: Likewise.
21939 * localedata/locales/bg_BG: Likewise.
21940 * localedata/locales/bhb_IN: Likewise.
21941 * localedata/locales/bho_IN: Likewise.
21942 * localedata/locales/bi_VU: Likewise.
21943 * localedata/locales/bn_BD: Likewise.
21944 * localedata/locales/bn_IN: Likewise.
21945 * localedata/locales/bo_CN: Likewise.
21946 * localedata/locales/bo_IN: Likewise.
21947 * localedata/locales/br_FR: Likewise.
21948 * localedata/locales/brx_IN: Likewise.
21949 * localedata/locales/bs_BA: Likewise.
21950 * localedata/locales/byn_ER: Likewise.
21951 * localedata/locales/ca_AD: Likewise.
21952 * localedata/locales/ca_ES: Likewise.
21953 * localedata/locales/ca_FR: Likewise.
21954 * localedata/locales/ca_IT: Likewise.
21955 * localedata/locales/ce_RU: Likewise.
21956 * localedata/locales/chr_US: Likewise.
21957 * localedata/locales/cmn_TW: Likewise.
21958 * localedata/locales/crh_UA: Likewise.
21959 * localedata/locales/cs_CZ: Likewise.
21960 * localedata/locales/csb_PL: Likewise.
21961 * localedata/locales/cv_RU: Likewise.
21962 * localedata/locales/cy_GB: Likewise.
21963 * localedata/locales/da_DK: Likewise.
21964 * localedata/locales/de_AT: Likewise.
21965 * localedata/locales/de_BE: Likewise.
21966 * localedata/locales/de_CH: Likewise.
21967 * localedata/locales/de_DE: Likewise.
21968 * localedata/locales/de_IT: Likewise.
21969 * localedata/locales/de_LI: Likewise.
21970 * localedata/locales/de_LU: Likewise.
21971 * localedata/locales/doi_IN: Likewise.
21972 * localedata/locales/dv_MV: Likewise.
21973 * localedata/locales/dz_BT: Likewise.
21974 * localedata/locales/el_CY: Likewise.
21975 * localedata/locales/el_GR: Likewise.
21976 * localedata/locales/en_AG: Likewise.
21977 * localedata/locales/en_AU: Likewise.
21978 * localedata/locales/en_BW: Likewise.
21979 * localedata/locales/en_CA: Likewise.
21980 * localedata/locales/en_DK: Likewise.
21981 * localedata/locales/en_GB: Likewise.
21982 * localedata/locales/en_HK: Likewise.
21983 * localedata/locales/en_IE: Likewise.
21984 * localedata/locales/en_IL: Likewise.
21985 * localedata/locales/en_IN: Likewise.
21986 * localedata/locales/en_NG: Likewise.
21987 * localedata/locales/en_NZ: Likewise.
21988 * localedata/locales/en_PH: Likewise.
21989 * localedata/locales/en_SG: Likewise.
21990 * localedata/locales/en_US: Likewise.
21991 * localedata/locales/en_ZA: Likewise.
21992 * localedata/locales/en_ZM: Likewise.
21993 * localedata/locales/en_ZW: Likewise.
21994 * localedata/locales/eo: Likewise.
21995 * localedata/locales/es_AR: Likewise.
21996 * localedata/locales/es_BO: Likewise.
21997 * localedata/locales/es_CL: Likewise.
21998 * localedata/locales/es_CO: Likewise.
21999 * localedata/locales/es_CR: Likewise.
22000 * localedata/locales/es_CU: Likewise.
22001 * localedata/locales/es_DO: Likewise.
22002 * localedata/locales/es_EC: Likewise.
22003 * localedata/locales/es_ES: Likewise.
22004 * localedata/locales/es_GT: Likewise.
22005 * localedata/locales/es_HN: Likewise.
22006 * localedata/locales/es_MX: Likewise.
22007 * localedata/locales/es_NI: Likewise.
22008 * localedata/locales/es_PA: Likewise.
22009 * localedata/locales/es_PE: Likewise.
22010 * localedata/locales/es_PR: Likewise.
22011 * localedata/locales/es_PY: Likewise.
22012 * localedata/locales/es_SV: Likewise.
22013 * localedata/locales/es_US: Likewise.
22014 * localedata/locales/es_UY: Likewise.
22015 * localedata/locales/es_VE: Likewise.
22016 * localedata/locales/et_EE: Likewise.
22017 * localedata/locales/eu_ES: Likewise.
22018 * localedata/locales/eu_ES@euro: Likewise.
22019 * localedata/locales/fa_IR: Likewise.
22020 * localedata/locales/ff_SN: Likewise.
22021 * localedata/locales/fi_FI: Likewise.
22022 * localedata/locales/fil_PH: Likewise.
22023 * localedata/locales/fo_FO: Likewise.
22024 * localedata/locales/fr_BE: Likewise.
22025 * localedata/locales/fr_CA: Likewise.
22026 * localedata/locales/fr_CH: Likewise.
22027 * localedata/locales/fr_FR: Likewise.
22028 * localedata/locales/fr_LU: Likewise.
22029 * localedata/locales/fur_IT: Likewise.
22030 * localedata/locales/fy_DE: Likewise.
22031 * localedata/locales/fy_NL: Likewise.
22032 * localedata/locales/ga_IE: Likewise.
22033 * localedata/locales/gd_GB: Likewise.
22034 * localedata/locales/gez_ER: Likewise.
22035 * localedata/locales/gez_ET: Likewise.
22036 * localedata/locales/gl_ES: Likewise.
22037 * localedata/locales/gu_IN: Likewise.
22038 * localedata/locales/gv_GB: Likewise.
22039 * localedata/locales/ha_NG: Likewise.
22040 * localedata/locales/hak_TW: Likewise.
22041 * localedata/locales/he_IL: Likewise.
22042 * localedata/locales/hi_IN: Likewise.
22043 * localedata/locales/hif_FJ: Likewise.
22044 * localedata/locales/hne_IN: Likewise.
22045 * localedata/locales/hr_HR: Likewise.
22046 * localedata/locales/hsb_DE: Likewise.
22047 * localedata/locales/ht_HT: Likewise.
22048 * localedata/locales/hu_HU: Likewise.
22049 * localedata/locales/hy_AM: Likewise.
22050 * localedata/locales/i18n: Likewise.
22051 * localedata/locales/ia_FR: Likewise.
22052 * localedata/locales/id_ID: Likewise.
22053 * localedata/locales/ig_NG: Likewise.
22054 * localedata/locales/ik_CA: Likewise.
22055 * localedata/locales/is_IS: Likewise.
22056 * localedata/locales/it_CH: Likewise.
22057 * localedata/locales/it_IT: Likewise.
22058 * localedata/locales/iu_CA: Likewise.
22059 * localedata/locales/ja_JP: Likewise.
22060 * localedata/locales/ka_GE: Likewise.
22061 * localedata/locales/kk_KZ: Likewise.
22062 * localedata/locales/kl_GL: Likewise.
22063 * localedata/locales/kn_IN: Likewise.
22064 * localedata/locales/ko_KR: Likewise.
22065 * localedata/locales/kok_IN: Likewise.
22066 * localedata/locales/ks_IN: Likewise.
22067 * localedata/locales/ks_IN@devanagari: Likewise.
22068 * localedata/locales/ku_TR: Likewise.
22069 * localedata/locales/kw_GB: Likewise.
22070 * localedata/locales/ky_KG: Likewise.
22071 * localedata/locales/lb_LU: Likewise.
22072 * localedata/locales/lg_UG: Likewise.
22073 * localedata/locales/li_BE: Likewise.
22074 * localedata/locales/li_NL: Likewise.
22075 * localedata/locales/lij_IT: Likewise.
22076 * localedata/locales/ln_CD: Likewise.
22077 * localedata/locales/lo_LA: Likewise.
22078 * localedata/locales/lt_LT: Likewise.
22079 * localedata/locales/lv_LV: Likewise.
22080 * localedata/locales/lzh_TW: Likewise.
22081 * localedata/locales/mag_IN: Likewise.
22082 * localedata/locales/mai_IN: Likewise.
22083 * localedata/locales/mg_MG: Likewise.
22084 * localedata/locales/mhr_RU: Likewise.
22085 * localedata/locales/mi_NZ: Likewise.
22086 * localedata/locales/mk_MK: Likewise.
22087 * localedata/locales/ml_IN: Likewise.
22088 * localedata/locales/mn_MN: Likewise.
22089 * localedata/locales/mni_IN: Likewise.
22090 * localedata/locales/mr_IN: Likewise.
22091 * localedata/locales/ms_MY: Likewise.
22092 * localedata/locales/mt_MT: Likewise.
22093 * localedata/locales/my_MM: Likewise.
22094 * localedata/locales/nan_TW: Likewise.
22095 * localedata/locales/nan_TW@latin: Likewise.
22096 * localedata/locales/nb_NO: Likewise.
22097 * localedata/locales/nds_DE: Likewise.
22098 * localedata/locales/nds_NL: Likewise.
22099 * localedata/locales/ne_NP: Likewise.
22100 * localedata/locales/nhn_MX: Likewise.
22101 * localedata/locales/niu_NU: Likewise.
22102 * localedata/locales/niu_NZ: Likewise.
22103 * localedata/locales/nl_AW: Likewise.
22104 * localedata/locales/nl_BE: Likewise.
22105 * localedata/locales/nl_NL: Likewise.
22106 * localedata/locales/nn_NO: Likewise.
22107 * localedata/locales/nr_ZA: Likewise.
22108 * localedata/locales/nso_ZA: Likewise.
22109 * localedata/locales/oc_FR: Likewise.
22110 * localedata/locales/om_ET: Likewise.
22111 * localedata/locales/om_KE: Likewise.
22112 * localedata/locales/or_IN: Likewise.
22113 * localedata/locales/os_RU: Likewise.
22114 * localedata/locales/pa_IN: Likewise.
22115 * localedata/locales/pa_PK: Likewise.
22116 * localedata/locales/pap_AW: Likewise.
22117 * localedata/locales/pap_CW: Likewise.
22118 * localedata/locales/pl_PL: Likewise.
22119 * localedata/locales/ps_AF: Likewise.
22120 * localedata/locales/pt_BR: Likewise.
22121 * localedata/locales/pt_PT: Likewise.
22122 * localedata/locales/quz_PE: Likewise.
22123 * localedata/locales/raj_IN: Likewise.
22124 * localedata/locales/ro_RO: Likewise.
22125 * localedata/locales/ru_RU: Likewise.
22126 * localedata/locales/ru_UA: Likewise.
22127 * localedata/locales/rw_RW: Likewise.
22128 * localedata/locales/sa_IN: Likewise.
22129 * localedata/locales/sat_IN: Likewise.
22130 * localedata/locales/sc_IT: Likewise.
22131 * localedata/locales/sd_IN: Likewise.
22132 * localedata/locales/sd_IN@devanagari: Likewise.
22133 * localedata/locales/se_NO: Likewise.
22134 * localedata/locales/sgs_LT: Likewise.
22135 * localedata/locales/shs_CA: Likewise.
22136 * localedata/locales/si_LK: Likewise.
22137 * localedata/locales/sid_ET: Likewise.
22138 * localedata/locales/sk_SK: Likewise.
22139 * localedata/locales/sl_SI: Likewise.
22140 * localedata/locales/sm_WS: Likewise.
22141 * localedata/locales/so_DJ: Likewise.
22142 * localedata/locales/so_ET: Likewise.
22143 * localedata/locales/so_KE: Likewise.
22144 * localedata/locales/so_SO: Likewise.
22145 * localedata/locales/sq_AL: Likewise.
22146 * localedata/locales/sq_MK: Likewise.
22147 * localedata/locales/sr_ME: Likewise.
22148 * localedata/locales/sr_RS: Likewise.
22149 * localedata/locales/sr_RS@latin: Likewise.
22150 * localedata/locales/ss_ZA: Likewise.
22151 * localedata/locales/st_ZA: Likewise.
22152 * localedata/locales/sv_FI: Likewise.
22153 * localedata/locales/sv_SE: Likewise.
22154 * localedata/locales/sw_KE: Likewise.
22155 * localedata/locales/sw_TZ: Likewise.
22156 * localedata/locales/szl_PL: Likewise.
22157 * localedata/locales/ta_IN: Likewise.
22158 * localedata/locales/ta_LK: Likewise.
22159 * localedata/locales/tcy_IN: Likewise.
22160 * localedata/locales/te_IN: Likewise.
22161 * localedata/locales/tg_TJ: Likewise.
22162 * localedata/locales/th_TH: Likewise.
22163 * localedata/locales/the_NP: Likewise.
22164 * localedata/locales/ti_ER: Likewise.
22165 * localedata/locales/ti_ET: Likewise.
22166 * localedata/locales/tig_ER: Likewise.
22167 * localedata/locales/tk_TM: Likewise.
22168 * localedata/locales/tl_PH: Likewise.
22169 * localedata/locales/tn_ZA: Likewise.
22170 * localedata/locales/to_TO: Likewise.
22171 * localedata/locales/tpi_PG: Likewise.
22172 * localedata/locales/tr_CY: Likewise.
22173 * localedata/locales/tr_TR: Likewise.
22174 * localedata/locales/ts_ZA: Likewise.
22175 * localedata/locales/tt_RU: Likewise.
22176 * localedata/locales/tt_RU@iqtelif: Likewise.
22177 * localedata/locales/ug_CN: Likewise.
22178 * localedata/locales/uk_UA: Likewise.
22179 * localedata/locales/unm_US: Likewise.
22180 * localedata/locales/ur_IN: Likewise.
22181 * localedata/locales/ur_PK: Likewise.
22182 * localedata/locales/uz_UZ: Likewise.
22183 * localedata/locales/uz_UZ@cyrillic: Likewise.
22184 * localedata/locales/ve_ZA: Likewise.
22185 * localedata/locales/vi_VN: Likewise.
22186 * localedata/locales/wa_BE: Likewise.
22187 * localedata/locales/wae_CH: Likewise.
22188 * localedata/locales/wal_ET: Likewise.
22189 * localedata/locales/wo_SN: Likewise.
22190 * localedata/locales/xh_ZA: Likewise.
22191 * localedata/locales/yi_US: Likewise.
22192 * localedata/locales/yo_NG: Likewise.
22193 * localedata/locales/yue_HK: Likewise.
22194 * localedata/locales/yuw_PG: Likewise.
22195 * localedata/locales/zh_CN: Likewise.
22196 * localedata/locales/zh_HK: Likewise.
22197 * localedata/locales/zh_SG: Likewise.
22198 * localedata/locales/zh_TW: Likewise.
22199 * localedata/locales/zu_ZA: Likewise.
22200
22201 2017-11-13 Florian Weimer <fweimer@redhat.com>
22202
22203 * support/next_to_fault.h, support/next_to_fault.c: New files.
22204 * support/Makefile (libsupport-routines): Add next_to_fault.
22205 * resolv/tst-inet_pton.c (struct next_to_fault)
22206 (next_to_fault_allocate, next_to_fault_free): Remove.
22207 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22208
22209 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22210
22211 * elf/dl-support.c: Include <dl-procruntime.c>.
22212 * include/link.h: Include <link_map.h>.
22213 * sysdeps/generic/dl-procruntime.c: New file.
22214 * sysdeps/generic/link_map.h: Likewise.
22215 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22216 the writable ld.so namespace.
22217
22218 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22219
22220 timezone: pacify GCC -Wstringop-truncation
22221 Problem reported by Martin Sebor in:
22222 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22223 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22224
22225 2017-11-12 Florian Weimer <fweimer@redhat.com>
22226
22227 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22228 tst-xreadlink.
22229 (tests): Add tst-xreadlink.
22230 * support/support.h (xstrndup): Declare.
22231 * support/xunistd.h (xunlink, xreadlink): Declare.
22232 * support/temp_file.h (support_create_temp_directory): Declare.
22233 * support/temp_file.c (support_create_temp_directory): New function.
22234 * support/support_chroot.c (support_chroot_create): Use it.
22235 * support/xreadlink.c: New file.
22236 * support/xstrndup.c: Likewise.
22237 * support/xunlink.c: Likewise.
22238 * support/tst-xreadlink.c: Likewise.
22239
22240 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22241
22242 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22243
22244 2017-11-11 Florian Weimer <fweimer@redhat.com>
22245
22246 [BZ #22409]
22247 [BZ #22412]
22248 * resolv/res_comp.c (printable_string, binary_hnok)
22249 (binary_leading_dash): New functions.
22250 (res_hnok): Reimplement using these functions and ns_name_pton.
22251 (res_ownok): Likewise.
22252 (res_mailok): Reimplement using printable_string, ns_name_pton and
22253 binary_hnok.
22254 (res_dnok): Reimplement using printable_string and ns_name_pton.
22255 * resolv/tst-res_hnok.c (tests): Add additional tests.
22256 (LETTERDIGITS, PRINTABLE): Define.
22257 (do_test): Adjust one_char results.
22258
22259 2017-11-11 Florian Weimer <fweimer@redhat.com>
22260
22261 [BZ #22413]
22262 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22263 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22264
22265 2017-11-11 Florian Weimer <fweimer@redhat.com>
22266
22267 * resolv/tst-ns_name_pton.c: New file.
22268 * resolv/Makefile (tests): Add tst-ns_name_pton.
22269 (tst-ns_name_pton): Link against libresolv.
22270
22271 2017-11-11 Florian Weimer <fweimer@redhat.com>
22272
22273 * resolv/tst-res_hnok.c: New file.
22274 * resolv/Makefile (tests): Add tst-res_hnok.
22275 (tst-res_hnok): Link against libresolv.
22276
22277 2017-11-11 Florian Weimer <fweimer@redhat.com>
22278
22279 * resolv/tst-resolv-network.c: Use test framework instead explicit
22280 main function.
22281
22282 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22283
22284 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22285 <jmp_buf-macros.h>.
22286 [!_ISOMAC] (STR_HELPER): New.
22287 [!_ISOMAC] (STR): Likewise.
22288 [!_ISOMAC] (TEST_SIZE): Likewise.
22289 [!_ISOMAC] (TEST_ALIGN): Likewise.
22290 [!_ISOMAC] (TEST_OFFSET): Likewise.
22291 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22292 field offsets of jmp_buf as well as sigjmp_buf.
22293 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22294 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22295 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22296 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22297 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22298 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22299 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22300 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22301 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22302 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22303 Likewise.
22304 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22305 Likewise.
22306 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22308 Likewise.
22309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22310 Likewise.
22311 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22312 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22313 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22314 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22315 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22316 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22317 Likewise.
22318 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22319 Likewise.
22320 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22321 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22322 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22323
22324 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22325
22326 * include/float.h
22327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22328 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22329 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22330 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22332 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22334 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22336 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22337 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22338 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22339 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22340 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22341 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22342 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22343 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22344 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22345 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22346 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22347 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22348 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22349 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22350 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22351 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22352 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22354 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22356 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22358 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22360 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22362 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22364 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22366 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22368 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22369 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22370 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22371 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22372 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22373 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22374 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22376 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22378 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22380 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22382 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22384 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22386 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22388 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22390 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22392 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22394 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22396 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22398 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22400 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22402 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22404 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22405 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22406 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22407 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22408 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22409 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22410 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22411 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22412 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22413 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22414 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22415
22416 * stdlib/tst-strtod.h (F16): New macro.
22417 (F32): Likewise.
22418 (F64): Likewise.
22419 (F32X): Likewise.
22420 (F64X): Likewise.
22421 (F128X): Likewise.
22422 (IF_FLOAT16): Likewise.
22423 (IF_FLOAT32): Likewise.
22424 (IF_FLOAT64): Likewise.
22425 (IF_FLOAT32X): Likewise.
22426 (IF_FLOAT64X): Likewise.
22427 (IF_FLOAT128X): Likewise.
22428 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22429 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22430 (STRTOD_TEST_FOREACH): Likewise.
22431 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22432 (CHOOSE_f64): Likewise.
22433 (CHOOSE_f32x): Likewise.
22434 (CHOOSE_f64x): Likewise.
22435
22436 2017-11-07 Andreas Schwab <schwab@suse.de>
22437
22438 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22439
22440 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22441
22442 [BZ #22403]
22443 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22444 to be escaped.
22445 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22446 to be escaped.
22447
22448 2017-11-07 Claude Paroz <claude@2xlibre.net>
22449
22450 [BZ #22403]
22451 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22452 to be escaped.
22453 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22454 to be escaped.
22455 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22456 to be escaped.
22457
22458 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22459
22460 [BZ #22298]
22461 * nptl/allocatestack.c (allocate_stack): Check if
22462 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22463 __PTHREAD_MUTEX_HAVE_PREV is defined.
22464 * nptl/descr.h (pthread): Likewise.
22465 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22466 Likewise.
22467 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22468 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22469 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22470 * sysdeps/nptl/bits/thread-shared-types.h
22471 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22472 defines.
22473 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22474 of __WORDSIZE for internal layout.
22475 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22476 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22477 instead of __WORDSIZE whether to use an union for __spins and __list
22478 fields.
22479 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22480 case.
22481 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22482 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22483 defines.
22484 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22485 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22486 Likewise.
22487 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22488 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22489 Likewise.
22490 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22491 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22492 Likewise.
22493 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22494 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22495 Likewise.
22496 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22497 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22498 Likewise.
22499 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22500 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22501 Likewise.
22502 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22503 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22504 Likewise.
22505 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22506 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22507 Likewise.
22508 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22509 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22510 Likewise.
22511 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22512 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22513 Likewise.
22514 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22515 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22516 Likewise.
22517 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22518 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22519 Likewise.
22520 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22521 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22522 Likewise.
22523 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22524 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22525 Likewise.
22526
22527 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22528 New macros.
22529 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22530 checks for expected input type size.
22531 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22532 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22533 Likewise.
22534 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22535 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22536 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22537 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22538 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22539 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22540 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22541 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22542 superflous runtime assert check.
22543 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22544 Likewise.
22545 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22546 Likewise.
22547 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22548 Likewise.
22549 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22550 Likewise.
22551 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22552 Likewise.
22553 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22554 Likewise.
22555 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22556 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22557 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22558 Likewise.
22559 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22560 Likewise.
22561 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22562 Likewise.
22563 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22564 Likewise.
22565 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22566 Likewise.
22567 * nptl/pthread_attr_setinheritsched.c
22568 (__pthread_attr_setinheritsched): Likewise.
22569 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22570 Likewise.
22571 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22572 Likewise.
22573 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22574 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22575 __old_pthread_attr_setstack): Likewise.
22576 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22577 Likewise.
22578 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22579 Likewise.
22580 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22581 Likewise.
22582 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22583 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22584 Likewise.
22585 * nptl/tst-typesizes.c: Remove file.
22586
22587 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22588 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22589 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22590 checks for internal pthread_mutex_t offsets.
22591 * sysdeps/aarch64/nptl/pthread-offsets.h
22592 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22593 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22594 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22595 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22596 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22597 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22598 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22599 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22600 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22601 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22602 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22603 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22604 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22605 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22606 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22607 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22608 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22609 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22610
22611 2017-11-07 Florian Weimer <fweimer@redhat.com>
22612
22613 * bits/mman-linux.h: Move ...
22614 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22615 comment.
22616 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22617 outdated comment.
22618
22619 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22620
22621 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22622 Redefine STRNLEN as __strnlen_power8.
22623
22624 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22625
22626 * signal/sighold.c (sighold): Optimize implementation.
22627
22628 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22629 __NR_rt_sigqueueinfo.
22630
22631 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22632 __sigtimedwait.
22633 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22634 assume __NR_rt_sigtimedwait.
22635 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22636 and add LIBC_CANCEL_HANDLED for cancellation marking.
22637 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22638
22639 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22640 (sysdeps_routines): Add memchr_noneon.
22641 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22642 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22643 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22644 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22645 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22646 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22647 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22648
22649 * sysdeps/arm/arm-ifunc.h: New file.
22650 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22651 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22652 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22653 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22654 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22655 (__memcpy_neon): Avoid create hidden alias.
22656 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22657 (__memcpy_vfp): Likewise.
22658 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22659 (sysdep_routines): Add memcpy_arm.
22660 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22661
22662 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22663
22664 [BZ #22362]
22665 * Makerules (make-link-multidir): New.
22666 * config.make.in (multidir): New.
22667 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22668 * configure: Regenerated.
22669 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22670 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22671 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22672 New target.
22673
22674 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22675
22676 [BZ #22402]
22677 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22678 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22679
22680 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22681
22682 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22683 to be escaped.
22684
22685 2017-11-04 Florian Weimer <fweimer@redhat.com>
22686
22687 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22688
22689 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22690
22691 * math/math.h [__HAVE_DISTINCT_FLOAT16
22692 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22693 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22694 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22695 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22696 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22697 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22698 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22699 (__MATH_TG_F32): New macro.
22700 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22701 (__MATH_TG_F64X): Likewise.
22702 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22703 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22704
22705 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22706
22707 * po/de.po: Update translations.
22708 * po/ru.po: Likewise.
22709
22710 2017-11-03 Florian Weimer <fweimer@redhat.com>
22711
22712 * manual/filesys.texi (Hard Links): Document linkat.
22713
22714 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22715
22716 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22717 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22718 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22719 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22720 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22721 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22722 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22723 the same as _Float128.
22724 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22725 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22726 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22727
22728 * stdlib/stdlib.h
22729 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22730 Declare.
22731 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22732 Likewise.
22733 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22734 Likewise.
22735 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22736 (strtof32x): Likewise.
22737 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22738 (strtof64x): Likewise.
22739 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22740 (strtof128x): Likewise.
22741 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22742 (strfromf16): Likewise.
22743 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22744 (strfromf32): Likewise.
22745 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22746 (strfromf64): Likewise.
22747 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22748 (strfromf32x): Likewise.
22749 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22750 (strfromf64x): Likewise.
22751 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22752 (strfromf128x): Likewise.
22753 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22754 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22755 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22756 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22757 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22758 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22759
22760 2017-11-03 Richard Henderson <rth@twiddle.net>
22761
22762 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22763
22764 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22765
22766 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22767
22768 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22769
22770 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22771 DT_TLSDESC_GOT initialization.
22772 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22773 (_dl_tlsdesc_resolve_hold): Likewise.
22774 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22775 (_dl_tlsdesc_resolve_hold): Likewise.
22776 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22777 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22778
22779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22780
22781 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22782
22783 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22784
22785 [BZ #18572]
22786 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22787 non-lazily for R_ARM_TLS_DESC.
22788
22789 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22790
22791 [BZ #17078]
22792 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22793 R_ARM_TLS_DESC case.
22794 (elf_machine_lazy_rel): Remove the prelink check.
22795
22796 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22797
22798 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22799 DT_TLSDESC_GOT initialization.
22800 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22801 (_dl_tlsdesc_resolve_rela): Likewise.
22802 (_dl_tlsdesc_resolve_hold): Likewise.
22803 (_dl_tlsdesc_undefweak): Remove ldar.
22804 (_dl_tlsdesc_dynamic): Likewise.
22805 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22806 (_dl_tlsdesc_resolve_rela): Likewise.
22807 (_dl_tlsdesc_resolve_hold): Likewise.
22808 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22809 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22810 (_dl_tlsdesc_resolve_rela): Likewise.
22811 (_dl_tlsdesc_resolve_hold): Likewise.
22812
22813 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22814
22815 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22816 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22817
22818 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22819
22820 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22821 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22822
22823 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22824
22825 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22826 Declare.
22827 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22828 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22829 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22830 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22831 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22832 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22833 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22834 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22835 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22836 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22837 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22838
22839 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22840
22841 [BZ #22382]
22842 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22843 * localedata/locales/tpi_PG: Add standard header.
22844
22845 2017-11-02 Florian Weimer <fweimer@redhat.com>
22846
22847 test-errno-linux: quotactl can fail with EPERM in containers.
22848 * sysdeps/unix/sysv/linux/test-errno-linux.c
22849 (LIST, LIST_FORWARD): New macros.
22850 (check_error_in_list): New function.
22851 (test_wrp_rv): Accept list of permitted error codes.
22852 (test_wrp_rv2): Remove.
22853 (test_wrp): Call test_wrp_rv with list of error codes.
22854 (test_wrp2): Accept list of error codes.
22855 (do_test): Adjust. Allow EPERM for quotactl.
22856
22857 2017-11-02 Florian Weimer <fweimer@redhat.com>
22858
22859 * stdio-common/bug16.c (do_test): Use array_length.
22860 * stdio-common/errlist.c (_sys_nerr): Likewise.
22861 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22862 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22863 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22864 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22865 (do_test): Use array_length.
22866 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22867 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22868 * stdio-common/tst-printf-round.c (do_test): Likewise.
22869 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22870 (CHECK): Use array_length.
22871 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22872 * stdio-common/tstscanf.c (main): Likewise.
22873 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22874
22875 2017-11-02 Florian Weimer <fweimer@redhat.com>
22876
22877 Add array_length and array_end macros.
22878 * include/array_length.h: New file.
22879
22880 2017-11-02 Florian Weimer <fweimer@redhat.com>
22881
22882 [BZ #22332]
22883 * posix/tst-glob-tilde.c (do_noescape): New variable.
22884 (one_test): Process it.
22885 (do_test): Set do_noescape. Add unescaping test case.
22886
22887 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22888
22889 * math/complex.h
22890 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22891 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22892 with appropriate macros defined and undefined.
22893 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22894 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22895 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22896 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22897 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22898 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22899 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22900 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22901 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22902 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22903
22904 * math/complex.h
22905 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22906 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22907 that for long double. Do not condition define and undefine of
22908 _Mdouble_complex_ on [__CFLOAT128].
22909
22910 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22911
22912 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22913 of <sysdeps/generic/sysdep.h>.
22914 (ALIGNARG): Removed.
22915 (ASM_SIZE_DIRECTIVE): Likewise.
22916 (ENTRY): Likewise.
22917 (END): Likewise.
22918 (ENTRY_CHK): Likewise.
22919 (END_CHK): Likewise.
22920 (syscall_error): Likewise.
22921 (mcount): Likewise.
22922 (PSEUDO_END): Likewise.
22923 (L): Likewise.
22924 (atom_text_section): Likewise.
22925 * sysdeps/x86/sysdep.h: New file.
22926 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22927 of <sysdeps/generic/sysdep.h>.
22928 (ALIGNARG): Removed.
22929 (ASM_SIZE_DIRECTIVE): Likewise.
22930 (ENTRY): Likewise.
22931 (END): Likewise.
22932 (ENTRY_CHK): Likewise.
22933 (END_CHK): Likewise.
22934 (syscall_error): Likewise.
22935 (mcount): Likewise.
22936 (PSEUDO_END): Likewise.
22937 (L): Likewise.
22938 (atom_text_section): Likewise.
22939
22940 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22941
22942 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22943 category of LC_CTYPE set to "i18n:2012".
22944 * localedata/locales/i18n_ctype: Regenerate.
22945
22946 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22947
22948 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22949 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22950 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22951 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22952
22953 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22954 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22955 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22956 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22957
22958 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22959
22960 * math/complex.h
22961 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22962 New macro.
22963 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22964 Likewise.
22965 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22966 Likewise.
22967 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22968 (CMPLXF32X): Likewise.
22969 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22970 (CMPLXF64X): Likewise.
22971 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22972 (CMPLXF128X): Likewise.
22973
22974 * math/math.h
22975 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22976 (__MATH_EVAL_FMT2): Define to add 0.0f.
22977
22978 2017-10-31 Alan Modra <amodra@gmail.com>
22979
22980 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22981 include sysdep.h.
22982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22994 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23042 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23051
23052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23053 include sysdep.h and math_ldbl_opt.h.
23054
23055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23056 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23071 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23072 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23081
23082 2017-10-31 Alan Modra <amodra@gmail.com>
23083
23084 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23085 string/strncase_l.c, not string/strncase.c.
23086 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23087 (libc_hidden_def): Redefine.
23088
23089 2017-10-31 Alan Modra <amodra@gmail.com>
23090
23091 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23092 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23093 (__strcasecmp): Don't define.
23094
23095 2017-10-31 Alan Modra <amodra@gmail.com>
23096
23097 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23098 IS_IN (libc).
23099 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23100 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23101 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23102
23103 2017-10-31 Alan Modra <amodra@gmail.com>
23104
23105 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23106 USE_AS_STPNCPY.
23107
23108 2017-10-31 Alan Modra <amodra@gmail.com>
23109
23110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23111 Redefine only when SHARED.
23112
23113 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23114
23115 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23116 Include <bits/math-finite.h> with appropriate macros defined and
23117 undefined.
23118 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23119 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23120 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23121 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23122 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23123
23124 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23125 [!_Mlong_double_] (_Mlong_double_): Likewise.
23126 [!_Mfloat16_] (_Mfloat16_): Likewise.
23127 [!_Mfloat32_] (_Mfloat32_): Likewise.
23128 [!_Mfloat64_] (_Mfloat64_): Likewise.
23129 [!_Mfloat128_] (_Mfloat128_): Likewise.
23130 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23131 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23132 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23133 (_Mdouble_): Define without indirection through those macros.
23134 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23135 [!_Mfloat128_] (_Mfloat128_): Likewise.
23136 [_Mlong_double_] (_Mlong_double_): Likewise.
23137 (_Mdouble_): Define without indirection through those macros.
23138 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23139 not add -D_Mlong_double_=double.
23140 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23141 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23142
23143 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23144
23145 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23146
23147 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23148
23149 * sysdeps/x86/libc-start.c: Reformat.
23150
23151 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23152
23153 [BZ #22353]
23154 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23155 (1): Renamed to ...
23156 (L(Src0)): This.
23157 (L(Src1)): New.
23158 (L(Src2)): Likewise.
23159 (L(1)): Renamed to ...
23160 (L(Src3)): This.
23161
23162 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23163
23164 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23165 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23166 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23167 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23168 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23169 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23170 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23171 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23172 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23173 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23174 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23175 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23176 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23177 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23178 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23179 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23180 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23181 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23182 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23183 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23184 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23185 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23186 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23187 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23188 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23189 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23190 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23191 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23192 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23193 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23194 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23195 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23196 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23197 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23198 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23199 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23200 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23201 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23202 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23203 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23204 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23205 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23206 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23207 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23208 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23209 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23210 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23211 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23212 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23213 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23214 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23215 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23216 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23217 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23218 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23219 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23220 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23221 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23222 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23223 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23224 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23225 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23226 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23227 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23228 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23229 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23230
23231 2017-10-30 Florian Weimer <fweimer@redhat.com>
23232
23233 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23234 always defined.
23235 * io/tst-mkdirat.c (do_test): Likewise.
23236 * io/tst-mkfifoat.c (do_test): Likewise.
23237 * io/tst-mknodat.c (do_test): Likewise.
23238 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23239 * locale/programs/locale.c (select_dirs): Likewise.
23240 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23241 * posix/bug-glob2.c (my_readdir): Likewise.
23242 * posix/tst-dir.c (main): Likewise.
23243 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23244 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23245
23246 2017-10-30 Florian Weimer <fweimer@redhat.com>
23247
23248 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23249 just __USE_GNU.
23250
23251 2017-10-30 Florian Weimer <fweimer@redhat.com>
23252
23253 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23254 Convert to support/test-driver.c.
23255 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23256 New macro parameters.
23257 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23258 * posix/tst-gnuglob.c: New file.
23259 * posix/tst-gnuglob64.c: Likewise.
23260 * posix/Makefile (tests): Add tst-gnuglob64.
23261
23262 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23263
23264 [BZ #19485]
23265 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23266 and use a better translation for March in “mon”.
23267 * localedata/locales/csb_PL: Use more ASCII to improve the
23268 readability of the source.
23269
23270 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23271
23272 [BZ #13953]
23273 * localedata/locales/km_KH: Use ASCII as much
23274 as possible for better readability of the source and
23275 remove useless comments.
23276 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23277 was commented out and apparently wrong anyway because it was
23278 using Lao characters. If Buddhist era should be used
23279 for km_KH, a native speaker should write the correct formaat
23280 for Khmer.
23281 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23282 (According to CLDR, the first weekday for Cambodia is Sunday).
23283 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23284 (These were using Lao characters which must be wrong. If we get
23285 the correct data from a native speaker, we could add it back, until
23286 then it is better not to have name_mr and name_mrs at all than
23287 having it wrong).
23288
23289 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23290
23291 * locale/loadlocale.c: Correct size of
23292 _nl_value_type_LC_<category> arrays.
23293
23294 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23295
23296 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23297 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23298 with appropriate macros defined and undefined.
23299 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23300 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23301 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23302 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23303 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23304
23305 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23306
23307 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23308 "-O2 -march=i586".
23309
23310 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23311
23312 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23313 with lowercase letters to make it agree with CLDR.
23314
23315 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23316
23317 [BZ #15260]
23318 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23319 first letters of yesstr and nostr in yesexpr and noexpr,
23320 not for the full words.
23321 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23322 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23323 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23324 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23325 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23326 first letters of yesstr and nostr in yesexpr and noexpr,
23327 until now only English was matched in yesexpr and noexpr.
23328 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23329 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23330 fil but not for tl. As tl and fil are very similar, using fil
23331 is probably better than using English.
23332
23333 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23334
23335 [BZ #21706]
23336 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23337 in yesstr and nostr.
23338
23339 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23340
23341 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23342 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23343 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23344 Likewise.
23345 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23346 Likewise.
23347 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23348 Likewise.
23349 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23350 Likewise.
23351 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23352 (SNANF128X): Likewise.
23353
23354 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23355 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23356 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23357 (HUGE_VAL_F32): Likewise.
23358 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23359 (HUGE_VAL_F64): Likewise.
23360 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23361 (HUGE_VAL_F32X): Likewise.
23362 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23363 (HUGE_VAL_F64X): Likewise.
23364 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23365 (HUGE_VAL_F128X): Likewise.
23366
23367 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23368
23369 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23370 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23371 for the br_FR locale.
23372
23373 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23374
23375 [BZ #21706]
23376 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23377
23378 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23379
23380 * locale/programs/record-status.h: Define globals, and function
23381 prototypes. Move function bodies...
23382 * locale/programs/record-status.c: ... to here. New file.
23383 * iconv/Makefile (iconv_prog-modules): Add record-status.
23384 * locale/Makefile (lib-modules): Likewise.
23385 * iconv/iconv_prog.c: Remove verbose.
23386 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23387 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23388 record a warning about ASCII compatibility.
23389 * locale/programs/ld-monetary.c (monetary_finish): If
23390 warn_int_curr_symbol is true then record a warning about the symbol
23391 not being in our ISO 4217 list.
23392 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23393 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23394 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23395 (OPT_NO_WARN): Define.
23396 (OPT_WARN): Define.
23397 (options): Add entry for --no-warnings, and --warnings.
23398 (set_warnings): New function to enable/disable warnings.
23399 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23400 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23401 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23402 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23403 Pass flags to generate_locale.
23404 (generate_locale): Accept new flag argument and pass it to localedef
23405 invocation.
23406 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23407 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23408
23409 * localedata/Makefile (test-input-data): Use full file name.
23410 * localedata/da_DK.in: Rename to...
23411 * localedata/da_DK.ISO-8859-1.in: ...this.
23412 * localedata/de_DE.in: Rename to...
23413 * localedata/de_DE.ISO-8859-1.in: ...this.
23414 * localedata/en_US.in: Rename to...
23415 * localedata/en_US.ISO-8859-1.in: ...this.
23416 * localedata/fr_FR.in: Rename to...
23417 * localedata/fr_FR.UTF-8.in: ... this.
23418 * localedata/hr_HR.in: Rename to...
23419 * localedata/hr_HR.ISO-8859-2.in: ...this.
23420 * localedata/hu_HU.in: Rename to...
23421 * localedata/hu_HU.UTF-8.in: ...this.
23422 * localedata/si_LK.in: Rename to...
23423 * localedata/si_LK.UTF-8.in: ...this.
23424 * localedata/sv_SE.in: Rename to...
23425 * localedata/sv_SE.ISO-8859-1.in: ...this.
23426 * localedata/tr_TR.in: Rename to...
23427 * localedata/tr_TR.UTF-8.in: ...this.
23428 * localedata/uk_UA.in: Rename to...
23429 * localedata/uk_UA.UTF-8.in: ...this.
23430 * localedata/sort-test.sh: Test file is locale name with the
23431 suffix.
23432
23433 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23434 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23435 file.
23436 * localedata/locales/i18n_ctype: Regenerate.
23437 * localedata/locales/tr_TR: Likewise.
23438 * localedata/locales/translit_circle: Likewise.
23439 * localedata/locales/translit_cjk_compat: Likewise.
23440 * localedata/locales/translit_combining: Likewise.
23441 * localedata/locales/translit_compat: Likewise.
23442 * localedata/locales/translit_font: Likewise.
23443 * localedata/locales/translit_fraction: Likewise.
23444
23445 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23446
23447 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23448 lxvd2x/stxvd2x with lvx/stvx.
23449 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23450
23451 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23452
23453 * include/alloc_buffer.h: Replace "if if " with "if " in
23454 comments.
23455 * sysdeps/mips/memcpy.S: Likkewise.
23456 * sysdeps/mips/memset.S: Likewise.
23457 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23458 Likewise.
23459 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23460 Likewise.
23461 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23462 Likewise.
23463
23464 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23465
23466 [BZ #15261]
23467 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23468 yesexpr and noexpr.
23469 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23470 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23471 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23472 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23473 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23474 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23475 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23476
23477 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23478
23479 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23480 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23481 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23482 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23483 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23484 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23485 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23486 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23487 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23488 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23489 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23490 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23491
23492 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23493
23494 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23495 as possible for better readability of the source.
23496 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23497 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23498 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23499 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23500 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23501 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23502 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23503 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23504 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23505 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23506 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23507 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23508 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23509 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23510 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23511 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23512 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23513 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23514 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23515 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23516 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23517 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23518 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23519 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23520 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23521 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23522 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23523 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23524 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23525 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23526 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23527 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23528 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23529 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23530 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23531 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23532 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23533 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23534 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23535 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23536 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23537 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23538 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23539 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23540 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23541 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23542 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23543 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23544 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23545 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23546 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23547 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23548 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23549 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23550 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23551 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23552 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23553 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23554 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23555 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23556 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23557 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23558 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23559 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23560 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23561 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23562 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23563 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23564 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23565 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23566 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23567 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23568 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23569 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23570 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23571 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23572 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23573 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23574 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23575 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23576 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23577 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23578 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23579 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23580 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23581 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23582 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23583 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23584 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23585 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23586 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23587 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23588 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23589 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23590 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23591 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23592 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23593 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23594 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23595 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23596 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23597 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23598 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23599 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23600 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23601 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23602 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23603 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23604 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23605 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23606 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23607 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23608 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23609 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23610 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23611 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23612 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23613 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23614 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23615 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23616 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23617 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23618 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23619 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23620 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23621 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23622 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23623 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23624 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23625 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23626 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23627 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23628 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23629 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23630 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23631 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23632 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23633 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23634 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23635 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23636 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23637 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23638 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23639 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23640 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23641 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23642 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23643 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23644 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23645 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23646 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23647 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23648 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23649 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23650 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23651 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23652 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23653 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23654 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23655 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23656 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23657 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23658 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23659 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23660 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23661 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23662 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23663 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23664 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23665 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23666 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23667 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23668 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23669 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23670
23671 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23672
23673 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23674 (Use first letters of yesstr and nostr correctly instead of using
23675 full words).
23676
23677 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23678
23679 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23680 (Use first letters of yesstr and nostr correctly).
23681
23682 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23683
23684 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23685 also check for the first characters of yesstr and nostr.
23686 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23687 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23688
23689 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23690
23691 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23692 also check for Chinese characters.
23693
23694 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23695
23696 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23697 match also for the contents of yesstr and nostr. As the first letter
23698 of yesstr and nostr is equal, checking only for the first letter
23699 is not enough.
23700
23701 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23702
23703 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23704 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23705
23706 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23707
23708 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23709 of main contributor.
23710
23711 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23712
23713 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23714 instead of using English.
23715
23716 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23717
23718 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23719 by including the first letters of nostr and yesexpr in the regexp.
23720 Also make it more readable by using ASCII where possible.
23721
23722 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23723
23724 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23725 the first letter of nostr in the regexp. It agrees with CLDR now.
23726 Also make it more readable by using ASCII where possible.
23727
23728 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23729
23730 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23731 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23732 these strings contain a U+17D6 (which somewhat looks like a colon)
23733 instead of a real colon to separate the full words for “yes”
23734 and “no” from the single letter responses.
23735
23736 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23737
23738 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23739 it agree with CLDR (include the first letter of yesstr).
23740 Also make it more readable by using ASCII where possible.
23741
23742 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23743
23744 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23745 and improve yesexpr and noexpr. The yesstr and nostr apparently
23746 came from CLDR. And CLDR has a bug there: these strings contain
23747 a U+0903 (which looks like a colon) instead of a real colon
23748 to separate the full words for “yes” and “no” from the single
23749 letter responses.
23750
23751 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23752
23753 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23754 letters of the full yesstr and nostr in yesexpr and noexpr.
23755
23756 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23757
23758 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23759 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23760 * localedata/locales/an_ES: Make source more readable by using ASCII
23761 where possible.
23762
23763 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23764
23765 [BZ #20952]
23766 * localedata/locales/yuw_PG: New file.
23767 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23768 * locale/iso-639.def: Add Yau (Uruwa).
23769
23770 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23771
23772 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23773
23774 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23775
23776 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23777 (__libc_realloc): Likewise.
23778 (_mid_memalign): Likewise.
23779 (__libc_calloc): Likewise.
23780
23781 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23782
23783 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23784 by adding the generic +1 and -0 as in all other locales.
23785 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23786 day names and make it more readable by using ASCII where possible.
23787
23788 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23789
23790 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23791 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23792
23793 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23794
23795 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23796 WNOHANG in waitpid call.
23797
23798 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23799
23800 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23801 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23802
23803 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23804 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23805 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23806 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23807 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23808 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23809 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23810 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23811 variables.
23812
23813 2017-10-23 Michael Collison <michael.collison@arm.com>
23814
23815 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23816 with __builtin_sqrt.
23817 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23818 with __builtin_sqrtf.
23819 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23820 with __builtin_ceil.
23821 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23822 with __builtin_ceilf.
23823 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23824 with __builtin_floor.
23825 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23826 with __builtin_floorf.
23827 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23828 with __builtin_fma.
23829 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23830 with __builtin_fmaf.
23831 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23832 with __builtin_fmax.
23833 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23834 with __builtin_fmaxf.
23835 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23836 with __builtin_fmin.
23837 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23838 with __builtin_fminf.
23839 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23840 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23841 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23842 with builtin_rint and conversion to int.
23843 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23844 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23845 with builtin_llround.
23846 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23847 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23848 with builtin_rint and conversion to long int.
23849 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23850 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23851 with builtin_lround.
23852 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23853 with builtin_lroundf.
23854 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23855 statements with __builtin_nearbyint.
23856 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23857 statements with __builtin_nearbyintf.
23858 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23859 with __builtin_rint.
23860 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23861 with __builtin_rintf.
23862 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23863 with __builtin_round.
23864 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23865 with __builtin_roundf.
23866 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23867 with __builtin_trunc.
23868 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23869 with __builtin_truncf.
23870 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23871 and s_l[l]round[f].c too.
23872
23873 2017-10-23 Alan Modra <amodra@gmail.com>
23874
23875 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23876 Adjust stack after restoring regs. Add missing LR cfi_restore.
23877
23878 2017-10-23 Alan Modra <amodra@gmail.com>
23879
23880 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23881 Move LR save and frame setup/teardown and LR restore to
23882 immediately around memset call. Provide cfi.
23883
23884 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23885
23886 * sysdeps/i386/fpu/e_powf.S: Removed.
23887 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23888 * sysdeps/i386/fpu/w_powf.c: Likewise.
23889 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23890 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23891 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23892 Add e_powf-sse2.
23893 (CFLAGS-e_powf-sse2.c): New.
23894 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23895 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23896
23897 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23898
23899 * sysdeps/i386/fpu/e_log2f.S: Removed.
23900 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23901 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23902 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23903 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23904 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23905 Add e_log2f-sse2.
23906 (CFLAGS-e_log2f-sse2.c): New.
23907 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23908 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23909
23910 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23911
23912 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23913 Add e_powf-fma.
23914 (CFLAGS-e_powf-fma.c): New.
23915 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23916 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23917
23918 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23919
23920 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23921 Add e_log2f-fma.
23922 (CFLAGS-e_log2f-fma.c): New.
23923 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23924 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23925
23926 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23927
23928 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23929 Add e_logf-fma.
23930 (CFLAGS-e_logf-fma.c): New.
23931 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23932 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23933
23934 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23935
23936 * sysdeps/i386/fpu/e_logf.S: Removed.
23937 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23938 * sysdeps/i386/fpu/w_logf.c: Likewise.
23939 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23940 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23941 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23942 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23943 Add e_logf-sse2.
23944 (CFLAGS-e_logf-sse2.c): New.
23945 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23946 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23947
23948 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23949
23950 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23951 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23952 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23953 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23954 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23955 Add e_exp2f-sse2.
23956 (CFLAGS-e_exp2f-sse2.c): New.
23957 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23958 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23959
23960 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23961
23962 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23963 Add e_exp2f-fma.
23964 (CFLAGS-e_exp2f-fma.c): New.
23965 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23966 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23967
23968 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23969
23970 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23971 * sysdeps/i386/fpu/e_expf.S: Likewise.
23972 * sysdeps/i386/fpu/math_errf.c: Likewise.
23973 * sysdeps/i386/fpu/w_expf.c: Likewise.
23974 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23975 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23976 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23977 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23978 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23979 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23980 Remove e_expf-ia32.
23981 (CFLAGS-e_expf-sse2.c): New.
23982 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23983 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23984
23985 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23986
23987 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23988 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23989 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23990 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23991 e_expf.c.
23992 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23993 New.
23994 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23995 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23996 Renamed to ...
23997 (__redirect_expf): This.
23998 (SYMBOL_NAME): Changed to expf.
23999 (__ieee754_expf): Renamed to ...
24000 (__expf): This.
24001 (__GI___expf): This.
24002 (__ieee754_expf): Add strong_alias.
24003 (__expf_finite): Likewise.
24004 (__expf): New.
24005 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24006
24007 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24008
24009 [BZ #22332]
24010 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24011 unescaping.
24012
24013 2017-10-21 Florian Weimer <fweimer@redhat.com>
24014
24015 * posix/Makefile (tests): Add tst-glob-tilde.
24016 (tests-special): Add tst-glob-tilde-mem.out
24017 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24018 (tst-glob-tilde-mem.out): Add mtrace check.
24019 * posix/tst-glob-tilde.c: New file.
24020
24021 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24022
24023 * bits/floatn-common.h: New file.
24024 * math/Makefile (headers): Add bits/floatn-common.h.
24025 * bits/floatn.h: Include <bits/floatn-common.h>.
24026 * sysdeps/ia64/bits/floatn.h: Likewise.
24027 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24028 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24029 * sysdeps/powerpc/bits/floatn.h: Likewise.
24030 * sysdeps/x86/bits/floatn.h: Likewise.
24031
24032 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24033
24034 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24035 indicates whether compiler emits an warning for alias for
24036 functions with incompatible types.
24037
24038 [BZ #22273]
24039 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24040 the auxiliary process is terminated by a signal before calling _exit
24041 or execve.
24042
24043 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24044
24045 [BZ #21265]
24046 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24047 New.
24048 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24049 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24050 and bit_arch_XSAVEC_Usable if needed.
24051 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24052 and bit_arch_Use_dl_runtime_resolve_opt.
24053 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24054 Removed.
24055 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24056 (bit_arch_Prefer_No_AVX512): Updated.
24057 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24058 (bit_arch_XSAVEC_Usable): New.
24059 (STATE_SAVE_OFFSET): Likewise.
24060 (STATE_SAVE_MASK): Likewise.
24061 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24062 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24063 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24064 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24065 (index_arch_XSAVEC_Usable): New.
24066 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24067 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24068 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24069 is enabled.
24070 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24071 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24072 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24073 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24074 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24075 _dl_runtime_resolve_xsavec.
24076 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24077 Removed.
24078 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24079 instead of VEC_SIZE.
24080 (REGISTER_SAVE_BND0): Removed.
24081 (REGISTER_SAVE_BND1): Likewise.
24082 (REGISTER_SAVE_BND3): Likewise.
24083 (REGISTER_SAVE_RAX): Always defined to 0.
24084 (VMOV): Removed.
24085 (_dl_runtime_resolve_avx): Likewise.
24086 (_dl_runtime_resolve_avx_slow): Likewise.
24087 (_dl_runtime_resolve_avx_opt): Likewise.
24088 (_dl_runtime_resolve_avx512): Likewise.
24089 (_dl_runtime_resolve_avx512_opt): Likewise.
24090 (_dl_runtime_resolve_sse): Likewise.
24091 (_dl_runtime_resolve_sse_vex): Likewise.
24092 (USE_FXSAVE): New.
24093 (_dl_runtime_resolve_fxsave): Likewise.
24094 (USE_XSAVE): Likewise.
24095 (_dl_runtime_resolve_xsave): Likewise.
24096 (USE_XSAVEC): Likewise.
24097 (_dl_runtime_resolve_xsavec): Likewise.
24098 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24099 Removed.
24100 (_dl_runtime_resolve_avx512_opt): Likewise.
24101 (_dl_runtime_resolve_avx): Likewise.
24102 (_dl_runtime_resolve_avx_opt): Likewise.
24103 (_dl_runtime_resolve_sse): Likewise.
24104 (_dl_runtime_resolve_sse_vex): Likewise.
24105 (_dl_runtime_resolve_fxsave): New.
24106 (_dl_runtime_resolve_xsave): Likewise.
24107 (_dl_runtime_resolve_xsavec): Likewise.
24108
24109 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24110
24111 [BZ #22320]
24112 CVE-2017-15670
24113 * posix/glob.c (__glob): Fix one-byte overflow.
24114
24115 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24116
24117 * malloc/malloc.c (sysdep-cancel.h): Add include.
24118
24119 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24120
24121 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24122
24123 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24124
24125 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24126 (tests): Remove $(objpfx)ga_test depdendency.
24127 * resolv/ga_test.c: Remove file.
24128
24129 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24130
24131 [BZ #18812]
24132 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24133 * localedata/locales/kab_DZ: New file.
24134
24135 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24136
24137 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24138 _dl_relocate_static_pie instead of _dl_start to compute load
24139 address in static PIE.
24140
24141 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24142
24143 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24144
24145 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24146
24147 [BZ #13605]
24148 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24149 * localedata/locales/shn_MM: New file.
24150
24151 2017-10-20 Florian Weimer <fweimer@redhat.com>
24152
24153 [BZ #22321]
24154 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24155 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24156 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24157 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24158 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24159 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24160
24161 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24162
24163 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24164
24165 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24166
24167 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24168
24169 [BZ #22322]
24170 * sysdeps/mips/bits/long-double.h: Move to ....
24171 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24172
24173 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24174
24175 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24176
24177 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24178 H.J. Lu <hongjiu.lu@intel.com>
24179
24180 [BZ #22299]
24181 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24182 GLRO(dl_platform) to NULL.
24183 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24184 (modules-names): Add tst-platformmod-1 and
24185 x86_64/tst-platformmod-2.
24186 (CFLAGS-tst-platform-1.c): New.
24187 (CFLAGS-tst-platformmod-1.c): Likewise.
24188 (CFLAGS-tst-platformmod-2.c): Likewise.
24189 (LDFLAGS-tst-platformmod-2.so): Likewise.
24190 ($(objpfx)tst-platform-1): Likewise.
24191 ($(objpfx)tst-platform-1.out): Likewise.
24192 (tst-platform-1-ENV): Likewise.
24193 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24194 * sysdeps/x86_64/tst-platform-1.c: New file.
24195 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24196 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24197
24198 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24199
24200 [BZ #13994]
24201 * locale/iso-639.def: Add Karbi.
24202 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24203 * localedata/locales/mjw_IN: New file.
24204
24205 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24206
24207 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24208 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24209 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24210 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24211 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24212 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24213 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24214 <bits/floatn.h>.
24215 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24216 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24217 * manual/math.texi (Mathematics): Document additional architecture
24218 support for _Float128.
24219 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24220 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24221 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24222 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24223 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24224 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24225 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24226 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24227 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24228 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24229 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24230 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24231 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24232 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24233 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24234
24235 2017-10-18 Renlin Li <renlin.li@arm.com>
24236
24237 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24238 _DYNAMIC symbol to calculate load address.
24239
24240 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24241
24242 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24243 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24244 summary bits.
24245 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24246 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24247
24248 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24249
24250 [BZ #16777]
24251 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24252 and improve readability by using more ASCII.
24253 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24254 and improve readability by using more ASCII.
24255
24256 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24257
24258 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24259 not all targets support atomics on bool.
24260
24261 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24262
24263 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24264 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24265 __f128.
24266 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24267 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24268 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24269 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24270 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24271 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24272
24273 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24274
24275 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24276 defines.
24277
24278 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24279
24280 [BZ #22159]
24281 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24282 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24283 (do_check_remalloced_chunk): Fix build bug.
24284 (do_check_malloc_state): Add assert that checks arena->top.
24285 (malloc_consolidate): Remove initialization.
24286 (int_mallinfo): Remove call to malloc_consolidate.
24287 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24288
24289 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24290
24291 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24292 (have_fastchunks): Remove.
24293 (clear_fastchunks): Remove.
24294 (set_fastchunks): Remove.
24295 (malloc_state): Add have_fastchunks.
24296 (malloc_init_state): Use have_fastchunks.
24297 (do_check_malloc_state): Remove incorrect invariant checks.
24298 (_int_malloc): Use have_fastchunks.
24299 (_int_free): Likewise.
24300 (malloc_consolidate): Likewise.
24301
24302 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24303
24304 * malloc/malloc.c (tcache_put): Inline.
24305 (tcache_get): Inline.
24306
24307 2017-10-17 Jordi Mallach <jordi@gnu.org>
24308
24309 Aurelien Jarno <aurelien@aurel32.net>
24310 [BZ #2522]
24311 * localedata/locales/ca_ES@valencia: New file.
24312 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24313
24314 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24315
24316 [BZ #22296]
24317 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24318 < 6.x
24319
24320 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24321
24322 * scripts/build-many-glibcs.py (Context.add_all_configs):
24323 Add arm-linux-gnueabihf multiarch extra_glibcs.
24324
24325 * sysdeps/generic/ifunc-init.h: New file.
24326 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24327
24328 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24329
24330 [BZ #22019]
24331 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24332 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24333 * stdlib/tst-strfmon_l.c: adapt test case.
24334
24335 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24336
24337 * sysdeps/generic/float128-abi.h: New file.
24338 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24339 non-__prefixed symbols to ....
24340 * math/Versions: ... here. Include <float128-abi.h>.
24341 * stdlib/Versions ... and here. Include <float128-abi.h>
24342
24343 2017-10-16 Florian Weimer <fweimer@redhat.com>
24344
24345 * version.h (VERSION): Switch to ".9000" as the development
24346 version suffix.
24347
24348 2017-10-16 Florian Weimer <fweimer@redhat.com>
24349
24350 [BZ #22050]
24351 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24352 compat_symbol_reference to access non-default version.
24353
24354 2017-10-16 Florian Weimer <fweimer@redhat.com>
24355
24356 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24357
24358 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24359
24360 * include/shlib-compat.h (compat_symbol_reference): Update
24361 comment.
24362
24363 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24364
24365 * math/Makefile (test-types): Add
24366 $(type-float128-$(float128-alias-fcts)).
24367 * math/test-float128.h (TYPE_STR): Define conditional on
24368 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24369 (ULP_IDX): Likewise.
24370 (ULP_I_IDX): Likewise.
24371
24372 * stdlib/strtold.c: Include <bits/floatn.h>
24373 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24374 and later undefine as macro. Define as weak alias if
24375 [!USE_WIDE_CHAR].
24376 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24377 and later undefine as macro. Define as weak alias if
24378 [USE_WIDE_CHAR].
24379 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24380 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24381 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24382 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24383 Define and later undefine as macro. Define as weak alias if
24384 [USE_WIDE_CHAR].
24385 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24386 <bits/floatn.h>.
24387 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24388 Define and later undefine as macro. Define as weak alias if
24389 [!USE_WIDE_CHAR].
24390 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24391 Define and later undefine as macro. Define as weak alias if
24392 [USE_WIDE_CHAR].
24393
24394 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24395
24396 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24397 record_verbose messages.
24398
24399 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24400
24401 [BZ #22052]
24402 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24403 to silence -O3 -Wall warning with GCC 7.
24404
24405 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24406
24407 * Makeconfig (+link-static-before-libc): Use the first of
24408 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24409 * gmon/Makefile (tests): Add tst-gmon-static.
24410 (tests-static): Likewise.
24411 (CFLAGS-tst-gmon-static.c): New.
24412 (CRT-tst-gmon-static): Likewise.
24413 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24414 (tst-gmon-static-ENV): Likewise.
24415 (tests-special): Likewise.
24416 ($(objpfx)tst-gmon-static.out): Likewise.
24417 (clean-tst-gmon-static-data): Likewise.
24418 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24419 * gmon/tst-gmon-static-gprof.sh: New file.
24420 * gmon/tst-gmon-static.c: Likewise.
24421
24422 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24423
24424 [BZ #22295]
24425 * locale/programs/linereader.c (get_string): Don't warn on
24426 non-symbolic character.
24427
24428 [BZ #22294]
24429 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24430 int_curr_symbol.
24431
24432 [BZ #22292]
24433 * locale/programs/record-status.h: New file
24434 * locale/programs/locale.c: Add comment.
24435 * locale/programs/charmap-dir.c: Don't include error.h.
24436 (charmap_opendir): Use record_error.
24437 * locale/programs/charmap.c: Don't include error.h.
24438 (charmap_read): Use record_error, and record_warning.
24439 (parse_charmap): Likewise.
24440 * locale/programs/ld-address.c: Don't include error.h.
24441 (address_finish): Use record_error, and record_warning.
24442 * locale/programs/ld-collate.c: Don't include error.h.
24443 (collate_finish): Use record_error, and record_error_at_line.
24444 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24445 (ctype_class_new): Likewise.
24446 (ctype_map_new): Likewise.
24447 (set_one_default): Likewise.
24448 (set_class_defaults): Likewise.
24449 (translit_flatten): Likewise.
24450 (allocate_arrays): Use record_error, and record_verbose.
24451 * locale/programs/ld-identification.c: Don't include error.h.
24452 (indentation_finish): Use record_error and record_warning.
24453 * locale/programs/ld-measurement.c: Don't include error.h.
24454 (measurement_finish): Use record_error.
24455 * locale/programs/ld-messages.c
24456 (message_finish): Likewise.
24457 * locale/programs/ld-monetary.c
24458 (monetary_finish): Likewise.
24459 * locale/programs/ld-name.c (name_finish): Use record_error
24460 and record_warning.
24461 * locale/programs/ld-numeric.c
24462 (numeric_finish): Use record_error.
24463 * locale/programs/ld-paper.c: Don't include error.h.
24464 (paper_finish): Use record_error.
24465 * locale/programs/ld-telephone.c: Don't include error.h.
24466 (telephone_finish): Use record_error.
24467 * locale/programs/ld-time.c (time_finish): Likewise.
24468 * locale/programs/linereader.h (lr_error): Make inline func.
24469 * locale/programs/localedef.c: Define recorded_warning_count,
24470 and recorded_error_count.
24471 (main): Use record_error. Use recorded_error_count and
24472 recorded_warning_count to issue correct error returns.
24473 (add_to_readlist): Use record_error.
24474 (find_locale): Likewise.
24475 (load_locale): Likewise.
24476 * locale/programs/localedef.h: Remove be_quiet
24477 and WITH_CUR_LOCALE.
24478 * locale/programs/locarchive.c (compare_from_file): Use
24479 record_error.
24480 * locale/programs/locfile.c (write_locale_data): Use
24481 record_error.
24482 * locale/programs/repertoire.c: Dont include error.h.
24483 (repertoire_complain): Use record_error.
24484 * localedata/tst-fmon.sh: Expect failures from localedef.
24485 * localedata/tst-locale.sh: Likewise.
24486 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24487
24488 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24489 (REPORTS): Likewise.
24490 (check): Likewise.
24491 (i18n): Rename to...
24492 (i18n_ctype): ...this.
24493 (i18n-report): Rename to...
24494 (i18n_ctype-report): ...this.
24495 * localedata/locales/i18n_ctype: Regenerate.
24496 * localedata/locales/i18n: copy i18n_ctype.
24497
24498 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24499
24500 * stdlib/strfroml.c: Include <bits/floatn.h>.
24501 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24502 Define before include of <stdlib.h> and undefine afterwards, then
24503 define as weak alias.
24504
24505 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24506 Undefine and restore default definition. Use
24507 libm_alias_ldouble_other.
24508
24509 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24510
24511 [BZ #22153]
24512 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24513 in coredumps.
24514
24515 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24516
24517 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24518 Assign sym_map to be map for local symbols, as TLS relocations
24519 use sym_map to determine whether the symbol is defined and to
24520 extract the TLS information.
24521 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24522 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24523
24524 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24525
24526 [BZ #22189]
24527 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24528 (math_force_eval): Add powerpc version.
24529
24530 [BZ #22142]
24531 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24532 -DBL_MAX.
24533 (do_test): Likewise.
24534 * stdio-common/tst-printf.sh: Likewise.
24535 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24536 ifdef clause in order to set the carry bit right. Replace r0 by
24537 0 without changing the behavior.
24538
24539 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24540
24541 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24542 <libm-alias-ldouble.h>.
24543 (fabsl): Define using libm_alias_ldouble.
24544 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24545 <libm-alias-ldouble.h>.
24546 (fabsl): Define using libm_alias_ldouble.
24547
24548 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24549 Remove conditional code.
24550
24551 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24552 Rename to __clog10_internal_l.
24553 (__clog10_internal_l): Define aliases using
24554 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24555 with __clog10.
24556
24557 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24558
24559 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24560 * benchtests/sincosf-inputs: New file.
24561 * benchtests/cosf-inputs: New file.
24562 * benchtests/sinf-inputs: New file.
24563
24564 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24565
24566 * posix/tst-spawn.c (do_test): Wait for both children.
24567
24568 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24569
24570 [BZ #22284]
24571 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24572 tests-pie): Add tst-gmon-pie.
24573 (CFLAGS-tst-gmon-pie.c): New.
24574 (CRT-tst-gmon-pie): Likewise.
24575 (tst-gmon-pie-ENV): Likewise.
24576 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24577 ($(objpfx)tst-gmon-pie.out): Likewise.
24578 (clean-tst-gmon-pie-data): Likewise.
24579 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24580 * gmon/gmon.c [PIC]: Include <link.h>.
24581 [PIC] (callback): New function.
24582 (write_hist): Add an argument for load address. Subtract load
24583 address from PCs.
24584 (write_call_graph): Likewise.
24585 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24586 it to write_hist and write_call_graph.
24587 * gmon/tst-gmon-pie.c: New file.
24588
24589 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24590
24591 * math/Makefile (test-types-basic): New variable.
24592 (test-types): Likewise.
24593 (libm-test-support): Use $(test-types) instead of $(types).
24594 (libm-tests-base-normal): Likewise.
24595 (libm-tests-base-finite): Likewise.
24596 (libm-tests-base-inline): Likewise.
24597 (generated): Likewise.
24598 ($(objpfx)libm-test-support-$(t).c): Likewise.
24599 (libm-tests-for-type iterator): Likewise.
24600 (libm-test-support iterator): Likewise.
24601 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24602 (ulp_idx): Use ULP_IDX.
24603 * math/test-ldouble.h: Include <float.h>.
24604 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24605 (ULP_IDX): New macro.
24606 (ULP_I_IDX): Likewise.
24607 * math/test-double.h (ULP_IDX): Likewise.
24608 (ULP_I_IDX): Likewise.
24609 * math/test-float.h (ULP_IDX): Likewise.
24610 (ULP_I_IDX): Likewise.
24611 * math/test-float128.h (ULP_IDX): Likewise.
24612 (ULP_I_IDX): Likewise.
24613
24614 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24615
24616 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24617 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24618 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24619 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24620 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24621 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24622 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24623 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24624 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24625 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24626 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24627 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24628 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24629 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24630 (SINGLE_THREAD_BY_GLOBAL): Define.
24631 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24632 Likewise.
24633 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24634 Likewise.
24635 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24636 Likewise.
24637 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24638 Likewise.
24639 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24640 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24641 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24642 Likewise.
24643
24644 2017-10-11 Andreas Schwab <schwab@suse.de>
24645
24646 * nis/Makefile (aux): Remove.
24647 * nscd/Makefile (aux): Add nscd_hash.
24648 (nscd-modules): Likewise.
24649 ($(objpfx)nscd): Don't depend on libnsl.
24650 * nscd/nscd_hash.c: New file.
24651 * nscd/nscd_hash.h: Likewise.
24652 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24653 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24654 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24655 instead of <nis/rpcsvc/nis.h>.
24656 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24657
24658 2017-10-11 Florian Weimer <fweimer@redhat.com>
24659
24660 [BZ #22078]
24661 Avoid large NSS buffers with many addresses, aliases.
24662 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24663 using dynarrays and struct alloc_buffer.
24664 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24665 (tst-nss-files-hosts-multi): Link with -ldl.
24666 * nss/tst-nss-files-hosts-multi.c: New file.
24667
24668 2017-10-11 Florian Weimer <fweimer@redhat.com>
24669
24670 [BZ #18023]
24671 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24672 scratch_buffer. Eliminate gotos.
24673
24674 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24675
24676 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24677 libm_alias_ldouble_other.
24678 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24679 undefine and redefine.
24680 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24681 (exp10l): Do not define here.
24682 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24683 (weak_alias): Undefine and redefine.
24684 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24685 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24686 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24687 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24688
24689 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24690 [!__fma] (fma): Define using libm_alias_double.
24691 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24692 [!__fmaf] (fmaf): Define using libm_alias_float.
24693 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24694 (fmal): Define using libm_alias_ldouble.
24695
24696 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24697
24698 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24699 New macro.
24700 (libm_alias_double_other): Likewise.
24701 (libm_alias_double_r): Use libm_alias_double_other_r.
24702 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24703 New macro.
24704 (libm_alias_float_other): Likewise.
24705 (libm_alias_float_r): Use libm_alias_float_other_r.
24706 * sysdeps/generic/libm-alias-float128.h
24707 (libm_alias_float128_other_r): New macro.
24708 (libm_alias_float128_other): Likewise.
24709 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24710 * sysdeps/generic/libm-alias-ldouble.h
24711 (libm_alias_ldouble_other_r): New macro.
24712 (libm_alias_ldouble_other): Likewise.
24713 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24714 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24715 (libm_alias_double_other_r): New macro.
24716 (libm_alias_double_other): Likewise.
24717 (libm_alias_double_r): Use libm_alias_double_other_r.
24718 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24719 (libm_alias_ldouble_other_r): New macro.
24720 (libm_alias_ldouble_other): Likewise.
24721 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24722 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24723 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24724 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24725 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24726 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24727 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24728 * math/w_exp2f.c: Use libm_alias_float_other.
24729 * math/w_expf.c: Likewise.
24730 * math/w_log2f.c: Likewise.
24731 * math/w_logf.c: Likewise.
24732 * math/w_powf.c: Likewise.
24733 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24734 [!__exp2f]: Use libm_alias_float_other.
24735 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24736 [!__expf]: Use libm_alias_float_other.
24737 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24738 [!__log2f]: Use libm_alias_float_other.
24739 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24740 [!__logf]: Use libm_alias_float_other.
24741 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24742 [!__powf]: Use libm_alias_float_other.
24743
24744 2017-10-10 Florian Weimer <fweimer@redhat.com>
24745
24746 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24747 function.
24748 (_nss_files_gethostbyname3_r): Call it.
24749
24750 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24751
24752 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24753 error. Remove default definition of declare_mgen_alias.
24754 [!declare_mgen_alias_r]: Likewise.
24755 * sysdeps/generic/math-type-macros-double.h
24756 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24757 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24758 (declare_mgen_alias_r): Likewise.
24759 * sysdeps/generic/math-type-macros-float128.h
24760 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24761 * sysdeps/generic/math-type-macros-ldouble.h
24762 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24763 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24764 macro.
24765 (declare_mgen_alias_r_s): Likewise.
24766 (declare_mgen_alias_r): Likewise.
24767 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24768 (lgamma_r): Define using libm_alias_double_r.
24769 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24770 (lgammaf_r): Define using libm_alias_float_r.
24771 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24772 (lgammal_r): Define using libm_alias_ldouble_r.
24773 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24774 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24775
24776 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24777
24778 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24779 extern declaration.
24780
24781 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24782
24783 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24784
24785 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24786
24787 [BZ #21326]
24788 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24789 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24790 * math/Makefile (test-math-cxx11): New test.
24791 * math/test-math-cxx11.cc: New file.
24792
24793 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24794
24795 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24796
24797 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24798 call to allocate the slave pty file descriptor.
24799
24800 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24801
24802 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24803 [!__fma] (fma): Define using libm_alias_double.
24804 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24805 [!__fma] (fma): Define using libm_alias_double.
24806
24807 * sysdeps/ieee754/float128/float128_private.h: Include
24808 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24809 (libm_alias_ldouble_r): Undefine and redefine.
24810 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24811 <libm-alias-ldouble.h>.
24812 (asinhl): Define using libm_alias_ldouble.
24813 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24814 <libm-alias-ldouble.h>.
24815 (atanl): Define using libm_alias_ldouble.
24816 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24817 <libm-alias-ldouble.h>.
24818 (cbrtl): Define using libm_alias_ldouble.
24819 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24820 <libm-alias-ldouble.h>.
24821 (ceill): Define using libm_alias_ldouble.
24822 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24823 <libm-alias-ldouble.h>.
24824 (copysignl): Define using libm_alias_ldouble.
24825 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (cosl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24829 <libm-alias-ldouble.h>.
24830 (erfl): Define using libm_alias_ldouble.
24831 (erfcl): Likewise.
24832 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24833 <libm-alias-ldouble.h>.
24834 (expm1l): Define using libm_alias_ldouble.
24835 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24836 <libm-alias-ldouble.h>.
24837 (fabsl): Define using libm_alias_ldouble.
24838 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24839 <libm-alias-ldouble.h>.
24840 (floorl): Define using libm_alias_ldouble.
24841 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24842 <libm-alias-ldouble.h>.
24843 (fmal): Define using libm_alias_ldouble.
24844 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24845 <libm-alias-ldouble.h>.
24846 (frexpl): Define using libm_alias_ldouble.
24847 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24848 libm_alias_ldouble.
24849 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24850 <libm-alias-ldouble.h>.
24851 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24852 libm_alias_ldouble.
24853 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24854 <libm-alias-ldouble.h>.
24855 (getpayloadl): Define using libm_alias_ldouble.
24856 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24857 <libm-alias-ldouble.h>.
24858 (llrintl): Define using libm_alias_ldouble.
24859 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24860 <libm-alias-ldouble.h>.
24861 (llroundl): Define using libm_alias_ldouble.
24862 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24863 <libm-alias-ldouble.h>.
24864 (logbl): Define using libm_alias_ldouble.
24865 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24866 <libm-alias-ldouble.h>.
24867 (lrintl): Define using libm_alias_ldouble.
24868 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24869 <libm-alias-ldouble.h>.
24870 (lroundl): Define using libm_alias_ldouble.
24871 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24872 <libm-alias-ldouble.h>.
24873 (modfl): Define using libm_alias_ldouble.
24874 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24875 <libm-alias-ldouble.h>.
24876 (nearbyintl): Define using libm_alias_ldouble.
24877 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24878 <libm-alias-ldouble.h>.
24879 (nextafterl): Define using libm_alias_ldouble.
24880 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24881 <libm-alias-ldouble.h>.
24882 (nextupl): Define using libm_alias_ldouble.
24883 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24884 <libm-alias-ldouble.h>.
24885 (remquol): Define using libm_alias_ldouble.
24886 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24887 <libm-alias-ldouble.h>.
24888 (rintl): Define using libm_alias_ldouble.
24889 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24890 <libm-alias-ldouble.h>.
24891 (roundevenl): Define using libm_alias_ldouble.
24892 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24893 <libm-alias-ldouble.h>.
24894 (roundl): Define using libm_alias_ldouble.
24895 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24896 using libm_alias_ldouble.
24897 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24898 <libm-alias-ldouble.h>.
24899 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24900 Define using libm_alias_ldouble.
24901 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24902 <libm-alias-ldouble.h>.
24903 (sincosl): Define using libm_alias_ldouble.
24904 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24905 <libm-alias-ldouble.h>.
24906 (sinl): Define using libm_alias_ldouble.
24907 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24908 <libm-alias-ldouble.h>.
24909 (tanhl): Define using libm_alias_ldouble.
24910 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24911 <libm-alias-ldouble.h>.
24912 (tanl): Define using libm_alias_ldouble.
24913 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24914 <libm-alias-ldouble.h>.
24915 (totalorderl): Define using libm_alias_ldouble.
24916 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24917 <libm-alias-ldouble.h>.
24918 (totalordermagl): Define using libm_alias_ldouble.
24919 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24920 <libm-alias-ldouble.h>.
24921 (truncl): Define using libm_alias_ldouble.
24922 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24923 libm_alias_ldouble.
24924 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24925 libm_alias_ldouble.
24926 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24927 <libm-alias-ldouble.h>.
24928 (weak_alias): Do not undefine and redefine.
24929 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24930 (copysignl): Define with long_double_symbol only if [IS_IN
24931 (libc)].
24932 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24933 <libm-alias-ldouble.h>.
24934 (weak_alias): Do not undefine and redefine.
24935 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24936 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24937 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24938 <libm-alias-ldouble.h>.
24939 (weak_alias): Do not undefine and redefine.
24940 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24941 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24942 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24943 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24944 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24945 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24946 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24947 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24948 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24949 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24950 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24951 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24952 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24953 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24954 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24955 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24956 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24957 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24958 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24959 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24960 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24961 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24962 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24963 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24964 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24965 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24966
24967 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24968
24969 [BZ #22111]
24970 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24971 (tcache_thread_freeres): Set tcache_shutting_down before
24972 freeing the tcache.
24973 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24974 * malloc/tst-malloc-tcache-leak.c: New file.
24975
24976 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24977
24978 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24979 back to powerpc32 file.
24980 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24981 (memrchr): Add __memrchr_power8 to ifunc list.
24982 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24983 extra bytes for unaligned inputs.
24984
24985 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24986
24987 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24988 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24989 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24990 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24991 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24992
24993 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24994
24995 * sysdeps/arm/libm-test-ulps: Update.
24996
24997 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24998 <libm-alias-ldouble.h>.
24999 (asinhl): Define using libm_alias_ldouble.
25000 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25001 <libm-alias-ldouble.h>.
25002 (cbrtl): Define using libm_alias_ldouble.
25003 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25004 <libm-alias-ldouble.h>.
25005 (copysignl): Define using libm_alias_ldouble.
25006 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25007 <libm-alias-ldouble.h>.
25008 (cosl): Define using libm_alias_ldouble.
25009 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25010 <libm-alias-ldouble.h>.
25011 (erfl): Define using libm_alias_ldouble.
25012 (erfcl): Likewise.
25013 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25014 <libm-alias-ldouble.h>.
25015 (fmal): Define using libm_alias_ldouble.
25016 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25017 <libm-alias-ldouble.h>.
25018 (frexpl): Define using libm_alias_ldouble.
25019 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25020 libm_alias_ldouble.
25021 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25022 <libm-alias-ldouble.h>.
25023 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25024 libm_alias_ldouble.
25025 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25026 <libm-alias-ldouble.h>.
25027 (getpayloadl): Define using libm_alias_ldouble.
25028 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25029 <libm-alias-ldouble.h>.
25030 (llrintl): Define using libm_alias_ldouble.
25031 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25032 <libm-alias-ldouble.h>.
25033 (llroundl): Define using libm_alias_ldouble.
25034 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25035 <libm-alias-ldouble.h>.
25036 (lrintl): Define using libm_alias_ldouble.
25037 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25038 <libm-alias-ldouble.h>.
25039 (lroundl): Define using libm_alias_ldouble.
25040 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25041 <libm-alias-ldouble.h>.
25042 (modfl): Define using libm_alias_ldouble.
25043 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25044 <libm-alias-ldouble.h>.
25045 (nextupl): Define using libm_alias_ldouble.
25046 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25047 <libm-alias-ldouble.h>.
25048 (remquol): Define using libm_alias_ldouble.
25049 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25050 <libm-alias-ldouble.h>.
25051 (roundevenl): Define using libm_alias_ldouble.
25052 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25053 <libm-alias-ldouble.h>.
25054 (roundl): Define using libm_alias_ldouble.
25055 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25056 using libm_alias_ldouble.
25057 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25058 <libm-alias-ldouble.h>.
25059 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25060 <libm-alias-ldouble.h>.
25061 (setpayloadsigl): Define using libm_alias_ldouble.
25062 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25063 <libm-alias-ldouble.h>.
25064 (sincosl): Define using libm_alias_ldouble.
25065 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25066 <libm-alias-ldouble.h>.
25067 (sinl): Define using libm_alias_ldouble.
25068 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25069 <libm-alias-ldouble.h>.
25070 (tanhl): Define using libm_alias_ldouble.
25071 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25072 <libm-alias-ldouble.h>.
25073 (tanl): Define using libm_alias_ldouble.
25074 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25075 <libm-alias-ldouble.h>.
25076 (totalorderl): Define using libm_alias_ldouble.
25077 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25078 <libm-alias-ldouble.h>.
25079 (totalordermagl): Define using libm_alias_ldouble.
25080 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25081 libm_alias_ldouble.
25082 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25083 libm_alias_ldouble.
25084
25085 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25086
25087 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25088 memmove_falkor.
25089 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25090 (__libc_ifunc_impl_list): Likewise.
25091 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25092 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25093
25094 * benchtests/bench-memmove-walk.c: New file.
25095 * benchtests/Makefile (string-benchset): Add it.
25096
25097 * benchtests/bench-memset-walk.c: New file.
25098 * benchtests/Makefile (string-benchset): Add it.
25099
25100 * benchtests/bench-memcpy-walk.c: New file.
25101 * benchtests/Makefile (string-benchset): Add it.
25102
25103 2017-10-05 Florian Weimer <fweimer@redhat.com>
25104
25105 nscd: Eliminate compilation time dependency in the build output.
25106 * nscd/nscd_stat.c (STATDATA_VERSION)
25107 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25108 (STATDATA_VERSION_FULL): New macro definitions.
25109 (compilation): Remove.
25110 (struct statdata): Adjust version member.
25111 (send_stats): Set version from STATDATA_VERSION_FULL.
25112 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25113
25114 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25115
25116 * configure.ac (--enable-add-ons): Remove option.
25117 (machine): Do not mention add-ons in comment.
25118 (LIBC_PRECONFIGURE): Likewise.
25119 (add_ons): Remove variable and sanity checks and logic to locate
25120 add-ons.
25121 (add_ons_automatic): Remove variable.
25122 (configured_add_ons): Likewise.
25123 (add_ons_sfx): Likewise.
25124 (add_ons_pfx): Likewise.
25125 (add_on_subdirs): Likewise.
25126 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25127 consideration of add-ons in Implies handling.
25128 (sysdeps_add_ons): Likewise.
25129 * configure: Regenerated.
25130 * libidn/configure.ac: Remove.
25131 * libidn/configure: Likewise.
25132 * sysdeps/unix/inet/configure.ac: New file.
25133 * sysdeps/unix/inet/configure: New generated file.
25134 * sysdeps/unix/inet/Subdirs: Add libidn.
25135 * Makeconfig (sysdeps-srcdirs): Remove variable.
25136 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25137 ($(common-objpfx)config.status): Do not depend on add-on files.
25138 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25139 comment.
25140 (all-subdirs): Do not include $(add-on-subdirs).
25141 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25142 * config.make.in (add-ons): Remove variable.
25143 (add-on-subdirs): Likewise.
25144 (sysdeps-add-ons): Likewise.
25145 * manual/Makefile (add-chapters): Remove.
25146 ($(objpfx)texis): Do not depend on $(add-chapters).
25147 (nonexamples): Do not handle $(add-chapters).
25148 (examples): Do not handle $(add-ons).
25149 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25150 libc-texinfo.sh.
25151 * manual/install.texi (Installation): Do not mention add-ons.
25152 (--enable-add-ons): Do not document configure option.
25153 * INSTALL: Regenerated.
25154 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25155 * manual/maint.texi (Hierarchy Conventions): Do not mention
25156 add-ons.
25157 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25158 --enable-add-ons.
25159 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25160 add-ons.
25161 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25162 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25163
25164 2017-10-05 Andreas Schwab <schwab@suse.de>
25165
25166 [BZ #15142]
25167 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25168 (_IO_flush_all_lockp): Always lock list_all_lock.
25169 (_IO_flush_all_linebuffered): Likewise.
25170 (_IO_unbuffer_all): Likewise.
25171
25172 2017-10-05 Florian Weimer <fweimer@redhat.com>
25173
25174 [BZ #15436]
25175 Do not flush stdio streams on abort.
25176 * stdlib/abort.c (fflush): Remove macro definition.
25177 (abort): Remove stages related to stdio flushing.
25178
25179 2017-10-05 Florian Weimer <fweimer@redhat.com>
25180
25181 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25182
25183 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25184
25185 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25186
25187 2017-10-05 Florian Weimer <fweimer@redhat.com>
25188
25189 * support/support_format_hostent.c (support_format_hostent): Add
25190 more error information for NETDB_INTERNAL.
25191
25192 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25193
25194 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25195 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25196 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25197 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25198 AC_DEFINE if multi-arch is enabled.
25199 * sysdeps/i386/configure: Regenerated.
25200
25201 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25202
25203 * Makeconfig (+link-static-before-libc): Use
25204 $(DEFAULT-LDFLAGS-$(@F)).
25205 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25206 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25207 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25208
25209 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25210
25211 * elf/Makefile (tests): Add tst-main1.
25212 (modules-names): Add tst-main1mod.
25213 ($(objpfx)tst-main1): New.
25214 (CRT-tst-main1): Likewise.
25215 (LDFLAGS-tst-main1): Likewise.
25216 (LDLIBS-tst-main1): Likewise.
25217 (tst-main1mod.so-no-z-defs): Likewise.
25218 * elf/tst-main1.c: New file.
25219 * elf/tst-main1mod.c: Likewise.
25220
25221 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25222
25223 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25224
25225 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25226
25227 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25228 (fma): Define using libm_alias_double.
25229 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25230 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25231 <math_ldbl_opt.h>.
25232 (fmal): Do not define as compat symbol here.
25233 * sysdeps/alpha/fpu/s_fma.c: New file.
25234
25235 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25236
25237 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25238
25239 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25240
25241 [BZ #22229]
25242 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25243 <math_ldbl_opt.h>
25244 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25245 and libc.
25246 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25247 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25248 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25249 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25250 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25251 Include <math_ldbl_opt.h>
25252 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25253 and libc.
25254 (compat_symbol): Undefine and redefine.
25255 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25256 <math_ldbl_opt.h>
25257 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25258 (compat_symbol): Undefine and redefine.
25259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25260 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25261 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25262 GLIBC_2_1 for libm.
25263 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25264 GLIBC_2.0 copysignl symbol.
25265 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25266 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25267
25268 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25269
25270 2017-10-04 Florian Weimer <fweimer@redhat.com>
25271
25272 * scripts/check-local-headers.sh: Ignore nspr4 header file
25273 directory in addition to nspr.
25274
25275 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25276
25277 [BZ #17956]
25278 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25279 * configure: Regenerate.
25280 * crypt/Makefile (nss-cpp-flags): New variable.
25281 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25282 (CPPFLAGS-md5-crypt.c): Use it.
25283 * scripts/check-local-headers.sh: Ignore nspr header file
25284 directory.
25285
25286 2017-10-04 Andreas Schwab <schwab@suse.de>
25287
25288 * nis/Makefile (services): Remove compat.
25289 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25290 ($(objpfx)libnss_compat.so): Remove rule.
25291 * nis/Versions (libnss_compat): Remove.
25292 * nss/Makefile (services): Add compat.
25293 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25294 * nss/Versions (libnss_compat): Define.
25295 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25296 Don't include <rpc/types.h>. Replace bool_t by bool.
25297 * nss/nss_compat/compat-initgroups.c: Likewise.
25298 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25299 instead of <rpcsrv/ypclnt.h>.
25300 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25301 yp_get_default_domain.
25302 * nss/nss_compat/compat-pwd.c: Likewise.
25303 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25304 yp_get_default_domain.
25305 * nss/nss_compat/nisdomain.c: New file.
25306 * nss/nss_compat/nisdomain.h: Likewise.
25307
25308 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25309
25310 [BZ #22244]
25311 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25312 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25313
25314 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25315
25316 [BZ #22243]
25317 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25318 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25319
25320 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25321
25322 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25323 "movl main@GOTOFF(%ebx), %eax".
25324
25325 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25326
25327 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25328 allow undefined _DYNAMIC in PIE libc.a.
25329 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25330 Likewse.
25331
25332 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25333
25334 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25335 check _DYNAMIC.
25336
25337 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25338
25339 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25340 check _DYNAMIC.
25341
25342 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25343
25344 * math/test-math-iscanonical.cc (error): Replace bool with int.
25345
25346 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25347
25348 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25349 (modf): Define using libm_alias_double, only if [!__modf].
25350 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25351 <libm-alias-double.h>.
25352 (modf): Define using libm_alias_double, only if [!__modf].
25353 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25354 compat symbol here.
25355 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25356 (weak_alias): Do not undefine and redefine.
25357 (strong_alias): Likewise.
25358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25359 (weak_alias): Likewise.
25360 (strong_alias): Likewise.
25361
25362 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25363 (logb): Define using libm_alias_double, only if [!__logb].
25364 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25365 <libm-alias-double.h>.
25366 (logb): Define using libm_alias_double, only if [!__logb].
25367 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25369 (weak_alias): Do not undefine and redefine.
25370 (strong_alias): Likewise.
25371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25372 (weak_alias): Likewise.
25373 (strong_alias): Likewise.
25374
25375 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25376
25377 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25378 Check SHARED instead PIC.
25379
25380 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25381
25382 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25383 [!__fmaf] (fmaf): Define using libm_alias_float.
25384
25385 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25386 (frexp): Define using libm_alias_double.
25387 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25388 <libm-alias-double.h>.
25389 (frexp): Define using libm_alias_double.
25390 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25391 compat symbol here.
25392
25393 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25394
25395 [BZ #22235]
25396 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25397 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25398 (CFLAGS-test-math-iscanonical.cc): New variable.
25399 * math/test-math-iscanonical.cc: New file.
25400 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25401 Provide a C++ implementation based on function overloading,
25402 rather than using __MATH_TG, which uses C-only builtins.
25403 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25404 Likewise.
25405 * sysdeps/powerpc/powerpc64le/Makefile
25406 (CFLAGS-test-math-iscanonical.cc): New variable.
25407
25408 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25409
25410 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25411 (ceil): Define using libm_alias_double.
25412 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25413 (floor): Define using libm_alias_double.
25414 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25415 <libm-alias-double.h>.
25416 (llround): Define using libm_alias_double.
25417 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25418 <libm-alias-double.h>.
25419 (lround): Define using libm_alias_double.
25420 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25421 <libm-alias-double.h>.
25422 (nearbyint): Define using libm_alias_double.
25423 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25424 <libm-alias-double.h>.
25425 (remquo): Define using libm_alias_double.
25426 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25427 (rint): Define using libm_alias_double.
25428 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25429 (round): Define using libm_alias_double.
25430 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25431 (trunc): Define using libm_alias_double.
25432 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25433 <libm-alias-double.h>.
25434 (ceil): Define using libm_alias_double.
25435 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25436 <libm-alias-double.h>.
25437 (floor): Define using libm_alias_double.
25438 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25439 <libm-alias-double.h>.
25440 (llround): Define using libm_alias_double.
25441 [_LP64] (lround): Likewise.
25442 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25443 <libm-alias-double.h>.
25444 [!_LP64] (lround): Define using libm_alias_double.
25445 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25446 <libm-alias-double.h>.
25447 (nearbyint): Define using libm_alias_double.
25448 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25449 <libm-alias-double.h>.
25450 (remquo): Define using libm_alias_double.
25451 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25452 <libm-alias-double.h>.
25453 (rint): Define using libm_alias_double.
25454 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25455 <libm-alias-double.h>.
25456 (round): Define using libm_alias_double.
25457 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25458 <libm-alias-double.h>.
25459 (trunc): Define using libm_alias_double.
25460 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25461 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25462 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25463 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25464 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25465 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25466 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25467 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25468 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25469
25470 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25471
25472 * math/w_remainder.c: New file.
25473 * math/w_remainderf.c: New file.
25474 * math/w_remainderl.c: New file.
25475
25476 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25477
25478 * elf/rtld.c (BOOTSTRAP_MAP): New.
25479 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25480 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25481 Likewise.
25482 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25483 Likewise.
25484 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25485 Likewise.
25486
25487 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25488
25489 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25490 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25491 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25492 rtld_hidden_data_ver): Define to empty.
25493 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25494 __assert_perror_fail): Likewise.
25495 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25496 (__rewinddir): Likewise.
25497 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25498 (__profile_frequency): Likewise.
25499 * include/setjmp.h (__sigsetjmp): Likewise.
25500 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25501 __libc_sigaction): Likewise.
25502 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25503 not set hidden attribute.
25504 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25505 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25506 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25507 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25508 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25509 __fxstatat64): Likewise.
25510 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25511 (__uname): Likewise.
25512 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25513 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25514 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25515 (NO_RTLD_HIDDEN): Set.
25516 * sysdeps/mach/hurd/configure: Refresh.
25517 * config.h.in: Refresh.
25518
25519 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25520
25521 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25522 (atan): Define using libm_alias_double.
25523 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25524 (tan): Define using libm_alias_double.
25525 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25526 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25527
25528 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25529 define as weak alias of __atan. Do not define any aliases if
25530 [__atan].
25531 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25532 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25533 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25534 as weak alias of __tan. Do not define any aliases if [__tan].
25535 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25536 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25537 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25538 __atan.
25539 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25540 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25541 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25542 and define as weak alias of __atan.
25543 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25544 __atan.
25545 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25546 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25547 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25548 define as weak alias of __tan.
25549
25550 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25551
25552 * math/w_lgamma.c: New file.
25553 * math/w_lgammaf.c: New file.
25554 * math/w_lgammal.c: New file.
25555
25556 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25557
25558 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25559 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25560 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25561 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25562 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25563 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25564 * sysdeps/i386/fpu/w_log2f.c: New file.
25565 * sysdeps/i386/fpu/w_logf.c: New file.
25566 * sysdeps/i386/fpu/w_powf.c: New file.
25567 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25568 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25569 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25570
25571 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25572 H.J. Lu <hongjiu.lu@intel.com>
25573
25574 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25575 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25576 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25577 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25578 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25579 the new expf code.
25580 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25581 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25582 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25583 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25584 * sysdeps/i386/fpu/w_exp2f.c: New file.
25585 * sysdeps/i386/fpu/w_expf.c: New file.
25586 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25587 * sysdeps/x86_64/fpu/w_expf.c: New file.
25588
25589 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25590
25591 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25592 (log2f): Likewise.
25593 (powf): Likewise.
25594 * math/w_log2f.c: New file.
25595 * math/w_logf.c: New file.
25596 * math/w_powf.c: New file.
25597 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25598 * math/w_logf_compat.c (__logf_compat): Likewise.
25599 * math/w_powf_compat.c (__powf_compat): Likewise.
25600 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25601 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25602 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25603 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25604 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25605 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25606 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25607 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25608 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25609 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25610 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25611 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25612 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25613 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25614 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25616 Likewise.
25617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25618 Likewise.
25619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25620 Likewise.
25621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25622 Likewise.
25623 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25624 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25625 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25626 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25627 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25628 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25629 Likewise.
25630 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25631 Likewise.
25632 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25633 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25634 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25635
25636 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25637
25638 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25639 (sysdep_routines): Add memrchr_power8.
25640 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25641 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25642 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25643 New file.
25644 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25645 (memrchr): Add __memrchr_power8 to ifunc list.
25646 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25647
25648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25649
25650 [BZ #18822]
25651 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25652 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25653 libc_hidden_def.
25654 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25655 (__posix_fallocate64_l64): Likewise.
25656
25657 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25658
25659 [BZ #18822]
25660 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25661 (__sched_setaffinity_new): Add libc_hidden_proto and
25662 libc_hidden_def.
25663
25664 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 [BZ #18822]
25667 * include/glob.h (__glob64): Add libc_hidden_proto.
25668 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25669 libc_hidden_def.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25675 attribute_hidden.
25676
25677 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25678
25679 [BZ #18822]
25680 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25681
25682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25683
25684 [BZ #18822]
25685 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25686 libc_hidden_def.
25687
25688 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25689
25690 [BZ #18822]
25691 * csu/version.c (__libc_print_version): Add attribute_hidden.
25692
25693 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25694
25695 [BZ #18822]
25696 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25697
25698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25699
25700 [BZ #18822]
25701 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25702
25703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25704
25705 [BZ #18822]
25706 * nscd/nscd_helper.c (__nis_hash): New prototype.
25707
25708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25709
25710 [BZ #18822]
25711 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25712 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25713 libc_hidden_def.
25714 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25715 * termios/tcgetattr.c (__tcgetattr): Likewise.
25716
25717 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25718
25719 [BZ #18822]
25720 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25721 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25722 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25723 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25724 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25725
25726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25727
25728 [BZ #18822]
25729 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25730
25731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 [BZ #18822]
25734 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25735 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25736
25737 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25738
25739 [BZ #18822]
25740 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25741
25742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25743
25744 [BZ #18822]
25745 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25746 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25747
25748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25749
25750 [BZ #18822]
25751 * include/ifreq.h: New file.
25752 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25753 (__ifreq): Likewise.
25754 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25755 (__ifreq): Likewise.
25756
25757 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25758
25759 [BZ #18822]
25760 * include/idna.h: New file.
25761 * inet/getnameinfo.c: Include <idna.h> instead of
25762 <libidn/idna.h>.
25763 (__idna_to_unicode_lzlz): Removed.
25764 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25765 <libidn/idna.h>.
25766 (__idna_to_ascii_lz): Removed.
25767 (__idna_to_unicode_lzlz): Likewise.
25768
25769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 [BZ #18822]
25772 * include/plural-exp.h: New file.
25773 * intl/plural-exp.c: Include <plural-exp.h> instead of
25774 "plural-exp.h".
25775
25776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 [BZ #18822]
25779 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25780 "getsourcefilter.h".
25781 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25782 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25783 "getsourcefilter.h".
25784 (__get_sol): Removed.
25785
25786 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25787
25788 [BZ #18822]
25789 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25790 to ...
25791 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25792
25793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25794
25795 [BZ #18822]
25796 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25797 attribute_hidden.
25798
25799 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25800
25801 [BZ #18822]
25802 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25803
25804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25805
25806 [BZ #18822]
25807 * include/search.h (__tdestroy): Add libc_hidden_proto.
25808 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25809
25810 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25811
25812 [BZ #18822]
25813 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25814
25815 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25816
25817 [BZ #18822]
25818 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25819 attribute_hidden.
25820
25821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25822
25823 [BZ #18822]
25824 * include/signal.h (__kill): Add libc_hidden_proto.
25825 (__sigblock): Likewise.
25826 (__sigprocmask): Likewise.
25827 (__sigaltstack): Likewise.
25828 * signal/kill.c (__kill): Add libc_hidden_def.
25829 * signal/sigblock.c (__sigblock): Likewise.
25830 * signal/sigprocmask.c (__sigprocmask): Likewise.
25831 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25832 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25833 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25834 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25835 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25836 Likewise.
25837 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25838 Likewise.
25839 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25840 (__sigprocmask): Likewise.
25841 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25842 Likewise.
25843 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25844 (__sigprocmask): Likewise.
25845 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25846 Likewise.
25847
25848 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25849
25850 [BZ #18822]
25851 * include/string.h (__strsep): Add libc_hidden_proto.
25852 * string/strsep.c (__strsep): Add libc_hidden_def.
25853
25854 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 [BZ #18822]
25857 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25858 attribute_hidden.
25859 (__spawni): Likewise.
25860
25861 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25862
25863 [BZ #18822]
25864 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25865 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25866 libc_hidden_def.
25867
25868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25869
25870 [BZ #18822]
25871 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25872
25873 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25874
25875 [BZ #18822]
25876 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25877 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25878 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25879 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25880 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25881 Likewise.
25882 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25883 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25884
25885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25886
25887 [BZ #18822]
25888 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25889 (__dcigettext): Likewise.
25890
25891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25892
25893 [BZ #18822]
25894 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25895 libc_hidden_proto.
25896 (__get_nprocs): Likewise.
25897 (__get_phys_pages): Likewise.
25898 (__get_avphys_pages): Likewise.
25899 (__get_child_max): Add attribute_hidden.
25900 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25901 (__get_nprocs): Likewise.
25902 (__get_phys_pages): Likewise.
25903 (__get_avphys_pages): Likewise.
25904 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25905 libc_hidden_def.
25906 (__get_nprocs): Likewise.
25907 (__get_phys_pages): Likewise.
25908 (__get_avphys_pages): Likewise.
25909 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25910 libc_hidden_def.
25911 (__get_nprocs_conf): Likewise.
25912 (__get_phys_pages): Likewise.
25913 (__get_avphys_pages): Likewise.
25914
25915 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 [BZ #18822]
25918 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25919 attribute_hidden.
25920 (__netlink_close): Likewise.
25921 (__netlink_free_handle): Likewise.
25922 (__netlink_request): Likewise.
25923
25924 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 [BZ #18822]
25927 * include/rpc/rpc.h (__rpc_thread_variables): Add
25928 attribute_hidden.
25929 (__rpc_thread_svc_cleanup): Likewise.
25930 (__rpc_thread_clnt_cleanup): Likewise.
25931 (__rpc_thread_key_cleanup): Likewise.
25932
25933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25934
25935 [BZ #18822]
25936 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25937 (__writev): Likewise.
25938 * misc/readv.c (__readv): Add libc_hidden_def.
25939 * misc/writev.c (__writev): Likewise.
25940 * sysdeps/posix/readv.c (__readv): Likewise.
25941 * sysdeps/posix/writev.c (__writev): Likewise.
25942 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25943 (__readv): Likewise.
25944 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25945 (__writev): Likewise.
25946
25947 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25948
25949 [BZ #18822]
25950 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25951 (__regcomp): Add libc_hidden_proto.
25952 (__regexec): Likewise.
25953 (__regfree): Likewise.
25954 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25955 (__regfree): Likewise.
25956 * posix/regexec.c (__regexec): Likewise.
25957
25958 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25959
25960 [BZ #18822]
25961 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25962 (__getutent): Likewise.
25963 (__getutid): Likewise.
25964 (__getutline): Likewise.
25965 (__pututline): Likewise.
25966 (__getutent_r): Likewise.
25967 (__getutid_r): Likewise.
25968 (__getutline_r): Likewise.
25969 (__utmpname): Add attribute_hidden.
25970 (__setutent): Likewise.
25971 (__endutent): Likewise.
25972 * login/getutent.c (__getutent): Add libc_hidden_def.
25973 * login/getutent_r.c (__getutent_r): Likewise.
25974 (__pututline): Likewise.
25975 * login/getutid.c (__getutid): Likewise.
25976 * login/getutid_r.c (__getutid_r): Likewise.
25977 * login/getutline.c (__getutline): Likewise.
25978 * login/getutline_r.c (__getutline_r): Likewise.
25979 * login/updwtmp.c (__updwtmp): Likewise.
25980
25981 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25982
25983 [BZ #18822]
25984 * include/dirent.h (__opendir): Always add attribute_hidden.
25985 (__fdopendir): Likewise.
25986 (__closedir): Likewise.
25987 (__readdir): Likewise.
25988 (__readdir64): Add libc_hidden_proto.
25989 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25990 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25991 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25992 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25993 New alias.
25994
25995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25996
25997 [BZ #18822]
25998 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25999 * include/netdb.h (__gethostbyaddr_r): Likewise.
26000 (__gethostbyname_r): Likewise.
26001 (__gethostbyname2_r): Likewise.
26002 (__getnetbyaddr_r): Likewise.
26003 (__getnetbyname_r): Likewise.
26004 (__getservbyname_r): Likewise.
26005 (__getservbyport_r): Likewise.
26006 (__getprotobyname_r): Likewise.
26007 (__getprotobynumber_r): Likewise.
26008 (__getnetgrent_r): Likewise.
26009 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26010 (__getrpcbynumber_r): Likewise.
26011 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26012
26013 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26014
26015 [BZ #18822]
26016 * include/stdio.h (__fcloseall): Add attribute_hidden.
26017 (__getline): Likewise.
26018 (__path_search): Likewise.
26019 (__gen_tempname): Likewise.
26020 (__libc_message): Likewise.
26021 (__flockfile): Likewise.
26022 (__funlockfile): Likewise.
26023 (__fxprintf): Likewise.
26024 (__fxprintf_nocancel): Likewise.
26025
26026 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26027
26028 [BZ #18822]
26029 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26030 (__sgetsgent_r): Likewise.
26031
26032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26033
26034 [BZ #18822]
26035 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26036 (__statfs64): Likewise.
26037 (__fstatfs64): Likewise.
26038 * include/sys/statvfs.h (__statvfs64): Likewise.
26039 (__fstatvfs64): Likewise.
26040 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26041 (__statfs_filesize_max): Likewise.
26042 (__statfs_symlinks): Likewise.
26043 (__statfs_chown_restricted): Likewise.
26044
26045 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26046
26047 [BZ #18822]
26048 * include/time.h (__tzstring): Add attribute_hidden.
26049 (__tzfile_read): Likewise.
26050 (__tzfile_compute): Likewise.
26051 (__tzfile_default): Likewise.
26052 (__tzset_parse_tz): Likewise.
26053 (__offtime): Likewise.
26054 (__asctime_r): Likewise.
26055 (__tzset): Likewise.
26056 (__tz_convert): Likewise.
26057 (__getdate_r): Likewise.
26058 (__getclktck): Likewise.
26059
26060 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 [BZ #18822]
26063 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26064 (__nscd_unmap): Likewise.
26065 (__nscd_cache_search): Likewise.
26066 (__nscd_get_nl_timestamp): Likewise.
26067 (__nscd_getpwnam_r): Likewise.
26068 (__nscd_getpwuid_r): Likewise.
26069 (__nscd_getgrnam_r): Likewise.
26070 (__nscd_getgrgid_r): Likewise.
26071 (__nscd_gethostbyname_r): Likewise.
26072 (__nscd_gethostbyname2_r): Likewise.
26073 (__nscd_gethostbyaddr_r): Likewise.
26074 (__nscd_getai): Likewise.
26075 (__nscd_getgrouplist): Likewise.
26076 (__nscd_getservbyname_r): Likewise.
26077 (__nscd_getservbyport_r): Likewise.
26078 (__nscd_innetgr): Likewise.
26079 (__nscd_setnetgrent): Likewise.
26080
26081 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26082
26083 [BZ #18822]
26084 * include/gmp.h: Declare internal functions only if _ISOMAC is
26085 undefined.
26086 (__mpn_extract_double): Add attribute_hidden.
26087 (__mpn_extract_long_double): Likewise.
26088 (__mpn_extract_float128): Likewise.
26089 (__mpn_construct_float): Likewise.
26090 (__mpn_construct_double): Likewise.
26091 (__mpn_construct_long_double): Likewise.
26092 (__mpn_construct_float128): Likewise.
26093 (mpn_add_1): Likewise.
26094 (mpn_addmul_1): Likewise.
26095 (mpn_add_n): Likewise.
26096 (mpn_cmp): Likewise.
26097 (mpn_divrem): Likewise.
26098 (mpn_lshift): Likewise.
26099 (mpn_mul): Likewise.
26100 (mpn_mul_1): Likewise.
26101 (mpn_rshift): Likewise.
26102 (mpn_sub_1): Likewise.
26103 (mpn_submul_1): Likewise.
26104 (mpn_sub_n): Likewise.
26105
26106 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26107
26108 [BZ #18822]
26109 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26110 (__wcscat): Likewise.
26111 (__btowc): Likewise.
26112 (__wcrtomb): Likewise.
26113 (__mbsrtowcs): Likewise.
26114 (__wcsrtombs): Likewise.
26115 (__mbsnrtowcs): Likewise.
26116 (__wcsnrtombs): Likewise.
26117 (__wcsncpy): Likewise.
26118 (__wcpncpy): Likewise.
26119 (__wmemcpy): Likewise.
26120 (__wmempcpy): Likewise.
26121 (__wmemmove): Likewise.
26122 (__wcschrnul): Likewise.
26123 (__vfwscanf): Likewise.
26124 (__vswprintf): Likewise.
26125 (__fwprintf): Likewise.
26126 (__vfwprintf): Likewise.
26127
26128 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26129
26130 [BZ #18822]
26131 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26132 (__getgrgid_r): Likewise.
26133 (__getgrnam_r): Likewise.
26134 * include/pwd.h (__getpwuid_r): Likewise.
26135 (__getpwnam_r): Likewise.
26136 (__fgetpwent_r): Likewise.
26137 * include/shadow.h (__getspnam_r): Likewise.
26138 (__sgetspent_r): Likewise.
26139 (__fgetspent_r): Likewise.
26140
26141 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26142
26143 [BZ #18822]
26144 * include/unistd.h (__access): Add attribute_hidden.
26145 (__lseek64): Likewise.
26146 (__libc_pread64): Likewise.
26147 (__pipe2): Likewise.
26148 (__sleep): Likewise.
26149 (__chdir): Likewise.
26150 (__fchdir): Likewise.
26151 (__getcwd): Likewise.
26152 (__rmdir): Likewise.
26153 (__execvpe): Likewise.
26154 (__execve): Likewise.
26155 (__setsid): Likewise.
26156 (__getuid): Likewise.
26157 (__geteuid): Likewise.
26158 (__getgid): Likewise.
26159 (__getegid): Likewise.
26160 (__getgroups): Likewise.
26161 (__group_member): Likewise.
26162 (__ttyname_r): Likewise.
26163 (__isatty): Likewise.
26164 (__readlink): Likewise.
26165 (__unlink): Likewise.
26166 (__gethostname): Likewise.
26167 (__profil): Likewise.
26168 (__getdtablesize): Likewise.
26169 (__brk): Likewise.
26170 (__ftruncate): Likewise.
26171 (__ftruncate64): Likewise.
26172
26173 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26174
26175 [BZ #18822]
26176 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26177 * argp/argp-fs-xinl.c: Likewise.
26178 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26179 * argp/argp-parse.c: Include <argp.h>.
26180 * argp/argp-xinl.c: Likewise.
26181 * include/argp-fmtstream.h: New file.
26182 * include/argp.h (__argp_error): Add attribute_hidden.
26183 (__argp_failure): Likewise.
26184 (__argp_input): Likewise.
26185 (__argp_state_help): Likewise.
26186
26187 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26188
26189 [BZ #18822]
26190 * include/wchar.h (____wcstof_l_internal): New prototype.
26191 (____wcstod_l_internal): Likewise.
26192 (____wcstold_l_internal): Likewise.
26193 (____wcstol_l_internal): Likewise.
26194 (____wcstoul_l_internal): Likewise.
26195 (____wcstoll_l_internal): Likewise.
26196 (____wcstoull_l_internal): Likewise.
26197 (____wcstof128_l_internal): Likewise.
26198 * sysdeps/ieee754/float128/wcstof128.c
26199 (____wcstof128_l_internal): Removed.
26200 * sysdeps/ieee754/float128/wcstof128_l.c
26201 (____wcstof128_l_internal): Likewise.
26202 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26203 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26204 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26205 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26206 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26207 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26208 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26209 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26210 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26211 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26212
26213 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26214
26215 [BZ #18822]
26216 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26217 instead of <sys/statvfs.h>.
26218 (__internal_statvfs): Removed.
26219 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26220 instead of <sys/statvfs.h>.
26221 (__internal_statvfs64): Removed.
26222 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26223 "internal_statvfs.h" instead of <sys/statvfs.h>.
26224 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26225 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26226 instead of <sys/statvfs.h>.
26227 (__internal_statvfs): Removed.
26228 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26229 instead of <sys/statvfs.h>.
26230 (__internal_statvfs64): Removed.
26231
26232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26233
26234 [BZ #18822]
26235 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26236 (__gconv_close): Likewise.
26237 (__gconv): Likewise.
26238 (__gconv_find_transform): Likewise.
26239 (__gconv_lookup_cache): Likewise.
26240 (__gconv_compare_alias_cache): Likewise.
26241 (__gconv_load_cache): Likewise.
26242 (__gconv_get_path): Likewise.
26243 (__gconv_close_transform): Likewise.
26244 (__gconv_release_cache): Likewise.
26245 (__gconv_find_shlib): Likewise.
26246 (__gconv_release_shlib): Likewise.
26247 (__gconv_get_builtin_trans): Likewise.
26248 (__gconv_compare_alias): Likewise.
26249 * include/dlfcn.h (_dlerror_run): Likewise.
26250 * include/stdio.h (__fortify_fail_abort): Likewise.
26251 * include/time.h (__tz_compute): Likewise.
26252 (__strptime_internal): Likewise.
26253 * intl/gettextP.h (_nl_find_domain): Likewise.
26254 (_nl_load_domain): Likewise.
26255 (_nl_find_msg): Likewise.
26256 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26257 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26258 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26259 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26260 (__gai_find_request): Likewise.
26261 (__gai_remove_request): Likewise.
26262 (__gai_notify): Likewise.
26263 (__gai_notify_only): Likewise.
26264 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26265 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26266 (_dl_non_dynamic_init): Likewise.
26267 (_dl_aux_init): Likewise.
26268 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26269 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26270 Likewise.
26271 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26272 (__wcsmbs_clone_conv): Likewise.
26273 (__wcsmbs_named_conv): Likewise.
26274
26275 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26276
26277 [BZ #18822]
26278 * include/stdlib.h (__random): Add attribute_hidden.
26279 (__random_r): Likewise.
26280 (__srandom_r): Likewise.
26281 (__initstate_r): Likewise.
26282 (__setstate_r): Likewise.
26283 (__erand48_r): Likewise.
26284 (__nrand48_r): Likewise.
26285 (__jrand48_r): Likewise.
26286 (__srand48_r): Likewise.
26287 (__seed48_r): Likewise.
26288 (__lcong48_r): Likewise.
26289 (__drand48_iterate): Likewise.
26290 (__setenv): Likewise.
26291 (__unsetenv): Likewise.
26292 (__clearenv): Likewise.
26293 (__ptsname_r): Likewise.
26294 (__posix_openpt): Likewise.
26295 (__add_to_environ): Likewise.
26296 (__realpath): Add libc_hidden_proto.
26297 (__ecvt_r): Likewise.
26298 (__fcvt_r): Likewise.
26299 (__qecvt_r): Likewise.
26300 (__qfcvt_r): Likewise.
26301 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26302 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26303
26304 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26305
26306 [BZ #18822]
26307 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26308 * include/time.h (__mktime_internal): Likewise.
26309 * libio/iolibio.h (__fopen_internal): Likewise.
26310
26311 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26312
26313 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26314 pointer in frame.
26315 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26316 Correct offset used to restore PIC register.
26317
26318 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26319
26320 [BZ libc/22165]
26321 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26322 code to load address of __getcontext_ret when generating PIC code.
26323
26324 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26325
26326 * elf/Makefile (tests-static-internal): Add
26327 tst-tls1-static-non-pie.
26328 (LDFLAGS-tst-tls1-static-non-pie): New.
26329 * elf/tst-tls1-static-non-pie.c: New file.
26330
26331 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26332
26333 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26334 (asinh): Define using libm_alias_double.
26335 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26336 (cbrt): Define using libm_alias_double.
26337 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26338 <libm-alias-double.h>.
26339 (copysign): Define using libm_alias_double.
26340 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26341 (erf): Define using libm_alias_double.
26342 (erfc): Likewise.
26343 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26344 (expm1): Define using libm_alias_double.
26345 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26346 (fabs): Define using libm_alias_double.
26347 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26348 libm_alias_double.
26349 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26350 <libm-alias-double.h>.
26351 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26352 libm_alias_double.
26353 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26354 <libm-alias-double.h>.
26355 (getpayload): Define using libm_alias_double.
26356 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26357 <libm-alias-double.h>.
26358 (llrint): Define using libm_alias_double.
26359 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26360 (lrint): Define using libm_alias_double.
26361 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26362 <libm-alias-double.h>.
26363 (nextup): Define using libm_alias_double.
26364 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26365 <libm-alias-double.h>.
26366 (roundeven): Define using libm_alias_double.
26367 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26368 libm_alias_double.
26369 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26370 <libm-alias-double.h>.
26371 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26372 using libm_alias_double.
26373 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26374 (cos): Define using libm_alias_double.
26375 (sin): Likewise.
26376 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26377 <libm-alias-double.h>.
26378 (sincos): Define using libm_alias_double.
26379 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26380 (tanh): Define using libm_alias_double.
26381 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26382 <libm-alias-double.h>.
26383 (totalorder): Define using libm_alias_double.
26384 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26385 <libm-alias-double.h>.
26386 (totalordermag): Define using libm_alias_double.
26387 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26388 libm_alias_double.
26389 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26390 libm_alias_double.
26391 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26392 <libm-alias-double.h>.
26393 (getpayload): Define using libm_alias_double.
26394 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26395 <libm-alias-double.h>.
26396 (roundeven): Define using libm_alias_double.
26397 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26398 <libm-alias-double.h>.
26399 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26400 <libm-alias-double.h>.
26401 (totalorder): Define using libm_alias_double.
26402 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26403 <libm-alias-double.h>.
26404 (totalordermag): Define using libm_alias_double.
26405 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26406 libc compat symbol here.
26407 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26408 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26409 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26410 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26411 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26412 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26413 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26414 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26415 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26416 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26417
26418 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26419
26420 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26421 _dl_relocate_static_pie instead of _dl_start to compute load
26422 address in static PIE. Return 0 if _DYNAMIC is undefined for
26423 static executable.
26424
26425 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26426
26427 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26428 _DYNAMIC is undefined for static executable.
26429
26430 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26431
26432 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26433
26434 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26435
26436 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26437
26438 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26439
26440 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26441 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26442 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26443 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26444 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26445 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26446 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26447 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26448 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26449 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26450 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26451 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26452 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26453 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26454 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26455 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26456 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26457
26458 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26459
26460 * math/bits/cmathcalls.h (cimag): Remove inline.
26461 (creal): Remove inline.
26462 (conj): Remove inline.
26463
26464 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26465
26466 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26467 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26468 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26469 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26470 (issignalingf_inline): Likewise.
26471 (POWF_LOG2_TABLE_BITS): Likewise.
26472 (POWF_LOG2_POLY_ORDER): Likewise.
26473 (POWF_SCALE_BITS): Likewise.
26474 (POWF_SCALE): Likewise.
26475 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26476 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26477 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26478
26479 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26480
26481 * math/Makefile (type-float-routines): Add e_log2f_data.
26482 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26483 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26484 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26485 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26486 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26487 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26488 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26489
26490 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26491
26492 * math/Makefile (type-float-routines): Add e_logf_data.
26493 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26494 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26495 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26496 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26497 * sysdeps/i386/fpu/e_logf_data.c: New file.
26498 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26499 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26500
26501 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26502
26503 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26504 undefined _DYNAMIC in PIE libc.a.
26505 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26506 Likewse.
26507
26508 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26509
26510 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26511 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26512 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26513 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26514 (__signbit): Remove.
26515 (__signbitl): Remove.
26516 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26517 (__signbit): Remove.
26518 (__signbitl): Remove.
26519 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26520 (__signbit): Remove.
26521 (__signbitl): Remove.
26522 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26523 (__signbit): Remove.
26524 (__signbitl): Remove.
26525 * sysdeps/tile/bits/mathinline.h: Delete file.
26526 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26527 (__signbit): Remove.
26528 (__signbitl): Remove.
26529
26530 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26531
26532 * math/math.h: Improve handling of C99 isgreater macros.
26533 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26534 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26535 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26536 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26537 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26538
26539 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26540
26541 * sysdeps/aarch64/libm-test-ulps: Update.
26542
26543 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26544
26545 [BZ #22225]
26546 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26547 math_opt_barrier on argument when doing arithmetic on it.
26548 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26549 Likewise. Use math_force_eval not math_opt_barrier after
26550 arithmetic.
26551 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26552 math_opt_barrier on argument when doing arithmetic on it.
26553 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26554 Likewise.
26555
26556 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26559 libc_hidden_def.
26560 (__freeifaddrs): Likewise.
26561
26562 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26563
26564 * include/dirent.h (__dirfd): New declaration.
26565 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26566 alias.
26567 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26568 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26569 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26570 * include/unistd.h (__revoke): New declaration.
26571 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26572 alias.
26573 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26574 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26575 revoke.
26576 * include/dirent.h (__seekdir): New declaration.
26577 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26578 redefine as weak alias.
26579 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26580 of seekdir.
26581 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26582 and use libc_hidden_def on them.
26583 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26584 them.
26585 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26586 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26587 instead of getifaddrs and freeifaddrs.
26588
26589 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26590
26591 [BZ #18822]
26592 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26593 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26594 (__dso_handle): Remove declaration.
26595 * dlfcn/tstatexit.c (__dso_handle): Removed.
26596 (main): Don't check __dso_handle.
26597 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26598 (main): Don't check __dso_handle.
26599 * include/dso_handle.h: New file.
26600 * malloc/mtrace.c: Include <dso_handle.h>.
26601 (mtrace): Pass __dso_handle directly.
26602 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26603 (__dso_handle): Remove declaration.
26604 (__pthread_atfork): Pass __dso_handle directly.
26605 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26606 (__dso_handle): Removed.
26607 * posix/wordexp-test.c: Include <dso_handle.h>.
26608 (__dso_handle): Remove declaration.
26609 (__app_register_atfork): Pass __dso_handle directly.
26610 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26611 (__dso_handle): Remove declaration.
26612 (at_quick_exit): Pass __dso_handle directly.
26613 * stdlib/atexit.c: Include <dso_handle.h>.
26614 (__dso_handle): Remove declaration.
26615 (atexit): Pass __dso_handle directly.
26616 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26617 (__dso_handle): Removed.
26618
26619 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26620
26621 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26622 using VDSO.
26623
26624 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26625
26626 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26627 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26628 values to correct default value for given type.
26629
26630 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26631
26632 [BZ #22101]
26633 * elf/Makefile (tests): Add tst-debug1.
26634 ($(objpfx)tst-debug1): New.
26635 ($(objpfx)tst-debug1.out): Likewise.
26636 ($(objpfx)tst-debug1mod1.so): Likewise.
26637 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26638 with p_filesz == 0.
26639 * elf/tst-debug1.c: New file.
26640
26641 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26642
26643 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26644 Define using __ifunc.
26645
26646 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26647
26648 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26649 exp2f() values.
26650
26651 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26652
26653 [BZ #22156]
26654 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26655
26656 2017-09-26 Florian Weimer <fweimer@redhat.com>
26657
26658 * resolv/Makefile (tests-internal): Fix typo in comment.
26659
26660 2017-09-26 Florian Weimer <fweimer@redhat.com>
26661
26662 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26663
26664 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26665
26666 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26667 Use an union instead of a max_align_t array for __space,
26668 so that __space is the same size on all platforms.
26669 * malloc/scratch_buffer_grow_preserve.c
26670 (__libc_scratch_buffer_grow_preserve): Likewise.
26671
26672 [BZ #22183]
26673 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26674 version to 2.
26675 * posix/Makefile (routines): Add glob-lstat-compat and
26676 glob64-lstat-compat.
26677 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26678 * posix/glob-lstat-compat.c: New file.
26679 * posix/glob64-lstat-compat.c: Likewise.
26680 * posix/tst-glob_lstat_compat.c: Likewise.
26681 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26682 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26683 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26684 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26685 Likewise.
26686 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26687 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26688 * posix/glob.c (glob_lstat): New function.
26689 (glob): Rename to __glob and add versioned symbol to 2.27.
26690 (glob_in_dir): Use glob_lstat.
26691 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26692 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26693 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26694 2.27.
26695 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26696 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26697 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26698 gl_lstat on glob call.
26699 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26700 and glob64 symbols.
26701 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26703 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26704 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26705 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26707 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26709 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26710 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26711 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26712 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26714 Likewise.
26715 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26717 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26718 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26719 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26720 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26721 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26722 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26723 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26724 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26725 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26726 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26727
26728 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26729
26730 * configure.ac (AS): Require binutils 2.25 or later.
26731 * configure: Regenerated.
26732
26733 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26734
26735 [BZ #22207]
26736 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26737 VM size.
26738
26739 2017-09-25 DJ Delorie <dj@redhat.com>
26740
26741 [BZ #22161]
26742 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26743 resetting timeout.
26744
26745 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26746
26747 * sysdeps/ieee754/dbl-64/sincos32.h
26748 [SINCCOS32_H]: Remove define.
26749 [SINCOS32_H]: Define.
26750
26751 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26752
26753 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26754 (exp2f): Likewise.
26755 * math/w_exp2f.c: New file.
26756 * math/w_expf.c: New file.
26757 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26758 * math/w_expf_compat.c (__expf_compat): Likewise.
26759 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26760 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26761 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26762 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26763 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26764 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26765 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26766 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26767 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26768 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26769 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26770 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26771 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26772 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26773 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26774 Likewise.
26775 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26776 Likewise.
26777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26778 Likewise.
26779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26780 Likewise.
26781 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26782 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26783 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26784 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26785 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26786 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26787 Likewise.
26788 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26789 Likewise.
26790 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26791 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26792 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26793
26794 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26795
26796 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26797 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26798 (roundtoint, converttoint): Likewise.
26799 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26800 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26801 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26802 * sysdeps/ieee754/flt-32/math_config.h: New file.
26803 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26804 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26805 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26806 * sysdeps/i386/fpu/math_errf.c: New file.
26807 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26808 * sysdeps/ia64/fpu/math_errf.c: New file.
26809 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26810 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26811
26812 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26813
26814 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26815 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26816 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26817 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26818 to make sure that these symbols are defined.
26819 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26820 of <limits.h>
26821 (__need_NULL): Do not define.
26822 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26823 alignment.
26824 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26825 CMGROUP_MAX, cmsgcred): Do not define.
26826 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26827 NULL.
26828 * bits/socket.h: Likewise.
26829 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26830 __gettimeofday instead of gettimeofday.
26831 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26832 instead of settimeofday.
26833
26834 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26835
26836 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26837 (asinhf): Define using libm_alias_float.
26838 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26839 (atanf): Define using libm_alias_float.
26840 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26841 (cbrtf): Define using libm_alias_float.
26842 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26843 (ceilf): Define using libm_alias_float.
26844 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26845 <libm-alias-float.h>.
26846 (copysignf): Define using libm_alias_float.
26847 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26848 (cosf): Define using libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26850 (erff): Define using libm_alias_float.
26851 (erfcf): Likewise.
26852 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26853 (expm1f): Define using libm_alias_float.
26854 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26855 (fabsf): Define using libm_alias_float.
26856 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26857 (floorf): Define using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26859 (frexpf): Define using libm_alias_float.
26860 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26861 libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26863 <libm-alias-float.h>.
26864 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26865 libm_alias_float.
26866 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26867 <libm-alias-float.h>.
26868 (getpayloadf): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26870 <libm-alias-float.h>.
26871 (llrintf): Define using libm_alias_float.
26872 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26873 <libm-alias-float.h>.
26874 (llroundf): Define using libm_alias_float.
26875 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26876 (logbf): Define using libm_alias_float.
26877 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26878 (lrintf): Define using libm_alias_float.
26879 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26880 (lroundf): Define using libm_alias_float.
26881 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26882 (modff): Define using libm_alias_float.
26883 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26884 <libm-alias-float.h>.
26885 (nearbyintf): Define using libm_alias_float.
26886 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26887 <libm-alias-float.h>.
26888 (nextafterf): Define using libm_alias_float.
26889 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26890 <libm-alias-float.h>.
26891 (nextupf): Define using libm_alias_float.
26892 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26893 <libm-alias-float.h>.
26894 (remquof): Define using libm_alias_float.
26895 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26896 (rintf): Define using libm_alias_float.
26897 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26898 <libm-alias-float.h>.
26899 (roundevenf): Define using libm_alias_float.
26900 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26901 (roundf): Define using libm_alias_float.
26902 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26903 using libm_alias_float.
26904 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26905 <libm-alias-float.h>.
26906 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26907 Define using libm_alias_float.
26908 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26909 <libm-alias-float.h>.
26910 (sincosf): Define using libm_alias_float.
26911 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26912 (sinf): Define using libm_alias_float.
26913 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26914 (tanf): Define using libm_alias_float.
26915 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26916 (tanhf): Define using libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26918 <libm-alias-float.h>.
26919 (totalorderf): Define using libm_alias_float.
26920 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26921 <libm-alias-float.h>.
26922 (totalordermagf): Define using libm_alias_float.
26923 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26924 (truncf): Define using libm_alias_float.
26925 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26926 libm_alias_float.
26927 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26928 libm_alias_float.
26929
26930 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26931
26932 [BZ #22146]
26933 math/math.h: Let fpclassify use the builtin in C++ mode, even
26934 when optimazing for size.
26935
26936 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26937
26938 * csu/Makefile (generated): Do not add version-info.h.
26939 (before-compile): Likewise.
26940 (all-Banner-files): Remove variable.
26941 ($(objpfx)version-info.h): Remove rule.
26942 * csu/version.c (banner): Do not include "version-info.h".
26943 * libidn/Banner: Remove.
26944 * manual/contrib.texi (Simon Josefsson): New entry.
26945
26946 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26947
26948 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26949 Remove conditionals on LDBL_MANT_DIG.
26950 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26951 (__ieee754_lgammal_r): Likewise.
26952
26953 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26954
26955 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26956 _Float128 and L().
26957 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26958 _Float128 and L(). Replace _Float128 with long double and L(x)
26959 with xL, throughout the file.
26960 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26961 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26962 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26963 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26964
26965 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26966
26967 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26968 sysdeps/ieee754/ldbl-128ibm.
26969 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26970 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26971 of including it. Keep _Float128 and L() intact. These will be
26972 reviewed by a separate patch.
26973 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26974 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26975 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26976 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26977
26978 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26979
26980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26981 (__finitef128): Define to __redirect___finitef128.
26982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26983 (__isinff128): Define to __redirect___isinff128.
26984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26985 (__isnanf128): Define to __redirect___isnanf128.
26986
26987 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26988
26989 * sysdeps/powerpc/powerpc64le/Makefile
26990 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26991 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26992
26993 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26994 Carlos O'Donell <carlos@redhat.com>
26995
26996 [BZ #22180]
26997 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26998 * stdlib/test-dlclose-exit-race.c: New file.
26999 * stdlib/test-dlclose-exit-race-helper.c: New file.
27000 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27001
27002 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27003
27004 * crypt/Banner: Remove file.
27005 * nptl/Banner: Likewise.
27006 * resolv/Banner: Likewise.
27007 * soft-fp/Banner: Likewise.
27008 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27009 ($(objpfx)version.d): Remove dependency on banner.h.
27010 ($(objpfx)version.os): Likewise.
27011 * nptl/version.c (banner): Do not include banner.h.
27012 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27013 Jelinek and BIND code.
27014
27015 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27016 Carlos O'Donell <carlos@redhat.com>
27017
27018 * support/xdlfcn.h: New file.
27019 * support/xdlfcn.c: New file.
27020 * support/Makefile (libsupport-routines): Add xdlfcn.
27021 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27022
27023 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27024
27025 [BZ #20142]
27026 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27027 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27028 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27029 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27030 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27031 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27032 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27033 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27034
27035 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27036 Ricky Zhou <rickyz@google.com>
27037 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27038
27039 [BZ #14333]
27040 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27041 Remove atomics.
27042 (__new_exitfn): Fail registration when we finished at_exit processing.
27043 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27044 * stdlib/on_exit.c (__on_exit): Likewise.
27045 * stdlib/exit.c (__exit_funcs_done): New variable.
27046 (__run_exit_handlers): Use __exit_funcs_lock.
27047 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27048 declarations.
27049 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27050 (test-cxa_atexit-race, test-on_exit-race): New tests.
27051 * stdlib/test-atexit-race-common.c: New file.
27052 * stdlib/test-atexit-race.c: New file.
27053 * stdlib/test-at_quick_exit-race.c: New file.
27054 * stdlib/test-cxa_atexit-race.c: New file.
27055 * stdlib/test-on_exit-race.c: New file.
27056
27057 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27058
27059 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27060 * benchtests/exp2f-inputs: Copy of expf-inputs.
27061 * benchtests/log2f-inputs: Copy of logf-inputs.
27062
27063 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27064
27065 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27066 Explicitly take address of first element of array arguments in
27067 call to INLINE_SYSCALL.
27068
27069 2017-09-19 Andreas Schwab <schwab@suse.de>
27070
27071 [BZ #22134]
27072 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27073 execveat first.
27074 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27075 unimplemented.
27076 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27077 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27078 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27079 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27080 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27081 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27082 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27083 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27084 * posix/Makefile (tests): Add tst-fexecve.
27085 * posix/tst-fexecve.c: New file.
27086
27087 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27088
27089 * benchtests/Makefile: Add logf benchmark.
27090 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27091
27092 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27093
27094 * benchtests/Makefile: Add expf benchmark.
27095 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27096
27097 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27098
27099 * csu/Makefile: Add -funwind-tables to libc-start.c.
27100 * debug/Makefile: Add -funwind-tables to backtrace.c.
27101 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27102 * sysdeps/arm/Makefile: Likewise.
27103 * sysdeps/i386/Makefile: Likewise.
27104 * sysdeps/m68k/Makefile: Likewise.
27105 * sysdeps/mips/Makefile: Likewise.
27106 * sysdeps/nios2/Makefile: Likewise.
27107 * sysdeps/sh/Makefile: Likewise.
27108 * sysdeps/sparc/Makefile: Likewise.
27109
27110 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27111
27112 * benchtests/Makefile (bench-math): Add trunc and truncf.
27113 (CFLAGS-bench-trunc.c): New variable.
27114 (CFLAGS-bench-truncf.c): Likewise.
27115 * benchtests/trunc-inputs: New file.
27116 * benchtests/truncf-inputs: Likewise.
27117
27118 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27119
27120 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27121
27122 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27123
27124 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27125 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27126 redefine.
27127 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27128 (exp10l): Define as weak alias.
27129 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27130 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27131 and redefine.
27132 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27133 (remainderl): Define as weak alias.
27134
27135 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27136 (fmal): Define using libm_alias_ldouble.
27137 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27138 (acoshl): Define using libm_alias_ldouble.
27139 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27140 (acosl): Define using libm_alias_ldouble.
27141 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27142 (asinl): Define using libm_alias_ldouble.
27143 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27144 (atan2l): Define using libm_alias_ldouble.
27145 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27146 (atanhl): Define using libm_alias_ldouble.
27147 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27148 (coshl): Define using libm_alias_ldouble.
27149 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27150 (exp10l): Define using libm_alias_ldouble.
27151 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27152 (exp2l): Define using libm_alias_ldouble.
27153 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27154 (expl): Define using libm_alias_ldouble.
27155 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27156 (fmodl): Define using libm_alias_ldouble.
27157 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27158 (hypotl): Define using libm_alias_ldouble.
27159 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27160 (j0l): Define using libm_alias_ldouble.
27161 (y0l): Likewise.
27162 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27163 (j1l): Define using libm_alias_ldouble.
27164 (y1l): Likewise.
27165 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27166 (jnl): Define using libm_alias_ldouble.
27167 (ynl): Likewise.
27168 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27169 (log10l): Define using libm_alias_ldouble.
27170 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27171 (log2l): Define using libm_alias_ldouble.
27172 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27173 (logl): Define using libm_alias_ldouble.
27174 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27175 (powl): Define using libm_alias_ldouble.
27176 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27177 (remainderl): Define using libm_alias_ldouble.
27178 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27179 (sinhl): Define using libm_alias_ldouble.
27180 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27181 (sqrtl): Define using libm_alias_ldouble.
27182 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27183 (tgammal): Define using libm_alias_ldouble.
27184 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27185 (exp10l): Do not use long_double_symbol here.
27186 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27187 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27188 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27189 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27191 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27192 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27193 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27198 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27199 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27200 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27201 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27202 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27203 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27204 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27205 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27206 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27207 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27208
27209 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27210
27211 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27212 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27213
27214 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27215
27216 * io/read.c (read): Add libc_hidden_weak.
27217 * sysdeps/mach/hurd/read.c (read): Likewise.
27218 * io/write.c (write): Likewise.
27219 * sysdeps/mach/hurd/write.c (write): Likewise.
27220 * io/pread64.c (__pread64): Likewise.
27221 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27222 * posix/pread64.c (__pread64): Add libc_hidden_def.
27223
27224 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27225
27226 * benchtests/scripts/compare_strings.py: New option -g.
27227 (draw_graph): Print a message that a graph is being generated.
27228 (process_results): Generate graph only if -g is passed.
27229 (main): Process option -g.
27230
27231 * benchtests/scripts/compare_strings.py (process_results):
27232 Better spacing for output.
27233
27234 * benchtests/scripts/compare_strings.py: Use argparse.
27235 * benchtests/README: Document existence of compare_strings.py.
27236
27237 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27238
27239 * math/s_fma.c: Include <libm-alias-double.h>.
27240 (fma): Define using libm_alias_double.
27241 * math/s_nextafter.c: Include <libm-alias-double.h>.
27242 (nextafter): Define using libm_alias_double.
27243 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27244 (acos): Define using libm_alias_double.
27245 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27246 (aocsh): Define using libm_alias_double.
27247 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27248 (asin): Define using libm_alias_double.
27249 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27250 (atan2): Define using libm_alias_double.
27251 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27252 (atanh): Define using libm_alias_double.
27253 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27254 (cosh): Define using libm_alias_double.
27255 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27256 (exp10): Define using libm_alias_double.
27257 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27258 (exp2): Define using libm_alias_double.
27259 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27260 (exp): Define using libm_alias_double.
27261 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27262 (fmod): Define using libm_alias_double.
27263 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27264 (hypot): Define using libm_alias_double.
27265 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27266 (j0): Define using libm_alias_double.
27267 (y0): Likewise.
27268 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27269 (j1): Define using libm_alias_double.
27270 (y1): Likewise.
27271 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27272 (jn): Define using libm_alias_double.
27273 (yn): Likewise.
27274 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27275 (log10): Define using libm_alias_double.
27276 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27277 (log2): Define using libm_alias_double.
27278 * math/w_log_compat.c: Include <libm-alias-double.h>.
27279 (log): Define using libm_alias_double.
27280 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27281 (pow): Define using libm_alias_double.
27282 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27283 (remainder): Define using libm_alias_double.
27284 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27285 (sinh): Define using libm_alias_double.
27286 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27287 (sqrt): Define using libm_alias_double.
27288 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27289 (tgamma): Define using libm_alias_double.
27290 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27291 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27292 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27293 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27294 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27295 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27296 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27297 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27298 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27299 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27300 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27301 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27302 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27303 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27304 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27305 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27306 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27307 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27308 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27309 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27310 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27311 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27312 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27313 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27314 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27315
27316 * math/e_acoshl.c: Remove.
27317 * math/e_acosl.c: Likewise.
27318 * math/e_asinl.c: Likewise.
27319 * math/e_atan2l.c: Likewise.
27320 * math/e_atanhl.c: Likewise.
27321 * math/e_coshl.c: Likewise.
27322 * math/e_expl.c: Likewise.
27323 * math/e_fmodl.c: Likewise.
27324 * math/e_gammal_r.c: Likewise.
27325 * math/e_hypotl.c: Likewise.
27326 * math/e_j0l.c: Likewise.
27327 * math/e_j1l.c: Likewise.
27328 * math/e_jnl.c: Likewise.
27329 * math/e_lgammal_r.c: Likewise.
27330 * math/e_log10l.c: Likewise.
27331 * math/e_log2l.c: Likewise.
27332 * math/e_logl.c: Likewise.
27333 * math/e_powl.c: Likewise.
27334 * math/e_rem_pio2l.c: Likewise.
27335 * math/e_sinhl.c: Likewise.
27336 * math/e_sqrtf128.c: Likewise.
27337 * math/e_sqrtl.c: Likewise.
27338 * math/k_cosl.c: Likewise.
27339 * math/k_sinl.c: Likewise.
27340 * math/k_tanl.c: Likewise.
27341 * math/s_asinhl.c: Likewise.
27342 * math/s_atanl.c: Likewise.
27343 * math/s_cbrtl.c: Likewise.
27344 * math/s_erfl.c: Likewise.
27345 * math/s_expm1l.c: Likewise.
27346 * math/s_log1pl.c: Likewise.
27347 * math/s_tanhl.c: Likewise.
27348
27349 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27350
27351 [BZ #21745]
27352 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27353 [$(subdir) = math] (sysdep_calls): New variable. Has the
27354 previous contents of sysdep_routines, but re-sorted..
27355 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27356 sysdep_calls.
27357 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27358 defined in sysdep_calls and replace by the respective m_* names.
27359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27360 (compat_symbol): Undefine to avoid duplicated compat symbols in
27361 libc.
27362
27363 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27364
27365 * math/s_fmaf.c: Include <libm-alias-float.h>.
27366 (fmaf): Define using libm_alias_float.
27367 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27368 (acosf): Define using libm_alias_float.
27369 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27370 (acoshf): Define using libm_alias_float.
27371 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27372 (asinf): Define using libm_alias_float.
27373 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27374 (atan2f): Define using libm_alias_float.
27375 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27376 (atanhf): Define using libm_alias_float.
27377 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27378 (coshf): Define using libm_alias_float.
27379 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27380 (exp10f): Define using libm_alias_float.
27381 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27382 (fmodf): Define using libm_alias_float.
27383 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27384 (hypotf): Define using libm_alias_float.
27385 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27386 (j0f): Define using libm_alias_float.
27387 (y0f): Likewise.
27388 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27389 (j1f): Define using libm_alias_float.
27390 (y1f): Likewise.
27391 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27392 (jnf): Define using libm_alias_float.
27393 (ynf): Likewise.
27394 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27395 (log10f): Define using libm_alias_float.
27396 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27397 (log2f): Define using libm_alias_float.
27398 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27399 (logf): Define using libm_alias_float.
27400 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27401 (powf): Define using libm_alias_float.
27402 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27403 (remainderf): Define using libm_alias_float.
27404 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27405 (sinhf): Define using libm_alias_float.
27406 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27407 (sqrtf): Define using libm_alias_float.
27408 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27409 (tgammaf): Define using libm_alias_float.
27410
27411 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27412
27413 * include/math.h (roundeven): Change hidden_proto call to
27414 __roundeven.
27415 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27416 alias.
27417 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27418 (y0): Rename to __y0 and define as weak alias.
27419 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27420 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27421 alias.
27422 (y0f): Rename to __y0f and define as weak alias.
27423 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27424 alias.
27425 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27426 (y1): Rename to __y1 and define as weak alias.
27427 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27428 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27429 alias.
27430 (y1f): Rename to __y1f and define as weak alias.
27431 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27432 alias.
27433 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27434 (yn): Rename to __yn and define as weak alias.
27435 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27436 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27437 alias.
27438 (ynf): Rename to __ynf and define as weak alias.
27439 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27440 (fromfp): Define as weak alias.
27441 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27442 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27443 (fromfpx): Define as weak alias.
27444 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27445 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27446 __getpayload and define as weak alias.
27447 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27448 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27449 __roundeven and define as weak alias.
27450 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27451 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27452 __setpayload.
27453 (setpayload): Define as weak alias.
27454 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27455 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27456 __setpayloadsig.
27457 (setpayloadsig): Define as weak alias.
27458 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27459 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27460 __totalorder and define as weak alias.
27461 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27462 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27463 to __totalordermag and define as weak alias.
27464 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27465 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27466 (ufromfp): Define as weak alias.
27467 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27468 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27469 __ufromfpx.
27470 (ufromfpx): Define as weak alias.
27471 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27472 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27473 Rename to __getpayload and define as weak alias.
27474 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27475 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27476 Rename to __roundeven and define as weak alias.
27477 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27478 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27479 Rename to __totalorder and define as weak alias.
27480 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27481 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27482 (totalordermag): Rename to __totalordermag and define as weak
27483 alias.
27484 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27485 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27486 macro.
27487 (__roundevenl): Likewise.
27488 (__totalorderl): Likewise.
27489 (__totalordermagl): Likewise
27490 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27491 __fromfpf128.
27492 (fromfpf128): Define as weak alias.
27493 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27494 __fromfpxf128.
27495 (fromfpxf128): Define as weak alias.
27496 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27497 __setpayloadf128.
27498 (setpayloadf128): Define as weak alias.
27499 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27500 __setpayloadsigf128.
27501 (setpayloadsigf128): Define as weak alias.
27502 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27503 __ufromfpf128.
27504 (ufromfpf128): Define as weak alias.
27505 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27506 __ufromfpxf128.
27507 (ufromfpxf128): Define as weak alias.
27508 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27509 (fromfpf): Define as weak alias.
27510 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27511 __fromfpxf.
27512 (fromfpxf): Define as weak alias.
27513 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27514 __getpayloadf and define as weak alias.
27515 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27516 __roundevenf and define as weak alias.
27517 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27518 __setpayloadf.
27519 (setpayloadf): Define as weak alias.
27520 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27521 __setpayloadsigf.
27522 (setpayloadsigf): Define as weak alias.
27523 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27524 __totalorderf and define as weak alias.
27525 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27526 Rename to __totalordermagf and define as weak alias.
27527 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27528 __ufromfpf.
27529 (ufromfpf): Define as weak alias.
27530 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27531 __ufromfpxf.
27532 (ufromfpxf): Define as weak alias.
27533 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27534 __fromfpl.
27535 (fromfpl): Define as weak alias.
27536 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27537 __fromfpxl.
27538 (fromfpxl): Define as weak alias.
27539 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27540 to __getpayloadl and define as weak alias.
27541 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27542 __roundevenl and define as weak alias.
27543 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27544 __setpayloadl.
27545 (setpayloadl): Define as weak alias.
27546 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27547 __setpayloadsigl.
27548 (setpayloadsigl): Define as weak alias.
27549 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27550 to __totalorderl and define as weak alias.
27551 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27552 Rename to __totalordermagl and define as weak alias.
27553 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27554 __ufromfpl.
27555 (ufromfpl): Define as weak alias.
27556 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27557 __ufromfpxl.
27558 (ufromfpxl): Define as weak alias.
27559 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27560 __fromfpl.
27561 (fromfpl): Define as weak alias.
27562 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27563 __fromfpxl.
27564 (fromfpxl): Define as weak alias.
27565 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27566 Rename to __getpayloadl and define as weak alias.
27567 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27568 to __roundevenl and define as weak alias. Call __roundeven
27569 instead of roundeven.
27570 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27571 __setpayloadl.
27572 (setpayloadl): Define as weak alias.
27573 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27574 __setpayloadsigl.
27575 (setpayloadsigl): Define as weak alias.
27576 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27577 Rename to __totalorderl and define as weak alias.
27578 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27579 Rename to __totalordermagl and define as weak alias.
27580 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27581 __ufromfpl.
27582 (ufromfpl): Define as weak alias.
27583 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27584 __ufromfpxl.
27585 (ufromfpxl): Define as weak alias.
27586 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27587 __fromfpl.
27588 (fromfpl): Define as weak alias.
27589 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27590 __fromfpxl.
27591 (fromfpxl): Define as weak alias.
27592 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27593 __getpayloadl and define as weak alias.
27594 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27595 __roundevenl and define as weak alias.
27596 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27597 __setpayloadl.
27598 (setpayloadl): Define as weak alias.
27599 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27600 __setpayloadsigl.
27601 (setpayloadsigl): Define as weak alias.
27602 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27603 __totalorderl and define as weak alias.
27604 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27605 Rename to __totalordermagl and define as weak alias.
27606 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27607 __ufromfpl.
27608 (ufromfpl): Define as weak alias.
27609 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27610 __ufromfpxl.
27611 (ufromfpxl): Define as weak alias.
27612
27613 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27614
27615 * benchtests/bench-string.h (realloc_bufs): New function.
27616 (test_init): Call it.
27617 * benchtests/bench-memset-large.c (do_test): Likewise.
27618 * benchtests/bench-memset.c (do_test): Likewise.
27619
27620 * benchtests/bench-memset-large.c: Print output in JSON
27621 format.
27622 * benchtests/bench-memset.c: Likewise.
27623
27624 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27625
27626 [BZ #21084]
27627 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27628 * iconvdata/Makefile: Add IBM858.
27629 * iconvdata/gconv-modules: Likewise.
27630 * iconvdata/tst-tables.sh: Likewise.
27631 * iconvdata/ibm858.c: New file.
27632 * localedata/charmaps/IBM858: Likewise.
27633
27634 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27635
27636 [BZ #22023]
27637 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27638 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27639
27640 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27641
27642 [BZ #22112]
27643 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27644 and add tel_int_fmt.
27645
27646 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27647
27648 * sysdeps/generic/libm-alias-float128.h: New file.
27649 * sysdeps/generic/math-type-macros-float128.h: Include
27650 <libm-alias-float128.h>.
27651 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27652
27653 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27654
27655 * sysdeps/generic/libm-alias-ldouble.h: New file.
27656 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27657 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27658 * sysdeps/generic/math-type-macros-ldouble.h: Include
27659 <libm-alias-ldouble.h>.
27660 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27661 libm_alias_ldouble.
27662
27663 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27664
27665 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27666 * math/w_exp_compat.c: ... here.
27667 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27668 * math/w_expf_compat.c: ... here.
27669 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27670 * math/w_expl_compat.c: ... here.
27671 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27672 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27673 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27674 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27675
27676 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27677
27678 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27679 redefine.
27680 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27681 macro.
27682 (ldexpl): Only define as compat symbol for libc, not libm.
27683 (scalbnl): Define as compat symbol for libc here.
27684 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27685 define for [IS_IN (libc)].
27686 (__ldexpl_2): Remove alias.
27687 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27688 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27689 name in long_double_symbol call.
27690 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27691 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27692 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27693 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27694 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27695 Remove macro.
27696 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27697 Define as compat symbol.
27698
27699 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27700
27701 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27702 * sysdeps/unix/sysv/linux/alpha/Makefile
27703 [$(subdir) = csu] (sysdep_routines): Remove rule.
27704
27705 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27706
27707 * sysdeps/generic/libm-alias-double.h: New file.
27708 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27709 * sysdeps/generic/math-type-macros-double.h: Include
27710 <libm-alias-double.h>.
27711 [declare_mgen_alias] (declare_mgen_alias): Define to use
27712 libm_alias_double.
27713 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27714 (M_LIBM_NEED_COMPAT): Remove macro.
27715 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27716 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27717 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27718 code.
27719 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27720 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27721 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27722 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27723 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27724 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27725 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27726 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27727 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27728 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27729 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27730 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27731 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27732 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27733 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27734 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27735 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27736 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27737 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27738 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27739 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27740 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27741 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27742 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27743 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27744 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27745 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27746 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27747 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27748 macro.
27749 (declare_mgen_alias): New macro.
27750 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27751 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27753 (M_LIBM_NEED_COMPAT): Remove macro.
27754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27755 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27756 <first-versions.h>.
27757 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27758 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27759
27760 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27761
27762 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27763 (declare_mgen_alias_2): Remove.
27764 * sysdeps/generic/math-type-macros-double.h
27765 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27766 Likewise.
27767 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27768 alias.
27769 (ldexp): Define with declare_mgen_alias.
27770 (scalbn): Likewise.
27771
27772 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27773
27774 * grp/initgroups.c: Include config.h.
27775 (DEFAULT_CONFIG): New macro.
27776 (internal_getgrouplist): Use DEFAULT_CONFIG.
27777 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27778 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27779 (DEFAULT_DEFCONFIG): New macro.
27780 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27781 * nss/grp-lookup.c: Include config.h
27782 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27783 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27784 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27785 * manual/nss.texi: Update default values section.
27786
27787 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27788
27789 [BZ #21967]
27790 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27791 New.
27792 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27793 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27794 Handle MathVec_Prefer_No_AVX512.
27795 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27796 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27797 is set.
27798
27799 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27800
27801 * posix/sched_primax.c (__sched_get_priority_max): Add
27802 libc_hidden_def.
27803 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27804 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27805 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27806 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27807 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27808 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27809 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27810 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27811 Add aliases.
27812
27813 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27814
27815 * sysdeps/generic/libm-alias-float.h: New file.
27816 * sysdeps/generic/math-type-macros-float.h: Include
27817 <libm-alias-float.h>.
27818 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27819
27820 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27821
27822 [BZ #22093]
27823 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27824 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27825 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27826 (HWCAP_IMPORTANT): Likewise.
27827 (HWCAP_X86_64): New enum.
27828 (HWCAP_X86_AVX512_1): Updated.
27829 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27830 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27831 (modules-names): Add x86_64/tst-x86_64mod-1.
27832 (LDFLAGS-tst-x86_64mod-1.so): New.
27833 ($(objpfx)tst-x86_64-1): Likewise.
27834 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27835 (tst-x86_64-1-clean): Likewise.
27836 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27837 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27838
27839 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27840
27841 * po/sv.po: Update translations.
27842 * po/fr.po: Likewise.
27843
27844 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27845
27846 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27847 seconds.
27848 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27849 seconds.
27850 * elf/rtld-Rules: Fix $(error) use.
27851
27852 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27853
27854 [BZ #14925]
27855 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27856 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27857 * localedata/locales/bn_BD: “Bengali” was still used in some
27858 comments. Change it to “Bangla”.
27859
27860 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27861
27862 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27863
27864 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27865
27866 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27867 thunderx2t99p1 to list of cpu names.
27868 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27869 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27870
27871 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27872
27873 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27874 Use strcmp instead of tunable_is_name.
27875
27876 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27877
27878 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27879 (F_GET_RW_HINT): New macro.
27880 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27881 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27882 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27883 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27884 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27885 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27886 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27887 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27888 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27889
27890 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27891 (F_ADD_SEALS): New macro.
27892 [__USE_GNU] (F_GET_SEALS): Likewise.
27893 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27894 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27895 [__USE_GNU] (F_SEAL_GROW): Likewise.
27896 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27897
27898 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27899
27900 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27901 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27902 * posix/glob_internal.h (__glob_pattern_type):
27903 * posix/glob.c (glob):
27904 * posix/glob_pattern_p.c (__glob_pattern_p):
27905 Use them.
27906
27907 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27908 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27909 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27910 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27911 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27913 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27914 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27915 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27916 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27917 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27918 * sysdeps/wordsize-64/glob.c: Likewise.
27919 * sysdeps/wordsize-64/glob64.c: Likewise.
27920 * sysdeps/wordsize-64/globfree.c: Likewise.
27921 * sysdeps/wordsize-64/globfree64.c: Likewise.
27922 * sysdeps/unix/sysv/linux/glob.c: New file.
27923 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27924 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27925 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27926 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27927 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27928 adds !GLOB_NO_OLD_VERSION as an extra condition.
27929 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27930 using relative path instead of absolute one.
27931 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27932 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27933 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27934 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27935 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27936 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27937
27938 [BZ #1062]
27939 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27940 (glob): Use the same scratch buffer for both getlogin_r and
27941 getpwnam_r. Don’t require preallocation of the login name. This
27942 simplifies storage allocation, and corrects the handling of
27943 long login names.
27944
27945 [BZ #1062]
27946 * posix/glob.c (glob): Port recent patches to platforms
27947 lacking getpwnam_r.
27948 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27949 returns an error number rather than setting errno.
27950
27951 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27952 instead of GCC extension.
27953 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27954 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27955 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27956
27957 [BZ #866]
27958 [BZ #1062]
27959 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27960 * posix/bug-glob1.c: Remove file.
27961 * posix/tst-glob_symlinks.c: New file.
27962 * posix/glob.c (__lstat64): New macro.
27963 (is_dir): New function.
27964 (glob, glob_in_dir): Match symlinks even if they are dangling.
27965 (link_stat, link_exists_p): Remove. All uses removed.
27966
27967 [BZ #1062]
27968 [BZ #19971]
27969 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27970 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27971 All uses removed.
27972
27973 [BZ #1062]
27974 CVE-2017-15671
27975 * posix/Makefile (routines): Add globfree, globfree64, and
27976 glob_pattern_p.
27977 * posix/flexmember.h: New file.
27978 * posix/glob_internal.h: Likewise.
27979 * posix/glob_pattern_p.c: Likewise.
27980 * posix/globfree.c: Likewise.
27981 * posix/globfree64.c: Likewise.
27982 * sysdeps/gnu/globfree64.c: Likewise.
27983 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27984 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27985 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27986 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27987 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27988 * sysdeps/wordsize-64/globfree.c: Likewise.
27989 * sysdeps/wordsize-64/globfree64.c: Likewise.
27990 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27991 [NDEBUG): Remove comments.
27992 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27993 (dirent_type): New type. Use uint_fast8_t not
27994 uint8_t, as C99 does not require uint8_t.
27995 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27996 (struct readdir_result): Use dirent_type. Do not define skip_entry
27997 unless it is needed; this saves a byte on platforms lacking d_ino.
27998 (readdir_result_type, readdir_result_skip_entry):
27999 New functions, replacing ...
28000 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28001 these functions, which were removed. This makes the callers
28002 easier to read. All callers changed.
28003 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28004 (size_add_wrapv, glob_use_alloca): New static functions.
28005 (glob, glob_in_dir): Check for size_t overflow in several places,
28006 and fix some size_t checks that were not quite right.
28007 Remove old code using SHELL since Bash no longer
28008 uses this.
28009 (glob, prefix_array): Separate MS code better.
28010 (glob_in_dir): Remove old Amiga and VMS code.
28011 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28012 separate files.
28013 (glob_in_dir): Do not rely on undefined behavior in accessing
28014 struct members beyond their bounds. Use a flexible array member
28015 instead
28016 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28017 0/1. Caller changed.
28018 (glob): Fix memory leaks.
28019 * posix/glob64 (globfree64): Move to separate file.
28020 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28021 (globfree64): Remove hidden alias.
28022 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28023 oldglob.
28024 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28025 separate file.
28026 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28027 define.
28028 Move compat code to separate file.
28029 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28030 separate file.
28031
28032 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28033
28034 * resolv/tst-resolv-qtypes.c (domain): Changed to
28035 "const char domain[] =".
28036
28037 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28038
28039 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28040 version to 3.1.6.
28041
28042 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28043 (TCP_MD5SIG_EXT): Likewise.
28044 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28045 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28046 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28047
28048 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28049
28050 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28051
28052 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28053
28054 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28055
28056 [BZ #22100]
28057 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28058
28059 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28060
28061 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28062 before assuming that the file is empty. Avoid testing buffer content
28063 when nread == 0.
28064
28065 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28066
28067 [BZ #18858]
28068 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28069 Remove define.
28070 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28071 Likewise.
28072 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28073 Likewise.
28074 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28075 Likewise.
28076 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28077 Likewise.
28078 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28079 Likewise.
28080 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28081 Likewise.
28082
28083 2017-09-06 Florian Weimer <fweimer@redhat.com>
28084
28085 * malloc/dynarray_emplace_enlarge.c
28086 (__libc_dynarray_emplace_enlarge): Add missing else.
28087
28088 2017-09-06 Florian Weimer <fweimer@redhat.com>
28089
28090 [BZ #22096]
28091 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28092 case of failure to obtain the global conf object.
28093
28094 2017-09-06 Florian Weimer <fweimer@redhat.com>
28095
28096 [BZ #22095]
28097 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28098 dynarray allocation failure.
28099
28100 2017-09-06 Florian Weimer <fweimer@redhat.com>
28101
28102 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28103 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28104 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28105 New functions.
28106 (response): Call them. Add 'p', '6' flag processing.
28107 (test_reverse): New function.
28108 (test_get2_any): Call it.
28109 (test_no_inet6): Add 'p' test.
28110 (test_inet6): Likewise.
28111
28112 2017-09-06 Florian Weimer <fweimer@redhat.com>
28113
28114 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28115 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28116 the QNAME.
28117 (test_gai): Adjust query names. Add additional tests.
28118 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28119 test_get2. Adjust query names. Add additional tests.
28120 (test_no_inet6): New function, extracted from threadfunc.
28121 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28122 Add additional tests.
28123
28124 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28125
28126 [BZ #22070]
28127 * localedata/unicode-gen/utf8_gen.py: Set the width for
28128 characters with Prepended_Concatenation_Mark property to 1
28129 * localedata/charmaps/UTF-8: Updated using the improved script.
28130
28131 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28132
28133 [BZ #21750]
28134 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28135 use the range notation for all ranges of neighbouring characters
28136 with the same width.
28137
28138 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28139
28140 * sysdeps/generic/math-type-macros-double.h: Include
28141 <math-svid-compat.h>.
28142 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28143 * sysdeps/generic/math-type-macros-float.h: Include
28144 <math-svid-compat.h>.
28145 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28146 * sysdeps/generic/math-type-macros-ldouble.h: Include
28147 <math-svid-compat.h>.
28148 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28149 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28150 condition.
28151 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28152 * math/w_acosf_compat.c: Likewise.
28153 * math/w_acosh_compat.c: Likewise.
28154 * math/w_acoshf_compat.c: Likewise.
28155 * math/w_acoshl_compat.c: Likewise.
28156 * math/w_acosl_compat.c: Likewise.
28157 * math/w_asin_compat.c: Likewise.
28158 * math/w_asinf_compat.c: Likewise.
28159 * math/w_asinl_compat.c: Likewise.
28160 * math/w_atan2_compat.c: Likewise.
28161 * math/w_atan2f_compat.c: Likewise.
28162 * math/w_atan2l_compat.c: Likewise.
28163 * math/w_atanh_compat.c: Likewise.
28164 * math/w_atanhf_compat.c: Likewise.
28165 * math/w_atanhl_compat.c: Likewise.
28166 * math/w_cosh_compat.c: Likewise.
28167 * math/w_coshf_compat.c: Likewise.
28168 * math/w_coshl_compat.c: Likewise.
28169 * math/w_exp10_compat.c: Likewise.
28170 * math/w_exp10f_compat.c: Likewise.
28171 * math/w_exp10l_compat.c: Likewise.
28172 * math/w_exp2_compat.c: Likewise.
28173 * math/w_exp2f_compat.c: Likewise.
28174 * math/w_exp2l_compat.c: Likewise.
28175 * math/w_fmod_compat.c: Likewise.
28176 * math/w_fmodf_compat.c: Likewise.
28177 * math/w_fmodl_compat.c: Likewise.
28178 * math/w_hypot_compat.c: Likewise.
28179 * math/w_hypotf_compat.c: Likewise.
28180 * math/w_hypotl_compat.c: Likewise.
28181 * math/w_j0_compat.c: Likewise.
28182 * math/w_j0f_compat.c: Likewise.
28183 * math/w_j0l_compat.c: Likewise.
28184 * math/w_j1_compat.c: Likewise.
28185 * math/w_j1f_compat.c: Likewise.
28186 * math/w_j1l_compat.c: Likewise.
28187 * math/w_jn_compat.c: Likewise.
28188 * math/w_jnf_compat.c: Likewise.
28189 * math/w_jnl_compat.c: Likewise.
28190 * math/w_lgamma_r_compat.c: Likewise.
28191 * math/w_lgammaf_r_compat.c: Likewise.
28192 * math/w_lgammal_r_compat.c: Likewise.
28193 * math/w_log10_compat.c: Likewise.
28194 * math/w_log10f_compat.c: Likewise.
28195 * math/w_log10l_compat.c: Likewise.
28196 * math/w_log2_compat.c: Likewise.
28197 * math/w_log2f_compat.c: Likewise.
28198 * math/w_log2l_compat.c: Likewise.
28199 * math/w_log_compat.c: Likewise.
28200 * math/w_logf_compat.c: Likewise.
28201 * math/w_logl_compat.c: Likewise.
28202 * math/w_pow_compat.c: Likewise.
28203 * math/w_powf_compat.c: Likewise.
28204 * math/w_powl_compat.c: Likewise.
28205 * math/w_remainder_compat.c: Likewise.
28206 * math/w_remainderf_compat.c: Likewise.
28207 * math/w_remainderl_compat.c: Likewise.
28208 * math/w_sinh_compat.c: Likewise.
28209 * math/w_sinhf_compat.c: Likewise.
28210 * math/w_sinhl_compat.c: Likewise.
28211 * math/w_sqrt_compat.c: Likewise.
28212 * math/w_sqrtf_compat.c: Likewise.
28213 * math/w_sqrtl_compat.c: Likewise.
28214 * math/w_tgamma_compat.c: Likewise.
28215 * math/w_tgammaf_compat.c: Likewise.
28216 * math/w_tgammal_compat.c: Likewise.
28217 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28218 [LIBM_SVID_COMPAT].
28219 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28220 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28221 [LIBM_SVID_COMPAT].
28222 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28223 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28224 [LIBM_SVID_COMPAT].
28225 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28226 * sysdeps/i386/fpu/w_sqrt.c: New file.
28227 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28228 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28229 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28230 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28231 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28232 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28233 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28234 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28235 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28236 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28237 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28238 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28239 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28240 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28241 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28242 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28243 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28244 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28245 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28246 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28247 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28248 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28249 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28250 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28251 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28252 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28253 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28254 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28255 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28256 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28257 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28258 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28259 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28260 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28261 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28262 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28263 * sysdeps/ia64/fpu/w_log.c: Likewise.
28264 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28265 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28266 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28267 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28268 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28269 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28270 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28271 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28272 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28273 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28274 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28275 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28276 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28277 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28278 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28279 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28280 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28281 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28282 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28283 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28284 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28285 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28286 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28287 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28288 [LIBM_SVID_COMPAT].
28289 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28290 * sysdeps/ieee754/k_standard.c: Likewise.
28291 * sysdeps/ieee754/k_standardf.c: Likewise.
28292 * sysdeps/ieee754/k_standardl.c: Likewise.
28293 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28294 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28295 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28296 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28297 long_double_symbol call on [LIBM_SVID_COMPAT].
28298 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28299 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28300 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28301 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28302 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28303 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28304 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28305 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28306 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28307 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28308 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28309 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28310 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28311 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28312 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28313 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28314 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28315 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28316 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28317 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28318 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28319 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28320
28321 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28322
28323 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28324 * malloc/tst-mallocstate.c: Convert from test-skeleton
28325 to test-driver. Ifdef code using TEST_COMPAT macro.
28326 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28327 * math/test-matherr.c: Likewise.
28328
28329 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28330
28331 [BZ #22086]
28332 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28333 comparing word with byte-swapped constant.
28334
28335 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28336
28337 [BZ #20498]
28338 * locale/iso-639.def: add Miskito.
28339 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28340 * localedata/locales/miq_NI: New file.
28341
28342 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28343
28344 [BZ #18822]
28345 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28346 (__mkdir): Likewise.
28347 * io/chmod.c (__chmod): Add libc_hidden_def.
28348 * io/mkdir.c (__mkdir): Likewise.
28349 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28350 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28351 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28352 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28353
28354 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28355
28356 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28357 version to 4.13.
28358
28359 [BZ #22082]
28360 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28361 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28362
28363 2017-09-04 Florian Weimer <fweimer@redhat.com>
28364
28365 * math/math.h: Issue warning if log is defined.
28366
28367 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28368
28369 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28370 kernel version to 4.13.
28371
28372 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28373
28374 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28375 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28376 parameter.
28377 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28378 just <bits/types.h>.
28379 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28380 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28381 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28382 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28383 * misc/preadv2.c: Include <errno.h>.
28384 * misc/preadv64v2.c: Include <errno.h>.
28385 * misc/pwritev2.c: Include <errno.h>.
28386 * misc/pwritev64v2.c: Include <errno.h>.
28387 * sysdeps/posix/preadv2.c: Include <errno.h>.
28388 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28389 Fix <unistd.h> inclusion.
28390 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28391 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28392 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28393 __strtoul_internal): New functions.
28394 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28395 * sysdeps/posix/system.c: Include <sigsetops.h>.
28396 * sysdeps/mach/hurd/i386/Makefile
28397 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28398 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28399 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28400 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28401 __feraiseexcept_renamed to feraiseexcept instead of
28402 __GI_feraiseexcept.
28403 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28404 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28405 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28406 RWF_NOWAIT): Define to 0 if undefined already.
28407 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28408 boils down to 0.
28409 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28410 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28411
28412 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28413
28414 * manual/math.texi (pow10): Do not document.
28415 (pow10f): Likewise.
28416 (pow10l): Likewise.
28417 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28418 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28419 * math/libm-test-exp10.inc (pow10_test): Remove.
28420 (do_test): Do not call pow10.
28421 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28422 [NO_LONG_DOUBLE] (pow10l): Likewise.
28423 * math/w_exp10f_compat.c (pow10f): Likewise.
28424 * math/w_exp10l_compat.c (pow10l): Likewise.
28425 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28426 (pow10): Make into compat symbol.
28427 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28428 (pow10f): Make into compat symbol.
28429 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28430 (pow10l): Make into compat symbol.
28431 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28432 pow10.
28433 (CFLAGS-nldbl-pow10.c): Remove variable..
28434 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28435 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28436 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28437 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28438 Undefine and redefine.
28439 (pow10l): Make into compat symbol.
28440 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28441 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28442 * sysdeps/arm/libm-test-ulps: Likewise.
28443 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28444 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28445 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28446 * sysdeps/microblaze/libm-test-ulps: Likewise.
28447 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28448 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28449 * sysdeps/nios2/libm-test-ulps: Likewise.
28450 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28451 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28452 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28453 * sysdeps/sh/libm-test-ulps: Likewise.
28454 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28455 * sysdeps/tile/libm-test-ulps: Likewise.
28456 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28457
28458 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28459
28460 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28461
28462 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28463
28464 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28465 "../ChangeLog.old/ChangeLog.8".
28466 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28467 "../ChangeLog.old/ChangeLog.14".
28468
28469 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28470
28471 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28472 Threads Library.
28473
28474 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28475
28476 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28477
28478 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28479
28480 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28481 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28482
28483 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28484
28485 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28486 32 atexit handlers.
28487
28488 2017-09-01 Zack Weinberg <zackw@panix.com>
28489
28490 * math/math.h (HUGE_VAL): Improve commentary.
28491
28492 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28493 Andreas Schwab <schwab@suse.de>
28494
28495 [BZ #21530]
28496 * include/stdio.h (__gen_tempfd): New function.
28497 * stdio-common/Makefile (routines): Add gentempfd.
28498 * stdio-common/gentempfd.c: New file.
28499 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28500 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28501 unnamed file first.
28502
28503 2017-09-01 Florian Weimer <fweimer@redhat.com>
28504
28505 [BZ #21915]
28506 [BZ #21922]
28507 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28508 result to determine success or failure, not the errno value.
28509 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28510 (tst-nss-files-hosts-erange): Link with -ldl.
28511 * nss/tst-nss-files-hosts-erange.c: New file.
28512 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28513 (do_test): Add NO_DATA tests.
28514 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28515 (do_test): Call it.
28516
28517 2017-09-01 Florian Weimer <fweimer@redhat.com>
28518
28519 [BZ #21922]
28520 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28521 coming from gethostbyname2_r.
28522
28523 2017-09-01 Florian Weimer <fweimer@redhat.com>
28524
28525 * support/namespace.h (struct support_chroot_configuration): Add
28526 hosts, host_conf.
28527 (struct support_chroot): Add path_hosts, path_host_conf.
28528 * support/support_chroot.c (write_file): New function.
28529 (support_chroot_create): Call it to process /etc/resolv.conf,
28530 /etc/hosts, /etc/host.conf.
28531 (support_chroot_free): Update.
28532
28533 2017-09-01 Florian Weimer <fweimer@redhat.com>
28534
28535 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28536 status indicates it is set.
28537
28538 2017-09-01 Florian Weimer <fweimer@redhat.com>
28539
28540 [BZ #20532]
28541 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28542 function lookup failures more reliable.
28543
28544 2017-09-01 Florian Weimer <fweimer@redhat.com>
28545
28546 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28547 (getcanonname): Likewise.
28548 (gaih_inet): Likewise.
28549
28550 2017-09-01 Florian Weimer <fweimer@redhat.com>
28551
28552 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28553 (getcanonname): Likewise.
28554 (gaih_inet): Likewise.
28555
28556 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28557 Richard Henderson <rth@twiddle.net>
28558
28559 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28560 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28561 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28562 (IREG_SIZE, OREG_SIZE): New macros.
28563 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28564 (IREG_SIZE, OREG_SIZE): New macros.
28565 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28566 (IREG_SIZE): New macro.
28567 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28568 (IREG_SIZE): New macro.
28569 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28570 New includes.
28571 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28572 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28573 (__CONCATX): Handle exceptions correctly on large values that may
28574 set FE_INVALID.
28575 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28576 Initialize if not already set.
28577 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28578
28579 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28580
28581 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28582 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28583 Likewise.
28584 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28585 Likewise.
28586 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28587 Likewise.
28588 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28589 Likewise.
28590 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28591 Likewise.
28592 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28593 Likewise.
28594 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28595 Likewise.
28596 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28597 (NO_CANCELLATION): Likewise.
28598 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28599 Likewise.
28600 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28601 Likewise.
28602 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28603 Likewise.
28604 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28605 (NO_CANCELLATION): Likewise.
28606 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28607 (NO_CANCELLATION): Likewise.
28608 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28609 Likewise
28610 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28611 Likewise.
28612 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28613 Likewise.
28614 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28615 Likewise.
28616 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28617 hidden prototype.
28618 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28619 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28620
28621 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28622
28623 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28624 in resolver call.
28625
28626 2017-08-31 Florian Weimer <fweimer@redhat.com>
28627
28628 * include/libc-symbols.h (internal_function): Remove.
28629
28630 2017-08-31 Florian Weimer <fweimer@redhat.com>
28631
28632 * stdlib/fmtmsg.c (internal_addseverity): Remove
28633 internal_function.
28634
28635 2017-08-31 Florian Weimer <fweimer@redhat.com>
28636
28637 * stdio-common/printf_fp.c (group_number): Remove
28638 internal_function.
28639 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28640
28641 2017-08-31 Florian Weimer <fweimer@redhat.com>
28642
28643 * posix/fnmatch.c (internal_function): Remove definition.
28644 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28645 * posix/regcomp.c (peek_token, init_word_char)
28646 (duplicate_node_closure, fetch_token, peek_token)
28647 (peek_token_bracket, build_range_exp, build_collating_symbol):
28648 Likewise.
28649 * posix/regex_internal.c (re_string_construct_common)
28650 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28651 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28652 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28653 (re_string_translate_buffer, re_string_reconstruct)
28654 (re_string_peek_byte_case, re_string_fetch_byte_case)
28655 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28656 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28657 (re_node_set_add_intersect, re_node_set_init_union)
28658 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28659 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28660 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28661 (re_acquire_state_context): Likewise.
28662 * posix/regex_internal.h (internal_function): Remove definition.
28663 (re_string_realloc_buffers, build_wcs_buffer)
28664 (build_wcs_upper_buffer, build_upper_buffer)
28665 (re_string_translate_buffer, re_string_context_at)
28666 (re_string_char_size_at, re_string_wchar_at)
28667 (re_string_elem_size_at): Likewise.
28668 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28669 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28670 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28671 (re_search_internal, re_search_2_stub, re_search_stub)
28672 (re_copy_regs, prune_impossible_nodes, check_matching)
28673 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28674 (free_fail_stack_return, sift_states_iter_mb)
28675 (sift_states_backward, build_sifted_states)
28676 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28677 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28678 (check_subexp_limits, sift_states_bkref, merge_state_array)
28679 (find_recover_state, transit_state, merge_state_with_log)
28680 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28681 (transit_state_mb, transit_state_bkref, get_subexp)
28682 (get_subexp_sub, find_subexp_node, check_arrival)
28683 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28684 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28685 (check_node_accept_bytes, find_collation_sequence_value)
28686 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28687 (acquire_init_state_context, check_halt_node_context)
28688 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28689 (sub_epsilon_src_nodes): Likewise.
28690 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28691 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28692 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28693 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28694 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28695 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28696 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28697 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28698 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28699 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28700 (PREADV): Likewise.
28701 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28702 (PREADV): Likewise.
28703 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28704 (PWRITEV): Likewise.
28705 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28706 (PWRITEV): Likewise.
28707 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28708 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28709
28710 2017-08-31 Florian Weimer <fweimer@redhat.com>
28711
28712 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28713 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28714 Remove internal_function.
28715 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28716 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28717 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28718 (__deallocate_stack, __libc_pthread_init)
28719 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28720 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28721 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28722 Likewise.
28723 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28724 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28725 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28726 Likewise.
28727 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28728 (__pthread_mutex_unlock_usercnt): Likewise.
28729
28730 2017-08-31 Florian Weimer <fweimer@redhat.com>
28731
28732 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28733 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28734 (fts_safe_changedir): Remove internal_function.
28735 * io/ftw.c (internal_function): Remove definition.
28736 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28737
28738 2017-08-31 Florian Weimer <fweimer@redhat.com>
28739
28740 * inet/deadline.c (__deadline_current_time)
28741 (__deadline_from_timeval, __deadline_to_ms): Remove
28742 internal_function.
28743 * inet/getnameinfo.c (nrl_domainname): Likewise.
28744 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28745 * inet/inet6_option.c (add_pad): Likewise.
28746 * inet/net-internal.h (__deadline_current_time)
28747 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28748 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28749 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28750 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28751
28752 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28753
28754 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28755 include <bits/nan.h>.
28756 * math/Makefile (headers): Remove bits/nan.h.
28757 * bits/nan.h: Remove.
28758 * sysdeps/ieee754/bits/nan.h: Likewise.
28759 * sysdeps/mips/bits/nan.h: Likewise.
28760
28761 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28762 not include <bits/inf.h>.
28763 * math/Makefile (headers): Remove bits/inf.h.
28764 * bits/inf.h: Remove.
28765 * sysdeps/ieee754/bits/inf.h: Likewise.
28766
28767 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28768 bits/huge_vall.h or bits/huge_val_flt128.h.
28769 (HUGE_VAL): Define directly here.
28770 [__USE_ISOC99] (HUGE_VALF): Likewise.
28771 [__USE_ISOC99] (HUGE_VALL): Likewise.
28772 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28773 (HUGE_VAL_F128): Likewise.
28774 * math/Makefile (headers): Remove bits/huge_val.h,
28775 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28776 * bits/huge_val.h: Remove.
28777 * bits/huge_val_flt128.h: Likewise.
28778 * bits/huge_valf.h: Likewise.
28779 * bits/huge_vall.h: Likewise.
28780 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28781 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28782 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28783 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28784 * sysdeps/sh/bits/huge_val.h: Likewise.
28785 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28786 * sysdeps/x86/bits/huge_vall.h: Likewise.
28787
28788 2017-08-31 Florian Weimer <fweimer@redhat.com>
28789
28790 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28791 internal_function.
28792 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28793 Likewise.
28794 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28795 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28796 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28797 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28798 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28799 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28800 * elf/dl-libc.c (dlerror_run): Likewise.
28801 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28802 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28803 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28804 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28805 Likewise.
28806 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28807 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28808 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28809 * elf/dl-profile.c (_dl_start_profile): Likewise.
28810 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28811 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28812 Likewise.
28813 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28814 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28815 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28816 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28817 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28818 (_dl_allocate_tls_storage): Likewise.
28819 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28820 (_dl_check_all_versions): Likewise.
28821 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28822 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28823 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28824 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28825 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28826 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28827 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28828 internal_function from __dl_start.
28829 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28830 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28831 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28832 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28833 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28834 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28835 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28836 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28837 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28838 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28839 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28840 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28841 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28842 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28843 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28844 Likewise.
28845 (struct rtld_global_ro): Remove internal_function from the
28846 _dl_lookup_symbol_x member.
28847 (_dl_symbol_value): Remove. No longer defined anywhere.
28848 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28849 internal_function.
28850 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28851 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28852 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28853 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28854 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28855 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28856 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28857 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28858 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28859 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28860 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28861 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28862
28863 2017-08-31 Florian Weimer <fweimer@redhat.com>
28864
28865 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28866 Remove internal_function.
28867 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28868 Likewise.
28869 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28870 Likewise.
28871
28872 2017-08-31 Florian Weimer <fweimer@redhat.com>
28873
28874 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28875 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28876 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28877
28878 2017-08-31 Florian Weimer <fweimer@redhat.com>
28879
28880 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28881 (__gai_enqueue_request): Remove internal_function.
28882 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28883 (__gai_remove_request, __gai_notify, __gai_notify_only)
28884 (__gai_sigqueue): Likewise.
28885 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28886 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28887 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28888 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28889 Likewise.
28890
28891 2017-08-31 Florian Weimer <fweimer@redhat.com>
28892
28893 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28894 * include/dirent.h (__opendirat, __getdents, __getdents64)
28895 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28896 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28897 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28898 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28899 Likewise.
28900 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28901
28902 2017-08-31 Florian Weimer <fweimer@redhat.com>
28903
28904 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28905 internal_function.
28906 (GETCWD_RETURN_TYPE): Likewise.
28907
28908 2017-08-31 Florian Weimer <fweimer@redhat.com>
28909
28910 * include/time.h (__tz_compute, __strptime_internal): Remove
28911 internal_function.
28912 * time/strptime_l.c (__strptime_internal): Likewise.
28913 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28914
28915 2017-08-31 Florian Weimer <fweimer@redhat.com>
28916
28917 * iconv/gconv.c (__gconv): Remove internal_function.
28918 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28919 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28920 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28921 (__gconv_release_cache): Likewise.
28922 * iconv/gconv_close.c (__gconv_close): Likewise.
28923 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28924 (read_conf_file, __gconv_get_path): Likewise.
28925 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28926 (__gconv_release_step, gen_steps, increment_counter)
28927 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28928 (__gconv_close_transform, free_modules_db): Likewise.
28929 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28930 Likewise.
28931 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28932 (__gconv_find_transform, __gconv_lookup_cache)
28933 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28934 (__gconv_close_transform, __gconv_release_cache)
28935 (__gconv_loaded_object, __gconv_release_shlib)
28936 (__gconv_compare_alias): Likewise.
28937 * iconv/gconv_open.c (__gconv_open): Likewise.
28938 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28939 * iconv/iconvconfig.c (add_module): Likewise.
28940 * intl/dcigettext.c (plural_lookup, guess_category_value)
28941 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28942 * intl/eval-plural.h (plural_eval): Likewise.
28943 * intl/finddomain.c (_nl_find_domain): Likewise.
28944 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28945 (_nl_load_domain, _nl_find_msg): Likewise.
28946 (internal_function): Remove definition.
28947 * intl/loadinfo.h (internal_function): Likewise.
28948 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28949 internal_function.
28950 * intl/localealias.c (internal_function): Remove definition.
28951 (read_alias_file): Remove internal_function.
28952 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28953 * intl/plural-exp.h (internal_function): Remove definition.
28954 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28955 internal_function.
28956 * intl/plural.c: Regenerate.
28957 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28958 * locale/coll-lookup.c (__collidx_table_lookup)
28959 (__collseq_table_lookup): Likewise.
28960 * locale/coll-lookup.h (__collidx_table_lookup)
28961 (__collseq_table_lookup): Likewise.
28962 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28963 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28964 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28965 (_nl_unload_locale): Likewise.
28966 * locale/localeinfo.h (struct __locale_data): Remove
28967 internal_function from cleanup member.
28968 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28969 (_nl_remove_locale, _nl_load_locale_from_archive)
28970 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28971 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28972 (_nl_cleanup_time): Remove internal_function.
28973 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28974 (_nl_parse_alt_digit): Likewise.
28975 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28976 (_nl_select_era_entry): Likewise.
28977 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28978 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28979 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28980 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28981 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28982
28983 2017-08-31 Florian Weimer <fweimer@redhat.com>
28984
28985 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28986 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28987 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28988 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28989 Likewise.
28990 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28991 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28992 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28993 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28994 Likewise.
28995 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28996
28997 2017-08-31 Florian Weimer <fweimer@redhat.com>
28998
28999 * misc/getttyent.c (skip, value): Remove internal_function.
29000 * misc/syslog.c (openlog_internal): Likewise.
29001 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29002
29003 2017-08-31 Florian Weimer <fweimer@redhat.com>
29004
29005 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29006 (__nss_rewrite_field): Remove internal_function.
29007 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29008 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29009 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29010 * nss/nsswitch.c (nss_parse_file, nss_getline)
29011 (nss_parse_service_list, nss_new_service): Likewise.
29012 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29013 * nss/valid_field.c (__nss_valid_field): Likewise.
29014 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29015
29016 2017-08-31 Florian Weimer <fweimer@redhat.com>
29017
29018 * malloc/arena.c (__malloc_fork_lock_parent)
29019 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29020 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29021 internal_function from defintions.
29022 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29023 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29024 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29025 internal_function from declarations.
29026 * malloc/malloc.c (internal_function): Do not define.
29027 (mem2mem_check): Remove internal_function from declaration.
29028 (munmap_chunk, mremap_chunk): Remove internal_function.
29029 * malloc/mtrace.c (tr_where): Likewise.
29030
29031 2017-08-31 Florian Weimer <fweimer@redhat.com>
29032
29033 * include/rpc/pmap_clnt.h (__get_socket): Remove
29034 internal_function.
29035 * sunrpc/auth_des.c (synchronize): Likewise.
29036 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29037 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29038 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29039 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29040 (key_call): Likewise.
29041 * sunrpc/pm_getport.c (__get_socket): Likewise.
29042 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29043 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29044 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29045 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29046 (invalidate): Likewise.
29047 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29048 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29049 (set_input_fragment, get_input_bytes): Likewise.
29050
29051 2017-08-31 Florian Weimer <fweimer@redhat.com>
29052
29053 * malloc/malloc.c (_int_free): Remove locked variable and related
29054 asserts.
29055
29056 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29057
29058 [BZ #22051]
29059 * Makerules (build-module-helper-objlist): Filter out
29060 $(elf-objpfx)sofini.os.
29061 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29062 needed.
29063
29064 2017-08-31 Florian Weimer <fweimer@redhat.com>
29065
29066 * libio/fcloseall.c: Assume weak_alias is defined.
29067 * libio/feof.c: Likewise.
29068 * libio/fileno.c: Likewise.
29069 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29070 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29071 definitions.
29072 (_IO_file_open): Call __open directly.
29073 (_IO_new_file_sync): Assume ESPIPE is defined.
29074 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29075 (_IO_new_file_write): Call __write directly.
29076 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29077 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29078 * libio/genops.c: Assume _LIBC is defined.
29079 (save_for_backup): Remove internal_function.
29080 * libio/getc.c: Assume weak_alias is defined.
29081 * libio/getwc.c: Likewise.
29082 * libio/iofclose.c: Assume _LIBC is defined.
29083 * libio/iofdopen.c: Likewise.
29084 (_IO_fcntl): Remove macro definition.
29085 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29086 Call __fcntl directly.
29087 * libio/iofflush.c: Assume weak_alias is defined.
29088 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29089 defined.
29090 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29091 * libio/iofgets.c: Likewise.
29092 * libio/iofopen.c: Assume _LIBC is defined.
29093 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29094 * libio/iofputs.c: Assume weak_alias is defined.
29095 * libio/iofread.c: Likewise.
29096 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29097 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29098 * libio/ioftell.c: Assume weak_alias is defined.
29099 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29100 * libio/iofwide.c: Assume _LIBC is defined.
29101 (_IO_fwide): Drop SHARED conditional because it is implied by
29102 SHLIB_COMPAT.
29103 * libio/iofwrite.c: Assume weak_alias is defined.
29104 * libio/iogetdelim.c: Likewise.
29105 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29106 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29107 (_IO_getwline): Call __wmemcpy directly.
29108 * libio/iopopen.c: Assume _LIBC is defined.
29109 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29110 (_IO_close): Remove macro definitions.
29111 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29112 _exit directly.
29113 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29114 directly.
29115 * libio/ioputs.c: Assume weak_alias is defined.
29116 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29117 * libio/iosetbuffer.c: Assume weak_alias is defined.
29118 * libio/iosetvbuf.c: Likewise.
29119 * libio/ioungetc.c: Likewise.
29120 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29121 libc_hidden_def, libc_hidden_weak, NULL are defined.
29122 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29123 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29124 defined.
29125 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29126 definitions.
29127 (_IO_old_file_init_internal): Drop SHARED conditional because it
29128 is implied by SHLIB_COMPAT.
29129 (_IO_old_file_fopen): Call __open directly.
29130 (_IO_old_file_sync): Assume ESPIPE is defined.
29131 (_IO_old_file_write): Call __write directly.
29132 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29133 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29134 Call __fcntl directly.
29135 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29136 (_IO_old_fgetpos): Assume EIO is defined.
29137 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29138 (_IO_old_fgetpos64): Assume EIO is defined.
29139 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29140 (_IO_old_fsetpos): Assume EIO is defined.
29141 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29142 (_IO_old_fsetpos64): Assume EIO is defined.
29143 * libio/oldiopopen.c: Assume _LIBC is defined.
29144 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29145 (_IO_close): Remove macro definitions.
29146 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29147 directly.
29148 (_IO_old_proc_close): Call __close, __waitpid directly.
29149 * libio/put.c: Assume weak_alias is defined.
29150 * libio/stdfiles.c: Assume _LIBC is defined.
29151 * libio/stdio.c: Likewise.
29152 * libio/wfileops.c: Likewise.
29153 (_IO_wfile_sync): Assume ESPIPE is defined.
29154 * libio/wgenops.c: Assume _LIBC is defined.
29155 (save_for_wbackup): Remove internal_function.
29156
29157 2017-08-31 Florian Weimer <fweimer@redhat.com>
29158
29159 * malloc/malloc.c (top_check): Change return type to void. Remove
29160 internal_function.
29161 * malloc/hooks.c (top_check): Likewise.
29162 (malloc_check, realloc_check, memalign_check): Adjust.
29163
29164 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29165
29166 [BZ #21457]
29167 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29168 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29169 sigcontext and namespace requirements.
29170 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29171 * sysdeps/m68k/sys/ucontext.h: Likewise.
29172 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29173 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29174 <bits/sigcontext.h>.
29175 (__ctx): Define earlier.
29176 (mcontext_t): Define structure contents rather than using struct
29177 sigcontext.
29178 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29179 __glibc_reserved1 instead of __reserved.
29180 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29181 <bits/sigcontext.h>.
29182 (__ctx): Define earlier.
29183 (mcontext_t): Define structure contents rather than using struct
29184 sigcontext.
29185 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29186 mcontext_t instead of struct sigcontext.
29187 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29188 <bits/sigcontext.h>.
29189 (__ctx): Define earlier.
29190 (mcontext_t): Define structure contents rather than using struct
29191 sigcontext.
29192 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29193 <bits/sigcontext.h>.
29194 (__ctx): Define earlier.
29195 (mcontext_t): Define structure contents rather than using struct
29196 sigcontext.
29197 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29198 mcontext_t instead of struct sigcontext.
29199 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29200 mcontext_t instead of struct sigcontext.
29201 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29202 <bits/sigcontext.h>.
29203 (__ctx): New macro.
29204 (struct __ia64_fpreg_mcontext): New type.
29205 (mcontext_t): Define structure contents rather than using struct
29206 sigcontext.
29207 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29208 (uc_sigmask): Define using __ctx.
29209 (uc_stack): Likewise.
29210 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29211 <bits/sigcontext.h>.
29212 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29213 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29214 <bits/sigcontext.h>.
29215 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29216 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29217 <bits/sigcontext.h>.
29218 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29219 <bits/sigcontext.h>.
29220 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29221 <bits/sigcontext.h>.
29222 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29223 <bits/sigcontext.h>.
29224 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29225 <bits/sigcontext.h>.
29226 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29227 <bits/sigcontext.h>.
29228 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29229 <bits/sigcontext.h>.
29230 (__ctx): Define earlier.
29231 (mcontext_t): Define structure contents rather than using struct
29232 sigcontext.
29233 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29234 <bits/sigcontext.h>. Include <bits/types.h>.
29235 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29236 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29237 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29238 (test-xfail-UNIX98/signal.h/conform): Likewise.
29239 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29240 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29241 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29242 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29243 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29244 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29245 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29246 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29247 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29248
29249 2017-08-30 Florian Weimer <fweimer@redhat.com>
29250
29251 * malloc/dynarray_emplace_enlarge.c
29252 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29253 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29254 * malloc/tst-dynarray.c (test_long_overflow): New function.
29255 (do_test): Call it.
29256
29257 2017-08-30 Florian Weimer <fweimer@redhat.com>
29258
29259 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29260 (set_arena_corrupt): Remove definitions.
29261 (mtrim): Do not check for corrupt arena.
29262 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29263 Likewise.
29264
29265 2017-08-30 Florian Weimer <fweimer@redhat.com>
29266
29267 [BZ #21754]
29268 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29269 check_action.
29270 (ptmalloc_init): Do not set or use check_action.
29271 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29272 call to malloc_printerr. Remove return statement.
29273 (free_check): Likewise. Remove arena unlock.
29274 (top_check): Update comment. Adjust call to malloc_printerr.
29275 Remove heap repair code.
29276 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29277 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29278 (sysmalloc): Adjust call to malloc_printerr.
29279 (munmap_chunk, __libc_realloc): Likewise. Remove return
29280 statement.
29281 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29282 Remove errout label and corresponding gotos.
29283 (_int_free): Likewise. Remove arena unlock.
29284 (do_set_mallopt_check): Do not set check_action.
29285 (malloc_printerr): Adjust parameter list. Do not mark arena as
29286 corrupt.
29287 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29288 comment.
29289 * manual/probes.texi (Memory Allocation Probes): Remove
29290 memory_mallopt_check_action.
29291
29292 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29293
29294 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29295 Use pointer to uint64_t instead of long int for sp.
29296
29297 2017-08-30 Florian Weimer <fweimer@redhat.com>
29298
29299 [BZ #21754]
29300 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29301 without printing a backtrace. Do not leak any information in the
29302 error message.
29303 * manual/memory.texi (Heap Consistency Checking): Update.
29304 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29305
29306 2017-08-30 Florian Weimer <fweimer@redhat.com>
29307
29308 Do not scale NPTL tests with available number of CPUs.
29309 * nptl/tst-cond16.c (count): Set to constant value of 8.
29310 * nptl/tst-cond18.c (count): Likewise.
29311
29312 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29313
29314 [BZ #22035]
29315 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29316 Define to take a second argument that is a macro that
29317 concatentates a suffix, not the suffix itself.
29318 (__CONCAT_d): New macro.
29319 (__CONCAT_f): Likewise.
29320 (__CONCAT_l): Likewise.
29321
29322 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29323
29324 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29325 by child.
29326
29327 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29328 Aurelien Jarno <aurelien@aurel32.net>
29329 Maciej W. Rozycki <macro@imgtec.com>
29330
29331 [BZ #21956]
29332 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29333 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29334 `mips16-syscall6' and `mips16-syscall7'.
29335 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29336 (CFLAGS-mips16-syscall7.c): Remove.
29337 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29338 Remove `__mips16_syscall5', `__mips16_syscall6' and
29339 `__mips16_syscall7'.
29340 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29341 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29342 `__mips_syscall_return'.
29343 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29344 (__mips16_syscall1): Likewise.
29345 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29346 (__mips16_syscall2): Likewise.
29347 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29348 (__mips16_syscall3): Likewise.
29349 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29350 (__mips16_syscall4): Likewise.
29351 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29352 Remove.
29353 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29354 Remove.
29355 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29356 Remove.
29357 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29358 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29359 `__mips16_syscall5'. Remove prototype.
29360 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29361 `__mips16_syscall6'. Remove prototype.
29362 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29363 `__mips16_syscall7'. Remove prototype.
29364 (__nomips16, __mips16_syscall_return): Move to...
29365 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29366 (__nomips16, __mips_syscall_return): ... here.
29367 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29368 `__mips16_syscall_return' to `__mips_syscall_return'.
29369 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29370 `internal_syscall##nr'.
29371 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29372 `internal_syscall##nr'.
29373 (FORCE_FRAME_POINTER): Remove.
29374 (__mips_syscall5): New prototype.
29375 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29376 (__mips_syscall6): New prototype.
29377 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29378 (__mips_syscall7): New prototype.
29379 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29380 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29381 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29382 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29383 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29384 (sysdep_routines): Add libc-do-syscall.
29385 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29386 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29387
29388 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29389
29390 [BZ #21672]
29391 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29392 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29393 (advise_stack_range): New function.
29394 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29395 stack non required to advise_stack_range at allocatestack.c
29396
29397 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29398
29399 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29400
29401 2017-08-29 Florian Weimer <fweimer@redhat.com>
29402
29403 [BZ #22026]
29404 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29405 __end_fct. Mangle __end_fct after setting it to NULL.
29406 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29407 (modules-names, modules-names-tests): Add
29408 tst-gconv-init-failure-mod.
29409 (gconv-modules): New target.
29410 (tst-gconv-init-failure-mod.so): Link against libsupport.
29411 (tst-gconv-init-failure): Depend on gconv-modules,
29412 tst-gconv-init-failure-mod.so.
29413 * iconv/tst-gconv-init-failure-mod.c: New file.
29414 * iconv/tst-gconv-init-failure.c: Likewise.
29415 * iconv/test-gconv-modules: Likewise.
29416
29417 2017-08-29 Florian Weimer <fweimer@redhat.com>
29418
29419 [BZ #22025]
29420 * iconv/gconv_db.c (free_derivation): Remove redundant
29421 parentheses.
29422 (gen_steps): Unconditionally mangle __btowc_fct after
29423 initialization.
29424 (increment_counter): Likewise. Do not call init_fct for internal
29425 modules.
29426
29427 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29428
29429 [BZ #22028]
29430 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29431 (_MSUF_): Remove macro.
29432 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29433 Likewise.
29434 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29435 (__REDIRFROM_X): New macro.
29436 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29437 Likewise.
29438 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29439 (__REDIRTO_X): Likewise.
29440 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29441 arguments.
29442 (__MATH_REDIRCALL_2): Likewise.
29443 (__MATH_REDIRCALL_INTERNAL): Likewise.
29444 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29445 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29446 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29447 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29448 * math/test-finite-macros.c: New file.
29449 * math/Makefile (tests): Add test-finite-macros.
29450 (CFLAGS-test-finite-macros.c): New variable.
29451
29452 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29453 Jeff Law <law@redhat.com>
29454
29455 [BZ #22025]
29456 Mangle NULL pointers in iconv/gconv.
29457 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29458 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29459 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29460 is non-NULL before demangling the end_fct. Check for NULL
29461 end_fct after demangling.
29462 (__gconv_release_step): Demangle the end_fct before checking
29463 it for NULL. Remove assert on __shlibc_handle != NULL.
29464 (gen_steps): Don't check btowc_fct for NULL before mangling.
29465 Demangle init_fct before checking for NULL.
29466 (increment_counter): Likewise.
29467 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29468 end_fct for NULL before mangling.
29469 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29470 for NULL.
29471
29472 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29473
29474 [BZ #21971]
29475 * locale/iso-639.def: add Morisyen.
29476
29477 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29478
29479 [BZ #21930]
29480 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29481 (iszero): New C++ implementation that does not use
29482 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29483 signaling nans are enabled, since __builtin_types_compatible_p
29484 is a C-only feature.
29485 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29486 defined, include ieee754_float128.h for access to the union and
29487 member ieee854_float128.ieee.
29488 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29489 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29490 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29491 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29492 options of test-math-zero on powerpc64le.
29493
29494 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29495
29496 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29497 Change double to float.
29498
29499 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29500
29501 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29502 unconditional.
29503 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29504 conditional code; define contents only for [LIBM_SVID_COMPAT].
29505
29506 2017-08-28 Florian Weimer <fweimer@redhat.com>
29507
29508 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29509 (abi-lp64_be-options): Remove.
29510 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29511 (abi-hard-options): Likewise.
29512 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29513 (abi-o32_hard-options, abi-o32_soft_2008-options)
29514 (abi-o32_hard_2008-options, abi-n32_soft-options)
29515 (abi-n32_hard-options, abi-n32_soft_2008-options)
29516 (abi-n32_hard_2008-options, abi-n64_soft-options)
29517 (abi-n64_hard-options, abi-n64_soft_2008-options)
29518 (abi-n64_hard_2008-options): Likewise.
29519 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29520 (abi-64-v1-options, abi-64-v2-options): Likewise.
29521 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29522 (abi-64-options): Likewise.
29523 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29524 (abi-64-options): Likewise.
29525 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29526 (abi-64-options): Likewise.
29527 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29528 (abi-64-options, abi-x32-options): Likewise.
29529
29530 2017-08-28 Florian Weimer <fweimer@redhat.com>
29531
29532 Store supported list of SYS_* system calls in the source tree.
29533 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29534 (bits/syscall.h): Generate from list file.
29535 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29536 [$(subdir) = misc] (tests): Add tst-syscall-list.
29537 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29538 [$(subdir) = misc] (tst-syscall-list-macros.list)
29539 [$(subdir) = misc] (tst-syscall-list-nr.list)
29540 (tst-syscall-list-sys.list): Helper targets for new
29541 tst-syscall-list test.
29542 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29543 tst-syscall-list.sh.
29544 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29545 target. Do not include bits/syscall.d.
29546 [$(subdir) = misc] (generated): Do not update.
29547 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29548 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29549 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29550 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29551
29552 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29553
29554 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29555 (tst-cxa_atexit, tst-on_exit): Likewise.
29556 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29557 tst-cxa_atexit, and tst-on_exit.
29558 * stdlib/tst-atexit-common.c: New file.
29559 * stdlib/tst-atexit.c: New file.
29560 * stdlib/tst-at_quick_exit.c: New file.
29561 * stdlib/tst-cxa_atexit.c: New file.
29562 * stdlib/tst-on_exit.c: New file.
29563
29564 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29565
29566 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29567 * mach/stack_chk_fail_local.c: New file.
29568 * hurd/stack_chk_fail_local.c: New file.
29569 * mach/Machrules ($(interface-library)-routines): Add
29570 stack_chk_fail_local.
29571 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29572 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29573 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29574 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29575 * hurd/Makefile (CFLAGS-hurdstartup.o,
29576 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29577
29578 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29579
29580 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29581 (index_cpu_*, index_arch_*): Removed.
29582
29583 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29584
29585 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29586 Use uint64_t instead of unsigned long.
29587
29588 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29589
29590 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29591 [__HAVE_DISTINCT_FLOAT128].
29592
29593 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29594 of <bits/math-finite.h>.
29595 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29596 inclusion of <bits/math-finite.h>.
29597 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29598 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29599 __NO_LONG_DOUBLE_MATH].
29600 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29601 (__MATH_REDIRCALL_2): Likewise.
29602 (__MATH_REDIRCALL_INTERNAL): Likewise.
29603 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29604 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29605 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29606
29607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29608 Remove file.
29609 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29610 Likewise.
29611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29612 Likewise.
29613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29614 Likewise.
29615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29616 Likewise.
29617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29618 Likewise.
29619 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29620 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29621 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29622 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29623 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29624 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29625 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29626 w_sqrtf_compat-ppc32.
29627
29628 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29629
29630 * math/math.h [defined __cplusplus] (issignaling): In the long
29631 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29632 is not defined. Call __issignaling, otherwise.
29633
29634 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29635
29636 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29637 syscall definitions and replace __builtin_expect with __glibc_likely.
29638 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29639 syscall.
29640 (SYSCALL_CANCELLABLE): Removedefinition
29641 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29642 definition.
29643 (PSEUDO_END): Likewise.
29644 [IS_IN (libpthread)] (CENABLE): Likewise.
29645 [IS_IN (libpthread)] (CDISABLE): Likewise.
29646 [IS_IN (libc)] (CENABLE): Likewise.
29647 [IS_IN (libc)] (CENABLE): Likewise.
29648 [IS_IN (librt)] (CDISABLE): Likewise.
29649 [IS_IN (librt)] (CDISABLE): Likewise.
29650 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29651 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29652 definition.
29653 (PSEUDO_END): Likewise.
29654 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29655 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29656 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29657 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29658 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29659 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29660 (CENABLE): Likewise.
29661 (CDISABLE): Likewise.
29662 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29663 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29664 defintion.
29665 (PSEUDO_END): Likewise.
29666 [IS_IN (libpthread)] (CENABLE): Likewise.
29667 [IS_IN (libpthread)] (CDISABLE): Likewise.
29668 [IS_IN (libc)] (CENABLE): Likewise.
29669 [IS_IN (libc)] (CENABLE): Likewise.
29670 [IS_IN (librt)] (CDISABLE): Likewise.
29671 [IS_IN (librt)] (CDISABLE): Likewise.
29672 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29673 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29674 definition.
29675 (PSEUDO_END): Likewise.
29676 [IS_IN (libpthread)] (CENABLE): Likewise.
29677 [IS_IN (libpthread)] (CDISABLE): Likewise.
29678 [IS_IN (libc)] (CENABLE): Likewise.
29679 [IS_IN (libc)] (CENABLE): Likewise.
29680 [IS_IN (librt)] (CDISABLE): Likewise.
29681 [IS_IN (librt)] (CDISABLE): Likewise.
29682 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29683 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29684 definition.
29685 (PSEUDO_END): Likewise.
29686 [IS_IN (libpthread)] (CENABLE): Likewise.
29687 [IS_IN (libpthread)] (CDISABLE): Likewise.
29688 [IS_IN (libc)] (CENABLE): Likewise.
29689 [IS_IN (libc)] (CENABLE): Likewise.
29690 [IS_IN (librt)] (CDISABLE): Likewise.
29691 [IS_IN (librt)] (CDISABLE): Likewise.
29692 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29693 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29694 definition.
29695 (PSEUDO_END): Likewise.
29696 [IS_IN (libpthread)] (CENABLE): Likewise.
29697 [IS_IN (libpthread)] (CDISABLE): Likewise.
29698 [IS_IN (libc)] (CENABLE): Likewise.
29699 [IS_IN (libc)] (CENABLE): Likewise.
29700 [IS_IN (librt)] (CDISABLE): Likewise.
29701 [IS_IN (librt)] (CDISABLE): Likewise.
29702 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29703 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29704 definition.
29705 (PSEUDO_END): Likewise.
29706 [IS_IN (libpthread)] (CENABLE): Likewise.
29707 [IS_IN (libpthread)] (CDISABLE): Likewise.
29708 [IS_IN (libc)] (CENABLE): Likewise.
29709 [IS_IN (libc)] (CENABLE): Likewise.
29710 [IS_IN (librt)] (CDISABLE): Likewise.
29711 [IS_IN (librt)] (CDISABLE): Likewise.
29712 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29713 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29714 definition.
29715 (PSEUDO_END): Likewise.
29716 [IS_IN (libpthread)] (CENABLE): Likewise.
29717 [IS_IN (libpthread)] (CDISABLE): Likewise.
29718 [IS_IN (libc)] (CENABLE): Likewise.
29719 [IS_IN (libc)] (CENABLE): Likewise.
29720 [IS_IN (librt)] (CDISABLE): Likewise.
29721 [IS_IN (librt)] (CDISABLE): Likewise.
29722 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29723 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29724 Remove definition.
29725 (PSEUDO_END): Likewise.
29726 [IS_IN (libpthread)] (CENABLE): Likewise.
29727 [IS_IN (libpthread)] (CDISABLE): Likewise.
29728 [IS_IN (libc)] (CENABLE): Likewise.
29729 [IS_IN (libc)] (CENABLE): Likewise.
29730 [IS_IN (librt)] (CDISABLE): Likewise.
29731 [IS_IN (librt)] (CDISABLE): Likewise.
29732 (SINGLE_THREAD_P): Likewise.
29733 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29734 definition.
29735 (PSEUDO_END): Likewise.
29736 [IS_IN (libpthread)] (CENABLE): Likewise.
29737 [IS_IN (libpthread)] (CDISABLE): Likewise.
29738 [IS_IN (libc)] (CENABLE): Likewise.
29739 [IS_IN (libc)] (CENABLE): Likewise.
29740 [IS_IN (librt)] (CDISABLE): Likewise.
29741 [IS_IN (librt)] (CDISABLE): Likewise.
29742 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29743 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29744 definition.
29745 (PSEUDO_END): Likewise.
29746 [IS_IN (libpthread)] (CENABLE): Likewise.
29747 [IS_IN (libpthread)] (CDISABLE): Likewise.
29748 [IS_IN (libc)] (CENABLE): Likewise.
29749 [IS_IN (libc)] (CENABLE): Likewise.
29750 [IS_IN (librt)] (CDISABLE): Likewise.
29751 [IS_IN (librt)] (CDISABLE): Likewise.
29752 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29753 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29754 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29755 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29756 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29757 definition.
29758 (PSEUDO_END): Likewise.
29759 [IS_IN (libpthread)] (CENABLE): Likewise.
29760 [IS_IN (libpthread)] (CDISABLE): Likewise.
29761 [IS_IN (libc)] (CENABLE): Likewise.
29762 [IS_IN (libc)] (CENABLE): Likewise.
29763 [IS_IN (librt)] (CDISABLE): Likewise.
29764 [IS_IN (librt)] (CDISABLE): Likewise.
29765 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29766 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29767 definition.
29768 (PSEUDO_END): Likewise.
29769 [IS_IN (libpthread)] (CENABLE): Likewise.
29770 [IS_IN (libpthread)] (CDISABLE): Likewise.
29771 [IS_IN (libc)] (CENABLE): Likewise.
29772 [IS_IN (libc)] (CENABLE): Likewise.
29773 [IS_IN (librt)] (CDISABLE): Likewise.
29774 [IS_IN (librt)] (CDISABLE): Likewise.
29775 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29776 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29777 definition.
29778 (PSEUDO_END): Likewise.
29779 [IS_IN (libpthread)] (CENABLE): Likewise.
29780 [IS_IN (libpthread)] (CDISABLE): Likewise.
29781 [IS_IN (libc)] (CENABLE): Likewise.
29782 [IS_IN (libc)] (CENABLE): Likewise.
29783 [IS_IN (librt)] (CDISABLE): Likewise.
29784 [IS_IN (librt)] (CDISABLE): Likewise.
29785 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29786 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29787 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29788 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29789 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29790 definition.
29791 (PSEUDO_END): Likewise.
29792 [IS_IN (libpthread)] (CENABLE): Likewise.
29793 [IS_IN (libpthread)] (CDISABLE): Likewise.
29794 [IS_IN (libc)] (CENABLE): Likewise.
29795 [IS_IN (libc)] (CENABLE): Likewise.
29796 [IS_IN (librt)] (CDISABLE): Likewise.
29797 [IS_IN (librt)] (CDISABLE): Likewise.
29798 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29799 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29800 definition.
29801 (PSEUDO_END): Likewise.
29802 [IS_IN (libpthread)] (CENABLE): Likewise.
29803 [IS_IN (libpthread)] (CDISABLE): Likewise.
29804 [IS_IN (libc)] (CENABLE): Likewise.
29805 [IS_IN (libc)] (CENABLE): Likewise.
29806 [IS_IN (librt)] (CDISABLE): Likewise.
29807 [IS_IN (librt)] (CDISABLE): Likewise.
29808 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29809
29810 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29811
29812 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29813
29814 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29815
29816 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29817
29818 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29819
29820 [BZ #21982]
29821 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29822 middle and outer with size_t instead of int. Repleace %d and
29823 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29824 "MAX (outer, nchars - 64)" to support unsigned outer and
29825 nchars. Also exit loop when outer == 0.
29826
29827 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29828
29829 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29830 * include/signal.h (__sigsuspend_nocancel): Likewise.
29831 * include/time.h (__nanosleep_nocancel): Likewise.
29832 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29833 * login/utmp_file.c: Include non cancellable syscall header.
29834 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29835 prototype.
29836
29837 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29838
29839 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29840 .byte sequences with AVX512F instructions.
29841 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29842 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29843 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29844 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29845 Likewise.
29846 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29847 Likewise.
29848
29849 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29850 Steve Ellcey <sellcey@cavium.com>
29851
29852 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29853 Use PTR_REG macro in cmp instruction.
29854
29855 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29856
29857 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29858 Change the return type of the ifunc resolver to match the return
29859 type of the target function.
29860
29861 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29862
29863 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29864 (preadv64): Likewise.
29865 (pwrite64(: Likewise.
29866 (pwritev64): Likewise.
29867
29868 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29869 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29870 (LOAD_ARGS_0): Likewise.
29871 (LOAD_ARGS_1): Likewise.
29872 (LOAD_ARGS_2): Likewise.
29873 (LOAD_ARGS_3): Likewise.
29874 (LOAD_ARGS_4): Likewise.
29875 (LOAD_ARGS_5): Likewise.
29876 (LOAD_ARGS_6): Likewise.
29877 (LOAD_REGS_0): Likewise.
29878 (LOAD_REGS_1): Likewise.
29879 (LOAD_REGS_2): Likewise.
29880 (LOAD_REGS_3): Likewise.
29881 (LOAD_REGS_4): Likewise.
29882 (LOAD_REGS_5): Likewise.
29883 (LOAD_REGS_6): Likewise.
29884 (ASM_ARGS_0): Likewise.
29885 (ASM_ARGS_1): Likewise.
29886 (ASM_ARGS_2): Likewise.
29887 (ASM_ARGS_3): Likewise.
29888 (ASM_ARGS_4): Likewise.
29889 (ASM_ARGS_5): Likewise.
29890 (ASM_ARGS_6): Likewise.
29891 (LOAD_ARGS_TYPES_1): Likewise.
29892 (LOAD_ARGS_TYPES_2): Likewise.
29893 (LOAD_ARGS_TYPES_3): Likewise.
29894 (LOAD_ARGS_TYPES_4): Likewise.
29895 (LOAD_ARGS_TYPES_5): Likewise.
29896 (LOAD_ARGS_TYPES_6): Likewise.
29897 (LOAD_REGS_TYPES_1): Likewise.
29898 (LOAD_REGS_TYPES_2): Likewise.
29899 (LOAD_REGS_TYPES_3): Likewise.
29900 (LOAD_REGS_TYPES_4): Likewise.
29901 (LOAD_REGS_TYPES_5): Likewise.
29902 (LOAD_REGS_TYPES_6): Likewise.
29903 (TYPEFY): New define.
29904 (ARGIFY): Likewise.
29905 (internal_syscall0): Likewise.
29906 (internal_syscall1): Likewise.
29907 (internal_syscall2): Likewise.
29908 (internal_syscall3): Likewise.
29909 (internal_syscall4): Likewise.
29910 (internal_syscall5): Likewise.
29911 (internal_syscall6): Likewise.
29912 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29913 (INTERNAL_SYSCALL_NCS): Remove define.
29914 (internal_syscall1): Add define.
29915
29916 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29917
29918 * math/w_remainder_compat.c: Remove duplicate inclusion of
29919 math-svid-compat.h.
29920 * math/w_remainderf_compat.c: Likewise.
29921 * math/w_remainderl_compat.c: Likewise.
29922
29923 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29924
29925 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29926
29927 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29928
29929 [BZ #21684]
29930 * math/tgmath.h (__floating_type): Simplify definitions.
29931 (__real_integer_type): New macro.
29932 (__complex_integer_type): Likewise.
29933 (__expr_is_real): Likewise.
29934 (__tgmath_real_type_sub): Update comment to describe handling of
29935 complex types.
29936 (__tgmath_complex_type_sub): New macro.
29937 (__tgmath_complex_type): Likewise.
29938 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29939 (__TGMATH_CF128): Use __expr_is_real.
29940 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29941 __expr_is_real.
29942 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29943 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29944 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29945 integer types.
29946
29947 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29948
29949 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29950 macro.
29951 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29952 alias.
29953 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29954 Likewise.
29955
29956 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29957 nanosleep_not_cancel with __nanosleep_nocancel.
29958 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29959 (__nanosleep_nocancel): New macro.
29960 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29961 function.
29962 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29963 macro.
29964 (__nanosleep_nocancel): New prototype.
29965
29966 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29967 pause_not_cancel with __pause_nocancel.
29968 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29969 (__pause_nocancel): New macro.
29970 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29971 macro.
29972 (__pause_nocancel): New prototype.
29973 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29974
29975 2017-08-22 Martin Sebor <msebor@redhat.com>
29976
29977 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29978 to return a pointer to the same type as the target function.
29979
29980 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29981
29982 [BZ #18822]
29983 [BZ #21986]
29984 * include/printf.h (__printf_fphex): Add attribute_hidden.
29985 (__guess_grouping): New prototype.
29986 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29987 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29988 libc_hidden_proto and libc_hidden_def.
29989 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29990 (__vstrfmon_l): Remove the third argument passed to
29991 __guess_grouping.
29992
29993 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29994
29995 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29996 definition for issignaling that does not rely on __MATH_TG,
29997 since __MATH_TG uses __builtin_types_compatible_p, which is only
29998 available in C mode.
29999 (CFLAGS-test-math-issignaling.cc): New variable.
30000 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30001 * math/test-math-issignaling.cc: New test for C++ implementation
30002 of type-generic issignaling.
30003 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30004 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30005 options of test-math-issignaling on powerpc64le.
30006
30007 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30008
30009 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30010 building libc.a.
30011 (hidden_proto): Likewise.
30012 (hidden_tls_proto): Likewise.
30013 (__hidden_proto): Likewise.
30014
30015 2017-08-22 Florian Weimer <fweimer@redhat.com>
30016
30017 math: Statically link tests of internal functionality.
30018 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30019 atest-exp2.
30020 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30021 (gmp-objs): Remove assignment.
30022 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30023
30024 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30025
30026 [BZ #21987]
30027 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30028 and copy to ...
30029 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30030 ... here.
30031 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30032 ... and here.
30033
30034 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30035 variable definitions above inclusion of ../Rules.
30036
30037 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30038
30039 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30040 case calling __builtin_unreachable.
30041
30042 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30043
30044 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30045 __waitpid_nocancel.
30046 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30047 (__waitpid_nocancel): New macro.
30048 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30049 macro.
30050 (__waitpid_nocancel): Replace macro with a function.
30051 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30052 function.
30053
30054 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30055 __fcntl_nocancel.
30056 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30057 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30058
30059 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30060 __writev_nocancel_nostatus.
30061 (write_call_graph): Likewise.
30062 (write_bb_counts): Likewise.
30063 * resolv/herror.c (herror): Likewise.
30064 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30065 macro.
30066 (__writev_nocancel_nostatus): New macro.
30067 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30068 Remove macro.
30069 (__writev_nocancel_nostatus): New function.
30070
30071 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30072
30073 Revert:
30074 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30075
30076 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30077 building libc.a.
30078 (hidden_proto): Likewise.
30079 (hidden_tls_proto): Likewise.
30080 (__hidden_proto): Likewise.
30081
30082 [BZ #21973]
30083 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30084 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30085 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30086 Likewise.
30087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30088 Likewise.
30089 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30090 Likewise.
30091 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30092 Likewise.
30093 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30094 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30095 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30096 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30097 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30098 GLIBC_2.0 sqrtl symbol.
30099
30100 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30101 [__USE_MISC] (_LIB_VERSION): Likewise.
30102 [__USE_MISC] (struct exception): Likewise.
30103 [__USE_MISC] (matherr): Likewise.
30104 [__USE_MISC] (DOMAIN): Likewise.
30105 [__USE_MISC] (SING): Likewise.
30106 [__USE_MISC] (OVERFLOW): Likewise.
30107 [__USE_MISC] (UNDERFLOW): Likewise.
30108 [__USE_MISC] (TLOSS): Likewise.
30109 [__USE_MISC] (PLOSS): Likewise.
30110 [__USE_MISC] (HUGE): Likewise.
30111 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30112 * math/math-svid-compat.h: New file.
30113 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30114 and matherrl.
30115 * include/math.h [!_ISOMAC] (__matherr): Remove.
30116 * manual/arith.texi (FP Exceptions): Do not document matherr.
30117 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30118 (tests-internal): New variable.
30119 (install-lib): Do not add libieee.a.
30120 (non-lib.a): Likewise.
30121 (extra-objs): Do not add libieee.a and ieee-math.o.
30122 (CPPFLAGS-s_lib_version.c): Remove variable.
30123 ($(objpfx)libieee.a): Remove rule.
30124 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30125 * math/ieee-math.c: Remove.
30126 * math/libm-test-support.c (matherr): Remove.
30127 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30128 and license notices. Include <math-svid-compat.h> and
30129 <shlib-compat.h>.
30130 (matherr): Undefine as macro. Use compat_symbol_reference.
30131 (_LIB_VERSION): Likewise.
30132 * math/test-matherr-2.c: New file.
30133 * math/test-matherr-3.c: Likewise.
30134 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30135 declaration.
30136 (__kernel_standard_f): Likewise.
30137 (__kernel_standard_l): Likewise.
30138 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30139 <math_private.h>. Include <math-svid-compat.h>.
30140 (_LIB_VERSION): Undefine as macro.
30141 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30142 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30143 [LIBM_SVID_COMPAT], use compat_symbol.
30144 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30145 <math_private.h>. Include <math-svid-compat.h>.
30146 (matherr): Undefine as macro.
30147 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30148 compat_symbol.
30149 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30150 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30151 compat_symbol_reference.
30152 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30153 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30154 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30155 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30156 (MATHERR_D): Remove declaration.
30157 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30158 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30159 [LIBM_BUILD] (pmatherrf): Likewise.
30160 [LIBM_BUILD] (pmatherr): Likewise.
30161 [LIBM_BUILD] (pmatherrl): Likewise.
30162 (DOMAIN): Likewise.
30163 (SING): Likewise.
30164 (OVERFLOW): Likewise.
30165 (UNDERFLOW): Likewise.
30166 (TLOSS): Likewise.
30167 (PLOSS): Likewise.
30168 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30169 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30170 compat_symbol.
30171 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30172 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30173 compat_symbol.
30174 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30175 * math/w_acos_compat.c: Likewise.
30176 * math/w_acosf_compat.c: Likewise.
30177 * math/w_acosh_compat.c: Likewise.
30178 * math/w_acoshf_compat.c: Likewise.
30179 * math/w_acoshl_compat.c: Likewise.
30180 * math/w_acosl_compat.c: Likewise.
30181 * math/w_asin_compat.c: Likewise.
30182 * math/w_asinf_compat.c: Likewise.
30183 * math/w_asinl_compat.c: Likewise.
30184 * math/w_atan2_compat.c: Likewise.
30185 * math/w_atan2f_compat.c: Likewise.
30186 * math/w_atan2l_compat.c: Likewise.
30187 * math/w_atanh_compat.c: Likewise.
30188 * math/w_atanhf_compat.c: Likewise.
30189 * math/w_atanhl_compat.c: Likewise.
30190 * math/w_cosh_compat.c: Likewise.
30191 * math/w_coshf_compat.c: Likewise.
30192 * math/w_coshl_compat.c: Likewise.
30193 * math/w_exp10_compat.c: Likewise.
30194 * math/w_exp10f_compat.c: Likewise.
30195 * math/w_exp10l_compat.c: Likewise.
30196 * math/w_exp2_compat.c: Likewise.
30197 * math/w_exp2f_compat.c: Likewise.
30198 * math/w_exp2l_compat.c: Likewise.
30199 * math/w_fmod_compat.c: Likewise.
30200 * math/w_fmodf_compat.c: Likewise.
30201 * math/w_fmodl_compat.c: Likewise.
30202 * math/w_hypot_compat.c: Likewise.
30203 * math/w_hypotf_compat.c: Likewise.
30204 * math/w_hypotl_compat.c: Likewise.
30205 * math/w_j0_compat.c: Likewise.
30206 * math/w_j0f_compat.c: Likewise.
30207 * math/w_j0l_compat.c: Likewise.
30208 * math/w_j1_compat.c: Likewise.
30209 * math/w_j1f_compat.c: Likewise.
30210 * math/w_j1l_compat.c: Likewise.
30211 * math/w_jn_compat.c: Likewise.
30212 * math/w_jnf_compat.c: Likewise.
30213 * math/w_jnl_compat.c: Likewise.
30214 * math/w_lgamma_main.c: Likewise.
30215 * math/w_lgamma_r_compat.c: Likewise.
30216 * math/w_lgammaf_main.c: Likewise.
30217 * math/w_lgammaf_r_compat.c: Likewise.
30218 * math/w_lgammal_main.c: Likewise.
30219 * math/w_lgammal_r_compat.c: Likewise.
30220 * math/w_log10_compat.c: Likewise.
30221 * math/w_log10f_compat.c: Likewise.
30222 * math/w_log10l_compat.c: Likewise.
30223 * math/w_log2_compat.c: Likewise.
30224 * math/w_log2f_compat.c: Likewise.
30225 * math/w_log2l_compat.c: Likewise.
30226 * math/w_log_compat.c: Likewise.
30227 * math/w_logf_compat.c: Likewise.
30228 * math/w_logl_compat.c: Likewise.
30229 * math/w_pow_compat.c: Likewise.
30230 * math/w_powf_compat.c: Likewise.
30231 * math/w_powl_compat.c: Likewise.
30232 * math/w_remainder_compat.c: Likewise.
30233 * math/w_remainderf_compat.c: Likewise.
30234 * math/w_remainderl_compat.c: Likewise.
30235 * math/w_scalb_compat.c: Likewise.
30236 * math/w_scalbf_compat.c: Likewise.
30237 * math/w_scalbl_compat.c: Likewise.
30238 * math/w_sinh_compat.c: Likewise.
30239 * math/w_sinhf_compat.c: Likewise.
30240 * math/w_sinhl_compat.c: Likewise.
30241 * math/w_sqrt_compat.c: Likewise.
30242 * math/w_sqrtf_compat.c: Likewise.
30243 * math/w_sqrtl_compat.c: Likewise.
30244 * math/w_tgamma_compat.c: Likewise.
30245 * math/w_tgammaf_compat.c: Likewise.
30246 * math/w_tgammal_compat.c: Likewise.
30247 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30248 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30249 * sysdeps/ieee754/k_standard.c: Likewise.
30250 * sysdeps/ieee754/k_standardf.c: Likewise.
30251 * sysdeps/ieee754/k_standardl.c: Likewise.
30252 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30253 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30254 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30255 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30256 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30257 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30258 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30259 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30260 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30262 Likewise.
30263 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30264 Likewise.
30265 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30266 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30267 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30268 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30269
30270 2017-08-21 Florian Weimer <fweimer@redhat.com>
30271
30272 [BZ #21864]
30273 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30274 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30275 Move before inclusion of ../Rules.
30276
30277 2017-08-21 Florian Weimer <fweimer@redhat.com>
30278
30279 [BZ #21972]
30280 * assert/assert.h (assert): Use static_cast (bool) for C++.
30281 Use the ternary operator in the warning branch for GNU C.
30282 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30283 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30284 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30285 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30286 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30287
30288 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30289
30290 [BZ #18822]
30291 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30292 (__syscall_clock_gettime): Add attribute_hidden.
30293 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30294 (__start_context): Likewise.
30295
30296 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30297
30298 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30299 building libc.a.
30300 (hidden_proto): Likewise.
30301 (hidden_tls_proto): Likewise.
30302 (__hidden_proto): Likewise.
30303
30304 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30305
30306 * include/libc-symbols.h (attribute_hidden): Enable hidden
30307 visibility in libc.a compiled with PIE.
30308
30309 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30310
30311 [BZ #18822]
30312 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30313 Add attribute_hidden.
30314
30315 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30316
30317 [BZ #21864]
30318 * Makerules (all-nonlib): Add $(others-extras).
30319 * catgets/Makefile (others-extras): New.
30320 * elf/Makefile (others-extras): Likewise.
30321 * nss/Makefile (others-extras): Likewise.
30322
30323 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30324
30325 [BZ #18822]
30326 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30327 * elf/dl-open.c: Include <libc-internal.h>.
30328 (__libc_multiple_libcs): Removed.
30329 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30330 <hp-timing.h>.
30331 * include/libc-internal.h (__libc_multiple_libcs): New.
30332 * misc/sbrk.c: Include <libc-internal.h>.
30333 (__libc_multiple_libcs): Removed.
30334
30335 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30336
30337 [BZ #18822]
30338 * grp/initgroups.c (__nss_group_database): Removed.
30339 (__nss_initgroups_database): Likewise.
30340 * nscd/gai.c (__nss_hosts_database): Likewise.
30341 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30342 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30343 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30344 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30345 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30346 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30347 attribute_hidden.
30348 * nss/nsswitch.c (__nss_database_custom): Define only if
30349 USE_NSCD is defined.
30350 (__nss_configure_lookup): Use __nss_database_custom only if
30351 USE_NSCD is defined.
30352 * nss/nsswitch.h (__nss_database_custom): Declare only if
30353 USE_NSCD is defined. Add attribute_hidden.
30354 (__nss_setent): Add attribute_hidden.
30355 (__nss_endent): Likewise.
30356 (__nss_getent_r): Likewise.
30357 (__nss_getent): Likewise.
30358 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30359
30360 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30361
30362 [BZ #18822]
30363 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30364 libc_hidden_proto and libc_hidden_def.
30365
30366 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30367
30368 [BZ #18822]
30369 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30370 Add libc_hidden_proto.
30371 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30372 Add libc_hidden_def.
30373
30374 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30375
30376 [BZ #21974]
30377 * gmon/Makefile (routines): Remove bb_init_func and
30378 bb_exit_func.
30379 (elide-routines.os): Removed.
30380 * gmon/bb_exit_func.c: Likewise.
30381 * gmon/bb_init_func.c: Likewise.
30382 * include/sys/gmon.h (__bb): Likewise.
30383 (__bb_init_func): Likewise.
30384 (__bb_exit_func): Likewise.
30385 * sysdeps/alpha/bb_init_func.S: Likewise.
30386
30387 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30388
30389 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30390 * include/setjmp.h (____longjmp_chk): Here. Add
30391 attribute_hidden.
30392
30393 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30394
30395 [BZ #18822]
30396 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30397 attribute_hidden.
30398 (__strspn_sse2): Likewise.
30399
30400 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30401
30402 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30403 (close_not_cancel_no_status): Likewise.
30404 (__close_nocancel): New macro.
30405 (__close_nocancel_nostatus): Likewise.
30406 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30407 macro.
30408 (close_not_cancel): Likewise.
30409 (close_not_cancel_no_status): Likewise.
30410 (__close_nocancel): New prototype.
30411 (__close_nocancel_nostatus): New function.
30412 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30413 * catgets/open_catalog.c (__open_catalog): Replace
30414 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30415 * gmon/gmon.c (write_gmon): Likewise.
30416 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30417 * intl/loadmsgcat.c (close): Likewise.
30418 * io/ftw.c (open_dir_stream): Likewise.
30419 (ftw_startup): Likewise.
30420 * libio/fileops.c (_IO_file_open): Likewise.
30421 (_IO_file_close_mmap): Likewise.
30422 (_IO_file_close): Likewise.
30423 * libio/iopopen.c (_IO_dup2): Likewise.
30424 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30425 * locale/loadlocale.c (_nl_load_locale): Likewise.
30426 * login/utmp_file.c (pututline_file): Likewise.
30427 (endutent_file): Likewise.
30428 * misc/daemon.c (daemon): Likewise.
30429 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30430 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30431 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30432 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30433 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30434 * nscd/nscd_helper.c (open_socket): Likewise.
30435 (__nscd_open_socket): Likewise.
30436 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30437 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30438 (__nscd_innetgr): Likewise.
30439 * nss/nss_db/db-open.c (internal_setent): Likewise.
30440 * resolv/res-close.c (__res_iclose): Likewise.
30441 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30442 * sysdeps/posix/closedir.c (__closedir): Likewise.
30443 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30444 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30445 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30446 (opendir_tail): Likewise.
30447 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30448 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30449 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30450 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30451 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30452 (gethostid): Likewise.
30453 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30454 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30455 Likewise.
30456 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30457 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30458 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30459 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30460 Likewise.
30461 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30462 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30463 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30464 Likewise.
30465 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30466 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30467 Likewise.
30468 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30469 Likewise.
30470 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30471 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30472 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30473 __close_nocancel.
30474
30475 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30476 (openat_not_cancel_3): Likewise.
30477 (openat64_not_cancel_3): Likewise).
30478 (openat_not_cancel_3): Likewise).
30479 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30480 macro.
30481 (openat_not_cancel_3): Likewise.
30482 (openat64_not_cancel): Likewise.
30483 (openat64_not_cancel_3): Likewise.
30484 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30485 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30486 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30487 __open{64}_nocancel.
30488 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30489 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30490 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30491
30492 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30493
30494 [BZ #18822]
30495 * include/argz.h (__argz_create_sep): New function prototype.
30496 (__argz_append): Likewise.
30497 (__argz_add): Likewise.
30498 (__argz_add_sep): Likewise.
30499 (__argz_delete): Likewise.
30500 (__argz_insert): Likewise.
30501 (__argz_replace): Likewise.
30502 * string/argz.h (__argz_create_sep): Removed.
30503 (__argz_append): Likewise.
30504 (__argz_add): Likewise.
30505 (__argz_add_sep): Likewise.
30506 (__argz_delete): Likewise.
30507 (__argz_insert): Likewise.
30508 (__argz_replace): Likewise.
30509
30510 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30511
30512 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30513 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30514 (GNU_PROPERTY_STACK_SIZE): Likewie.
30515 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30516 (GNU_PROPERTY_LOPROC): Likewise.
30517 (GNU_PROPERTY_HIPROC): Likewise.
30518 (GNU_PROPERTY_LOUSER): Likewise.
30519 (GNU_PROPERTY_HIUSER): Likewise.
30520 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30521 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30522 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30523 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30524 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30525 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30526 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30527 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30528 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30529 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30530 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30531 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30532 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30533 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30534 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30535 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30536 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30537 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30538 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30539 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30540 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30541 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30542 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30543
30544 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30545
30546 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30547 in C++ mode.
30548
30549 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30550
30551 [BZ #21930]
30552 * math/math.h (isinf): Check if in C or C++ mode before using
30553 __builtin_types_compatible_p, since this is a C mode feature.
30554
30555 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30556
30557 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30558 (__write_nocancel): New macro.
30559 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30560 Rewrite as a function prototype.
30561 (write_not_cancel): Remove macro.
30562 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30563 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30564 (write_gmon): Likewise.
30565 * libio/fileops.c (_IO_new_file_write): Likewise.
30566 * login/utmp_file.c (pututline_file): Likewise.
30567 (updwtmp_file): Likewise.
30568 * stdio-common/psiginfo.c (psiginfo): Likewise.
30569 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30570 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30571 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30572 Likewise.
30573 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30574 Likewise.
30575
30576 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30577 (__read_nocancel): New macro.
30578 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30579 __read_nocancel.
30580 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30581 macro.
30582 (__read_nocancel): New prototype.
30583 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30584 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30585 with __read_nocancel.
30586 * intl/loadmsgcat.c (read): Likewise.
30587 * libio/fileops.c (_IO_file_read): Likewise.
30588 * locale/loadlocale.c (_nl_load_locale): Likewise.
30589 * login/utmp_file.c (getutent_r_file): Likewise.
30590 (internal_getut_r): Likewise.
30591 (getutline_r_file): Likewise.
30592 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30593 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30594 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30595 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30596 Likewise.
30597 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30598 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30599 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30600 Likewise.
30601 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30602 Likewise.
30603 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30604 Likewise.
30605 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30606 Likewise.
30607 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30608
30609 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30610
30611 [BZ #21966]
30612 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30613 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30614 usable.
30615
30616 2017-08-17 DJ Delorie <dj@redhat.com>
30617
30618 * bug17079.c: Update to new test harness.
30619 * test-digits-dots.c: Likewise.
30620 * test-netdb.c: Likewise.
30621 * tst-field.c: Likewise.
30622 * tst-nss-getpwent.c: Likewise.
30623 * tst-nss-static.c: Likewise.
30624 * tst-nss-test1.c: Likewise.
30625 * tst-nss-test2.c: Likewise.
30626 * tst-nss-test3.c: Likewise.
30627 * tst-nss-test4.c: Likewise.
30628 * tst-nss-test5.c: Likewise.
30629
30630 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30631
30632 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30633 (open_not_cancel_2): Likewise.
30634 (open_nocancel): New macro.
30635 (open64_nocancel): Likewise.
30636 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30637 (open_not_cancel_2): Likewise.
30638 (__open_nocancel): New prototype.
30639 (__open64_nocancel): Likewise.
30640 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30641 __open_nocancel.
30642 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30643 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30644 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30645 with __open_nocancel.
30646 * csu/check_fds.c (check_one_fd): Likewise.
30647 * gmon/gmon.c (write_gmon): Likewise.
30648 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30649 * intl/loadmsgcat.c (open): Likewise.
30650 * libio/fileops.c (_IO_file_open): Likewise.
30651 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30652 * locale/loadlocale.c (_nl_load_locale): Likewise.
30653 * login/utmp_file.c (setutent_file): Likewise.
30654 * misc/daemon.c (daemon): Likewise.
30655 * nss/nss_db/db-open.c (internal_setent): Likewise.
30656 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30657 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30658 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30659 (__opendir): Likewise.
30660 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30661 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30662 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30663 (gethostid): Likewise.
30664 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30665 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30666 Likewise.
30667 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30668 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30669 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30670 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30671 Likewise.
30672 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30673 Likewise.
30674 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30675 Likewise.
30676 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30677 Likewise.
30678 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30679 Likewise.
30680 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30681 Likewise.
30682 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30683 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30684
30685 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30686
30687 * benchtests/bench-skeleton.c (main): Add support for
30688 latency benchmarking.
30689 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30690
30691 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30694 the startup object.
30695
30696 2017-08-17 Florian Weimer <fweimer@redhat.com>
30697
30698 * include/sys/socket.h (__opensock): Remove internal_function.
30699 * socket/opensock.c (__opensock): Likewise.
30700 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30701
30702 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30703
30704 [BZ #21944]
30705 * signal/bits/types/__sigval_t.h: New file.
30706 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30707 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30708 and define sigval_t using __sigval_t.
30709 * include/bits/types/__sigval_t.h: New file.
30710 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30711 instead of <bits/types/__sigval_t.h>.
30712 (struct sigevent): Use __sigval_t instead of sigval_t.
30713 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30714 instead of <bits/types/__sigval_t.h>.
30715 (siginfo_t): Use __sigval_t instead of sigval_t.
30716 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30717 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30718 (struct sigevent): Use __sigval_t instead of sigval_t.
30719 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30720 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30721 (siginfo_t): Use __sigval_t instead of sigval_t.
30722 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30723
30724 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30725
30726 * NEWS: Remove "[Add new features here]" for 2.27.
30727
30728 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30729
30730 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30731 libc.so.
30732
30733 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30734
30735 * NEWS: Mention x86-64 FMA optimization.
30736
30737 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30738
30739 [BZ #21912]
30740 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30741 Add e_expf-fma.
30742 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30743 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30744 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30745
30746 2017-08-16 Andreas Schwab <schwab@suse.de>
30747
30748 [BZ #16750]
30749 CVE-2009-5064
30750 * elf/ldd.bash.in: Never run file directly.
30751
30752 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30753
30754 [BZ #21955]
30755 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30756 (L(SP_INF_0)): Likewise.
30757
30758 2017-08-15 Florian Weimer <fweimer@redhat.com>
30759
30760 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30761 run-built-tests.
30762
30763 2017-08-15 Florian Weimer <fweimer@redhat.com>
30764
30765 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30766 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30767 BROKEN_THREAD_SIGNALS code.
30768 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30769 request_list): Remove caller_pid member used for
30770 BROKEN_THREAD_SIGNALS.
30771 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30772 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30773 Remove BROKEN_THREAD_SIGNALS support.
30774 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30775 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30776
30777 2017-08-15 Florian Weimer <fweimer@redhat.com>
30778
30779 * gmon/Makefile (tests): Add tst-gmon.
30780 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30781 Set.
30782 (tests-special): Add tst-gmon-prof.out.
30783 (tst-gmon.out): Depend on clean-tst-gmon-data.
30784 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30785 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30786 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30787 startup object.
30788 * aclocal.m4 (GPROF): Set and substitute.
30789 * config.amke.in (GPROF): Set.
30790 * configure: Regenerate.
30791
30792 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30793
30794 * elf/elf.h A (NT_PPC_TAR): New macro.
30795 (NT_PPC_PPR): Likewise.
30796 (NT_PPC_DSCR): Likewise.
30797 (NT_PPC_EBB): Likewise.
30798 (NT_PPC_PMU): Likewise.
30799 (NT_PPC_TM_CGPR): Likewise.
30800 (NT_PPC_TM_CFPR): Likewise.
30801 (NT_PPC_TM_CVMX): Likewise.
30802 (NT_PPC_TM_CVSX): Likewise.
30803 (NT_PPC_TM_SPR): Likewise.
30804 (NT_PPC_TM_CTAR): Likewise.
30805 (NT_PPC_TM_CPPR): Likewise.
30806 (NT_PPC_TM_CDSCR): Likewise.
30807
30808 2017-08-15 Florian Weimer <fweimer@redhat.com>
30809
30810 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30811 regparm (2) instead of internal_function.
30812 (_MCOUNT_DECL): Adjust.
30813
30814 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30815
30816 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30817 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30818
30819 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30820
30821 * conform/data/sys/wait.h-data (si_value): Do not expect for
30822 XPG42.
30823
30824 2017-08-14 Florian Weimer <fweimer@redhat.com>
30825
30826 [BZ #21962]
30827 NSS: Create stubs for accidentally exported lookup functions.
30828 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30829 Remove declaration.
30830 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30831 (ether_hostton): Call __nss_ethers_lookup2 instead.
30832 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30833 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30834 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30835 (setup): Call __nss_netgroup_lookup2 instead.
30836 * nss/Makefile (routines): Add compat-lookup.
30837 * nss/Versions (GLIBC_2.27): Add symbol version.
30838 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30839 (DB_COMPAT_FCT): Remove.
30840 * nss/compat-lookup.c: New file.
30841 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30842 from databases.def.
30843 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30844 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30845 (netname2user): Call __nss_publickey_lookup2 instead.
30846 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30847 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30848 instead.
30849
30850 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30851 Sergei Trofimovich <slyfox@inbox.ru>
30852
30853 [BZ #21908]
30854 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30855 Rename to MMAP2_PAGE_UNIT.
30856 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30857 __OFF_T_MATCHES_OFF64_T is not defined.
30858 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30859 uint64_t.
30860 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30861 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30862
30863 2017-08-14 Florian Weimer <fweimer@redhat.com>
30864
30865 i386: Do not set internal_function.
30866 * config.h.in (USE_REGPARMS, internal_function): Remove.
30867 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30868 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30869
30870 2017-08-14 Florian Weimer <fweimer@redhat.com>
30871
30872 * elf/dl-init.c (_dl_init): Remove internal_function.
30873 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30874 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30875
30876 2017-08-14 Florian Weimer <fweimer@redhat.com>
30877
30878 * elf/rtld.c (_dl_start): Remove internal_function.
30879 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30880 _dl_start.
30881
30882 2017-08-14 Florian Weimer <fweimer@redhat.com>
30883
30884 * elf/dl-fini.c (_dl_fini): Remove internal_function
30885 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30886
30887 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30888
30889 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30890 (bit_cpu_SHSTK): Likewise.
30891 (index_cpu_IBT): Likewise.
30892 (index_cpu_SHSTK): Likewise.
30893 (reg_IBT): Likewise.
30894 (reg_SHSTK): Likewise.
30895 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30896 Handle index_cpu_IBT and index_cpu_SHSTK.
30897
30898 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30899
30900 [BZ #19982]
30901 * po/fr.po: Fix spelling mistake.
30902
30903 2017-08-13 Florian Weimer <fweimer@redhat.com>
30904
30905 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30906 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30907 (_dl_catch_error, _dl_receive_error): Likewise.
30908 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30909 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30910 (_dl_deallocate_tls): Likewise.
30911 * include/dlfcn.h (_dl_addr): Likewise.
30912 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30913 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30914 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30915 Likewise.
30916
30917 2017-08-13 Florian Weimer <fweimer@redhat.com>
30918
30919 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30920 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30921 internal_function.
30922 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30923
30924 2017-08-13 Florian Weimer <fweimer@redhat.com>
30925
30926 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30927 internal_function.
30928 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30929 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30930 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30931 internal_function from _dl_make_stack_executable_hook member.
30932 (_dl_make_stack_executable): Remove internal_function.
30933 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30934 Likewise.
30935 * sysdeps/unix/sysv/linux/dl-execstack.c
30936 (_dl_make_stack_executable): Likewise.
30937
30938 2017-08-13 Florian Weimer <fweimer@redhat.com>
30939
30940 * sysdeps/unix/sysv/linux/netlinkaccess.h
30941 (__netlink_assert_response): Remove internal_function.
30942 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30943 (__netlink_assert_response): Likewise.
30944
30945 2017-08-13 Florian Weimer <fweimer@redhat.com>
30946
30947 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30948 internal_function.
30949 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30950
30951 2017-08-13 Florian Weimer <fweimer@redhat.com>
30952
30953 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30954 internal_function.
30955 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30956 * inet/netgroup.h (__internal_setnetgrent)
30957 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30958 * inet/getnetgrent_r.c (__internal_setnetgrent)
30959 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30960 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30961 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30962 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30963 * nss/nsswitch.h (db_lookup_function): Likewise.
30964
30965 2017-08-13 Florian Weimer <fweimer@redhat.com>
30966
30967 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30968 Remove internal_function.
30969 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30970 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30971 message argument on the stack.
30972 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30973 Likeweise.
30974
30975 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30976
30977 Adapt test case data to the changes in the thousands
30978 separators.
30979
30980 [BZ #20756]
30981 * localedata/tst-langinfo.sh: Adapt test case data.
30982 * stdlib/tst-strfmon_l.c: Likewise.
30983 * stdlib/tst-strtod4.c: Likewise.
30984 * stdlib/tst-strtod5i.c: Likewise.
30985
30986 2017-08-11 Florian Weimer <fweimer@redhat.com>
30987
30988 [BZ #21242]
30989 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30990 Suppress pedantic warning resulting from statement expression.
30991 (__ASSERT_FUNCTION): Add missing __extension__.
30992
30993 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30994
30995 * benchtests/bench-memmove-large.c: Print output in JSON
30996 format.
30997 * benchtests/bench-memmove.c: Likewise.
30998
30999 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31000 * benchtests/bench-memchr.c (do_one_test): Likewise.
31001 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31002 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31003 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31004 * benchtests/bench-memmove.c (do_one_test): Likewise.
31005 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31006 * benchtests/bench-memset.c (do_one_test): Likewise.
31007 * benchtests/bench-string.h (test_init): Remove memsets.
31008
31009 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31010
31011 * manual/lang.texi
31012 (Computing the Width of an Integer Data Type): Rename section to
31013 "Width of an Integer Type". Remove inaccurate statement regarding
31014 lack of C language facilities for determining width of integer
31015 types, and reorder content to improve flow and context of
31016 discussion.
31017
31018 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31019
31020 * lang.texi (va_copy): Change standard from ISO to C99.
31021 (__va_copy): Add standard and header annotation.
31022 Update description for clarity of origins and current use.
31023
31024 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31025
31026 [BZ #21941]
31027 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31028 xssqrtqp requires operands to be in Vector Registers
31029 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31030 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31031 (__ieee754_sqrtf128): Likewise.
31032
31033 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31034
31035 * sysdeps/aarch64/memcmp.S (memcmp):
31036 Rewrite of optimized memcmp.
31037
31038 2017-08-10 Florian Weimer <fweimer@redhat.com>
31039
31040 Introduce ld.so exceptions.
31041 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31042 (_dl_exception_create, _dl_exception_create_format)
31043 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31044 (_dl_catch_exception): Declare.
31045 (_dl_catch_error): Update comment.
31046 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31047 errstring, malloced members with exception member.
31048 (_dl_out_of_memory): Remove.
31049 (fatal_error): New function, extracted from _dl_signal_error.
31050 (_dl_signal_exception, _dl_signal_cexception): New functions.
31051 (_dl_signal_error): Call _dl_exception_create to allocate an
31052 exception object.
31053 (_dl_catch_exception): New function, based on _dl_catch_error.
31054 (_dl_catch_error): Implement using _dl_catch_exception.
31055 * elf/dl-exception.c: New file.
31056 * elf/Makefile (dl-routines): Add dl-exception.
31057 (elide-routines.os): Likewise.
31058 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31059 _dl_exception_create_format, _dl_exception_free.
31060 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31061 _dl_signal_exception.
31062 * elf/dl-lookup.c (make_string): Remove.
31063 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31064 _dl_signal_cexception, _dl_exception_free.
31065 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31066 _dl_signal_exception.
31067 * elf/dl-sym.c (do_sym): Likewise.
31068 * elf/dl-version.c (make_string): Remove.
31069 (match_symbol): Use _dl_exception_create_format,
31070 _dl_signal_cexception, _dl_exception_free.
31071 (_dl_check_map_versions): Likewise.
31072 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31073 _dl_catch_exception.
31074 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31075 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31076 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31077 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31078 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31079 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31080 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31081 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31082 Likewise.
31083 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31084 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31085 (ld.so): Likewise.
31086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31087 (ld.so): Likewise.
31088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31089 Likewise.
31090 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31091 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31092 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31093 Likewise.
31094 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31095 Likewise.
31096 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31097
31098 2017-08-10 Florian Weimer <fweimer@redhat.com>
31099
31100 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31101 attribute_hidden, internal_function.
31102 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31103 internal_function.
31104
31105 2017-08-10 Florian Weimer <fweimer@redhat.com>
31106
31107 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31108 function which calls __builtin_unreachable.
31109
31110 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31111
31112 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31113 Indian monetary formatting
31114 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31115 test cases.
31116
31117 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31118
31119 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31120 Fix typo in comment.
31121
31122 [BZ #21928]
31123 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31124 PTRACE_SEIZE_DEVEL): Remove.
31125 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31126 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31127 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31128 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31129 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31130
31131 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31132
31133 * posix/bits/types.h (__qaddr_t): Remove.
31134
31135 [BZ #21457]
31136 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31137 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31138 __glibc_reserved1.
31139 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31140 (ucontext_t): Use __ctx with uc_flags.
31141 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31142 (__ctxt): Likewise.
31143 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31144 __glibc_reserved1.
31145 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31146 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31147 __glibc_reserved1.
31148 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31149 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31150 __glibc_reserved1.
31151 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31152 macro.
31153 (ucontext_t): Use __ctx with uc_flags.
31154 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31155 (ucontext_t): Use __ctx with uc_flags.
31156 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31157 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31158 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31159 (ucontext_t): Use __ctx with uc_flags.
31160 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31161 undefine further down.
31162 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31163 __glibc_reserved1.
31164 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31165 undefine further down.
31166 (ucontext_t): Use __ctx with uc_flags.
31167 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31168 undefine further down.
31169 (ucontext_t): Use __ctx with uc_flags.
31170 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31171 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31172 Rename uc_pad to __glibc_reserved1.
31173 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31174 undefine further down.
31175 (ucontext_t): Use __ctx with uc_flags.
31176 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31177 further down.
31178 (ucontext_t): Use __ctx with uc_flags.
31179 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31180 __ctx with uc_flags.
31181 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31182 (ucontext_t): Use __ctx with uc_flags.
31183 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31184 __ctx with uc_flags.
31185
31186 2017-08-09 Florian Weimer <fweimer@redhat.com>
31187
31188 [BZ #21932]
31189 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31190 before early return.
31191
31192 2017-08-09 Andreas Schwab <schwab@suse.de>
31193
31194 [BZ #21041]
31195 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31196 renamed alias.
31197
31198 [BZ #21041]
31199 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31200 tst-compat-forwarder.
31201 (modules-names): Add tst-compat-forwarder-mod.
31202 ($(objpfx)tst-compat-forwarder): Depend on
31203 $(objpfx)tst-compat-forwarder-mod.so.
31204 * nptl/tst-compat-forwarder.c: New file.
31205 * nptl/tst-compat-forwarder-mod.c: New file.
31206
31207 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31208
31209 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31210 comments.
31211
31212 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31213 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31214 memcpy_falkor.
31215 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31216 Bump.
31217 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31218 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31219 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31220 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31221 Add falkor.
31222 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31223 New macro.
31224
31225 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31226
31227 [BZ #759]
31228 * manual/setjmp.texi (getcontex): Document uc_stack value
31229 compatibility differences.
31230
31231 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31232
31233 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31234 (old_malloc_hook): Likewise.
31235 (old_memalign_hook): Likewise.
31236 (old_realloc_hook): Likewise.
31237 (struct hdr): Likewise.
31238 (flood): Likewise.
31239 (freehook): Likewise.
31240 (mallochook): Likewise.
31241 (memalignhook): Likewise.
31242 (reallochook): Likewise.
31243 (mprobe): Likewise.
31244 * malloc/mtrace.c (mallwatch): Likewise.
31245 (tr_old_free_hook): Likewise.
31246 (tr_old_malloc_hook): Likewise.
31247 (tr_old_realloc_hook): Likewise.
31248 (tr_old_memalign_hook): Likewise.
31249 (tr_where): Likewise.
31250 (lock_and_info): Likewise.
31251 (tr_freehook): Likewise.
31252 (tr_mallochook): Likewise.
31253 (tr_reallochook): Likewise.
31254 (tr_memalignhook): Likewise.
31255 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31256 * misc/mmap.c (__mmap): Likewise.
31257 * misc/mmap64.c (__mmap64): Likewise.
31258 * misc/mprotect.c (__mprotect): Likewise.
31259 * misc/msync.c (msync): Likewise.
31260 * misc/munmap.c (__munmap): Likewise.
31261 * posix/posix_madvise.c (posix_madvise): Likewise.
31262 * socket/send.c (__send): Likewise.
31263 * socket/sendto.c (__sendto): Likewise.
31264 * socket/setsockopt.c (__setsockopt): Likewise.
31265 * string/memcmp.c (__ptr_t): Remove macro.
31266 (MEMCMP): Use void * instead of ptr_t.
31267 * string/memrchr.c (__ptr_t): Remove macro.
31268 (__memrchr): Use void * instead of ptr_t.
31269 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31270 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31271 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31272 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31273 * sysdeps/mach/msync.c (msync): Likewise.
31274 * sysdeps/mach/munmap.c (__munmap): Likewise.
31275 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31276 Likewise.
31277 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31278 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31279 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31280 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31281 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31282 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31283 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31284 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31285 Likewise.
31286 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31287 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31288 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31289 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31290 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31291 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31292 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31293 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31294 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31295 Likewise.
31296 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31297 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31298 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31299 (MEMCMP): Use void * instead of ptr_t.
31300 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31301 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31302
31303 2017-08-08 Florian Weimer <fweimer@redhat.com>
31304
31305 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31306 return statement.
31307
31308 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31309
31310 [BZ #21913]
31311 * csu/libc-tls.c: Include <startup.h> first.
31312 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31313 * elf/dl-tunables.c: Include <startup.h> first.
31314 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31315 * sysdeps/generic/startup.h: New file.
31316 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31317 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31318 (I386_USE_SYSENTER): New. Defined to 0.
31319
31320 2017-08-08 Andreas Schwab <schwab@suse.de>
31321
31322 [BZ #21041]
31323 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31324 * nptl/pt-system.c (system): Likewise.
31325
31326 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31327
31328 [BZ #21780]
31329 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31330 EOPNOTSUPP.
31331 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31332 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31333 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31334 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31335 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31336 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31337 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31338
31339 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31340
31341 [BZ #21899]
31342 * bits/sigaction.h (struct sigaction): Define sa_handler and
31343 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31344 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31345 [__USE_XOPEN_EXTENDED].
31346 (SA_RESTART): Likewise.
31347 (SA_NODEFER): Likewise.
31348 (SA_RESETHAND): Likewise.
31349 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31350 (struct sigaction): Define sa_handler and sa_sigaction using union
31351 also for [__USE_XOPEN_EXTENDED].
31352 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31353 [__USE_XOPEN_EXTENDED].
31354 (SA_RESTART): Likewise.
31355 (SA_NODEFER): Likewise.
31356 (SA_RESETHAND): Likewise.
31357 * sysdeps/unix/sysv/linux/bits/sigaction.h
31358 (struct sigaction): Define sa_handler and sa_sigaction using union
31359 also for [__USE_XOPEN_EXTENDED].
31360 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31361 [__USE_XOPEN_EXTENDED].
31362 (SA_RESTART): Likewise.
31363 (SA_NODEFER): Likewise.
31364 (SA_RESETHAND): Likewise.
31365 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31366 (struct sigaction): Define sa_handler and sa_sigaction using union
31367 also for [__USE_XOPEN_EXTENDED].
31368 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31369 [__USE_XOPEN_EXTENDED].
31370 (SA_RESTART): Likewise.
31371 (SA_NODEFER): Likewise.
31372 (SA_RESETHAND): Likewise.
31373 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31374 (struct sigaction): Define sa_handler and sa_sigaction using union
31375 also for [__USE_XOPEN_EXTENDED].
31376 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31377 [__USE_XOPEN_EXTENDED].
31378 (SA_RESTART): Likewise.
31379 (SA_NODEFER): Likewise.
31380 (SA_RESETHAND): Likewise.
31381 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31382 (struct sigaction): Define sa_handler and sa_sigaction using union
31383 also for [__USE_XOPEN_EXTENDED].
31384 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31385 [__USE_XOPEN_EXTENDED].
31386 (SA_RESTART): Likewise.
31387 (SA_NODEFER): Likewise.
31388 (SA_RESETHAND): Likewise.
31389 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31390 (struct sigaction): Define sa_handler and sa_sigaction using union
31391 also for [__USE_XOPEN_EXTENDED].
31392 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31393 [__USE_XOPEN_EXTENDED].
31394 (SA_RESTART): Likewise.
31395 (SA_NODEFER): Likewise.
31396 (SA_RESETHAND): Likewise.
31397 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31398 (struct sigaction): Define sa_handler and sa_sigaction using union
31399 also for [__USE_XOPEN_EXTENDED].
31400 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31401 [__USE_XOPEN_EXTENDED].
31402 (SA_RESTART): Likewise.
31403 (SA_NODEFER): Likewise. Define directly rather than as alias.
31404 (SA_RESETHAND): Likewise.
31405 (SA_INTERRUPT): Define only for [__USE_MISC].
31406 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31407 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31408 [__USE_MISC].
31409 (SA_STACK): Define only for [__USE_MISC].
31410 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31411 (struct sigaction): Define sa_handler and sa_sigaction using union
31412 also for [__USE_XOPEN_EXTENDED].
31413 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31414 [__USE_XOPEN_EXTENDED].
31415 (SA_RESTART): Likewise.
31416 (SA_NODEFER): Likewise.
31417 (SA_RESETHAND): Likewise.
31418 (SA_NOPTRACE): Define only for [__USE_MISC].
31419
31420 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31421 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31422 (struct catalog_info): Likewise.
31423 * inet/htontest.c (lo): Likewise.
31424 (foo): Likewise.
31425 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31426 * inet/inet_net.c (inet_network): Likewise.
31427 * inet/inet_netof.c (inet_netof): Likewise.
31428 * inet/rcmd.c (__ivaliduser): Likewise.
31429 (iruserok): Likewise.
31430 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31431 * locale/programs/locale-spec.c (locale_special): Likewise.
31432 * nis/nis_findserv.c (struct findserv_req): Likewise.
31433 (__nis_findfastest_with_timeout): Likewise.
31434 * nss/test-netdb.c (test_network): Likewise.
31435 * resolv/inet_neta.c (inet_neta): Likewise.
31436 * resolv/ns_date.c (ns_datetosecs): Likewise.
31437 (SECS_PER_DAY): Likewise.
31438 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31439 Likewise.
31440 * resolv/res_comp.c (__putlong): Likewise.
31441 (__putshort): Likewise.
31442 (_getlong): Likewise.
31443 (_getshort): Likewise.
31444 * resolv/res_debug.c (p_time): Likewise.
31445 (precsize_ntoa): Likewise.
31446 (precsize_aton): Likewise.
31447 (latlon2ul): Likewise.
31448 (loc_aton): Likewise.
31449 (loc_ntoa): Likewise.
31450 * resolv/res_hconf.c (struct netaddr): Likewise.
31451 (_res_hconf_reorder_addrs): Likewise.
31452 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31453 (clnttcp_control): Likewise.
31454 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31455 (clntudp_control): Likewise.
31456 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31457 (clntunix_control): Likewise.
31458 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31459 * sunrpc/rpc/auth.h (union des_block): Likewise.
31460 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31461 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31462 (xdrrec_create): Likewise.
31463 (xdrrec_endofrecord): Likewise.
31464 (flush_out): Likewise.
31465 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31466 (xdrstdio_putlong): Likewise.
31467 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31468 Likewise.
31469
31470 * misc/sys/cdefs.h (__long_double_t): Remove.
31471 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31472 instead of __long_double_t,
31473 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31474
31475 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31476
31477 * benchtests/scripts/compare_strings.py: Avoid display error when
31478 running on a text terminal.
31479
31480 * benchtests/scripts/compare_strings.py (main): Add an
31481 optional -base option.
31482 (process_results): New argument base_func.
31483
31484 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31485 hardcoding memcpy.
31486 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31487 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31488
31489 2017-08-07 Andreas Schwab <schwab@suse.de>
31490
31491 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31492 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31493 * intl/Makefile ($(objpfx)tst-gettext.out)
31494 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31495 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31496 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31497 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31498 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31499 * posix/Makefile ($(objpfx)globtest.out)
31500 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31501 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31502 ($(objpfx)tst-printf.out): Likewise.
31503 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31504 ($(objpfx)tst-setcontext3.out): Likewise.
31505
31506 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31507
31508 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31509 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31510 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31511 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31512 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31513 and mptan-fma.
31514 (CFLAGS-doasin-fma.c): New.
31515 (CFLAGS-dosincos-fma.c): Likewise.
31516 (CFLAGS-e_asin-fma.c): Likewise.
31517 (CFLAGS-e_atan2-fma.c): Likewise.
31518 (CFLAGS-e_exp-fma.c): Likewise.
31519 (CFLAGS-e_log-fma.c): Likewise.
31520 (CFLAGS-e_pow-fma.c): Likewise.
31521 (CFLAGS-halfulp-fma.c): Likewise.
31522 (CFLAGS-mpa-fma.c): Likewise.
31523 (CFLAGS-mpatan-fma.c): Likewise.
31524 (CFLAGS-mpatan2-fma.c): Likewise.
31525 (CFLAGS-mpexp-fma.c): Likewise.
31526 (CFLAGS-mplog-fma.c): Likewise.
31527 (CFLAGS-mpsqrt-fma.c): Likewise.
31528 (CFLAGS-mptan-fma.c): Likewise.
31529 (CFLAGS-s_atan-fma.c): Likewise.
31530 (CFLAGS-sincos32-fma.c): Likewise.
31531 (CFLAGS-slowexp-fma.c): Likewise.
31532 (CFLAGS-slowpow-fma.c): Likewise.
31533 (CFLAGS-s_sin-fma.c): Likewise.
31534 (CFLAGS-s_tan-fma.c): Likewise.
31535 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31536 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31537 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31538 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31540 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31542 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31549 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31556 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31557 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31558 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31559 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31560 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31561 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31562 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31563 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31564 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31565 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31566
31567 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31568
31569 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31570 (min_of_type_f): New macro.
31571 (min_of_type_): Likewise.
31572 (min_of_type_l): Likewise.
31573 (min_of_type_f128): Likewise.
31574 (min_of_type): Define using __MATH_TG and taking an expression
31575 argument.
31576 (math_check_force_underflow): Pass expression instead of type to
31577 min_of_type.
31578 (math_check_force_underflow_nonneg): Likewise.
31579
31580 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31581
31582 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31583 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31584 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31585
31586 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31587
31588 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31589 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31590 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31591 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31592 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31593 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31594 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31595 memmove_chk-nonshared and memset_chk-nonshared
31596 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31597 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31598 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31600 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31601 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31602 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31603 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31604 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31605 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31606 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31607 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31609 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31610 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31611 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31612 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31613 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31615 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31617 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31618 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31619 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31621 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31623 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31624 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31625 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31626 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31628 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31629 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31630 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31632 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31633 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31634 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31635 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31636 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31638 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31639 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31640 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31641 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31642 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31643 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31646 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31648 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31649 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31650 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31651 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31652 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31653 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31654 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31655 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31656 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31657 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31658 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31659 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31660 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31661 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31662 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31663 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31664 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31665 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31666 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31667 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31668 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31669 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31670 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31671 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31672 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31673 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31674 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31675 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31676 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31677 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31680 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31682 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31688 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31690 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31692 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31694 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31695 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31696 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31697 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31698 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31699 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31700 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31701 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31702 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31703 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31704
31705 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31706
31707 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31708 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31709 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31710 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31711 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31712 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31713 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31714 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31715 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31716 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31717 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31718 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31719 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31720 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31721 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31722 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31723 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31724 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31725 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31726 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31727 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31728 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31756 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31759 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31761 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31764 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31766 ...
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31768 Don't include <sysdep.h> nor <init-arch.h>.
31769 (_ZGVbN2v_cos): Removed.
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31771 ...
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31773 Don't include <sysdep.h> nor <init-arch.h>.
31774 (_ZGVdN4v_cos): Removed.
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31776 ...
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31778 Don't include <sysdep.h> nor <init-arch.h>.
31779 (_ZGVeN8v_cos): Removed.
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31781 ...
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31783 Don't include <sysdep.h> nor <init-arch.h>.
31784 (_ZGVbN2v_exp): Removed.
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31786 ...
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31788 Don't include <sysdep.h> nor <init-arch.h>.
31789 (_ZGVdN4v_exp): Removed.
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31791 ...
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31793 Don't include <sysdep.h> nor <init-arch.h>.
31794 (_ZGVeN8v_exp): Removed.
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31796 ...
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31798 Don't include <sysdep.h> nor <init-arch.h>.
31799 (_ZGVbN2v_log): Removed.
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31801 ...
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31803 Don't include <sysdep.h> nor <init-arch.h>.
31804 (_ZGVdN4v_log): Removed.
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31806 ...
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31808 Don't include <sysdep.h> nor <init-arch.h>.
31809 (_ZGVeN8v_log): Removed.
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31811 ...
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31813 Don't include <sysdep.h> nor <init-arch.h>.
31814 (_ZGVbN2vv_pow): Removed.
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31816 ...
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31818 Don't include <sysdep.h> nor <init-arch.h>.
31819 (_ZGVdN4vv_pow): Removed.
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31821 ...
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31823 Don't include <sysdep.h> nor <init-arch.h>.
31824 (_ZGVeN8vv_pow): Removed.
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31826 ...
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31828 Don't include <sysdep.h> nor <init-arch.h>.
31829 (_ZGVbN2v_sin): Removed.
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31831 ...
31832 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31833 Don't include <sysdep.h> nor <init-arch.h>.
31834 (_ZGVbN4v_sin): Removed.
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31836 ...
31837 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31838 Don't include <sysdep.h> nor <init-arch.h>.
31839 (_ZGVbN8v_sin): Removed.
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31841 ...
31842 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31843 Don't include <sysdep.h> nor <init-arch.h>.
31844 (_ZGVbN2vvv_sincos): Removed.
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31846 ...
31847 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31848 Don't include <sysdep.h> nor <init-arch.h>.
31849 (_ZGVdN4vvv_sincos): Removed.
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31851 ...
31852 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31853 Don't include <sysdep.h> nor <init-arch.h>.
31854 (_ZGVeN8vvv_sincos): Removed.
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31856 ...
31857 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31858 Don't include <sysdep.h> nor <init-arch.h>.
31859 (_ZGVeN16v_cosf): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31861 ...
31862 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31863 Don't include <sysdep.h> nor <init-arch.h>.
31864 (_ZGVbN4v_cosf): Removed.
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31866 ...
31867 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31868 Don't include <sysdep.h> nor <init-arch.h>.
31869 (_ZGVdN8v_cosf): Removed.
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31871 ...
31872 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31873 Don't include <sysdep.h> nor <init-arch.h>.
31874 (_ZGVeN16v_expf): Removed.
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31876 ...
31877 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31878 Don't include <sysdep.h> nor <init-arch.h>.
31879 (_ZGVbN4v_expf): Removed.
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31881 ...
31882 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31883 Don't include <sysdep.h> nor <init-arch.h>.
31884 (_ZGVdN8v_expf): Removed.
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31886 ...
31887 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31888 Don't include <sysdep.h> nor <init-arch.h>.
31889 (_ZGVeN16v_logf): Removed.
31890 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31891 ...
31892 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31893 Don't include <sysdep.h> nor <init-arch.h>.
31894 (_ZGVbN4v_logf): Removed.
31895 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31896 ...
31897 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31898 Don't include <sysdep.h> nor <init-arch.h>.
31899 (_ZGVdN8v_logf): Removed.
31900 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31901 ...
31902 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31903 Don't include <sysdep.h> nor <init-arch.h>.
31904 (_ZGVeN16vv_powf): Removed.
31905 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31906 ...
31907 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31908 Don't include <sysdep.h> nor <init-arch.h>.
31909 (_ZGVbN4vv_powf): Removed.
31910 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31911 ...
31912 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31913 Don't include <sysdep.h> nor <init-arch.h>.
31914 (_ZGVdN8vv_powf): Removed.
31915 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31916 ...
31917 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31918 Don't include <sysdep.h> nor <init-arch.h>.
31919 (_ZGVeN16vvv_sincosf): Removed.
31920 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31921 ...
31922 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31923 Don't include <sysdep.h> nor <init-arch.h>.
31924 (_ZGVbN4vvv_sincosf): Removed.
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31926 ...
31927 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31928 Don't include <sysdep.h> nor <init-arch.h>.
31929 (_ZGVdN8vvv_sincosf): Removed.
31930 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31931 ...
31932 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31933 Don't include <sysdep.h> nor <init-arch.h>.
31934 (_ZGVeN16v_sinf): Removed.
31935 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31936 ...
31937 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31938 Don't include <sysdep.h> nor <init-arch.h>.
31939 (_ZGVbN4v_sinf): Removed.
31940 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31941 ...
31942 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31943 Don't include <sysdep.h> nor <init-arch.h>.
31944 (_ZGVdN8v_sinf): Removed.
31945
31946 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31947
31948 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31949 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31950 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31951 s_rint-sse4_1 and s_rintf-sse4_1.
31952 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31953 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31954 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31955 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31956 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31957 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31958 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31959 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31960 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31961 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31962 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31963 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31964 (__ceil): Removed.
31965 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31966 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31967 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31968 (__ceilf): Removed.
31969 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31970 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31971 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31972 (__floor): Removed.
31973 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31974 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31975 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31976 (__floorf): Removed.
31977 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31978 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31979 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31980 (__nearbyint): Removed.
31981 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31982 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31983 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31984 (__nearbyintf): Removed.
31985 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31986 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31987 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31988 (__rint): Removed.
31989 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31990 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31991 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31992 (__rintf): Removed.
31993
31994 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31995
31996 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31997 SHARED. Avoid dynamic relocation against main in static PIE.
31998
31999 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32000
32001 [BZ #21815]
32002 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32003 (LDFLAGS-tst-prelink): Likewise.
32004
32005 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32006
32007 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32008 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32009 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32010 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32011 (INTERNAL_SYSCALL_NCS): Likewise.
32012 (LOADARGS_1): Likewise.
32013 (LOADARGS_5): Likewise.
32014 (RESTOREARGS_1): Likewise.
32015 (RESTOREARGS_5): Likewise.
32016
32017 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32018
32019 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32020 (MEMPCPY_SYMBOL): Likewise.
32021 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32022 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32023 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32024 in libc.a.
32025 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32026 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32027 Likewise.
32028 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32029 (__hidden_ver1): Don't use in libc.a.
32030 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32031 (__mempcpy): Don't create a weak alias in libc.a.
32032 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32033 libc.a.
32034 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32035 (__hidden_ver1): Don't use in libc.a.
32036
32037 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32038
32039 * config.make.in (have-insert): New.
32040 * configure.ac (libc_cv_insert): New. Set to yes if linker
32041 supports INSERT in linker script.
32042 (AC_SUBST(libc_cv_insert): New.
32043 * configure: Regenerated.
32044 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32045 if $(have-insert) == yes.
32046
32047 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32048
32049 * elf/Makefile (tests): Add vismain only if
32050 $(have-protected-data) == yes.
32051 (tests-pie): Likewise.
32052
32053 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32054
32055 [BZ #21871]
32056 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32057 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32058
32059 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32060
32061 [BZ #21790]
32062 * sysdeps/i386/i586/memset.S
32063 (__memset_zero_constant_len_parameter): Removed.
32064 * sysdeps/i386/i686/memset.S
32065 (__memset_zero_constant_len_parameter): Likewise.
32066 * sysdeps/i386/i686/multiarch/memset_chk.S
32067 (__memset_zero_constant_len_parameter): Likewise.
32068 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32069 Likewise.
32070
32071 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32072
32073 * stdlib/getentropy.c (getentropy): Change return type to int.
32074
32075 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32076
32077 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32078
32079 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32080
32081 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32082 u_intN_t.
32083 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32084 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32085 Likewise.
32086 (ieee_float_shape_type): Likewise.
32087 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32088 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32089 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32090 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32091 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32092 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32093 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32094 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32095 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32096 Likewise.
32097 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32098 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32099 (__ieee754_yn): Likewise.
32100 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32101 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32102 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32103 Likewise.
32104 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32105 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32106 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32107 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32108 (__erfc): Likewise.
32109 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32110 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32111 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32112 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32113 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32114 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32115 Likewise.
32116 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32117 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32118 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32119 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32120 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32121 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32122 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32123 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32124 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32125 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32126 (__issignaling): Likewise.
32127 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32128 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32129 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32130 Likewise.
32131 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32132 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32133 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32134 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32135 Likewise.
32136 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32137 Likewise.
32138 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32139 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32140 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32141 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32142 (__erfcf): Likewise.
32143 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32144 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32145 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32146 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32147 Likewise.
32148 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32149 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32150 Likewise.
32151 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32152 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32153 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32154 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32155 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32156 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32157 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32158 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32159 Likewise.
32160 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32161 Likewise.
32162 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32163 Likewise.
32164 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32165 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32166 Likewise.
32167 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32168 Likewise.
32169 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32170 (__ieee754_ynl): Likewise.
32171 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32172 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32173 Likewise.
32174 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32175 Likewise.
32176 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32177 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32178 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32179 Likewise.
32180 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32181 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32182 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32183 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32184 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32185 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32186 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32187 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32188 Likewise.
32189 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32190 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32191 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32192 Likewise.
32193 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32194 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32195 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32196 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32197 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32198 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32199 Likewise.
32200 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32201 Likewise.
32202 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32203 Likewise.
32204 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32205 Likewise.
32206 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32207 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32208 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32209 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32210 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32211 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32212 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32213 Likewise.
32214 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32215 Likewise.
32216 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32217 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32218 Likewise.
32219 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32220 (__ieee754_remainderl): Likewise.
32221 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32222 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32223 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32224 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32225 Likewise.
32226 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32227 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32228 Likewise.
32229 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32230 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32231 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32232 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32233 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32234 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32235 Likewise.
32236 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32237 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32238 (__ieee754_y0l): Likewise.
32239 (pzero): Likewise.
32240 (qzero): Likewise.
32241 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32242 (__ieee754_y1l): Likewise.
32243 (pone): Likewise.
32244 (qone): Likewise.
32245 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32246 (__ieee754_ynl): Likewise.
32247 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32248 (__ieee754_lgammal_r): Likewise.
32249 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32250 Likewise.
32251 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32252 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32253 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32254 (__erfcl): Likewise.
32255 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32256 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32257 Likewise.
32258 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32259 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32260 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32261 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32262 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32263 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32264 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32265 Likewise.
32266 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32267 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32268 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32269 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32270 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32271 Likewise.
32272 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32273 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32274 Likewise.
32275 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32276 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32277 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32278 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32279 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32280
32281 2017-08-03 Florian Weimer <fweimer@redhat.com>
32282
32283 [BZ #21885]
32284 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32285 on memory allocation failure.
32286
32287 2017-08-03 Alan Modra <amodra@gmail.com>
32288
32289 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32290 tst-tlsopt-powerpc.c with function name change and no test harness.
32291 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32292 Call tls_get_addr_opt_test.
32293 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32294 (modules-names): Add mod-tlsopt-powerpc.
32295 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32296 (tst-tlsopt-powerpc): Depend on .so.
32297 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32298 define. Expand use in TLS_GD and TLS_LD.
32299
32300 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32301
32302 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32303 function.
32304 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32305
32306 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32307
32308 [BZ #21686]
32309 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32310 comparing size with that of double.
32311 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32312 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32313 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32314 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32315 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32316 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32317 unsigned __int128 types.
32318
32319 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32320
32321 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32322 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32323 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32324 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32325 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32326
32327 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32328
32329 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32330
32331 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32332
32333 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32334 of SHARED.
32335 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32336 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32337 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32338 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32339 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32340 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32341 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32342
32343 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32344
32345 [BZ #21685]
32346 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32347 bit-field expressions passed to sizeof or typeof.
32348 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32349 (__TGMATH_F128): Likewise.
32350 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32351 (__TGMATH_CF128): Likewise.
32352 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32353 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32354 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32355 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32356 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32357 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32358 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32359 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32360 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32361 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32362 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32363 (__TGMATH_UNARY_IMAG): Likewise.
32364 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32365 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32366 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32367 type.
32368 (define_vars_for_type): Handle bit_field type specially.
32369 (Tests.__init__): Declare structure with bit-field element.
32370
32371 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32372
32373 [BZ #21791]
32374 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32375 (MEMCPY_CHK): Define only if SHARED is defined.
32376 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32377 Likewise.
32378 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32379 Likewise.
32380
32381 See ChangeLog.18 for earlier changes.