]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
resolv: Remove debugging code from compat-gethnamaddr.c
[thirdparty/glibc.git] / ChangeLog
1 2019-02-18 Florian Weimer <fweimer@redhat.com>
2
3 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
4 (getanswer): Do not call Dprintf.
5 (res_gethostbyname2_context): Likewise.
6 (res_gethostbyaddr_context): Likewise.
7
8 2019-02-18 Florian Weimer <fweimer@redhat.com>
9
10 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
11 declaration.
12 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
13 Remove definitions.
14 * libio/stdfiles.c: Update comment.
15 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
16 set _IO_stdin, _IO_stdout, _IO_stderr.
17 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
18 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
19 inline function.
20 (_IO_deallocate_file): New inline function.
21 * libio/iolibio.h (_IO_vprintf): Remove definition.
22 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
23 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
24 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
25 _IO_legacy_file.
26 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
27 __builtin_expect. Use _IO_legacy_file.
28
29 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
30
31 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
32 Initialize ctid with a known value and remove update of ctid
33 after clone.
34 (wait_tid): Adjust arguments and call futex_wait with ctid_val
35 as assumed current value of ctid_ptr.
36
37 2019-02-15 Florian Weimer <fweimer@redhat.com>
38
39 Check that non-sysdeps headers have wrapper headers.
40 * scripts/check-wrapper-headers.py: New file.
41 * Makefile (tests-special): Add check-wrapper-headers.out.
42 (check-wrapper-headers.out): New target.
43 * Rules (tests-special): Add check-wrapper-headers.out.
44 (check-wrapper-headers.out): New target.
45
46 2019-02-15 Florian Weimer <fweimer@redhat.com>
47
48 Add missing header wrappers under include/.
49 * include/ar.h: New file.
50 * include/bits/mqueue2.h: Likewise.
51 * include/bits/stdio.h: Likewise.
52 * include/bits/stdio2.h: Likewise.
53 * include/fstab.h: Likewise.
54 * include/fts.h: Likewise.
55 * include/lastlog.h: Likewise.
56 * include/netinet/icmp6.h: Likewise.
57 * include/netinet/igmp.h: Likewise.
58 * include/netinet/ip6.h: Likewise.
59 * include/re_comp.h: Likewise.
60 * include/regexp.h: Likewise.
61 * include/rpcsvc/bootparam.h: Likewise.
62 * include/rpcsvc/yp_prot.h: Likewise.
63 * include/sys/random.h: Likewise.
64 * include/sys/stropts.h: Likewise.
65 * include/sys/ttychars.h: Likewise.
66 * include/sys/vfs.h: Likewise.
67 * include/wait.h: Likewise.
68
69 2019-02-15 Florian Weimer <fweimer@redhat.com>
70
71 * nptl_db/proc_service.h: Move to ...
72 * sysdeps/nptl/proc_service.h: ... here.
73 * nptl_db/thread_db.h: Move to ...
74 * sysdeps/nptl/thread_db.h: ... here.
75 * nptl/descr.h: Include <thread_db.h>.
76
77 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
78
79 * io/Makefile (tests): Add tst-lockf.
80 * io/lockf.c (lockf): Use __fcntl and only define for
81 !__OFF_T_MATCHES_OFF64_T.
82 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
83 __OFF_T_MATCHES_OFF64_T case.
84 * io/tst-lockf.c: New file.
85 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
86 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
87 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
88 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
89 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
90 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
91 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
92 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
93 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
94
95 2019-02-15 Florian Weimer <fweimer@redhat.com>
96
97 [BZ #24211]
98 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
99 pd->result after the thread descriptor has been freed.
100
101 2019-02-15 Joseph Myers <joseph@codesourcery.com>
102
103 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
104 from function return type.
105
106 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
107
108 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 * scripts/test_printers_common.py: Set TERM to a known harmless
111 value.
112
113 2019-02-14 Joseph Myers <joseph@codesourcery.com>
114
115 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
116 (xdr_u_int): Likewise.
117 (xdr_enum): Likewise.
118 (xdr_bytes): Reword fall-through comment.
119 (xdr_string): Likewise.
120
121 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
122
123 [BZ #2421]
124 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
125 (tests): Add tst-join8 tst-join9.
126 * nptl/lll_timedwait_tid.c: Remove file.
127 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
128 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
129 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
130 * nptl/pthread_join_common.c (timedwait_tid): New function.
131 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
132 is set.
133 * nptl/tst-join5.c (thread_join): New function.
134 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
135 check.
136 * nptl/tst-join8.c: New file.
137 * nptl/tst-join9.c: Likewise.
138 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
139 lll_futex_timed_wait_cancel): Add generic macros.
140 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
141 Remove definitions.
142 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
143 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
144 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
145 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
146 Remove function.
147 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
148 Likewise.
149 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
150 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
151 (lll_futex_timed_wait_cancel): New macro.
152
153 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
154
155 * benchtests/Makefile: Add malloc-simple benchmark.
156 * benchtests/bench-malloc-simple.c: New benchmark.
157
158 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
159
160 * benchtests/bench-memmove.c (do_one_test): Remove unused
161 ORIG_SRC.
162 (do_test): Adjust.
163 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
164 ORIG_SRC.
165 (do_test): Adjust.
166
167 2019-01-13 Jim Wilson <jimw@sifive.com>
168
169 [BZ #24040]
170 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
171 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
172 (func): New.
173 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
174 call func directly.
175 * nptl/Makefile (tests): Add tst-unwind-thread.
176 (CFLAGS-tst-unwind-thread.c): Define.
177 * nptl/tst-unwind-thread.c: New file.
178 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
179 as undefined.
180
181 2019-02-13 Joseph Myers <joseph@codesourcery.com>
182
183 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
184 comment wording.
185 * nis/nis_call.c (__do_niscall3): Likewise.
186
187 * catgets/gencat.c (normalize_line): Use braces around empty
188 'else' body.
189 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
190 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
191 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
192 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
193 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
194 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
195 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
196 definition.
197
198 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
199 execlp returns.
200
201 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
202
203 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
204 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
205 * benchtests/bench-strchr.c (stupid_strchr): Remove.
206 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
207 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
208 * benchtests/bench-strlen.c (builtin_strlen): Remove.
209 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
210 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
211 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
212 * benchtests/bench-strspn.c (stupid_strspn): Remove.
213 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
214 * benchtests/bench-bcopy.c: Delete file.
215 * benchtests/bench-bzero.c: Likewise.
216 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
217 (simple_memccpy): Remove.
218 (generic_memccpy): Add function.
219 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
220 * benchtests/bench-memmove.c (simple_bcopy): Remove.
221 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
222 (generic_mempcpy): Add new function.
223 * benchtests/bench-memset.c (simple_bzero): Remove.
224 (builtin_bzero): Remove.
225 (builtin_memset): Remove.
226 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
227 (generic_rawmemchr): Add new function.
228
229 2019-02-12 Florian Weimer <fweimer@redhat.com>
230
231 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
232
233 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
234
235 [BZ #24122]
236 * elf/Makefile (tests): Add tst-audit13.
237 (modules-names): Add tst-audit13mod1.
238 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
239 rule.
240 * elf/tst-audit13.c: New file.
241 * elf/tst-audit13mod1.c: Likewise.
242
243 2019-02-12 Florian Weimer <fweimer@redhat.com>
244
245 [BZ #24122]
246 * elf/rtld.c (unload_audit_module): New function.
247 (report_audit_module_load_error): Likewise.
248 (load_audit_module): Likewise. Extracted from dl_main. Call
249 _dl_close if the laversion symbol cannot be found. Use early
250 returns for error handling. Add malloc error check. Check for a
251 zero return value from la_version. Remove spurious comment about
252 static TLS initialization. Remove useless casts.
253 (notify_audit_modules_of_loaded_object): New function. Extracted
254 from dl_main.
255 (load_audit_module): Likewise.
256 (dl_main): Call load_audit_modules.
257
258 2019-02-12 Joseph Myers <joseph@codesourcery.com>
259
260 * elf/dl-exception.c (_dl_exception_create_format): Add
261 fall-through comments.
262 * elf/ldconfig.c (parse_conf_include): Likewise.
263 * elf/rtld.c (print_statistics): Likewise.
264 * locale/programs/charmap.c (parse_charmap): Likewise.
265 * misc/mntent_r.c (__getmntent_r): Likewise.
266 * posix/wordexp.c (parse_arith): Likewise.
267 (parse_backtick): Likewise.
268 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
269 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
270 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
271
272 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
273
274 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
275 Use float instead of double.
276
277 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
278
279 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
280
281 2019-02-08 Joseph Myers <joseph@codesourcery.com>
282
283 * sysdeps/powerpc/bits/mathinline.h: Remove.
284
285 2019-02-08 Florian Weimer <fweimer@redhat.com>
286
287 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
288 * math/bits/math-finite.h: Move to ...
289 * bits/math-finite.h: ... here.
290
291 2019-02-08 Florian Weimer <fweimer@redhat.com>
292
293 * sysdeps/generic/bits/unistd_ext.h: Move to ...
294 * bits/unistd_ext.h: here.
295
296 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
297
298 [BZ #21915]
299 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
300 * nss/tst-nss-files-hosts-long.c: New file.
301 * nss/tst-nss-files-hosts-long.root: New directory.
302 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
303 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
304
305 2019-02-08 Florian Weimer <fweimer@redhat.com>
306
307 * include/bits/unistd_ext.h: Remove file.
308 * posix/bits/unistd_ext.h: Move to ...
309 * sysdeps/generic/bits/unistd_ext.h: ... here.
310
311 2019-02-08 Florian Weimer <fweimer@redhat.com>
312
313 * include/bits/unistd_ext.h: New file.
314
315 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
316
317 * time/tst-strftime2.c: Use array_length macros instead of magic
318 numbers.
319
320 2019-02-08 Florian Weimer <fweimer@redhat.com>
321
322 [BZ #24161]
323 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
324 argument.
325 * nptl/register-atfork.c (__run_fork_handlers): Only perform
326 locking if the new do_locking argument is true.
327 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
328 __run_fork_handlers.
329
330 2019-02-08 Florian Weimer <fweimer@redhat.com>
331
332 [BZ #6399]
333 Linux: Add gettid system call wrapper.
334 * posix/Makefile (headers): Add bits/unistd_ext.h.
335 * posix/bits/unistd_ext.h: New file.
336 * posix/unistd.h: Include it.
337 * manual/process.texi (Process Identification): Document gettid.
338 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
339 tst-gettid, tst-gettid-kill.
340 (tst-gettid): Link with $(shared-thread-library).
341 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
342 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
343 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
344 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
345 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
346 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
347 Add gettid.
348 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
349 Likewise.
350 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
351 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
352 Likewise.
353 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
354 Likewise.
355 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
356 Likewise.
357 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
358 Likewise.
359 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
360 Likewise.
361 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
362 Likewise.
363 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
364 Likewise.
365 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
366 (GLIBC_2.30): Likewise.
367 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
368 (GLIBC_2.30): Likewise.
369 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
370 (GLIBC_2.30): Likewise.
371 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
372 (GLIBC_2.30): Likewise.
373 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
374 Likewise.
375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
376 (GLIBC_2.30): Likewise.
377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
378 (GLIBC_2.30): Likewise.
379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
380 (GLIBC_2.30): Likewise.
381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
382 (GLIBC_2.30): Likewise.
383 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
384 Likewise.
385 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
386 Likewise.
387 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
388 Likewise.
389 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
390 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
391 Likewise.
392 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
393 Likewise.
394 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
395 Likewise.
396 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
397 Likewise.
398 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
399
400 2019-02-07 Florian Weimer <fweimer@redhat.com>
401
402 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
403 compatibility symbols.
404
405 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
406
407 [BZ #24180]
408 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
409 Add compiler barriers and comments.
410
411 2019-02-07 Florian Weimer <fweimer@redhat.com>
412
413 * include/array_length.h (array_length): Do not use a statement
414 expression and _Static_assert, so that array_length can be used at
415 file scope and as a constant expression.
416
417 2019-02-07 Florian Weimer <fweimer@redhat.com>
418
419 * support/xdlfcn.h (xdlmopen): Declare.
420 * support/xdlmopen.c: New file.
421 * support/Makefile (libsupport-routines): Add xdlmopen.
422
423 2019-02-06 Joseph Myers <joseph@codesourcery.com>
424
425 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
426 before return type, without separate inline.
427 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
428 * elf/dl-tunables.h (tunable_is_name): Likewise.
429 * malloc/malloc.c (do_set_trim_threshold): Likewise.
430 (do_set_top_pad): Likewise.
431 (do_set_mmap_threshold): Likewise.
432 (do_set_mmaps_max): Likewise.
433 (do_set_mallopt_check): Likewise.
434 (do_set_perturb_byte): Likewise.
435 (do_set_arena_test): Likewise.
436 (do_set_arena_max): Likewise.
437 (do_set_tcache_max): Likewise.
438 (do_set_tcache_count): Likewise.
439 (do_set_tcache_unsorted_limit): Likewise.
440 * nis/nis_subr.c (count_dots): Likewise.
441 * nptl/allocatestack.c (advise_stack_range): Likewise.
442 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
443 (do_sin): Likewise.
444 (reduce_sincos): Likewise.
445 (do_sincos): Likewise.
446 * sysdeps/unix/sysv/linux/x86/elision-conf.c
447 (do_set_elision_enable): Likewise.
448 (TUNABLE_CALLBACK_FNDECL): Likewise.
449
450 2019-02-06 Florian Weimer <fweimer@redhat.com>
451
452 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
453 (xdlsym): Use dlerror to detect a NULL symbol.
454
455 2019-02-06 Florian Weimer <fweimer@redhat.com>
456
457 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
458 <stap-probe.h>.
459 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
460
461 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
462
463 * libio/tst-bz24153.c (wide): Use wide char format specifier.
464
465 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
466
467 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
468 __wmemcmp and weak alias to wmemcmp.
469
470 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
471
472 [BZ #23403]
473 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
474 TLS_TCB_AT_TP tls variant.
475 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
476 Add alignment checks.
477 * support/Makefile (libsupport-routines): Add xposix_memalign and
478 xpthread_setstack.
479 * support/support.h: Add xposix_memalign.
480 * support/xthread.h: Add xpthread_attr_setstack.
481 * support/xposix_memalign.c: New File.
482 * support/xpthread_attr_setstack.c: Likewise.
483
484 2019-02-05 Florian Weimer <fweimer@redhat.com>
485
486 [BZ #24164]
487 arm: Use "nr" constraint for Systemtap probes, to avoid the
488 compiler using memory operands for constants, due to the "o"
489 alternative in the default "nor" constraint.
490 * include/stap-probe.h [USE_STAP_PROBE]: Include
491 <stap-probe-machine.h>
492 * sysdeps/generic/stap-probe-machine.h: New file.
493 * sysdeps/arm/stap-probe-machine.h: Likewise.
494
495 2019-02-04 Joseph Myers <joseph@codesourcery.com>
496
497 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
498 with 0, not tcache->entries[tc_idx].
499
500 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
501 once.
502
503 2019-02-04 Andreas Schwab <schwab@suse.de>
504
505 [BZ #16976]
506 [BZ #17396]
507 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
508 looking up collating elements match against (wide) character
509 sequence instead of name. Correct alignment adjustment.
510 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
511 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
512 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
513 (LOCALES): Add cs_CZ.ISO-8859-2.
514 * posix/tst-fnmatch4.c: New file.
515 * posix/tst-fnmatch5.c: New file.
516 * include/wchar.h (__wmemcmp): Declare.
517 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
518 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
519 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
520 * sysdeps/s390/wmemcmp.c: Likewise.
521
522 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
523
524 [BZ #24155]
525 CVE-2019-7309
526 * NEWS: Updated for CVE-2019-7309.
527 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
528 upper 32 bits of RDX register for x32. Use unsigned Jcc
529 instructions, instead of signed.
530 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
531 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
532
533 2019-02-04 Florian Weimer <fweimer@redhat.com>
534
535 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
536 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
537 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
538 Likewise.
539 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
540 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
541 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
542 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
543 Likewise.
544 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
545 Likewise.
546 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
547 Likewise.
548 (posix_spawn_file_actions_addopen): Likewise.
549 (posix_spawn_file_actions_addclose): Likewise.
550 (posix_spawn_file_actions_adddup2): Likewise.
551 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
552 qualifiers.
553 (posix_spawn_file_actions_addfchdir_np): Likewise.
554
555 2019-02-04 David Newall <glibc@davidnewall.com>
556
557 elf: Implement --preload option for the dynamic linker.
558 * elf/rtld.c (preloadarg): New variable.
559 (handle_preload_list): Pass through “where” argument to
560 do_preload.
561 (dl_main): Handle "--preload" and add second call to
562 handle_preload_list.
563 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
564 (tst-rtld-preload-OBJS): Set variable.
565 (tst-rtld-preload.out): New target.
566 * elf/tst-rtld-preload.sh: New file.
567
568 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
569
570 * Makefile (testrun.sh): Exit in case of incorrect argument.
571
572 2019-02-04 Florian Weimer <fweimer@redhat.com>
573
574 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
575 alignment gaps.
576
577 2019-02-03 Florian Weimer <fweimer@redhat.com>
578
579 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
580 implicit overflow checks.
581
582 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
583
584 * stdlib/isomac.c: Include <unistd.h>.
585
586 2019-02-03 Florian Weimer <fweimer@redhat.com>
587
588 * include/time.h (__tzfile_default): Use int, not long int, for
589 the GMT offsets.
590 * time/tzfile.c (struct ttinfo): Change type of the offset member
591 to int.
592 (__tzfile_read): Remove useless cast.
593 (__tzfile_default): Adjust prototype.
594 * time/tzset.c (tz_rule): Change type of the offset member to int.
595 (parse_offset): Change the type of the sign variable to int.
596
597 2019-02-03 Florian Weimer <fweimer@redhat.com>
598
599 [BZ #24153]
600 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
601 * libio/getchar.c (getchar): Likewise.
602 * libio/getchar_u.c (getchar_unlocked): Likewise.
603 * libio/getwchar.c (getwchar): Likewise.
604 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
605 * libio/iogets.c (_IO_gets): Likewise.
606 * libio/vscanf.c (_IO_vscanf): Likewise.
607 * libio/vwscanf.c (__vwscanf): Likewise.
608 * libio/tst-bz24153.c: New file.
609 * libio/Makefile (tests): Add it.
610
611 2019-02-02 Florian Weimer <fweimer@redhat.com>
612
613 [BZ #14829]
614 * manual/resource.texi (Basic Scheduling Functions): Add
615 portability note. Change process to task throughout the section.
616 Remove incorrect comment about sched_yield as it affects
617 tasks/threads, not entire processes.
618 * sysdeps/unix/sysv/linux/bits/posix_opt.h
619 (_POSIX_PRIORITY_SCHEDULING): Update comment.
620
621 2019-02-01 Joseph Myers <joseph@codesourcery.com>
622
623 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
624 * configure: Regenerated.
625 * manual/install.texi (Tools for Compilation): Update minimum GCC
626 version.
627 * INSTALL: Regenerated.
628
629 2019-02-01 Florian Weimer <fweimer@redhat.com>
630
631 * support/support_test_compare_string.c
632 (support_test_compare_string): Use "string" in error message.
633 * support/tst-test_compare_string.c (do_test): Adjust.
634
635 2019-02-01 Florian Weimer <fweimer@redhat.com>
636
637 * support/support_format_address_family.c
638 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
639
640 2019-02-01 Florian Weimer <fweimer@redhat.com>
641
642 * manual/socket.texi (Internet Address Formats): Clarify the byte
643 order of struct sockaddr_in, struct sockaddr_in6. Document
644 sin6_flowinfo and sin6_scope_id.
645
646 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
647
648 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
649 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
650 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
651 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
652 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
653 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
654
655 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
656
657 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
658 [!MEMCHR](MEMCHR): Set to __memchr.
659 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
660 Add memchr_generic and memchr_nosimd.
661 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
662 (__libc_ifunc_impl_list): Add memchr ifuncs.
663 * sysdeps/aarch64/multiarch/memchr.c: New file.
664 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
665 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
666
667 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
668
669 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
670 Add memset_emag.
671 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
672 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
673 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
674 Add IS_EMAG check for ifunc dispatch.
675 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
676 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
677
678 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
679
680 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
681 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
682 Add emag.
683 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
684 New macro.
685
686 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
687
688 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
689
690 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
691
692 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
693 syscall-template file.
694
695 2019-01-31 Carlos O'Donell <carlos@redhat.com>
696 Torvald Riegel <triegel@redhat.com>
697 Rik Prohaska <prohaska7@gmail.com>
698
699 [BZ# 23844]
700 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
701 tst-rwlock-trywrlock-stall.
702 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
703 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
704 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
705 Set __wrphase_fute to 1 only if we started the write phase.
706 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
707 * nptl/tst-rwlock-trywrlock-stall.c: New file.
708 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
709 * support/xpthread_rwlock_destroy.c: New file.
710 * support/xthread.h: Declare xpthread_rwlock_destroy.
711
712 2019-02-01 Joseph Myers <joseph@codesourcery.com>
713
714 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
715 version to 4.0.2.
716
717 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
718
719 [BZ #24051]
720 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
721 * libio/fileops.c (_IO_new_file_underflow): Likewise
722 * libio/wfileops.c (_IO_wfile_underflow): Likewise
723 * libio/putchar.c (putchar): Likewise.
724 * libio/putchar_u.c (putchar_unlocked): Likewise.
725 * libio/putwchar.c (putchar): Likewise.
726 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
727 * libio/tst-bz24051.c: New test.
728 * libio/Makefile (tests): Add tst-bz24051
729
730 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
731
732 regex: fix read overrun [BZ #24114]
733 Problem found by AddressSanitizer, reported by Hongxu Chen in:
734 https://debbugs.gnu.org/34140
735 * posix/regexec.c (proceed_next_node):
736 Do not read past end of input buffer.
737
738 2019-01-31 Florian Weimer <fweimer@redhat.com>
739
740 [BZ #24059]
741 * nss/nss_files/files-alias.c (get_next_alias): Handle
742 continuation line without newline at the end.
743 * nss/tst-nss-files-alias-truncated.c: New file.
744 * nss/Makefile [$(build-shared)] (tests): Add
745 tst-nss-files-alias-truncated.
746 (tst-nss-files-alias-truncated): Link with libnss_files.so.
747 * support/namespace.h (struct support_chroot_configuration): Add
748 aliases member.
749 (struct support_chroot): Add path_aliases member.
750 * support/support_chroot.c (support_chroot_create): Handle
751 aliases.
752 (support_chroot_free): Free path_aliases.
753
754 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
755
756 * version.h (RELEASE): Set to "development".
757 (VERSION): Set to "2.29.9000".
758 * NEWS: Add section for 2.30.
759
760 * version.h (RELEASE): Set to "stable".
761 (VERSION): Set to "2.29".
762 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
763
764 * NEWS: Add the list of bugs fixed in 2.29.
765 * manual/contrib.texi: Update contributors list with some more
766 names.
767 * manual/install.texi: Update latest versions of packages
768 tested.
769 * INSTALL: Regenerated.
770
771 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
772
773 * po/be.po: Update translations.
774 * po/bg.po: Likewise.
775 * po/ca.po: Likewise.
776 * po/cs.po: Likewise.
777 * po/da.po: Likewise.
778 * po/de.po: Likewise.
779 * po/el.po: Likewise.
780 * po/eo.po: Likewise.
781 * po/es.po: Likewise.
782 * po/fi.po: Likewise.
783 * po/fr.po: Likewise.
784 * po/gl.po: Likewise.
785 * po/hr.po: Likewise.
786 * po/hu.po: Likewise.
787 * po/ia.po: Likewise.
788 * po/id.po: Likewise.
789 * po/it.po: Likewise.
790 * po/ja.po: Likewise.
791 * po/ko.po: Likewise.
792 * po/lt.po: Likewise.
793 * po/nb.po: Likewise.
794 * po/nl.po: Likewise.
795 * po/pl.po: Likewise.
796 * po/pt_BR.po: Likewise.
797 * po/ru.po: Likewise.
798 * po/rw.po: Likewise.
799 * po/sk.po: Likewise.
800 * po/sl.po: Likewise.
801 * po/sv.po: Likewise.
802 * po/tr.po: Likewise.
803 * po/uk.po: Likewise.
804 * po/vi.po: Likewise.
805 * po/zh_CN.po: Likewise.
806 * po/zh_TW.po: Likewise.
807
808 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
809
810 [BZ #24130]
811 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
812 of $f3 register on $y_is_neg path.
813
814 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
815
816 [BZ #24110]
817 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
818 sigaltstack.ss_flags.
819
820 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
821
822 [BZ #23758]
823 * manual/time.texi (strftime): Document "%Ey".
824 * time/strftime_l.c (__strftime_internal): Set the default width
825 padding with zero of "%Ey" to 2.
826
827 [BZ #24096]
828 * manual/time.texi (strftime): Document "%EC" and "%EY".
829 * time/Makefile (tests): Add tst-strftime2.
830 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
831 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
832 override padding for "%Ey".
833 If an optional flag ('_' or '-') is specified to "%EY", interpret the
834 "%Ey" in the subformat as if decorated with that flag.
835 * time/tst-strftime2.c: New file.
836
837 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
838
839 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
840 are not defined.
841
842 [BZ #24122]
843 * elf/Makefile (tests): Add tst-audit13.
844 (modules-names): Add tst-audit13mod1.
845 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
846 rule.
847 * elf/rtld.c (dl_main): Handle invalid audit module version.
848 * elf/tst-audit13.c: New file.
849 * elf/tst-audit13mod1.c: Likewise.
850
851 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
852
853 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
854 returned by __hurd_at_flags.
855 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
856 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
857 directly instead of __hurd_file_name_lookup.
858
859 2019-01-21 Joseph Myers <joseph@codesourcery.com>
860
861 * scripts/build-many-glibcs.py (Context.checkout): Default
862 binutils version to 2.32 branch.
863
864 2019-01-21 Florian Weimer <fweimer@redhat.com>
865
866 [BZ #20018]
867 CVE-2016-10739
868 resolv: Reject trailing characters in host names
869 * include/arpa/inet.h (__inet_aton_exact): Declare.
870 (inet_aton): Remove hidden prototype. No longer used internally.
871 * nscd/gai.c (__inet_aton): Do not define.
872 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
873 * nss/digits_dots.c (__inet_aton): Likewise.
874 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
875 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
876 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
877 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
878 (tst-resolv-trailing): Likewise.
879 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
880 libc.
881 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
882 Make static. Add endp parameter.
883 (__inet_aton_exact): New function.
884 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
885 (__inet_addr): Call inet_aton_end.
886 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
887 not just IPv6. Call __inet_aton_exact.
888 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
889 (tests): Make const. Add additional test cases with trailing
890 characters.
891 (do_test): Use array_length.
892 * resolv/tst-inet_aton_exact.c: New file.
893 * resolv/tst-resolv-trailing.c: Likewise.
894 * resolv/tst-resolv-nondecimal.c: Likewise.
895 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
896
897 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
898
899 [BZ# 24097]
900 CVE-2019-6488
901 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
902 Clear the upper 32 bits of RSI register.
903 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
904 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
905 and tst-size_t-wcsnlen.
906 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
907 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
908
909 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
910
911 [BZ# 24097]
912 CVE-2019-6488
913 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
914 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
915 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
916 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
917 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
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/strcmp-avx2.S: Use RDX_LP for length.
924 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
925 * sysdeps/x86_64/strcmp.S: Likewise.
926 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
927 tst-size_t-strncmp and tst-size_t-wcsncmp.
928 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
929 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
930 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
931
932 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
933
934 [BZ# 24097]
935 CVE-2019-6488
936 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
937 RDX_LP for length. Clear the upper 32 bits of RDX register.
938 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
939 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
940 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
941 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
942
943 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
944
945 [BZ# 24097]
946 CVE-2019-6488
947 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
948 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
949 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
950 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
951
952 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
953
954 [BZ# 24097]
955 CVE-2019-6488
956 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
957 length. Clear the upper 32 bits of RDX register.
958 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
959 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
960 Likewise.
961 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
962 Likewise.
963 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
964 tst-size_t-wmemchr.
965 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
966
967 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
968
969 [BZ# 24097]
970 CVE-2019-6488
971 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
972 length. Clear the upper 32 bits of RDX register.
973 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
974 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
975 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
976 tst-size_t-wmemcmp.
977 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
978 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
979
980 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
981
982 [BZ# 24097]
983 CVE-2019-6488
984 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
985 upper 32 bits of RDX register.
986 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
987 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
988 tst-size_t-wmemchr.
989 * sysdeps/x86_64/x32/test-size_t.h: New file.
990 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
991 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
992
993 2019-01-18 Florian Weimer <fweimer@redhat.com>
994
995 [BZ #24112]
996 resolv: Do not send queries for non-host-names in nss_dns.
997 * resolv/nss_dns/dns-host.c (check_name): New function.
998 (_nss_dns_gethostbyname2_r): Use it.
999 (_nss_dns_gethostbyname_r): Likewise.
1000 (_nss_dns_gethostbyname4_r): Likewise.
1001
1002 2019-01-21 Florian Weimer <fweimer@redhat.com>
1003
1004 * resolv/inet_addr.c: Reformat to GNU style.
1005 (__inet_addr, __inet_aton): Update comment.
1006
1007 2019-01-18 Florian Weimer <fweimer@redhat.com>
1008
1009 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1010 ("malloc: Use current (C11-style) atomics for fastbin access").
1011 This commit introduces a substantial performance regression on
1012 POWER and Aarch64.
1013 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1014 (REMOVE_FB): Define.
1015 (_int_malloc): Use it and reindent.
1016 (_int_free): Use CAS loop with
1017 catomic_compare_and_exchange_val_rel.
1018 (malloc_consolidate): Use atomic_exchange_acq.
1019
1020
1021 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1024 -Wl,-z,now.
1025 (LDFLAGS-tst-minsigstksz-2): Likewise.
1026 (LDFLAGS-tst-minsigstksz-3): Likewise.
1027 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1028 (LDFLAGS-tst-minsigstksz-4): Likewise.
1029
1030 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1031
1032 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1033 than "alternate".
1034
1035 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1036
1037 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1038
1039 2019-01-16 Zack Weinberg <zackw@panix.com>
1040
1041 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1042 (xget_sigstack_location): New test support functions.
1043 * support/xsigstack.c: New file, implementing them.
1044 * support/tst-xsigstack.c: New test for them.
1045 * support/Makefile: Update.
1046
1047 * signal/tst-minsigstksz-1.c
1048 * signal/tst-minsigstksz-2.c
1049 * signal/tst-minsigstksz-3.c
1050 * signal/tst-minsigstksz-3a.c
1051 * signal/tst-minsigstksz-4.c: New tests.
1052 * signal/Makefile: Run them.
1053
1054 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1055
1056 * po/libc.pot: Regenerate.
1057
1058 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1059
1060 * math/libm-test-fma.inc (fma_test_data): Set
1061 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1062
1063 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1064
1065 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1066 (do_test): Changed __vector __int128_t to __vector unsigned int.
1067
1068 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1069
1070 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1071 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1072 stpcpy-avx2 and stpncpy-avx2.
1073 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1074 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1075 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1076 and __stpncpy_avx2.
1077 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1078 ifunc-strcpy.h}: rename header for a more generic name.
1079 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1080 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1081 AVX unaligned load is fast and vzeroupper is preferred.
1082 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1083 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1084 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1085 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1086 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1087 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1088
1089 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1090
1091 * argp/argp-help.c: Fix typo in comment.
1092 * misc/sys/cdefs.h: Likewise.
1093 * posix/regexec.c (sift_states_iter_mb): Likewise.
1094 * socket/sockatmark.c: Likewise.
1095 * socket/sys/socket.h: Likewise.
1096 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1097 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1098 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1099 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1100 * sysdeps/unix/sockatmark.c: Likewise.
1101 * time/strptime_l.c: Likewise.
1102
1103 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1104
1105 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1106 missing space after the cast of "_NL_CURRENT".
1107
1108 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1109
1110 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1111 ifdef to fix read of VSCR.
1112 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1113 tst-ucontext-ppc64-vscr.c to test list.
1114 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1115
1116 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1117
1118 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1119 fall-through.
1120
1121 2019-01-09 Jim Wilson <jimw@sifive.com>
1122
1123 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1124
1125 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1126
1127 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1128 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1129 __memcpy_falkor for ares.
1130 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1131 Add new define.
1132 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1133 Add ares cpu.
1134
1135 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 [BZ #24066]
1138 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1139 4_FP_W_TYPEs are used for IEEE quad precision.
1140 * soft-fp/extendhftf2.c: Likewise.
1141 * soft-fp/extendsftf2.c: Likewise.
1142 * soft-fp/extendxftf2.c: Likewise.
1143 * soft-fp/trunctfdf2.c: Likewise.
1144 * soft-fp/trunctfhf2.c: Likewise.
1145 * soft-fp/trunctfsf2.c: Likewise.
1146 * soft-fp/trunctfxf2.c: Likewise.
1147 * sysdeps/alpha/ots_cvttx.c: Likewise.
1148 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1149 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1150 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1151 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1152 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1153 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1154 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1155 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1156 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1157 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1158 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1159 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1160 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1161 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1162 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1163 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1164 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1165
1166 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1167
1168 [BZ #24024]
1169 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1170 code with -fmath-errno.
1171 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1172 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1173 * string/test-strerror-errno.c: New file.
1174
1175 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1176
1177 [BZ #24046]
1178 * localedata/locales/en_US (date_fmt): Add, set to
1179 "%a %d %b %Y %r %Z".
1180
1181 2019-01-07 Florian Weimer <fweimer@redhat.com>
1182
1183 [BZ #24063]
1184 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1185 instead of @var{errno}.
1186 (Parsing of Integers): Likewise.
1187 (Parsing of Floats): Likewise.
1188 * manual/filesys.texi (Working with Directory Trees): Likewise.
1189 (Temporary Files): Likewise.
1190 * manual/job.texi (Terminal Access Functions): Likewise.
1191 * manual/llio.texi (Synchronizing I/O): Likewise.
1192 * manual/math.texi (SVID Random): Likewise.
1193 * manual/message.texi (The catgets Functions): Likewise.
1194 (Translation with gettext): Likewise.
1195 (Locating gettext catalog): Likewise.
1196 (Charset conversion in gettext): Likewise.
1197 * manual/nss.texi (NSS Module Function Internals): Likewise.
1198 * manual/search.texi (Hash Search Function): Likewise.
1199 * manual/setjmp.texi (System V contexts): Likewise.
1200 * manual/time.texi (Sleeping): Likewise.
1201 * manual/users.texi (Lookup User): Likewise.
1202 (Lookup Group): Likewise.
1203
1204 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1205
1206 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1207 fix typo.
1208
1209 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1210
1211 [BZ #19444]
1212 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1213 __builtin_unreachable for default case in switch.
1214 (__ieee754_yn): Likewise.
1215 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1216 (__ieee754_ynl): Likewise.
1217 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1218 (__ieee754_ynl): Likewise.
1219 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1220 (__ieee754_ynl): Likewise.
1221
1222 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1223
1224 * manual/maint.texi: Use @{ and @}.
1225
1226 2019-01-04 Florian Weimer <fweimer@redhat.com>
1227
1228 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1229 function.
1230 (do_in_chroot_1): Call it.
1231 (run_chroot_tests):
1232 Improve error reporting in case it is not possible to create a
1233 collision for the PTY name required by the test.
1234
1235 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1236
1237 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1238 lll_wait_tid with timeout.
1239 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1240 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1241 futex_reltimed_wait_cancelable for cancelabla mode.
1242 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1243 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1244 macros.
1245 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1246 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1247 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1248 SYSCALL_CANCEL_NCS): New macro.
1249 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1250 (lll_timedwait_tid): Remove macro.
1251 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1252 Likewise.
1253 (lll_timedwait_tid): Likewise.
1254 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1255 Likewise.
1256 (lll_timedwait_tid): Likewise.
1257 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1258 Likewise.
1259 (lll_timedwait_tid): Likewise.
1260 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1261 Use INTERNAL_SYSCALL_CANCEL.
1262 * sysdeps/unix/sysv/linux/futex-internal.h
1263 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1264 instead of __pthread_{enable,disable}_asynccancel.
1265 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1266 (lll_futex_wait_cancel): New macro.
1267
1268 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1269 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1270
1271 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1272 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1273
1274 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1275 in backtrace analysis.
1276 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1277 side-effects.
1278 (tf_send): Likewise.
1279
1280 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1281 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1282 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1283 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1284 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1285 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1286 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1287 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1288 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1289 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1290 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1291 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1292 Likewise.
1293 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1294 tst-cancel-wrappers.sh.
1295 (generated): Remove tst-cancel-wrappers.out.
1296 (tst-cancel-wrappers.out): Remove rule.
1297 * nptl/tst-cancel-wrappers.sh: Remove file.
1298
1299 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1300
1301 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1302 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1303 Update.
1304
1305 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1306
1307 [BZ #23640]
1308 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1309 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1310 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1311 close-on-exec reset for adddup2 file action.
1312 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1313
1314 2019-01-03 Zack Weinberg <zackw@panix.com>
1315
1316 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1317 parameter. Only use deprecated scanf when __USE_GNU is defined
1318 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1319 than 201103L, whichever is relevant for the language being compiled.
1320
1321 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1322 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1323 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1324 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1325 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1326
1327 * libio/iovsscanf.c
1328 * libio/fwscanf.c
1329 * libio/iovswscanf.c
1330 * libio/swscanf.c
1331 * libio/vscanf.c
1332 * libio/vwscanf.c
1333 * libio/wscanf.c
1334 * stdio-common/fscanf.c
1335 * stdio-common/scanf.c
1336 * stdio-common/vfscanf.c
1337 * stdio-common/vfwscanf.c
1338 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1339 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1340 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1341 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1342 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1343 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1344 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1345 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1346 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1347 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1348 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1349 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1350 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1351 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1352 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1353
1354 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1355 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1356 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1357 not sscanf.
1358 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1359 with a preprocessor macro.
1360
1361 * stdio-common/bug21.c, stdio-common/scanf14.c:
1362 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1363 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1364 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1365 to xscanf, xfscanf, xsscanf.
1366
1367 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1368 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1369 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1370 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1371 xfscanf, xsscanf.
1372 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1373 override feature selection macros or provide definitions of u_char etc.
1374 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1375 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1376 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1377 with -std=gnu89.
1378
1379 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1380
1381 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1382 bits/termios-misc.h.
1383 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1384 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1385 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1386 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1387 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1388 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1389
1390 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1391 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1392 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1393 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1394 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1395 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1396 termios-misc.h.
1397 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1398 (sysdep_headers): Add termios-misc.h.
1399
1400 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1401 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1402 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1403
1404 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1405 termios-tcflow.h.
1406 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1407 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1408 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1409 TCSAFLUSH): Move to termios-tcflow.h.
1410 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1411 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1412 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1413 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1414
1415 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1416 termios-c_lflag.h.
1417 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1418 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1419 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1420 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1421 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1422 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1423 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1424 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1425 Likewise.
1426 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1427 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1429 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1430
1431 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1432 termios-c_cflag.h.
1433 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1434 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1435 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1436 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1437 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1438 termios-c_cflag.h.
1439 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1440 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1441 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1442 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1443
1444 [BZ #23783]
1445 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1446 termios-baud.h.
1447 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1448 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1449 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1450 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1451 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1452 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1453 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1454 __MAX_BAUD): Move to termios-baud.h.
1455 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1456 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1457 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1458 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1459 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1460
1461 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1462 termios-c_oflag.h.
1463 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1464 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1465 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1466 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1467 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1468 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1469 termios-c_oflag.h.
1470 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1471 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1472 FFR1): Likewise.
1473 [USE_MISC] (XTABS): Likewise.
1474 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1475 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1476 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1477 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1478
1479 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1480 termios-c_iflag.h.
1481 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1482 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1483 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1484 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1485 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1486 IUTF8): Move to termios-c_iflag.h.
1487 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1488 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1489 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1490 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1491
1492 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1493 termios-cc.h.
1494 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1495 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1496 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1497 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1498 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1499 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1500 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1501 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1502 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1503 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1504 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1505 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1506
1507 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1508 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1509 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1510 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1511 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1512 termios-struct.h.
1513 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1514 termios-struct.h.
1515 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1516 Likewise.
1517 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1518 Likewise.
1519 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1520 Likewise.
1521 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1522 Likewise.
1523 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1524 _HAVE_C_OSPEED): Define.
1525 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1526 _HAVE_C_OSPEED): Likewise.
1527 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1528 _HAVE_C_OSPEED): Likewise.
1529 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1530 (cfsetospeed): Check for define value instead of existence.
1531 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1532 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1533 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1534 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1535 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1536
1537 [BZ #17783]
1538 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1539 Define.
1540 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1541 (TIOCSER_TEMT): Likewise.
1542 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1543 (TEOCSER_TEMT): Likewise.
1544
1545 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1546
1547 [BZ #24011]
1548 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1549
1550 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1551
1552 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1553
1554 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1555
1556 * sysdeps/htl/pt-barrierattr-setpshared.c
1557 (pthread_barrierattr_setpshared): Add stub warning.
1558 * sysdeps/htl/pt-condattr-setpshared.c
1559 (pthread_condattr_setpshared): Likewise.
1560 * sysdeps/htl/pt-mutexattr-setpshared.c
1561 (pthread_mutexattr_setpshared): Likewise.
1562 * sysdeps/htl/pt-rwlockattr-setpshared.c
1563 (pthread_rwlockattr_setpshared): Likewise.
1564 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1565 (pthread_mutexattr_setpshared): Likewise.
1566
1567 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1568
1569 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1570 constants to match with Linux 4.20.
1571
1572 * sysdeps/mips/mips32/libm-test-ulps: Update.
1573 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1574
1575 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1576
1577 [BZ #24034]
1578 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1579 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1580 than __typeof (...) for the a_ptr variable.
1581
1582 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1583
1584 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1585 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1586 * libio/Makefile (tests): Add tst-sprintf-ub and
1587 tst-sprintf-chk-ub.
1588 (CFLAGS-tst-sprintf-ub.c): New variable.
1589 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1590 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1591 destination buffer and check for overflows in fortified mode.
1592 * libio/libioP.h (PRINTF_CHK): New macro.
1593 * libio/tst-sprintf-chk-ub.c: New file.
1594 * libio/tst-sprintf-ub.c: Likewise.
1595
1596 2019-01-02 Florian Weimer <fweimer@redhat.com>
1597
1598 [BZ #24018]
1599 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1600 failure.
1601
1602 2019-01-02 Florian Weimer <fweimer@redhat.com>
1603
1604 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1605
1606 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1607
1608 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1609 macro.
1610
1611 * sysdeps/unix/sysv/linux/netpacket/packet.h
1612 (PACKET_IGNORE_OUTGOING): New macro.
1613
1614 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1615 macro.
1616
1617 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1618 version to 4.20.
1619 (riscv_flush_icache): New syscall.
1620
1621 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1622 trailing whitespace removed.
1623 * scripts/config.guess: Update to version 2019-01-01.
1624 * scripts/config.sub: Update to version 2019-01-01.
1625 * scripts/move-if-change: Update from gnulib.
1626
1627 * NEWS: Update copyright dates.
1628 * catgets/gencat.c (print_version): Likewise.
1629 * csu/version.c (banner): Likewise.
1630 * debug/catchsegv.sh: Likewise.
1631 * debug/pcprofiledump.c (print_version): Likewise.
1632 * debug/xtrace.sh (do_version): Likewise.
1633 * elf/ldconfig.c (print_version): Likewise.
1634 * elf/ldd.bash.in: Likewise.
1635 * elf/pldd.c (print_version): Likewise.
1636 * elf/sotruss.sh: Likewise.
1637 * elf/sprof.c (print_version): Likewise.
1638 * iconv/iconv_prog.c (print_version): Likewise.
1639 * iconv/iconvconfig.c (print_version): Likewise.
1640 * locale/programs/locale.c (print_version): Likewise.
1641 * locale/programs/localedef.c (print_version): Likewise.
1642 * login/programs/pt_chown.c (print_version): Likewise.
1643 * malloc/memusage.sh (do_version): Likewise.
1644 * malloc/memusagestat.c (print_version): Likewise.
1645 * malloc/mtrace.pl: Likewise.
1646 * manual/libc.texinfo: Likewise.
1647 * nptl/version.c (banner): Likewise.
1648 * nscd/nscd.c (print_version): Likewise.
1649 * nss/getent.c (print_version): Likewise.
1650 * nss/makedb.c (print_version): Likewise.
1651 * posix/getconf.c (main): Likewise.
1652 * scripts/test-installation.pl: Likewise.
1653 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1654
1655 * All files with FSF copyright notices: Update copyright dates
1656 using scripts/update-copyrights.
1657 * locale/programs/charmap-kw.h: Regenerated.
1658 * locale/programs/locfile-kw.h: Likewise.
1659
1660 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1661
1662 * timezone/zdump.c: Update from tzcode 2018i.
1663 * timezone/zic.c: Likewise.
1664
1665 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1666
1667 regex: improve Gnulib port to AIX
1668 From the glibc point of view, this removes duplicate macro
1669 definitions and is obviously safe.
1670 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1671 * posix/regex_internal.h:
1672 (__attribute__, __attribute_warn_unused_result__):
1673 Remove; already defined elsewhere.
1674
1675 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1676
1677 [BZ #24027]
1678 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1679 copying operation. (ncopies had the wrong type, resulting in an
1680 integer wraparound and too few elements being copied.)
1681
1682 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1683
1684 [BZ #24022]
1685 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1686 <asm/syscalls.h> exists with __has_include__ before including it.
1687
1688 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1689
1690 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1691 version to 4.20.
1692
1693 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1694
1695 * hurd/lookup-retry: Include <unistd.h>.
1696 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1697 Release it on return. Handle "pid" magical lookup retry.
1698
1699 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1700
1701 [BZ #10496]
1702 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1703 (t_fmt_ampm): Likewise.
1704 * localedata/locales/aa_ER (t_fmt): Likewise.
1705 (t_fmt_ampm): Likewise.
1706 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1707 (t_fmt_ampm): Likewise.
1708 * localedata/locales/aa_ET (t_fmt): Likewise.
1709 (t_fmt_ampm): Likewise.
1710 * localedata/locales/am_ET (t_fmt): Likewise.
1711 (t_fmt_ampm): Likewise.
1712 * localedata/locales/byn_ER (t_fmt): Likewise.
1713 (t_fmt_ampm): Likewise.
1714 * localedata/locales/om_ET (t_fmt): Likewise.
1715 (t_fmt_ampm): Likewise.
1716 * localedata/locales/sid_ET (t_fmt): Likewise.
1717 (t_fmt_ampm): Likewise.
1718 * localedata/locales/so_DJ (t_fmt): Likewise.
1719 (t_fmt_ampm): Likewise.
1720 * localedata/locales/so_ET (t_fmt): Likewise.
1721 (t_fmt_ampm): Likewise.
1722 * localedata/locales/so_SO (t_fmt): Likewise.
1723 (t_fmt_ampm): Likewise.
1724 * localedata/locales/ti_ER (t_fmt): Likewise.
1725 (t_fmt_ampm): Likewise.
1726 * localedata/locales/ti_ET (t_fmt): Likewise.
1727 (t_fmt_ampm): Likewise.
1728 * localedata/locales/tig_ER (t_fmt): Likewise.
1729 (t_fmt_ampm): Likewise.
1730 * localedata/locales/wal_ET (t_fmt): Likewise.
1731 (t_fmt_ampm): Likewise.
1732
1733 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1734 * localedata/locales/ar_IN (t_fmt): Likewise.
1735 * localedata/locales/bhb_IN (t_fmt): Likewise.
1736 * localedata/locales/bho_IN (t_fmt): Likewise.
1737 * localedata/locales/bi_VU (t_fmt): Likewise.
1738 * localedata/locales/bn_BD (t_fmt): Likewise.
1739 * localedata/locales/bn_IN (t_fmt): Likewise.
1740 * localedata/locales/brx_IN (t_fmt): Likewise.
1741 * localedata/locales/doi_IN (t_fmt): Likewise.
1742 * localedata/locales/en_HK (t_fmt): Likewise.
1743 (t_fmt_ampm): Likewise.
1744 * localedata/locales/en_IN (t_fmt): Likewise.
1745 * localedata/locales/en_PH (t_fmt): Likewise.
1746 * localedata/locales/gu_IN (t_fmt): Likewise.
1747 * localedata/locales/hi_IN (t_fmt): Likewise.
1748 * localedata/locales/hif_FJ (t_fmt): Likewise.
1749 * localedata/locales/hne_IN (t_fmt): Likewise.
1750 * localedata/locales/kn_IN (t_fmt): Likewise.
1751 * localedata/locales/kok_IN (t_fmt): Likewise.
1752 * localedata/locales/ks_IN (t_fmt): Likewise.
1753 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1754 * localedata/locales/mag_IN (t_fmt): Likewise.
1755 * localedata/locales/mai_IN (t_fmt): Likewise.
1756 * localedata/locales/mjw_IN (t_fmt): Likewise.
1757 * localedata/locales/ml_IN (t_fmt): Likewise.
1758 * localedata/locales/mni_IN (t_fmt): Likewise.
1759 * localedata/locales/mr_IN (t_fmt): Likewise.
1760 * localedata/locales/ms_MY (t_fmt): Likewise.
1761 * localedata/locales/pa_IN (t_fmt): Likewise.
1762 * localedata/locales/raj_IN (t_fmt): Likewise.
1763 * localedata/locales/sa_IN (t_fmt): Likewise.
1764 * localedata/locales/sat_IN (t_fmt): Likewise.
1765 * localedata/locales/sd_IN (t_fmt): Likewise.
1766 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1767 * localedata/locales/tcy_IN (t_fmt): Likewise.
1768 * localedata/locales/the_NP (t_fmt): Likewise.
1769 * localedata/locales/to_TO (t_fmt): Likewise.
1770 * localedata/locales/ur_IN (t_fmt): Likewise.
1771
1772 * localedata/locales/hif_FJ (d_t_fmt): Set to
1773 "%A %d %b %Y %I:%M:%S %p".
1774 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1775
1776 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1777 * localedata/locales/ar_BH (t_fmt): Likewise.
1778 * localedata/locales/ar_DZ (t_fmt): Likewise.
1779 * localedata/locales/ar_EG (t_fmt): Likewise.
1780 * localedata/locales/ar_IQ (t_fmt): Likewise.
1781 * localedata/locales/ar_JO (t_fmt): Likewise.
1782 * localedata/locales/ar_KW (t_fmt): Likewise.
1783 * localedata/locales/ar_LB (t_fmt): Likewise.
1784 * localedata/locales/ar_LY (t_fmt): Likewise.
1785 * localedata/locales/ar_OM (t_fmt): Likewise.
1786 * localedata/locales/ar_QA (t_fmt): Likewise.
1787 * localedata/locales/ar_SD (t_fmt): Likewise.
1788 * localedata/locales/ar_SS (t_fmt): Likewise.
1789 * localedata/locales/ar_SY (t_fmt): Likewise.
1790 * localedata/locales/ar_TN (t_fmt): Likewise.
1791 * localedata/locales/ar_YE (t_fmt): Likewise.
1792
1793 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1794 (t_fmt_ampm): Likewise.
1795 * localedata/locales/gez_ET (t_fmt): Likewise.
1796 (t_fmt_ampm): Likewise.
1797
1798 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1799 (t_fmt_ampm): Likewise.
1800 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1801
1802 * localedata/locales/zh_HK (t_fmt):
1803 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1804
1805 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1806 because this locale does not use the 12-hour clock.
1807 (t_fmt): Set to "%Z %H:%M:%S".
1808 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1809
1810 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1811 because this locale does not use the 12-hour clock.
1812 (t_fmt): Set to "%H:%M:%S %Z".
1813 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1814
1815 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1816 because this locale does not use the 12-hour clock.
1817 (t_fmt): Set to "%T".
1818 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1819 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1820
1821 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1822 because this locale does not use the 12-hour clock.
1823 (t_fmt): Set to "%H:%M:%S %Z".
1824 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1825
1826 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1827 because this locale does not use the 12-hour clock.
1828 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1829 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1830
1831 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1832
1833 [BZ #10496]
1834 [BZ #23724]
1835 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1836 (t_fmt_ampm): Likewise.
1837 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1838 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1839 (d_fmt): Set to "%-d.%-m.%y".
1840
1841 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1842
1843 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1844 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1845 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1846 Likewise.
1847 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1848 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1849 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1850 function.
1851 * support/blob_repeat.c (check_mul_overflow_size_t,
1852 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1853
1854 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1855
1856 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1857
1858 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1859
1860 regex: simplify Gnulib port
1861 This simplifies the code, by removing stuff intended for porting
1862 to Gnulib but no longer needed there.
1863 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1864 uses of libc_hidden_def, weak_alias.
1865 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1866 _Restrict_ except for public-facing headers.
1867 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1868 Remove; already defined elsewhere.
1869 * posix/regex.c, posix/regex_internal.h:
1870 Use __GNUC_PREREQ instead of rolling our own.
1871 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1872
1873 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1874
1875 * benchtests/bench-strlen.c (generic_strlen): New function.
1876 (memchr_strlen): New function.
1877
1878 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1879
1880 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1881 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1882 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1883
1884 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1885
1886 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1887
1888 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1889
1890 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1891 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1892 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1893 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1894 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1895 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1896 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1897
1898 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1899
1900 [BZ #24023]
1901 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1902 PLT reference in libc.so.
1903 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1904 _Q_lltoq and _Q_qtod PLT references in libc.so.
1905
1906 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1907
1908 * benchtests/bench-memchr.c: Cleanup defines.
1909 * benchtests/bench-memcmp.c: Likewise.
1910 * benchtests/bench-memset.c: Likewise.
1911 * benchtests/bench-memset-large.c: Likewise.
1912 * benchtests/bench-memset-walk.c: Likewise.
1913 * benchtests/bench-stpcpy.c: Likewise.
1914 * benchtests/bench-stpncpy.c: Likewise.
1915 * benchtests/bench-strcat.c: Likewise.
1916 * benchtests/bench-strchr.c: Likewise.
1917 * benchtests/bench-strcmp.c: Likewise.
1918 * benchtests/bench-strcpy.c: Likewise.
1919 * benchtests/bench-strcspn.c: Likewise.
1920 * benchtests/bench-string.h: Likewise.
1921 * benchtests/bench-strlen.c: Likewise.
1922 * benchtests/bench-strncat.c: Likewise.
1923 * benchtests/bench-strncmp.c: Likewise.
1924 * benchtests/bench-strncpy.c: Likewise.
1925 * benchtests/bench-strnlen.c: Likewise.
1926 * benchtests/bench-strpbrk.c: Likewise.
1927 * benchtests/bench-strrchr.c: Likewise.
1928 * benchtests/bench-strspn.c: Likewise.
1929
1930 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1931
1932 * stdlib/longlong.h: Update from GCC.
1933
1934 [BZ #23993]
1935 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1936 * configure: Regenerated.
1937 * manual/install.texi (Tools for Compilation): Update minimum GCC
1938 version.
1939 * INSTALL: Regenerated.
1940
1941 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1942
1943 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1944
1945 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1946
1947 * malloc/malloc.c (mremap_chunk): Additional checks.
1948
1949 2018-12-21 Mao Han <han_mao@c-sky.com>
1950
1951 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1952 * scripts/build-many-glibcs.py: Add C-SKY targets.
1953 * sysdeps/csky/Implies: New file.
1954 * sysdeps/csky/Makefile: Likewise.
1955 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1956 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1957 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1958 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1959 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1960 * sysdeps/csky/abiv2/memmove.S: Likewise.
1961 * sysdeps/csky/abiv2/memset.S: Likewise.
1962 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1963 * sysdeps/csky/abiv2/start.S: Likewise.
1964 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1965 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1966 * sysdeps/csky/abiv2/strlen.S: Likewise.
1967 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1968 * sysdeps/csky/abort-instr.h: Likewise.
1969 * sysdeps/csky/atomic-machine.h: Likewise.
1970 * sysdeps/csky/bits/endian.h: Likewise.
1971 * sysdeps/csky/bits/fenv.h: Likewise.
1972 * sysdeps/csky/bits/link.h: Likewise.
1973 * sysdeps/csky/bits/setjmp.h: Likewise.
1974 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1975 * sysdeps/csky/bsd-setjmp.S: Likewise.
1976 * sysdeps/csky/configure: Likewise.
1977 * sysdeps/csky/configure.ac: Likewise.
1978 * sysdeps/csky/dl-machine.h: Likewise.
1979 * sysdeps/csky/dl-procinfo.c: Likewise.
1980 * sysdeps/csky/dl-procinfo.h: Likewise.
1981 * sysdeps/csky/dl-sysdep.h: Likewise.
1982 * sysdeps/csky/dl-tls.h: Likewise.
1983 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1984 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1985 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1986 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1987 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1988 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1989 * sysdeps/csky/fpu/fegetround.c: Likewise.
1990 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1991 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1992 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1993 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1994 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1995 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1996 * sysdeps/csky/fpu/fesetround.c: Likewise.
1997 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1998 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1999 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2000 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2001 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2002 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2003 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2004 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2005 * sysdeps/csky/fpu_control.h: Likewise.
2006 * sysdeps/csky/gccframe.h: Likewise.
2007 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2008 * sysdeps/csky/ldsodefs.h: Likewise.
2009 * sysdeps/csky/libc-tls.c: Likewise.
2010 * sysdeps/csky/linkmap.h: Likewise.
2011 * sysdeps/csky/machine-gmon.h: Likewise.
2012 * sysdeps/csky/memusage.h: Likewise.
2013 * sysdeps/csky/nofpu/Implies: Likewise.
2014 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2015 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2016 * sysdeps/csky/nptl/Makefile: Likewise.
2017 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2018 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2019 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2020 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2021 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2022 * sysdeps/csky/nptl/tls.h: Likewise.
2023 * sysdeps/csky/preconfigure: Likewise.
2024 * sysdeps/csky/sfp-machine.h: Likewise.
2025 * sysdeps/csky/sotruss-lib.c: Likewise.
2026 * sysdeps/csky/stackinfo.h: Likewise.
2027 * sysdeps/csky/sysdep.h: Likewise.
2028 * sysdeps/csky/tininess.h: Likewise.
2029 * sysdeps/csky/tst-audit.h: Likewise.
2030 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2031 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2032 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2033 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2034 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2035 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2036 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2037 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2038 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2039 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2040 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2041 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2042 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2043 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2044 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2045 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2046 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2047 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2048 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2049 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2050 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2051 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2052 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2053 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2054 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2067 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2068 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2069 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2070 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2071 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2072 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2073 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2074
2075 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2076
2077 * include/time.h (__difftime64): Add.
2078 * time/difftime.c (subtract): convert to 64-bit time.
2079 * time/difftime.c (__difftime64): Add.
2080 * time/difftime.c (__difftime): Wrap around __difftime64.
2081
2082 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2083
2084 * manual/examples/add.c: Remove redundant "if not".
2085 * manual/examples/argp-ex1.c: Likewise.
2086 * manual/examples/argp-ex2.c: Likewise.
2087 * manual/examples/argp-ex3.c: Likewise.
2088 * manual/examples/argp-ex4.c: Likewise.
2089 * manual/examples/atexit.c: Likewise.
2090 * manual/examples/db.c: Likewise.
2091 * manual/examples/dir.c: Likewise.
2092 * manual/examples/dir2.c: Likewise.
2093 * manual/examples/execinfo.c: Likewise.
2094 * manual/examples/filecli.c: Likewise.
2095 * manual/examples/filesrv.c: Likewise.
2096 * manual/examples/fmtmsgexpl.c: Likewise.
2097 * manual/examples/genpass.c: Likewise.
2098 * manual/examples/inetcli.c: Likewise.
2099 * manual/examples/inetsrv.c: Likewise.
2100 * manual/examples/isockad.c: Likewise.
2101 * manual/examples/longopt.c: Likewise.
2102 * manual/examples/memopen.c: Likewise.
2103 * manual/examples/memstrm.c: Likewise.
2104 * manual/examples/mkdirent.c: Likewise.
2105 * manual/examples/mkfsock.c: Likewise.
2106 * manual/examples/mkisock.c: Likewise.
2107 * manual/examples/mygetpass.c: Likewise.
2108 * manual/examples/pipe.c: Likewise.
2109 * manual/examples/popen.c: Likewise.
2110 * manual/examples/rprintf.c: Likewise.
2111 * manual/examples/search.c: Likewise.
2112 * manual/examples/select.c: Likewise.
2113 * manual/examples/setjmp.c: Likewise.
2114 * manual/examples/sigh1.c: Likewise.
2115 * manual/examples/sigusr.c: Likewise.
2116 * manual/examples/stpcpy.c: Likewise.
2117 * manual/examples/strdupa.c: Likewise.
2118 * manual/examples/strftim.c: Likewise.
2119 * manual/examples/subopt.c: Likewise.
2120 * manual/examples/swapcontext.c: Likewise.
2121 * manual/examples/termios.c: Likewise.
2122 * manual/examples/testopt.c: Likewise.
2123 * manual/examples/testpass.c: Likewise.
2124 * manual/examples/timeval_subtract.c: Likewise.
2125
2126 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2127
2128 * sysdeps/x86/fpu/math_private.h: New file.
2129 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2130
2131 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2132 definition.
2133 (cosh): Likewise.
2134 (tanh): Likewise.
2135
2136 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2137
2138 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2139 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2140 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2141 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2142 fields.
2143 (_dl_show_auxv): Give a special treatment to
2144 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2145 and AT_L3_CACHEGEOMETRY.
2146 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2147 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2148 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2149 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2150
2151 2018-12-19 Andreas Schwab <schwab@suse.de>
2152
2153 * nscd/connections.c (check_use): Don't abort on invalid len.
2154
2155 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2156
2157 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2158 values in the 64bit value cases.
2159
2160 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2161
2162 * include/time.h
2163 (__ctime64_r): Add.
2164 * time/ctime_r.c
2165 (__ctime64_r): Add.
2166 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2167
2168 * include/time.h
2169 (__ctime64): Add.
2170 * time/gmtime.c
2171 (__ctime64): Add.
2172 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2173
2174 * include/time.h
2175 (__gmtime64_r): Add.
2176 * time/gmtime.c
2177 (__gmtime64_r): Add.
2178 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2179
2180 * include/time.h
2181 (__gmtime64): Add.
2182 * time/gmtime.c
2183 (__gmtime64): Add.
2184 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2185
2186 * include/time.h
2187 (__localtime64_r): Add.
2188 * time/localtime.c
2189 (__localtime64_r): Add.
2190 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2191
2192 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2193
2194 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2195 kernel_sigction definition.
2196
2197 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2198
2199 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2200
2201 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2202 __syscall_rt_sigaction.
2203 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2204 (kernel_sigaction): Use Linux generic defintion.
2205 (STUB): Define.
2206 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2207 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2208 (__syscall_rt_sigaction): Remove implementation.
2209 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2210 hidden.
2211 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2212 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2213 INTERNAL_SYSCALL): Remove definitions.
2214 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2215 action and signal set size.
2216 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2217 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2218
2219 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2220 James Clarke <jrtc27@jrtc27.com>
2221
2222 [BZ #23967]
2223 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2224 Define if SA_RESTORER is defined.
2225 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2226 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2227 already defined.
2228 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2229 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2230 definitions.
2231 (HAS_SA_RESTORER): Define.
2232 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2233 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2234 (HAS_SA_RESTORER): Define.
2235 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2236 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2237 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2238 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2239 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2240
2241 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2242
2243 * sysdeps/unix/sysv/linux/kernel-features.h
2244 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2245 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2246 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2247 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2248 (__ASSUME_ST_INO_64_BIT): Likewise.
2249 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2250 <kernel-features.h>.
2251 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2252 Remove conditional code.
2253 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2254 <kernel-features.h>.
2255 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2256 Remove conditional code.
2257 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2258 <kernel-features.h>.
2259 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2260 Remove conditional code.
2261 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2262 <kernel-features.h>.
2263 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2264 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2265
2266 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2267
2268 * sysdeps/s390/multiarch/ifunc-resolve.h
2269 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2270 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2271 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2272 Delete macro definition.
2273 (s390_libc_ifunc_init): Rename to
2274 s390_libc_ifunc_expr_stfle_init.
2275 * sysdeps/s390/bzero: Use
2276 s390_libc_ifunc_expr_stfle_init instead of
2277 s390_libc_ifunc_init.
2278 * sysdeps/s390/memcmp.c: Likewise.
2279 * sysdeps/s390/memcpy.c: Likewise.
2280 * sysdeps/s390/mempcpy.c: Likewise.
2281 * sysdeps/s390/memset.c: Likewise.
2282
2283 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2284
2285 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2286 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2287
2288 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2289
2290 * sysdeps/s390/multiarch/Makefile
2291 (sysdep_routines): Remove wmemcmp variants.
2292 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2293 * sysdeps/s390/multiarch/ifunc-impl-list.c
2294 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2295 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2296 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2297 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2298 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2299 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2300 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2301 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2302
2303 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2304
2305 * sysdeps/s390/multiarch/Makefile
2306 (sysdep_routines): Remove wmemset variants.
2307 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2308 * sysdeps/s390/multiarch/ifunc-impl-list.c
2309 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2310 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2311 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2312 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2313 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2314 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2315 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2316 * sysdeps/s390/ifunc-wmemset.h: New file.
2317
2318 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2319
2320 * sysdeps/s390/multiarch/Makefile
2321 (sysdep_routines): Remove wmemchr variants.
2322 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2323 * sysdeps/s390/multiarch/ifunc-impl-list.c
2324 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2325 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2326 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2327 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2328 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2329 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2330 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2331 * sysdeps/s390/ifunc-wmemchr.h: New file.
2332
2333 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2334
2335 * sysdeps/s390/multiarch/Makefile
2336 (sysdep_routines): Remove wcscspn variants.
2337 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2338 * sysdeps/s390/multiarch/ifunc-impl-list.c
2339 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2340 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2341 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2342 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2343 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2344 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2345 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2346 * sysdeps/s390/ifunc-wcscspn.h: New file.
2347
2348 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2349
2350 * sysdeps/s390/multiarch/Makefile
2351 (sysdep_routines): Remove wcspbrk variants.
2352 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2353 * sysdeps/s390/multiarch/ifunc-impl-list.c
2354 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2355 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2356 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2357 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2358 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2359 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2360 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2361 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2362
2363 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2364
2365 * sysdeps/s390/multiarch/Makefile
2366 (sysdep_routines): Remove wcsspn variants.
2367 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2368 * sysdeps/s390/multiarch/ifunc-impl-list.c
2369 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2370 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2371 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2372 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2373 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2374 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2375 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2376 * sysdeps/s390/ifunc-wcsspn.h: New file.
2377
2378 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2379
2380 * sysdeps/s390/multiarch/Makefile
2381 (sysdep_routines): Remove wcsrchr variants.
2382 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2383 * sysdeps/s390/multiarch/ifunc-impl-list.c
2384 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2385 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2386 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2387 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2388 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2389 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2390 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2391 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2392
2393 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2394
2395 * sysdeps/s390/multiarch/Makefile
2396 (sysdep_routines): Remove wcschrnul variants.
2397 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2398 * sysdeps/s390/multiarch/ifunc-impl-list.c
2399 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2400 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2401 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2402 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2403 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2404 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2405 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2406 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2407
2408 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2409
2410 * sysdeps/s390/multiarch/Makefile
2411 (sysdep_routines): Remove wcschr variants.
2412 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2413 * sysdeps/s390/multiarch/ifunc-impl-list.c
2414 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2415 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2416 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2417 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2418 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2419 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2420 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2421 * sysdeps/s390/ifunc-wcschr.h: New file.
2422
2423 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2424
2425 * sysdeps/s390/multiarch/Makefile
2426 (sysdep_routines): Remove wcsncmp variants.
2427 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2428 * sysdeps/s390/multiarch/ifunc-impl-list.c
2429 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2430 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2431 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2432 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2433 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2434 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2435 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2436 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2437
2438 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2439
2440 * sysdeps/s390/multiarch/Makefile
2441 (sysdep_routines): Remove wcscmp variants.
2442 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2443 * sysdeps/s390/multiarch/ifunc-impl-list.c
2444 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2445 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2446 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2447 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2448 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2449 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2450 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2451 * sysdeps/s390/ifunc-wcscmp.h: New file.
2452
2453 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2454
2455 * sysdeps/s390/multiarch/Makefile
2456 (sysdep_routines): Remove wcsncat variants.
2457 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2458 * sysdeps/s390/multiarch/ifunc-impl-list.c
2459 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2460 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2461 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2462 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2463 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2464 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2465 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2466 * sysdeps/s390/ifunc-wcsncat.h: New file.
2467
2468 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2469
2470 * sysdeps/s390/multiarch/Makefile
2471 (sysdep_routines): Remove wcscat variants.
2472 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2473 * sysdeps/s390/multiarch/ifunc-impl-list.c
2474 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2475 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2476 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2477 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2478 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2479 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2480 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2481 * sysdeps/s390/ifunc-wcscat.h: New file.
2482
2483 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2484
2485 * sysdeps/s390/multiarch/Makefile
2486 (sysdep_routines): Remove wcpncpy variants.
2487 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2488 * sysdeps/s390/multiarch/ifunc-impl-list.c
2489 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2490 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2491 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2492 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2493 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2494 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2495 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2496 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2497
2498 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2499
2500 * sysdeps/s390/multiarch/Makefile
2501 (sysdep_routines): Remove wcsncpy variants.
2502 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2503 * sysdeps/s390/multiarch/ifunc-impl-list.c
2504 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2505 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2506 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2507 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2508 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2509 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2510 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2511 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2512
2513 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2514
2515 * sysdeps/s390/multiarch/Makefile
2516 (sysdep_routines): Remove wcpcpy variants.
2517 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2518 * sysdeps/s390/multiarch/ifunc-impl-list.c
2519 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2520 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2521 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2522 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2523 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2524 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2525 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2526 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2527
2528 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2529
2530 * sysdeps/s390/multiarch/Makefile
2531 (sysdep_routines): Remove wcscpy variants.
2532 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2533 * sysdeps/s390/multiarch/ifunc-impl-list.c
2534 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2535 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2536 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2537 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2538 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2539 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2540 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2541 * sysdeps/s390/ifunc-wcscpy.h: New file.
2542
2543 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2544
2545 * sysdeps/s390/multiarch/Makefile
2546 (sysdep_routines): Remove wcsnlen variants.
2547 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2548 * sysdeps/s390/multiarch/ifunc-impl-list.c
2549 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2550 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2551 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2552 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2553 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2554 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2555 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2556 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2557
2558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2559
2560 * sysdeps/s390/multiarch/Makefile
2561 (sysdep_routines): Remove wcslen variants.
2562 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2563 * sysdeps/s390/multiarch/ifunc-impl-list.c
2564 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2565 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2566 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2567 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2568 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2569 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2570 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2571 * sysdeps/s390/ifunc-wcslen.h: New file.
2572
2573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2574
2575 * sysdeps/s390/multiarch/Makefile
2576 (sysdep_routines): Remove memrchr variants.
2577 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2578 * sysdeps/s390/multiarch/ifunc-impl-list.c
2579 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2580 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2581 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2582 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2583 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2584 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2585 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2586 * sysdeps/s390/ifunc-memrchr.h: New file.
2587
2588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2589
2590 * sysdeps/s390/multiarch/Makefile
2591 (sysdep_routines): Remove memccpy variants.
2592 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2593 * sysdeps/s390/multiarch/ifunc-impl-list.c
2594 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2595 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2596 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2597 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2598 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2599 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2600 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2601 * sysdeps/s390/ifunc-memccpy.h: New file.
2602
2603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2604
2605 * sysdeps/s390/multiarch/Makefile
2606 (sysdep_routines): Remove rawmemchr variants.
2607 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2608 * sysdeps/s390/multiarch/ifunc-impl-list.c
2609 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2610 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2611 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2612 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2613 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2614 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2615 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2616 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2617
2618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2619
2620 * sysdeps/s390/multiarch/Makefile
2621 (sysdep_routines): Remove memchr variants.
2622 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2623 * sysdeps/s390/multiarch/ifunc-impl-list.c
2624 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2625 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2626 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2627 * sysdeps/s390/multiarch/memchr.c: Move to ...
2628 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2629 * sysdeps/s390/ifunc-memchr.h: New file.
2630 * sysdeps/s390/s390-64/memchr.S: Move to ...
2631 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2632 for 31/64bit and ifunc handling.
2633 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2634 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2635 * sysdeps/s390/s390-32/memchr.S: Likewise.
2636
2637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2638
2639 * sysdeps/s390/multiarch/Makefile
2640 (sysdep_routines): Remove strcspn variants.
2641 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2642 * sysdeps/s390/multiarch/ifunc-impl-list.c
2643 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2644 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2645 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2646 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2647 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2648 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2649 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2650 * sysdeps/s390/ifunc-strcspn.h: New file.
2651
2652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2653
2654 * sysdeps/s390/multiarch/Makefile
2655 (sysdep_routines): Remove strpbrk variants.
2656 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2657 * sysdeps/s390/multiarch/ifunc-impl-list.c
2658 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2659 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2660 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2661 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2662 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2663 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2664 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2665 * sysdeps/s390/ifunc-strpbrk.h: New file.
2666
2667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2668
2669 * sysdeps/s390/multiarch/Makefile
2670 (sysdep_routines): Remove strspn variants.
2671 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2672 * sysdeps/s390/multiarch/ifunc-impl-list.c
2673 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2674 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2675 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2676 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2677 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2678 * sysdeps/s390/multiarch/strspn.c: Move to ...
2679 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2680 * sysdeps/s390/ifunc-strspn.h: New file.
2681
2682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2683
2684 * sysdeps/s390/multiarch/Makefile
2685 (sysdep_routines): Remove strrchr variants.
2686 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2687 * sysdeps/s390/multiarch/ifunc-impl-list.c
2688 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2689 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2690 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2691 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2692 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2693 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2694 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2695 * sysdeps/s390/ifunc-strrchr.h: New file.
2696
2697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2698
2699 * sysdeps/s390/multiarch/Makefile
2700 (sysdep_routines): Remove strchrnul variants.
2701 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2702 * sysdeps/s390/multiarch/ifunc-impl-list.c
2703 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2704 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2705 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2706 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2707 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2708 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2709 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2710 * sysdeps/s390/ifunc-strchrnul.h: New file.
2711
2712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2713
2714 * sysdeps/s390/multiarch/Makefile
2715 (sysdep_routines): Remove strchr variants.
2716 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2717 * sysdeps/s390/multiarch/ifunc-impl-list.c
2718 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2719 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2720 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2721 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2722 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2723 * sysdeps/s390/multiarch/strchr.c: Move to ...
2724 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2725 * sysdeps/s390/ifunc-strchr.h: New file.
2726
2727 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2728
2729 * sysdeps/s390/multiarch/Makefile
2730 (sysdep_routines): Remove strncmp variants.
2731 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2732 * sysdeps/s390/multiarch/ifunc-impl-list.c
2733 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2734 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2735 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2736 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2737 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2738 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2739 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2740 * sysdeps/s390/ifunc-strncmp.h: New file.
2741
2742 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2743
2744 * sysdeps/s390/multiarch/Makefile
2745 (sysdep_routines): Remove strcmp variants.
2746 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2747 * sysdeps/s390/multiarch/ifunc-impl-list.c
2748 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2749 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2750 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2751 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2752 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2753 * sysdeps/s390/ifunc-strcmp.h: New file.
2754 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2755 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2756 for 31/64bit and ifunc handling.
2757 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2758 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2759 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2760
2761 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2762
2763 * sysdeps/s390/multiarch/Makefile
2764 (sysdep_routines): Remove strncat variants.
2765 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2766 * sysdeps/s390/multiarch/ifunc-impl-list.c
2767 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2768 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2769 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2770 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2771 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2772 * sysdeps/s390/multiarch/strncat.c: Move to ...
2773 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2774 * sysdeps/s390/ifunc-strncat.h: New file.
2775
2776 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2777
2778 * sysdeps/s390/multiarch/Makefile
2779 (sysdep_routines): Remove strcat variants.
2780 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2781 * sysdeps/s390/multiarch/ifunc-impl-list.c
2782 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2783 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2784 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2785 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2786 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2787 * sysdeps/s390/multiarch/strcat.c: Move to ...
2788 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2789 * sysdeps/s390/ifunc-strcat.h: New file.
2790
2791 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2792
2793 * sysdeps/s390/multiarch/Makefile
2794 (sysdep_routines): Remove stpncpy variants.
2795 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2796 * sysdeps/s390/multiarch/ifunc-impl-list.c
2797 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2798 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2799 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2800 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2801 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2802 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2803 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2804 * sysdeps/s390/ifunc-stpncpy.h: New file.
2805
2806 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2807
2808 * sysdeps/s390/multiarch/Makefile
2809 (sysdep_routines): Remove strncpy variants.
2810 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2811 * sysdeps/s390/multiarch/ifunc-impl-list.c
2812 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2813 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2814 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2815 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2816 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2817 * sysdeps/s390/ifunc-strncpy.h: New file.
2818 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2819 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2820 and adjust ifunc handling.
2821 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2822 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2823 and adjust ifunc handling.
2824 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2825 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2826
2827 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2828
2829 * sysdeps/s390/multiarch/Makefile
2830 (sysdep_routines): Remove stpcpy variants.
2831 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2832 * sysdeps/s390/multiarch/ifunc-impl-list.c
2833 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2834 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2835 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2836 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2837 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2838 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2839 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2840 * sysdeps/s390/ifunc-stpcpy.h: New file.
2841
2842 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2843
2844 * sysdeps/s390/multiarch/Makefile
2845 (sysdep_routines): Remove strcpy variants.
2846 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2847 * sysdeps/s390/multiarch/ifunc-impl-list.c
2848 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2849 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2850 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2851 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2852 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2853 * sysdeps/s390/ifunc-strcpy.h: New file.
2854 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2855 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2856 for 31/64bit and ifunc handling.
2857 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2858 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2859 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2860
2861 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2862
2863 * sysdeps/s390/multiarch/Makefile
2864 (sysdep_routines): Remove strnlen variants.
2865 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2866 * sysdeps/s390/multiarch/ifunc-impl-list.c
2867 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2868 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2869 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2870 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2871 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2872 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2873 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2874 * sysdeps/s390/ifunc-strnlen.h: New file.
2875
2876 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2877
2878 * sysdeps/s390/multiarch/Makefile
2879 (sysdep_routines): Remove strlen variants.
2880 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2881 * sysdeps/s390/multiarch/ifunc-impl-list.c
2882 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2883 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2884 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2885 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2886 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2887 * sysdeps/s390/multiarch/strlen.c: Move to ...
2888 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2889 * sysdeps/s390/ifunc-strlen.h: New file.
2890
2891 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2892
2893 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2894 * sysdeps/s390/multiarch/ifunc-impl-list.c
2895 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2896 * sysdeps/s390/ifunc-memmem.h: New file.
2897 * sysdeps/s390/memmem.c: Likewise.
2898 * sysdeps/s390/memmem-c.c: Likewise.
2899 * sysdeps/s390/memmem-vx.c: Likewise.
2900
2901 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2902
2903 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2904 * sysdeps/s390/multiarch/ifunc-impl-list.c
2905 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2906 * sysdeps/s390/ifunc-strstr.h: New file.
2907 * sysdeps/s390/strstr.c: Likewise.
2908 * sysdeps/s390/strstr-c.c: Likewise.
2909 * sysdeps/s390/strstr-vx.c: Likewise.
2910
2911 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2912
2913 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2914 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2915 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2916 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2917 New defines.
2918 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2919 * sysdeps/s390/memmove-c.c: New file.
2920 * sysdeps/s390/memmove.c: Likewise.
2921 * sysdeps/s390/multiarch/ifunc-impl-list.c
2922 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2923
2924 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2925
2926 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2927 * sysdeps/s390/configure.ac: Add check for z13 support.
2928 * sysdeps/s390/configure: Regenerated.
2929
2930 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2931
2932 * sysdeps/s390/memcopy.h: New file.
2933
2934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2935
2936 * sysdeps/s390/s390-32/bcopy.S: Remove.
2937 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2938
2939 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2940
2941 * sysdeps/s390/ifunc-memcpy.h: New File.
2942 * sysdeps/s390/memcpy.S: Move to ...
2943 * sysdeps/s390/memcpy-z900.S ... here.
2944 Move implementations from memcpy-s390x.s to here.
2945 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2946 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2947 Remove memcpy/mempcpy variants.
2948 * sysdeps/s390/Makefile (sysdep_routines):
2949 Add memcpy/mempcpy variants.
2950 * sysdeps/s390/multiarch/ifunc-impl-list.c
2951 (__libc_ifunc_impl_list): Adjust ifunc variants for
2952 memcpy and mempcpy.
2953 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2954 to ...
2955 * sysdeps/s390/memcpy.c: ... here.
2956 Adjust ifunc variants for memcpy.
2957 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2958 * sysdeps/s390/mempcpy.c: ... here.
2959 Adjust ifunc variants for mempcpy.
2960 * sysdeps/s390/mempcpy.S: Delete file.
2961
2962 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2963
2964 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2965 * sysdeps/s390/memcpy.S: ... here.
2966 Adjust to be usable for 31/64bit.
2967 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2968 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2969 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2970 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2971 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2972 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2973 Adjust to be usable for 31/64bit.
2974 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2975 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2976 * sysdeps/s390/multiarch/memcpy.c: ... here.
2977 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2978
2979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2980
2981 * sysdeps/s390/ifunc-memcmp.h: New File.
2982 * sysdeps/s390/memcmp.S: Move to ...
2983 * sysdeps/s390/memcmp-z900.S ... here.
2984 Move implementations from memcmp-s390x.s to here.
2985 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2986 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2987 Remove memcmp variants.
2988 * sysdeps/s390/Makefile (sysdep_routines):
2989 Add memcmp variants.
2990 * sysdeps/s390/multiarch/ifunc-impl-list.c
2991 (__libc_ifunc_impl_list): Adjust ifunc variants for
2992 memcmp.
2993 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2994 to ...
2995 * sysdeps/s390/memcmp.c: ... here.
2996 Adjust ifunc variants for memcmp.
2997
2998 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2999
3000 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3001 * sysdeps/s390/memcmp.S: ... here.
3002 Adjust to be usable for 31/64bit.
3003 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3004 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3005 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3006 Remove memcmp.
3007 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3008 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3009 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3010 Adjust to be usable for 31/64bit.
3011 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3012 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3013 * sysdeps/s390/multiarch/memcmp.c: ... here.
3014 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3015
3016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3017
3018 * sysdeps/s390/s390-32/bzero.S: Delete file.
3019 * sysdeps/s390/s390-64/bzero.S: Likewise.
3020 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3021 * sysdeps/s390/bzero.c: New file.
3022 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3023 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3024 * sysdeps/s390/multiarch/ifunc-impl-list.c
3025 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3026
3027 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3028
3029 * sysdeps/s390/ifunc-memset.h: New File.
3030 * sysdeps/s390/memset.S: Move to ...
3031 * sysdeps/s390/memset-z900.S ... here.
3032 Move implementations from memset-s390x.s to here.
3033 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3034 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3035 Remove memset variants.
3036 * sysdeps/s390/Makefile (sysdep_routines):
3037 Add memset variants.
3038 * sysdeps/s390/multiarch/ifunc-impl-list.c
3039 (__libc_ifunc_impl_list): Adjust ifunc variants for
3040 memset.
3041 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3042 to ...
3043 * sysdeps/s390/memset.c: ... here.
3044 Adjust ifunc variants for memset.
3045
3046 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3047
3048 * sysdeps/s390/s390-64/memset.S: Move to ...
3049 * sysdeps/s390/memset.S: ... here.
3050 Adjust to be usable for 31/64bit.
3051 * sysdeps/s390/s390-32/memset.S: Delete File.
3052 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3053 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3054 Remove memset.
3055 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3056 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3057 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3058 Adjust to be usable for 31/64bit.
3059 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3060 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3061 * sysdeps/s390/multiarch/memset.c: ... here.
3062 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3063
3064 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3065
3066 * sysdeps/s390/multiarch/ifunc-resolve.h
3067 (s390_libc_ifunc_init, s390_libc_ifunc,
3068 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3069
3070 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3071
3072 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3073 * sysdeps/s390/configure.ac: Add check for z10 support.
3074 * sysdeps/s390/configure: Regenerated.
3075
3076 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3077
3078 * sysdeps/i386/atomic-machine.h: Merged with ...
3079 * sysdeps/x86_64/atomic-machine.h: To ...
3080 * sysdeps/x86/atomic-machine.h: This. New file.
3081
3082 2018-12-18 Florian Weimer <fweimer@redhat.com>
3083
3084 Rewrite locale/gen-translit.pl in Python.
3085 * locale/Makefile (generated): Add C-translit.h.
3086 (before-compile): Add $(objpfx)C-translit.h.
3087 (C-translit.h): Move to $(objpfx). Create target directory.
3088 Build using Python script.
3089 * locale/gen-translit.py: New file.
3090 * locale/gen-translit.pl: Remove file.
3091 * locale/C-translit.h.in: Change comment character to '#' for
3092 easier parsing without a C preprocessor.
3093 * locale/C-translit.h: Remove generated file.
3094 * manual/install.texi (Tools for Compilation): Do not mention
3095 C-translit.h.
3096 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3097 Remove locale/C-translit.h.
3098 * scripts/update-copyrights: Likewise.
3099 * INSTALL: Regenerate.
3100
3101 2018-12-18 Florian Weimer <fweimer@redhat.com>
3102
3103 [BZ #23995]
3104 * localedata/locales/bi_VU: Remove executable bit from file.
3105
3106 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3107
3108 * include/time.h
3109 (__localtime64): Add.
3110 * manual/maint.texi: Document Y2038 symbol handling.
3111 * time/localtime.c
3112 (__localtime64): Add.
3113 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3114
3115 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3116
3117 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3118 Do not clobber r12.
3119
3120 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3121 to allow extra macros from first or second sources.
3122 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3123 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3124 (tests-special): Add $(objpfx)tst-mman-consts.out.
3125 ($(objpfx)tst-mman-consts.out): New makefile target.
3126
3127 2018-12-17 Mao Han <han_mao@c-sky.com>
3128
3129 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3130 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3131 without stat64 system call support.
3132 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3133 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3134 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3135 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3136 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3137 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3138 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3139 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3140 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3141 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3142 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3143
3144 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3145
3146 regex: fix storage-exhaustion error
3147 [BZ #18040]
3148 * posix/regexec.c (get_subexp):
3149 Do not continue if storage is exhausted.
3150
3151 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3152
3153 regex: fix heap-use-after-free error
3154 [BZ #18040]
3155 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3156 https://debbugs.gnu.org/32592
3157 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3158 call extend_buffers which reallocates the re_string_t internal buffer.
3159 Local variable 'buf' was not updated in such case, resulting in
3160 use-after-free.
3161 * posix/regexec.c (get_subexp): Update 'buf' after call to
3162 get_subexp_sub.
3163
3164 2018-12-15 Florian Weimer <fweimer@redhat.com>
3165
3166 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3167 (minimum_stride_size): Use it.
3168 (support_blob_repeat_allocate): Likewise.
3169
3170 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3171
3172 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3173 definition.
3174 (acosh): Likewise.
3175 (atanh): Likewise.
3176
3177 2018-12-14 Florian Weimer <fweimer@redhat.com>
3178
3179 * manual/process.texi (Process Creation Concepts): Remove
3180 documentation of process (ID) lifetime. List more process
3181 creation functions. Reference Process Identification section.
3182 (Process Identification): Add information about process ID
3183 lifetime. Describe Linux thread/task IDs.
3184 * manual/signal.texi (Signaling Another Process): Mention that the
3185 signal is always sent to the process.
3186
3187 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3188
3189 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3190 and tst-ldbl-efgcvt.
3191 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3192 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3193 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3194 (fcvt_tests, output_error, output_r_error, do_test): Use the
3195 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3196 select the type of floating-point variables and arguments; to
3197 produce extra tests for double and conversion specifiers for
3198 printf; and to set the names of called functions.
3199 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3200 in tst-efgcvt-template.c.
3201 * misc/tst-ldbl-efgcvt.c: Likewise.
3202
3203 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3204
3205 * nss/Makefile (tst-nss-test3.out): New rule.
3206
3207 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3208
3209 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3210 clobber sp.
3211
3212 2018-12-13 fanjinke <fanjinke@hygon.cn>
3213
3214 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3215 "HygonGenuine".
3216
3217 2018-12-13 Andreas Schwab <schwab@suse.de>
3218
3219 [BZ #23861]
3220 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3221 (__pthread_rwlock_rdlock_full): Update expected value for
3222 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3223 * nptl/tst-rwlock-pwn.c: New file.
3224 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3225
3226 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3227
3228 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3229 definition.
3230
3231 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3232
3233 * benchtests/scripts/compare_bench.py (do_compare): write to
3234 stderr in casestat is not present.
3235 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3236 stderr in case timings field is not present. Also string showing
3237 the output filename goes into the stderr.
3238
3239 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3240
3241 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3242 and ZeroDivisorError exceptions.
3243 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3244 argument to loop through user provided statistics.
3245 * benchtests/scripts/compare_bench.py (main): Include the --stats
3246 argument.
3247
3248 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3249
3250 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3251 instead of return.
3252
3253 2018-12-12 Florian Weimer <fweimer@redhat.com>
3254
3255 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3256 clause to copyright header.
3257
3258 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3259
3260 [BZ #23614]
3261 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3262 registers saved in the stack frame.
3263 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3264 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3265
3266 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3267
3268 * include/bits/monetary-ldbl.h: New file.
3269 * include/bits/printf-ldbl.h: Likewise.
3270 * include/bits/stdio-ldbl.h: Likewise.
3271 * include/bits/stdlib-ldbl.h: Likewise.
3272 * include/bits/syslog-ldbl.h: Likewise.
3273 * include/bits/wchar-ldbl.h: Likewise.
3274
3275 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3276
3277 * libio/libio.h: Remove redirection for _IO_vfprintf.
3278
3279 2018-12-11 Andreas Schwab <schwab@suse.de>
3280
3281 * Makerules: Remove all references to abilist-pattern.
3282 (update-all-abi): Simplify find expression.
3283
3284 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3285
3286 [BZ #23961]
3287 * math/auto-libm-test-in: Add new test case.
3288 * math/auto-libm-test-out-pow: Regenerated.
3289 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3290
3291 2018-12-10 DJ Delorie <dj@redhat.com>
3292
3293 [BZ #23948]
3294 * support/test-container.c: Move postclean step to before we
3295 change namespaces.
3296
3297 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3298
3299 * scripts/gen-as-const.py (main): Handle --python option.
3300 * scripts/gen-py-const.awk: Remove.
3301 * Makerules (py-const-script): Use gen-as-const.py.
3302 ($(py-const)): Likewise.
3303 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3304 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3305 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3306 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3307 ~PTHREAD_MUTEX_NO_ELISION_NP.
3308 * manual/README.pretty-printers: Update reference to
3309 gen-py-const.awk.
3310
3311 * scripts/glibcextract.py: New file.
3312 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3313 or tempfile. Import glibcexctract.
3314 (compute_c_consts): Remove. Moved to glibcextract.py.
3315 (gen_test): Update reference to compute_c_consts.
3316 (main): Likewise.
3317 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3318 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3319 * sysdeps/unix/sysv/linux/Makefile
3320 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3321 Redirect stderr as well as stdout.
3322
3323 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3324
3325 [BZ #19767]
3326 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3327 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3328 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3329 ALWAYS_USE_VSYSCALL.
3330 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3331 ALWAYS_USE_VSYSCALL.
3332 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3333 ALWAYS_USE_VSYSCALL.
3334
3335 2018-12-10 Florian Weimer <fweimer@redhat.com>
3336
3337 [BZ #23972]
3338 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3339 offset instead of count for clarity. Fix typo in comment.
3340 (__old_getdents64): Keep track of previous offset. Use it to call
3341 handle_overflow.
3342 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3343 that d_off is never zero.
3344
3345 2018-12-10 Andreas Schwab <schwab@suse.de>
3346
3347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3348 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3349 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3350 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3351 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3352
3353 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3354
3355 * timezone/private.h: Update from tzcode 2018g.
3356 * timezone/tzfile.h: Likewise.
3357 * timezone/tzselect.ksh: Likewise.
3358 * timezone/zdump.c: Likewise.
3359 * timezone/zic.c: Likewise.
3360
3361 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3362
3363 [BZ #23490]
3364 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3365 (do_test): Adjust buffer size and fix format.
3366
3367 2018-12-07 DJ Delorie <dj@redhat.com>
3368
3369 [BZ #23907]
3370 * malloc/tst-tcfree3.c: New.
3371 * malloc/Makefile: Add it.
3372
3373 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3374
3375 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3376
3377 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3378
3379 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3380 used as a mask for the mode argument of __vfscanf_internal and
3381 __vfwscanf_internal.
3382 * stdio-common/vfscanf-internal.c
3383 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3384 (__strtof128_internal): Define to __wcstof128_internal.
3385 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3386 __strtof128_internal or __wcstof128_internal when the format of
3387 long double is the same as _Float128.
3388
3389 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3390
3391 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3392 * posix/confstr.c (confstr): Rename to __confstr.
3393 (__confstr): Add hidden def.
3394 (confstr): Add weak alias for __confstr.
3395 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3396 confstr.
3397
3398 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3399
3400 * NEWS: Mention getcpu.
3401 * include/sched.h (__getcpu): New libc_hidden_proto.
3402 * manual/resource.texi: Document getcpu.
3403 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3404 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3405 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3406 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3407 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3408 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3409 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3410 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3411 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3412 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3413 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3414 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3415 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3416 Likewise.
3417 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3418 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3419 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3420 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3421 Likewise.
3422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3423 Likewise.
3424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3425 Likewise.
3426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3427 Likewise.
3428 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3429 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3430 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3431 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3432 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3433 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3434 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3435 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3436 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3437 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3438 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3439 Also check getcpu.
3440
3441 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3442
3443 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3444 functions.
3445 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3446
3447 2018-12-07 Florian Weimer <fweimer@redhat.com>
3448
3449 [BZ #17405]
3450 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3451 * posix/Versions (GLIBC_2.29): Export
3452 posix_spawn_file_actions_addfchdir_np.
3453 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3454 * posix/spawn_faction_destroy.c
3455 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3456 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3457 and the field action.fchdir_action.
3458 * posix/tst-spawn-chdir.c (add_chdir): New function.
3459 (do_test): Add do_fchdir loop. Call add_chdir.
3460 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3461 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3462 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3463 posix_spawn_file_actions_addfchdir_np.
3464 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3465 Likewise.
3466 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3467 Likewise.
3468 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3469 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3470 Likewise.
3471 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3472 Likewise.
3473 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3474 Likewise.
3475 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3476 Likewise.
3477 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3478 Likewise.
3479 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3480 Likewise.
3481 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3482 (GLIBC_2.29): Likewise.
3483 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3484 (GLIBC_2.29): Likewise.
3485 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3486 (GLIBC_2.29): Likewise.
3487 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3488 (GLIBC_2.29): Likewise.
3489 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3490 Likewise.
3491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3492 (GLIBC_2.29): Likewise.
3493 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3494 (GLIBC_2.29): Likewise.
3495 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3496 (GLIBC_2.29): Likewise.
3497 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3498 (GLIBC_2.29): Likewise.
3499 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3500 Likewise.
3501 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3502 Likewise.
3503 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3504 Likewise.
3505 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3506 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3507 Likewise.
3508 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3509 Likewise.
3510 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3511 Likewise.
3512 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3513 Likewise.
3514
3515 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3516
3517 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3518 trailing whitespace removed.
3519 * scripts/config.guess: Update to version 2018-11-28.
3520 * scripts/config.sub: Update to version 2018-11-28.
3521 * scripts/install-sh: Update to version 2018-03-11.20.
3522 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3523 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3524
3525 2018-12-07 Florian Weimer <fweimer@redhat.com>
3526
3527 [BZ #23927]
3528 CVE-2018-19591
3529 * inet/tst-if_index-long.c: New file.
3530 * inet/Makefile (tests): Add tst-if_index-long.
3531
3532 2018-12-07 Florian Weimer <fweimer@redhat.com>
3533
3534 * support/check.h (support_record_failure_is_failed): Declare.
3535 * support/descriptors.h: New file.
3536 * support/support_descriptors.c: Likewise.
3537 * support/tst-support_descriptors.c: Likewise.
3538 * support/support_record_failure.c
3539 (support_record_failure_is_failed): New function.
3540 * support/Makefile (libsupport-routines): Add support_descriptors.
3541 (tests): Add tst-support_descriptors.
3542
3543 2018-12-05 Zack Weinberg <zackw@panix.com>
3544 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3545
3546 * stdio-common/vfprintf-internal.c
3547 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3548 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3549 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3550 and __no_long_double.
3551 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3552 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3553 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3554 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3555 and __nldbl_*syslog* functions.
3556 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3557 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3558 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3559 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3560 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3561 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3562 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3563 (__nldbl_vwprintf, __nldbl_wprintf):
3564 Directly call the appropriate __v*printf_internal routine, passing
3565 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3566 variable names.
3567 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3568 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3569 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3570 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3571 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3572 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3573 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3574 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3575 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3576 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3577 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3578 (__nldbl_syslog, __nldbl_vsyslog):
3579 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3580 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3581 appropriate.
3582 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3583 appropriate.
3584
3585 2018-12-05 Zack Weinberg <zackw@panix.com>
3586 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3587
3588 [BZ #11319]
3589 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3590 Moved here from debug/vsprintf_chk.c.
3591 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3592 and completion logic for the strfile to match exactly what
3593 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3594 _IO_str_init_static_internal instead of maxlen-1.
3595 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3596 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3597 __vsprintf_internal.
3598
3599 * debug/vsprintf_chk.c (__vsprintf_chk)
3600 * debug/sprintf_chk.c (__sprintf_chk):
3601 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3602 'flags' argument is positive, and slen as maxlen. No need to lock
3603 the FILE and/or construct a temporary FILE. Minimize and normalize
3604 header inclusions and variable names. Do not libc_hidden_def anything.
3605
3606 * debug/asprintf_chk.c (__asprintf_chk)
3607 * debug/dprintf_chk.c (__dprintf_chk)
3608 * debug/fprintf_chk.c (__fprintf_chk)
3609 * debug/fwprintf_chk.c (__fwprintf_chk)
3610 * debug/printf_chk.c (__printf_chk)
3611 * debug/snprintf_chk.c (__snprintf_chk)
3612 * debug/swprintf_chk.c (__swprintf_chk)
3613 * debug/vasprintf_chk.c (__vasprintf_chk)
3614 * debug/vdprintf_chk.c (__vdprintf_chk)
3615 * debug/vfprintf_chk.c (__vfprintf_chk)
3616 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3617 * debug/vprintf_chk.c (__vprintf_chk)
3618 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3619 * debug/vswprintf_chk.c (__vswprintf_chk)
3620 * debug/vwprintf_chk.c (__vwprintf_chk)
3621 * debug/wprintf_chk.c (__wprintf_chk):
3622 Directly call the corresponding vxxprintf_internal function, passing
3623 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3624 the FILE and/or construct a temporary FILE. Minimize and normalize
3625 header inclusions and variable names. Do not libc_hidden_def anything.
3626
3627 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3628 __obstack_vprintf_internal.
3629 (__obstack_vprintf_chk): Convert into a wrapper that calls
3630 __obstack_vprintf_internal (these two functions already had the
3631 same code) and move to new file...
3632 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3633 file.
3634 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3635 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3636 * debug/Makefile (routines): Add vobprintf_chk.
3637
3638 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3639 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3640 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3641 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3642 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3643 (__nldbl___obstack_vfprintf_chk):
3644 Directly call the corresponding vxxprintf_internal function,
3645 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3646 duplicate comparison of slen with 0 or maxlen from the corresponding
3647 non-__nldbl function.
3648
3649 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3650 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3651 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3652 Remove libc_hidden_proto.
3653
3654 * stdio-common/vfprintf-internal.c
3655 (__vfprintf_internal, __vfwprintf_internal):
3656 Do not check _IO_FLAGS2_FORTIFY.
3657 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3658 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3659 a comment explaining why it has the maxlen argument.
3660 (_IO_acquire_lock_clear_flags2_fct): Remove.
3661 (_IO_acquire_lock_clear_flags2): Remove.
3662 (_IO_release_lock): Remove conditional statement which will
3663 now never execute.
3664 (_IO_acquire_lock): Remove variable which is now unused.
3665 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3666 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3667
3668 * stdio-common/Makefile (tests): Add tst-bz11319 and
3669 tst-bz11319-fortify2.
3670 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3671 * stdio-common/tst-bz11319-fortify2.c: New file.
3672 * stdio-common/tst-bz11319.c: Likewise.
3673
3674 2018-12-05 Zack Weinberg <zackw@panix.com>
3675 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3676
3677 * misc/syslog.c: Include libioP.h, not iolibio.h.
3678 (__vsyslog_internal): New function with the former body of
3679 __vsyslog_chk; takes mode_flags argument same as
3680 __v*printf_internal. Call __vfprintf_internal directly.
3681
3682 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3683 Remove libc_hidden_def.
3684 (__syslog, __syslog_chk): Use __vsyslog_internal.
3685 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3686
3687 * include/sys/syslog.h: Add multiple inclusion guard.
3688 Add prototype for __vsyslog_internal.
3689 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3690
3691 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3692 Use __vsyslog_internal.
3693
3694 2018-12-05 Zack Weinberg <zackw@panix.com>
3695 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3696
3697 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3698 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3699 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3700 New functions.
3701 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3702 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3703
3704 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3705 Include wctype.h here if COMPILE_WPRINTF is defined.
3706 Define __vfprintf_internal or __vfwprintf_internal, depending
3707 on COMPILE_WPRINTF.
3708 Temporarily, on entry to this function, update mode_flags
3709 according to the environmental settings corresponding to
3710 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3711 Throughout, check mode_flags instead of __ldbl_is_dbl and
3712 _IO_FLAGS2_FORTIFY on the destination FILE.
3713 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3714 Include vfprintf-internal.c. Don't include wctype.h.
3715 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3716 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3717 and vfprintf.
3718 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3719 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3720 and vfwprintf.
3721 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3722
3723 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3724 and add mode_flags argument; use __vfprintf_internal.
3725 (__vdprintf): New function. Alias vdprintf to this.
3726 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3727 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3728 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3729 (__obstack_printf): Use __obstack_printf_internal.
3730 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3731 public aliases __vsnprintf and vsnprintf.
3732 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3733 called internally.
3734 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3735 public aliases _IO_vsprintf and vsprintf.
3736 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3737 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3738 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3739 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3740 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3741
3742 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3743 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3744 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3745 * stdio-common/printf.c: Use __vfprintf_internal.
3746
3747 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3748 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3749 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3750
3751 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3752 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3753 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3754 __vfwprintf_internal.
3755
3756 * libio/libio.h: Remove libc_hidden_proto and declaration for
3757 _IO_vfprintf.
3758 Remove declaration of _IO_vfwprintf.
3759 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3760 _IO_vsprintf.
3761 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3762 _IO_obstack_printf.
3763 * include/stdio.h: Add prototype for __vasprintf.
3764 (__vsnprintf): Remove declaration, because there are no more
3765 internal calls.
3766 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3767 declaration, because there are no more internal calls.
3768
3769 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3770 __vsnprintf_internal, instead of _IO_vsnprintf.
3771 * argp/argp-help.c (__argp_error, __argp_failure): Use
3772 __vasprintf_internal, instead of _IO_vasprintf.
3773 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3774 redefine, because there are no more internal calls.
3775
3776 2018-12-05 Zack Weinberg <zackw@panix.com>
3777 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3778
3779 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3780 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3781 Include libio/strfile.h instead of libioP.h.
3782 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3783 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3784 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3785 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3786 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3787 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3788 necessary. Do not set __no_long_double. Normalize variable names.
3789 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3790 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3791 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3792 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3793 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3794 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3795 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3796 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3797 Do not set __no_long_double. Normalize variable names.
3798
3799 2018-12-05 Zack Weinberg <zackw@panix.com>
3800 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3801
3802 * stdio-common/isoc99_scanf.c
3803 * stdio-common/isoc99_fscanf.c
3804 * stdio-common/isoc99_sscanf.c
3805 * stdio-common/isoc99_vscanf.c
3806 * stdio-common/isoc99_vfscanf.c
3807 * stdio-common/isoc99_vsscanf.c
3808 * wcsmbs/isoc99_wscanf.c
3809 * wcsmbs/isoc99_fwscanf.c
3810 * wcsmbs/isoc99_swscanf.c
3811 * wcsmbs/isoc99_vwscanf.c
3812 * wcsmbs/isoc99_vfwscanf.c
3813 * wcsmbs/isoc99_vswscanf.c:
3814 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3815 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3816 No need to lock and unlock the FILE passed to that function.
3817
3818 * stdio-common/vfscanf-internal.c
3819 (__vfscanf_internal, __vfwscanf_internal):
3820 Don't look at _IO_FLAGS2_SCANF_STD.
3821 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3822 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3823 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3824
3825 2018-12-05 Zack Weinberg <zackw@panix.com>
3826 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3827
3828 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3829 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3830 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3831 * libio/strfile.h: Add multiple inclusion guard.
3832 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3833
3834 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3835 consistency with the other version of this file.
3836 (ldbl_compat_symbol): New macro.
3837 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3838 New macro.
3839
3840 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3841 Define __vfscanf_internal or __vfwscanf_internal, depending on
3842 COMPILE_WSCANF; don't define any other public symbols.
3843 Remove errval and code to set errp.
3844 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3845 as the mode_flags argument.
3846 (encode_error, conv_error, input_error): Don't set errval.
3847 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3848 Include vfscanf-internal.c.
3849 * stdio-common/vfscanf.c: New file defining the public entry
3850 point vfscanf, which calls __vfscanf_internal.
3851 * stdio-common/vfwscanf.c: New file defining the public entry
3852 point vfwscanf, which calls __vfwscanf_internal.
3853
3854 * stdio-common/iovfscanf.c: New file.
3855 * stdio-common/iovfwscanf.c: Likewise.
3856
3857 * stdio-common/Makefile (routines): Add vfscanf-internal,
3858 vfwscanf-internal, iovfscanf, iovfwscanf.
3859 * stdio-common/Versions: Mention GLIBC_2.29, so that
3860 it can be used in SHLIB_COMPAT expressions.
3861 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3862 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3863 Call __vfscanf_internal, instead of _IO_vfscanf.
3864 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3865 _IO_vfscanf.
3866 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3867 _IO_vfwscanf.
3868
3869 * libio/iovsscanf.c: Clean up includes, when possible. Use
3870 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3871 __vfscanf_internal or __vfwscanf_internal directly.
3872 * libio/iovswscanf.c: Likewise.
3873 * libio/swscanf.c: Likewise.
3874 * libio/vscanf.c: Likewise.
3875 * libio/vwscanf.c: Likewise.
3876 * libio/wscanf.c: Likewise.
3877 * stdio-common/isoc99_fscanf.c: Likewise.
3878 * stdio-common/isoc99_scanf.c: Likewise.
3879 * stdio-common/isoc99_sscanf.c: Likewise.
3880 * stdio-common/isoc99_vfscanf.c: Likewise.
3881 * stdio-common/isoc99_vscanf.c: Likewise.
3882 * stdio-common/isoc99_vsscanf.c: Likewise.
3883 * stdio-common/scanf.c: Likewise.
3884 * stdio-common/sscanf.c: Likewise.
3885 * wcsmbs/isoc99_fwscanf.c: Likewise.
3886 * wcsmbs/isoc99_swscanf.c: Likewise.
3887 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3888 * wcsmbs/isoc99_vswscanf.c: Likewise.
3889 * wcsmbs/isoc99_vwscanf.c: Likewise.
3890 * wcsmbs/isoc99_wscanf.c: Likewise.
3891
3892 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3893
3894 * include/time.h
3895 (__tz_compute): Replace time_t with __time64_t.
3896 (__tz_convert): Replace time_t* with __time64_t.
3897 (__offtime): Replace time_t* with __time64_t.
3898 * time/gmtime.c
3899 (__gmtime_r): Adjust call to __tz_convert.
3900 (gmtime): Likewise.
3901 * time/localtime.c
3902 (__localtime_r): Likewise.
3903 (localtime): Likewise.
3904 * time/offtime.c: Replace time_t with __time64_t.
3905 * time/tzset.c: Likewise.
3906
3907 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3908
3909 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3910 dynamic linker unless [$(run-built-tests) = yes].
3911
3912 2018-12-03 DJ Delorie <dj@delorie.com>
3913
3914 * support/test-container.c (check_for_unshare_hints): New.
3915 (main): Call it if unshare fails. Add support for "su" scriptlet
3916 command.
3917
3918 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3919
3920 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3921 'START' to indicate that start text should be output.
3922 (gen_test): Likewise.
3923 (main): Generate 'START' for first symbol or '--' line, or at end
3924 of input if not previously generated.
3925
3926 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3927
3928 [BZ #19767]
3929 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3930 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3931 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3932 ALWAYS_USE_VSYSCALL.
3933
3934 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3935
3936 [BZ #23913]
3937 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3938 new_argv by one.
3939
3940 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3941
3942 [BZ #23923]
3943 * locale/programs/localedef.c: Declare boolean hard_links default true.
3944 (options): Add --no-hard-links option.
3945 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3946 * locale/programs/localedef.h: Declare prototype for hard_links.
3947 * locale/programs/locfile.c (write_locale_data): Don't use hard
3948 links if hard_links is false.
3949
3950 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3951
3952 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3953 cpu_features_basic.
3954 (__cache_sysconf): Likewise.
3955 (init_cacheinfo): Likewise.
3956 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3957 populate COMMON_CPUID_INDEX_80000007 and
3958 COMMON_CPUID_INDEX_80000008.
3959 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3960 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3961 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3962 (init_cpu_features): Use _Static_assert on
3963 index_arch_Fast_Unaligned_Load.
3964 __get_cpuid_registers and __get_arch_feature. Updated for
3965 cpu_features_basic. Set stepping in cpu_features.
3966 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3967 (FEATURE_INDEX_2): New.
3968 (FEATURE_INDEX_MAX): Changed to enum.
3969 (COMMON_CPUID_INDEX_D_ECX_1): New.
3970 (COMMON_CPUID_INDEX_80000007): Likewise.
3971 (COMMON_CPUID_INDEX_80000008): Likewise.
3972 (cpuid_registers): Likewise.
3973 (cpu_features_basic): Likewise.
3974 (CPU_FEATURE_USABLE): Likewise.
3975 (bit_arch_XXX_Usable): Likewise.
3976 (cpu_features): Use cpuid_registers and cpu_features_basic.
3977 (bit_arch_XXX): Reweritten.
3978 (bit_cpu_XXX): Likewise.
3979 (index_cpu_XXX): Likewise.
3980 (reg_XXX): Likewise.
3981 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3982 <support/check.h>.
3983 (CHECK_CPU_FEATURE): New.
3984 (CHECK_CPU_FEATURE_USABLE): Likewise.
3985 (cpu_kinds): Likewise.
3986 (do_test): Print vendor, family, model and stepping. Check
3987 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3988 (TEST_FUNCTION): Removed.
3989 Include <support/test-driver.c> instead of
3990 "../../test-skeleton.c".
3991 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3992 Check POPCNT instead of POPCOUNT.
3993 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3994
3995 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3996
3997 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3998 there is no element in `consts'.
3999
4000 2018-12-01 Florian Weimer <fweimer@redhat.com>
4001
4002 * support/support_capture_subprocess.c
4003 (support_capture_subprocess): Check that pipe descriptors have
4004 expected values. Close original pipe descriptors in subprocess.
4005
4006 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4007
4008 [BZ #23032]
4009 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4010 attr with __pthread_default_barrierattr.
4011 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4012 attr with __pthread_default_condattr.
4013 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4014 attr with __pthread_default_mutexattr.
4015 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4016 attr with __pthread_default_rwlockattr.
4017
4018 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4019
4020 * manual/tunables.texi (POSIX Thread Tunables): New node.
4021 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4022 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4023 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4024 __pthread_tunables_init.
4025 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4026 (max_adaptive_count): Define.
4027 * nptl/pthread_mutex_conf.c: New file.
4028 * nptl/pthread_mutex_conf.h: New file.
4029 * sysdeps/generic/adaptive_spin_count.h: New file.
4030 * sysdeps/nptl/dl-tunables.list: New file.
4031 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4032 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4033 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4034 Likewise.
4035
4036 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4037
4038 [BZ #20544]
4039 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4040 * stdlib/on_exit.c (__on_exit): Likewise.
4041 * stdlib/Makefile (tests): Add tst-bz20544.
4042 * stdlib/tst-bz20544.c: New test.
4043
4044 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4045
4046 [BZ #19767]
4047 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4048 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4049 New.
4050
4051 2018-11-30 Florian Weimer <fweimer@redhat.com>
4052
4053 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4054 Extend error logging.
4055 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4056 symbol.
4057
4058 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4059
4060 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4061 __sigismember instead of sigismember.
4062 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4063 cancel_handler): New definitions.
4064 (do_system): Use posix_spawn instead of fork and execl and remove
4065 reentracy code.
4066 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4067 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4068 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4069 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4070 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4071 * sysdeps/unix/sysv/linux/system.c: Likewise.
4072
4073 [BZ #22834]
4074 [BZ #17490]
4075 * NEWS: Add new semantic for atfork with popen and system.
4076 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4077 fork and execl.
4078
4079 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4080
4081 [BZ #23690]
4082 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4083 modification order when accessing reloc_result->addr.
4084 * include/link.h (reloc_result): Add field init.
4085 * nptl/Makefile (tests): Add tst-audit-threads.
4086 (modules-names): Add tst-audit-threads-mod1 and
4087 tst-audit-threads-mod2.
4088 Add rules to build tst-audit-threads.
4089 * nptl/tst-audit-threads-mod1.c: New file.
4090 * nptl/tst-audit-threads-mod2.c: Likewise.
4091 * nptl/tst-audit-threads.c: Likewise.
4092 * nptl/tst-audit-threads.h: Likewise.
4093
4094 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4095
4096 * scripts/gen-as-const.py: New file.
4097 * scripts/gen-as-const.awk: Remove.
4098 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4099 gen-as-const.py.
4100 ($(objpfx)test-as-const-%.c): Likewise.
4101
4102 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4103
4104 * elf/dl-exception.c: Include <_itoa.h>.
4105
4106 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4107
4108 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4109 returned by __f_setlk.
4110
4111 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4112 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4113
4114 * elf/Makefile (tests-internal): Add tst-create_format1.
4115 * elf/dl-exception.c (_dl_exception_create_format): Support
4116 %x, %lx and %zx.
4117 * elf/tst-create_format1.c: New file.
4118
4119 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4120
4121 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4122 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4123 gnulib.)
4124 * argp/argp-help.c (__argp_failure): Likewise.
4125
4126 2018-11-29 Mao Han <han_mao@c-sky.com>
4127
4128 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4129 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4130 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4131 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4132 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4133 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4134 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4135 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4136 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4137 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4138 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4139 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4140 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4141 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4142 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4143 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4144 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4145 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4146 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4147 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4148 (R_CKCORE_TLS_TPOFF32): New defines.
4149
4150 2018-11-29 Florian Weimer <fweimer@redhat.com>
4151
4152 * posix/Makefile (before-compile): Remove testcases.h and
4153 ptestcases.h.
4154 (generated): Add testcases.h and ptestcases.h.
4155 (testcases.h, ptestcases.h): Move to $(objpfx).
4156 (runtests.o): Add dependency on testcases.h.
4157 (runptests.o): Add dependency on ptestcases.h.
4158 * posix/testcases.h, posix/ptestcases.h: Remove files.
4159 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4160 not touch posix/testcases.h and posix/ptestcases.h.
4161
4162 2018-11-28 Florian Weimer <fweimer@redhat.com>
4163
4164 support: Add signal support to support_capture_subprocess_check.
4165 * support/capture_subprocess.h (support_capture_subprocess_check):
4166 Adjust comment and rename parameter.
4167 * support/support_capture_subprocess_check.c
4168 (print_actual_status): New function.
4169 (support_capture_subprocess_check): Support negative
4170 status_or_signal. Call print_actual_status.
4171 * support/tst-support_capture_subprocess.c (do_test): Call
4172 support_capture_subprocess_check.
4173 * libio/tst-vtables-common.c (termination_status)
4174 (init_termination_status): Remove.
4175 (check_for_termination): Adjust support_capture_subprocess_check
4176 call.
4177 (do_test): Remove call to init_termination_status.
4178
4179 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4180
4181 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4182 source directory instead of a copy.
4183 (CommandList.create_copy_dir): Remove.
4184
4185 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4186
4187 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4188
4189 2018-11-28 Florian Weimer <fweimer@redhat.com>
4190
4191 * support/support.h (support_quote_string): Do not use str
4192 parameter name.
4193
4194 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4195
4196 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4197 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4198
4199 2018-11-27 Florian Weimer <fweimer@redhat.com>
4200
4201 * support/support.h (support_quote_string): Declare.
4202 * support/support_quote_string.c: New file.
4203 * support/tst-support_quote_string.c: Likewise.
4204 * support/Makefile (libsupport-routines): Add
4205 support_quote_string.
4206 (tests): Add tst-support_quote_string.
4207
4208 2018-11-27 Florian Weimer <fweimer@redhat.com>
4209
4210 [BZ #23927]
4211 CVE-2018-19591
4212 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4213 descriptor leak in case of ENODEV error.
4214
4215 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4216
4217 [BZ #19767]
4218 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4219 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4220 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4221
4222 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4223
4224 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4225 Error for unknown lines.
4226
4227 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4228
4229 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4230 Touch additional files.
4231
4232 2018-11-26 Florian Weimer <fweimer@redhat.com>
4233
4234 [BZ #23907]
4235 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4236 double-frees.
4237
4238 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4239
4240 [BZ #19767]
4241 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4242 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4243 SHARED. Include sysdep.h.
4244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4245 ALWAYS_USE_VSYSCALL.
4246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4247 ALWAYS_USE_VSYSCALL.
4248
4249 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4250
4251 [BZ #19767]
4252 * nptl/Makefile (tests-static): Add tst-cond11-static.
4253 (tests): Likewise.
4254 * nptl/tst-cond11-static.c: New File.
4255 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4256 tst-affinity-static.
4257 (tests): Likewise.
4258 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4259 instead of SHARED.
4260 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4261 (USE_VSYSCALL): Likewise.
4262 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4263 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4264 instead of SHARED.
4265 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4266 SHARED.
4267 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4268 New.
4269
4270 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4271
4272 [BZ #23915]
4273 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4274 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4275 Undefine.
4276
4277 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4278
4279 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4280 (tst-cet-legacy-1a-ARGS): New.
4281 ($(objpfx)tst-cet-legacy-1a): New target.
4282 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4283
4284 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4285
4286 * conform/conformtest.py (CompileSubTest.__init__): Set
4287 self.run_early to False.
4288 (ExecuteSubTest.__init__): Likewise.
4289 (HeaderTests.run): Try running all non-optional, non-XFAILed
4290 compilation tests in a single execution of the compiler.
4291
4292 * conform/conformtest.py (CompileSubTest): New class.
4293 (ExecuteSubTest): Likewise.
4294 (ElementTest.run): Rename to gen_subtests. Append tests to
4295 self.subtests instead of running them.
4296 (ConstantTest.run): Likewise.
4297 (SymbolTest.run): Likewise.
4298 (TypeTest.run): Likewise.
4299 (TagTest.run): Likewise.
4300 (FunctionTest.run): Likewise.
4301 (VariableTest.run): Likewise.
4302 (MacroFunctionTest.run): Likewise.
4303 (MacroStrTest.run): Likewise.
4304 (HeaderTests.handle_test_line): Generate subtests for tests.
4305 (HeaderTests.run): Run subtests for tests.
4306
4307 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4308
4309 * math/Versions (GLIBC_2.29): Add pow.
4310 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4311 symbol.
4312 * math/w_pow.c: New file.
4313 * sysdeps/i386/fpu/w_pow.c: New file.
4314 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4315 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4316 and add necessary aliases.
4317 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4318 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4319 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4320 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4321 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4322 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4323 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4324 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4325 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4328 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4329 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4336 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4337 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4338 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4339 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4340 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4341 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4342 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4343 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4344 __pow.
4345 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4346 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4347 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4348
4349 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4350
4351 * math/Versions (GLIBC_2.29): Add log2.
4352 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4353 symbol.
4354 * math/w_log2.c: New file.
4355 * sysdeps/i386/fpu/w_log2.c: New file.
4356 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4357 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4358 and add necessary aliases.
4359 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4360 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4361 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4369 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4370 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4371 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4378 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4379 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4380 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4381 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4382 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4383 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4384 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4385
4386 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4387
4388 * math/Versions (GLIBC_2.29): Add log.
4389 * math/w_log_compat.c (__log_compat): Change to versioned compat
4390 symbol.
4391 * math/w_log.c: New file.
4392 * sysdeps/i386/fpu/w_log.c: New file.
4393 * sysdeps/ia64/fpu/e_log.S: Update.
4394 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4395 and add necessary aliases.
4396 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4397 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4398 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4401 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4402 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4403 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4404 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4405 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4406 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4407 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4408 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4409 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4410 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4415 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4416 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4417 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4418 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4419 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4420 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4421 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4422 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4423 __log.
4424 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4425 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4426 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4427 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4428
4429 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4430
4431 * math/Versions (GLIBC_2.29): Add exp and exp2.
4432 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4433 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4434 * math/w_exp_compat.c (__exp_compat): Likewise.
4435 * math/w_exp.c: New file.
4436 * math/w_exp2.c: New file.
4437 * sysdeps/i386/fpu/w_exp.c: New file.
4438 * sysdeps/i386/fpu/w_exp2.c: New file.
4439 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4440 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4441 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4442 and add necessary aliases.
4443 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4444 and add necessary aliases.
4445 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4446 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4447 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4448 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4449 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4450 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4451 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4452 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4453 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4454 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4455 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4456 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4457 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4458 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4459 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4460 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4461 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4463 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4466 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4467 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4468 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4469 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4470 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4471 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4472 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4473 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4474 (__ieee754_exp): Rename to __exp.
4475 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4476 (__ieee754_exp): Rename to __exp.
4477 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4478 (__ieee754_exp): Rename to __exp.
4479 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4480 __exp.
4481 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4482
4483 2018-11-20 DJ Delorie <dj@redhat.com>
4484
4485 * malloc/malloc.c (tcache_entry): Add key field.
4486 (tcache_put): Set it.
4487 (tcache_get): Likewise.
4488 (_int_free): Check for double free in tcache.
4489 * malloc/tst-tcfree1.c: New.
4490 * malloc/tst-tcfree2.c: New.
4491 * malloc/Makefile: Run the new tests.
4492 * manual/probes.texi: Document memory_tcache_double_free probe.
4493
4494 * dlfcn/dlerror.c (check_free): Prevent double frees.
4495
4496 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4497
4498 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4499
4500 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4501
4502 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4503 in tests. Use names for format arguments.
4504 (ConstantTest.run): Likewise.
4505 (SymbolTest.run): Likewise.
4506 (TypeTest.run): Likewise.
4507 (TagTest.run): Likewise.
4508 (FunctionTest.run): Likewise.
4509 (VariableTest.run): Likewise.
4510 (MacroFunctionTest.run): Likewise.
4511 (MacroStrTest.run): Likewise.
4512 (HeaderTests.__init__): Set self.num_tests.
4513 (HeaderTests.handle_test_line): Set test.num. Increment
4514 self.num_tests.
4515
4516 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4517
4518 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4519 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4520 SEEK_SET.
4521
4522 2018-11-19 Mao Han <han_mao@c-sky.com>
4523
4524 * scripts/config.guess: Update to version 2018-08-29.
4525 * scripts/config.sub: Update to version 2018-08-29.
4526
4527 2018-11-19 Florian Weimer <fweimer@redhat.com>
4528
4529 support: Print timestamps in timeout handler.
4530 * support/support_test_main.c (print_timestamp): New function.
4531 (signal_handler): Use it to print the termination time and the
4532 time of the last write to standard output.
4533
4534 2018-11-16 Zack Weinberg <zackw@panix.com>
4535 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4536
4537 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4538 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4539 argument.
4540 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4541 and add flags argument. Check flags instead of __ldbl_is_dbl when
4542 deciding whether to set is_long_double.
4543 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4544 passing zero for flags argument.
4545 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4546
4547 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4548 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4549 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4550 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4551 variable names. Remove libc_hidden_def/libc_hidden_proto from
4552 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4553 longer called from within the library.
4554 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4555 for __nldbl___vstrfmon_l, declare it explicitly.
4556
4557 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4558
4559 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4560
4561 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4562 macros
4563 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4564 F_SETLK64, F_SETLKW64, respectively.
4565 * sysdeps/mach/hurd/f_setlk.c: New file.
4566 * sysdeps/mach/hurd/f_setlk.h: New file.
4567 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4568 f_setlk.
4569 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4570 (__libc_fcntl): Move non-flock operations to...
4571 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4572 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4573
4574 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4575
4576 mktime: DEBUG_MKTIME cleanup
4577 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4578 And it’s no longer needed now that glibc and Gnulib both have
4579 their own testing mechanisms for mktime.
4580 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4581
4582 mktime: fix non-EOVERFLOW errno handling
4583 [BZ#23789]
4584 mktime was not properly reporting failures when the underlying
4585 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4586 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4587 The problem could happen on non-glibc platforms, with Gnulib.
4588 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4589 (tm_diff): ... this simpler function, which does not change errno.
4590 All callers changed to deal with errno themselves.
4591 (ranged_convert, __mktime_internal): Return failure immediately if
4592 the underlying function reports any failure other than EOVERFLOW.
4593 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4594 gap code fails.
4595
4596 mktime: fix bug with Y2038 DST transition
4597 [BZ#23789]
4598 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4599 mishandle a DST transition that jumps over the Y2038 boundary.
4600 No such DST transitions are known so this is only a theoretical
4601 bug, but we might as well do things right.
4602
4603 mktime: make more room for overflow
4604 [BZ#23789]
4605 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4606 This is so that we can add tm_diff results to a previous guess,
4607 which will be useful in a later patch.
4608
4609 mktime: simplify offset guess
4610 [BZ#23789]
4611 * time/mktime.c (__mktime_internal): Omit excess precision.
4612
4613 mktime: new test for mktime failure
4614 [BZ#23789]
4615 Based on a test suggested by Albert Aribaud in:
4616 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4617 * time/Makefile (tests): Add bug-mktime4.
4618 * time/bug-mktime4.c: New file.
4619
4620 mktime: fix EOVERFLOW bug
4621 [BZ#23789]
4622 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4623 Include libc-config.h, not config.h, for __set_errno.
4624 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4625
4626 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4627
4628 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4629 __attribute_copy__ to copy attributes from name. Drop static qualifier
4630 to avoid warnings about leaf attribute not having effect on static
4631 functions.
4632
4633 2018-11-13 Florian Weimer <fweimer@redhat.com>
4634
4635 * malloc/malloc.c (fastbin_push_entry): New function.
4636 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4637 (REMOVE_FB): Remove macro.
4638 (_int_malloc): Use fastbin_pop_entry and reindent.
4639 (_int_free): Use fastbin_push_entry.
4640 (malloc_consolidate): Use atomic_exchange_acquire.
4641
4642 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4643
4644 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4645 alias attribute, not with strong_alias.
4646
4647 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4648 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4649 with additional parameter thread.
4650 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4651 in terms of __hidden_ver2.
4652 (hidden_tls_def): New macro.
4653 (libc_hidden_tls_def): Likewise.
4654 (rtld_hidden_tls_def): Likewise.
4655 (libm_hidden_tls_def): Likewise.
4656 (libmvec_hidden_tls_def): Likewise.
4657 (libresolv_hidden_tls_def): Likewise.
4658 (librt_hidden_tls_def): Likewise.
4659 (libdl_hidden_tls_def): Likewise.
4660 (libnss_files_hidden_tls_def): Likewise.
4661 (libnsl_hidden_tls_def): Likewise.
4662 (libnss_nisplus_hidden_tls_def): Likewise.
4663 (libutil_hidden_tls_def): Likewise.
4664 (libutil_hidden_tls_def): Likweise.
4665 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4666 libc_hidden_tls_def.
4667 (__sim_disabled_exceptions_thread): Likewise.
4668 (__sim_round_mode_thread): Likewise.
4669
4670 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4671 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4672 copy attributes from name.
4673
4674 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4675
4676 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4677 Use __attribute_copy__ to copy attributes from name.
4678
4679 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4680 with __hidden_ver1 call.
4681 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4682 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4683 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4684 (__cosf): Do not declare here.
4685 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4686 (__sincosf): Do not declare here.
4687 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4688 (__sinf): Do not declare here.
4689
4690 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4691 (__BIG_ENDIAN): Likewise.
4692 (__BYTE_ORDER): Likewise.
4693 (strong_alias): Likewise.
4694 (_strong_alias): Likewise.
4695
4696 2018-11-12 Florian Weimer <fweimer@redhat.com>
4697
4698 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4699 function. Move after the definition of in_smallbin_range. Do not
4700 use __builtin_expect for paths that lead to a noreturn function.
4701 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4702 because it is unclear whether this is in fact an unlikely
4703 condition.
4704 (_int_malloc, _int_free): Adjust.
4705 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4706 variables.
4707 * malloc/arena.c (heap_trim): Likewise.
4708
4709 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4710
4711 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4712 it, free it if needed.
4713 (reauthenticate): Test and use ccwdir.
4714 (child_init_port): In non-resetids case, test and use ccwdir.
4715 (child_chdir): New nested function to set ccwdir.
4716 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4717 * hurd/hurd/port.h (_hurd_port_move): New function.
4718 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4719 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4720 * hurd/Versions (_hurd_port_move): Export function.
4721 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4722 symbol.
4723 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4724 of dtablesize for allocating dtable_cloexec.
4725
4726 2018-11-09 Martin Sebor <msebor@redhat.com>
4727
4728 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4729 it's already defined.
4730 (_strong_alias): Use __attribute_copy__.
4731 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4732 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4733 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4734 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4735 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4736 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4737 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4738 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4739 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4740 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4741 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4742 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4743 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4744 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4745 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4746 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4747 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4748 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4749 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4750
4751 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4752
4753 * misc/tst-efgcvt.c: Include support/check.h and
4754 support/test-driver.c. Do not include test-skeleton.c.
4755 (error_count): Remove.
4756 (output_error): Replace increments to error_count with calls to
4757 support_record_failure.
4758 (output_r_error): Likewise.
4759 (special): Likewise.
4760 (do_test): Unconditionally return zero.
4761 (TEST_FUNCTION): Remove.
4762
4763 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4764
4765 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4766 not $(@D)/scratch.
4767 ($(linknamespace-header-tests)): Likewise.
4768
4769 * conform/conformtest.py: New file.
4770 * conform/conformtest.pl: Remove.
4771 * conform/GlibcConform.pm: Likewise.
4772 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4773 (KEYWORDS_C99): Likewise.
4774 (KEYWORDS): Likewise.
4775 * conform/Makefile ($(conformtest-header-tests)): Use
4776 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4777 option. Use --header instead of --headers.
4778 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4779 function entries.
4780 * conform/data/spawn.h-data: Likewise.
4781 * conform/data/fcntl.h-data (openat): Add space after function
4782 name.
4783 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4784 (wcscasecmp_l): Likewise.
4785 * conform/data/termios.h-data (c_cc): Add space after element
4786 name.
4787
4788 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4789
4790 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4791 instead of manually comparing and reporting mismatching strings.
4792 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4793 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4794
4795 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4796
4797 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4798 __ASSUME_SOCKETCALL.
4799 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4800 (__ASSUME_SOCKETCALL): Remove.
4801 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4802 (__ASSUME_SOCKETCALL): Likewise.
4803 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4804 (__ASSUME_SOCKETCALL): Likewise.
4805 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4806 (__ASSUME_SOCKETCALL): Likewise.
4807 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4808 (__ASSUME_SOCKETCALL): Likewise.
4809 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4810 (__ASSUME_SOCKETCALL): Likewise.
4811 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4812 (__ASSUME_SOCKETCALL): Likewise.
4813
4814 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4815
4816 [BZ #23509]
4817 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4818 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4819 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4820 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4821 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4822 lc_unknown.
4823
4824 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4825
4826 [BZ #17630]
4827 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4828
4829 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4830
4831 [BZ #23867]
4832 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4833 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4834 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4835 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4836
4837 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4838
4839 * support/support_test_compare_string.c
4840 (support_test_compare_string): Fix printf format.
4841
4842 2018-11-07 Florian Weimer <fweimer@redhat.com>
4843
4844 Implement TEST_COMPARE_STRING.
4845 * support/check.h (TEST_COMPARE_STRING): Define.
4846 (support_test_compare_string): Declare.
4847 * support/Makefile (libsupport-routines): Add
4848 support_test_compare_string.
4849 (tests): Add tst-test_compare_string.
4850 * support/support_test_compare_string.c: New file.
4851 * support/tst-test_compare_string.c: Likewise.
4852
4853 2018-11-07 Andreas Schwab <schwab@suse.de>
4854
4855 [BZ #23864]
4856 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4857 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4858 Undef.
4859
4860 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4861
4862 [BZ #23862]
4863 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4864 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4865 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4866 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4867 Likewise.
4868
4869 2018-11-06 Florian Weimer <fweimer@redhat.com>
4870
4871 [BZ #17405]
4872 * posix/Makefile (routines): Add spawn_faction_addchdir.
4873 (tests): Add tst-spawn-chdir.
4874 * posix/Versions (GLIBC_2.29): Add
4875 posix_spawn_file_actions_addchdir_np.
4876 * posix/spawn_faction_addchdir.c: New file.
4877 * posix/spawn_faction_destroy.c
4878 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4879 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4880 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4881 chdir_action.
4882 * posix/tst-spawn-chdir.c: New file.
4883 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4884 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4885 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4886 posix_spawn_file_actions_addchdir_np.
4887 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4888 Likewise.
4889 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4890 Likewise.
4891 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4892 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4893 Likewise.
4894 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4895 Likewise.
4896 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4897 Likewise.
4898 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4899 Likewise.
4900 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4901 Likewise.
4902 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4903 Likewise.
4904 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4905 (GLIBC_2.29): Likewise.
4906 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4907 (GLIBC_2.29): Likewise.
4908 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4909 (GLIBC_2.29): Likewise.
4910 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4911 (GLIBC_2.29): Likewise.
4912 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4913 Likewise.
4914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4915 (GLIBC_2.29): Likewise.
4916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4917 (GLIBC_2.29): Likewise.
4918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4919 (GLIBC_2.29): Likewise.
4920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4921 (GLIBC_2.29): Likewise.
4922 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4923 Likewise.
4924 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4925 Likewise.
4926 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4927 Likewise.
4928 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4929 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4930 Likewise.
4931 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4932 Likewise.
4933 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4934 Likewise.
4935 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4936 Likewise.
4937
4938 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4939
4940 * misc/Makefile (tests): Add tst-ldbl-error.
4941 * misc/tst-ldbl-error.c: New file.
4942
4943 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4944
4945 * misc/Makefile (tests): Add tst-ldbl-warn.
4946 * misc/tst-ldbl-warn.c: New file.
4947
4948 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4949
4950 * argp/Makefile (tests): Add tst-ldbl-argp.
4951 * argp/tst-ldbl-argp.c: New file.
4952
4953 2018-11-05 Arjun Shankar <arjun@redhat.com>
4954
4955 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4956 __gconv_path_elem and call __gconv_get_path unconditionally.
4957
4958 2018-11-05 Andreas Schwab <schwab@suse.de>
4959
4960 [BZ #22927]
4961 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4962 creating the first helper thread failed.
4963
4964 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4965
4966 * sysdeps/mach/hurd/msync.c: New file.
4967
4968 2018-11-02 Florian Weimer <fweimer@redhat.com>
4969
4970 * support/shell-container.c (copy_func): Call
4971 support_copy_file_range instead of copy_file_range to support
4972 cross-device copies.
4973
4974 2018-11-02 Florian Weimer <fweimer@redhat.com>
4975
4976 * support/test-container.c: Include <libc-pointer-arith.h> for
4977 ALIGN_UP.
4978
4979 2018-11-01 Zong Li <zong@andestech.com>
4980
4981 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4982 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4983 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4984 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4985
4986 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4987 variable to avoid overlap arguments.
4988
4989 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4990
4991 * posix/bug-regex22.c (main): Use puts with distinct error
4992 messages for unexpected success of re_compile_pattern, not printf
4993 with NULL argument to %s.
4994
4995 * stdio-common/bug22.c: Include <libc-diag.h>.
4996 (do_test): Disable -Wformat-overflow= warnings around fprintf
4997 calls outputting more than INT_MAX characters.
4998 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4999 around printf call with NULL %s argument.
5000
5001 [BZ #23848]
5002 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5003 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5004 Undefine.
5005 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5006 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5007 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5008 (__ASSUME_SENDTO_SYSCALL): Likewise.
5009 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5010 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5011 [!__arch64__].
5012 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5013 (__ASSUME_CONNECT_SYSCALL): Likewise.
5014 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5015 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5016 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5017 Define.
5018 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5019 Likewise.
5020 [__LINUX_KERNEL_VERSION >= 0x040400]
5021 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5022 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5023 Remove.
5024 (listen): Likewise.
5025 (setsockopt): Likewise.
5026
5027 2018-11-01 Fredrik Noring <noring@nocrew.org>
5028
5029 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5030 with the ISA override.
5031
5032 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5033
5034 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5035 #endif.
5036
5037 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5038
5039 * manual/errno.texi (EIEIO): Document how translators should
5040 translate the error message.
5041 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5042 printing trailing whitespaces refused by git.
5043 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5044 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5045 * hurd/Makefile (user-interfaces): Add pci.
5046
5047 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5048
5049 * conform/linknamespace.py: New file.
5050 * conform/linknamespace.pl: Remove file.
5051 * conform/Makefile ($(linknamespace-header-tests)): Use
5052 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5053 option.
5054
5055 2018-10-30 Florian Weimer <fweimer@redhat.com>
5056
5057 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5058 memory leaks.
5059
5060 2018-10-30 Florian Weimer <fweimer@redhat.com>
5061
5062 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5063
5064 2018-10-30 Florian Weimer <fweimer@redhat.com>
5065
5066 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5067 support_blob_repeat.
5068
5069 2018-10-30 Florian Weimer <fweimer@redhat.com>
5070
5071 Avoid spurious test failures in stdlib/test-bz22786.
5072 * support/Makefile (libsupport-routines): Add blob_repeat.
5073 (tests): Add tst-support_blob_repeat.
5074 * support/blob_repeat.h: New file.
5075 * support/blob_repeat.c: Likewise.
5076 * support/tst-support_blob_repeat.c: Likewise.
5077 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5078 support_blob_repeat_allocate.
5079
5080 2018-10-30 Andreas Schwab <schwab@suse.de>
5081
5082 [BZ #23125]
5083 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5084 Don't use tail call.
5085 * elf/tst-unwind-main.c: New file.
5086 * elf/Makefile (tests): Add tst-unwind-main.
5087 (CFLAGS-tst-unwind-main.c): Define.
5088
5089 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5090
5091 [BZ #23791]
5092 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5093 n_cs_precedes to 0.
5094 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5095
5096 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5097
5098 * conform/glibcconform.py: Do not import shutil.
5099 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5100 of mkdtemp.
5101
5102 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5103 critic_missing for versions before 3.4.
5104 * configure: Regenerated.
5105 * manual/install.texi (Tools for Compilation): Document
5106 requirement for Python to build glibc.
5107 * INSTALL: Regenerated.
5108 * Rules [PYTHON]: Make code unconditional.
5109 * benchtests/Makefile [PYTHON]: Likewise.
5110 * conform/Makefile [PYTHON]: Likewise.
5111 * manual/Makefile [PYTHON]: Likewise.
5112 * math/Makefile [PYTHON]: Likewise.
5113
5114 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5115
5116 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5117 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5118 answer to interrupt_operation, return EIEIO instead of EINTR.
5119 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5120 _hurd_intr_rpc_msg_about_to global point to start of controlled
5121 assembly snippet. Make it check canceled flag.
5122 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5123 the _hurd_intr_rpc_msg_about_to point.
5124 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5125 issue, remove cancel flag check.
5126
5127 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5128
5129 * scripts/build-many-glibcs.py: Remove compatibility for missing
5130 os.cpu_count and re.fullmatch.
5131
5132 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5133
5134 [BZ #23822]
5135 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5136 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5137 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5138
5139 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5140
5141 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5142 macro.
5143
5144 2018-10-25 Florian Weimer <fweimer@redhat.com>
5145
5146 [BZ #23562]
5147 [BZ #23821]
5148 XFAIL siginfo_t si_band conform test on sparc64.
5149 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5150 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5151 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5152 (conformtest-xfail-conds): Add sparc64-linux.
5153 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5154 sparc64.
5155 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5156
5157 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5158
5159 * elf/elf.h (NT_MIPS_DSP): New macro.
5160 (NT_MIPS_FP_MODE): Likewise.
5161
5162 2018-10-25 Zong Li <zong@andestech.com>
5163
5164 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5165 name by adding the file extension (.so).
5166
5167 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5168
5169 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5170 (test-xfail-ISO11/threads.h/linknamespace,
5171 test-xfail-ISO11/threads.h/conform): Add.
5172
5173 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5174
5175 * math/gen-libm-test.py: Import os.
5176 (ALL_FLOATS_MANUAL): New constant.
5177 (ALL_FLOATS_SUFFIX): Likewise.
5178 (Ulps.all_functions): New function.
5179 (real_all_ulps): Likewise.
5180 (generate_err_table_sub): Likewise.
5181 (generate_err_table): Likewise.
5182 (main): Handle -s and -m options.
5183 * manual/libm-err-tab.pl: Remove.
5184 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5185 instead of libm-err-tab.pl.
5186 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5187 != no].
5188 * manual/install.texi (Tools for Compilation): Document
5189 requirement for Python to build manual.
5190 * INSTALL: Regenerated.
5191
5192 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5193
5194 * bits/time64.h: New file.
5195 * include/time.h: Replace internal_time_t with __time64_t.
5196 * posix/bits/types (__time64_t): Add.
5197 * stdlib/Makefile: Add bits/time64.h to includes.
5198 * time/tzfile.c: Replace internal_time_t with __time64_t.
5199
5200 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5201
5202 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5203 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5204 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5205 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5206 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5207 prototype.
5208 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5209 * posix/spawn_faction_addclose.c
5210 (__posix_spawn_file_actions_addclose): Add hidden definition.
5211 * posix/spawn_faction_adddup2.c
5212 (__posix_spawn_file_actions_adddup2): Likewise.
5213 * posix/spawn_faction_destroy.c
5214 (__posix_spawn_file_actions_destroy): Likewise.
5215 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5216 Likewise.
5217 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5218 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5219 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5220 Likewise.
5221 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5222 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5223 Likewise.
5224
5225 2018-10-24 Andreas Schwab <schwab@suse.de>
5226
5227 [BZ #18093]
5228 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5229 format cache.
5230 * elf/cache.c (print_cache): Likewise.
5231
5232 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5233
5234 * bits/timesize.h: New file.
5235 * stdlib/Makefile (headers): Add bits/timesize.h.
5236 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5237 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5238 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5239 (__SEM_PAD_AFTER_TIME): Likewise.
5240 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5241 (__SHM_PAD_AFTER_TIME): Likewise.
5242 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5243 (__MSQ_PAD_BEFORE_TIME): Likewise.
5244 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5245 (__SEM_PAD_BEFORE_TIME): Likewise.
5246 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5247 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5248 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5249 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5250 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5251 (__MSQ_PAD_BEFORE_TIME): Likewise.
5252 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5253 (__SEM_PAD_BEFORE_TIME): Likewise.
5254 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5255 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5256 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5257 (__MSQ_PAD_BEFORE_TIME): Likewise.
5258 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5259 (__SEM_PAD_BEFORE_TIME): Likewise.
5260 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5261 (__SHM_PAD_BEFORE_TIME): Likewise.
5262 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5263 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5264 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5265
5266 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5269 USE_RDTSCP is defined.
5270 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5271 USE_RDTSCP is defined.
5272
5273 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5274
5275 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5276 defined.
5277
5278 [BZ #23709]
5279 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5280 independently of other flags.
5281
5282 2018-10-23 Florian Weimer <fweimer@redhat.com>
5283
5284 * time/tst-mktime2.c (N_STRINGS): Remove.
5285 (set_timezone): New function.
5286 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5287 (mktime_test1): Report localtime failure and check errno value.
5288 Use TEST_COMPARE.
5289 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5290 (do_test): Remove alarm call. Use set_timezone and array_length.
5291
5292 2018-10-23 Andreas Schwab <schwab@suse.de>
5293
5294 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5295 (__start_context): Use END instead of PSEUDO_END.
5296
5297 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5298
5299 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5300 version to 4.19.
5301
5302 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5303 version to 4.19.
5304
5305 [BZ #23793]
5306 * wcsmbs/c32rtomb.c: New file.
5307 * wcsmbs/mbrtoc32.c: Likewise.
5308 * wcsmbs/tst-c32-state.c: Likewise.
5309 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5310 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5311 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5312 (tests): Add tst-c32-state.
5313 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5314 $(gen-locales).
5315
5316 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5317
5318 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5319 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5320
5321 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5322
5323 [BZ #23794]
5324 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5325 pair and return 0 in that case, and use saved character to
5326 interpret following character.
5327 * wcsmbs/tst-c16-surrogate.c: New file.
5328 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5329 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5330 Depend on $(gen-locales)
5331
5332 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5333
5334 [BZ #23562]
5335 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5336 (struct siginfo_t): Use correct type for si_band.
5337
5338 2018-10-19 Florian Weimer <fweimer@redhat.com>
5339
5340 [BZ #23689]
5341 * resource/bits/types/struct_rusage.h (struct rusage): Update
5342 comment on struct. Remove extraneous field comment.
5343
5344 2018-10-18 David S. Miller <davem@davemloft.net>
5345
5346 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5347 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5348 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5349 sysdep_routines in subdir elf.
5350 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5351 version for __vdso_clock_gettime.
5352 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5353 Define.
5354 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5355 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5356
5357 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5358
5359 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5360
5361 * sysdeps/i386/init-arch.h: Removed.
5362 * sysdeps/i386/i586/init-arch.h: Likewise.
5363 * sysdeps/i386/i686/init-arch.h: Likewise.
5364 * sysdeps/i386/i686/hp-timing.h: Likewise.
5365 * sysdeps/x86_64/hp-timing.h: Likewise.
5366 * sysdeps/i386/isa.h: New file.
5367 * sysdeps/i386/i586/isa.h: Likewise.
5368 * sysdeps/i386/i686/isa.h: Likewise.
5369 * sysdeps/x86_64/isa.h: Likewise.
5370 * sysdeps/x86/hp-timing.h: New file.
5371 * sysdeps/x86/init-arch.h: Include <isa.h>.
5372
5373 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5374
5375 * math/libm-test-pow.inc (pow_test_data): Do not allow
5376 divide-by-zero exception for pow(+/- 0, -Inf).
5377
5378 2018-10-17 Zack Weinberg <zackw@panix.com>
5379
5380 * manual/job.texi (Job Control is Optional): Remove node, as
5381 job control has not been optional in quite some time.
5382 (Job Control): Mention briefly that systems older than
5383 POSIX.1-2001 might not support job control.
5384 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5385 defined on systems conforming to POSIX.1-2001.
5386
5387 2018-10-17 Arjun Shankar <arjun@redhat.com>
5388
5389 [BZ #22062]
5390 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5391 indentation.
5392 * (__gconv_read_conf): Mark function static.
5393 * (once): New static variable.
5394 * (__gconv_load_conf): New function.
5395 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5396 * iconv/gconv_db.c (once): Remove static variable.
5397 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5398 __gconv_read_conf.
5399 * (__gconv_find_transform): Likewise.
5400 * iconv/tst-iconv-mt.c: New test.
5401 * iconv/Makefile: Add tst-iconv_mt.
5402
5403 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5404
5405 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5406 bits/shm-pad.h.
5407 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5408 (shmatt_t): Define as __syscall_ulong_t.
5409 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5410 and [__SHM_PAD_AFTER_TIME].
5411 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5412 Define shm_segsz and associated padding based on
5413 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5414 Use __syscall_ulong_t instead of unsigned long int.
5415 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5416 unsigned long int.
5417 [__USE_MISC] (struct shm_info): Likewise.
5418 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5419 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5420 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5421 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5422 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5423 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5424 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5425 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5426 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5427 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5428 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5429
5430 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5431 bits/shmlba.h.
5432 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5433 (SHMLBA): Remove macro.
5434 (__getpagesize): Remove function declaration.
5435 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5436 <bits/shmlba.h>.
5437 (SHMLBA): Remove macro.
5438 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5439 <bits/shmlba.h>.
5440 (SHMLBA): Remove macro.
5441 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5442 <bits/shmlba.h>.
5443 (SHMLBA): Remove macro.
5444 (__getpagesize): Remove function declaration.
5445 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5446 <bits/shmlba.h>.
5447 (SHMLBA): Remove macro.
5448 (__getshmlba): Remove function declaration.
5449 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5450 (SHMLBA): Remove macro.
5451 (__getpagesize): Remove function declaration.
5452 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5453 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5454 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5455 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5456 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5457 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5458 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5459 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5460 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5461 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5462
5463 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5464
5465 [BZ #23275]
5466 * nptl/tst-mutex10.c: New File.
5467 * nptl/Makefile (tests): Add tst-mutex10.
5468 (tst-mutex10-ENV): New variable.
5469 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5470 Ensure that elision path is used if elision is available.
5471 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5472 Likewise.
5473 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5474 Likewise.
5475 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5476 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5477 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5478 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5479 Likewise.
5480 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5481 (__pthread_mutex_cond_lock_adjust): Likewise.
5482 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5483 Likewise.
5484 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5485 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5486 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5487 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5488 Add comments.
5489 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5490 Use atomic_load_relaxed and atomic_store_relaxed.
5491 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5492 Use atomic_store_relaxed.
5493
5494 2018-10-17 Andreas Schwab <schwab@suse.de>
5495
5496 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5497 * crypt/badsalttest.c (TIMEOUT): Likewise.
5498 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5499 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5500 * io/test-lfs.c (TIMEOUT): Likewise.
5501 * libio/tst-atime.c (TIMEOUT): Likewise.
5502 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5503 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5504 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5505 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5506 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5507 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5508 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5509 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5510 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5511 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5512 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5513 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5514 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5515 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5516 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5517 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5518 * nptl/tst-once2.c (TIMEOUT): Likewise.
5519 * nptl/tst-once3.c (TIMEOUT): Likewise.
5520 * nptl/tst-once4.c (TIMEOUT): Likewise.
5521 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5522 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5523 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5524 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5525 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5526 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5527 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5528 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5529 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5530 * posix/tst-chmod.c (TIMEOUT): Likewise.
5531 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5532 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5533 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5534 * posix/tst-regex2.c (TIMEOUT): Likewise.
5535 * posix/tst-waitid.c (TIMEOUT): Likewise.
5536 * rt/tst-aio.c (TIMEOUT): Likewise.
5537 * rt/tst-aio10.c (TIMEOUT): Likewise.
5538 * rt/tst-aio4.c (TIMEOUT): Likewise.
5539 * rt/tst-aio5.c (TIMEOUT): Likewise.
5540 * rt/tst-aio6.c (TIMEOUT): Likewise.
5541 * rt/tst-aio64.c (TIMEOUT): Likewise.
5542 * rt/tst-aio7.c (TIMEOUT): Likewise.
5543 * rt/tst-aio9.c (TIMEOUT): Likewise.
5544 * rt/tst-clock.c (TIMEOUT): Likewise.
5545 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5546 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5547 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5548 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5549 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5550 * rt/tst-timer4.c (TIMEOUT): Likewise.
5551 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5552 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5553 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5554 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5555 * time/tst-ftime.c (TIMEOUT): Likewise.
5556 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5557
5558 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5559
5560 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5561 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5562 for thunderX2.
5563
5564 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5565
5566 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5567 bits/sem-pad.h.
5568 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5569 instead of <bits/wordsize.h>.
5570 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5571 and [__SEM_PAD_AFTER_TIME].
5572 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5573 __syscall_ulong_t instead of unsigned long int.
5574 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5575 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5576 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5577 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5578 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5579 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5580 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5581 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5582 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5583 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5584 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5585
5586 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5587
5588 regex: simplify by using intprops.h
5589 [BZ#23744]
5590 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5591 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5592 intprops.h defines them.
5593
5594 regex: __builtin_expect → __glibc_unlikely
5595 [BZ#23744]
5596 This refactoring was prompted by a problem when the regex code is
5597 used as part of Gnulib and when the builder’s compiler does not grok
5598 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5599 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5600 Although this refactoring does not fix the problem directly,
5601 we might as well have Gawk use the now-preferred glibc style for when
5602 __builtin_expect is unavailable.
5603 * posix/regex_internal.h (BE): Remove.
5604 All uses replaced by __glibc_unlikely or __glibc_likely.
5605
5606 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5607
5608 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5609 bits/msq-pad.h.
5610 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5611 instead of <bits/wordsize.h>.
5612 (msgqnum_t): Define as __syscall_ulong_t.
5613 (msglen_t): Likewise.
5614 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5615 and [__MSQ_PAD_AFTER_TIME].
5616 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5617 __syscall_ulong_t instead of unsigned long int.
5618 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5619 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5620 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5621 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5622 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5623 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5624 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5625 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5626 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5627 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5628 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5629
5630 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5631
5632 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5633 (struct shmid_ds): Condition padding after time fields on
5634 [__WORDSIZE == 32].
5635 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5636 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5637 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5638
5639 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5640 (struct semid_ds): Condition padding after time fields on
5641 [__WORDSIZE == 32].
5642 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5643 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5644 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5645 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5646
5647 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5648 (struct msqid_ds): Condition padding after time fields on
5649 [__WORDSIZE == 32].
5650 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5651 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5652 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5653 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5654
5655 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5656
5657 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5658
5659 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5660
5661 * libio/tst-readline.c (TIMEOUT): Define.
5662
5663 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5664
5665 mktime fix for Gnulib + coreutils
5666 [BZ#23745]
5667 This fix affects only Gnulib. Problem discovered when
5668 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5669 * time/mktime.c:
5670 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5671 Do not define since it is not used. Defining an unused static
5672 function prompts a warning from GCC when Coreutils is configured
5673 with --enable-gcc-warnings.
5674
5675 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5676
5677 * benchtests/scripts/compare_bench.py (main): set float type on
5678 threshold argument.
5679
5680 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5681
5682 [BZ #23740]
5683 * localedata/locales/kl_GL (mon): Update, the relative case.
5684 (alt_mon): Add, fill with month names in the nominative case.
5685 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5686 (d_fmt): Set to "%b %d %Y".
5687
5688 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5689
5690 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5691 <bits/mman-linux.h>.
5692 (PROT_READ): Don't define here.
5693 (PROT_WRITE): Likewise.
5694 (PROT_EXEC): Likewise.
5695 (PROT_NONE): Likewise.
5696 (PROT_GROWSDOWN): Likewise.
5697 (PROT_GROWSUP): Likewise.
5698 (MAP_SHARED): Likewise.
5699 (MAP_PRIVATE): Likewise.
5700 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5701 [__USE_MISC] (MAP_FILE): Likewise.
5702 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5703 [__USE_MISC] (MAP_ANON): Likewise.
5704 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5705 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5706 (MCL_CURRENT): Likewise.
5707 (MCL_FUTURE): Likewise.
5708 (MCL_ONFAULT): Likewise.
5709 [__USE_MISC] (MADV_NORMAL): Likewise.
5710 [__USE_MISC] (MADV_RANDOM): Likewise.
5711 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5712 [__USE_MISC] (MADV_WILLNEED): Likewise.
5713 [__USE_MISC] (MADV_DONTNEED): Likewise.
5714 [__USE_MISC] (MADV_FREE): Likewise.
5715 [__USE_MISC] (MADV_REMOVE): Likewise.
5716 [__USE_MISC] (MADV_DONTFORK): Likewise.
5717 [__USE_MISC] (MADV_DOFORK): Likewise.
5718 [__USE_MISC] (MADV_HWPOISON): Likewise.
5719 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5720 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5721 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5722 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5723 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5724 (__MAP_ANONYMOUS): New macro.
5725 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5726 <bits/mman-linux.h> inclusion.
5727 (MAP_FIXED): Likewise.
5728 (MS_SYNC): Likewise.
5729 (MS_ASYNC): Likewise.
5730 (MS_INVALIDATE): Likewise.
5731 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5732 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5733 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5734 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5735 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5736 [__USE_MISC] (MADV_DODUMP): Likewise.
5737 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5738 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5739
5740 [BZ #23735]
5741 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5742 Define.
5743 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5744 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5745 Add test-nldbl-redirect.
5746 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5747 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5748 $(objpfx)libnldbl_nonshared.a.
5749
5750 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5751
5752 * support/support.h (support_objdir_elf_ldso): New variable.
5753 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5754 * support/Makefile (CFLAGS-support_paths.c): Add definition
5755 for OBJDIR_ELF_LDSO_PATH.
5756 * support/test-container.c (main): Search for the ld.so
5757 which is also used by the testsuite.
5758
5759 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5760
5761 [BZ #20209]
5762 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5763 should be "sap" rather than "sab".
5764 (day): Fix spelling of Sunday, should be "sapaat" rather than
5765 "sabaat".
5766
5767 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5768
5769 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5770
5771 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5772
5773 [BZ #19444]
5774 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5775 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5776 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5777
5778 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5779
5780 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5781
5782 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5783
5784 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5785 Add -mrtm.
5786 (CFLAGS-elision-unlock.c): Likewise.
5787 (CFLAGS-elision-timed.c): Likewise.
5788 (CFLAGS-elision-trylock.c): Likewise.
5789 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5790
5791 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5792
5793 [BZ #21037]
5794 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5795 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5796 new fd_to_filename interface.
5797 * libio/freopen64.c (freopen64): Likewise.
5798 * libio/tst-memstream.h: New file.
5799 * libio/tst-memstream4.c: Likewise.
5800 * libio/tst-wmemstream4.c: Likewise.
5801 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5802 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5803 and remove internal dynamic allocation.
5804
5805 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5806
5807 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5808 (MREMAP_MAYMOVE): Do not define here.
5809 [__USE_GNU] (MREMAP_FIXED): Likewise.
5810 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5811 (MREMAP_MAYMOVE): Define here instead.
5812 [__USE_GNU] (MREMAP_FIXED): Likewise.
5813 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5814 (MREMAP_MAYMOVE): Remove.
5815 [__USE_GNU] (MREMAP_FIXED): Likewise.
5816
5817 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5818
5819 * math/fromfp.h: Do not include <math_private.h>.
5820 * math/s_cacosh_template.c: Likewise.
5821 * math/s_casin_template.c: Likewise.
5822 * math/s_casinh_template.c: Likewise.
5823 * math/s_ccos_template.c: Likewise.
5824 * math/s_cproj_template.c: Likewise.
5825 * math/s_fdim_template.c: Likewise.
5826 * math/s_fmaxmag_template.c: Likewise.
5827 * math/s_fminmag_template.c: Likewise.
5828 * math/s_iseqsig_template.c: Likewise.
5829 * math/s_ldexp_template.c: Likewise.
5830 * math/s_nextdown_template.c: Likewise.
5831 * math/w_log1p_template.c: Likewise.
5832 * math/w_scalbln_template.c: Likewise.
5833 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5834 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5835 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5836 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5837 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5838 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5839 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5840 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5841 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5842 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5843 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5844 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5845 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5846 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5847 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5848 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5849 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5850 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5851 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5852 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5853 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5854 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5855 * sysdeps/ieee754/k_standardf.c: Likewise.
5856 * sysdeps/ieee754/k_standardl.c: Likewise.
5857 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5858 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5859 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5860 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5861 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5862 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5863 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5864 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5865 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5866 * sysdeps/ieee754/s_signgam.c: Likewise.
5867 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5868 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5869 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5870 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5871 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5872 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5873 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5874 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5875 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5876 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5877 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5878 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5879 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5880 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5881 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5882 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5883 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5884 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5885 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5886 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5887 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5888 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5889 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5890 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5891 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5892 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5893 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5894 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5895 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5896 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5897 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5898 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5899 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5900 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5901 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5902 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5903 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5904 <math_private.h>.
5905 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5906
5907 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5908
5909 [BZ #23716]
5910 * sysdeps/i386/dl-cet.c: Removed.
5911 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5912 prototype.
5913 (_dl_runtime_profile_shstk): Likewise.
5914 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5915 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5916
5917 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5918
5919 [BZ #23579]
5920 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5921 do_test_with_invalid_iov): New tests.
5922 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5923 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5924 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5925 errno is ENOSYS.
5926 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5927 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5928 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5929
5930 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5931
5932 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5933 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5934 (MATH_REDIRECT_BINARY_ARGS): New macro.
5935 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5936 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5937 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5938 header inclusion.
5939 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5940 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5941 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5942 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5943 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5944 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5945 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5946 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5947 Likewise.
5948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5949 Likewise.
5950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5952 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5953 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5955 Likewise.
5956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5957 Likewise.
5958 * sysdeps/generic/math_private_calls.h
5959 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5960 Do not declare and define as an inline function.
5961 * math/divtc3.c (__divtc3): Use copysign functions instead of
5962 __copysign variants.
5963 * math/multc3.c (__multc3): Likewise.
5964 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5965 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5966 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5967 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5968 Likewise.
5969 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5970 (__ieee754_yn): Likewise.
5971 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5972 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5973 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5974 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5975 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5976 (__sin): Likewise.
5977 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5978 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5979 Likewise.
5980 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5981 Likewise.
5982 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5983 Likewise.
5984 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5985 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5986 Likewise.
5987 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5988 (__ieee754_ynf): Likewise.
5989 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5990 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5991 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5992 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5993 Likewise.
5994 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5995 (__ieee754_ynl): Likewise.
5996 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5997 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5998 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5999 Likewise.
6000 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6001 (__ieee754_ynl): Likewise.
6002 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6003 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6004 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6005 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6006 Likewise.
6007 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6008 (__ieee754_ynl)
6009 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6010 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6011 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6012 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6013 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6014
6015 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6016 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6017 using MATH_REDIRECT.
6018 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6019 header inclusion.
6020 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6021 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6022 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6023 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6024 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6025 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6026 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6031 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6032 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6033 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6034 (round): Redirect to __round.
6035 (__roundl): Call round instead of __round.
6036 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6037 Remove macro.
6038 [_ARCH_PWR5X] (__roundf): Likewise.
6039 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6040 functions instead of __round variants.
6041 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6042 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6043 Likewise.
6044 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6045 Likewise.
6046 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6047 Likewise.
6048 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6049 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6050 __lroundl.
6051 (__ieee754_expl): Call roundl instead of __roundl.
6052
6053 2018-09-27 Andreas Schwab <schwab@suse.de>
6054
6055 [BZ #23717]
6056 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6057 (do_test): Make st1 static.
6058
6059 2018-09-26 Andreas Schwab <schwab@suse.de>
6060
6061 [BZ #23707]
6062 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6063 * elf/Makefile (tests): Add tst-unwind-ctor.
6064 (modules-names): Add tst-unwind-ctor-lib.
6065 ($(objpfx)tst-unwind-ctor): Depend on
6066 $(objpfx)tst-unwind-ctor-lib.so.
6067
6068 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6069
6070 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6071 file. Most contents moved from ....
6072 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6073 and include <bits/mman-map-flags-generic.h>.
6074 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6075 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6076 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6077 <bits/mman-map-flags-generic.h>.
6078 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6079 macros defined in <bits/mman-map-flags-generic.h>.
6080 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6081 <bits/mman-map-flags-generic.h>.
6082 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6083 defined in <bits/mman-map-flags-generic.h>.
6084
6085 2018-09-26 Andreas Schwab <schwab@suse.de>
6086
6087 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6088 output.
6089
6090 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6091 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6092 Fangrui Song <maskray@google.com>
6093
6094 [BZ #20480]
6095 * config.make.in (have-textrel_ifunc): New define.
6096 * configure.ac: Add check if linker supports textrel relocation with
6097 ifunc.
6098 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6099 tst-ifunc-textrel.
6100 (CFLAGS-tst-ifunc-textrel.c): New rule.
6101 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6102 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6103 * elf/tst-ifunc-textrel.c: New file.
6104
6105 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6106
6107 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6108 <bits/procfs-prregset.h>.
6109 (prgregset_t): Define using __prgregset_t.
6110 (prfpregset_t): Define using __prfpregset_t.
6111 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6112 (sysdep_headers): Add bits/procfs-prregset.h.
6113 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6114 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6115 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6116 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6117
6118 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6119 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6120 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6121 pr_uid and pr_gid.
6122 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6123 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6124 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6125 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6126 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6127 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6128 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6129 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6130 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6131 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6132 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6133 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6134 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6135 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6136 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6137 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6138 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6139 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6140 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6141 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6142 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6143 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6144 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6145 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6146
6147 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6148 AArch64 version. Include <bits/procfs.h>.
6149 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6150 (sysdep_headers): Add bits/procfs.h.
6151 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6152 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6153 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6154 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6155 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6156 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6157 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6158 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6159 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6160 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6161 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6162 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6163 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6164 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6165 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6166 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6167 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6168
6169 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6170
6171 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6172 Use libsupport.
6173
6174 2018-09-25 Arjun Shankar <arjun@redhat.com>
6175
6176 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6177 (__gconv_max_path_elem_len): Likewise.
6178 (__gconv_nmodules): Likewise.
6179 (__gconv_get_path): Likewise.
6180 (path_elem): Move to ...
6181 * iconv/gconv_conf.c: ... here.
6182 (__gconv_get_path): Mark function static.
6183 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6184 * iconv/gconv_open.c: ... here.
6185
6186 2018-09-24 Andreas Schwab <schwab@suse.de>
6187
6188 * scripts/haveversions.awk: New file.
6189 * Makerules ($(common-objpfx)Versions.def)
6190 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6191 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6192 Move rules ...
6193 * Makeconfig ($(common-objpfx)Versions.def)
6194 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6195 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6196 ... here.
6197 ($(common-objpfx)Versions.mk): New rule. Include it.
6198 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6199 Emit error if build-obsolete-nsl = yes.
6200 * manual/install.texi (Configuring and compiling): Describe
6201 --enable-obsolete-nsl as unavaiable after version 2.28.
6202 * INSTALL: Regenerate.
6203
6204 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6205
6206 * NEWS: Add note about new TLE support on powerpc64le.
6207 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6208 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6209 __ununsed1.
6210 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6211 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6212 * sysdeps/powerpc/powerpc32/sysdep.h,
6213 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6214 ABORT_TRANSACTION): Remove macros.
6215 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6216 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6217 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6219 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6220 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6221 usage.
6222 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6223
6224 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6225
6226 [BZ #10425]
6227 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6228 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6229 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6230 which is the same as in it_IT.
6231 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6232 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6233
6234 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6235
6236 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6237 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6238 using MATH_REDIRECT.
6239 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6240 header inclusion.
6241 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6242 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6243 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6244 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6245 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6246 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6247 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6251 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6252 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6253 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6254 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6255 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6256 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6257 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6258 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6259 (ceil): Redirect to __ceil.
6260 (floor): Redirect to __floor.
6261 (trunc): Redirect to __trunc.
6262 (__truncl): Call trunc instead of __trunc.
6263 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6264 Remove macro.
6265 [_ARCH_PWR5X] (__truncf): Likewise.
6266 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6267 trunc functions instead of __trunc variants.
6268 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6269 Likewise.
6270 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6271 Likewise.
6272 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6273 Likewise.
6274 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6275 Likewise.
6276
6277 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6278 [__i586__ || __pentium__].
6279 [__i486__]: Handle explicitly.
6280 (HAS_CPUID): Define to 1 if above macros are undefined.
6281 (HAS_I586): Likewise.
6282 (HAS_I686): Likewise.
6283
6284 2018-09-20 Florian Weimer <fweimer@redhat.com>
6285
6286 * misc/tst-gethostid.c: New file.
6287 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6288 (tst-gethostid): Link with -ldl.
6289
6290 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6291
6292 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6293 value from gethostbyname_r.
6294
6295 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6296
6297 * stdlib/tst-setcontext9.c (f1): Rename to...
6298 (f1a): ... this.
6299 (f1b): New function implementing lower half of f1 in alternate stack.
6300
6301 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6302
6303 Fix mktime localtime offset confusion
6304 [BZ #23603]
6305 * include/time.h (__mktime_internal): The localtime offset is now
6306 of type long int instead of time_t. This is the longstanding type
6307 in glibc, and it is more than enough to represent difference
6308 between localtime and gmtime even if it is 32 bits and time_t is
6309 64. Changing it now will let us avoid an unnecessary change when
6310 time_t is widened to 64 bits on 32-bit platforms.
6311 * time/mktime-internal.h (mktime_offset_t): Now long int.
6312
6313 Merge mktime, timegm from upstream Gnulib
6314 [BZ #23603][BZ #16346]
6315 This fixes some obscure problems with integer overflow.
6316 Although it looks scary, it is almost all a byte-for-byte copy
6317 from Gnulib, and the Gnulib code has been tested reasonably well.
6318 * include/intprops.h: New file, copied from Gnulib.
6319 * include/verify.h, time/mktime-internal.h:
6320 New tiny files, simplified from Gnulib.
6321 * time/mktime.c: Copy from Gnulib. This has the following changes:
6322 Do not include config.h if DEBUG_MKTIME is nonzero.
6323 Include stdbool.h, intprops.h, verify.h.
6324 Include string.h only if needed.
6325 Include stdlib.h on MS-Windows.
6326 Include mktime-internal.h.
6327 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6328 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6329 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6330 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6331 simplify later conditionals; default the others to zero. Use
6332 these conditionals to express only the code needed on the current
6333 platform. In uses of these conditionals, explicitly spell out how
6334 _LIBC affects things, so it’s easier to review from a glibc
6335 viewpoint.
6336 (WRAPV): Remove; no longer needed now that we have
6337 systematic overflow checking.
6338 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6339 compartmentalize tzset issues. Move system-dependent tzsettish
6340 code here from mktime.
6341 (verify): Remove; now done by verify.h. All uses changed.
6342 (long_int): Use a more-conservative definition, to avoid
6343 integer overflow.
6344 (SHR): Remove, replacing with ...
6345 (shr): New function, which means we needn’t worry about side
6346 effects in args, and conversion analysis is simpler.
6347 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6348 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6349 (time_t_avg, time_t_add_ok): Remove.
6350 (mktime_min, mktime_max): New constants.
6351 (leapyear, isdst_differ): Use bool for booleans.
6352 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6353 Use long_int, not time_t, for mktime differences.
6354 (long_int_avg): New function, replacing time_t_avg.
6355 INT_ADD_WRAPV replaces time_t_add_ok.
6356 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6357 All uses changed.
6358 (convert_time): New function.
6359 (ranged_convert): Use it.
6360 (__mktime_internal): Last arg now points to mktime_offset_t, not
6361 time_t. All uses changed. This is a no-op on glibc, where
6362 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6363 offset guess. Directly check for integer overflow instead of
6364 using a heuristic that works only 99.9...% of the time.
6365 Access *OFFSET only once, to avoid an unlikely race if the
6366 compiler delays a load and if this cascades into a signed integer
6367 overflow.
6368 (mktime): Move tzsettish code to my_tzset, and move
6369 localtime_offset to within mktime so that it doesn’t
6370 need a separate ifdef.
6371 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6372 instead of localtime.
6373 * time/timegm.c: Copy from Gnulib. This has the following changes:
6374 Include mktime-internal.h.
6375 [!_LIBC]: Include config.h and time.h. Do not include
6376 timegm.h or time_r.h. Make __mktime_internal a macro,
6377 and include mktime-internal.h to get its declaration.
6378 (timegm): Temporary is now mktime_offset_t, not time_t.
6379 This affects only Gnulib.
6380
6381 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6382
6383 [BZ #23637]
6384 * string/test-strstr.c (pr23637): New function.
6385 (test_main): Add tests with longer needles.
6386 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6387 * string/strstr.c (AVAILABLE): Likewise.
6388
6389 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6390
6391 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6392
6393 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6394
6395 * NEWS: Mention pow improvements.
6396 * math/Makefile (type-double-routines): Add e_pow_log_data.
6397 * sysdeps/generic/math_private.h (__exp1): Remove.
6398 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6399 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6400 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6401 contraction.
6402 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6403 (exp_inline): Remove.
6404 (__ieee754_exp): Only single double input is handled.
6405 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6406 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6407 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6408 (__pow_log_data): Define.
6409 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6410 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6411 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6412 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6413 contraction.
6414 (CFLAGS-e_pow-fma4.c): Likewise.
6415
6416 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6417
6418 Simplify tzfile fstat failure code
6419 [BZ #21716]
6420 * time/tzfile.c (__tzfile_read): Simplify slightly.
6421
6422 Fix tzfile low-memory assertion failure
6423 [BZ #21716]
6424 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6425 when registering time zone abbreviations.
6426
6427 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6428
6429 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6430 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6431 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6432 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6433 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6434 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6435 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6436 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6437 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6438
6439 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6440 __ceil.
6441 (__ceill): Call ceil instead of __ceil.
6442 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6443 __floor.
6444 (__floorl): Call floor instead of __floor.
6445
6446 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6447
6448 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6449 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6450 using MATH_REDIRECT.
6451 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6452 header inclusion.
6453 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6454 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6455 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6456 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6457 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6458 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6459 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6460 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6462 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6463 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6464 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6465 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6466 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6467 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6468 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6469 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6470 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6471 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6472 Remove macro.
6473 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6474 functions instead of __ceil variants.
6475 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6476 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6477 Likewise.
6478 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6479 Likewise.
6480 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6481 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6482 Likewise.
6483 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6484 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6485
6486 [BZ #21286]
6487 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6488 constant.
6489 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6490 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6491 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6492 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6493 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6494 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6495 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6496 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6497 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6498 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6499 (ILL_BADIADDR): Remove constant.
6500 (TRAP_BRANCH): Likewise.
6501 (TRAP_HWBKPT): Likewise.
6502
6503 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6504
6505 [BZ #23656]
6506 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6507 Remove [_MIPS_SIM = _ABIN32] conditional case.
6508 (struct elf_prpsinfo): Likewise.
6509
6510 [BZ #23649]
6511 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6512 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6513 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6514 Likewise.
6515 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6516 elf_prpsinfo): Likewise.
6517 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6518 elf_prpsinfo): Likewise.
6519 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6520 Likewise.
6521
6522 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6523 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6524 using MATH_REDIRECT.
6525 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6526 header inclusion.
6527 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6528 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6529 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6530 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6531 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6532 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6533 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6534 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6535 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6536 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6537 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6538 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6539 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6540 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6541 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6542 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6543 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6544 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6545 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6548 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6549 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6550 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6551 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6552 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6553 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6554 __rint variants.
6555 * math/e_scalbf.c (invalid_fn): Likewise.
6556 * math/e_scalbl.c (invalid_fn): Likewise.
6557 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6558 Likewise.
6559 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6560 Likewise.
6561 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6562 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6563 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6564 Likewise.
6565 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6566 Likewise.
6567 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6568 Likewise.
6569 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6570 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6571
6572 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6573 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6574 New macro.
6575 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6576 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6577 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6578 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6579 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6580 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6581 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6582 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6583 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6584 && !NO_MATH_REDIRECT] (floor): Likewise.
6585 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6586 header inclusion.
6587 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6588 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6589 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6590 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6591 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6592 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6593 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6594 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6595 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6599 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6600 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6601 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6602 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6603 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6604 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6605 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6606 Remove macro.
6607 [_ARCH_PWR5X] (__floorf): Likewise.
6608 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6609 inline function.
6610 [__SSE4_1__] (__floorf): Likewise.
6611 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6612 instead of __floor variants.
6613 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6614 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6615 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6616 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6617 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6618 * math/w_tgamma_compat.c (__tgamma): Likewise.
6619 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6620 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6621 * math/w_tgammal_compat.c (__tgammal): Likewise.
6622 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6623 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6624 Likewise.
6625 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6626 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6627 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6628 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6629 Likewise.
6630 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6631 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6632 Likewise.
6633 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6634 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6635 Likewise.
6636 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6637 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6638 Likewise.
6639 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6640 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6641 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6642 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6643 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6644 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6645
6646 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6647
6648 * elf/Makefile (modules-names-tests): New variable.
6649
6650 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6651
6652 * NEWS: Mention log2 improvements.
6653 * math/Makefile (type-double-routines): Add e_log2_data.
6654 * sysdeps/i386/fpu/e_log2_data.c: New file.
6655 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6656 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6657 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6658 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6659 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6660 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6661
6662 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6663
6664 * NEWS: Mention log improvement.
6665 * math/Makefile (type-double-routines): Add e_log_data.
6666 * sysdeps/i386/fpu/e_log_data.c: New file.
6667 * sysdeps/ia64/fpu/e_log_data.c: New file.
6668 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6669 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6670 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6671 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6672 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6673 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6674
6675 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6676 Xuepeng Guo <xuepeng.guo@intel.com>
6677
6678 [BZ #23606]
6679 * sysdeps/i386/start.S: Include <sysdep.h>
6680 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6681 enabled. Add cfi_undefined (eip).
6682
6683 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6684
6685 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6686 (MOVQ): Likewise.
6687 (EXTRACT_WORDS64): Likewise.
6688 (INSERT_WORDS64): Likewise.
6689 (GET_FLOAT_WORD): Likewise.
6690 (SET_FLOAT_WORD): Likewise.
6691
6692 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6693 argument.
6694 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6695 build, but not for second build if --full-gcc. Use
6696 --enable-languages=all for second build if --full-gcc.
6697 (get_parser): Add --full-gcc option.
6698 (main): Update call to Context.
6699
6700 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6701
6702 [BZ #10797]
6703 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6704 Single Quotation Mark).
6705 (thousands_sep): Likewise.
6706 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6707 * localedata/locales/it_IT (thousands_sep): Use ".".
6708 (grouping): Use "3;3".
6709
6710 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6711
6712 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6713 x86_64 and i686 configs using --enable-obsolete-rpc
6714 --enable-obsolete-nsl.
6715
6716 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6717
6718 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6719
6720 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6721
6722 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6723 Increment size of new_argv by one.
6724
6725 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6726
6727 [BZ #17426]
6728 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6729 * localedata/locales/ar_IN (d_fmt): Likewise.
6730 * localedata/locales/bhb_IN (d_fmt): Likewise.
6731 * localedata/locales/bho_IN (d_fmt): Likewise.
6732 * localedata/locales/bn_BD (d_fmt): Likewise.
6733 * localedata/locales/bn_IN (d_fmt): Likewise.
6734 * localedata/locales/doi_IN (d_fmt): Likewise.
6735 * localedata/locales/gu_IN (d_fmt): Likewise.
6736 * localedata/locales/hi_IN (d_fmt): Likewise.
6737 * localedata/locales/hne_IN (d_fmt): Likewise.
6738 * localedata/locales/kn_IN (d_fmt): Likewise.
6739 * localedata/locales/mag_IN (d_fmt): Likewise.
6740 * localedata/locales/mai_IN (d_fmt): Likewise.
6741 * localedata/locales/mjw_IN (d_fmt): Likewise.
6742 * localedata/locales/ml_IN (d_fmt): Likewise.
6743 * localedata/locales/mni_IN (d_fmt): Likewise.
6744 * localedata/locales/mr_IN (d_fmt): Likewise.
6745 * localedata/locales/pa_IN (d_fmt): Likewise.
6746 * localedata/locales/raj_IN (d_fmt): Likewise.
6747 * localedata/locales/sat_IN (d_fmt): Likewise.
6748 * localedata/locales/sd_IN (d_fmt): Likewise.
6749 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6750 * localedata/locales/ta_IN (d_fmt): Likewise.
6751 * localedata/locales/ta_LK (d_fmt): Likewise.
6752 * localedata/locales/tcy_IN (d_fmt): Likewise.
6753 * localedata/locales/ur_IN (d_fmt): Likewise.
6754
6755 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6756 * localedata/locales/ks_IN (d_fmt): Likewise.
6757 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6758
6759 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6760 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6761 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6762 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6763
6764 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6765
6766 * NEWS: Mention exp and exp2 improvements.
6767 * math/Makefile (libm-support): Remove t_exp.
6768 (type-double-routines): Add math_err and e_exp_data.
6769 * sysdeps/aarch64/libm-test-ulps: Update.
6770 * sysdeps/arm/libm-test-ulps: Update.
6771 * sysdeps/i386/fpu/e_exp_data.c: New file.
6772 * sysdeps/i386/fpu/math_err.c: New file.
6773 * sysdeps/i386/fpu/t_exp.c: Remove.
6774 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6775 * sysdeps/ia64/fpu/math_err.c: New file.
6776 * sysdeps/ia64/fpu/t_exp.c: Remove.
6777 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6778 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6779 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6780 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6781 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6782 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6783 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6784 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6785 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6786 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6787 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6788 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6789 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6790 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6791 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6792 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6793
6794 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6795
6796 * sysdeps/alpha/fpu/math_private.h: Remove.
6797
6798 * sysdeps/generic/math_private.h
6799 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6800 Move this inline function ....
6801 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6802 * include/math.h [!_ISOMAC]: To here....
6803
6804 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6805
6806 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6807 code ....
6808 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6809 * include/fenv.h [!_ISOMAC]: ... to here.
6810 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6811 (feraiseexcept): Likewise.
6812 * math/fromfp.h: Do not include <fenv_private.h>.
6813 * math/s_cexp_template.c: Likewise.
6814 * math/s_csin_template.c: Likewise.
6815 * math/s_csinh_template.c: Likewise.
6816 * math/s_ctan_template.c: Likewise.
6817 * math/s_ctanh_template.c: Likewise.
6818 * math/s_iseqsig_template.c: Likewise.
6819 * math/w_acos_compat.c: Likewise.
6820 * math/w_acosf_compat.c: Likewise.
6821 * math/w_acosl_compat.c: Likewise.
6822 * math/w_asin_compat.c: Likewise.
6823 * math/w_asinf_compat.c: Likewise.
6824 * math/w_asinl_compat.c: Likewise.
6825 * math/w_j0_compat.c: Likewise.
6826 * math/w_j0f_compat.c: Likewise.
6827 * math/w_j0l_compat.c: Likewise.
6828 * math/w_j1_compat.c: Likewise.
6829 * math/w_j1f_compat.c: Likewise.
6830 * math/w_j1l_compat.c: Likewise.
6831 * math/w_jn_compat.c: Likewise.
6832 * math/w_jnf_compat.c: Likewise.
6833 * math/w_log10_compat.c: Likewise.
6834 * math/w_log10f_compat.c: Likewise.
6835 * math/w_log10l_compat.c: Likewise.
6836 * math/w_log2_compat.c: Likewise.
6837 * math/w_log2f_compat.c: Likewise.
6838 * math/w_log2l_compat.c: Likewise.
6839 * math/w_log_compat.c: Likewise.
6840 * math/w_logf_compat.c: Likewise.
6841 * math/w_logl_compat.c: Likewise.
6842 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6843 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6844 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6845 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6846 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6847 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6848 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6849 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6850 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6851 * sysdeps/ieee754/k_standardl.c: Likewise.
6852 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6853 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6854 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6856 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6857 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6858 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6859 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6860 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6862 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6863 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6864 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6865 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6866 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6867 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6868 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6869 * math/w_ilogb_template.c: Include <fenv.h> instead of
6870 <fenv_private.h>.
6871 * math/w_llogb_template.c: Likewise.
6872 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6873 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6874
6875 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6876
6877 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6878 * math/fromfp.h: Include <fenv_private.h>.
6879 * math/math-narrow.h: Likewise.
6880 * math/s_cexp_template.c: Likewise.
6881 * math/s_csin_template.c: Likewise.
6882 * math/s_csinh_template.c: Likewise.
6883 * math/s_ctan_template.c: Likewise.
6884 * math/s_ctanh_template.c: Likewise.
6885 * math/s_iseqsig_template.c: Likewise.
6886 * math/w_acos_compat.c: Likewise.
6887 * math/w_acosf_compat.c: Likewise.
6888 * math/w_acosl_compat.c: Likewise.
6889 * math/w_asin_compat.c: Likewise.
6890 * math/w_asinf_compat.c: Likewise.
6891 * math/w_asinl_compat.c: Likewise.
6892 * math/w_ilogb_template.c: Likewise.
6893 * math/w_j0_compat.c: Likewise.
6894 * math/w_j0f_compat.c: Likewise.
6895 * math/w_j0l_compat.c: Likewise.
6896 * math/w_j1_compat.c: Likewise.
6897 * math/w_j1f_compat.c: Likewise.
6898 * math/w_j1l_compat.c: Likewise.
6899 * math/w_jn_compat.c: Likewise.
6900 * math/w_jnf_compat.c: Likewise.
6901 * math/w_llogb_template.c: Likewise.
6902 * math/w_log10_compat.c: Likewise.
6903 * math/w_log10f_compat.c: Likewise.
6904 * math/w_log10l_compat.c: Likewise.
6905 * math/w_log2_compat.c: Likewise.
6906 * math/w_log2f_compat.c: Likewise.
6907 * math/w_log2l_compat.c: Likewise.
6908 * math/w_log_compat.c: Likewise.
6909 * math/w_logf_compat.c: Likewise.
6910 * math/w_logl_compat.c: Likewise.
6911 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6912 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6913 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6914 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6915 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6916 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6917 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6918 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6919 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6920 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6921 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6922 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6923 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6924 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6925 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6926 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6927 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6928 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6929 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6930 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6931 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6932 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6933 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6934 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6935 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6937 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6939 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6940 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6941 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6942 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6943 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6944 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6945 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6946 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6947 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6948 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6949 * sysdeps/ieee754/k_standardl.c: Likewise.
6950 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6951 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6952 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6953 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6954 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6955 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6956 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6957 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6958 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6959 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6960 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6961 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6962 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6963 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6964 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6965 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6966 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6967 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6968 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6969 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6970 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6971 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6972 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6973 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6974 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6975 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6976 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6977 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6978 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6979 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6980 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6981 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6982 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6983 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6984 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6985 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6986 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6987 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6988 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6989 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6990 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6991 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6992 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6993 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6994 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6995 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6996 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6997 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6998 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6999 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7000 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7001 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7002 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7003 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7004 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7005 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7006 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7007 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7008 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7009 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7010 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7011 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7012 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7013 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7014 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7015 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7016 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7017 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7018 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7019 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7020 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7021
7022 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7023
7024 [BZ #20271]
7025 * include/stdio.h (__libc_fatal): Mention newline in comment.
7026 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7027 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7028 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7029 * nss/nsswitch.c (__nss_next2): Likewise.
7030 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7031 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7032 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7033 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7034 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7035 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7036 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7037 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7038 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7039 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7040 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7041 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7042 (__netlink_assert_response): Likewise.
7043
7044 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7045
7046 * conform/glibcconform.py: New file.
7047 * conform/list-header-symbols.py: Likewise.
7048 * conform/list-header-symbols.pl: Remove.
7049 * conform/Makefile (tests-special): Only add linknamespace tests
7050 if [PYTHON].
7051 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7052
7053 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7054
7055 [BZ #23597]
7056 * support/Makefile (libsupport-routines): Add
7057 support_copy_file_range and xcopy_file_range.
7058 * support/support.h: Include <sys/types.h>.
7059 (support_copy_file_range): New prototype.
7060 * support/support_copy_file_range.c: New file. Copied and
7061 modified from io/copy_file_range-compat.c.
7062 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7063 instead of copy_file_range.
7064 * support/xcopy_file_range.c: New file.
7065 * support/xunistd.h (xcopy_file_range): New prototype.
7066
7067 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7068
7069 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7070 xpthread_create and xpthread_join.
7071
7072 2018-08-30 Florian Weimer <fweimer@redhat.com>
7073
7074 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7075
7076 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7077
7078 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7079 if malloc fails.
7080
7081 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7082
7083 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7084 and minus_oflow as non-finite.
7085
7086 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7087
7088 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7089 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7090 moved to fenv_private.h except for ...
7091 (TOINT_INTRINSICS): Kept in math_private.h.
7092 (roundtoint): Likewise.
7093 (converttoint): Likewise.
7094 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7095 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7096 * sysdeps/arm/math_private.h: Remove.
7097 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7098 ....
7099 * sysdeps/generic/math_private.h: ... this file. Include
7100 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7101 Include <fenv_private.h>. Remove functions and macros moved to
7102 fenv_private.h.
7103 * sysdeps/i386/fpu/math_private.h: Remove.
7104 * sysdeps/mips/math_private.h: Move to ....
7105 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7106 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7107 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7108 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7109 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7110 * sysdeps/powerpc/fpu/math_private.h: Do not include
7111 <fenv_private.h>.
7112 * sysdeps/riscv/rvf/math_private.h: Move to ....
7113 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7114 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7115 <fenv_private.h>.
7116 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7117 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7118 * sysdeps/sparc/fpu/math_private.h: Remove.
7119 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7120 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7121 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7122 <fenv_private.h>.
7123 * sysdeps/x86_64/fpu/math_private.h: Do not include
7124 <sysdeps/i386/fpu/fenv_private.h>.
7125
7126 2018-08-28 Florian Weimer <fweimer@redhat.com>
7127
7128 [BZ #23578]
7129 * posix/tst-regcomp-truncated.c: New file.
7130 * posix/Makefile (tests): Add it.
7131 (tst-regcomp-truncated.out): Depend on generated locales.
7132
7133 2018-08-28 Florian Weimer <fweimer@redhat.com>
7134
7135 * support/test-container.c (main): Treat unshare failure with
7136 EPERM as an unsupported test.
7137
7138 2018-08-28 Florian Weimer <fweimer@redhat.com>
7139
7140 [BZ #23520]
7141 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7142 * nscd/netgroupcache.c
7143 (addgetnetgrentX): Add tofreep parameter. Do not free
7144 heap-allocated buffer.
7145 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7146 (addgetnetgrentX_ignore): New function.
7147 (addgetnetgrent): Call it.
7148 (readdgetnetgrent): Likewise.
7149
7150 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7151
7152 * string/memmem.c: Use memcmp for first match.
7153
7154 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7155
7156 [BZ #17426]
7157 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7158
7159 2018-08-27 DJ Delorie <dj@redhat.com>
7160
7161 * support/Makefile (others): Don't list programs explicitly as a
7162 dependency of "others".
7163
7164 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7165
7166 * sysdeps/generic/math-tests-trap-force.h: New file.
7167 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7168 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7169 * sysdeps/powerpc/math-tests.h: Remove file.
7170 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7171
7172 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7173 Torvald Riegel <triegel@redhat.com>
7174
7175 [BZ #23538]
7176 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7177 Update r to include the set wake-request flag if waiters are
7178 remaining after spinning.
7179
7180 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7181
7182 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7183
7184 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7185
7186 [BZ #23578]
7187 regex: fix uninitialized memory access
7188 I introduced this bug into gnulib in commit
7189 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7190 eventually it was merged into glibc. The bug was found by
7191 project-repo <bugs@feusi.co> and reported here:
7192 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7193 Diagnosis and draft fix reported by Assaf Gordon here:
7194 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7195 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7196 * posix/regex_internal.c (build_wcs_upper_buffer):
7197 Fix bug when mbrtowc returns 0.
7198
7199 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7200
7201 * po/be.po: Update translation.
7202
7203 2018-08-24 DJ Delorie <dj@delorie.com>
7204
7205 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7206 $(libunwind).
7207
7208 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7209
7210 [BZ #23400]
7211 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7212 create temporary files in source tree.
7213
7214 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7215
7216 * sysdeps/generic/math-tests-trap.h: New file.
7217 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7218 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7219 * sysdeps/aarch64/math-tests.h: Remove file.
7220 * sysdeps/arm/math-tests.h: Likewise.
7221 * sysdeps/riscv/math-tests.h: Likewise.
7222 * sysdeps/aarch64/math-tests-trap.h: New file.
7223 * sysdeps/arm/math-tests-trap.h: Likewise.
7224 * sysdeps/riscv/math-tests-trap.h: Likewise.
7225
7226 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7227
7228 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7229 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7230 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7231 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7232 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7233 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7234 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7235 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7236 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7237 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7238 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7239 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7240 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7241 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7242 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7243 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7244 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7245 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7246
7247 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7248
7249 * sysdeps/generic/math-tests-exceptions.h: New file.
7250 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7251 (EXCEPTION_TESTS_float): Do not define here.
7252 (EXCEPTION_TESTS_double): Likewise.
7253 (EXCEPTION_TESTS_long_double): Likewise.
7254 (EXCEPTION_TESTS_float128): Likewise.
7255 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7256 Likewise.
7257 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7258 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7259 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7260 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7261 * sysdeps/mips/math-tests.h: Likewise.
7262 * sysdeps/nios2/math-tests.h: Likewise.
7263 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7264 (EXCEPTION_TESTS_float): Do not define here.
7265 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7266 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7267 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7268
7269 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7270
7271 * NEWS: Move optimized sinf entry to 2.29.
7272
7273 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7274
7275 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7276
7277 2018-08-22 DJ Delorie <dj@redhat.com>
7278
7279 * Makefile (testroot.pristine): New rules to initialize the
7280 test-in-container "testroot".
7281 * Makerules (all-testsuite): Add tests-container.
7282 * Rules (tests-expected): Add tests-container.
7283 (binaries-all-tests): Likewise.
7284 (tests-container): New, run these tests in the testroot container.
7285 * support/Makefile (others): Add *-container, support_paths.c,
7286 xmkdirp, and links-dso-program.
7287 * support/links-dso-program-c.c: New.
7288 * support/links-dso-program.cc: New.
7289 * support/test-container.c: New.
7290 * support/shell-container.c: New.
7291 * support/echo-container.c: New.
7292 * support/true-container.c: New.
7293 * support/xmkdirp.c: New.
7294 * support/xsymlink.c: New.
7295 * support/support_paths.c: New.
7296 * support/support.h: Add support paths prototypes.
7297 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7298
7299 * nss/tst-nss-test3.c: Convert to test-in-container.
7300 * nss/tst-nss-test3.root/: New.
7301
7302 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7303
7304 regex: port Gnulib code to z/OS POSIX environment
7305 Problem reported by Arnold Robbins in:
7306 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7307 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7308 Undef.
7309
7310 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7311
7312 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7313 (ROUNDING_TESTS_double): Remove.
7314 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7315 (ROUNDING_TESTS_double): Remove.
7316 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7317 (ROUNDING_TESTS_double): Remove.
7318 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7319 (ROUNDING_TESTS_float): Remove.
7320 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7321 (ROUNDING_TESTS_float): Remove.
7322 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7323 (ROUNDING_TESTS_float): Remove.
7324 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7325 !TEST_MATHVEC here.
7326 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7327 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7328
7329 * sysdeps/generic/math-tests-rounding.h: New file.
7330 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7331 (ROUNDING_TESTS_float): Do not define here.
7332 (ROUNDING_TESTS_double): Likewise.
7333 (ROUNDING_TESTS_long_double): Likewise.
7334 (ROUNDING_TESTS_float128): Likewise.
7335 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7336 (ROUNDING_TESTS_double): Undefine before defining.
7337 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7338 (ROUNDING_TESTS_double): Undefine before defining.
7339 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7340 (ROUNDING_TESTS_double): Undefine before defining.
7341 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7342 (ROUNDING_TESTS_float): Undefine before defining.
7343 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7344 (ROUNDING_TESTS_float): Undefine before defining.
7345 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7346 (ROUNDING_TESTS_float): Undefine before defining.
7347 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7348 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7349 not define here.
7350 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7351 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7352 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7353 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7354 (ROUNDING_TESTS_float): Do not define here.
7355 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7356 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7357 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7358 (ROUNDING_TESTS_float): Likewise.
7359 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7360 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7361 * sysdeps/mips/math-tests.h [__mips_soft_float]
7362 (ROUNDING_TESTS_float): Likewise.
7363 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7364 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7365 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7366 (ROUNDING_TESTS_double): Likewise.
7367 (ROUNDING_TESTS_long_double): Likewise.
7368
7369 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7370
7371 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7372 (PF_XDP): New macro.
7373 (AF_XDP): New macro.
7374 (SOL_XDP): New macro.
7375
7376 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7377
7378 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7379 (TCP_INQ): Likewise.
7380 (TCP_CM_INQ): Likewise.
7381 (TCP_REPAIR_ON): Likewise.
7382 (TCP_REPAIR_OFF): Likewise.
7383 (TCP_REPAIR_OFF_NO_WP): Likewise.
7384 (struct tcp_zerocopy_receive): New type.
7385
7386 2018-08-21 Florian Weimer <fweimer@redhat.com>
7387
7388 * support/support.h (support_descriptor_supports_holes): Declare.
7389 * support/Makefile (libsupport-routines): Add
7390 support_descriptor_supports_holes.
7391 * support/support_descriptor_supports_holes.c: New file.
7392 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7393 and stop testing if holes are not supported.
7394 * io/test-lfs.c (do_prepare): Likewise.
7395 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7396 Likewise.
7397 * timezone/tst-tzset.c (create_tz_file): Likewise.
7398 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7399 variable.
7400 (do_prepare): Set it.
7401 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7402
7403 2018-08-21 Florian Weimer <fweimer@redhat.com>
7404
7405 [BZ #17248]
7406 * Makeconfig (+cflags): Do not sort (and deduplicate).
7407
7408 2018-08-21 Florian Weimer <fweimer@redhat.com>
7409
7410 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7411 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7412
7413 2018-08-20 Florian Weimer <fweimer@redhat.com>
7414
7415 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7416 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7417
7418 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7419
7420 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7421 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7422 and ssi_arch members.
7423
7424 * elf/elf.c (NT_VMCOREDD): New macro.
7425 (AT_MINSIGSTKSZ): Likewise.
7426
7427 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7428
7429 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7430 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7431 s_cosf-ppc64 and s_cosf-power8.
7432 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7433 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7434 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7435 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7436 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7439 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7441 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7442 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7443 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7444
7445 2018-08-17 Florian Weimer <fweimer@redhat.com>
7446
7447 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7448
7449 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7450
7451 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7452
7453 2018-08-16 Florian Weimer <fweimer@redhat.com>
7454
7455 * configure.ac: Add --with-nonshared-cflags option.
7456 * config.make.in (extra-nonshared-cflags): Set variable.
7457 * Makeconfig (CFLAGS-.oS): Use it.
7458 * manual/install.texi (Configuring and compiling): Document
7459 --with-nonshared-cflags.
7460 * configure: Regenerate.
7461 * INSTALL: Likewise.
7462
7463 2018-08-16 Florian Weimer <fweimer@redhat.com>
7464
7465 * Makeconfig (ASFLAGS): Always append required assembler flags.
7466
7467 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7468
7469 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7470 (malloc_consolidate): Likewise.
7471
7472 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7473
7474 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7475
7476 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7477
7478 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7479 every strlen call.
7480
7481 * benchtests/bench-strlen.c: Print performance numbers in json.
7482
7483 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7484
7485 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7486 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7487 only for little endian.
7488 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7489 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7490 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7491 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7492 Add check for little endian.
7493 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7494 (__strcmp_power9): Add check for little endian.
7495 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7496 Add check for little endian.
7497 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7498 (__strncmp_power9): Add check for little endian.
7499 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7500 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7501 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7502 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7503 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7504
7505 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7506
7507 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7508 [!STRLEN](STRLEN): Set to __strlen.
7509 * sysdeps/aarch64/multiarch/strlen.c: New file.
7510 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7511 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7512 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7513 (__libc_ifunc_impl_list): Add strlen.
7514 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7515 strlen_generic and strlen_asimd.
7516
7517 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7518
7519 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7520 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7521 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7522
7523 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7524
7525 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7526
7527 2018-08-14 Florian Weimer <fweimer@redhat.com>
7528
7529 [BZ #23519]
7530 * include/stdio.h (__vfxprintf): Declare.
7531 * stdio-common/fxprintf.c (__vfxprintf): New function.
7532 (__fxprintf): Call it.
7533 * misc/err.c (convert_and_print): Remove function.
7534 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7535 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7536 * misc/Makefile (tests): Add tst-warn-wide.
7537 * misc/tst-warn-wide.c: New file.
7538
7539 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7540 Szabolcs Nagy <szabolcs.nagy@arm.com>
7541
7542 * NEWS: Mention sinf, cosf, sincosf.
7543 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7544 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7545 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7546 constants rather than including generic sincosf.h.
7547 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7548 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7549 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7550 (reduced_cos): Remove.
7551 (sinf_poly): New function.
7552 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7553
7554 2018-08-14 Florian Weimer <fweimer@redhat.com>
7555
7556 [BZ #23521]
7557 [BZ #23522]
7558 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7559 processing, bail out if no room, and close the stream before
7560 returning ERANGE.
7561 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7562 (tst-nss-files-alias-leak): Link with libdl.
7563 (tst-nss-files-alias-leak.out): Depend on nss_files.
7564
7565 * nss/tst-nss-files-alias-leak.c: New file.
7566
7567 2018-08-14 Florian Weimer <fweimer@redhat.com>
7568
7569 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7570 server_user, stat_user.
7571
7572 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7573
7574 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7575 version to 4.18.
7576 (io_pgetevents): New syscall.
7577 (rseq): Likewise.
7578
7579 * manual/install.texi (Configuring and compiling): Do not list
7580 tools used for testing pretty printers here.
7581 (Tools for Compilation): List Python, PExpect and GDB here.
7582 Update descriptions of uses of Perl and Python.
7583 * INSTALL: Regenerate.
7584
7585 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7586 version to 4.18.
7587
7588 2018-08-13 Florian Weimer <fweimer@redhat.com>
7589
7590 * misc/error.c (error): Add missing va_end call.
7591 (error_at_line): Likewise.
7592
7593 2018-08-13 Florian Weimer <fweimer@redhat.com>
7594
7595 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7596
7597 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7598
7599 * benchtests/scripts/benchout.schema.json (properties): Add
7600 new properties.
7601
7602 * benchtests/bench-skeleton.c (main): Add duration and
7603 iterations attributes.
7604
7605 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7606
7607 regex: Gnulib unibyte RRI uses bytes not chars
7608 Adjust the non-glibc code to agree with what Gawk needs for
7609 rational range interpretation (RRI) for regular expression ranges.
7610 In unibyte locales, Gawk wants ranges to use the underlying byte
7611 rather than the character code point. This change does not affect
7612 glibc proper.
7613 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7614 In unibyte locales, use the byte value rather than
7615 running it through btowc.
7616
7617 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7618
7619 * sysdeps/generic/math-tests-snan.h: New file.
7620 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7621 (SNAN_TESTS_float): Do not define here.
7622 (SNAN_TESTS_double): Likewise.
7623 (SNAN_TESTS_long_double): Likewise.
7624 (SNAN_TESTS_float128): Likewise.
7625 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7626 * sysdeps/i386/fpu/math-tests.h: Remove file.
7627 * sysdeps/ia64/math-tests-snan.h: New file.
7628 * sysdeps/ia64/math-tests.h: Remove file.
7629 * sysdeps/x86/math-tests.h: Likewise.
7630 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7631
7632 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7633 Szabolcs Nagy <szabolcs.nagy@arm.com>
7634
7635 * math/Makefile: Add s_sincosf_data.c.
7636 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7637 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7638 (sincosf_poly): Likewise.
7639 (reduce_small): Likewise.
7640 (reduce_large): Likewise.
7641 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7642 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7643 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7644 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7645
7646 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7647 Szabolcs Nagy <szabolcs.nagy@arm.com>
7648
7649 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7650 (converttoint): Use lround.
7651 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7652 document the semantics when TOINT_INTRINSICS is set.
7653 (converttoint): Likewise.
7654 (TOINT_RINT): Remove.
7655 (TOINT_SHIFT): Remove.
7656 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7657 path.
7658
7659 2018-08-10 Florian Weimer <fweimer@redhat.com>
7660
7661 [BZ #23497]
7662 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7663 function.
7664 (__old_getdents64): Use getdents64. Convert entries without
7665 moving them.
7666 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7667 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7668 tst-readdir64-compat.
7669
7670 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7671
7672 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7673 Fix unwind.
7674
7675 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7676
7677 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7678 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7679 code to s390x-mcount.h and #include it.
7680 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7681 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7682 (__fentry__): Add.
7683
7684 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7685
7686 * stdlib/Versions: Remove __fentry__.
7687 * sysdeps/i386/Versions: Add __fentry__.
7688 * sysdeps/x86_64/Versions: Add __fentry__.
7689
7690 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7691
7692 * sysdeps/s390/Makefile: Register the new tests.
7693 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7694 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7695 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7696 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7697 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7698 * sysdeps/s390/tst-dl-runtime.c: New file.
7699
7700 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7701
7702 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7703 Do not clobber R0.
7704
7705 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7706
7707 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7708 Do not clobber R0.
7709
7710 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7711
7712 * sysdeps/s390/s390-32/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-32/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-64/dl-trampoline.h (_dl_runtime_profile):
7723 Use symbolic offsets for stack variables.
7724
7725 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7726
7727 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7728 Use symbolic offsets for stack variables.
7729
7730 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7731
7732 * sysdeps/s390/s390-32/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-32/dl-trampoline.h (_dl_runtime_resolve):
7738 Use symbolic offsets for stack variables.
7739
7740 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7741
7742 * math/gen-libm-test.py: New file.
7743 * math/gen-libm-test.pl: Remove.
7744 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7745 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7746 gen-libm-test.pl.
7747 ($(libm-test-c-noauto-obj)): Likewise.
7748 ($(libm-test-c-auto-obj)): Likewise.
7749 ($(libm-test-c-narrow-obj)): Likewise.
7750 (regen-ulps): Likewise.
7751 * math/README.libm-test: Update references to gen-libm-test.pl.
7752 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7753 referencing gen-libm-test.pl.
7754 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7755 * math/libm-test-support.c: Likewise.
7756 * math/libm-test-support.h: Likewise.
7757 * sysdeps/generic/libm-test-ulps: Likewise.
7758
7759 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7760
7761 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7762 Fix value.
7763
7764 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7765
7766 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7767 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7768
7769 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7770
7771 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7772 symbols.
7773 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7774 __pthread_setspecific): Add hidden proto.
7775 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7776 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7777
7778 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7779
7780 * benchtests/bench-string.h (buf1_size, buf2_size): New
7781 variables.
7782 (init_sizes): New function.
7783 (test_init): Use it.
7784 (alloc_buf, exit_error): New functions.
7785 (alloc_bufs): Use ALLOC_BUF.
7786 (realloc_bufs): Remove.
7787 * benchtests/bench-memcmp.c (do_test): Adjust.
7788 * benchtests/bench-memset-large.c (do_test): Likewise.
7789 * benchtests/bench-memset-walk.c (do_test): Likewise.
7790 * benchtests/bench-memset.c (do_test): Likewise.
7791 * benchtests/bench-strncmp.c (do_test): Likewise.
7792
7793 2018-08-06 Andreas Schwab <schwab@suse.de>
7794
7795 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7796 of CONST_THREAD_AREA.
7797
7798 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7799
7800 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7801 (STATE_SAVE_MASK): Likewise.
7802 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7803 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7804 (STATE_SAVE_MASK): Likewise.
7805 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7806 instead of <cpu-features.h>.
7807
7808 2018-08-03 DJ Delorie <dj@redhat.com>
7809
7810 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7811 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7812
7813 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7814
7815 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7816
7817 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7818 after TEST_* calls.
7819 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7820 * math/libm-test-logb.inc (logb_test_data): Likewise.
7821
7822 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7823
7824 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7825 * string/strstr.c (AVAILABLE): Likewise.
7826
7827 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7828
7829 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7830 <init-arch.h>.
7831 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7832 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7833 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7834
7835 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7836
7837 * po/be.po: Update translation.
7838
7839 * po/be.po: Update translation.
7840
7841 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7842
7843 * sysdeps/x86/cpu-features-offsets.sym
7844 (rtld_global_ro_offsetof): Removed.
7845 (CPU_FEATURES_SIZE): Likewise.
7846 (CPUID_OFFSET): Likewise.
7847 (CPUID_SIZE): Likewise.
7848 (CPUID_EAX_OFFSET): Likewise.
7849 (CPUID_EBX_OFFSET): Likewise.
7850 (CPUID_ECX_OFFSET): Likewise.
7851 (CPUID_EDX_OFFSET): Likewise.
7852 (FAMILY_OFFSET): Likewise.
7853 (MODEL_OFFSET): Likewise.
7854 (FEATURE_OFFSET): Likewise.
7855 (FEATURE_SIZ): Likewise.
7856 (COMMON_CPUID_INDEX_1): Likewise.
7857 (COMMON_CPUID_INDEX_7): Likewise.
7858 (FEATURE_INDEX_1): Likewise.
7859 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7860
7861 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7862
7863 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7864 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7865 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7866 (install-locales): Depend on install-locale-archive.
7867 (install-locale-archive): Define.
7868 (install-locale-files): Define.
7869 (build-one-locale): Define macro.
7870 * manual/install.texi (Running make install): Document.
7871 * manual/INSTALL: Regenerate.
7872
7873 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7874
7875 * benchtests/scripts/compare_strings.py: Import traceback.
7876 (parse_file): Pretty-print error.
7877
7878 * NEWS: Mention the change.
7879 * elf/dl-tunables.list: Rename tune namespace to cpu.
7880 * sysdeps/powerpc/dl-tunables.list: Likewise.
7881 * sysdeps/x86/dl-tunables.list: Likewise.
7882 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7883 cpu.name.
7884 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7885 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7886 * manual/README.tunables: Likewise.
7887 * manual/tunables.texi: Likewise.
7888 * sysdeps/powerpc/cpu-features.c: Likewise.
7889 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7890 (init_cpu_features): Likewise.
7891 * sysdeps/x86/cpu-features.c: Likewise.
7892 * sysdeps/x86/cpu-features.h: Likewise.
7893 * sysdeps/x86/cpu-tunables.c: Likewise.
7894 * sysdeps/x86_64/Makefile: Likewise.
7895 * sysdeps/x86/dl-cet.c: Likewise.
7896
7897 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7898
7899 [BZ #23479]
7900 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7901 [__mips_hard_float].
7902 (FE_UNDERFLOW): Likewise.
7903 (FE_OVERFLOW): Likewise.
7904 (FE_DIVBYZERO): Likewise.
7905 (FE_INVALID): Likewise.
7906 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7907 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7908 (FE_UPWARD): Likewise.
7909 (FE_DOWNWARD): Likewise.
7910 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7911 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7912 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7913 [__mips_hard_float].
7914 (FP_ROUNDMODE): Likewise.
7915 (FP_RND_NEAREST): Likewise.
7916 (FP_RND_ZERO): Likewise.
7917 (FP_RND_PINF): Likewise.
7918 (FP_RND_MINF): Likewise.
7919 (FP_EX_INVALID): Likewise.
7920 (FP_EX_OVERFLOW): Likewise.
7921 (FP_EX_UNDERFLOW): Likewise.
7922 (FP_EX_DIVZERO): Likewise.
7923 (FP_EX_INEXACT): Likewise.
7924 (FP_INIT_ROUNDMODE): Likewise.
7925 * sysdeps/mips/nofpu/fesetenv.c: New file.
7926 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7927
7928 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7929
7930 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7931 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7932 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7933 conditional on [FE_UPWARD].
7934
7935 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7936
7937 regex: fix memory leak in Gnulib
7938 Problem and fix reported by Assaf Gordon in:
7939 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7940 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7941 range_ends members too, as they are defined in 'struct
7942 re_charset_t' even if not _LIBC. This affects only Gnulib.
7943
7944 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7945
7946 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7947 ...
7948 (get_common_indices): This.
7949 (init_cpu_features): Updated.
7950
7951 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7952
7953 * sysdeps/generic/math-tests-snan-payload.h: New file.
7954 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7955 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7956 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7957 * sysdeps/generic/math-tests.h: Include
7958 <math-tests-snan-payload.h>.
7959 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7960 * sysdeps/hppa/math-tests.h: Remove file.
7961 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7962 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7963 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7964 Likewise.
7965
7966 * sysdeps/generic/math-tests-snan-cast.h: New file.
7967 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7968 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7969 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7970 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7971
7972 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7973
7974 * version.h (RELEASE): Set to "development".
7975 (VERSION): Set to "2.28.9000".
7976 * NEWS (2.29): New section.
7977
7978 * version.h (RELEASE): Set to "stable".
7979 (VERSION): Set to "2.28".
7980 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7981 * NEWS: Add the list of bugs fixed in 2.28.
7982
7983 * po/ca.po: Update to latest version.
7984 * po/cs.po: Likewise
7985 * po/da.po: Likewise
7986 * po/el.po: Likewise
7987 * po/eo.po: Likewise
7988 * po/es.po: Likewise
7989 * po/fi.po: Likewise
7990 * po/fr.po: Likewise
7991 * po/gl.po: Likewise
7992 * po/hu.po: Likewise
7993 * po/ia.po: Likewise
7994 * po/id.po: Likewise
7995 * po/it.po: Likewise
7996 * po/ja.po: Likewise
7997 * po/ko.po: Likewise
7998 * po/lt.po: Likewise
7999 * po/nb.po: Likewise
8000 * po/nl.po: Likewise
8001 * po/pt_BR.po: Likewise
8002 * po/ru.po: Likewise
8003 * po/rw.po: Likewise
8004 * po/sk.po: Likewise
8005 * po/sl.po: Likewise
8006 * po/tr.po: Likewise
8007 * po/zh_CN.po: Likewise
8008 * po/zh_TW.po: Likewise
8009
8010 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8011
8012 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8013 initialization...
8014 (init): ... before initializing libpthread.
8015
8016 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8017 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8018 (__mach_setup_tls): ... new function.
8019 (mach_setup_tls): New alias.
8020 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8021 __mach_setup_thread.
8022 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8023 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8024 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8025 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8026
8027 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8028
8029 * manual/install.texi: Update versions.
8030 * INSTALL: Regenerate.
8031
8032 * manual/contrib.texi (Contributors): Update contributions.
8033
8034 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8035
8036 * po/be.po: Update translations.
8037
8038 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8039
8040 * sysdeps/sh/libm-test-ulps: Update.
8041
8042 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8043
8044 * po/bg.po: Update translations.
8045 * po/de.po: Likewise.
8046 * po/hr.po: Likewise.
8047 * po/pt_BR.po: Likewise.
8048 * po/sv.po: Likewise.
8049 * po/vi.po: Likewise.
8050
8051 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8052
8053 [BZ #23467]
8054 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8055 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8056 (CFLAGS-tst-cet-property-1.o): New.
8057 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8058 ($(objpfx)tst-cet-property-2): Likewise.
8059 ($(objpfx)tst-cet-property-2.out): Likewise.
8060 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8061 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8062 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8063 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8064 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8065
8066 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8067
8068 [BZ #23458]
8069 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8070
8071 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8072
8073 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8074 __sbrk): Do not set attribute_hidden.
8075 * sysdeps/mach/hurd/not-errno.h: New file.
8076 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8077 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8078
8079 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8080
8081 * po/uk.po: Update translations.
8082 * po/cs.po: Likewise.
8083 * po/pl.po: Likewise.
8084
8085 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8086
8087 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8088 parse beyond the note end.
8089
8090 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8091
8092 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8093 kernel does not support OFD locks.
8094 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8095
8096 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8097
8098 * sysdeps/mach/hurd/Versions (libc): Make __access and
8099 __access_noerrno external so they can override the ld symbols.
8100 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8101 __writev, __open64, __access_noerrno extern so they can be overrided.
8102 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8103 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8104
8105 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8106
8107 * po/libc.pot: Regenerate.
8108
8109 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8110
8111 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8112
8113 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8114
8115 [BZ #23459]
8116 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8117 function.
8118 (init_cpu_features): Call get_extended_indices for both Intel
8119 and AMD CPUs.
8120 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8121 Remove "for AMD" comment.
8122
8123 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8124
8125 [BZ # 23456]
8126 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8127 COMMON_CPUID_INDEX_80000001.
8128
8129 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8130
8131 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8132 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8133
8134 2018-07-26 Florian Weimer <fweimer@redhat.com>
8135
8136 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8137 aliases for symbols not in the implementation namespace.
8138
8139 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8140
8141 [BZ #23393]
8142 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8143 lowercase in LATIN script.
8144 * localedata/Makefile (test-input): Add en_US.UTF-8.
8145 * localedata/en_US.UTF-8.in: New file.
8146 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8147 and restore old tests.
8148 * posix/tst-regexloc.c (do_test): Add back range expression test.
8149
8150 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8151
8152 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8153
8154 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8155
8156 * nptl/threads.h: Move to ...
8157 * sysdeps/nptl/threads.h: ... here.
8158 * sysdeps/hurd/stdc-predef.h: New file.
8159
8160 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8161
8162 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8163 tst-cet-setcontext-1 if CET is enabled.
8164 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8165 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8166
8167 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8168
8169 * include/threads.h: Move to ...
8170 * sysdeps/nptl/threads.h: ... here.
8171 * sysdeps/htl/threads.h: New file.
8172 * conform/Makefile (linknamespace-libs-ISO11): Use
8173 static-thread-library instead of linking libpthread.
8174 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8175
8176 2018-07-25 Florian Weimer <fweimer@redhat.com>
8177
8178 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8179 nanoseconds into seconds.
8180 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8181 (do_test): Likewise.
8182 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8183 (do_test): Likewise. Avoid nanosecond overflow and spurious
8184 timeouts due to system load.
8185 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8186 (child_wait): Increment it.
8187 (do_test): Wait as long as necessary until all expected threads
8188 have arrived.
8189
8190 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8191 H.J. Lu <hongjiu.lu@intel.com>
8192
8193 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8194 __ssp.
8195 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8196 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8197 (__push___start_context): New.
8198 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8199 <asm/prctl.h>.
8200 (__getcontext): Record the current shadow stack base. Save the
8201 caller's shadow stack pointer and base.
8202 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8203 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8204 (__push___start_context): New prototype.
8205 (__makecontext): Call __push___start_context to allocate a new
8206 shadow stack, push __start_context onto the new stack as well
8207 as the new shadow stack.
8208 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8209 <asm/prctl.h>.
8210 (__setcontext): Restore the target shadow stack.
8211 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8212 <asm/prctl.h>.
8213 (__swapcontext): Record the current shadow stack base. Save
8214 the caller's shadow stack pointer and base. Restore the target
8215 shadow stack.
8216 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8217 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8218 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8219
8220 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8221
8222 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8223 tst-setcontext8 and tst-setcontext9.
8224 * stdlib/tst-setcontext6.c: New file.
8225 * stdlib/tst-setcontext7.c: Likewise.
8226 * stdlib/tst-setcontext8.c: Likewise.
8227 * stdlib/tst-setcontext9.c: Likewise.
8228
8229 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8230
8231 * stdlib/Makefile ((tests): Add tst-setcontext5.
8232 * stdlib/tst-setcontext5.c: New file.
8233
8234 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8235
8236 * stdlib/Makefile (tests): Add tst-setcontext4.
8237 * stdlib/tst-setcontext4.c: New file.
8238
8239 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8240
8241 * stdlib/Makefile (tests): Add tst-swapcontext1.
8242 * stdlib/tst-swapcontext1.c: New test.
8243
8244 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8245
8246 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8247 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8248 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8249 and tst-cet-legacy-4c.
8250 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8251 and tst-cet-legacy-mod-4.
8252 (CFLAGS-tst-cet-legacy-2.c): New.
8253 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8254 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8255 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8256 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8257 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8258 ($(objpfx)tst-cet-legacy-1): Likewise.
8259 ($(objpfx)tst-cet-legacy-2): Likewise.
8260 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8261 ($(objpfx)tst-cet-legacy-2a): Likewise.
8262 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8263 ($(objpfx)tst-cet-legacy-4): Likewise.
8264 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8265 ($(objpfx)tst-cet-legacy-4a): Likewise.
8266 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8267 (tst-cet-legacy-4a-ENV): Likewise.
8268 ($(objpfx)tst-cet-legacy-4b): Likewise.
8269 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8270 (tst-cet-legacy-4b-ENV): Likewise.
8271 ($(objpfx)tst-cet-legacy-4c): Likewise.
8272 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8273 (tst-cet-legacy-4c-ENV): Likewise.
8274 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8275 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8276 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8277 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8278 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8279 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8280 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8281 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8282 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8283 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8284 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8285
8286 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8287
8288 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8289 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8290 with ssp_base.
8291 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8292 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8293 with ssp_base.
8294
8295 2018-07-25 Andreas Schwab <schwab@suse.de>
8296
8297 [BZ #23442]
8298 * locale/weightwc.h (findidx): Handle the case where usrc is a
8299 prefix of cp but one character too short.
8300
8301 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8302
8303 * NEWS: Add ISO C threads addition.
8304
8305 2018-07-24 Florian Weimer <fweimer@redhat.com>
8306
8307 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8308 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8309 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8310 4.13.
8311
8312 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8313
8314 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8315 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8316 <sys/prctl.h> and <asm/prctl.h>.
8317 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8318 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8319 and <asm/prctl.h>.
8320 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8321 ARCH_CET_LEGACY_BITMAP.
8322 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8323 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8324 * sysdeps/x86/libc-start.c: Include <startup.h>.
8325
8326 2018-07-24 Florian Weimer <fweimer@redhat.com>
8327
8328 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8329 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8330
8331 2018-07-24 Rical Jasan <rj@2c3t.io>
8332 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8333 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8334
8335 [BZ #14092]
8336 * manual/debug.texi: Update adjacent chapter name.
8337 * manual/probes.texi: Likewise.
8338 * manual/threads.texi (ISO C Threads): New section.
8339 (POSIX Threads): Convert to a section.
8340
8341 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8342 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8343
8344 [BZ# 14092]
8345 * nptl/Makefile (tests): Add new test files.
8346 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8347 * nptl/tst-cnd-basic.c: Likewise.
8348 * nptl/tst-cnd-broadcast.c: Likewise.
8349 * nptl/tst-cnd-timedwait.c: Likewise.
8350 * nptl/tst-mtx-basic.c: Likewise.
8351 * nptl/tst-mtx-recursive.c: Likewise.
8352 * nptl/tst-mtx-timedlock.c: Likewise.
8353 * nptl/tst-mtx-trylock.c: Likewise.
8354 * nptl/tst-thrd-basic.c: Likewise.
8355 * nptl/tst-thrd-detach.c: Likewise.
8356 * nptl/tst-thrd-sleep.c: Likewise.
8357 * nptl/tst-tss-basic.c: Likewise.
8358
8359 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8360
8361 [BZ #14092]
8362 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8363 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8364 symbols.
8365 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8366 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8367 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8368 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8369 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8370 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8371 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8372 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8373 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8374 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8375 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8376 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8378 Likewise.
8379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8380 Likewise.
8381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8382 Likewise.
8383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8386 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8387 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8388 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8389 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8390 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8391 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8392 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8393 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8394 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8395 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8396 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8397 Likewise.
8398 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8403 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8404 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8405 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8406 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8407 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8408 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8409 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8410 ikewise.
8411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8412 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8413 Likewise.
8414 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8415 Likewise.
8416 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8417 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8418 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8419 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8420 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8421 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8422 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8423 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8424
8425 [BZ #14092]
8426 * conform/data/threads.h-data (thread_local): New macro.
8427 (TSS_DTOR_ITERATIONS): Likewise.
8428 (tss_t): New type.
8429 (tss_dtor_t): Likewise.
8430 (tss_create): New function.
8431 (tss_get): Likewise.
8432 (tss_set): Likewise.
8433 (tss_delete): Likewise.
8434 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8435 tss_get, and tss_set objects.
8436 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8437 * nptl/tss_create.c: New file.
8438 * nptl/tss_delete.c: Likewise.
8439 * nptl/tss_get.c: Likewise.
8440 * nptl/tss_set.c: Likewise.
8441 * sysdeps/nptl/threads.h (thread_local): New define.
8442 (TSS_DTOR_ITERATIONS): Likewise.
8443 (tss_t): New typedef.
8444 (tss_dtor_t): Likewise.
8445 (tss_create): New prototype.
8446 (tss_get): Likewise.
8447 (tss_set): Likewise.
8448 (tss_delete): Likewise.
8449
8450 [BZ #14092]
8451 * conform/data/threads.h-data (cnd_t): New type.
8452 (cnd_init): New function.
8453 (cnd_signal): Likewise.
8454 (cnd_broadcast): Likewise.
8455 (cnd_wait): Likewise.
8456 (cnd_timedwait): Likewise.
8457 (cnd_destroy): Likewise.
8458 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8459 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8460 object.
8461 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8462 * nptl/cnd_broadcast.c: New file.
8463 * nptl/cnd_destroy.c: Likewise.
8464 * nptl/cnd_init.c: Likewise.
8465 * nptl/cnd_signal.c: Likewise.
8466 * nptl/cnd_timedwait.c: Likewise.
8467 * nptl/cnd_wait.c: Likewise.
8468 * sysdeps/nptl/threads.h (cnd_t): New type.
8469 (cnd_init): New prototype.
8470 (cnd_signa): Likewise.
8471 (cnd_broadcast): Likewise.
8472 (cnd_wait): Likewise.
8473 (cnd_timedwait): Likewise.
8474 (cnd_destroy): Likewise.
8475
8476 [BZ #14092]
8477 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8478 (once_flag): New type.
8479 (call_once): New function.
8480 * nptl/Makefile (libpthread-routines): Add call_once object.
8481 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8482 * nptl/call_once.c: New file.
8483 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8484 (once_flag): New type.
8485 (call_once): New prototype.
8486
8487 [BZ #14092]
8488 * conform/data/threads.h-data (mtx_plain): New constant.
8489 (mtx_recursive): Likewise.
8490 (mtx_timed): Likewise.
8491 (mtx_t): New type.
8492 (mtx_init): New function.
8493 (mtx_lock): Likewise.
8494 (mtx_timedlock): Likewise.
8495 (mtx_trylock): Likewise.
8496 (mtx_unlock): Likewise.
8497 (mtx_destroy): Likewise.
8498 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8499 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8500 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8501 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8502 * nptl/mtx_destroy.c: New file.
8503 * nptl/mtx_init.c: Likewise.
8504 * nptl/mtx_lock.c: Likewise.
8505 * nptl/mtx_timedlock.c: Likewise.
8506 * nptl/mtx_trylock.c: Likewise.
8507 * nptl/mtx_unlock.c: Likewise.
8508 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8509 (mtx_recursive): Likewise.
8510 (mtx_timed): Likewise.
8511 (mtx_t): New type.
8512 (mtx_init): New prototype.
8513 (mtx_lock): Likewise.
8514 (mtx_timedlock): Likewise.
8515 (mtx_trylock): Likewise.
8516 (mtx_unlock): Likewise.
8517 (mtx_destroy): Likewise.
8518
8519 [BZ #14092]
8520 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8521 (linknamespace-libs-ISO11): Add libpthread.a.
8522 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8523 functions.
8524 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8525 * nptl/Makefile (headers): Add threads.h.
8526 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8527 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8528 thrd_yield.
8529 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8530 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8531 thrd_join, thrd_sleep, and thrd_yield symbols.
8532 * nptl/descr.h (struct pthread): Add c11 field.
8533 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8534 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8535 routine with expected function prototype.
8536 (__pthread_create_2_1): Add C11 threads check based on attribute
8537 value.
8538 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8539 * nptl/thrd_create.c: New file.
8540 * nptl/thrd_current.c: Likewise.
8541 * nptl/thrd_detach.c: Likewise.
8542 * nptl/thrd_equal.c: Likewise.
8543 * nptl/thrd_exit.c: Likewise.
8544 * nptl/thrd_join.c: Likewise.
8545 * nptl/thrd_priv.h: Likewise.
8546 * nptl/thrd_sleep.c: Likewise.
8547 * nptl/thrd_yield.c: Likewise.
8548 * include/threads.h: Likewise.
8549
8550 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8551
8552 * bits/indirect-return.h: New file.
8553 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8554 * sysdeps/x86/bits/indirect-return.h: Likewise.
8555 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8556 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8557 (swapcontext): Add __INDIRECT_RETURN.
8558 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8559 (prepare_test_buffer): Use it.
8560
8561 2018-07-24 Andreas Schwab <schwab@suse.de>
8562
8563 [BZ #23448]
8564 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8565 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8566
8567 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8568
8569 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8570 Redefine if shadow stack is enabled.
8571 (SYSCALL_ERROR_LABEL): Likewise.
8572 (__vfork): Pop shadow stack and jump back to to caller directly
8573 when shadow stack is in use.
8574 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8575 Redefine if shadow stack is enabled.
8576 (SYSCALL_ERROR_LABEL): Likewise.
8577 (__vfork): Pop shadow stack and jump back to to caller directly
8578 when shadow stack is in use.
8579
8580 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8581
8582 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8583 enabled.
8584 (foo): Likewise.
8585 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8586 (foo): Likewise.
8587
8588 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8589
8590 * scripts/build-many-glibcs.py (Context.checkout): Default
8591 binutils version to 2.31 branch.
8592
8593 2018-07-20 Zong Li <zong@andestech.com>
8594
8595 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8596 URL of gcc's tarball.
8597
8598 2018-07-20 Florian Weimer <fweimer@redhat.com>
8599
8600 [BZ #23396]
8601 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8602 not compare an extra byte after the end of the weights.
8603
8604 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8605
8606 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8607 to 1.
8608 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8609 hidden prototypes.
8610 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8611 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8612 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8613 list of libraries whose stack executability is expected.
8614 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8615 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8616 variable.
8617 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8618 libc.so libpthread.so.
8619
8620 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8621
8622 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8623 SOCK_NONBLOCK.
8624 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8625 and SOCK_NONBLOCK.
8626 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8627 implement __pipe2.
8628 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8629
8630 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8631
8632 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8633 library to improve command line parsing.
8634 (__main__): make schema file as optional parameter (--schema),
8635 defaulting to benchtests/scripts/benchout.schema.json.
8636 (main): move out of the parsing stuff to __main_  and leave it
8637 only as caller of main comparison functions.
8638
8639 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8640
8641 * NEWS: Add a note for Intel CET status.
8642 * manual/install.texi: Likewise.
8643 * INSTALL: Regenerated.
8644
8645 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8646
8647 [BZ #23140]
8648 * localedata/locales/oc_FR (mon): Rename to...
8649 (alt_mon): This, then update October (typo fix).
8650 (mon): New content (genitive case, month names preceded by
8651 "de" or "d’").
8652
8653 [BZ #23422]
8654 * localedata/locales/oc_FR (abday): Update all items.
8655 (day): Update Wednesday and Saturday (typo fixes).
8656 (abmon): Update all items, except May.
8657 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8658 (LC_IDENTIFICATION): Bump the revision number and date.
8659 Keep the "category" entries in alphabetic order.
8660 (LC_ADDRESS): Remove no longer needed comment.
8661 (LC_COLLATE): Use “copy "ca_ES"”.
8662 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8663 "name_mrs".
8664
8665 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8666
8667 * grp/tst_fgetgrent.c: Include <unistd.h>.
8668 (main): Use mkstemp instead of tmpnam.
8669 * io/test-utime.c (main): Likewise.
8670 * posix/annexc.c (macrofile): Change to modifiable array.
8671 (main): Remove macrofile here.
8672 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8673 macrofile here.
8674 (check_header): Do not remove macrofile here.
8675 * posix/bug-getopt1.c: Include <stdlib.h>.
8676 (do_test): Use mkstemp instead of tmpnam.
8677 * posix/bug-getopt2.c: Include <stdlib.h>.
8678 (do_test): Use mkstemp instead of tmpnam.
8679 * posix/bug-getopt3.c: Include <stdlib.h>.
8680 (do_test): Use mkstemp instead of tmpnam.
8681 * posix/bug-getopt4.c: Include <stdlib.h>.
8682 (do_test): Use mkstemp instead of tmpnam.
8683 * posix/bug-getopt5.c: Include <stdlib.h>.
8684 (do_test): Use mkstemp instead of tmpnam.
8685 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8686 (main): Use mkstemp instead of tmpnam.
8687 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8688 (main): Use mkstemp instead of tmpnam.
8689 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8690 (main): use mkstemp instead of tmpnam.
8691 * stdlib/isomac.c (macrofile): Change to modifiable array.
8692 (main): Remove macrofile here.
8693 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8694 macrofile here.
8695 (check_header): Do not remove macrofile here.
8696
8697 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8698
8699 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8700 glibc.tune.x86_shstk.
8701
8702 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8703
8704 * NEWS: Mention --enable-cet.
8705 * manual/install.texi: Document --enable-cet.
8706 * INSTALL: Regenerated.
8707
8708 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8709
8710 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8711 Add _CET_NOTRACK before indirect jump to jump table.
8712
8713 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8714
8715 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8716 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8717 to jump table.
8718
8719 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8720
8721 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8722 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8723 to jump table.
8724
8725 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8726
8727 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8728 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8729 to jump table.
8730
8731 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8732
8733 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8734 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8735 to jump table.
8736
8737 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8738
8739 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8740 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8741 to jump table.
8742 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8743
8744 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8745
8746 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8747 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8748 to jump table.
8749
8750 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8751
8752 * sysdeps/i386/i686/multiarch/memset-sse2.S
8753 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8754 to jump table.
8755
8756 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8757
8758 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8759 indirect jump to jump table.
8760
8761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8762
8763 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8764 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8765 to jump table.
8766 (MEMCPY): Likewise.
8767
8768 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8769
8770 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
8771 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8772 to jump table.
8773 (MEMCPY): Likewise.
8774
8775 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8776
8777 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8778 _CET_NOTRACK before indirect jump to jump table.
8779
8780 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8781
8782 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8783 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8784 to jump table.
8785
8786 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8787
8788 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8789 indirect jump to jump table.
8790
8791 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8792
8793 [BZ #22241]
8794 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8795 (LOCALES): Likewise.
8796 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8797 * localedata/locales/sah_RU: New file.
8798 * localedata/sah_RU.UTF-8.in: New file.
8799
8800 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8801
8802 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8803 "sysdep.h".
8804 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8805 _CET_ENDBR to indirect jump targets and adjust jump destination
8806 for _CET_ENDBR.
8807 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8808 "sysdep.h".
8809 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8810 _CET_ENDBR to indirect jump targets and adjust jump destination
8811 for _CET_ENDBR.
8812 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8813 "sysdep.h".
8814 (__mpn_sub_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
8818 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8819
8820 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8821 _CET_ENDBR.
8822
8823 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8824
8825 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8826 _CET_ENDBR.
8827 (_dl_tlsdesc_undefweak): Likewise.
8828 (_dl_tlsdesc_dynamic): Likewise.
8829 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8830 (_dl_tlsdesc_resolve_rel): Likewise.
8831 (_dl_tlsdesc_resolve_rela): Likewise.
8832 (_dl_tlsdesc_resolve_hold): Likewise.
8833 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8834 (_dl_tlsdesc_undefweak): Likewise.
8835 (_dl_tlsdesc_dynamic): Likewise.
8836 (_dl_tlsdesc_resolve_rela): Likewise.
8837 (_dl_tlsdesc_resolve_hold): Likewise.
8838
8839 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8840
8841 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8842 (_fini): Likewise.
8843 * sysdeps/x86_64/crti.S (_init): Likewise.
8844 (_fini): Likewise.
8845
8846 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8847
8848 [BZ #23140]
8849 * localedata/locales/os_RU (mon): Rename to...
8850 (alt_mon): This.
8851 (mon): Import from CLDR (genitive case).
8852
8853 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8856 cet-tunables.h> when CET is enabled.
8857
8858 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8859
8860 [BZ #21598]
8861 * configure.ac: Add --enable-cet.
8862 * configure: Regenerated.
8863 * elf/Makefille (all-built-dso): Add a comment.
8864 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8865 Include <dl-prop.h>.
8866 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8867 segment.
8868 * elf/dl-open.c: Include <dl-prop.h>.
8869 (dl_open_worker): Call _dl_open_check.
8870 * elf/rtld.c: Include <dl-prop.h>.
8871 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8872 _rtld_main_check.
8873 * sysdeps/generic/dl-prop.h: New file.
8874 * sysdeps/i386/dl-cet.c: Likewise.
8875 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8876 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8877 * sysdeps/x86/cet-tunables.h: Likewise.
8878 * sysdeps/x86/check-cet.awk: Likewise.
8879 * sysdeps/x86/configure: Likewise.
8880 * sysdeps/x86/configure.ac: Likewise.
8881 * sysdeps/x86/dl-cet.c: Likewise.
8882 * sysdeps/x86/dl-procruntime.c: Likewise.
8883 * sysdeps/x86/dl-prop.h: Likewise.
8884 * sysdeps/x86/libc-start.h: Likewise.
8885 * sysdeps/x86/link_map.h: Likewise.
8886 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8887 _CET_ENDBR.
8888 (_dl_runtime_profile): Likewise.
8889 (_dl_runtime_resolve_shstk): New.
8890 (_dl_runtime_profile_shstk): Likewise.
8891 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8892 if CET is enabled.
8893 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8894 (CFLAGS-.os): Likewise.
8895 (CFLAGS-.op): Likewise.
8896 (CFLAGS-.oS): Likewise.
8897 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8898 is enabled.
8899 (tests-special): Add $(objpfx)check-cet.out.
8900 (cet-built-dso): New.
8901 (+$(cet-built-dso:=.note)): Likewise.
8902 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8903 ($(objpfx)check-cet.out): New.
8904 (generated): Add check-cet.out.
8905 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8906 <cet-tunables.h>.
8907 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8908 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8909 (init_cpu_features): Call get_cet_status to check CET status
8910 and update dl_x86_feature_1 with CET status. Call
8911 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8912 (set_x86_shstk). Disable and lock CET in libc.a.
8913 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8914 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8915 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8916 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8917 (_CET_ENDBR): Define if not defined.
8918 (ENTRY): Add _CET_ENDBR.
8919 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8920 x86_shstk.
8921 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8922 _CET_ENDBR.
8923 (_dl_runtime_profile): Likewise.
8924
8925 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8926
8927 [BZ #21895]
8928 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8929 restore r2 on longjmp.
8930 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8931 test list.
8932 Added rules to build test tst-setjmp-bug21895-static.
8933 Added module setjmp-bug21895 and rules to build a shared object from it.
8934 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8935 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8936
8937 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8938
8939 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8940 * benchtests/bench-strstr.c: Likewise.
8941 * string/memmem.c (FASTSEARCH): Define.
8942 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8943 Add support for FASTSEARCH.
8944 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8945 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8946 (FASTSEARCH): Define.
8947 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8948 * string/test-strstr.c: Likewise.
8949
8950 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8951
8952 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8953 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8954
8955 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8956 H.J. Lu <hongjiu.lu@intel.com>
8957
8958 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8959 (__longjmp): Restore shadow stack pointer if shadow stack is
8960 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8961 isn't defined for __longjmp_cancel.
8962 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8963 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8964 and SHADOW_STACK_POINTER_OFFSET is defined.
8965 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8966 (setjmp): Save shadow stack pointer if shadow stack is enabled
8967 and SHADOW_STACK_POINTER_OFFSET is defined.
8968 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8969 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8970 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8971 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8972 <jmp_buf-ssp.h>.
8973 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8974 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8975 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8976 Remove jmp_buf-ssp.sym.
8977 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8978 <jmp_buf-ssp.h>.
8979 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8980 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8981 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8982 jmp_buf-ssp.sym.
8983 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8984 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8985 (__longjmp): Restore shadow stack pointer if shadow stack is
8986 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8987 isn't defined for __longjmp_cancel.
8988 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8989 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8990 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8991
8992 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8993
8994 [BZ #22563]
8995 * nptl/pthread_create.c: Include <tls-setup.h>.
8996 (__pthread_create_2_1): Call tls_setup_tcbhead.
8997 * sysdeps/generic/tls-setup.h: New file.
8998 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8999 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9000 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9001 Likewise.
9002 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9003 to feature_1.
9004 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9005 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9006 (X86_FEATURE_1_SHSTK): Likewise.
9007 (CET_ENABLED): Likewise.
9008 (IBT_ENABLED): Likewise.
9009 (SHSTK_ENABLED): Likewise.
9010
9011 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9012
9013 [BZ #23208]
9014 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9015 (LOCALES): Likewise.
9016 * localedata/dsb_DE.UTF-8.in: New file.
9017 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9018
9019 2018-07-12 Florian Weimer <fweimer@redhat.com>
9020
9021 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9022 __mprotect, not mprotect.
9023
9024 2018-07-11 Florian Weimer <fweimer@redhat.com>
9025
9026 * io/Makefile (headers): Add bits/statx.h.
9027
9028 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9029
9030 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9031 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9032 and headers.
9033 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9034 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9035 for utf8_gen.py
9036
9037 2018-07-10 Florian Weimer <fweimer@redhat.com>
9038
9039 * io/Makefile (routines): Add statx.
9040 (tests-internal): Add tst-statx.
9041 * io/Versions (GLIBC_2.28): Export statx.
9042 * io/bits/statx.h: New file.
9043 * io/sys/stat.h [__USE_GNU]: Include it.
9044 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9045 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9046 Define.
9047 * io/statx.c: New file.
9048 * io/statx_generic.: Likewise.
9049 * io/tst-statx.: Likewise.
9050 * include/bits/statx.h: Likewise.
9051 * sysdeps/unix/sysv/linux/kernel-features.h
9052 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9053 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9054 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9055 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9056 Undefine.
9057 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9058 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9059 * sysdeps/unix/sysv/linux/statx.c: New file.
9060 * manual/filesys.texi: Note that statx is undocumented.
9061 * sysdeps/**/libc*.abilist: Update.
9062
9063 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9064
9065 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9066 a kernel issue which lead to test failure in some cases.
9067
9068 2018-07-10 Florian Weimer <fweimer@redhat.com>
9069
9070 [BZ #23036]
9071 * posix/regexec.c (check_node_accept_bytes): When comparing
9072 weights, do not compare an extra byte after the end of the
9073 weights.
9074
9075 2018-07-10 Florian Weimer <fweimer@redhat.com>
9076
9077 * libio/readline.c: Fix copyright year.
9078 * libio/tst-readline.c Likewise.
9079 * nss/tst-nss-files-hosts-getent.c: Likewise.
9080
9081 2018-07-06 Florian Weimer <fweimer@redhat.com>
9082
9083 [BZ #18991]
9084 * nss/nss_files/files-XXX.c (internal_getent): Use
9085 __libc_readline_unlocked. Seek back to the start of the line if
9086 parsing failes with ERANGE.
9087 (get_contents_ret, get_contents): Remove.
9088 * nss/tst-nss-files-hosts-getent.c: New file.
9089 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9090 (tst-nss-files-hosts-getent): Link with -ldl.
9091
9092 2018-07-06 Florian Weimer <fweimer@redhat.com>
9093
9094 * include/stdio.h (__libc_readline_unlocked): Declare.
9095 (__ftello64, __fseeko64): Declare aliases.
9096 * libio/readline.c: New file.
9097 * libio/tst-readline.c: Likewise.
9098 (routines): Add readline.
9099 (tests-internal): Add tst-readlime.
9100 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9101 __libc_readline_unlocked.
9102 * libio/fseeko.c (__fseeko): Rename from fseeko.
9103 (fseeko): Add alias.
9104 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9105 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9106 (fseeko64): Add alias.
9107 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9108 * libio/ftello64.c (__ftello64): Rename from ftello64.
9109 (ftello64): Add alias.
9110
9111 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9112
9113 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9114 HWCAP_ATOMICS.
9115
9116 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9117
9118 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9119 Use dl_hwcap without masking.
9120 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9121 Remove HWCAP_CPUID.
9122
9123 2018-07-06 Florian Weimer <fweimer@redhat.com>
9124
9125 * conform/conformtest.pl (checknamespace): Escape literal braces
9126 in regular expressions.
9127
9128 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9129
9130 * sysdeps/x86/cpu-features.c (get_common_indeces):
9131 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9132 * sysdeps/x86/cpu-features.c (init_cpu_features):
9133 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9134
9135 2018-07-05 Florian Weimer <fweimer@redhat.com>
9136
9137 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9138 protector.
9139 (CFLAGS-elf-init.oS): Likewise.
9140
9141 2018-07-05 Florian Weimer <fweimer@redhat.com>
9142 Carlos O'Donell <carlos@redhat.com>
9143
9144 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9145 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9146 with stack protector enabled because there is no risk of infinite
9147 recursion.
9148
9149 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9150
9151 [BZ #19818]
9152 [BZ #23307]
9153 * libc-abis (ABSOLUTE): New ABI.
9154 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9155 * NEWS: Mention the new ABI.
9156
9157 2018-07-05 Florian Weimer <fweimer@redhat.com>
9158
9159 [BZ # 17662]
9160 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9161 (RENAME_WHITEOUT): Define.
9162 [__USE_GNU] (renameat2): Declare.
9163 * stdio-common/Makefile (routines): Add renameat2.
9164 (tests): Add tst-renameat2.
9165 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9166 * stdio-common/renameat2.c: New file.
9167 * stdio-common/tst-renameat2.c: Likewise.
9168 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9169 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9170 undocumented.
9171 * sysdeps/unix/sysv/linux/kernel-features.h
9172 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9173 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9174 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9175 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9176 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9177 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9178 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9179 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9180 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9181 * include/stdio.h (__renameat): Add alias for renameat.
9182 * stdio-common/renameat.c (__renameat): Rename from renameat.
9183 Add hidden definition and alias.
9184 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9185 * sysdeps/mach/hurd/renameat.c: Likewise.
9186 * sysdeps/**/libc*.abilist: Add renameat2.
9187
9188 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9189
9190 * posix/bug-regex33.c: Fix build after regex sync.
9191
9192 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9193
9194 [BZ #23164]
9195 * localedata/tst-langinfo-setlocale.c: New file.
9196 * localedata/tst-langinfo-setlocale-static.c: New file.
9197 * localedata/tst-langinfo-newlocale.c: New file.
9198 * localedata/tst-langinfo-newlocale-static.c: New file.
9199 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9200 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9201 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9202 (tests-static): Remove tst-langinfo-static. Add
9203 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9204 (tests-special): Remove $(objpfx)tst-langinfo.out,
9205 $(objpfx)tst-langinfo-static.out. Add
9206 $(objpfx)tst-langinfo-setlocale.out,
9207 $(objpfx)tst-langinfo-newlocale.out,
9208 $(objpfx)tst-langinfo-setlocale-static.out,
9209 $(objpfx)tst-langinfo-newlocale-static.out.
9210 ($(objpfx)tst-langinfo.out): Remove.
9211 ($(objpfx)tst-langinfo-static.out): Remove.
9212 ($(objpfx)tst-langinfo-newlocale.out): New target.
9213 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9214 (test-xfail-tst-langinfo-newlocale-static): Add.
9215 ($(objpfx)tst-langinfo-setlocale.out): New target.
9216 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9217 * localedata/tst-langinfo.c: Call test_locale.
9218 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9219 data.
9220
9221 2018-07-04 Florian Weimer <fweimer@redhat.com>
9222
9223 testrun.sh: Implement --tool=strace, --tool=valgrind
9224 * Makefile (testrun-script): Define variable.
9225 (testrun.sh): Use variable.
9226 * manual/install.texi (Tools for Compilation): make 4.0 or later
9227 is required.
9228 * configure.ac: Check for make 4.0 or later.
9229 * INSTALL: Regenerate.
9230 * configure: Likewise.
9231
9232 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9233
9234 [BZ #23233]
9235 [BZ #21163]
9236 [BZ #18986]
9237 [BZ #13762]
9238 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9239 * posix/PCRE.tests: Remove invalid test.
9240 * posix/bug-regex28.c: Fix expected values for used syntax.
9241 * posix/bug-regex37.c: New file.
9242 * posix/bug-regex38.c: Likewise.
9243 * posix/regcomp.c: Sync with gnulib.
9244 * posix/regex.c: Likewise.
9245 * posix/regex.h: Likewise.
9246 * posix/regex_internal.c: Likewise.
9247 * posix/regex_internal.h: Likewise.
9248 * posix/regexec.c: Likewise.
9249
9250 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9251
9252 [BZ #23308]
9253 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9254 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9255 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9256 * localedata/unicode-gen/PropList.txt: likewise.
9257 * localedata/unicode-gen/UnicodeData.txt: likewise.
9258 * localedata/charmaps/UTF-8: Regenerate.
9259 * localedata/locales/i18n_ctype: likewise.
9260 * localedata/locales/tr_TR: likewise.
9261 * localedata/locales/translit_circle: likewise.
9262 * localedata/locales/translit_cjk_compat: likewise.
9263 * localedata/locales/translit_combining: likewise.
9264 * localedata/locales/translit_compat: likewise.
9265 * localedata/locales/translit_font: likewise.
9266 * localedata/locales/translit_fraction: likewise.
9267
9268 2018-07-03 Florian Weimer <fweimer@redhat.com>
9269
9270 [BZ #23363]
9271 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9272 * stdio-common/tst-printf.sh: Adjust expected output.
9273 * LICENSES: Update.
9274
9275 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9276
9277 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9278 symbol.
9279
9280 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9281
9282 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9283 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9284 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9285 * stdio-common/tst-printfsz-islongdouble.c: New file.
9286 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9287 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9288 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9289 [subdir == stdio-common] (tests-internal): Add
9290 test-printf-size-ieee128, and test-printf-size-ibm128.
9291 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9292 (CFLAGS-test-printf-size-ibm128.c): New variables.
9293 [subdir == stdio-common] (tests-special): Add
9294 $(objpfx)test-printf-size-ieee128.out and
9295 $(objpfx)test-printf-size-ibm128.out.
9296 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9297 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9298 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9299 __printf_sizeieee128.
9300 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9301 New file.
9302 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9303 Likewise.
9304 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9305 Likewise.
9306
9307 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9308
9309 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9310 (exp2f_inline): Likewise.
9311 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9312 (__math_uflowf): Likewise.
9313 (__math_may_uflowf): Likewise.
9314 (__math_divzerof): Likewise.
9315 (__math_invalidf): Likewise.
9316 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9317 (__math_oflowf): Likewise.
9318 (__math_uflowf): Likewise.
9319 (__math_may_uflowf): Likewise.
9320 (__math_divzerof): Likewise.
9321 (__math_invalidf): Likewise.
9322
9323 2018-06-29 DJ Delorie <dj@redhat.com>
9324 Carlos O'Donell <carlos@redhat.com>
9325
9326 [BZ #23329]
9327 * include/libc-symbols.h: Comment the freeres framework.
9328 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9329 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9330 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9331 * dlfcn/dlerror.c: Include libc-symbols.h
9332 (__dlerror_main_freeres): New function.
9333 * dlfcn/dlfreeres.c: New file.
9334 * dlfcn/sdlfreeres.c: New file.
9335 * include/dlfcn.h: Declare __dlerror_main_freeres.
9336 * malloc/set-freeres.c: Declare __libdl_freeres, and
9337 __libpthread_freeres.
9338 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9339 the releavant libraries are loaded.
9340 * malloc/thread-freeres.c: Add comments.
9341 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9342 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9343 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9344 (__free_stacks): Rename to...
9345 (free_stacks): ...this. Mark static.
9346 (queue_stack): Call free_stacks.
9347 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9348 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9349 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9350 ptr_freeres element from struct.
9351 (pthread_functions): Remove .ptr_freeres from struct initializer.
9352 [SHARED] (nptl_freeres): Remove.
9353 * nptl/nptlfreeres.c: New file.
9354 * nptl/pthreadP.h
9355 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9356 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9357 attribute_hidden.
9358 (__free_stacks): Rename to...
9359 (__nptl_stacks_freeres): ...this.
9360 (__shm_directory_freeres): Declare.
9361 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9362 (__nptl_unwind_freeres): ...this.
9363 * resolv/res-close.c: Add comment.
9364 * resolv/resolv_conf.c: Include libc-symbols.h.
9365 * string/strerror_l.c: Include libc-symbols.h.
9366 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9367 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9368 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9369 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9370
9371 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9372
9373 * stdlib/tst-strfmon_l.c: Add tests for long double.
9374
9375 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9376
9377 [BZ #23208]
9378 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9379 * localedata/locales/dsb_DE: New file.
9380
9381 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9382
9383 [BZ #23140]
9384 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9385 genitive case).
9386 (alt_mon): New entry, import from CLDR (nominative case).
9387
9388 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9389
9390 [BZ #22996]
9391 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9392
9393 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9394
9395 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9396 Use vector registers.
9397
9398 * sysdeps/aarch64/multiarch/memmove_falkor.S
9399 (__memcpy_falkor): Use vector registers.
9400
9401 2018-06-29 Martin Sebor <msebor@redhat.com>
9402
9403 * manual/stdio.texi (Customizing Printf): Mention interaction
9404 with GCC built-ins.
9405
9406 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9407
9408 [BZ #23307]
9409 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9410 `st_value' is 0 if `st_shndx' is SHN_ABS.
9411 * elf/tst-absolute-zero.c: New file.
9412 * elf/tst-absolute-zero-lib.c: New file.
9413 * elf/tst-absolute-zero-lib.lds: New file.
9414 * elf/Makefile (tests): Add `tst-absolute-zero'.
9415 (modules-names): Add `tst-absolute-zero-lib'.
9416 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9417 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9418 ($(objpfx)tst-absolute-zero: New dependency.
9419
9420 2018-06-29 Zack Weinberg <zackw@panix.com>
9421
9422 * configure.ac: New command-line option --disable-crypt.
9423 Force --disable-nss-crypt when --disable-crypt is given, with a
9424 warning if it was explicitly enabled.
9425 * configure: Regenerate.
9426 * config.make.in: New boolean substitution variable $(build-crypt).
9427 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9428 when $(build-crypt).
9429 * manual/install.texi: Document --disable-crypt.
9430 * INSTALL: Regenerate.
9431
9432 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9433 which is never set.
9434 * conform/Makefile: Only include libcrypt.a in
9435 linknamespace-libs-xsi and linknamespace-libs-XPG4
9436 when $(build-crypt).
9437 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9438 USE_CRYPT to 1 when $(build-crypt).
9439 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9440 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9441 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9442
9443 2018-06-29 Zack Weinberg <zackw@panix.com>
9444
9445 * crypt/crypt.h, posix/unistd.h: Update comments and
9446 prototypes for crypt and crypt_r.
9447
9448 * manual/crypt.texi (Cryptographic Functions): New initial
9449 exposition.
9450 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9451 (Unpredictable Bytes): Improve initial exposition. Clarify error
9452 behavior of getentropy and getrandom.
9453 * manual/examples/genpass.c: Generate a salt using getentropy
9454 instead of the current time. Use hash $5$ (SHA-2-256).
9455 * manual/examples/testpass.c: Demonstrate validation against
9456 hashes generated with three different one-way functions.
9457
9458 * manual/intro.texi: crypt.texi does not need an overview
9459 anymore.
9460
9461 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9462 * manual/terminal.texi: Consistently refer to "passphrases"
9463 * instead of "passwords", and to the "user database" instead
9464 * of the "password database".
9465 * manual/users.texi: Similarly. Add notes about how actual
9466 passphrase hashes are now stored in the shadow database.
9467 Remove 20-year-old junk todo note.
9468
9469 2018-06-29 Zack Weinberg <zackw@panix.com>
9470
9471 * manual/crypt.texi: Use a normal top-level @node declaration.
9472 Move most of the introductory text to the 'crypt' section.
9473 Move the example programs below the @deftypefun for 'crypt_r'.
9474 Move the 'getpass' section...
9475 * manual/terminal.texi: ...here.
9476
9477 2018-06-29 Zack Weinberg <zackw@panix.com>
9478 Florian Weimer <fweimer@redhat.com>
9479
9480 * posix/unistd.h: Do not declare encrypt.
9481 (_XOPEN_CRYPT): Remove macro definition.
9482 (crypt): Declare only for _USE_MISC.
9483 * stdlib/stdlib.h: Do not declare setkey.
9484 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9485 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9486
9487 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9488 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9489 into compat symbols. Don't define initial_perm if it's not
9490 going to be used.
9491 * crypt/cert.c: Link explicitly with the expected versions for
9492 setkey and encrypt. If they are not available at all, mark
9493 the test as unsupported.
9494
9495 * sunrpc/des_crypt.c: Unconditionally block linkage with
9496 cbc_crypt and ecb_crypt for new binaries.
9497 * sunrpc/des_soft.c: Unconditionally block linkage with
9498 des_setparity for new binaries.
9499
9500 * manual/crypt.texi: Remove the entire "DES Encryption"
9501 section. Also remove the paragraph talking about FIPS 140-2
9502 from the introduction.
9503 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9504 of libgcrypt for "real" encryption, not DES.
9505 * manual/conf.texi (Constants for Sysconf): Mention that
9506 _XOPEN_CRYPT is no longer impelemented.
9507
9508 * conform/data/unistd.h-data: Remove crypt function declaration.
9509
9510 2018-06-29 Florian Weimer <fweimer@redhat.com>
9511
9512 [BZ #23351]
9513 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9514 (disallow_malloc_check): Remove variable.
9515 (__malloc_check_init): Adjust.
9516 (malloc_set_state): Update comment.
9517 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9518 declarations.
9519
9520 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9521
9522 [BZ #23140]
9523 * localedata/locales/ast_ES (mon): Rename to...
9524 (alt_mon): This.
9525 (mon): Import from CLDR (genitive case).
9526
9527 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9528 Jakub Sitnicki <jkbs@redhat.com>
9529
9530 [BZ #21812]
9531 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9532 on NLM_F_DUMP_INTR.
9533
9534 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9535
9536 * manual/llio.texi: Remove spurious space.
9537
9538 2018-06-28 Florian Weimer <fweimer@redhat.com>
9539
9540 [BZ #23349]
9541 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9542 _STRUCT_TIMESPEC.
9543
9544 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9545
9546 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9547 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9548 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9549 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9550 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9551 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9552 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9553
9554 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9555
9556 [BZ #23266]
9557 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9558 Copy and null-terminate entries that are not terminated, in
9559 addition to empty ones.
9560
9561 2018-06-27 Florian Weimer <fweimer@redhat.com>
9562
9563 [BZ #18023]
9564 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9565 (extend_alloca_account): Remove.
9566 * manual/stdio.texi (Variable Arguments Output): Update comment.
9567
9568 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9569
9570 * nptl/sockperf.c: Remove file.
9571
9572 2018-06-27 Florian Weimer <fweimer@redhat.com>
9573
9574 [BZ #18023]
9575 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9576 scratch_buffer instead of extend_alloca.
9577
9578 2018-06-27 Florian Weimer <fweimer@redhat.com>
9579
9580 [BZ #18023]
9581 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9582 scratch_buffer instead of extend_alloca. Update comments.
9583
9584 2018-06-27 Florian Weimer <fweimer@redhat.com>
9585
9586 [BZ #18023]
9587 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9588 instead of extend_alloca.
9589
9590 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9591
9592 [BZ #13888]
9593 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9594 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9595 /tmp.
9596 * scripts/test-installation.pl: Put temporary files in build
9597 directory, not /tmp.
9598 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9599 (CFLAGS-bug4.c): Likewise.
9600 (CFLAGS-bug5.c): Likewise.
9601 (CFLAGS-test-fseek.c): Likewise.
9602 (CFLAGS-test-popen.c): Likewise.
9603 (CFLAGS-test_rdwr.c): Likewise.
9604 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9605 /tmp.
9606 * stdio-common/bug4.c (main): Likewise.
9607 * stdio-common/bug5.c (main): Likewise.
9608 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9609 * stdio-common/test-popen.c (do_test): Likewise.
9610 * stdio-common/test_rdwr.c (main): Likewise.
9611
9612 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9613
9614 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9615 (sem_open): Set sem.newsem.pad to zero for valgrind.
9616
9617 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9618
9619 [BZ #20251]
9620 * NEWS: Mention fcntl64 addition.
9621 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9622 * login/utmp_file.c: Likewise.
9623 * sysdeps/posix/fdopendir.c: Likewise.
9624 * sysdeps/posix/opendir.c: Likewise.
9625 * sysdeps/unix/pt-fcntl.c: Likewise.
9626 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9627 __fcntl64_nocancel_adjusted): New prototype.
9628 (__fcntl_nocancel_adjusted): Remove prototype.
9629 * io/Makefile (routines): Add fcntl64.
9630 (CFLAGS-fcntl64.c): New rule.
9631 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9632 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9633 * io/fcntl.h (fcntl64): Add prototype and redirect if
9634 __USE_FILE_OFFSET64 is defined.
9635 * io/fcntl64.c: New file.
9636 * manual/llio.text: Add a note for which commands fcntl acts a
9637 cancellation point.
9638 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9639 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9640 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9641 New symbols.
9642 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9643 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9644 non-LFS case.
9645 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9646 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9647 to __fcntl64_nocancel.
9648 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9649 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9650 to __fcntl64_nocancel.
9651 * sysdeps/generic/not-cancel.h: Likewise.
9652 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9653 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9654 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9655 (fcntl64): New symbol.
9656 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9657 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9658 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9660 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9661 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9662 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9663 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9664 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9665 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9666 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9667 fcntl64): Likewise.
9668 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9669 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9670 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9671 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9672 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9673 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9674 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9675 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9676 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9677 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9678 Likewise.
9679 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9680 Likewise.
9681 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9682 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9683 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9684
9685 2018-06-26 Florian Weimer <fweimer@redhat.com>
9686
9687 Run thread shutdown functions in an explicit order.
9688 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9689 definition.
9690 (__libc_thread_freeres): Call thread shutdown functions
9691 explicitly.
9692 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9693 * include/string.h (__strerror_thread_freeres): Declare.
9694 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9695 arena_thread_freeres. No longer static. Remove thread shutdown
9696 hook registration.
9697 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9698 Declare.
9699 * resolv/res-close.c (__res_thread_freeres): Renamed from
9700 res_thread_freeres. No longer static. Remove thread shutdown
9701 hook registration.
9702 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9703 * resolv/resolv_conf.c (freeres): Remove incorrect section
9704 attribute and use libc_freeres_fn.
9705 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9706 strerror_thread_freeres. No longer static. Remove thread
9707 shutdown hook registration.
9708 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9709 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9710 shutdown hook registration.
9711 * Makerules (shlib.lds): Do not provide section boundary symbols
9712 for __libc_thread_subfreeres.
9713 * manual/memory.texi (Basic Allocation): Update comment.
9714
9715 2018-06-26 Florian Weimer <fweimer@redhat.com>
9716
9717 Remove always-defined _RPC_THREAD_SAFE_ macro.
9718 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9719 Do not define _RPC_THREAD_SAFE_.
9720 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9721 conditional.
9722 * sunrpc/clnt_perr.c: Likewise.
9723 * sunrpc/clnt_raw.c: Likewise.
9724 * sunrpc/clnt_simp.c: Likewise.
9725 * sunrpc/key_call.c: Likewise.
9726 * sunrpc/rpc_common.c: Likewise.
9727 * sunrpc/rpc_main.c: Likewise.
9728 * sunrpc/rpc_thread.c: Likewise.
9729 * sunrpc/svc.c: Likewise.
9730 * sunrpc/svc_raw.c: Likewise.
9731 * sunrpc/svc_simple.c: Likewise.
9732 * sumrpc/svcauth_des.c: Likewise.
9733
9734 2018-06-26 Florian Weimer <fweimer@redhat.com>
9735
9736 * libio/Makefile (tests-internal): Add tst-vtables,
9737 tst-vtables-interposed.
9738 * libio/tst-vtables.c: New file.
9739 * libio/tst-vtables-common.c: Likewise.
9740 * libio/tst-vtables-interposed.c: Likewise.
9741
9742 2018-06-26 Florian Weimer <fweimer@redhat.com>
9743
9744 * support/support_test_main.c (support_test_main): Only call
9745 setvbuf if not disables.
9746 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9747 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9748
9749 2018-06-26 Florian Weimer <fweimer@redhat.com>
9750
9751 [BZ #23313]
9752 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9753
9754 2018-06-25 Florian Weimer <fweimer@redhat.com>
9755
9756 [BZ #18023]
9757 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9758 Use struct scratch_buffer instead of extend_alloca.
9759
9760 2018-06-25 Florian Weimer <fweimer@redhat.com>
9761
9762 [BZ #18023]
9763 * nss/getent.c (initgroups_keys): Use dynarray instead of
9764 extend_alloca.
9765
9766 2018-06-25 Florian Weimer <fweimer@redhat.com>
9767
9768 [BZ #18023]
9769 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9770 Use struct scratch_buffer instead of extend_alloca.
9771
9772 2018-06-25 Florian Weimer <fweimer@redhat.com>
9773
9774 [BZ #18023]
9775 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9776 back to malloc directly, without stack allocations.
9777
9778 2018-06-25 Florian Weimer <fweimer@redhat.com>
9779
9780 [BZ #18023]
9781 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9782 of extend_alloca.
9783
9784 2018-06-25 Florian Weimer <fweimer@redhat.com>
9785
9786 [BZ #18023]
9787 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9788 of extend_alloca.
9789 * nscd/hstcache.c (addhstbyX): Likewise.
9790 * nscd/pwdcache.c (addpwbyX): Likewise.
9791 * nscd/servicescache.c (addservbyX): Likewise.
9792
9793 2018-06-25 Florian Weimer <fweimer@redhat.com>
9794
9795 [BZ #18023]
9796 * nscd/connections.c (read_cmdline): New function.
9797 (restart): Use it. Update comment.
9798
9799 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9800
9801 [BZ #23140]
9802 * localedata/locales/csb_PL (mon): Rename to...
9803 (alt_mon): This.
9804 (abmon): Rename to...
9805 (ab_alt_mon): This.
9806 (mon): Add with proper genitive forms, copy from Wikipedia.
9807 (abmon): Likewise.
9808
9809 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9810
9811 [BZ #19485]
9812 * localedata/locales/csb_PL (mon): Fix typos:
9813 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9814 (yesstr): Add, value is "jo".
9815 (nostr): Add, value is "nié".
9816
9817 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9818
9819 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9820 all log1p and significand functions on m680x0.
9821 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9822 of s_significand.c..
9823 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9824 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9825 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9826 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9827 s_log1p.c and include it..
9828
9829 2018-06-21 Vincent Chen <vincentc@andestech.com>
9830
9831 * elf/elf.h (R_NDS32_NONE): New define.
9832 (R_NDS32_32_RELA): Likewise.
9833 (R_NDS32_COPY): Likewise.
9834 (R_NDS32_GLOB_DAT): Likewise.
9835 (R_NDS32_JUMP_SLOT): Likewise.
9836 (R_NDS32_RELATIVE): Likewise.
9837 (R_NDS32_TLS_TPOFF): Likewise.
9838 (R_NDS32_TLS_DESC): Likewise.
9839
9840 2018-06-21 Mark Wielaard <mark@klomp.org>
9841
9842 * elf/elf.h (R_BPF_MAP_FD): Removed.
9843 (R_BPF_64_64, R_BPF_64_32): New.
9844
9845 2018-06-21 Florian Weimer <fweimer@redhat.com>
9846
9847 [BZ #23253]
9848 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9849 Renamed from libc_feholdsetround_ctx.
9850 (default_libc_feresetround_ctx): Renamed from
9851 libc_feresetround_ctx.
9852 (default_libc_feholdsetround_noex_ctx): Renamed from
9853 libc_feholdsetround_noex_ctx.
9854 (default_libc_feresetround_noex_ctx): Renamed from
9855 libc_feresetround_noex_ctx.
9856 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9857 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9858 forwardning to the old implementations under the new names.
9859 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9860 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9861 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9862 (libc_feresetround_ctx): Forward to default implements for i386
9863 and MATH_SET_BOTH_ROUNDING_MODES.
9864 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9865 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9866
9867 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9868
9869 * string/tst-cmp.c: Include <libc-diag.h>.
9870 (strncmp_max): Disable -Wstringop-overflow= around call to
9871 strncmp.
9872 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9873 strncasecmp.
9874
9875 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9876 (main): Disable -Wunused-value around call to strpbrk.
9877 * string/bug-strspn1.c: Include <libc-diag.h>.
9878 (main): Disable -Wunused-value around call to strspn.
9879
9880 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9881 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9882
9883 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9884 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9885
9886 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9887
9888 * math/Makefile (libm-calls): Move s_significandF to...
9889 (gen-libm-calls): ... here.
9890 * math/s_significand_template.c: New file.
9891 * math/s_significand.c: Removed.
9892 * math/s_significandf.c: Removed.
9893 * math/s_significandl.c: Removed.
9894 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9895 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9896
9897 * math/e_exp2_template.c (declare_mgen_finite_alias,
9898 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9899 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9900 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9901
9902 2018-06-20 Florian Weimer <fweimer@redhat.com>
9903
9904 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9905
9906 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9907
9908 [BZ #23280]
9909 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9910 floating-point number to strtod functions rather than possibly
9911 negating result of those functions.
9912 * stdio-common/tst-scanf-round.c: New file.
9913 * stdio-common/Makefile (tests): Add tst-scanf-round.
9914 ($(objpfx)tst-scanf-round): Depend on $(libm).
9915
9916 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9917
9918 * sysdeps/mach/hurd/localplt.data: Move to...
9919 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9920 R_386_GLOB_DAT like on Linux i386.
9921
9922 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9923
9924 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9925 (SHM_STAT_ANY): New macro.
9926 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9927 (SHM_STAT_ANY): Likewise.
9928 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9929 (SHM_STAT_ANY): Likewise.
9930 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9931 (SHM_STAT_ANY): Likewise.
9932 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9933 (SHM_STAT_ANY): Likewise.
9934 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9935 (SHM_STAT_ANY): Likewise.
9936 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9937 (SHM_STAT_ANY): Likewise.
9938 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9939 (SHM_STAT_ANY): Likewise.
9940 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9941 (SHM_STAT_ANY): Likewise.
9942 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9943 (SHM_STAT_ANY): Likewise.
9944 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9945 (SHM_STAT_ANY): Likewise.
9946 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9947 (SHM_STAT_ANY): Likewise.
9948
9949 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9950 (SEM_STAT_ANY): New macro.
9951 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9952 (SEM_STAT_ANY): Likewise.
9953 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9954 (SEM_STAT_ANY): Likewise.
9955 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9956 (SEM_STAT_ANY): Likewise.
9957 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9958 (SEM_STAT_ANY): Likewise.
9959 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9960 (SEM_STAT_ANY): Likewise.
9961 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9962 (SEM_STAT_ANY): Likewise.
9963 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9964 (SEM_STAT_ANY): Likewise.
9965 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9966 (SEM_STAT_ANY): Likewise.
9967 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9968 (SEM_STAT_ANY): Likewise.
9969
9970 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9971 (MSG_STAT_ANY): New macro.
9972 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9973 (MSG_STAT_ANY): Likewise.
9974 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9975 (MSG_STAT_ANY): Likewise.
9976 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9977 (MSG_STAT_ANY): Likewise.
9978 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9979 (MSG_STAT_ANY): Likewise.
9980 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9981 (MSG_STAT_ANY): Likewise.
9982 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9983 (MSG_STAT_ANY): Likewise.
9984 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9985 (MSG_STAT_ANY): Likewise.
9986 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9987 (MSG_STAT_ANY): Likewise.
9988 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9989 (MSG_STAT_ANY): Likewise.
9990
9991 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9992 (MAP_TYPE): Change value to 0x2b.
9993
9994 2018-06-18 Florian Weimer <fweimer@redhat.com>
9995
9996 [BZ #15722]
9997 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9998 socket with SOCK_CLOEXEC.
9999
10000 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10001
10002 [BZ #23303]
10003 * sysdeps/powerpc/powerpc64/le/Makefile
10004 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10005 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10006 (gnulib-tests): Also add $(f128-loader-link) for
10007 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10008
10009 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10010
10011 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10012 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10013 of sendfile.
10014 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10015 (sendfile64): New strong alias.
10016 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10017 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10018 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10019 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10020 attribute.
10021 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10022 ___pthread_get_cleanup_stack.
10023 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10024 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10025 * mach/shortcut.awk: Make syscall stubs include
10026 <mach-shortcuts-hidden.h> and add hidden definition.
10027 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10028 (__mach_msg): Add hidden prototype.
10029 * mach/msg.c: Include <mach.h>.
10030 (__mach_msg): Add hidden definition.
10031 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10032 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10033 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10034 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10035 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10036 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10037 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10038 prototype and definition.
10039 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10040 hidden target for _hurd_self_sigstate.
10041
10042 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10043
10044 [BZ #23007]
10045 * stdlib/tst-strtod-nan-sign-main.c: New file.
10046 * stdlib/tst-strtod-nan-sign.c: Likewise.
10047 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10048 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10049 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10050 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10051 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10052
10053 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10054
10055 [BZ #23007]
10056 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10057 appropriate sign.
10058
10059 2018-06-14 Florian Weimer <fweimer@redhat.com>
10060
10061 [BZ #23290]
10062 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10063 that the result stays within the ISO-8859-1 range.
10064 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10065 characters are defined in IBM273.
10066
10067 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10068
10069 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10070 __mach_task_self): Remove attribute_hidden.
10071
10072 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10073
10074 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10075 ignore -Wrestrict for one test.
10076
10077 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10078 Szabolcs Nagy <szabolcs.nagy@arm.com>
10079
10080 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10081
10082 2018-06-14 Florian Weimer <fweimer@redhat.com>
10083
10084 * scripts/update-abilist.sh: Accept empty list of files to patch.
10085
10086 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10087
10088 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10089 test-xfail-check-abi-libmachuser): Add.
10090 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10091 __libc_read and __libc_write to __read and __write.
10092 * sysdeps/hurd/include/hurd/port.h: New file.
10093 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10094 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10095 __thread_switch, __evc_wait): Move declarations to...
10096 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10097 attribute_hidden.
10098 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10099 use PLT to call _hurd_self_sigstate.
10100
10101 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10102
10103 [BZ #23279]
10104 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10105 MAX_EXP as overflowing.
10106 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10107 overflow flag.
10108 (round_str): Output also whether result overflows in each rounding
10109 mode.
10110 * stdlib/tst-strtod-round-data: Add more tests.
10111 * stdlib/tst-strtod-round-data.h: Regenerated.
10112 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10113 (TEST): Handle extra arguments for overflow flags.
10114 (struct test_overflow): New type.
10115 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10116 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10117 (test_in_one_mode): Take argument with overflow information.
10118 (do_test): Update calls to test_in_one_mode.
10119
10120 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10121
10122 * elf/dl-load (_dl_dst_substitute): Correct comment.
10123 (_dl_dst_count): Likewise.
10124
10125 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10126 lll_futex_timed_wait.
10127
10128 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10129
10130 [BZ #23277]
10131 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10132 attribute.
10133 * math/test-nan-const.c: New file.
10134 * math/Makefile (tests): Add test-nan-const.
10135 (CFLAGS-test-nan-const.c): New variable.
10136
10137 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10138
10139 * benchtests/scripts/compare_strings.py (process_results): Add
10140 funcs argument. Compare only functions which are selected.
10141 (main): Check if base function is among selected functions.
10142 Pass selected functions to process_results.
10143 (__main__): Add -f/--functions argument.
10144
10145 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10146 Hongbo Zhang <hongbo.zhang@linaro.org>
10147
10148 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10149 __memcpy_falkor for phecda core.
10150 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10151 __memmove_falkor for phecda core.
10152 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10153 __memset_falkor for phecda core.
10154 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10155 for phecda core.
10156 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10157 macro to identify phecda core.
10158
10159 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10160 Andreas Schwab <schwab@suse.de>
10161 Dmitry V. Levin <ldv@altlinux.org>
10162 Florian Weimer <fweimer@redhat.com>
10163
10164 [BZ #23102]
10165 [BZ #21942]
10166 [BZ #18018]
10167 [BZ #23259]
10168 CVE-2011-0536
10169 * elf/dl-dst.h: Remove DL_DST_COUNT.
10170 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10171 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10172 (is_dst): Comment. Support ELF gABI.
10173 (_dl_dst_count): Comment. Simplify and count DSTs.
10174 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10175 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10176 locals.
10177
10178 2018-06-12 Zack Weinberg <zackw@panix.com>
10179
10180 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10181 * sysdeps/unix/sysv/linux/dl-sysdep.c
10182 Include not-cancel.h. Use __close_nocancel instead of __close,
10183 __open64_nocancel instead of __open, __read_nocancel instead of
10184 __libc_read, and __write_nocancel instead of __libc_write.
10185
10186 * csu/check_fds.c (check_one_fd)
10187 * sysdeps/posix/fdopendir.c (__fdopendir)
10188 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10189 instead of __fcntl and/or __libc_fcntl.
10190
10191 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10192 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10193 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10194 Use __open64_nocancel instead of __open_nocancel.
10195
10196 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10197 hidden_proto declarations to the end and issue them if either
10198 IS_IN(libc) or IS_IN(rtld).
10199 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10200 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10201 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10202 read_nocancel, waitpid_nocancel, write_nocancel.
10203
10204 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10205 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10206 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10207
10208 * nptl/pt-fcntl.c: New file.
10209 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10210 (libpthread-routines): Add pt-fcntl.
10211 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10212 (__libc_fcntl): Remove attribute_hidden.
10213 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10214 __fcntl_nocancel_adjusted, not fcntl_common.
10215 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10216 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10217 to fcntl_nocancel.c.
10218 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10221 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10222
10223 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10224 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10225 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10226 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10227 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10228 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10229 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10230 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10231 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10232 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10233 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10234 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10235 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10236 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10237 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10238 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10239 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10240 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10241 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10242 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10243
10244 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10245 libpthread-routines.
10246 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10247 defines nothing.
10248
10249 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10250 __libc_read, and __write instead of __libc_write. Define
10251 __open64 in addition to __open.
10252
10253 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10254
10255 [BZ #23250]
10256 [BZ #10686]
10257 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10258 to _private_tm[3] and add __glibc_reserved2.
10259 Add _Static_assert of offset of __private_ss == 0x30.
10260 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10261 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10262
10263 2018-06-12 Florian Weimer <fweimer@redhat.com>
10264
10265 x86: Make strncmp usable from rtld.
10266 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10267 __strncmp_ia32 if in libc (and not in rtld).
10268 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10269 strncmp if not in libc (and not to __strncmp_sse2).
10270
10271 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10272
10273 [BZ #23140]
10274 * localedata/locales/gd_GB (mon): Rename to...
10275 (alt_mon): This.
10276 (mon): Import from CLDR (genitive case).
10277 * localedata/locales/hsb_DE (mon): Rename to...
10278 (alt_mon): This.
10279 (mon): Import from CLDR (genitive case).
10280 * localedata/locales/wa_BE (mon): Rename to...
10281 (alt_mon): This.
10282 (mon): Add, fill with the proper genitive forms, but CLDR data
10283 is incomplete; completed according to the comments in this file.
10284 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10285
10286 * localedata/locales/wa_BE (country_name): Reword
10287 "Beljike" -> "Beldjike".
10288
10289 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10290
10291 [BZ #23272]
10292 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10293 cases of non-finite arguments.
10294 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10295
10296 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10297
10298 [BZ #23174]
10299 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10300
10301 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10302
10303 [BZ #23264]
10304 * include/unistd.h (__execvpex): New prototype.
10305 * posix/Makefile (tests): Add tst-spawn4.
10306 (tests-internal): Add tst-spawn4-compat.
10307 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10308 * posix/tst-spawn4-compat.c: New file.
10309 * posix/tst-spawn4.c: Likewise.
10310 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10311 binaries as shell scripts.
10312 * sysdeps/posix/spawni.c (__spawni): Likewise.
10313
10314 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10315
10316 [BZ #23145]
10317 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10318 ($(all-built-dso:=.dynsym): New target.
10319 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10320 ($(objpfx)check-initfini.out): New target.
10321 (generated): Add check-initfini.out.
10322 * scripts/check-initfini.awk: New file.
10323 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10324 (_fini): Likewise.
10325 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10326 (_fini): Likewise.
10327 * sysdeps/arm/crti.S (_init): Mark as hidden.
10328 (_fini): Likewise.
10329 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10330 (_fini): Likewise.
10331 * sysdeps/i386/crti.S (_init): Mark as hidden.
10332 (_fini): Likewise.
10333 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10334 (_fini): Likewise.
10335 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10336 (_fini): Likewise.
10337 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10338 (_fini): Likewise.
10339 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10340 (_fini): Likewise.
10341 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10342 (_fini): Likewise.
10343 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10344 (_fini): Likewise.
10345 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10346 (_fini): Likewise.
10347 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10348 (_fini): Likewise.
10349 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10350 (_fini): Likewise.
10351 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10352 (_fini): Likewise.
10353 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10354 (_fini): Likewise.
10355 * sysdeps/sh/crti.S (_init): Mark as hidden.
10356 (_fini): Likewise.
10357 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10358 (_fini): Likewise.
10359 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10360 (_fini): Likewise.
10361
10362 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10363
10364 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10365 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10366 and TF redirection to KFtype and KF only when the default
10367 long double type is not the IEEE 128-bit floating point type.
10368
10369 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10370
10371 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10372 macro.
10373 (HWCAP_USCAT): Likewise.
10374 (HWCAP_ILRCPC): Likewise.
10375 (HWCAP_FLAGM): Likewise.
10376 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10377 Increase to 28.
10378 (_dl_aarch64_cap_flags): Add new flag names.
10379
10380 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10381 (MAP_FIXED_NOREPLACE): New macro.
10382 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10383 (MAP_FIXED_NOREPLACE): Likewise.
10384 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10385 (MAP_FIXED_NOREPLACE): Likewise.
10386 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10387 (MAP_FIXED_NOREPLACE): Likewise.
10388 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10389 (MAP_FIXED_NOREPLACE): Likewise.
10390 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10391 (MAP_FIXED_NOREPLACE): Likewise.
10392 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10393 (MAP_FIXED_NOREPLACE): Likewise.
10394 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10395 (MAP_FIXED_NOREPLACE): Likewise.
10396 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10397 (MAP_FIXED_NOREPLACE): Likewise.
10398 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10399 (MAP_FIXED_NOREPLACE): Likewise.
10400 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10401 (MAP_FIXED_NOREPLACE): Likewise.
10402 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10403 (MAP_FIXED_NOREPLACE): Likewise.
10404 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10405 (MAP_FIXED_NOREPLACE): Likewise.
10406 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10407 (MAP_FIXED_NOREPLACE): Likewise.
10408 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10409 (MAP_FIXED_NOREPLACE): Likewise.
10410
10411 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10412 version to 4.17.
10413
10414 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10415
10416 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10417 version to 4.17
10418
10419 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10420
10421 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10422 int.
10423 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10424
10425 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10426
10427 * benchtests/scripts/compare_string.py: (process_results) Catch
10428 exception in non-existent base_func and catch exception in
10429 non-existent attribute.
10430 (parse_file) Catch exception if input file does not exist.
10431
10432 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10433
10434 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10435 options to avoid diff calculation and omit header, respectively.
10436 (main): process --no-diff and --no-header
10437
10438 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10439 H.J. Lu <hongjiu.lu@intel.com>
10440
10441 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10442 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10443 wcsncmp-sse2.
10444 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10445 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10446 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10447 and __wcsncmp_sse2.
10448 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10449 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10450 AVX unaligned load is fast and vzeroupper is preferred.
10451 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10452 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10453 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10454 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10455 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10456 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10457 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10458 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10459 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10460 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10461 is undefined.
10462
10463 2018-06-01 Florian Weimer <fweimer@redhat.com>
10464
10465 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10466 configuring with --disable-multi-arch, building with
10467 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10468 Haswell-era CPU.
10469
10470 2018-06-01 Florian Weimer <fweimer@redhat.com>
10471
10472 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10473 results from building with “-march=x86-64 -mtune=generic
10474 -mfpmath=sse” and running on a Haswell-era CPU.
10475
10476 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10477
10478 [BZ #18473]
10479 * soft-fp/sqrttf2.c: Remove file.
10480 * soft-fp/sqrtdf2.c: Move to ....
10481 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10482 <shlib-compat.h>.
10483 (__sqrtdf2): Make conditional on
10484 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10485 symbol.
10486 * soft-fp/sqrtsf2.c: Move to ....
10487 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10488 <shlib-compat.h>.
10489 (__sqrtsf2): Make conditional on
10490 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10491 symbol.
10492 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10493 (gcc-double-routines): Remove sqrtdf2.
10494 (gcc-quad-routines): Remove sqrttf2.
10495 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10496 Do not filter out sqrtsf2 and sqrtdf2.
10497 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10498 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10499
10500 2018-06-01 Florian Weimer <fweimer@redhat.com>
10501
10502 * sysdeps/generic/libcidn.abilist: Remove file.
10503
10504 2018-06-01 Florian Weimer <fweimer@redhat.com>
10505
10506 [BZ #23236]
10507 * libio/strfile.h (struct _IO_str_fields): Rename members to
10508 discourage their use and add comment.
10509 (_IO_STR_DYNAMIC): Remove unused macro.
10510 * libio/strops.c (_IO_str_init_static_internal): Do not use
10511 callback pointers. Call malloc and free.
10512 (_IO_str_overflow): Do not use callback pointers. Call malloc
10513 and free.
10514 (enlarge_userbuf): Likewise.
10515 (_IO_str_finish): Call free.
10516 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10517 _allocate_buffer_unused.
10518 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10519 and free.
10520 (enlarge_userbuf): Likewise.
10521 (_IO_wstr_finish): Call free.
10522 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10523 _allocate_buffer_unused, _free_buffer_unused.
10524 * libio/memstream.c (__open_memstream): Likewise.
10525 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10526 * libio/wmemstream.c (open_wmemstream): Likewise.
10527
10528 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10529
10530 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10531 AMD Ryzen 7 1800X.
10532
10533 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10534
10535 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10536 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10537 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10538 New file.
10539 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10540 Likewise.
10541 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10542
10543 2018-05-29 Florian Weimer <fweimer@redhat.com>
10544
10545 * support/Makefile (libsupport-routines): Add
10546 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10547 xpthread_barrierattr_setpshared.
10548 * support/xpthread_barrierattr_destroy.c: New file.
10549 * support/xpthread_barrierattr_init.c: Likewise.
10550 * support/xpthread_barrierattr_setpshared.c: Likewise.
10551
10552 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10553
10554 [BZ #23206]
10555 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10556 _r_debug and update DT_DEBUG for debugger.
10557
10558 2018-05-29 Florian Weimer <fweimer@redhat.com>
10559
10560 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10561 (tst-strtod5i.out): Likewise.
10562
10563 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10564
10565 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10566 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10567 (sparc64-quad-routines): New variable. Moved from ....
10568 [$(subdir) = soft-fp] (sysdep_routines): Add
10569 $(sparc64-quad-routines). Moved from ....
10570 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10571 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10572 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10573 moved from ....
10574 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10575 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10576 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10577 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10578 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10579 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10580 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10581 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10582 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10583 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10584 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10585 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10586 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10587 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10588 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10589 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10590 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10591 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10592 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10593 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10594 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10595 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10596 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10597 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10598 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10599 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10600 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10601 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10602 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10603 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10604 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10605 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10606 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10607 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10608 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10609 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10610 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10611 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10612 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10613 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10614 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10615 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10616 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10617 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10618 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10619 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10620 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10621 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10622 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10623 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10624 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10625 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10626 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10627 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10628 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10629 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10630 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10631 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10632
10633 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10634 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10635 (sparc32-quad-routines): New variable. Moved from ....
10636 [$(subdir) = soft-fp] (sysdep_routines): Add
10637 $(sparc32-quad-routines). Moved from ....
10638 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10639 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10640 moved from ....
10641 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10642 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10643 * sysdeps/sparc/sparc32/q_add.c: ... here.
10644 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10645 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10646 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10647 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10648 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10649 * sysdeps/sparc/sparc32/q_div.c: ... here.
10650 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10651 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10652 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10653 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10654 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10655 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10656 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10657 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10658 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10659 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10660 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10661 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10662 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10663 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10664 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10665 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10666 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10667 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10668 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10669 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10670 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10671 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10672 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10673 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10674 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10675 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10676 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10677 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10678 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10679 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10680 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10681 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10682 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10683 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10684 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10685 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10686 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10687 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10688 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10689 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10690 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10691 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10692 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10693 * sysdeps/sparc/sparc32/q_util.c: ... here.
10694 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10695 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10696 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10697 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10698
10699 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10700 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10701
10702 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10703 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10704 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10705 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10706
10707 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10708
10709 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10710 powerpc/soft-fp.
10711 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10712 Likewise.
10713 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10714 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10715
10716 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10717
10718 [BZ #23171]
10719 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10720 double version.
10721
10722 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10723
10724 * sysdeps/sh/Implies: Remove sh/soft-fp.
10725 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10726 * sysdeps/sh/sfp-machine.h: ... here.
10727
10728 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10729
10730 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10731 (__mempcpy_erms): Skip zero length.
10732 (__memmove_erms): Likewise.
10733 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10734 (__memset_erms): Likewise.
10735
10736 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10737
10738 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10739 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10740 Add functions moved from ....
10741 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10742 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10743 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10744 from ....
10745 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10746 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10747 * sysdeps/alpha/e_sqrtl.c: ... here.
10748 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10749 * sysdeps/alpha/local-soft-fp.h: ... here.
10750 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10751 * sysdeps/alpha/ots_add.c: ... here.
10752 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10753 * sysdeps/alpha/ots_cmp.c: ... here.
10754 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10755 * sysdeps/alpha/ots_cmpe.c: ... here.
10756 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10757 * sysdeps/alpha/ots_cvtqux.c: ... here.
10758 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10759 * sysdeps/alpha/ots_cvtqx.c: ... here.
10760 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10761 * sysdeps/alpha/ots_cvttx.c: ... here.
10762 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10763 * sysdeps/alpha/ots_cvtxq.c: ... here.
10764 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10765 * sysdeps/alpha/ots_cvtxt.c: ... here.
10766 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10767 * sysdeps/alpha/ots_div.c: ... here.
10768 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10769 * sysdeps/alpha/ots_mul.c: ... here.
10770 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10771 * sysdeps/alpha/ots_nintxq.c: ... here.
10772 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10773 * sysdeps/alpha/ots_sub.c: ... here.
10774 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10775 * sysdeps/alpha/sfp-machine.h: ... here.
10776
10777 2018-05-23 Florian Weimer <fweimer@redhat.com>
10778
10779 [BZ #19728]
10780 [BZ #19729]
10781 [BZ #22247]
10782 CVE-2016-6261
10783 CVE-2016-6263
10784 CVE-2017-14062
10785 Switch to extern IDNA implementation (libidn2).
10786 * libidn: Remove subdirectory.
10787 * LICENSES: Do not mention licensing conditions for the removed
10788 libidn code.
10789 * config.h.in (HAVE_LIBIDN): Remove.
10790 * include/dlfcn.h (__libc_dlopen): Update comment.
10791 * include/idna.h: Remove file.
10792 * inet/Makefile (routines): Add idna.
10793 (tests-static, tests-internal): Add tst-idna_name_classify.
10794 (LOCALES): Generate locales for tests.
10795 (tst-idna_name_classify.out): Depend on generated locales.
10796 * inet/idna_name_classify.c: New file.
10797 * inet/tst-idna_name_classify.c: Likewise.
10798 * inet/net-internal.h (__idna_to_dns_encoding)
10799 (__idna_from_dns_encoding): Declare.
10800 * inet/net-internal.h (enum idna_name_classification): Define.
10801 (__idna_name_classify): Declare.
10802 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10803 __idna_from_dns_encoding.
10804 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10805 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10806 name as a fallback in case of encoding errors.
10807 (getnameinfo): Use DEPRECATED_NI_IDN.
10808 * inet/idna.c: New file.
10809 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10810 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10811 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10812 (modules-names): Add tst-no-libidn2.
10813 (extra-test-objs): Add tst-no-libidn2.os.
10814 (LDFLAGS-tst-no-libidn2.so): Set soname.
10815 (LOCALES): Set, and generate locales.
10816 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10817 (tst-resolv-ai_idn-latin1): Likewise.
10818 (tst-resolv-ai_idn-nolibidn2): Likewise.
10819 (tst-resolv-ai_idn.out): Depend on locales.
10820 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10821 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10822 tst-no-libidn2.so.
10823 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10824 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10825 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10826 * resolv/tst-resolv-ai_idn.c: New file.
10827 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10828 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10829 * resolv/tst-no-libidn2.c: Likewise.
10830 * support/support_format_addrinfo.c (format_ai_flags): Do not
10831 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10832 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10833 (gaih_inet): Call __idna_to_dns_encoding and
10834 __idna_from_dns_encoding, and use the original (punycode) name if
10835 __idna_from_dns_encoding fails due to an encoding error.
10836 (getaddrinfo): Use DEPRECATED_AI_IDN.
10837 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10838 * sysdeps/unix/inet/configure: Remove file.
10839 * sysdeps/unix/inet/configure.ac: Likewise.
10840
10841 2018-05-23 Florian Weimer <fweimer@redhat.com>
10842
10843 Implement allocate_once.
10844 * include/allocate_once.h: New file.
10845 * misc/allocate_once.c: Likewise.
10846 * misc/tst-allocate_once.c: Likewise.
10847 * misc/Makefile (routines): Add allocate_once.
10848 (tests-internal): Add tst-allocate_once.
10849 (generated): Add tst-allocate_once.mtrace,
10850 tst-allocate_once-mem.out.
10851 (tests-special): Add tst-allocate_once-mem.out.
10852 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10853 (tst-allocate_once-mem.out): Call mtrace.
10854 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10855
10856 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10857
10858 [BZ #23196]
10859 * string/test-memcpy.c (do_test1): New function.
10860 (test_main): Call it.
10861
10862 2018-05-23 Andreas Schwab <schwab@suse.de>
10863
10864 [BZ #23196]
10865 CVE-2018-11237
10866 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10867 (L(preloop_large)): Save initial destination pointer in %r11 and
10868 use it instead of %rax after the loop.
10869 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10870
10871 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10872
10873 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10874 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10875 -I../soft-fp. Moved from ....
10876 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10877 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10878 * sysdeps/aarch64/e_sqrtl.c: ... here.
10879 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10880 * sysdeps/aarch64/sfp-machine.h: ... here.
10881
10882 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10883 -Wmaybe-uninitialized around access to fq[0].
10884 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10885 Likewise.
10886
10887 [BZ #18471]
10888 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10889 aliases for non-libc case of versioned symbols.
10890 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10891 (llseek): Define as compat symbol if
10892 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10893 with link warning.
10894 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10895 Make into a compat symbol, disabled for minimum symbol version
10896 GLIBC_2.28 and later.
10897 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10898
10899 2018-05-22 Florian Weimer <fweimer@redhat.com>
10900
10901 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10902 not add -mpreferred-stack-boundary=4.
10903 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10904 (stack-align-test-flags): Likewise.
10905 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10906 Likewise.
10907 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10908 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10909 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10910 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10911 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10912 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10913 (CFLAGS-tst-align2.c): Likewise.
10914
10915 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10916
10917 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10918 (index_arch_Prefer_FSRM): Likewise.
10919 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10920 Also check Prefer_FSRM.
10921 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10922 Also return OPTIMIZE (erms) for Prefer_FSRM.
10923
10924 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10925
10926 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10927 (index_cpu_FSRM): Likewise.
10928 (reg_FSRM): Likewise.
10929
10930 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10931
10932 * math/gen-tgmath-tests.py: Import sys.
10933 (Tests.__init__): Initialize macros_seen.
10934 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10935 if requested to do so for this macro.
10936 (Tests.add_all_tests): Take argument for macro for which to
10937 generate tests.
10938 (Tests.check_macro_list): New function.
10939 (main): Handle check-list argument and argument specifying macro
10940 for which to generate tests.
10941 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10942 [PYTHON] (tgmath3-macro-tests): Likewise.
10943 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10944 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10945 not test-tgmath3.c.
10946 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10947 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10948 to CFLAGS.
10949 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10950 [PYTHON] ($(foreach
10951 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10952 rule.
10953 [PYTHON] (tests-special): Add
10954 $(objpfx)test-tgmath3-macro-list.out.
10955 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10956
10957 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10958 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10959 later.
10960
10961 [BZ #22639]
10962 * time/tzset.c (SECSPERDAY): Cast to time_t.
10963 * time/tst-y2039.c: New file.
10964 * time/Makefile (tests): Add tst-y2039.
10965
10966 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10967
10968 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10969 (PREFETCH_ONE_SET): Remove duplicate line.
10970
10971 2018-05-17 Florian Weimer <fweimer@redhat.com>
10972
10973 * sysdeps/generic/math-type-macros-double.h: Include
10974 <math-nan-payload-double.h> after <libm-alias-double.h>.
10975 * sysdeps/generic/math-type-macros-float.h: Include
10976 <math-nan-payload-float.h> after <libm-alias-float.h>.
10977 * sysdeps/generic/math-type-macros-float128.h: Include
10978 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10979 * sysdeps/generic/math-type-macros-ldouble.h: Include
10980 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10981
10982 2018-05-17 Andreas Schwab <schwab@suse.de>
10983
10984 * resolv/res_send.c (__res_context_send): Don't set errno when
10985 returing error after malloc failure.
10986
10987 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10988
10989 * nptl/allocatestack.c (allocate_stack): Remove the
10990 !__ASSUME_PRIVATE_FUTEX paths.
10991 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10992 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10993 Likewise.
10994 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10995 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10996 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10997 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10998 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10999 !__ASSUME_PRIVATE_FUTEX path.
11000 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11001 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11002 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11003 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11004 !__ASSUME_PRIVATE_FUTEX macros.
11005 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11006 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11007 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11008 * sysdeps/unix/sysv/linux/kernel-features.h
11009 (__ASSUME_PRIVATE_FUTEX): Removed.
11010
11011 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11012
11013 * math/Makefile (libm-narrow-fns): Add div.
11014 (libm-test-funcs-narrow): Likewise.
11015 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11016 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11017 * math/gen-auto-libm-tests.c (test_functions): Add div.
11018 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11019 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11020 (NARROW_DIV_TRIVIAL): Likewise.
11021 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11022 macro.
11023 (__ddivl): Likewise.
11024 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11025 ddiv.
11026 (CFLAGS-nldbl-ddiv.c): New variable.
11027 (CFLAGS-nldbl-fdiv.c): Likewise.
11028 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11029 __nldbl_ddivl.
11030 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11031 prototype.
11032 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11033 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11034 * math/auto-libm-test-in: Add tests of div.
11035 * math/auto-libm-test-out-narrow-div: New generated file.
11036 * math/libm-test-narrow-div.inc: New file.
11037 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11038 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11039 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11040 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11041 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11042 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11043 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11044 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11045 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11046 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11047 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11048 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11049 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11050 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11051 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11052 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11053 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11054 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11055 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11056 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11057 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11058 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11059 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11060 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11061 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11074 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11075 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11076 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11077 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11078 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11081
11082 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11083
11084 [BZ #23178]
11085 * nscd/nscd-client.h (sendfileall): Remove prototype.
11086 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11087 (handle_request): Use writeall instead of sendfileall.
11088 * nscd/aicache.c (addhstaiX): Likewise.
11089 * nscd/grpcache.c (cache_addgr): Likewise.
11090 * nscd/hstcache.c (cache_addhst): Likewise.
11091 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11092 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11093 * nscd/pwdcache.c (cache_addpw): Likewise.
11094 * nscd/servicescache.c (cache_addserv): Likewise.
11095 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11096 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11097 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11098 Remove define.
11099
11100 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11101
11102 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11103 Include <string/strncat.c>.
11104 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11105 alias.
11106 (__GI___strncat): New hidden alias.
11107
11108 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11109
11110 * sysdeps/mips/mips32/libm-test-ulps: Update.
11111 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11112
11113 2018-05-16 Florian Weimer <fweimer@redhat.com>
11114
11115 * support/Makefile (libsupport-routines): Add support_quote_blob,
11116 support_test_compare_blob.
11117 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11118 * support/check.h (TEST_COMPARE_BLOB): Define.
11119 (support_test_compare_blob): Declare.
11120 * support/support.h (support_quote_blob): Declare.
11121 * support/support_quote_blob.c: New file.
11122 * support/support_test_compare_blob.c: Likewise.
11123 * support/tst-support_quote_blob.c: Likewise.
11124 * support/tst-test_compare_blob.c: Likewise.
11125
11126 2018-05-16 Florian Weimer <fweimer@redhat.com>
11127
11128 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11129 of <strtod_nan_double.h>.
11130 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11131 instead of SET_MANTISSA.
11132 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11133 of include <strtod_nan_float.h>.
11134 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11135 instead of <strtod_nan_ldouble.h>.
11136 * stdlib/strtod_nan_double.h: Move to ...
11137 * sysdeps/generic/math-nan-payload-double.h: ... here.
11138 (FLOAT): Remove definition.
11139 (SET_MANTISSA): Rename to ...
11140 (SET_NAN_PAYLOAD): ... this.
11141 * stdlib/strtod_nan_float.h: Move to ...
11142 * sysdeps/generic/math-nan-payload-float.h: ... here.
11143 (FLOAT): Remove definition.
11144 (SET_MANTISSA): Rename to ...
11145 (SET_NAN_PAYLOAD): ... this.
11146 * sysdeps/generic/math-type-macros-double.h: Include
11147 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11148 instead of <math-svid-compat.h>.
11149 * sysdeps/generic/math-type-macros-float.h: Include
11150 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11151 instead of <math-svid-compat.h>.
11152 * sysdeps/generic/math-type-macros-float128.h: Include
11153 <math-nan-payload-float128.h>.
11154 * sysdeps/generic/math-type-macros-ldouble.h: Include
11155 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11156 instead of <math-svid-compat.h>.
11157 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11158 check for definition.
11159 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11160 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11161 Include <ieee754_float128.h>.
11162 (FLOAT): Remove definition.
11163 (SET_MANTISSA): Rename to ...
11164 (SET_NAN_PAYLOAD): ... this.
11165 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11166 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11167 Do not include <float128_private.h>.
11168 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11169 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11170 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11171 (FLOAT): Remove definition.
11172 (SET_MANTISSA): Rename to ...
11173 (SET_NAN_PAYLOAD): ... this.
11174 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11175 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11176 (FLOAT): Remove definition.
11177 (SET_MANTISSA): Rename to ...
11178 (SET_NAN_PAYLOAD): ... this.
11179 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11180 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11181 (FLOAT): Remove definition.
11182 (SET_MANTISSA): Rename to ...
11183 (SET_NAN_PAYLOAD): ... this.
11184 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11185 of "../stdlib/strtod_nan_double.h".
11186 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11187 of "../stdlib/strtod_nan_float.h".
11188 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11189 instead of "../stdlib/strtod_nan_ldouble.h".
11190 * manual/arith.texi (Parsing of Floats): Adjust comment.
11191
11192 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11193
11194 * math/Makefile (libm-narrow-fns): Add mul.
11195 (libm-test-funcs-narrow): Likewise.
11196 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11197 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11198 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11199 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11200 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11201 (NARROW_MUL_TRIVIAL): Likewise.
11202 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11203 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11204 macro.
11205 (__dmull): Likewise.
11206 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11207 dmul.
11208 (CFLAGS-nldbl-dmul.c): New variable.
11209 (CFLAGS-nldbl-fmul.c): Likewise.
11210 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11211 __nldbl_dmull.
11212 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11213 prototype.
11214 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11215 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11216 * math/auto-libm-test-in: Add tests of mul.
11217 * math/auto-libm-test-out-narrow-mul: New generated file.
11218 * math/libm-test-narrow-mul.inc: New file.
11219 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11220 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11221 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11222 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11223 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11224 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11225 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11226 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11227 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11228 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11229 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11230 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11231 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11232 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11233 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11234 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11235 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11236 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11237 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11238 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11239 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11240 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11241 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11242 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11243 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11244 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11245 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11246 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11247 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11248 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11249 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11250 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11255 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11256 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11257 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11258 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11259 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11260 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11261 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11262 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11263
11264 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11265
11266 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11267 with *%eax in call.
11268
11269 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11270
11271 * sysdeps/i386/ldsodefs.h: Removed.
11272 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11273 * sysdeps/x86/ldsodefs.h: This.
11274 (La_i86_regs): New.
11275 (La_i86_retval): Likewise.
11276 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11277 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11278
11279 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11280
11281 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11282 unnecessary testl.
11283
11284 2018-05-13 Alan Modra <amodra@gmail.com>
11285
11286 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11287 R_PARISC_TLS_DTPOFF32 reloc addend.
11288
11289 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11290
11291 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11292 * math/math.h: Restrict the prototype definition for the functions
11293 issignaling(_Float128) and iszero(_Float128); and template
11294 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11295 __HAVE_FLOAT128_UNLIKE_LDBL.
11296 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11297 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11298 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11299 __f128() constants; define the type _Float128 as long double;
11300 and reuse long double in __CFLOAT128.
11301
11302 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11303
11304 * sysdeps/generic/math_private.h: Do not include
11305 <math-barriers.h>.
11306 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11307 <math_private.h>.
11308 * math/fromfp.h: Include <math-barriers.h>.
11309 * math/math-narrow.h: Likewise.
11310 * math/s_nextafter.c: Likewise.
11311 * math/s_nexttowardf.c: Likewise.
11312 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11313 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11314 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11315 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11316 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11317 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11318 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11319 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11320 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11321 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11322 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11323 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11324 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11325 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11326 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11327 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11328 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11329 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11330 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11331 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11332 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11333 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11334 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11335 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11336 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11337 * sysdeps/ieee754/k_standardl.c: Likewise.
11338 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11339 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11340 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11341 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11342 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11343 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11344 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11345 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11346 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11347 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11348 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11349 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11350 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11351 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11352 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11353 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11354 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11355 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11356 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11357 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11358 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11359 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11360
11361 2018-05-11 Florian Weimer <fweimer@redhat.com>
11362
11363 Use 64-bit epoch values in the time zone file parser.
11364 * include/time.h (internal_time_t): Define.
11365 (__tzfile_compute): Use it.
11366 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11367 member.
11368 (transitions): Switch to internal_time_t.
11369 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11370 types.
11371 (__tzfile_compute): Use internal_time_t for timer argument. Check
11372 for truncation before calling __offtime.
11373
11374 2018-05-11 Florian Weimer <fweimer@redhat.com>
11375
11376 [BZ #23166]
11377 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11378 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11379 Likewise.
11380 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11381 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11382 export without --enable-obsolete-rpc.
11383 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11384 symbol. This should not have been exported, ever.
11385
11386 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11387
11388 [BZ #23152]
11389 * localedata/locales/gd_GB (abmon): Fix typo in May:
11390 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11391
11392 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11393
11394 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11395 Use multiple registers to copy data in loop tail.
11396
11397 * sysdeps/aarch64/multiarch/memmove_falkor.S
11398 (__memmove_falkor): Use multiple registers to move data in
11399 loop tail.
11400
11401 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11402
11403 * math/math-underflow.h: New file.
11404 * sysdeps/generic/math_private.h: Do not include <float.h>.
11405 (fabs_tg): Remove macro. Moved to math-underflow.h.
11406 (min_of_type_f): Likewise.
11407 (min_of_type_): Likewise.
11408 (min_of_type_l): Likewise.
11409 (min_of_type_f128): Likewise.
11410 (min_of_type): Likewise.
11411 (math_check_force_underflow): Likewise.
11412 (math_check_force_underflow_nonneg): Likewise.
11413 (math_check_force_underflow_complex): Likewise.
11414 * math/e_exp2_template.c: Include <math-underflow.h>.
11415 * math/k_casinh_template.c: Likewise.
11416 * math/s_catan_template.c: Likewise.
11417 * math/s_catanh_template.c: Likewise.
11418 * math/s_ccosh_template.c: Likewise.
11419 * math/s_cexp_template.c: Likewise.
11420 * math/s_clog10_template.c: Likewise.
11421 * math/s_clog_template.c: Likewise.
11422 * math/s_csin_template.c: Likewise.
11423 * math/s_csinh_template.c: Likewise.
11424 * math/s_csqrt_template.c: Likewise.
11425 * math/s_ctan_template.c: Likewise.
11426 * math/s_ctanh_template.c: Likewise.
11427 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11428 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11429 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11430 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11431 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11432 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11433 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11434 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11435 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11436 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11437 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11438 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11439 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11440 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11441 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11442 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11443 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11444 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11445 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11446 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11447 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11448 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11449 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11450 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11451 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11452 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11453 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11454 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11455 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11456 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11457 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11458 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11459 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11460 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11461 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11462 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11463 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11464 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11465 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11466 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11467 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11468 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11469 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11470 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11471 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11472 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11474 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11475 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11476 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11477 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11478 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11479 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11480 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11481 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11482 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11488 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11489 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11490 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11491 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11493 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11495 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11497 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11498 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11499 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11500 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11501 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11504 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11505 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11506 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11507 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11508 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11509 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11510 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11511
11512 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11513
11514 * sysdeps/generic/math-barriers.h: New file.
11515 * sysdeps/generic/math_private.h [!math_opt_barrier]
11516 (math_opt_barrier): Move to math-barriers.h.
11517 [!math_opt_barrier] (math_force_eval): Likewise.
11518 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11519 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11520 math-barriers.h.
11521 (math_force_eval): Likewise.
11522 * sysdeps/alpha/fpu/math-barriers.h: New file.
11523 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11524 math-barriers.h.
11525 (math_force_eval): Likewise.
11526 * sysdeps/x86/fpu/math-barriers.h: New file.
11527 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11528 math-barriers.h.
11529 (math_force_eval): Likewise.
11530 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11531 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11532 multiple-include guard for rename.
11533 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11534 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11535 math-barriers.h.
11536 (math_force_eval): Likewise.
11537
11538 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11539
11540 [BZ #22786]
11541 CVE-2018-11236
11542 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11543 computation.
11544 * stdlib/Makefile (test-bz22786): New test.
11545 * stdlib/test-bz22786.c: New test.
11546
11547 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11548
11549 * include/math-narrow-eval.h: New file. Contents moved from ....
11550 * sysdeps/generic/math_private.h: ... here.
11551 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11552 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11553 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11554 * stdlib/strtod_l.c: Likewise.
11555 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11556 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11557 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11558 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11559 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11560 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11561 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11562 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11563 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11564 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11565 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11566 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11567 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11568 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11569 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11570 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11571 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11572 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11573 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11574 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11575 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11576 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11577 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11578 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11579 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11580 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11581 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11582 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11583 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11584
11585 2018-05-08 Andreas Schwab <schwab@suse.de>
11586
11587 * sysdeps/nptl/internaltypes.h: Fix comment.
11588
11589 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11590
11591 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11592 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11593 hidden.
11594
11595 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11596
11597 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11598 of I into loop header.
11599 * benchtests/bench-memmove-walk.c
11600 (test_main): Likewise.
11601
11602 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11603
11604 Revert:
11605 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11606 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11607
11608 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11609
11610 [BZ #20419]
11611 * elf/dl-load.c (open_verify): Fix stack overflow.
11612 * elf/Makefile (tst-big-note): New test.
11613 * elf/tst-big-note-lib.S: New.
11614 * elf/tst-big-note.c: New.
11615
11616 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11617
11618 * scripts/abilist.awk: Ignore absolute symbols.
11619 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11620 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11621 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11622 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11623 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11624 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11625 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11626 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11627 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11628 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11629 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11630 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11705 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11711 Likewise.
11712 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11718 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11719 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11725 Likewise.
11726 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11746 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11747 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11753 Likewise.
11754 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11774 Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11807 Likewise.
11808 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11813 Likewise.
11814 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11815 Likewise.
11816 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11817 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11818 Likewise.
11819 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11820 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11821 Likewise.
11822 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11823 Likewise.
11824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11827 Likewise.
11828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11829 Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11831 Likewise.
11832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11836 Likewise.
11837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11843 Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11846 Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11848 Likewise.
11849 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11850 Likewise.
11851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11852 Likewise.
11853 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11856 Likewise.
11857 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11858 Likewise.
11859 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11860 Likewise.
11861 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11864 Likewise.
11865 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11879 Likewise.
11880 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11892 Likewise.
11893 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11911 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11912 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11918 Likewise.
11919 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11925 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11926 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11932 Likewise.
11933 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11964 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11965 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11966 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11967 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11968 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11969 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11970 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11971
11972 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11973
11974 [BZ #23137]
11975 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11976 Use atomic_load_acquire to load __tid.
11977
11978 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11979
11980 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11981 Restore the pointer into %rdx, after syscall and use %rdx,
11982 instead of %rsi, to restore context.
11983
11984 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11985
11986 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11987 Pop the pointer into %rdx after syscall and use %rdx, instead
11988 of %rsi, to restore context.
11989
11990 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11991
11992 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11993 handlers after setjmp.
11994 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11995 defined.
11996 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11997 <libc-pointer-arith.h>.
11998 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11999 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12000 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12001 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12002 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12003 * sysdeps/x86/__longjmp_cancel.S: New file.
12004 * sysdeps/x86/longjmp.c: Likewise.
12005 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12006
12007 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12008
12009 * NEWS: Add ustat.h deprecation entry.
12010 * bits/ustat.h: Remove file.
12011 * misc/sys/ustat.h: Likewise.
12012 * misc/ustat.h: Likewise.
12013 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12014 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12015 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12016 compatibility mode.
12017 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12018 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12019 generic Linux implementation.
12020
12021 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12022
12023 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12024 * math/w_expl_compat.c: Likewise.
12025 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12026
12027 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12028
12029 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12030
12031 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12032
12033 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12034 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12035 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12036 Remove.
12037 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12038 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12039 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12040 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12041 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12042 and SYSCALL_LL64.
12043
12044 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12045
12046 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12047
12048 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12049 * math/w_asin_template.c: Likewise.
12050 * math/w_atanh_template.c: Likewise.
12051
12052 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12053
12054 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12055 to powerpc/powerpc64/be for big-endian.
12056 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12057 little-endian.
12058
12059 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12060 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12067 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12084 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12085 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12086 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12087 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12091
12092 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12093 adjusted to imply powerpc64 and older processors on powerpc64/be.
12094 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12112 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12118 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12119 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12120 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12121 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12122 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12123 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12124 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12125
12126 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12127 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12128 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12129 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12130
12131 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12132 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12133 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12134 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12135
12136 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12137 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12138 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12139 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12140 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12141 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12142 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12143 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12144 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12145 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12146 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12147
12148 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12149 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12150 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12151 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12152 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12153 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12154 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12155 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12156 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12157 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12158 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12159
12160 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12161 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12162 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12163 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12164 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12165 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12166 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12167 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12168 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12169 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12170 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12171 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12172
12173 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12174 and adjusted to imply olders processors.
12175 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12176 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12178 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12179 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12180 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12181 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12182 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12183 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12184 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12185 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12186
12187 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12188 powerpc64/le.
12189 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12190 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12191
12192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12193 powerpc64le.
12194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12195 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12196
12197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12198 powerpc64/be.
12199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12201 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12202
12203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12204 powerpc64 and adjusted.
12205 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12208 Likewise.
12209
12210 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12211
12212 * sysdeps/tile: Remove.
12213 * sysdeps/unix/sysv/linux/tile: Likewise.
12214 * README (tilegx-*-linux-gnu): Remove from list of supported
12215 configurations.
12216 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12217 contribution of support for generic Linux kernel syscall
12218 interface.
12219 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12220 tilegx configurations.
12221 (Config.install_linux_headers): Do not handle tile.
12222 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12223 in comment.
12224 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12225 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12226 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12227 conditional undefine and redefine.
12228 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12229 in comment.
12230 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12231 conditional undefine and redefine.
12232
12233 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12234
12235 * signal/tst-sigaction.c: New file to test BZ #23069.
12236 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12237
12238 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12239
12240 [BZ #22766]
12241 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12242 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12243 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12244 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12245
12246 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12247
12248 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12249 _DIRENT_MATCHES_DIRENT64 is not defined.
12250 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12251 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12252 is defined.
12253 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12254 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12255
12256 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12257
12258 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12259 version to GCC 8 branch.
12260
12261 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12262
12263 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12264 (check_no_hidden): Use type of original function when declaring
12265 alias.
12266
12267 * sysdeps/unix/sysv/linux/sys/ptrace.h
12268 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12269 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12270 (struct __ptrace_seccomp_metadata): New type.
12271 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12272 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12273 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12274 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12275 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12276 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12277 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12278 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12279 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12280 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12281 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12282 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12283 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12284 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12285 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12286 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12287
12288 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12289
12290 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12291 defined.
12292 * dirent/versionsort.c (versionsort): Likewise.
12293 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12294 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12295 * dirent/versionsort64.c (versionsort64): Likewise.
12296 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12297 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12298 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12299 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12300 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12301 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12302 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12303 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12304 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12305 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12308 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12309 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12310
12311 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12312
12313 * elf/elf.h (NT_PPC_PKEY): New macro.
12314
12315 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12316
12317 [BZ #23094]
12318 * localedata/locales/hr_HR: fix thousands_sep and
12319 mon_thousands_sep
12320
12321 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12322
12323 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12324 (XTABS): Define to TAB3.
12325
12326 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12327
12328 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12329
12330 * dirent/scandir-tail-common.c: New file.
12331 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12332 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12333 * dirent/scandir.c: Use scandir-tail-common.c.
12334 * dirent/scandirat.c: Likewise.
12335 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12336 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12337 if _DIRENT_MATCHES_DIRENT64 is defined.
12338 * dirent/scandirat64.c (scandirat64): Likewise.
12339 * include/dirent.h (__scandir_tail): Only define iff
12340 _DIRENT_MATCHES_DIRENT64 is not defined.
12341 (__scandir64_tail): Define regardless.
12342 (__scandirat, scandirat64): Remove libc_hidden_proto.
12343 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12344 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12345 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12346 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12347 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12348 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12349 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12350
12351 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12352
12353 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12354 New macro.
12355 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12356 Increase to 24.
12357 (_dl_aarch64_cap_flags): Add asimdfhm.
12358
12359 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12360
12361 * sysdeps/nios2/libm-test-ulps: Update.
12362
12363 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12364
12365 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12366 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12367
12368 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12369 requirements.
12370 (_DIRENT_MATCHES_DIRENT64): Undef
12371 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12372 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12373 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12374 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12375 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12376 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12377 use getdents64 syscalls as base.
12378 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12379 symbol if required.
12380 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12381 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12382 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12383 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12384 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12385 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12386 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12387 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12388 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12389 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12390 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12391
12392 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12393
12394 * scripts/test_printers_common.py (init_test): Disable lock elision.
12395
12396 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12397
12398 * math/test-tgmath.c (count_double, count_float,
12399 count_ldouble, count_cdouble, count_cfloat,
12400 count_cldouble): Use volatile int.
12401
12402 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12403
12404 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12405 (conformtest-xfail-conds): Add i386-gnu.
12406 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12407 i386-gnu.
12408 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12409 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12410 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12411 msqid_ds.msg_lrpid): Likewise.
12412 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12413 Likewise.
12414 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12415 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12416 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12417 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12418 unsigned int.
12419 (struct statvfs64): Likewise.
12420 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12421 Likewise.
12422 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12423 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12424 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12425 instead of wait_queue.
12426 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12427 instead of vm_area_struct.
12428 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12429 struct sched_param definition to it.
12430 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12431 * bits/types/struct_sched_param.h: New file.
12432 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12433 <bits/types/struct_sched_param.h> instead of <sched.h>.
12434 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12435 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12436 generic version but include <bits/pthreadtypes.h> to make struct
12437 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12438 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12439 non-compliant.
12440 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12441 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12442 [__USE_XOPEN] (OFDEL): New macro.
12443 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12444 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12445 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12446 prototypes.
12447 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12448 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12449 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12450 non-compliant.
12451 * sysdeps/i386/sys/ucontext.h: Likewise.
12452 * sysdeps/m68k/sys/ucontext.h: Likewise.
12453 * sysdeps/mips/sys/ucontext.h: Likewise.
12454 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12455 * sysdeps/mach/hurd/i386/Makefile
12456 (test-xfail-POSIX/fcntl.h/conform): Add.
12457 (test-xfail-POSIX/signal.h/conform): Add.
12458 (test-xfail-POSIX/semaphore.h/conform): Add.
12459 (test-xfail-POSIX/regex.h/conform): Add.
12460 (test-xfail-POSIX/aio.h/conform): Add.
12461 (test-xfail-POSIX/mqueue.h/conform): Add.
12462 (test-xfail-POSIX/sys/types.h/conform): Add.
12463 (test-xfail-UNIX98/fcntl.h/conform): Add.
12464 (test-xfail-UNIX98/netdb.h/conform): Add.
12465 (test-xfail-UNIX98/signal.h/conform): Add.
12466 (test-xfail-UNIX98/semaphore.h/conform): Add.
12467 (test-xfail-UNIX98/regex.h/conform): Add.
12468 (test-xfail-UNIX98/aio.h/conform): Add.
12469 (test-xfail-UNIX98/ftw.h/conform): Add.
12470 (test-xfail-UNIX98/mqueue.h/conform): Add.
12471 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12472 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12473 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12474 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12475 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12476 (test-xfail-UNIX98/sys/types.h/conform): Add.
12477 (test-xfail-UNIX98/stdlib.h/conform): Add.
12478 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12479 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12480 (test-xfail-POSIX2008/netdb.h/conform): Add.
12481 (test-xfail-POSIX2008/signal.h/conform): Add.
12482 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12483 (test-xfail-POSIX2008/regex.h/conform): Add.
12484 (test-xfail-POSIX2008/aio.h/conform): Add.
12485 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12486 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12487 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12488 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12489 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12490 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12491 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12492 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12493 (test-xfail-XOPEN2K/signal.h/conform): Add.
12494 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12495 (test-xfail-XOPEN2K/regex.h/conform): Add.
12496 (test-xfail-XOPEN2K/aio.h/conform): Add.
12497 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12498 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12499 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12500 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12501 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12502 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12503 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12504 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12505 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12506 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12507 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12508 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12509 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12510 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12511 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12512 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12513 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12514 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12515 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12516 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12517 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12518 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12519 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12520 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12521 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12522 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12523 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12524 i386-gnu.
12525 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12526 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12527
12528 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12529
12530 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12531 --enable-obsolete for powerpc-linux-gnuspe.
12532
12533 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12534
12535 * conform/data/sys/un.h-data: Allow sun_ prefix.
12536 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12537 prototypes.
12538 * sysdeps/mach/include/mach.h: Likewise.
12539 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12540 * sysdeps/mach/include/mach_error.h: Likewise.
12541
12542 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12543
12544 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12545 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12546 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12547 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12548
12549 2018-04-16 Andreas Schwab <schwab@suse.de>
12550
12551 [BZ #19527]
12552 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12553
12554 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12555
12556 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12557 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12558
12559 2018-04-12 DJ Delorie <dj@redhat.com>
12560
12561 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12562 version to 4.16.
12563
12564 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12565
12566 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12567 (struct kernel_sigaction): Use the same definition on 31bit as is used
12568 on 64bit.
12569
12570 2018-04-09 Florian Weimer <fweimer@redhat.com>
12571
12572 [BZ #23037]
12573 * resolv/res_send.c (send_dg): Use designated initializers instead
12574 of assignment to zero-initialize other fields of struct mmsghdr.
12575
12576 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12577
12578 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12579 __READDIR_ALIAS): Undefine after usage.
12580 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12581 __READDIR_R_ALIAS): Likewise.
12582 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12583 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12584 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12585 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12586 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12587 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12588 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12589 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12590 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12591 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12592 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12593 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12594 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12595 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12596 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12597 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12598 * sysdeps/unix/sysv/linux/readdir.c: New file.
12599 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12600 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12601 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12602
12603 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12604
12605 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12606
12607 * manual/charset.texi (Converting a Character): Fix typo.
12608
12609 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12610
12611 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12612
12613 * sysdeps/arm/libm-test-ulps: Update.
12614
12615 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12616 as base implementation.
12617 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12618 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12619 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12620 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12621 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12622 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12623 remove unrequired definitions and update comments.
12624 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12625 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12626 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12627 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12628 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12629 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12630 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12631 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12632 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12633 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12634 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12635 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12636 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12637 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12638 and RESET_SA_RESTORER hooks.
12639
12640 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12641
12642 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12643
12644 2018-04-05 Florian Weimer <fweimer@redhat.com>
12645
12646 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12647 integer overflow, memory leak on error, and indeterminate errno
12648 value. Add a null wide character to terminate the result string.
12649 * manual/charset.texi (Converting a Character): Mention embedded
12650 null bytes in the mbrtowc input string. Explain what happens in
12651 the -2 result case. Do not claim that mbrtowc is simple or
12652 obvious to use. Adjust the description of the code example. Use
12653 @code, not @var, for concrete variables.
12654
12655 2018-04-05 Florian Weimer <fweimer@redhat.com>
12656
12657 * manual/examples/mbstouwcs.c: New file.
12658 * manual/charset.texi (Converting a Character): Include it.
12659
12660 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12661
12662 * include/dirent.h (dirfd): Add hidden proto.
12663 * dirent/dirfd.c (dirfd): Add hidden def.
12664 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12665 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12666
12667 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12668
12669 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12670 sin, cos and sincos to 1 ULP.
12671
12672 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12673
12674 [BZ #19818]
12675 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12676 symbols.
12677 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12678 * elf/tst-absolute-sym.c: New file.
12679 * elf/tst-absolute-sym-lib.c: New file.
12680 * elf/tst-absolute-sym-lib.lds: New file.
12681 * elf/Makefile (tests): Add `tst-absolute-sym'.
12682 (modules-names): Add `tst-absolute-sym-lib'.
12683 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12684 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12685 ($(objpfx)tst-absolute-sym): New dependency.
12686
12687 [BZ #19818]
12688 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12689 parameter.
12690 (SYMBOL_ADDRESS): New macro.
12691 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12692 SYMBOL_ADDRESS for symbol address calculation.
12693 * elf/dl-runtime.c (_dl_fixup): Likewise.
12694 (_dl_profile_fixup): Likewise.
12695 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12696 * elf/rtld.c (dl_main): Likewise.
12697 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12698 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12699 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12700 (elf_machine_rela): Likewise.
12701 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12702 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12703 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12704 (elf_machine_rela): Likewise.
12705 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12706 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12707 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12708 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12709 Likewise.
12710 (elf_machine_reloc): Likewise.
12711 (elf_machine_got_rel): Likewise.
12712 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12713 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12714 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12715 Likewise.
12716 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12717 Likewise.
12718 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12719 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12720 Likewise.
12721 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12722 Likewise.
12723 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12724 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12725 Likewise.
12726 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12727 Likewise.
12728 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12729 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12730
12731 2018-04-04 Zack Weinberg <zackw@panix.com>
12732
12733 * sysdeps/generic/internal-signals.h: Include signal.h,
12734 sigsetops.h, and stdbool.h.
12735 (__libc_signal_block_all): Actually block all signals.
12736 (__libc_signal_block_app): Likewise.
12737 (__libc_signal_restore_set): Actually restore the signal mask.
12738
12739 2018-04-04 Florian Weimer <fweimer@redhat.com>
12740
12741 inet: Actually build and run tst-deadline.
12742 * inet/Makefile (tests-internal): Add tst-deadline and do not
12743 overwrite the variable.
12744 (tests-static-internal): Remove variable.
12745
12746 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12747
12748 [BZ #22947]
12749 * bits/uio-ext.h (RWF_APPEND): New.
12750 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12751 * manual/llio.texi: Document RWF_APPEND.
12752 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12753 (RWF_SUPPORTED): Add RWF_APPEND.
12754
12755 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12756
12757 [BZ #22391]
12758 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12759 check for internal nptl signals.
12760 * nptl/sigaction.c (__sigaction): Likewise.
12761 * signal/sigaddset.c (sigaddset): Likewise.
12762 * signal/sigdelset.c (sigdelset): Likewise.
12763 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12764 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12765 value.
12766 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12767 to filter out internal nptl signals.
12768 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12769 also check realtime signals using standard macros.
12770 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12771 __is_internal_signal, __libc_signal_block_all,
12772 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12773 * sysdeps/nptl/sigfillset.c: Remove file.
12774 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12775 Change return to bool.
12776 (__clear_internal_signals): Remove SIGTIMER clean since it is
12777 equal to SIGCANEL on Linux.
12778 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12779 signal set was constructed using standard functions.
12780
12781 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12782
12783 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12784 ifname is too long.
12785 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12786 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12787 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12788 hidden def.
12789 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12790 * signal/sigaddset.c: Include <sigsetopts.h>.
12791 * signal/sigdelset.c: Likewise.
12792
12793 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12794
12795 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12796 (__cos): Likewise.
12797 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12798 logic as sin and cos.
12799
12800 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12801
12802 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12803 inputs. Return correct sign.
12804 (do_sincos): Remove small input check before do_sin, let do_sin set
12805 the sign.
12806 (__sin): Likewise.
12807 (__cos): Likewise.
12808
12809 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12810
12811 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12812 (do_cos_slow): Likewise.
12813 (do_sin_slow): Likewise.
12814 (reduce_and_compute): Likewise.
12815 (slow): Likewise.
12816 (slow1): Likewise.
12817 (slow2): Likewise.
12818 (sloww): Likewise.
12819 (sloww1): Likewise.
12820 (sloww2): Likewise.
12821 (bslow): Likewise.
12822 (bslow1): Likewise.
12823 (bslow2): Likewise.
12824 (cslow2): Likewise.
12825
12826 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12827
12828 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12829 (do_cos): Remove corp parameter and calculations.
12830 (do_sin): Likewise.
12831 (do_sincos): Remove cor variable.
12832 (__sin): Use do_sincos for huge inputs.
12833 (__cos): Likewise.
12834 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12835 (reduce_and_compute_sincos): Remove unused function.
12836
12837 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12838
12839 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12840 reduce_sincos, improve accuracy to 136 bits.
12841 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12842 (__sin): Use improved reduction and simplified do_sincos calculation.
12843 (__cos): Likewise.
12844 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12845
12846 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12847
12848 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12849 (do_sincos_2): Likewise.
12850 (__sin): Remove middle range reduction case.
12851 (__cos): Likewise.
12852 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12853 reduction case.
12854
12855 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12856
12857 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12858 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12859 inputs.
12860 (__cos): Likewise.
12861 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12862
12863 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12864
12865 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12866 version to 4.16
12867
12868 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12869
12870 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12871 Remove definitions.
12872 (opendir_oflags): Use O_DIRECTORY regardless.
12873 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12874 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12875
12876 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12877
12878 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12879 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12880 macros.
12881 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12882 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12883 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12884 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12885 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12886 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12887
12888 * htl/Makefile: Bump licence to LGPL 2.1+.
12889 * htl/alloca_cutoff.c: Likewise.
12890 * htl/cthreads-compat.c: Likewise.
12891 * htl/lockfile.c: Likewise.
12892 * htl/pt-alloc.c: Likewise.
12893 * htl/pt-cancel.c: Likewise.
12894 * htl/pt-cleanup.c: Likewise.
12895 * htl/pt-create.c: Likewise.
12896 * htl/pt-dealloc.c: Likewise.
12897 * htl/pt-detach.c: Likewise.
12898 * htl/pt-exit.c: Likewise.
12899 * htl/pt-getattr.c: Likewise.
12900 * htl/pt-initialize.c: Likewise.
12901 * htl/pt-internal.h: Likewise.
12902 * htl/pt-join.c: Likewise.
12903 * htl/pt-self.c: Likewise.
12904 * htl/pt-setcancelstate.c: Likewise.
12905 * htl/pt-setcanceltype.c: Likewise.
12906 * htl/pt-sigmask.c: Likewise.
12907 * htl/pt-spin-inlines.c: Likewise.
12908 * htl/pt-testcancel.c: Likewise.
12909 * htl/pt-yield.c: Likewise.
12910 * htl/tests/test-1.c: Likewise.
12911 * htl/tests/test-10.c: Likewise.
12912 * htl/tests/test-11.c: Likewise.
12913 * htl/tests/test-12.c: Likewise.
12914 * htl/tests/test-13.c: Likewise.
12915 * htl/tests/test-14.c: Likewise.
12916 * htl/tests/test-15.c: Likewise.
12917 * htl/tests/test-16.c: Likewise.
12918 * htl/tests/test-17.c: Likewise.
12919 * htl/tests/test-2.c: Likewise.
12920 * htl/tests/test-3.c: Likewise.
12921 * htl/tests/test-4.c: Likewise.
12922 * htl/tests/test-5.c: Likewise.
12923 * htl/tests/test-6.c: Likewise.
12924 * htl/tests/test-7.c: Likewise.
12925 * htl/tests/test-8.c: Likewise.
12926 * htl/tests/test-9.c: Likewise.
12927 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12928 * sysdeps/htl/bits/cancelation.h: Likewise.
12929 * sysdeps/htl/bits/pthread-np.h: Likewise.
12930 * sysdeps/htl/bits/pthread.h: Likewise.
12931 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12932 * sysdeps/htl/bits/semaphore.h: Likewise.
12933 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12934 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12935 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12936 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12937 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12938 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12939 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12940 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12941 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12942 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12943 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12944 * sysdeps/htl/old_pt-atfork.c: Likewise.
12945 * sysdeps/htl/pt-atfork.c: Likewise.
12946 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12947 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12948 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12949 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12950 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12951 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12952 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12953 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12954 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12955 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12956 * sysdeps/htl/pt-attr-init.c: Likewise.
12957 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12958 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12959 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12960 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12961 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12962 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12963 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12964 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12965 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12966 * sysdeps/htl/pt-attr.c: Likewise.
12967 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12968 * sysdeps/htl/pt-barrier-init.c: Likewise.
12969 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12970 * sysdeps/htl/pt-barrier.c: Likewise.
12971 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12972 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12973 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12974 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12975 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12976 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12977 * sysdeps/htl/pt-cond-init.c: Likewise.
12978 * sysdeps/htl/pt-cond-signal.c: Likewise.
12979 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12980 * sysdeps/htl/pt-cond-wait.c: Likewise.
12981 * sysdeps/htl/pt-cond.c: Likewise.
12982 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12983 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12984 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12985 * sysdeps/htl/pt-condattr-init.c: Likewise.
12986 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12987 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12988 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12989 * sysdeps/htl/pt-equal.c: Likewise.
12990 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12991 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12992 * sysdeps/htl/pt-getschedparam.c: Likewise.
12993 * sysdeps/htl/pt-getspecific.c: Likewise.
12994 * sysdeps/htl/pt-init-specific.c: Likewise.
12995 * sysdeps/htl/pt-key-create.c: Likewise.
12996 * sysdeps/htl/pt-key-delete.c: Likewise.
12997 * sysdeps/htl/pt-key.h: Likewise.
12998 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12999 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13000 * sysdeps/htl/pt-mutex-init.c: Likewise.
13001 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13002 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13003 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13004 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13005 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13006 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13007 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13008 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13009 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13010 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13011 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13012 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13013 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13014 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13015 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13016 * sysdeps/htl/pt-mutexattr.c: Likewise.
13017 * sysdeps/htl/pt-once.c: Likewise.
13018 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13019 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13020 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13021 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13022 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13023 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13024 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13025 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13026 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13027 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13028 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13029 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13030 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13031 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13032 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13033 * sysdeps/htl/pt-setschedparam.c: Likewise.
13034 * sysdeps/htl/pt-setschedprio.c: Likewise.
13035 * sysdeps/htl/pt-setspecific.c: Likewise.
13036 * sysdeps/htl/pt-spin.c: Likewise.
13037 * sysdeps/htl/pt-startup.c: Likewise.
13038 * sysdeps/htl/pthread.h: Likewise.
13039 * sysdeps/htl/sem-close.c: Likewise.
13040 * sysdeps/htl/sem-destroy.c: Likewise.
13041 * sysdeps/htl/sem-getvalue.c: Likewise.
13042 * sysdeps/htl/sem-init.c: Likewise.
13043 * sysdeps/htl/sem-open.c: Likewise.
13044 * sysdeps/htl/sem-post.c: Likewise.
13045 * sysdeps/htl/sem-timedwait.c: Likewise.
13046 * sysdeps/htl/sem-trywait.c: Likewise.
13047 * sysdeps/htl/sem-unlink.c: Likewise.
13048 * sysdeps/htl/sem-wait.c: Likewise.
13049 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13050 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13051 * sysdeps/mach/htl/pt-block.c: Likewise.
13052 * sysdeps/mach/htl/pt-spin.c: Likewise.
13053 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13054 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13055 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13056 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13057 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13058 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13059 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13060 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13061 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13062 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13063 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13064 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13065 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13066 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13067 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13068 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13069 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13070 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13071 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13072 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13073 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13074 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13075 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13076 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13077 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13078 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13079 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13080 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13081 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13082 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13083 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13084 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13085 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13087 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13088 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13089 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13090 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13091 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13092 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13093 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13094 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13095 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13096
13097 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13098 * README: Remove the mention of out-of-tree patches needed for
13099 GNU/Hurd.
13100
13101 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13102 (UTIME_NOW, UTIME_OMIT): Define macros.
13103
13104 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13105 instead of pthread_detach.
13106 (__cthread_fork): Call __pthread_create instead of pthread_create.
13107 (__cthread_keycreate): Call __pthread_key_create instead of
13108 pthread_key_create.
13109 (__cthread_getspecific): Call __pthread_getspecific instead of
13110 pthread_getspecific.
13111 (__cthread_setspecific): Call __pthread_setspecific instead of
13112 pthread_setspecific.
13113 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13114 __pthread_mutex_unlock instead of pthread_mutex_lock and
13115 pthread_mutex_unlock.
13116 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13117 ___pthread_get_cleanup_stack.
13118 (__pthread_get_cleanup_stack): New strong alias.
13119 * htl/pt-create.c: Include <pthreadP.h>.
13120 (entry_point): Call __pthread_exit instead of pthread_exit.
13121 (pthread_create): Rename to __pthread_create.
13122 (pthread_create): New strong alias.
13123 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13124 (pthread_detach): New strong alias.
13125 (__pthread_detach): Call __pthread_cond_broadcast instead of
13126 pthread_cond_broadcast.
13127 * htl/pt-exit.c: Include <pthreadP.h>.
13128 (__pthread_exit): Call __pthread_setcancelstate and
13129 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13130 __pthread_get_cleanup_stack.
13131 * htl/pt-testcancel.c: Include <pthreadP.h>.
13132 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13133 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13134 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13135 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13136 pthread_attr_getstacksize.
13137 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13138 Rename to __pthread_attr_getstackaddr.
13139 (pthread_attr_getstackaddr): New strong alias.
13140 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13141 Rename to __pthread_attr_getstacksize.
13142 (pthread_attr_getstacksize): New strong alias.
13143 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13144 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13145 (pthread_attr_setstack): New strong alias.
13146 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13147 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13148 pthread_attr_getstacksize, pthread_attr_setstacksize and
13149 pthread_attr_setstackaddr.
13150 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13151 Rename to __pthread_attr_setstackaddr.
13152 (pthread_attr_setstackaddr): New strong alias.
13153 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13154 Rename to __pthread_attr_setstacksize.
13155 (pthread_attr_setstacksize): New strong alias.
13156 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13157 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13158 pthread_exit.
13159 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13160 (__pthread_key_create): New hidden def.
13161 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13162 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13163 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13164 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13165 __pthread_setspecific, __pthread_setcancelstate,
13166 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13167 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13168 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13169 declarations.
13170 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13171 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13172 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13173 (pthread_attr_setstackaddr): New strong alias.
13174 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13175 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13176 (pthread_attr_setstacksize): New strong alias.
13177 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13178 (call_exit): Call __pthread_exit instead of pthread_exit.
13179 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13180 (_pthread_mutex_init): New hidden definition.
13181 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13182 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13183 instead of pthread_attr_init and pthread_attr_setstack.
13184
13185 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13186 __vm_deallocate instead of vm_allocate and vm_deallocate.
13187 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13188 setenv.
13189 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13190 of geteuid.
13191 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13192 strdup.
13193 * hurd/siginfo.c: Include <libioP.h>.
13194 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13195 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13196 munmap.
13197 * mach/devstream.c: Include <libioP.h>.
13198 (dealloc_ref): Call __mach_port_deallocate instead of
13199 mach_port_deallocate.
13200 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13201 Call __mach_port_deallocate instead of mach_port_deallocate.
13202 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13203 pathconf.
13204 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13205 munmap.
13206 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13207 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13208 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13209 of munmap.
13210 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13211 of close.
13212 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13213 instead of sysconf.
13214 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13215 __clock_gettime instead of clock_gettime.
13216 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13217 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13218 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13219 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13220 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13221 tcgetattr.
13222 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13223 __clock_gettime and __nanosleep instead of clock_gettime and
13224 nanosleep.
13225 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13226 __hurd_catch_signal.
13227 (hurd_catch_signal): New strong alias.
13228 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13229 __hurd_catch_signal instead of hurd_catch_signal.
13230 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13231 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13232 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13233 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13234 (_hurd_thread_sigstate): Add hidden def.
13235 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13236 mutex_unlock.
13237 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13238 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13239 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13240 __hurd_file_name_path_lookup.
13241 (hurd_file_name_path_lookup): New strong alias.
13242 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13243 hurd_file_name_path_lookup.
13244 * mach/errstring.c (mach_error_type): Add hidden def.
13245 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13246 * mach/mutex-init.c (__mutex_init): Add hidden def.
13247 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13248 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13249 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13250 * sysdeps/mach/hurd/getcwd.c
13251 (_hurd_canonicalize_directory_name_internal): Rename to
13252 __hurd_canonicalize_directory_name_internal.
13253 (_hurd_canonicalize_directory_name_internal): New strong alias.
13254 (__canonicalize_directory_name_internal, __getcwd): Call
13255 __hurd_canonicalize_directory_name_internal instead of
13256 _hurd_canonicalize_directory_name_internal.
13257 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13258 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13259 hidden defs.
13260 * sysdeps/hurd/include/hurd.h: New file.
13261 * sysdeps/hurd/include/hurd/fd.h: New file.
13262 * sysdeps/hurd/include/hurd/signal.h: New file.
13263 * sysdeps/mach/include/lock-intern.h: New file.
13264 * sysdeps/mach/include/mach.h: New file.
13265 * sysdeps/mach/include/mach/mig_support.h: New file.
13266 * sysdeps/mach/include/mach_error.h: New file.
13267 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13268 prototype.
13269 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13270 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13271 _HEADER_H_HIDDEN_DEF macro.
13272 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13273 _hurd_fd_error_signal): Add hidden prototype.
13274 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13275 hidden def.
13276 * libio/iolibio.h (_IO_puts): New hidden prototype.
13277 * libio/ioputs.c (_IO_puts): New hidden def.
13278 * sysdeps/mach/hurd/localplt.data: New file.
13279
13280 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13281 Amos Jeffries <squid3@treenet.co.nz>
13282 David Michael <fedora.dm0@gmail.com>
13283 Marco Gerards <marco@gnu.org>
13284 Marcus Brinkmann <marcus@gnu.org>
13285 Neal H. Walfield <neal@gnu.org>
13286 Pino Toscano <toscano.pino@tiscali.it>
13287 Richard Braun <rbraun@sceen.net>
13288 Roland McGrath <roland@gnu.org>
13289 Samuel Thibault <samuel.thibault@ens-lyon.org>
13290 Thomas DiModica <ricinwich@yahoo.com>
13291 Thomas Schwinge <tschwinge@gnu.org>
13292
13293 * htl: New directory.
13294 * sysdeps/htl: New directory.
13295 * sysdeps/hurd/htl: New directory.
13296 * sysdeps/i386/htl: New directory.
13297 * sysdeps/mach/htl: New directory.
13298 * sysdeps/mach/hurd/htl: New directory.
13299 * sysdeps/mach/hurd/i386/htl: New directory.
13300 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13301 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13302 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13303
13304 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13305
13306 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13307 signals in thread created for runing timers.
13308
13309 2018-04-01 Florian Weimer <fweimer@redhat.com>
13310
13311 * support/support_format_addrinfo.c (support_format_addrinfo):
13312 Include unknown error number in formatted result.
13313
13314 2018-03-29 Florian Weimer <fweimer@redhat.com>
13315
13316 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13317 capture SIGBUS.
13318
13319 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13320
13321 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13322 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13323 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13324 (__ASSUME_CLONE_BACKWARDS): Define.
13325
13326 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13327
13328 [BZ #23024]
13329 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13330 early when linux sentinel value is set.
13331
13332 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13333
13334 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13335
13336 2018-03-27 Andreas Schwab <schwab@suse.de>
13337
13338 [BZ #23005]
13339 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13340 allocation of private copy of nsaddr_list fails.
13341
13342 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13343
13344 [BZ #16552]
13345 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13346 * sysdeps/unix/sysv/linux/umount.c: ... here.
13347 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13348 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13349 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13350 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13352 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13353 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13354
13355 2018-03-26 Andreas Schwab <schwab@suse.de>
13356
13357 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13358 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13359 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13360 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13361 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13362 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13363 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13364 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13365 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13366 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13367 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13368 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13369 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13370 (R_RISCV_NUM): Define.
13371
13372 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13373
13374 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13375 TLS declaration of errno.
13376 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13377 __libc_setup_tls.
13378 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13379 (ARCH_SETUP_TLS): Likewise.
13380 * sysdeps/mach/hurd/libc-start.h: New file copied from
13381 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13382 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13383 instead of __libc_setup_tls.
13384 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13385 __libc_setup_tls before initializing libpthread and running _hurd_init
13386 which starts the signal thread.
13387 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13388 Declare function.
13389 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13390
13391 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13392
13393 [BZ #22998]
13394 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13395 after it is defined.
13396
13397 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13398 Max Horn <max@quendi.de>
13399
13400 [BZ #22644]
13401 CVE-2017-18269
13402 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13403 branch conditions.
13404 * string/test-memmove.c (do_test2): New testcase.
13405
13406 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13407
13408 * sysdeps/generic/frame.h: Remove file.
13409 * sysdeps/arm/frame.h: Likewise.
13410 * sysdeps/hppa/frame.h: Likewise.
13411 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13412 macro.
13413 (GET_FRAME): Likewise.
13414 (GET_STACK): Likewise.
13415 (CALL_SIGHANDLER): Likewise.
13416 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13417 Likewise.
13418 (GET_FRAME): Likewise.
13419 (GET_STACK): Likewise.
13420 (CALL_SIGHANDLER): Likewise.
13421 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13422 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13423 (GET_FRAME): Likewise.
13424 (GET_STACK): Likewise.
13425 (CALL_SIGHANDLER): Likewise.
13426 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13427 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13428 (GET_FRAME): Likewise.
13429 (GET_STACK): Likewise.
13430 (ADVANCE_STACK_FRAME): Likewise.
13431 (CALL_SIGHANDLER): Likewise.
13432 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13433 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13434 (GET_FRAME): Likewise.
13435 (GET_STACK): Likewise.
13436 (CALL_SIGHANDLER): Likewise.
13437 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13438 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13439 (GET_FRAME): Likewise.
13440 (GET_STACK): Likewise.
13441 (CALL_SIGHANDLER): Likewise.
13442 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13443 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13444 (GET_FRAME): Likewise.
13445 (GET_STACK): Likewise.
13446 (CALL_SIGHANDLER): Likewise.
13447 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13448 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13449 (GET_FRAME): Likewise.
13450 (GET_STACK): Likewise.
13451 (CALL_SIGHANDLER): Likewise.
13452 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13453 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13454 (GET_FRAME): Likewise.
13455 (GET_STACK): Likewise.
13456 (CALL_SIGHANDLER): Likewise.
13457 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13458 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13459 (GET_FRAME): Likewise.
13460 (GET_STACK): Likewise.
13461 (CALL_SIGHANDLER): Likewise.
13462 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13463 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13464 (GET_FRAME): Likewise.
13465 (GET_STACK): Likewise.
13466 (CALL_SIGHANDLER): Likewise.
13467 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13468 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13469 (GET_FRAME): Likewise.
13470 (GET_STACK): Likewise.
13471 (CALL_SIGHANDLER): Likewise.
13472 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13473 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13474 (GET_FRAME): Likewise.
13475 (GET_STACK): Likewise.
13476 (CALL_SIGHANDLER): Likewise.
13477 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13478 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13479 (FIRST_FRAME_POINTER): Likewise.
13480 (ADVANCE_STACK_FRAME): Likewise.
13481 (GET_STACK): Likewise.
13482 (GET_FRAME): Likewise.
13483 (CALL_SIGHANDLER): Likewise.
13484 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13485 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13486 (ADVANCE_STACK_FRAME): Likewise.
13487 (GET_STACK): Likewise.
13488 (GET_FRAME): Likewise.
13489 (CALL_SIGHANDLER): Likewise.
13490 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13491 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13492 (GET_FRAME): Likewise.
13493 (GET_STACK): Likewise.
13494 (CALL_SIGHANDLER): Likewise.
13495 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13496 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13497 (GET_FRAME): Likewise.
13498 (GET_STACK): Likewise.
13499 (CALL_SIGHANDLER): Likewise.
13500
13501 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13502
13503 * sysdeps/x86_64/backtrace.c: Move to ....
13504 * debug/backtrace.c: ... here.
13505 * sysdeps/aarch64/backtrace.c: Remove file.
13506 * sysdeps/alpha/backtrace.c: Likewise.
13507 * sysdeps/hppa/backtrace.c: Likewise.
13508 * sysdeps/ia64/backtrace.c: Likewise.
13509 * sysdeps/mips/backtrace.c: Likewise.
13510 * sysdeps/nios2/backtrace.c: Likewise.
13511 * sysdeps/riscv/backtrace.c: Likewise.
13512 * sysdeps/sh/backtrace.c: Likewise.
13513 * sysdeps/tile/backtrace.c: Likewise.
13514
13515 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13516
13517 [BZ #22987]
13518 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13519 function.
13520 (fdimf): Likewise.
13521 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13522
13523 [BZ #17343]
13524 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13525 possibly overflowing computations.
13526
13527 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13528
13529 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13530 values from Linux-specific section now that it is in the GNU section.
13531 * sysdeps/gnu/errlist.c: Regenerate.
13532
13533 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13534
13535 * math/Makefile (libm-narrow-fns): Add sub.
13536 (libm-test-funcs-narrow): Likewise.
13537 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13538 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13539 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13540 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13541 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13542 (NARROW_SUB_TRIVIAL): Likewise.
13543 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13544 macro.
13545 (__dsubl): Likewise.
13546 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13547 dsub.
13548 (CFLAGS-nldbl-dsub.c): New variable.
13549 (CFLAGS-nldbl-fsub.c): Likewise.
13550 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13551 __nldbl_dsubl.
13552 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13553 prototype.
13554 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13555 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13556 * math/auto-libm-test-in: Add tests of sub.
13557 * math/auto-libm-test-out-narrow-sub: New generated file.
13558 * math/libm-test-narrow-sub.inc: New file.
13559 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13560 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13561 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13562 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13563 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13564 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13565 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13566 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13567 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13568 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13569 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13570 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13571 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13572 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13573 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13574 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13575 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13576 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13577 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13578 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13579 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13580 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13581 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13582 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13583 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13584 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13585 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13586 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13587 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13588 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13589 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13590 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13592 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13595 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13596 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13598 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13599 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13600 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13601 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13602 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13603 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13604 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13605
13606 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13607
13608 [BZ #20079]
13609 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13610
13611 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13612
13613 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13614
13615 2018-03-18 Richard Braun <rbraun@sceen.net>
13616
13617 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13618 thread reference.
13619
13620 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13621
13622 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13623 (__libc_cleanup_fct): Define function.
13624 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13625 __libc_cleanup_end): Rewrite implementation using
13626 __attribute__ ((__cleanup__)).
13627 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13628 * hurd/Makefile (routines): Add hurdlock.
13629 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13630 interface.
13631 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13632 * hurd/hurdpid.c: Include <lowlevellock.h>
13633 (_S_msg_proc_newids): Use lll_wait to synchronize.
13634 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13635 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13636 * mach/Makefile (lock-headers): Remove machine-lock.h.
13637 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13638 <machine-lock.h>.
13639 (__spin_lock_t): New type.
13640 (__SPIN_LOCK_INITIALIZER): New macro.
13641 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13642 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13643 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13644 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13645 (__mutex_init): Initialize with lll.
13646 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13647 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13648 needing lll.
13649 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13650 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13651 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13652 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13653 (__setpgid): Use lll for synchronization.
13654 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13655 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13656 instead of <cthreads.h>.
13657 (_IO_lock_inexpensive): New macro
13658 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13659 (__libc_lock_self0): New declaration.
13660 (__libc_lock_owner_self): New macro.
13661 (__libc_key_t): Remove type.
13662 (_LIBC_LOCK_INITIALIZER): New macro.
13663 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13664 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13665 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13666 __libc_lock_define_initialized_recursive,
13667 __rtld_lock_define_initialized_recursive,
13668 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13669 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13670 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13671 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13672 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13673 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13674 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13675 New macros.
13676 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13677 * hurd/hurdlock.c: New file.
13678 * hurd/hurdlock.h: New file.
13679 * mach/lowlevellock.h: New file
13680
13681 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13682
13683 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13684 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13685 when opening a symlink with O_NOFOLLOW.
13686 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13687 path when flags contains O_NOFOLLOW.
13688 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13689 if flags contains O_DIRECTORY and the result is a directory.
13690 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13691 oneself when the pointer given in D is nul (as set by ext2fs).
13692 * sysdeps/mach/hurd/mlockall.c: New file.
13693 * sysdeps/mach/hurd/munlockall.c: New file.
13694
13695 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13696
13697 * hurd/hurdsig.c: Include <pthread.h>.
13698 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13699 get the signal thread stack layout.
13700 * hurd/Makefile (headers): Remove threadvar.h.
13701 (inline-headers): Remove threadvar.h.
13702 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13703 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13704 __hurd_threadvar_max, __hurd_errno_location.
13705 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13706 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13707 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13708 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13709 unless TLS is not initialized yet, in which case we do not need a
13710 critical section yet anyway.
13711 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13712 <machine-sp.h>.
13713 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13714 declarations.
13715 (__hurd_threadvar_index): Remove enum.
13716 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13717 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13718 inlines.
13719 (__hurd_reply_port0): New variable declaration.
13720 (__hurd_local_reply_port): New macro.
13721 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13722 (interrupted_reply_port_location): Add thread_t parameter. Use it
13723 with THREAD_TCB to access thread-local variables.
13724 (_hurdsig_abort_rpcs): Pass ss->thread to
13725 interrupted_reply_port_location.
13726 (_hurd_internal_post_signal): Likewise.
13727 (_hurdsig_init): Use presence of cthread_fork instead of
13728 __hurd_threadvar_stack_mask to start signal thread by hand.
13729 Remove signal thread threadvar initialization.
13730 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13731 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13732 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13733 of threadvar.
13734 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13735 __libc_lock_self0.
13736 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13737 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13738 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13739 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13740 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13741 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13742 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13743 define variables.
13744 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13745 <hurd/threadvar.h>.
13746 [IS_IN(rtld)] (rtld_errno): New variable.
13747 [IS_IN(rtld)] (__errno_location): New weak function.
13748 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13749 * sysdeps/mach/hurd/errno.c: Remove file.
13750 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13751 (__fork): Remove THREADVAR_SPACE macro and its use.
13752 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13753 variable.
13754 (init): Do not initialize threadvar.
13755 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13756 symbol.
13757 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13758 __hurd_local_reply_port instead of threadvar.
13759 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13760 _hurd_sigstate fields.
13761 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13762 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13763 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13764 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13765 instead of threadvar.
13766 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13767 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13768 (use_threadvar, global_reply_port): Remove variables.
13769 (__hurd_reply_port0): New variable.
13770 (__mig_get_reply_port): Use __hurd_local_reply_port and
13771 __hurd_reply_port0 instead of threadvar.
13772 (__mig_dealloc_reply_port): Likewise.
13773 (__mig_init): Do not initialize threadvar.
13774 * sysdeps/mach/hurd/profil.c: Fix comment.
13775 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13776 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13777 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13778 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13779 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13780 __cthread_setspecific.
13781 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13782 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13783 __cthread_t instead of cthread_fork, cthread_detach,
13784 pthread_getattr_np, pthread_attr_getstack.
13785 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13786 __cthread_keycreate.
13787 (cthread_getspecific): Rename to __cthread_getspecific.
13788 (cthread_setspecific): Rename to __cthread_setspecific.
13789 (__libc_getspecific): Use __cthread_getspecific instead of
13790 cthread_getspecific.
13791 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13792 __cthread_keycreate instead of cthread_keycreate.
13793 (__libc_setspecific): Use __cthread_setspecific instead of
13794 cthread_setspecific.
13795 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13796 Likewise.
13797 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13798 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13799 testing whether it is defined.
13800
13801 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13802
13803 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13804 Define macro.
13805 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13806 * sysdeps/mach/i386/thread_state.h
13807 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13808 i386_THREAD_STATE.
13809 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13810 i386_THREAD_STATE.
13811 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13812
13813 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13814 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13815
13816 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13817 macros.
13818 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13819 descriptor instead of creating a new one.
13820 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13821
13822 * mach/setup-thread.c: Include <ldsodefs.h>.
13823 (__mach_setup_thread): Call _dl_allocate_tls, pass
13824 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13825 MACHINE_THREAD_STATE_FLAVOR, before getting
13826 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13827 MACHINE_THREAD_STATE_FLAVOR with the result.
13828 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13829 MACHINE_THREAD_STATE_FIX_NEW.
13830 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13831 too. Add original thread parameter.
13832
13833 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13834
13835 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13836 Remove inline function.
13837
13838 * sysdeps/i386/fpu/libm-test-ulps: Update.
13839 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13840
13841 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13842
13843 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13844 commit.
13845
13846 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13847
13848 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13849 (__sincos_code): Remove define and undefine.
13850 [__FAST_MATH__] (__sincos): Remove inline function.
13851 [__FAST_MATH__] (__sincosf): Remove inline function.
13852 [__FAST_MATH__] (__sincosl): Remove inline function.
13853 (__atan2l): Remove inline functions.
13854 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13855 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13856 function.
13857 (floor): Remove inline function.
13858 (ceil): Likewise.
13859 [__FAST_MATH__] (__ldexp_code): Remove macro.
13860 [__FAST_MATH__] (ldexp): Remove inline function.
13861 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13862 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13863 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13864 [__USE_ISOC99] (__lrint_code): Remove macro.
13865 [__USE_ISOC99] (__llrint_code): Likewise.
13866 [__USE_ISOC99] (lrintf): Remove inline function.
13867 [__USE_ISOC99] (lrint): Likewise.
13868 [__USE_ISOC99] (lrintl): Likewise.
13869 [__USE_ISOC99] (llrint): Likewise.
13870 [__USE_ISOC99] (llrintf): Likewise.
13871 [__USE_ISOC99] (llrintl): Likewise.
13872
13873 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13874
13875 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13876 (__ieee754_sqrtf): Remove.
13877 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13878 (__ieee754_sqrtf): Remove.
13879 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13880 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13881 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13882 (__ieee754_sqrtf): Remove.
13883 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13884 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13885 (sqrtf): Remove.
13886 (sqrtl): Remove.
13887 (__ieee754_sqrt): Remove.
13888 (__ieee754_sqrtf): Remove.
13889 (__ieee754_sqrtl): Remove.
13890 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13891 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13892 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13893 (__ieee754_sqrtf): Remove.
13894 (__ieee754_sqrtl): Remove.
13895
13896 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13897
13898 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13899 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13900 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13901 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13902 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13903 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13904 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13905 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13906 Likewise.
13907 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13908 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13909 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13910 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13911 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13912 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13913 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13914 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13915 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13916 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13917 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13918 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13919 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13920 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13921 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13922 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13923 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13924 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13925 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13926 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13927 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13928 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13929 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13930 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13931 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13932 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13933 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13934 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13935 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13936 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13937 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13938 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13939 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13940 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13941 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13942 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13943 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13944 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13945 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13946 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13947
13948 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13949
13950 * include/math.h (sqrt): Declare with asm redirect.
13951 (sqrtf): Likewise.
13952 (sqrtl): Likewise.
13953 (sqrtf128): Likewise.
13954 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13955 nonlib and libnldbl with -fmath-errno.
13956 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13957 * math/w_sqrt_template.c: Likewise.
13958 * math/w_sqrtf_compat.c: Likewise.
13959 * math/w_sqrtl_compat.c: Likewise.
13960 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13961 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13962 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13963 complex.h.
13964
13965 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13966
13967 * benchtests/Makefile: Define _ISOMAC.
13968 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13969 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13970 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13971 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13972 * benchtests/bench-timing.h: Define attribute_hidden.
13973
13974 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13975
13976 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13977 mov + lsr.
13978
13979 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13980
13981 [BZ #22963]
13982 * localedata/locales/cs_CZ (mon): Rename to...
13983 (alt_mon): This.
13984 (mon): Import from CLDR (genitive case).
13985
13986 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13987
13988 [BZ #22937]
13989 * localedata/locales/el_CY (abmon): Rename to...
13990 (ab_alt_mon): This.
13991 (abmon): Import from CLDR (abbreviated genitive case).
13992 * localedata/locales/el_GR (abmon): Rename to...
13993 (ab_alt_mon): This.
13994 (abmon): Import from CLDR (abbreviated genitive case).
13995
13996 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13997
13998 [BZ #22932]
13999 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14000
14001 2018-03-15 Robert Buj <robert.buj@gmail.com>
14002
14003 [BZ #22848]
14004 * localedata/locales/ca_ES (abmon): Rename to...
14005 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14006 (mon): Rename to...
14007 (alt_mon): This.
14008 (abmon): Import from CLDR (genitive case, month names preceded by
14009 "de" or "d’").
14010 (mon): Likewise.
14011 (abday): Synchronize with CLDR.
14012 (d_t_fmt): Likewise.
14013 (d_fmt): Likewise.
14014 (am_pm): Likewise.
14015
14016 (LC_TIME): Improve indentation.
14017 (LC_TELEPHONE): Likewise.
14018 (LC_NAME): Likewise.
14019 (LC_ADDRESS): Likewise.
14020
14021 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14022
14023 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14024 (lrintf): Remove definitions used only with old GCC.
14025 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14026 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14027 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14028 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14029 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14030 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14031 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14032 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14033 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14034 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14035 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14036 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14037 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14038 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14039 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14040 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14041 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14042 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14043 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14044 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14045 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14046 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14047 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14048 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14049 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14050 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14051 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14052 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14053
14054 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14055
14056 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14057 instruction to unbreak builds with binutils 2.26 and older.
14058
14059 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14060
14061 * sysdeps/aarch64/strncmp.S (count): New macro.
14062 (strncmp): Store misaligned length in SRC1 in COUNT.
14063 (mutual_align): Adjust.
14064 (misaligned8): Load dword at a time when it is safe.
14065
14066 2018-03-12 Zack Weinberg <zackw@panix.com>
14067
14068 [BZ #1190]
14069 [BZ #19476]
14070 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14071 if the _IO_EOF_SEEN bit is already set; update commentary.
14072 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14073 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14074
14075 * support/support_openpty.c, support/tty.h: New files.
14076 * support/Makefile (libsupport-routines): Add support_openpty.
14077
14078 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14079 New test cases.
14080 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14081 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14082
14083 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14084
14085 * po/pt_BR.po: Update translations.
14086
14087 2018-03-12 David Michael <fedora.dm0@gmail.com>
14088
14089 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14090 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14091 get a port to the startup server.
14092
14093 2018-03-11 Zack Weinberg <zackw@panix.com>
14094
14095 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14096 before nldbl-compat.h.
14097
14098 2018-03-10 Zack Weinberg <zackw@panix.com>
14099
14100 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14101 math.h or math_private.h.
14102
14103 * sysdeps/alpha/fpu/s_isnan.c
14104 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14105 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14106 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14107 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14108 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14109 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14110 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14111 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14112 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14114 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14115 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14116 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14117 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14118 Include math_private.h.
14119
14120 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14121 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14122 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14123 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14124 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14125 * sysdeps/powerpc/power7/fpu/s_logb.c:
14126 Include math.h and math_private.h.
14127
14128 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14129 uses of $at in .set noat / .set at.
14130
14131 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14132
14133 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14134 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14135 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14136 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14137 Likewise.
14138
14139 2018-03-09 Florian Weimer <fweimer@redhat.com>
14140
14141 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14142 in comment.
14143
14144 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14145
14146 [BZ #22919]
14147 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14148 Add nop before __startcontext, add explaining comments.
14149
14150 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14151
14152 [BZ #22926]
14153 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14154 empty for __SPE__.
14155 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14156 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14157 Do not build hardware transactional code for __SPE__.
14158 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14159 (__lll_trylock_elision): Likewise.
14160 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14161 (__lll_unlock_elision): Likewise.
14162
14163 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14164 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14165 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14166 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14167 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14168 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14169 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14170 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14171 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14172 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14173 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14174 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14175 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14176 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14177 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14178 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14179 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14180 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14181 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14182 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14183 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14184 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14185 (__ASSUME_CLONE_BACKWARDS): Define.
14186 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14187 __clone2 if __NR_clone2 is defined.
14188 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14189 (__ASSUME_CLONE_BACKWARDS): Likewise.
14190 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14191 (__ASSUME_CLONE_BACKWARDS): Likewise.
14192 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14193 (__ASSUME_CLONE2): Likewise.
14194 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14195 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14196 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14197 variants and the define architecture can use.
14198 (__ASSUME_CLONE_DEFAULT): Define as default.
14199 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14200 (__ASSUME_CLONE_BACKWARDS): Likewise.
14201 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14202 (__ASSUME_CLONE_BACKWARDS): Likewise.
14203 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14204 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14205
14206 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14207
14208 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14209
14210 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14211 time.
14212
14213 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14214 (do_test_limit): Likewise.
14215
14216 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14217 for every implementation.
14218 (do_test): Likewise.
14219
14220 * benchtests/bench-strncmp.c: Convert output to json.
14221
14222 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14223
14224 * io/futimens.c: Add missing start-of-file descriptive comment.
14225 * io/utime.c: Likewise.
14226 * misc/futimesat.c: Likewise.
14227 * misc/utimes.c: Likewise.
14228 * sysdeps/mach/hurd/futimesat.c: Likewise.
14229 * sysdeps/mach/hurd/utimes.c: Likewise.
14230 * sysdeps/posix/utime.c: Likewise.
14231 * sysdeps/posix/utimes.c: Likewise.
14232 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14233 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14234 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14235 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14236
14237 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14238
14239 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14240 hurd_futimes.
14241 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14242 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14243 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14244 (__futimens): Move implementation to...
14245 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14246 utime_tvalue_from_tspec): ... new helper functions.
14247 (hurd_futimens): New function.
14248 * sysdeps/mach/hurd/futimesat.c: New file.
14249 * sysdeps/mach/hurd/utimensat.c: New file.
14250
14251 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14252
14253 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14254 UTIME_OMIT): New macros.
14255 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14256 before reverting to converting time spec to time value and calling
14257 __file_utimes.
14258 * sysdeps/mach/hurd/utime-helper.c: New file.
14259 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14260 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14261 reverting to utime_tvalue_from_tval and __file_utimes.
14262 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14263 (__lutimes): Just call hurd_futimens after lookup.
14264 * sysdeps/mach/hurd/utimes.c: Likewise.
14265
14266 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14267
14268 * bits/sigaction.h: Add include guard.
14269 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14270 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14271 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14272 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14273 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14274 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14275 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14276 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14277 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14278
14279 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14280
14281 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14282 -Wmaybe-uninitialized for -Os.
14283 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14284 this disabling.
14285
14286 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14287
14288 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14289 __INO_T_MATCHES_INO64_T is defined.
14290 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14291 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14292 of definition.
14293 * dirent/alphasort64.c: Likewise.
14294 * dirent/scandir.c: Likewise.
14295 * dirent/scandir64-tail.c: Likewise.
14296 * dirent/scandir64.c: Likewise.
14297 * dirent/scandirat.c: Likewise.
14298 * dirent/scandirat64.c: Likewise.
14299 * dirent/versionsort.c: Likewise.
14300 * dirent/versionsort64.c: Likewise.
14301 * include/dirent.h: Likewise.
14302
14303 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14304 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14305 for socketpair endpoint.
14306 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14307 WRITE_BUFFER_SIZE as buffer size for sending socket.
14308 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14309 issue on system where send is implemented with sendto syscall.
14310 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14311 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14312 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14313 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14314
14315 [BZ #21269]
14316 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14317 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14318 sa_restorer for vDSO case.
14319 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14320
14321 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14322
14323 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14324 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14325 * hurd/hurd/ioctl.h: Include <mach/port.h>
14326 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14327 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14328 <mach/mach_types.h> and <mach/message.h>.
14329 (headers): Move mach/param.h to bits/mach/param.h.
14330 * sysdeps/mach/i386/mach/param.h: Move file to ...
14331 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14332 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14333 of <mach/param.h>.
14334 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14335 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14336 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14337 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14338 trivial, for C++ conformity.
14339 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14340 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14341 Process mig output through $(migheadersed).
14342 * hurd/Makefile (migheadersed): Define variable.
14343 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14344 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14345 headers.
14346 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14347 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14348 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14349 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14350 <bits/types/sigset_t.h>.
14351 [!defined __USE_GNU]: Do not #error out.
14352 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14353 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14354 Include <stddef.h> and <bits/types/sigset_t.h>
14355 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14356 instead of sighandler_t.
14357 * stdlib/errno.h (error_t): Move definition to...
14358 * bits/types/error_t.h: ... new header.
14359 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14360 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14361 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14362 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14363 * hurd/hurd.h: Include <bits/types/error_t.h>
14364 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14365 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14366 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14367 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14368 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14369 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14370 * sysdeps/mach/hurd/futimens.c: New file.
14371
14372 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14373
14374 [BZ #22918]
14375 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14376 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14377 * nscd/gai.c (__nss_hosts_database): Readd definition.
14378 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14379 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14380 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14381
14382 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14383
14384 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14385 (ifunc_one): Likewise.
14386
14387 2018-03-01 DJ Delorie <dj@delorie.com>
14388
14389 [BZ #22342]
14390 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14391 key value.
14392
14393 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14394
14395 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14396 `match_pid' parameter.
14397 (td_ta_thr_iter): Update accordingly.
14398
14399 2018-03-01 Florian Weimer <fweimer@redhat.com>
14400
14401 * nptl/Makefile (install-lib-ldscripts): Remove.
14402 (install): Remove rule.
14403 ($(inst_libdir)/libpthread.so): Likewise.
14404
14405 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14406
14407 [BZ #22896]
14408 * localedata/locales/an_ES: update month and day names,
14409 improve d_fmt, improve postal_fmt, add country_post,
14410 add country_isbn
14411
14412 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14413
14414 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14415 Ukrainian instead of Bulgarian.
14416
14417 2018-03-01 Florian Weimer <fweimer@redhat.com>
14418
14419 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14420 reference.
14421
14422 2018-03-01 Florian Weimer <fweimer@redhat.com>
14423
14424 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14425 * nptl/Makefile (routines): Add pthread_atfork.
14426 (static-only-routines): Set to pthread_atfork.
14427 (libpthread-routines): Remove pthread_atfork.
14428 (libpthread-static-only-routines): Remove.
14429 (install): Update comment.
14430 (libpthread.so): Do not install libpthread_nonshared.a.
14431 (tests): Do not link with libpthread_nonshared.a.
14432 (generated): Remove libpthread_nonshared.a.
14433 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14434 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14435 with libpthread_nonshared.a.
14436
14437 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14438
14439 [BZ #22902]
14440 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14441 (libc_feholdexcept_setroundf128): New macro.
14442 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14443
14444 [BZ #15105]
14445 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14446 libc_hidden_def.
14447 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14448 * include/inttypes.h: New file.
14449
14450 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14451
14452 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14453 -Os in two more places.
14454
14455 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14456
14457 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14458 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14459 be sorted correctly at the moment because of a bug.
14460
14461 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14462
14463 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14464 treat ñ as a primary different character, sync the collation
14465 for Spanish with CLDR.
14466 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14467 * localedata/Makefile: Add new test files.
14468 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14469 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14470 collation order.
14471 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14472 * localedata/am_ET.UTF-8.in: New test file.
14473 * localedata/az_AZ.UTF-8.in: Likewise.
14474 * localedata/be_BY.UTF-8.in: Likewise.
14475 * localedata/ber_DZ.UTF-8.in: Likewise.
14476 * localedata/ber_MA.UTF-8.in: Likewise.
14477 * localedata/bg_BG.UTF-8.in: Likewise.
14478 * localedata/br_FR.UTF-8.in: Likewise.
14479 * localedata/cmn_TW.UTF-8.in: Likewise.
14480 * localedata/crh_UA.UTF-8.in: Likewise.
14481 * localedata/csb_PL.UTF-8.in: Likewise.
14482 * localedata/cv_RU.UTF-8.in: Likewise.
14483 * localedata/cy_GB.UTF-8.in: Likewise.
14484 * localedata/dz_BT.UTF-8.in: Likewise.
14485 * localedata/eo.UTF-8.in: Likewise.
14486 * localedata/es_ES.UTF-8.in: Likewise.
14487 * localedata/fa_IR.UTF-8.in: Likewise.
14488 * localedata/fi_FI.UTF-8.in: Likewise.
14489 * localedata/fil_PH.UTF-8.in: Likewise.
14490 * localedata/fur_IT.UTF-8.in: Likewise.
14491 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14492 * localedata/ha_NG.UTF-8.in: Likewise.
14493 * localedata/ig_NG.UTF-8.in: Likewise.
14494 * localedata/ik_CA.UTF-8.in: Likewise.
14495 * localedata/kk_KZ.UTF-8.in: Likewise.
14496 * localedata/ku_TR.UTF-8.in: Likewise.
14497 * localedata/ky_KG.UTF-8.in: Likewise.
14498 * localedata/ln_CD.UTF-8.in: Likewise.
14499 * localedata/mi_NZ.UTF-8.in: Likewise.
14500 * localedata/ml_IN.UTF-8.in: Likewise.
14501 * localedata/mn_MN.UTF-8.in: Likewise.
14502 * localedata/mr_IN.UTF-8.in: Likewise.
14503 * localedata/mt_MT.UTF-8.in: Likewise.
14504 * localedata/nb_NO.UTF-8.in: Likewise.
14505 * localedata/om_KE.UTF-8.in: Likewise.
14506 * localedata/os_RU.UTF-8.in: Likewise.
14507 * localedata/ps_AF.UTF-8.in: Likewise.
14508 * localedata/ro_RO.UTF-8.in: Likewise.
14509 * localedata/ru_RU.UTF-8.in: Likewise.
14510 * localedata/sc_IT.UTF-8.in: Likewise.
14511 * localedata/se_NO.UTF-8.in: Likewise.
14512 * localedata/sq_AL.UTF-8.in: Likewise.
14513 * localedata/sv_SE.UTF-8.in: Likewise.
14514 * localedata/szl_PL.UTF-8.in: Likewise.
14515 * localedata/tg_TJ.UTF-8.in: Likewise.
14516 * localedata/tk_TM.UTF-8.in: Likewise.
14517 * localedata/tt_RU.UTF-8.in: Likewise.
14518 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14519 * localedata/ug_CN.UTF-8.in: Likewise.
14520 * localedata/uz_UZ.UTF-8.in: Likewise.
14521 * localedata/vi_VN.UTF-8.in: Likewise.
14522 * localedata/yi_US.UTF-8.in: Likewise.
14523 * localedata/yo_NG.UTF-8.in: Likewise.
14524 * localedata/zh_CN.UTF-8.in: Likewise.
14525 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14526 file and fix bugs in the collation.
14527 * localedata/locales/az_AZ: Likewise.
14528 * localedata/locales/be_BY: Likewise.
14529 * localedata/locales/ber_DZ: Likewise.
14530 * localedata/locales/ber_MA: Likewise.
14531 * localedata/locales/bg_BG: Likewise.
14532 * localedata/locales/br_FR: Likewise.
14533 * localedata/locales/br_FR@euro: Likewise.
14534 * localedata/locales/ca_ES: Likewise.
14535 * localedata/locales/cns11643_stroke: Likewise.
14536 * localedata/locales/crh_UA: Likewise.
14537 * localedata/locales/cs_CZ: Likewise.
14538 * localedata/locales/csb_PL: Likewise.
14539 * localedata/locales/cv_RU: Likewise.
14540 * localedata/locales/cy_GB: Likewise.
14541 * localedata/locales/da_DK: Likewise.
14542 * localedata/locales/dz_BT: Likewise.
14543 * localedata/locales/en_CA: Likewise.
14544 * localedata/locales/eo: Likewise.
14545 * localedata/locales/es_CU: Likewise.
14546 * localedata/locales/es_EC: Likewise.
14547 * localedata/locales/es_ES: Likewise.
14548 * localedata/locales/es_US: Likewise.
14549 * localedata/locales/et_EE: Likewise.
14550 * localedata/locales/fa_IR: Likewise.
14551 * localedata/locales/fi_FI: Likewise.
14552 * localedata/locales/fil_PH: Likewise.
14553 * localedata/locales/fur_IT: Likewise.
14554 * localedata/locales/gez_ER@abegede: Likewise.
14555 * localedata/locales/ha_NG: Likewise.
14556 * localedata/locales/hr_HR: Likewise.
14557 * localedata/locales/hsb_DE: Likewise.
14558 * localedata/locales/hu_HU: Likewise.
14559 * localedata/locales/ig_NG: Likewise.
14560 * localedata/locales/ik_CA: Likewise.
14561 * localedata/locales/is_IS: Likewise.
14562 * localedata/locales/iso14651_t1_pinyin: Likewise.
14563 * localedata/locales/kk_KZ: Likewise.
14564 * localedata/locales/ku_TR: Likewise.
14565 * localedata/locales/ky_KG: Likewise.
14566 * localedata/locales/ln_CD: Likewise.
14567 * localedata/locales/lt_LT: Likewise.
14568 * localedata/locales/lv_LV: Likewise.
14569 * localedata/locales/mi_NZ: Likewise.
14570 * localedata/locales/ml_IN: Likewise.
14571 * localedata/locales/mn_MN: Likewise.
14572 * localedata/locales/mr_IN: Likewise.
14573 * localedata/locales/mt_MT: Likewise.
14574 * localedata/locales/nb_NO: Likewise.
14575 * localedata/locales/om_KE: Likewise.
14576 * localedata/locales/os_RU: Likewise.
14577 * localedata/locales/pl_PL: Likewise.
14578 * localedata/locales/ps_AF: Likewise.
14579 * localedata/locales/ro_RO: Likewise.
14580 * localedata/locales/ru_RU: Likewise.
14581 * localedata/locales/ru_UA: Likewise.
14582 * localedata/locales/sc_IT: Likewise.
14583 * localedata/locales/se_NO: Likewise.
14584 * localedata/locales/si_LK: Likewise.
14585 * localedata/locales/sq_AL: Likewise.
14586 * localedata/locales/sv_FI: Likewise.
14587 * localedata/locales/sv_FI@euro: Likewise.
14588 * localedata/locales/sv_SE: Likewise.
14589 * localedata/locales/szl_PL: Likewise.
14590 * localedata/locales/tg_TJ: Likewise.
14591 * localedata/locales/ti_ER: Likewise.
14592 * localedata/locales/tk_TM: Likewise.
14593 * localedata/locales/tl_PH: Likewise.
14594 * localedata/locales/tr_TR: Likewise.
14595 * localedata/locales/tt_RU: Likewise.
14596 * localedata/locales/tt_RU@iqtelif: Likewise.
14597 * localedata/locales/ug_CN: Likewise.
14598 * localedata/locales/uk_UA: Likewise.
14599 * localedata/locales/uz_UZ: Likewise.
14600 * localedata/locales/uz_UZ@cyrillic: Likewise.
14601 * localedata/locales/vi_VN: Likewise.
14602 * localedata/locales/yi_US: Likewise.
14603 * localedata/locales/yo_NG: Likewise.
14604
14605 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14606
14607 * gen-locales.mk: Make test files which contain @ modifiers in their
14608 name work.
14609 * localedata/gen-locale.sh: Likewise.
14610
14611 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14612
14613 * posix/tst-fnmatch.input: Fix results for range expressions
14614 for non C locales.
14615 * posix/tst-regexloc.c: Do not use a range expression for
14616 de_DE.ISO-8859-1 locale.
14617
14618 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14619
14620 * posix/bug-regex5.c: Fix test case because with the new
14621 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14622 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14623 file.
14624
14625 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14626
14627 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14628 downloaded from ISO, the collation order of @-. and space has changed.
14629 Therefore, this test file needed to be adapted.
14630 * localedata/fr_CA.UTF-8.in: Likewise.
14631 * localedata/fr_FR.UTF-8.in: Likewise.
14632 * localedata/uk_UA.UTF-8.in: Likewise.
14633
14634 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14635
14636 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14637 order of ȥ in the new iso14651_t1_common file.
14638 * localedata/pl_PL.UTF-8.in: Likewise.
14639
14640 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14641
14642 * localedata/locales/iso14651_t1_common: Add sections for various
14643 scripts to the iso14651_t1_common file.
14644
14645 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14646
14647 * localedata/locales/iso14651_t1_common: Use the code point of a
14648 character in the fourth collation level instead of IGNORE for all
14649 entries which have IGNORE on all 4 levels.
14650
14651 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14652
14653 * localedata/locales/iso14651_t1_common: Add some convenient collation
14654 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14655 rules similar to those in CLDR.
14656
14657 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14658
14659 * localedata/locales/iso14651_t1_common: The new version of this
14660 file downloaded from ISO contained several syntax errors which
14661 are fixed by this patch.
14662
14663 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14664
14665 * localedata/locales/iso14651_t1_common: replace all <U.....>
14666 with <U000.....> because glibc understands only 4 digit or 8 digit
14667
14668 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14669
14670 * localedata/locales/iso14651_t1_common: Necessary changes
14671 to make the file downloaded from ISO usable by glibc.
14672
14673 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14674
14675 [BZ #14095]
14676 * localedata/locales/iso14651_t1_common: Update file to
14677 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14678
14679 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14680
14681 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14682 of <nptl/pthreadP.h>
14683 (thread_attr_compare): Move function to...
14684 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14685 * sysdeps/nptl/timer_routines.h: ... new header.
14686 * sysdeps/mach/hurd/gai_misc.h: New file.
14687
14688 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14689
14690 * string/strcoll_l.c: Include <libc-diag.h>.
14691 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14692 declarations of seq1 and seq2.
14693
14694 [BZ #15105]
14695 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14696 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14697
14698 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14699
14700 [BZ #22433]
14701 [BZ #22807]
14702 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14703 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14704 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14705 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14706 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14707 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14708
14709 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14710
14711 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14712 macros used in __ptrace_request.
14713
14714 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14715
14716 [BZ #22792]
14717 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14718 to $(CC).
14719 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14720 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14721 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14722 <tcb-offsets.h>.
14723
14724 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14725
14726 [BZ #15105]
14727 * ctype/ctype.c (tolower): Use libc_hidden_def.
14728 (toupper): Likewise.
14729 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14730 [!_ISOMAC] (toupper): Likewise.
14731
14732 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14733
14734 * localedata/Makefile: Remove --quiet argument when
14735 installing locales
14736
14737 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14738
14739 [BZ #17438]
14740 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14741 in d_fmt.
14742 * localedata/locales/pt_PT (LC_TIME): likewise
14743
14744 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14745
14746 [BZ #22646]
14747 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14748 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14749 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14750
14751 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14752
14753 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14754
14755 * nptl/Makefile (routines): Remove unregister-atfork.
14756 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14757 (fork_handler_alloc): Remove function.
14758 (fork_handlers, fork_handler_init): New variables.
14759 (__fork_lock): Rename to atfork_lock.
14760 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14761 to use a dynamic array to add/remove atfork handlers.
14762 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14763 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14764 Remove declaration.
14765 (fork_handler): Remove next, refcntr, and need_signal member.
14766 (__run_fork_handler_type): New enum.
14767 (__run_fork_handlers): New prototype.
14768 * nptl/register-atfork.c: Remove file.
14769 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14770
14771 * sysdeps/nptl/nptl-signals.h: Move to ...
14772 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14773 comments.
14774 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14775 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14776 unnecessary check for SIGTIMER.
14777 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14778 remove unnecessary removal of SIGTIMER.
14779 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14780 include-signals.h rename.
14781 * nptl/pthreadP.h: Likewise.
14782 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14783 __is_internal_signal instead of __nptl_is_internal_signal.
14784
14785 2018-02-22 Andrew Waterman <andrew@sifive.com>
14786
14787 [BZ # 22884]
14788 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14789 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14790 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14791 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14792
14793 2018-02-22 DJ Delorie <dj@delorie.com>
14794
14795 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14796
14797 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14798
14799 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14800 do_misaligned, not misaligned8.
14801
14802 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14803
14804 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14805 Add memcpy_thunderx2.
14806 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14807 Increment to 4.
14808 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14809 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14810 and IS_THUNDERX2PA checks.
14811 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14812 Use macro to set name appropriately.
14813 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14814 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14815 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14816 New macro.
14817 (IS_THUNDERX2): New macro.
14818
14819 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14820
14821 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14822
14823 2018-02-21 Zack Weinberg <zackw@panix.com>
14824
14825 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14826 Define here, unconditionally.
14827 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14828 * libio/libioP.h: Remove #if 0 blocks.
14829 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14830 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14831 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14832
14833 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14834 Assume weak_alias is always defined.
14835
14836 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14837 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14838 Remove #if 0 and #ifdef TODO blocks.
14839 Assume text_set_element is always defined.
14840
14841 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14842 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14843 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14844
14845 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14846 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14847 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14848 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14849 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14850 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14851 Reformat bit flags for _flags field to make occupancy clearer.
14852 Update commentary.
14853 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14854 Keep definitions consistent with those in libio/libio.h.
14855
14856 * libio/libio.h (_IO_file_flags): Remove macro.
14857 All uses changed to _flags.
14858
14859 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14860 (__HAVE_COLUMN, _IO_BE): Don't define.
14861 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14862 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14863 * libio/libioP.h (EOF): Don't define.
14864 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14865 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14866 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14867 testing _IO_UNIFIED_JUMPTABLES.
14868
14869 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14870 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14871 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14872 (_IO_size_t): Delete; all uses changed to size_t.
14873 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14874 (_IO_off_t): Delete; all uses changed to off_t.
14875 (_IO_off64_t): Delete; all uses changed to off64_t.
14876 (_IO_pid_t): Delete; all uses changed to pid_t.
14877 (_IO_uid_t): Delete; all uses changed to uid_t.
14878 (_IO_wint_t): Delete; all uses changed to wint_t.
14879 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14880 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14881 (_IO_cookie_io_functions_t): Delete; all uses changed to
14882 cookie_io_functions_t.
14883 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14884 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14885 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14886 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14887
14888 * libio/iofopncook.c: Remove unnecessary forward declarations.
14889 * libio/iolibio.h: Correct outdated commentary.
14890 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14891 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14892 Remove unnecessary casts.
14893 * stdio-common/getline.c: Use _IO_getdelim directly.
14894 Don't redefine ssize_t.
14895 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14896 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14897 Remove outdated comments.
14898 * stdio-common/vfscanf.c: Don't redefine va_list.
14899
14900 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14901 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14902 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14903 which are always true, and __cplusplus, which is always false.
14904
14905 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14906
14907 [BZ #15105]
14908 [BZ #19463]
14909 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14910 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14911 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14912 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14913 libc_hidden_proto.
14914 [!_ISOMAC] (putc_unlocked): Likewise.
14915 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14916 define inline if [__USE_EXTERN_INLINES].
14917 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14918 putc_unlocked.
14919
14920 [BZ #15105]
14921 [BZ #19463]
14922 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14923 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14924 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14925 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14926 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14927 getc_unlocked.
14928 * time/tzfile.c (__tzfile_read): Likewise.
14929
14930 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14931
14932 [BZ #22517]
14933 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14934
14935 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14936
14937 * io/fcntl.h: Fix a typo in a comment.
14938
14939 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14940
14941 [BZ #22862]
14942 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14943 define _DEFAULT_SOURCE.
14944 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14945
14946 2018-02-21 Florian Weimer <fweimer@redhat.com>
14947
14948 [BZ #20890]
14949 * elf/cache.c (save_cache): Call fsync on temporary file before
14950 renaming it.
14951 (save_aux_cache): Call fdatasync on temporary file before renaming
14952 it.
14953
14954 2018-02-21 Florian Weimer <fweimer@redhat.com>
14955
14956 [BZ #22787]
14957 * include/caller.h: Remove file.
14958 * elf/dl-caller.c: Likewise.
14959 * elf/Makefile (dl-routines): Remove dl-caller.
14960 (shared-only-routines): Do not add dl-caller.
14961 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14962 __check_caller.
14963 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14964 member.
14965 (dl_open_worker): Do not call __check_caller.
14966 (_dl_open): Do not set caller_dl_open member.
14967 * elf/rtld.c (_rtld_global_ro): Do not initialize
14968 _dl_check_caller member.
14969 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14970 _dl_check_caller member.
14971 (_dl_check_caller): Remove declaration.
14972 * sysdeps/unix/sysv/linux/dl-execstack.c
14973 (_dl_make_stack_executable): Do not call __check_caller.
14974
14975 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14976
14977 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14978 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14979
14980 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14981
14982 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14983 description.
14984
14985 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14986
14987 [BZ #16335]
14988 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14989 of 199606L, 200112L, and 200809L.
14990 (_XOPEN_SOURCE): Document special values of 600 and 700.
14991 (_ISOC11_SOURCE): Document macro.
14992 (_ATFILE_SOURCE): Likewise.
14993 (_FORTIFY_SOURCE): Likewise.
14994
14995 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14996
14997 [BZ #15105]
14998 [BZ #19463]
14999 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15000 and define as weak alias of __ferror_unlocked. Use
15001 libc_hidden_weak.
15002 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15003 libc_hidden_proto.
15004 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15005 function if [__USE_EXTERN_INLINES].
15006 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15007 ferror_unlocked.
15008
15009 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15010
15011 [BZ #6889]
15012 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15013
15014 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15015
15016 [BZ #22818]
15017 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15018 the GLIBC_2.1 version.
15019
15020 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15021
15022 [BZ #21508]
15023 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15024 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15025 intl/tst-gettext-de.po from po/de.po by removing the
15026 POT-Creation-Date line.
15027 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15028 ../po/de.po.
15029 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15030 ../po/de.po.
15031
15032 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15033
15034 * mach/Makefile (headers): Add mach/param.h.
15035 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15036 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15037 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15038 (__ptsname_r): Move implementation to...
15039 (__ptsname_internal): ... new function. Add filling the STP
15040 structure.
15041
15042 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15043
15044 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15045 idouble to 1 ULP.
15046
15047 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15048
15049 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15050 syntax.
15051
15052 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15053
15054 * nptl/Makefile (tst-mutex8-ENV): Delete.
15055 * nptl/tst-mutex8.c (check_type):
15056 Add runtime check if mutex will be elided.
15057
15058 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15059
15060 [BZ #20980]
15061 [BZ #21234]
15062 * manual/install.texi (Configuring and compiling): Describe
15063 passing CC and CFLAGS on configure command line, not as
15064 environment variables. Use @code markup on those variables.
15065 Specify what options go in CC and what go in CFLAGS. Note the
15066 requirement to compile with optimization.
15067 * INSTALL: Regenerated.
15068
15069 [BZ #18124]
15070 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15071 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15072 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15073 __sigprocmask instead of sigprocmask.
15074 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15075 Likewise.
15076 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15077 __sigsetjmp and sigprocmask.
15078
15079 [BZ #15105]
15080 * include/argz.h (argz_next): Use libc_hidden_proto.
15081 (__argz_next): Likewise.
15082 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15083 (argz_next): Use libc_hidden_weak.
15084
15085 [BZ #15105]
15086 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15087 libc_hidden_proto.
15088 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15089 libc_hidden_def.
15090
15091 [BZ #15105]
15092 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15093 libc_hidden_proto.
15094 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15095
15096 [BZ #15105]
15097 [BZ #19463]
15098 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15099 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15100 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15101 (__feof_unlocked): New declaration, and inline function if
15102 [__USE_EXTERN_INLINES].
15103 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15104 instead of feof_unlocked.
15105 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15106 * nss/nsswitch.c (nss_parse_file): Likewise.
15107 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15108 Likewise.
15109 * time/getdate.c (__getdate_r): Likewise.
15110 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15111 Define as macro to call __feof_unlocked.
15112
15113 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15114
15115 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15116
15117 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15118
15119 * math/Makefile: Remove mpexp.c and mplog.c
15120 * sysdeps/i386/fpu/mpexp.c: Delete file.
15121 * sysdeps/i386/fpu/mplog.c: Likewise.
15122 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15123 * sysdeps/ia64/fpu/mplog.c: Likewise.
15124 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15125 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15126 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15127 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15128 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15129 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15130 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15131 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15132 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15133 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15134 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15135 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15136 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15137 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15138 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15139 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15140
15141 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15142
15143 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15144
15145 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15146
15147 * sysdeps/sh/libm-test-ulps: Update.
15148
15149 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15150
15151 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15152 idouble to 1 ULP.
15153
15154 2018-02-12 Zack Weinberg <zackw@panix.com>
15155
15156 [BZ #19239]
15157 * posix/sys/types.h: Don't include sys/sysmacros.h.
15158 * misc/sys/sysmacros.h: Remove the conditional deprecation
15159 warnings for the macros defined by this header.
15160
15161 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15162
15163 * manual/probes.texi: Remove slowexp probes.
15164 * math/Makefile: Remove slowexp.
15165 * sysdeps/generic/math_private.h (__slowexp): Remove.
15166 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15167 document error bounds.
15168 * sysdeps/i386/fpu/slowexp.c: Remove.
15169 * sysdeps/ia64/fpu/slowexp.c: Remove.
15170 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15171 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15172 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15173 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15174 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15175 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15176 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15177 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15178 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15179 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15180 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15181
15182 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15183
15184 [BZ #13932]
15185 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15186 * benchtests/pow-inputs: Update comment for slow path cases.
15187 * manual/probes.texi (slowpow_p10): Delete removed probe.
15188 (slowpow_p10): Likewise.
15189 * math/Makefile: Remove halfulp.c and slowpow.c.
15190 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15191 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15192 (__halfulp): Remove.
15193 (__slowpow): Remove.
15194 * sysdeps/i386/fpu/halfulp.c: Delete file.
15195 * sysdeps/i386/fpu/slowpow.c: Likewise.
15196 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15197 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15198 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15199 improve comments and add error analysis.
15200 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15201 (power1): Remove function:
15202 (log1): Remove error argument, add error analysis.
15203 (my_log2): Remove function.
15204 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15205 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15206 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15207 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15208 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15209 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15210 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15211 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15212 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15213 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15214 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15215 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15216 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15217 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15218
15219 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15220
15221 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15222 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15223
15224 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15225
15226 [BZ #22433]
15227 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15228 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15229 and PTRACE_SETHBPREGS.
15230
15231 2018-02-10 Zack Weinberg <zackw@panix.com>
15232
15233 [BZ #22830]
15234 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15235 correctly.
15236 * malloc/tst-malloc-stats-cancellation.c: New test case.
15237 * malloc/Makefile: Add new test case.
15238
15239 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15240
15241 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15242
15243 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15244
15245 * math/Makefile (libm-narrow-fns): Add add.
15246 (libm-test-funcs-narrow): Likewise.
15247 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15248 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15249 * math/gen-auto-libm-tests.c (test_functions): Add add.
15250 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15251 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15252 (NARROW_ADD_TRIVIAL): Likewise.
15253 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15254 macro.
15255 (__daddl): Likewise.
15256 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15257 dadd.
15258 (CFLAGS-nldbl-dadd.c): New variable.
15259 (CFLAGS-nldbl-fadd.c): Likewise.
15260 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15261 __nldbl_daddl.
15262 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15263 prototype.
15264 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15265 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15266 * math/auto-libm-test-in: Add tests of add.
15267 * math/auto-libm-test-out-narrow-add: New generated file.
15268 * math/libm-test-narrow-add.inc: New file.
15269 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15270 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15271 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15272 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15273 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15274 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15275 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15276 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15277 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15278 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15279 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15280 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15281 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15282 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15283 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15284 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15285 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15286 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15287 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15288 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15289 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15290 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15291 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15292 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15293 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15294 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15295 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15296 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15297 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15298 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15299 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15300 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15305 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15306 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15307 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15308 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15309 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15310 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15311 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15312 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15313 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15314 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15315
15316 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15317 (f128-pairs): New variable.
15318 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15319 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15320 to CFLAGS.
15321 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15322 Also make tests add $(f128-loader-link) to gnulib-tests.
15323
15324 2018-02-09 DJ Delorie <dj@redhat.com>
15325
15326 [BZ #22827]
15327 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15328 64-bit ELF type for 64-bit ELF objects.
15329
15330 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15331
15332 * math/libm-test-driver.c (snan_tests_arg): New variable.
15333 * math/libm-test-support.h (snan_tests_arg): New declaration.
15334 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15335
15336 * math/Makefile (test-type-pairs): New variable.
15337 (test-type-pairs-f64xf128-yes): Likewise.
15338 (tests): Add test-narrow-macros.
15339 (libm-test-funcs-narrow): New variable.
15340 (libm-test-c-narrow): Likewise.
15341 (generated): Add $(libm-test-c-narrow).
15342 (libm-tests-base-narrow): New variable.
15343 (libm-tests-narrow): Likewise.
15344 (libm-tests): Add $(libm-tests-narrow).
15345 (libm-tests-for-type): Handle $(libm-tests-narrow).
15346 (libm-test-c-narrow-obj): New variable.
15347 ($(libm-test-c-narrow-obj)): New rule.
15348 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15349 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15350 $(o-iterator) to set dependencies and CFLAGS.
15351 * math/gen-auto-libm-tests.c: Document use for narrowing
15352 functions.
15353 (output_for_one_input_case): Take argument NARROW.
15354 (generate_output): Likewise. Update call to
15355 output_for_one_input_case.
15356 (main): Take --narrow option. Update call to generate_output.
15357 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15358 (apply_lit): Update call to _apply_lit.
15359 (apply_arglit): New function.
15360 (parse_args): Handle "a" arguments.
15361 (parse_auto_input): Handle format names using ":".
15362 * math/README.libm-test: Document "a" parameter type.
15363 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15364 (ARG_TYPE_TRUE_MIN): Likewise.
15365 (ARG_TYPE_MAX): Likwise.
15366 (ARG_MIN_EXP): Likewise.
15367 (ARG_MAX_EXP): Likewise.
15368 (ARG_MANT_DIG): Likewise.
15369 (TEST_COND_arg_ibm128): Likewise.
15370 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15371 (TEST_COND_arg_fmt): New macro.
15372 (init_max_error): Update prototype.
15373 * math/libm-test-support.c (test_ibm128): New variable.
15374 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15375 instead of using [TEST_COND_ibm128] conditional.
15376 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15377 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15378 [TEST_NARROW] (TEST_MSG): New definition.
15379 (arg_plus_zero): New macro.
15380 (arg_minus_zero): Likewise.
15381 (arg_plus_infty): Likewise.
15382 (arg_minus_infty): Likewise.
15383 (arg_qnan_value_pl): Likewise.
15384 (arg_qnan_value): Likewise.
15385 (arg_snan_value_pl): Likewise.
15386 (arg_snan_value): Likewise.
15387 (arg_max_value): Likewise.
15388 (arg_min_value): Likewise.
15389 (arg_min_subnorm_value): Likewise.
15390 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15391 (RUN_TEST_LOOP_aa_f): New macro.
15392 (TEST_SUFF): New macro.
15393 (TEST_SUFF_STR): Likewise.
15394 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15395 (TEST_COND_any_ibm128): New macro.
15396 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15397 this_func. Update call to init_max_error.
15398 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15399 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15400 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15401 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15402 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15403 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15404 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15405 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15406 * math/test-math-vector.h (TEST_NARROW): Likewise.
15407 * math/test-arg-double.h: New file.
15408 * math/test-arg-float128.h: Likewise.
15409 * math/test-arg-float32x.h: Likewise.
15410 * math/test-arg-float64.h: Likewise.
15411 * math/test-arg-float64x.h: Likewise.
15412 * math/test-arg-ldouble.h: Likewise.
15413 * math/test-math-narrow.h: Likewise.
15414 * math/test-narrow-macros.c: Likewise.
15415 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15416 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15417 test-narrow-macros-ldbl-64.
15418 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15419
15420 * math/bits/mathcalls-narrow.h: New file.
15421 * include/bits/mathcalls-narrow.h: Likewise.
15422 * math/math-narrow.h: Likewise.
15423 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15424 (__MATHCALL_NARROW_ARGS_2): Likewise.
15425 (__MATHCALL_NARROW_ARGS_3): Likewise.
15426 (__MATHCALL_NARROW_NORMAL): Likewise.
15427 (__MATHCALL_NARROW_REDIR): Likewise.
15428 (__MATHCALL_NARROW): Likewise.
15429 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15430 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15431 defined.
15432 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15433 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15434 (libm-narrow-fns): New variable.
15435 (libm-narrow-types-basic): Likewise.
15436 (libm-narrow-types-ldouble-yes): Likewise.
15437 (libm-narrow-types-float128-yes): Likewise.
15438 (libm-narrow-types-float128-alias-yes): Likewise.
15439 (libm-narrow-types): Likewise.
15440 (libm-routines): Add narrowing functions.
15441 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15442 (libc_feholdexcept_setroundf128): New macro.
15443 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15444 * sysdeps/ieee754/float128/float128_private.h: Include
15445 <math/math-narrow.h>.
15446 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15447 Undefine and redefine.
15448 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15449 (libm_alias_float_ldouble): Undefine and redefine.
15450 (libm_alias_double_ldouble): Likewise.
15451
15452 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15453
15454 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15455
15456 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15457 FPCR/FPSR.
15458
15459 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15460
15461 * manual/creature.texi: Convert references to gcc.info to gcc.
15462 * manual/stdio.texi: Likewise.
15463 * manual/string.texi: Likewise.
15464
15465 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15466
15467 [BZ #17979]
15468 * posix/bits/types.h (__int_least8_t): New typedef.
15469 (__uint_least8_t): Likewise.
15470 (__int_least16_t): Likewise.
15471 (__uint_least16_t): Likewise.
15472 (__int_least32_t): Likewise.
15473 (__uint_least32_t): Likewise.
15474 (__int_least64_t): Likewise.
15475 (__uint_least64_t): Likewise.
15476 * sysdeps/generic/stdint.h (int_least8_t): Define using
15477 __int_least8_t.
15478 (int_least16_t): Define using __int_least16_t.
15479 (int_least32_t): Define using __int_least32_t.
15480 (int_least64_t): Define using __int_least64_t.
15481 (uint_least8_t): Define using __uint_least8_t.
15482 (uint_least16_t): Define using __uint_least16_t.
15483 (uint_least32_t): Define using __uint_least32_t.
15484 (uint_least64_t): Define using __uint_least64_t.
15485 * wcsmbs/uchar.h: Include <bits/types.h>.
15486 (char16_t): Define using __uint_least16_t conditional only on
15487 [!__USE_ISOCXX11].
15488 (char32_t): Define using __uint_least32_t conditional only on
15489 [!__USE_ISOCXX11].
15490 * wcsmbs/test-char-types.c: New file.
15491 * wcsmbs/Makefile (tests): Add test-char-types.
15492
15493 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15494 version to 4.0.1.
15495
15496 2018-02-07 Zack Weinberg <zackw@panix.com>
15497
15498 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15499 Delete all contents except for definitions of _G_HAVE_MMAP and
15500 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15501 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15502 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15503 change as above.
15504
15505 * libio/libio.h: Don't include bits/_G_config.h here.
15506 Include stddef.h with __need_wchar_t defined. Include
15507 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15508 Define _IO_iconv_t here, directly.
15509 Don't define _IO_HAVE_ST_BLKSIZE.
15510 * libio/libioP.h: Include _G_config.h here. Move include of
15511 shlib-compat.h up with rest of includes. Simplify conditionals
15512 controlling definition of _IO_JUMPS_OFFSET.
15513
15514 * csu/init.c: Remove always-true #if around entire file.
15515 Don't include stdio.h. Set _IO_stdin_used to hardwired
15516 constant 0x20001, and update commentary.
15517 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15518 Replace all uses of _G_va_list with __gnuc_va_list.
15519 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15520 instead of #if _IO_HAVE_ST_BLKSIZE.
15521 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15522 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15523 not #ifdef.
15524
15525 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15526 multiple-include guard to match.
15527 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15528 into this file.
15529 Remove preprocessor conditionals that are always true and/or
15530 redundant to other preprocessor conditionals in the same nest.
15531 Include shlib-compat.h unconditionally.
15532 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15533 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15534 defined after including stdio.h.
15535 Use __BEGIN_DECLS/__END_DECLS.
15536
15537 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15538 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15539 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15540
15541 2018-02-07 Zack Weinberg <zackw@panix.com>
15542
15543 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15544 New single-type headers split from _G_config.h.
15545 * libio/bits/types/cookie_io_functions_t.h
15546 * libio/bits/types/struct_FILE.h
15547 New single-type headers split from libio.h.
15548
15549 * libio/Makefile: Install the above new headers. Don't install
15550 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15551 bits/libio-ldbl.h.
15552 * libio/_G_config.h, libio/libio.h: Delete file.
15553
15554 * libio/bits/libio.h: Remove improper-inclusion guard.
15555 Include stdio.h and don't repeat anything that it does.
15556 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15557 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15558 __io_read_fn as cookie_read_function_t,
15559 __io_write_fn as cookie_write_function_t,
15560 __io_seek_fn as cookie_seek_function_t,
15561 __io_close_fn as cookie_close_function_t,
15562 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15563 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15564 here, in the "compatibility defines" section. Remove an #if 0
15565 block. Use the "body" macros from bits/types/struct_FILE.h to
15566 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15567 and _IO_ferror_unlocked.
15568 Move prototypes of __uflow and __overflow...
15569
15570 * libio/stdio.h: ...here. Don't include bits/libio.h.
15571 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15572 directly from stdarg.h. Include bits/types/__fpos_t.h,
15573 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15574 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15575 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15576 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15577 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15578 __ssize_t, not _IO_ssize_t. Unconditionally define
15579 BUFSIZ as 8192 and EOF as (-1).
15580
15581 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15582 macros from bits/types/struct_FILE.h instead of _IO_* macros
15583 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15584 instead of _IO_ssize_t.
15585 * libio/bits/stdio2.h: Similarly.
15586
15587 * libio/iolibio.h: Add multiple-include guard.
15588 Include bits/libio.h after stdio.h.
15589 * libio/libioP.h: Add multiple-include guard.
15590 Include stdio.h and bits/libio.h before iolibio.h.
15591
15592 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15593 * include/bits/types/cookie_io_functions_t.h
15594 * include/bits/types/struct_FILE.h: New wrappers.
15595
15596 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15597 Get definitions of _G_fpos_t and _G_fpos64_t from
15598 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15599 respectively. Remove improper-inclusion guards.
15600
15601 * conform/data/stdio.h-data: Update expectations of va_list.
15602 * scripts/check-installed-headers.sh: Remove special case for
15603 libio.h and _G_config.h.
15604
15605 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15606
15607 [BZ #15105]
15608 [BZ #19463]
15609 * include/sys/sysmacros.h [!_ISOMAC]
15610 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15611 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15612 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15613 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15614 libc_hidden_proto.
15615 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15616 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15617 Likewise.
15618 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15619 Undefine and redefine to add use __gnu_dev_ prefix.
15620 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15621 Likewise.
15622 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15623 and define as hidden inline function.
15624 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15625 Likewise.
15626 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15627 Likewise.
15628 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15629 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15630 (gnu_dev_minor): Likewise.
15631 (gnu_dev_makedev): Likewise.
15632 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15633 makedev.
15634 * posix/wordexp.c (exec_comm_child): Likewise.
15635 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15636 instead of minor and __gnu_dev_major instead of major.
15637 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15638 __gnu_dev_major instead of major.
15639 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15640 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15641 instead of gnu_dev_minor.
15642 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15643 (SLAVE_P): Likewise.
15644 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15645 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15646 instead of major.
15647
15648 [BZ #21313]
15649 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15650 in another place.
15651 * locale/weightwc.h (findidx): Likewise.
15652
15653 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15654
15655 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15656 (slowlog_inexact): Likewise
15657 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15658 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15659
15660 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15661
15662 [BZ #22797]
15663 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15664 missing second underscore to parameter name.
15665
15666 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15667
15668 [BZ #14508]
15669 [BZ #15512]
15670 [BZ #17082]
15671 [BZ #20530]
15672 * bits/byteswap.h: Update file comment. Do not include
15673 <bits/byteswap-16.h>.
15674 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15675 constant.
15676 (__bswap_16): Define as inline function.
15677 (__bswap_constant_32): Reformat definition.
15678 (__bswap_32): Always define as inline function, not macro, using
15679 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15680 otherwise __bswap_constant_32.
15681 (__bswap_constant_64): Reformat definition. Do not use
15682 __extension__ here.
15683 (__bswap_64): Always define as inline function, not macro. Use
15684 __extension__ on function definition. Use __builtin_bswap64 if
15685 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15686 * string/test-endian-file-scope.c: New file.
15687 * string/test-endian-sign-conversion.c: Likewise.
15688 * string/Makefile (headers): Remove bits/byteswap-16.h.
15689 (tests): Add test-endian-file-scope and
15690 test-endian-sign-conversion.
15691 (CFLAGS-test-endian-sign-conversion.c): New variable.
15692 * bits/byteswap-16.h: Remove file.
15693 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15694 * sysdeps/ia64/bits/byteswap.h: Likewise.
15695 * sysdeps/m68k/bits/byteswap.h: Likewise.
15696 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15697 * sysdeps/s390/bits/byteswap.h: Likewise.
15698 * sysdeps/tile/bits/byteswap.h: Likewise.
15699 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15700 * sysdeps/x86/bits/byteswap.h: Likewise.
15701
15702 [BZ #17721]
15703 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15704 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15705 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15706 199901L] (__restrict): Define to restrict.
15707
15708 [BZ #19667]
15709 * string/testcopy.c: Include <support/support.h>. Do not include
15710 <malloc.h>. Use <support/test-driver.c>.
15711 (main): Rename to do_test. Make static. Use xmalloc instead of
15712 malloc.
15713
15714 [BZ #13575]
15715 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15716 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15717 (SSIZE_MAX): Define to INT_MAX.
15718 * posix/test-ssize-max.c: New file.
15719 * posix/Makefile (tests): Add test-ssize-max.
15720
15721 [BZ #19668]
15722 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15723 <support/support.h>. Do not include <malloc.h>.
15724 (query_auxv): Use xmalloc instead of malloc.
15725
15726 [BZ #14553]
15727 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15728 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15729 instead of loff_t.
15730
15731 2018-02-06 Florian Weimer <fweimer@redhat.com>
15732
15733 [BZ #18023]
15734 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15735 Use scratch_buffer instead of extend_alloca.
15736
15737 2018-02-06 Zack Weinberg <zackw@panix.com>
15738
15739 * libio/stdio.h: Don't define getc or putc as macros.
15740 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15741 not _IO_getc and _IO_putc.
15742
15743 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15744 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15745
15746 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15747
15748 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15749 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15750
15751 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15752
15753 [BZ #14890]
15754 * elf/elf.h (NT_PRFPREG): New macro.
15755 (NT_S390_VXRS_LOW): Likewise.
15756 (NT_S390_VXRS_HIGH): Likewise.
15757 (NT_S390_GS_CB): Likewise.
15758 (NT_S390_GS_BC): Likewise.
15759 (NT_S390_RI_CB): Likewise.
15760
15761 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15762 (MAP_SYNC): New macro.
15763 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15764 Likewise.
15765 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15766 (MAP_SYNC): Likewise.
15767 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15768 (MAP_SYNC): Likewise.
15769 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15770 (MAP_SYNC): Likewise.
15771 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15772 (MAP_SYNC): Likewise.
15773 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15774 (MAP_SYNC): Likewise.
15775 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15776 (MAP_SYNC): Likewise.
15777 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15778 Likewise.
15779 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15780 Likewise.
15781
15782 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15783 (MAP_SHARED_VALIDATE): New macro.
15784 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15785 (MAP_SHARED_VALIDATE): Likewise.
15786
15787 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15788
15789 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15790 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15791 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15792
15793 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15796 (DT_NUM): Updated to 35.
15797
15798 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15799
15800 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15801 __builtin_expect with __glibc_likely and __glibc_unlikely.
15802 (elf_machine_rela): Likewise.
15803 (elf_machine_lazy_rel): Likewise.
15804
15805 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15806
15807 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15808 __builtin_expect with __glibc_likely and __glibc_unlikely.
15809 (elf_machine_lazy_rel): Likewise.
15810
15811 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15812
15813 [BZ #22638]
15814 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15815 SHARED.
15816 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15817
15818 2018-02-05 Andreas Schwab <schwab@suse.de>
15819
15820 [BZ #22761]
15821 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15822 string.
15823
15824 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15825
15826 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15827 not check against PTHREAD_STACK_MIN.
15828
15829 2018-02-02 Sean McKean <smckean83@gmail.com>
15830
15831 [BZ #22735]
15832 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15833
15834 2018-02-02 Florian Weimer <fweimer@redhat.com>
15835
15836 [BZ #22753]
15837 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15838 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15839 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15840 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15841 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15842 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15843 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15844 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15845 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15846 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15847 * misc/tst-preadvwritev2.c (do_test): Call it.
15848 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15849
15850 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15851
15852 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15853
15854 * benchtests/bench-memcmp.c: Print json instead of plain text.
15855
15856 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15857 every test run.
15858
15859 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15860
15861 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15862 version to 4.15.
15863 (s390_sthyi): New syscall.
15864
15865 * sysdeps/generic/ldbl-classify-compat.h: New file.
15866 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15867 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15868 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15869 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15870 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15871 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15872 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15873 <ldbl-classify-compat.h>.
15874 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15875 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15876 <ldbl-classify-compat.h>.
15877 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15878 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15879 <ldbl-classify-compat.h>.
15880 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15881 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15882 <ldbl-classify-compat.h>.
15883 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15884 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15885 <ldbl-classify-compat.h>.
15886 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15887 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15888 <ldbl-classify-compat.h>.
15889 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15890 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15891 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15892 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15893 * sysdeps/microblaze/math_private.h: Likewise.
15894 * sysdeps/nios2/math_private.h: Likewise.
15895 * sysdeps/sh/math_private.h: Likewise.
15896
15897 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15898 * sysdeps/m68k/coldfire/math_private.h: ... here.
15899 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15900 * sysdeps/tile/math_private.h: Likewise.
15901 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15902 Remove macro.
15903 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15904 Likewise.
15905
15906 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15907 Remove macro.
15908 (libc_fetestexcept): Likewise.
15909 (libc_feupdateenv_test): Likewise.
15910 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15911 (libc_fetestexcept): Likewise.
15912 (libc_feupdateenv_test): Likewise.
15913 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15914 (libc_fetestexcept): Likewise.
15915 (libc_feupdateenv_test): Likewise.
15916 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15917 (libc_fetestexcept): Likewise.
15918 (libc_feupdateenv_test): Likewise.
15919
15920 * sysdeps/generic/math_private.h
15921 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15922 New inline function.
15923 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15924 Likewise.
15925
15926 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15927 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15928 * sysdeps/generic/math_private.h
15929 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15930 inline function.
15931 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15932 Likewise.
15933 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15934 Likewise.
15935 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15936 Likewise.
15937 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15938 Likewise.
15939 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15940 Likewise.
15941 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15942 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15943 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15944 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15945 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15946 (__fegetenv): Likewise.
15947 (fesetenv): Likewise.
15948 (__fesetenv): Likewise.
15949 (feupdateenv): Likewise.
15950 (__feupdateenv): Likewise.
15951 (fegetround): Likewise.
15952 (__fegetround): Likewise.
15953 (fesetround): Likewise.
15954 (__fesetround): Likewise.
15955
15956 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15957 (feraiseexcept): New macro.
15958 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15959 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15960 Remove macro.
15961 (__feraiseexcept): Likewise.
15962 (feclearexcept): Likewise.
15963 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15964 (__feraiseexcept): Likewise.
15965 (feclearexcept): Likewise.
15966 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15967 (__feraiseexcept): Likewise.
15968 (feclearexcept): Likewise.
15969 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15970 (__feraiseexcept): Likewise.
15971 (feclearexcept): Likewise.
15972 (fetestexcept): Likewise.
15973
15974 * sysdeps/m68k/coldfire/math-tests.h: New file.
15975
15976 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15977 * sysdeps/m68k/bits/fenv.h: ... here.
15978 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15979 not define.
15980 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15981 Likewise.
15982 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15983 Likewise.
15984 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15985 Likewise.
15986 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15987 Likewise.
15988 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15989 Define to 0.
15990 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15991 (__FE_UNDEFINED): New enum constant.
15992 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15993 Do not define.
15994 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15995 Likewise.
15996 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15997 Likewise.
15998 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15999 to match generic bits/fenv.h.
16000 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16001 Do not define.
16002
16003 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16004 packed on bits.
16005 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16006 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16007 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16008 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16009
16010 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16011 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16012 Joseph Myers <joseph@codesourcery.com>
16013
16014 [BZ #21314]
16015 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16016 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16017 computation using c.
16018 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16019 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16020 computation using c.
16021
16022 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16023
16024 * version.h (RELEASE): Set to "development".
16025 (VERSION): Set to "2.27.9000".
16026 * NEWS (2.28): New section.
16027
16028 * version.h (RELEASE): Set to "stable".
16029 (VERSION): Set to "2.27".
16030 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16031
16032 * NEWS: Add the list of bugs fixed in 2.27.
16033
16034 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16035
16036 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16037 against PTHREAD_STACK_MIN.
16038
16039 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16040
16041 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16042 New entries.
16043 (Rafal Luzynski, Andreas Schwab): Update.
16044
16045 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16046
16047 [BZ #10871]
16048 * NEWS: List the languages which actually use the alternative
16049 months feature in this release. Also explain that "alt_mon" and
16050 "ab_alt_mon" are optional.
16051
16052 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16053
16054 [BZ #22765]
16055 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16056
16057 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16058
16059 * manual/install.texi (Tools for Compilation): Update the newest
16060 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16061 * INSTALL: Regenerated.
16062
16063 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16064
16065 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16066 instead of __builtin_expect.
16067
16068 2018-01-30 Florian Weimer <fweimer@redhat.com>
16069
16070 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16071 data.
16072 * nss/tst-nss-getpwent.c (do_test): Likewise.
16073
16074 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16075
16076 [BZ #10871]
16077 * localedata/locales/hr_HR (mon): Rename to...
16078 (alt_mon): This.
16079 (mon): Import from CLDR (genitive case).
16080 (d_t_fmt): Update the comment.
16081
16082 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16083
16084 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16085 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16086 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16087
16088 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16089
16090 * mach/Versions: Fix version when __mach_host_self_ was added.
16091 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16092 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16093 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16094 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16095 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16096 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16097 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16098 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16099 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16100 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16101 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16102 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16103 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16104 || to respect codestyle.
16105 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16106 (do_test_bz20181): Rename accordingly.
16107 * malloc/malloc.c: Include <assert.h>.
16108 (assert): Do not define.
16109 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16110 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16111 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16112 * sysdeps/mach/hurd/hp-timing.h: New file.
16113 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16114
16115 2018-01-29 Darius Rad <darius@bluespec.com>
16116
16117 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16118
16119 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16120
16121 * sysdeps/init_array/crti.S (.section .init_array): Add
16122 PREINIT_FUNCTION when defined.
16123 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16124 * config.h.in: Regenerate.
16125 * manual/platform.texi: Add RISC-V documenation for
16126 __riscv_flush_icache.
16127 * sysdeps/riscv/__longjmp.S: New file.
16128 * sysdeps/riscv/backtrace.c: Likewise.
16129 * sysdeps/riscv/bits/endian.h: Likewise.
16130 * sysdeps/riscv/bits/setjmp.h: Likewise.
16131 * sysdeps/riscv/bits/wordsize.h: Likewise.
16132 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16133 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16134 * sysdeps/riscv/dl-trampoline.S: Likewise.
16135 * sysdeps/riscv/gccframe.h: Likewise.
16136 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16137 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16138 * sysdeps/riscv/machine-gmon.h: Likewise.
16139 * sysdeps/riscv/memusage.h: Likewise.
16140 * sysdeps/riscv/setjmp.S: Likewise.
16141 * sysdeps/riscv/sys/asm.h: Likewise.
16142 * sysdeps/riscv/tls-macros.h: Likewise.
16143 * sysdeps/riscv/dl-tls.h: New file.
16144 * sysdeps/riscv/libc-tls.c: Likewise.
16145 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16146 * sysdeps/riscv/nptl/tls.h: Likewise.
16147 * sysdeps/riscv/stackinfo.h: Likewise.
16148 * sysdeps/riscv/bits/fenv.h: New file.
16149 * sysdeps/riscv/e_sqrtl.c: Likewise.
16150 * sysdeps/riscv/fpu_control.h: Likewise.
16151 * sysdeps/riscv/math-tests.h: Likewise.
16152 * sysdeps/riscv/nofpu/Implies: Likewise.
16153 * sysdeps/riscv/sfp-machine.h: Likewise.
16154 * sysdeps/riscv/tininess.h: Likewise.
16155 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16156 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16157 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16158 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16159 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16160 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16161 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16162 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16163 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16164 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16165 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16166 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16167 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16168 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16169 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16170 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16171 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16172 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16173 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16174 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16175 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16176 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16177 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16178 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16179 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16180 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16181 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16182 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16183 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16184 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16185 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16186 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16187 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16188 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16189 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16190 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16191 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16192 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16193 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16194 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16195 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16196 * sysdeps/riscv/rvf/math_private.h: Likewise.
16197 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16198 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16199 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16200 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16201 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16202 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16203 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16204 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16205 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16206 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16207 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16208 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16209 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16210 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16211 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16212 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16213 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16214 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16215 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16216 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16217 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16218 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16219 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16220 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16221 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16222 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16223 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16224 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16225 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16226 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16227 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16228 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16229 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16230 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16231 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16232 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16233 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16234 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16236 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16237 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16240 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16242 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16244 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16245 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16246 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16247 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16249 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16251 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16252 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16253 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16254 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16258 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16259 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16260 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16261 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16262 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16263 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16264 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16265 * sysdeps/riscv/Implies: New file.
16266 * sysdeps/riscv/Makefile: Likewise.
16267 * sysdeps/riscv/configure: Likewise.
16268 * sysdeps/riscv/configure.ac: Likewise.
16269 * sysdeps/riscv/nptl/Makefile: Likewise.
16270 * sysdeps/riscv/preconfigure: Likewise.
16271 * sysdeps/riscv/rv64/Implies-after: Likewise.
16272 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16273 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16275 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16276 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16277 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16278 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16279 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16280 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16281 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16282 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16283 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16284 (Config): Likewise.
16285
16286 2018-01-29 Florian Weimer <fweimer@redhat.com>
16287
16288 [BZ #22701]
16289 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16290 libnsl_hidden_proto.
16291 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16292 libnsl_hidden_proto.
16293 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16294 * nis/Makefile (libnsl-routines): Add nss-default only for
16295 build-obsolete-nsl.
16296 * nis/nis_defaults.c (__nis_default_ttl): Add
16297 libnsl_hidden_nolink_def.
16298 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16299 declaration.
16300 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16301 * nis/ypclnt.c (yp_maplist): Likewise.
16302
16303 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16304
16305 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16306 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16307
16308 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16309
16310 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16311 clean -dxfq for git updates when replacing sources.
16312
16313 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16314 --disable-libcilkrts unconditionally, not just for the final GCC
16315 build for Hurd.
16316
16317 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16318 version to 4.15.
16319
16320 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16321
16322 [BZ #10871]
16323 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16324 case).
16325
16326 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16327
16328 [BZ #10871]
16329 * localedata/locales/be_BY (mon): Rename to...
16330 (alt_mon): This, then synchronize with CLDR (nominative case).
16331 (abmon): Rename to...
16332 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16333 (mon): Import from CLDR (genitive case).
16334 (abmon): Likewise.
16335 * localedata/locales/be_BY@latin (mon): Rename to...
16336 (alt_mon): This.
16337 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16338
16339 * localedata/locales/be_BY@latin (lang_name): Reworded to
16340 "biełaruskaja mova".
16341
16342 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16343
16344 [BZ #10871]
16345 * localedata/locales/el_CY (mon): Renamed to...
16346 (alt_mon): This.
16347 (mon): Import from CLDR (genitive case).
16348 * localedata/locales/el_GR: Likewise.
16349
16350 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16351
16352 [BZ #10871]
16353 * localedata/locales/ru_RU (mon): Rename to...
16354 (alt_mon): This.
16355 (abmon): Rename to...
16356 (ab_alt_mon): This.
16357 (mon): Import from CLDR (genitive case).
16358 (abmon): Copy from the old content except the 5th month which is
16359 now in the genitive case, even when abbreviated.
16360 * localedata/locales/ru_UA: Likewise.
16361 * time/tst-strptime.c (day_tests): Add an actual example of
16362 a difference between %b and %Ob in Russian.
16363
16364 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16365
16366 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16367 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16368 a `c' variable.
16369 * resolv/res-close.c: Include <stdlib.h>.
16370 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16371 <sys/wait.h>, <time.h>, <sys/uio.h>.
16372 (NOT_CANCEL_H): Add inclusion guard.
16373 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16374 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16375 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16376 return 0.
16377 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16378 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16379 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16380 instead of void *.
16381 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16382 timer_ptr2id to cast struct timer_node * to void *.
16383 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16384 --disable-libcilkrts to gcc configure.
16385 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16386 and make them the default for now.
16387 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16388 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16389 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16390 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16391 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16392 MACH_IPC_COMPAT.
16393 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16394 __task_terminate would ever return successfully.
16395 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16396 to global scope.
16397 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16398 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16399 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16400 critical section to make code simpler and avoid warning.
16401 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16402 critical section to make code simpler and avoid warning.
16403 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16404 const char * instead of char *.
16405 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16406 __hurd_file_name_split, hurd_file_name_split,
16407 __hurd_directory_name_split, hurd_directory_name_split,
16408 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16409 hurd_file_name_path_lookup): Make lookup function parameter take a
16410 const char *name instead of char *name.
16411 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16412 __hurd_directory_name_split): Likewise.
16413 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16414 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16415 * sysdeps/mach/hurd/check_native.c: New file.
16416 * sysdeps/mach/hurd/check_pf.c: New file.
16417 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16418 (__freeifaddrs): Define macro to freeifaddrs.
16419 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16420 * sysdeps/mach/libmachuser.abilist: New file.
16421 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16422 (do_test_bz20181): Rename accordingly.
16423 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16424 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16425 <sys/mount.h>.
16426 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16427 version only if __USE_EXTERN_INLINES is defined.
16428 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16429 __hurd_sockfail): Likewise.
16430 (_hurd_fd_get): Always declare functions, and provide inline versions
16431 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16432 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16433 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16434 _hurd_port_set): Always declare functions, and provide inline versions
16435 only if __USE_EXTERN_INLINES and _LIBC are defined and
16436 IS_IN(libc).
16437 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16438 _hurd_critical_section_unlock): Likewise.
16439 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16440 * __hurd_threadvar_location): Likewise.
16441 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16442 _hurd_userlink_clear): Likewise.
16443 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16444 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16445 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16446 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16447 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16448 __spin_lock_locked): Likewise.
16449 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16450 __spin_lock_locked): Likewise.
16451 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16452 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16453 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16454 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16455 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16456 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16457 _POSIX_NO_TRUNC): Define to 0.
16458 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16459 check size against PTHREAD_STACK_MIN.
16460 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16461 IS_IN(libpthread)]: Include <sigsetops.h>.
16462 * mach/Makefile (user-interfaces): Add mach/gnumach.
16463 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16464 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16465 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16466 instead of invalid -1.
16467 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16468 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16469 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16470 <net/ppp_defs.h>.
16471
16472 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16473
16474 * hurd/fcntl-internal.h: New file.
16475
16476 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16477
16478 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16479
16480 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16481
16482 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16483
16484 [BZ #22701]
16485 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16486 Build only shared objects.
16487
16488 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16489
16490 * README: Update for hppa.
16491
16492 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16493
16494 * sysdeps/sparc/fpu/libm-test-ulps: Update
16495 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16496
16497 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16498
16499 Revert:
16500
16501 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16502
16503 [BZ #22563]
16504 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16505 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16506 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16507 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16508 to feature_1.
16509
16510 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16511
16512 [BZ #22563]
16513 * bits/types/__cancel_jmp_buf_tag.h: New file.
16514 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16515 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16516 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16517 * nptl/Makefile (headers): Add
16518 bits/types/__cancel_jmp_buf_tag.h.
16519 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16520 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16521 * sysdeps/nptl/pthread.h: Include
16522 <bits/types/__cancel_jmp_buf_tag.h>.
16523 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16524 __cancel_jmp_buf.
16525 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16526
16527 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16528
16529 [BZ #10871]
16530 * localedata/locales/uk_UA (mon): Renamed to...
16531 (alt_mon): This.
16532 (alt_digits): "0" removed and then renamed to...
16533 (mon): This.
16534 (date_fmt): Definition changed not to use the alternative
16535 digits hack.
16536
16537 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16538
16539 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16540 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16541 * elf/elf.h (EF_RISCV_RVC): New define.
16542 (EF_RISCV_FLOAT_ABI): Likewise.
16543 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16544 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16545 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16546 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16547 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16548 define.
16549 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16550
16551 2018-01-25 Andreas Schwab <schwab@suse.de>
16552
16553 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16554 single quotes.
16555 * sysdeps/gnu/configure: Regenerate.
16556 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16557 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16559 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16560 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16561 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16562 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16563 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16564
16565 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16566
16567 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16568 URL, and run autoconf, make it the default for now.
16569
16570 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16571
16572 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16573 soft-float ColdFire configuration.
16574
16575 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16576 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16577 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16578
16579 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16580 MicroBlaze file.
16581
16582 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16583 ....
16584 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16585 ... here.
16586 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16587 New file.
16588
16589 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16590 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16591 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16592 file.
16593
16594 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16595
16596 [BZ #22742]
16597 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16598 Rename to __reserved and add comment.
16599 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16600 Rename to __reserved.
16601
16602 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16603
16604 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16605 i686-gnu configurations.
16606 (Context.run_builds): Include mig, gnumach and hurd in components
16607 considered.
16608 (Context.checkout): Add mig, gnumach and hurd to components.
16609 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16610 hurd.
16611 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16612 (Config.build): Install gnumach headers, build mig and install
16613 hurd headers for 'gnu' OS.
16614 (Config.install_gnumach_headers): New function.
16615 (Config.install_hurd_headers): Likewise.
16616 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16617 when building for 'gnu' OS.
16618
16619 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16620
16621 * manual/tunables.texi (Hardware Capability Tunables): Fix
16622 spelling.
16623
16624 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16625
16626 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16627 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16628 (ALTMON_11, ALTMON_12): Improve documentation.
16629 * manual/time.texi (strftime): Likewise.
16630
16631 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16632
16633 [BZ #10871]
16634 * localedata/locales/pl_PL: Alternative month names added,
16635 primary month names are genitive now.
16636 * time/tst-strptime.c (day_tests): Actually use a genitive case
16637 of a month name in Polish language.
16638
16639 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16640
16641 [BZ #10871]
16642 * manual/locale.texi: Document ALTMON_1..12 constants for
16643 nl_langinfo. Specify when to use ALTMON instead of MON.
16644 * manual/time.texi (strftime, strptime): Document GNU extension
16645 permitting O modifier with %B and %b. Specify when to use
16646 %OB instead of %B.
16647
16648 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16649
16650 [BZ #10871]
16651 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16652 names, define them as the same as abbreviated month names explicitly.
16653 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16654 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16655 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16656 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16657 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16658 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16659 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16660 _NL_WABALTMON_12): New enum constants.
16661 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16662 wab_alt_mon, and ab_alt_mon_defined members.
16663 (time_output): Output ab_alt_mon and wab_alt_mon members.
16664 (time_read): Read them, initialize them as copies of abmon and wabmon
16665 respectively if they are missing, initialize ab_alt_mon_defined.
16666 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16667 * locale/programs/locfile-kw.h: Regenerate.
16668 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16669 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16670 and ru_RU.UTF-8.
16671 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16672 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16673 (__strftime_internal): Handle %Ob and %Oh formats.
16674 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16675 (__strptime_internal): Handle %Ob and %Oh formats.
16676 * time/tst-strptime.c (day_tests): Add more tests to parse different
16677 forms of month names including the new %Ob format specifier.
16678
16679 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16680
16681 [BZ #10871]
16682 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16683 define them as the same as primary full month names explicitly.
16684 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16685 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16686 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16687 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16688 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16689 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16690 _NL_WALTMON_12): New enum constants.
16691 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16692 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16693 macros.
16694 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16695 walt_mon, and alt_mon_defined members.
16696 (time_output): Output alt_mon and walt_mon members.
16697 (time_read): Read them, initialize them as copies of mon and wmon
16698 respectively if they are missing, initialize alt_mon_defined.
16699 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16700 * locale/programs/locfile-kw.h: Regenerate.
16701 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16702 * localedata/tst-langinfo.c (map): Add tests for the new constants
16703 ALTMON_1 .. ALTMON_12.
16704 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16705 and pl_PL.UTF-8.
16706 * time/strftime_l.c (f_altmonth): New macro.
16707 (__strftime_internal): Handle %OB format.
16708 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16709 (__strptime_internal): Handle %OB format.
16710 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16711 of month names including the new %OB format specifier.
16712
16713 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16714
16715 [BZ #22685]
16716 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16717 from ABORT_TRANSACTION.
16718 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16719 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16720 ABORT_TRANSACTION_IMPL): Likewise.
16721 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16722 Linux code, but remove the code that aborts transactions.
16723
16724 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16725
16726 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16727
16728 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16729
16730 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16731 in date: "2004-14-09" should be "2004-09-14".
16732 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16733 "2003-15-09" should be "2003-09-15".
16734
16735 2018-01-18 Arjun Shankar <arjun@redhat.com>
16736
16737 [BZ #22343]
16738 [BZ #22774]
16739 CVE-2018-6485
16740 CVE-2018-6551
16741 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16742 after padding.
16743 (_int_memalign): check for integer overflow before calling
16744 _int_malloc.
16745 * malloc/tst-malloc-too-large.c: New test.
16746 * malloc/Makefile: Add tst-malloc-too-large.
16747
16748 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16749
16750 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16751 in date: "2017-24-07" should be "2017-07-24".
16752 * localedata/locales/mai_IN: Likewise.
16753 * localedata/locales/mai_NP: Likewise.
16754
16755 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16756
16757 * po/ru.po: Update translations.
16758
16759 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16760
16761 [BZ #22719]
16762 * sysdeps/hppa/backtrace.c: New file.
16763
16764 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16765
16766 [BZ #22715]
16767 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16768 align La_x86_64_retval to VEC_SIZE.
16769
16770 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16771
16772 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16773 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16774
16775 2018-01-16 Florian Weimer <fweimer@redhat.com>
16776
16777 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16778 Move tst-thread-exit-clobber ...
16779 [$(CXX)] (tests-unsupported): ... to here.
16780
16781 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16782
16783 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16784 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16785 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16786 (_dl_aarch64_cap_flags): Update.
16787 (_DL_HWCAP_COUNT): Update.
16788
16789 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16790
16791 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16792 (_DL_HWCAP_LAST): Remove.
16793 (_DL_HWCAP_COUNT): Move to ...
16794 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16795 (_DL_HWCAP_COUNT): ... here.
16796
16797 2018-01-16 Florian Weimer <fweimer@redhat.com>
16798
16799 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16800 mode with GNU extensions.
16801
16802 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16803
16804 * elf/elf.h (NT_ARM_SVE): Define.
16805
16806 2018-01-15 Florian Weimer <fweimer@redhat.com>
16807
16808 [BZ #22636]
16809 * nptl/tst-minstack-throw.cc: New file.
16810 * nptl/Makefile (tests): Add tst-minstack-throw.
16811 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16812 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16813
16814 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16815
16816 * scripts/build-many-glibcs.py (Context.checkout): Default
16817 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16818 version to 1.1.0.
16819
16820 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16821
16822 [BZ #22707]
16823 * elf/elf.h (DF_1_STUB): Define.
16824 (DF_1_PIE): Define.
16825
16826 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16827
16828 [BZ #22697]
16829 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16830 Do not add 0.5 to integer or out-of-range arguments.
16831
16832 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16833
16834 * po/bg.po: Update translations.
16835 * po/cs.po: Likewise.
16836 * po/de.po: Likewise.
16837 * po/ko.po: Likewise.
16838 * po/pl.po: Likewise.
16839 * po/sv.po: Likewise.
16840 * po/uk.po: Likewise.
16841 * po/vi.po: Likewise.
16842
16843 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16844
16845 * aarch64/start.S (_start): Use __wrap_main.
16846 (__wrap_main): New local symbol.
16847
16848 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16849
16850 [BZ #22679]
16851 CVE-2018-1000001
16852 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16853 generic_getcwd if the path returned by getcwd syscall is not absolute.
16854 * io/tst-getcwd-abspath.c: New test.
16855 * io/Makefile (tests): Add tst-getcwd-abspath.
16856
16857 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16858
16859 * malloc/malloc.c (malloc_consolidate): Add size check.
16860
16861 2018-01-12 Florian Weimer <fweimer@redhat.com>
16862
16863 * support/write_message.c (write_message): Preserve errno.
16864 * support/check.c (print_failure): Likewise.
16865 * support/support_test_verify_impl.c (support_test_verify_impl):
16866 Likewise.
16867 * support/support_test_compare_failure.c
16868 (support_test_compare_failure): Likewise.
16869
16870 2018-01-12 Florian Weimer <fweimer@redhat.com>
16871
16872 [BZ #22701]
16873 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16874 Prevent installation of libnsl.so.
16875 (libnsl-inhibit-o): Do not build (or install) static libraries.
16876
16877 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16878
16879 [BZ #22657]
16880 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16881 before the day number which may produce a double space.
16882 (date_fmt): Likewise.
16883
16884 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16885
16886 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16887 instead of fegetenv.
16888
16889 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16890
16891 [BZ #22702]
16892 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16893 comment to say exceptions are discarded.
16894 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16895 __fegetenv.
16896 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16897 be enabled.
16898
16899 2018-01-11 Florian Weimer <fweimer@redhat.com>
16900
16901 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16902 and error message.
16903
16904 2018-01-11 Florian Weimer <fweimer@redhat.com>
16905
16906 [BZ #22636]
16907 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16908 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16909
16910 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16911
16912 [BZ #22693]
16913 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16914 negative arguments in test for NaN or infinity argument.
16915
16916 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16917
16918 * po/libc.pot: Regenerate.
16919
16920 2018-01-10 Florian Weimer <fweimer@redhat.com>
16921
16922 [BZ #22636]
16923 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16924 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16925
16926 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16927
16928 * hurd/hurd/fd.h: Include <fcntl.h>
16929 (__hurd_at_flags): New function.
16930 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16931 with call to __hurd_at_flags.
16932 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16933 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16934 __faccessat
16935 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16936 (__access_noerrno): Use __faccessat_common instead of access_common.
16937 (__access): Likewise.
16938 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16939 with a call to __faccessat.
16940 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16941 (__faccessat_common): ... this. Move implementation of __access into it when
16942 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16943 reauthenticate_cwdir_at helper to implement AT mechanism.
16944 (__faccessat_noerrno): New function, just calls __faccessat_common.
16945 (__faccessat): New function, just calls __faccessat_common.
16946 (faccessat): Define weak alias.
16947
16948 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16949
16950 [BZ #22691]
16951 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16952 (CFLAGS-s_fmaxmagl.c): New variable.
16953 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16954
16955 [BZ #22690]
16956 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16957 long int for arguments of possibly overflowing addition or
16958 subtraction.
16959 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16960
16961 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16962
16963 [BZ #22688]
16964 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16965 (CFLAGS-e_remainderl.c): New variable.
16966
16967 [BZ #22687]
16968 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16969 variable.
16970 (CFLAGS-s_cacoshl.c): Likewise.
16971 (CFLAGS-s_casinhl.c): Likewise.
16972 (CFLAGS-s_catanl.c): Likewise.
16973 (CFLAGS-s_catanhl.c): Likewise.
16974 (CFLAGS-s_cexpl.c): Likewise.
16975 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16976 (CFLAGS-s_csinhl.c): Likewise.
16977 (CFLAGS-s_clogl.c): Likewise.
16978 (CFLAGS-s_clog10l.c): Likewise.
16979 (CFLAGS-s_csinl.c): Likewise.
16980 (CFLAGS-s_csqrtl.c): Likewise.
16981
16982 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16983 2017-01-09 Svante Signell <svante.signell@gmail.com>
16984
16985 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16986 (_hurd_exec_paths): New function.
16987 * hurd/hurd.h (_hurd_exec): Deprecate function.
16988 (_hurd_exec_paths): Declare function.
16989 * hurd/Versions: Export _hurd_exec_paths.
16990 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16991 (__execve): Use __getcwd to build absolute path, and use
16992 _hurd_exec_paths instead of _hurd_exec.
16993 * sysdeps/mach/hurd/spawni.c: Likewise.
16994 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16995 _hurd_exec.
16996
16997 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16998
16999 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17000 test instead of failing in case of ENOENT returned by posix_openpt.
17001
17002 2018-01-08 Florian Weimer <fweimer@redhat.com>
17003
17004 resolv: Support binary labels in test framework.
17005 * support/resolv_test.c (struct to_be_freed): Remove.
17006 (struct compressed_name): New.
17007 (allocate_compressed_name, ascii_tolower)
17008 (compare_compressed_name): New functions.
17009 (struct resolv_response_builder): Update type of
17010 compression_offsets for use with tsearch. Rempve to_be_freed.
17011 (response_push_pointer_to_free): Remove function.
17012 (resolv_response_add_name): Rewrite using struct compressed_name
17013 and tsearch instead of hsearch_r.
17014 (response_builder_allocate): Remove initialization of
17015 compression_offsets.
17016 (response_builder_free): Update for removal of to_be_freed. Use
17017 tdestroy instead of hdestroy_r.
17018 * resolv/Makefile (tests): Add tst-resolv-binary.
17019 (tst-resolv-binary): Link with -lresolv -lpthread.
17020
17021 2018-01-08 Florian Weimer <fweimer@redhat.com>
17022
17023 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17024 time. Pass positive flag instead of negative flag to
17025 support_test_compare_failure.
17026 (support_test_compare_failure): Change negative parameter to
17027 positive.
17028 * support/support_test_compare_failure.c (report)
17029 (support_test_compare_failure): Likewise.
17030 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17031 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17032
17033 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17034
17035 [BZ #22637]
17036 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17037 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17038 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17039 stacksize.
17040 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17041
17042 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17043
17044 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17045 Add s_sincosf-sse2 and s_sincosf-fma.
17046 (CFLAGS-s_sincosf-fma.c): New.
17047 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17048 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17049 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17050 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17051 __sincosf is defined.
17052
17053 2018-01-08 Florian Weimer <fweimer@redhat.com>
17054
17055 * nptl/tst-thread-exit-clobber.cc: New file.
17056 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17057 C++11 mode.
17058 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17059 (tests): Add tst-thread-exit-clobber.
17060 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17061
17062 2018-01-08 Florian Weimer <fweimer@redhat.com>
17063
17064 * support/check.h (support_static_assert): Define.
17065 (TEST_COMPARE): Use it.
17066
17067 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17068
17069 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17070 [!__RLIM_T_MATCHES_RLIM64_T]
17071 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17072 __getrlimit64. Add libc_hidden_weak.
17073
17074 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17075
17076 * elf/elf.h (R_RISCV_NONE): New define.
17077 (R_RISCV_32): Likewise.
17078 (R_RISCV_64): Likewise.
17079 (R_RISCV_RELATIVE): Likewise.
17080 (R_RISCV_COPY): Likewise.
17081 (R_RISCV_JUMP_SLOT): Likewise.
17082 (R_RISCV_TLS_DTPMOD32): Likewise.
17083 (R_RISCV_TLS_DTPMOD64): Likewise.
17084 (R_RISCV_TLS_DTPREL32): Likewise.
17085 (R_RISCV_TLS_DTPREL64): Likewise.
17086 (R_RISCV_TLS_TPREL32): Likewise.
17087 (R_RISCV_TLS_TPREL64): Likewise.
17088 * Makerules (make-link-multidir): Make directories before linking into
17089 them.
17090 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17091 define.
17092 (VDSO_HASH_LINUX_4_15): Likewise.
17093 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17094 in subdirectories of lib.
17095 * nptl/Makefile (/librt.so): Always depend on
17096 "$(shared-thread-library)".
17097
17098 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17099
17100 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17101 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17102 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17103 (___tls_get_addr).
17104 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17105 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17106 "-O2 -march=i686".
17107 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17108 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17109 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17110 * sysdeps/gnu/glob-lstat-compat.c: New file.
17111 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17112 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17113
17114 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17115
17116 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17117 Reserve 16 chars to reloc_addr before calling _itoa_word.
17118
17119 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17120
17121 [BZ #22678]
17122 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17123 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17124
17125 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17126 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17127
17128 * resource/tst-getrlimit.c: Add copyright header.
17129
17130 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17131 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17132
17133 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17134 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17135 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17136 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17137 instead.
17138 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17139 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17140 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17141 RLIM64_INFINITY): Fix values to match the kernel ones.
17142 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17143 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17144 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17145 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17146 getrlimit64@@GLIBC_2_27.
17147 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17148 and setrlimit64.
17149 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17150 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17151 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17152 setrlimit, getrlimit64 and setrlimit64.
17153
17154 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17155
17156 [BZ #22648]
17157 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17158 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17159
17160 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17161
17162 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17163 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17164 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17165
17166 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17167
17168 [BZ #15479]
17169 [BZ #22666]
17170 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17171 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17172
17173 [BZ #15479]
17174 [BZ #22665]
17175 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17176 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17177 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17178 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17179
17180 2018-01-04 Florian Weimer <fweimer@redhat.com>
17181
17182 [BZ #22667]
17183 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17184 Align the stack before calling exit.
17185 * stdlib/tst-makecontext-align.c: New file.
17186 * stdlib/Makefile (tests): Add tst-makecontext-align.
17187
17188 2018-01-04 Florian Weimer <fweimer@redhat.com>
17189
17190 Add support for calling dlvsym from libc.so.
17191 * include/dlfcn.h (__libc_dlvsym): Declare.
17192 * elf/Makefile (tests-static-internal): Add
17193 tst-libc_dlvsym-static.
17194 (tests-internal): Add tst-libc_dlvsym.
17195 (modules-names): Add tst-libc_dlvsym-dso.
17196 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17197 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17198 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17199 object tst-libc_dlvsym-dso.so needs to be built before running
17200 these tests.
17201 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17202 * elf/Versions: Export __libc_dlvsym.
17203 * elf/dl-libc.c (struct do_dlvsym_args): New.
17204 (do_dlvsym, __libc_dlvsym): New functions.
17205 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17206 (_dl_open_hook2): New variable.
17207 (__libc_register_dl_open_hook): Set it.
17208 * elf/tst-libc_dlvsym-dso.c: New file.
17209 * elf/tst-libc_dlvsym-static.c: Likewise.
17210 * elf/tst-libc_dlvsym.c: Likewise.
17211 * elf/tst-libc_dlvsym.h: Likewise.
17212
17213 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17214
17215 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17216 include <sys/mount.h>.
17217
17218 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17219
17220 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17221 Add __NO_MATH_ERRNO__ check.
17222
17223 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17224
17225 * sysdeps/mips/mips32/libm-test-ulps: Update.
17226 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17227
17228 2018-01-02 Florian Weimer <fweimer@redhat.com>
17229
17230 * misc/tst-pselect.c: Add copyright header.
17231
17232 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17233
17234 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17235 comment.
17236 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17237 comment.
17238 (settrlimit): Rename into setrlimit.
17239 (__sttrlimit): Rename into __setrlimit.
17240
17241 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17242 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17243 never defined in that case.
17244
17245 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17246
17247 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17248
17249 * sysdeps/arm/libm-test-ulps: Update.
17250
17251 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17252 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17253
17254 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17255
17256 * NEWS: Add cosf and sincosf to list of optimized functions.
17257
17258 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17259
17260 [BZ #22660]
17261 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17262 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17263 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17264 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17265
17266 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17267
17268 [BZ #22433]
17269 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17270
17271 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17272 making a copy of it.
17273
17274 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17275
17276 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17277 trailing whitespace removed.
17278 * scripts/config.guess: Update to version 2018-01-01.
17279 * scripts/config.sub: Update to version 2018-01-01.
17280 * scripts/move-if-change: Update from gnulib.
17281
17282 * NEWS: Update copyright dates.
17283 * catgets/gencat.c (print_version): Likewise.
17284 * csu/version.c (banner): Likewise.
17285 * debug/catchsegv.sh: Likewise.
17286 * debug/pcprofiledump.c (print_version): Likewise.
17287 * debug/xtrace.sh (do_version): Likewise.
17288 * elf/ldconfig.c (print_version): Likewise.
17289 * elf/ldd.bash.in: Likewise.
17290 * elf/pldd.c (print_version): Likewise.
17291 * elf/sotruss.sh: Likewise.
17292 * elf/sprof.c (print_version): Likewise.
17293 * iconv/iconv_prog.c (print_version): Likewise.
17294 * iconv/iconvconfig.c (print_version): Likewise.
17295 * locale/programs/locale.c (print_version): Likewise.
17296 * locale/programs/localedef.c (print_version): Likewise.
17297 * login/programs/pt_chown.c (print_version): Likewise.
17298 * malloc/memusage.sh (do_version): Likewise.
17299 * malloc/memusagestat.c (print_version): Likewise.
17300 * malloc/mtrace.pl: Likewise.
17301 * manual/libc.texinfo: Likewise.
17302 * nptl/version.c (banner): Likewise.
17303 * nscd/nscd.c (print_version): Likewise.
17304 * nss/getent.c (print_version): Likewise.
17305 * nss/makedb.c (print_version): Likewise.
17306 * posix/getconf.c (main): Likewise.
17307 * scripts/test-installation.pl: Likewise.
17308 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17309
17310 * All files with FSF copyright notices: Update copyright dates
17311 using scripts/update-copyrights.
17312 * locale/programs/charmap-kw.h: Regenerated.
17313 * locale/programs/locfile-kw.h: Likewise.
17314
17315 2017-12-31 Zack Weinberg <zackw@panix.com>
17316
17317 * libio/bits/libio-ldbl.h: Correct check for improper
17318 inclusion. Add own multiple include guard.
17319
17320 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17321 Dmitry V. Levin <ldv@altlinux.org>
17322
17323 [BZ #22625]
17324 CVE-2017-16997
17325 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17326 string token expansion. Check for NULL pointer or empty string possibly
17327 returned by expand_dynamic_string_token.
17328 (decompose_rpath): Check for empty path after dynamic string
17329 token expansion.
17330
17331 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17332
17333 [BZ #22433]
17334 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17335
17336 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17337 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17338 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17339 and PTRACE_SYSCALL.
17340 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17341 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17342 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17343 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17344 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17345 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17346
17347 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17348 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17349 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17350 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17351 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17352 bits/ptrace-shared.h.
17353 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17354 <bits/ptrace-shared.h>.
17355 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17356 __ptrace_peeksiginfo_flags, ptrace): Remove.
17357 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17358 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17359 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17360 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17361 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17362
17363 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17364
17365 [BZ #17804]
17366 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17367 end of the loop. Improve comments.
17368
17369 2017-12-29 Zack Weinberg <zackw@panix.com>
17370
17371 [BZ #22615]
17372 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17373 might be set on success.
17374
17375 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17376
17377 [BZ #22611]
17378 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17379 is unchanged on success.
17380
17381 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17382
17383 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17384 updated.
17385 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17386 expand_dynamic_string_token): Likewise.
17387 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17388 is_path argument.
17389
17390 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17391 contains ':'.
17392
17393 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17394 is set and name contains ':', and all code depending on these checks.
17395
17396 2017-12-24 Zack Weinberg <zackw@panix.com>
17397
17398 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17399 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17400 respectively.
17401 * libio/libio.h: Rename the original version of this file to
17402 libio/bits/libio.h. Error out if not included by stdio.h or the
17403 stub libio.h.
17404 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17405 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17406 if not included by bits/libio.h or the stub _G_config.h.
17407 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17408 sysdeps/unix/sysv/linux/bits. Error out if not included by
17409 bits/libio.h or the stub _G_config.h.
17410 * libio/stdio.h: Include bits/libio.h, not libio.h.
17411 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17412 well as libio.h and _G_config.h.
17413
17414 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17415 * libio/strfile.h, stdio-common/vfscanf.c
17416 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17417 Include stdio.h, not _G_config.h nor libio.h.
17418 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17419 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17420
17421 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17422
17423 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17424
17425 [BZ #22347]
17426 * stdlib/getrandom.c (getrandom): Fix comment.
17427 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17428
17429 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17430
17431 [BZ #21161]
17432 * manual/arith.texi (strtoul): Fix a typo.
17433
17434 [BZ #22596]
17435 * manual/arith.texi (finite): Fix the description of the return
17436 value.
17437
17438 2017-12-22 Eric Blake <ebb9@byu.net>
17439
17440 Avoid gcc warnings on cygwin
17441 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17442 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17443 Avoid unused variable.
17444
17445 2017-12-22 Florian Weimer <fweimer@redhat.com>
17446
17447 * io/Makefile (routines): Add copy_file_range.
17448 (tests): Add tst-copy_file_range.
17449 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17450 * io/Versions (GLIBC_2.27): Export copy_file_range.
17451 * io/copy_file_range-compat.c: New file.
17452 * io/copy_file_range.c: Likewise.
17453 * io/tst-copy_file_range-compat.c: Likewise.
17454 * io/tst-copy_file_range.c: Likewise.
17455 * manual/llio.texi (Copying File Data): New section.
17456 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17457 * support/Makefile (libsupport-routines): Add support-xfstat,
17458 xftruncate, xlseek.
17459 * support/support-xfstat.c: New file.
17460 * support/xftruncate.c: Likewise.
17461 * support/xlseek.c: Likewise.
17462 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17463 * sysdeps/unix/sysv/linux/**.abilist: Update.
17464 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17465
17466 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17467
17468 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17469 disable-multi-arch variant to aarch64-linux-gnu.
17470
17471 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17472
17473 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17474 trailing whitespace removed.
17475 * scripts/config.guess: Update to version 2017-12-17.
17476 * scripts/config.sub: Update to version 2017-11-23.
17477 * scripts/install-sh: Update to version 2017-09-23.17.
17478 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17479
17480 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17481
17482 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17483 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17484 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17485 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17486 * sysdeps/tile/crtn.S: Likewise.
17487 * sysdeps/tile/dl-start.S (_start): Likewise.
17488 * sysdeps/tile/dl-trampoline.S: Likewise.
17489 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17490 * sysdeps/tile/start.S (_start): Likewise.
17491 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17492 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17493 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17494 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17495 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17496 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17497 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17498
17499 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17500 comment.
17501 * sysdeps/tile/preconfigure: Remove tilegx folder.
17502 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17503 * sysdeps/tile/Implies: ... here.
17504 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17505 * sysdeps/tile/Makefile: ... here.
17506 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17507 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17508 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17509 * sysdeps/tile/bits/wordsize.h: ... here.
17510 * sysdeps/tile/tilegx/*: Move to ...
17511 * sysdeps/tile/*: ... here.
17512 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17513 * sysdeps/tile/tilegx32/Implies: ... here.
17514 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17515 * sysdeps/tile/tilegx64/Implies: ... here.
17516 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17517 to ...
17518 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17519 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17520 * sysdeps/unix/sysv/linux/tile/*: ... here.
17521 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17522 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17523 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17524 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17525
17526 * README: Remove tilepro-*-linux-gnu from supported architecture.
17527 * scripts/build-many-glibcs.py: Likewise.
17528 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17529 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17530 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17531 elf_machine_matches_host, elf_machine_dynamic,
17532 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17533 howto, elf_machine_rela): Likewise.
17534 * sysdeps/tile/dl-start.S (_start): Likewise.
17535 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17536 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17537 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17538 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17539 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17540 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17541 Likewise.
17542 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17543 * sysdeps/tile/preconfigure: Likewise.
17544 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17545 POINTER_CHK_GUARD): Likewise.
17546 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17547 * sysdeps/tile/start.S (_start): Likewise.
17548 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17549 Likewise.
17550 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17551 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17552 CMOVNEZ): Remove.
17553 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17554 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17555 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17556 Likewise.
17557 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17558 * sysdeps/tile/tilepro/Implies: Remove file.
17559 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17560 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17561 * sysdeps/tile/tilepro/memchr.c: Likewise.
17562 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17563 * sysdeps/tile/tilepro/memset.c: Likewise.
17564 * sysdeps/tile/tilepro/memusage.h: Likewise.
17565 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17566 * sysdeps/tile/tilepro/strchr.c: Likewise.
17567 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17568 * sysdeps/tile/tilepro/strlen.c: Likewise.
17569 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17570 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17571 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17572 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17573 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17574 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17575 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17576 Likewise.
17577 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17578 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17579 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17580 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17581 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17582 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17583 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17584 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17585 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17586 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17587 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17588 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17589 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17590 tilepro mention in comment.
17591
17592 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17593 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17594 * nptl/pthread_join_common.c: New file: common function used on
17595 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17596 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17597 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17598 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17599 (cleanup): Move definition to pthread_join_common.c.
17600 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17601 Remove superflous checks.
17602 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17603 Likewise.
17604
17605 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17606
17607 * sysdeps/aarch64/libm-test-ulps: Update.
17608
17609 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17610
17611 * sysdeps/aarch64/memset.S (MEMSET): Define.
17612
17613 2017-12-20 Florian Weimer <fweimer@redhat.com>
17614
17615 [BZ #22635]
17616 nptl: Provide full implementation of pthread_self in libc.so.
17617 * nptl/Makefile (routines): Add pthread_self.
17618 (libpthread-routines): Replace pthread_self with
17619 compat-pthread_self.
17620 * nptl/forward.c (pthread_self): Remove.
17621 * nptl/nptl-init.c (pthread_functions): Do not initialize
17622 ptr_pthread_self.
17623 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17624 * nptl/compat-pthread_self.c: New file.
17625 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17626 Remove ptr_pthread_self.
17627
17628 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17629
17630 * posix/regcomp.c: Fix spelling in comments.
17631 * posix/regex.h: Likewise.
17632 * posix/regex_internal.c: Likewise.
17633 * posix/regexec.c: Likewise.
17634
17635 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17636
17637 [BZ #22377]
17638 * math/Makefile [C++] (tests): Add test for iseqsig.
17639 * math/math.h [C++] (iseqsig): New implementation, which does
17640 not rely on __MATH_TG/__builtin_types_compatible_p.
17641 * math/test-math-iseqsig.cc: New file.
17642 * sysdeps/powerpc/powerpc64le/Makefile
17643 (CFLAGS-test-math-iseqsig.cc): New variable.
17644
17645 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17646
17647 * elf/dl-load.c (is_trusted_path): Remove.
17648 (fillin_rpath): Remove check_trusted argument and its use,
17649 all callers changed.
17650
17651 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17652
17653 [BZ #22630]
17654 * Makeconfig (link-pie-before-libc): Replace -pie with
17655 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17656 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17657 (tst-dlopen-aout-no-pie): New.
17658 (LDFLAGS-tst-prelink): Removed.
17659 (tst-prelink-no-pie): New.
17660 (LDFLAGS-tst-main1): Removed.
17661 (tst-main1-no-pie): New.
17662 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17663 (tst-gmon-no-pie): New.
17664
17665 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17666
17667 * manual/install.texi: Document that --enable-static-pie
17668 implies PIE.
17669 * INSTALL: Regenerated.
17670
17671 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17672
17673 [BZ #21309]
17674 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17675 unsigned.
17676
17677 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17678
17679 Revert:
17680
17681 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17682
17683 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17684
17685 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17686
17687 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17688 <errno.h>. Include "eexp.tbl".
17689 (half): New constant.
17690 (one): Likewise.
17691 (__ieee754_exp): Rewrite.
17692 (__slowexp): Remove prototype.
17693 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17694 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17695 * sysdeps/i386/fpu/slowexp.c: Likewise.
17696 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17697 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17698 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17699 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17700 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17701 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17702 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17703 comment.
17704 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17705 (CPPFLAGS-slowexp.c): Remove variable.
17706 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17707 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17708 (CFLAGS-slowexp-fma.c): Remove variable.
17709 (CFLAGS-slowexp-fma4.c): Likewise.
17710 (CFLAGS-slowexp-avx.c): Likewise.
17711 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17712 define as macro.
17713 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17714 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17715 * math/Makefile (type-double-routines): Remove slowexp.
17716 * manual/probes.texi (slowexp_p6): Remove.
17717 (slowexp_p32): Likewise.
17718
17719 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17720
17721 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17722 arithmetic.
17723
17724 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17725
17726 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17727
17728 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17729
17730 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17731
17732 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17733 <errno.h>. Include "eexp.tbl".
17734 (half): New constant.
17735 (one): Likewise.
17736 (__ieee754_exp): Rewrite.
17737 (__slowexp): Remove prototype.
17738 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17739 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17740 * sysdeps/i386/fpu/slowexp.c: Likewise.
17741 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17742 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17743 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17744 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17745 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17746 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17747 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17748 comment.
17749 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17750 (CPPFLAGS-slowexp.c): Remove variable.
17751 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17752 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17753 (CFLAGS-slowexp-fma.c): Remove variable.
17754 (CFLAGS-slowexp-fma4.c): Likewise.
17755 (CFLAGS-slowexp-avx.c): Likewise.
17756 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17757 define as macro.
17758 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17759 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17760 * math/Makefile (type-double-routines): Remove slowexp.
17761 * manual/probes.texi (slowexp_p6): Remove.
17762 (slowexp_p32): Likewise.
17763
17764 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17765 James Clarke <jrtc27@jrtc27.com>
17766
17767 [BZ #22603]
17768 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17769 addition.
17770
17771 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17772
17773 [BZ #22605]
17774 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17775 code.
17776
17777 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17778
17779 [BZ #22563]
17780 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17781 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17782 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17783 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17784 to feature_1.
17785
17786 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17787
17788 [BZ #22563]
17789 * bits/types/__cancel_jmp_buf_tag.h: New file.
17790 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17791 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17792 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17793 * nptl/Makefile (headers): Add
17794 bits/types/__cancel_jmp_buf_tag.h.
17795 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17796 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17797 * sysdeps/nptl/pthread.h: Include
17798 <bits/types/__cancel_jmp_buf_tag.h>.
17799 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17800 __cancel_jmp_buf.
17801 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17802
17803 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17804
17805 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17806 --enable-static-pie variants to x86_64, x32 and i686.
17807
17808 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17809
17810 [BZ #22631]
17811 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17812 argument for attrubutes. All callers changed.
17813 (__inline_mathop1): Likewise. All callers changed.
17814 (__inline_mathop): Likewise. All callers changed.
17815 [__USE_MISC] (scalbn): Use __inline_forward instead of
17816 __inline_forward_c.
17817 [__USE_ISOC99] (scalbln): Likewise.
17818 [__USE_ISOC99] (nearbyint): Likewise.
17819 [__USE_ISOC99] (lrint): Likewise.
17820 [__USE_MISC] (scalbnf): Likewise.
17821 [__USE_ISOC99] (scalblnf): Likewise.
17822 [__USE_ISOC99] (nearbyintf): Likewise.
17823 [__USE_ISOC99] (lrintf): Likewise.
17824 [__USE_MISC] (scalbnl): Likewise.
17825 [__USE_ISOC99] (scalblnl): Likewise.
17826 [__USE_ISOC99] (nearbyintl): Likewise.
17827 [__USE_ISOC99] (lrintl): Likewise.
17828 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17829 __inline_mathop and __m81_defun changed.
17830
17831 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17832 CPU or FPU for ARM hard-float configurations.
17833
17834 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17835
17836 * nptl/tst-attr3.c: Include <libc-diag.h>.
17837 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17838
17839 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17840
17841 * string/tester.c (test_strncat): Also disable -Warray-bounds
17842 warnings for two tests.
17843
17844 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17845
17846 [BZ #22614]
17847 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17848 $(cc-pie-default) == yes.
17849 * config.make.in (cc-pie-default): New.
17850 * configure.ac (libc_cv_pie_default): Renamed to ...
17851 (libc_cv_cc_pie_default): This.
17852 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17853 * configure: Regenerated.
17854
17855 2017-12-18 Florian Weimer <fweimer@redhat.com>
17856
17857 [BZ #20204]
17858 ld.so: Harden dl-libc/libdl hooks.
17859 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17860 (rtld_active): New function.
17861 * dlfcn/dladdr.c (__dladdr): Call it.
17862 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17863 * dlfcn/dlclose.c (__dlcose): Likewise.
17864 * dlfcn/dlerror.c (__dlerror): Likewise.
17865 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17866 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17867 * dlfcn/dlopen.c (__dlopen): Likewise.
17868 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17869 * dlfcn/dlsym.c (__dlsym): Likewise.
17870 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17871 * libio/vtables.c (_IO_vtable_check): Likewise.
17872 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17873 (__libc_dlclose): Likewise.
17874 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17875 assignment.
17876
17877 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17878
17879 [BZ #22446]
17880 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17881 buffers for readlink input and output.
17882
17883 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17884
17885 [BZ #22624]
17886 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17887 inhibit_stack_protector.
17888
17889 [BZ #22624]
17890 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17891 inhibit_stack_protector.
17892
17893 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17894
17895 [BZ #22627]
17896 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17897 code and invocation.
17898
17899 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17900
17901 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17902
17903 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17904
17905 [BZ #22505]
17906 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17907
17908 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17909
17910 * sysdeps/s390/fpu/libm-test-ulps: Update.
17911
17912 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17913
17914 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17915
17916 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17917
17918 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17919 constants to s_sincosf.h file.
17920 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17921 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17922 implementation.
17923 * sysdeps/ieee754/flt-32/s_sincosf.h:
17924 New file.
17925
17926 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17927
17928 [BZ #14681]
17929 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17930 before mtrace.
17931
17932 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17933
17934 [BZ #19574]
17935 * INSTALL: Regenerated.
17936 * Makeconfig (real-static-start-installed-name): New.
17937 (pic-default): Updated for --enable-static-pie.
17938 (pie-default): New for --enable-static-pie.
17939 (default-pie-ldflag): Likewise.
17940 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17941 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17942 Replace $(static-start-installed-name) with
17943 $(real-static-start-installed-name).
17944 (+prectorT): Updated for --enable-static-pie.
17945 (+postctorT): Likewise.
17946 (CFLAGS-.o): Add $(pie-default).
17947 (CFLAGS-.op): Likewise.
17948 * NEWS: Mention --enable-static-pie.
17949 * config.h.in (ENABLE_STATIC_PIE): New.
17950 * configure.ac (--enable-static-pie): New configure option.
17951 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17952 (have-static-pie): Likewise.
17953 Enable static PIE if linker supports --no-dynamic-linker.
17954 (ENABLE_STATIC_PIE): New AC_DEFINE.
17955 (enable-static-pie): New LIBC_CONFIG_VAR.
17956 * configure: Regenerated.
17957 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17958 gr$(start-installed-name) for --enable-static-pie.
17959 (extra-objs): Likewise.
17960 (install-lib): Likewise.
17961 (extra-objs): Add static-reloc.o and static-reloc.os
17962 ($(objpfx)$(start-installed-name)): Also depend on
17963 $(objpfx)static-reloc.o.
17964 ($(objpfx)r$(start-installed-name)): New.
17965 ($(objpfx)g$(start-installed-name)): Also depend on
17966 $(objpfx)static-reloc.os.
17967 ($(objpfx)gr$(start-installed-name)): New.
17968 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17969 in libc.a.
17970 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17971 initimage.
17972 * csu/static-reloc.c: New file.
17973 * elf/Makefile (routines): Add dl-reloc-static-pie.
17974 (elide-routines.os): Likewise.
17975 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17976 (tst-tls1-static-non-pie-no-pie): New.
17977 * elf/dl-reloc-static-pie.c: New file.
17978 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17979 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17980 STATIC_PIE_BOOTSTRAP.
17981 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17982 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17983 (tests-static): Likewise.
17984 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17985 (tst-gmon-static-no-pie): New.
17986 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17987 (CRT-tst-gmon-static-pie): Likewise.
17988 (tst-gmon-static-pie-ENV): Likewise.
17989 (tests-special): Likewise.
17990 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17991 (clean-tst-gmon-static-pie-data): Likewise.
17992 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17993 * gmon/tst-gmon-static-pie.c: New file.
17994 * manual/install.texi: Document --enable-static-pie.
17995 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17996 (_dl_get_dl_main_map): Likewise.
17997 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17998 * sysdeps/x86_64/configure.ac: Likewise.
17999 * sysdeps/i386/configure: Regenerated.
18000 * sysdeps/x86_64/configure: Likewise.
18001 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18002 (ASFLAGS-.op): Likewise.
18003
18004 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18005
18006 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18007 * posix/tst-mmap-offset.c (fname): Use /tmp.
18008 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18009
18010 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18011
18012 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18013
18014 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18015
18016 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18017 errno.
18018
18019 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18020
18021 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18022 --with-float=hard for arm-linux-gnueabihf configurations.
18023
18024 [BZ #14121]
18025 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18026 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18027 ($(mo-installed)): Use $(objpfx)%.mo.
18028 (realclean): Remove rule.
18029
18030 * po/Makefile (linguas): Remove rule and dependencies.
18031 (linguas.mo): Likewise.
18032 (.PHONY): Do not depend on linguas and linguas.mo.
18033 (podir): Remove variable.
18034 (pofiles): Likewise.
18035 [$(pofiles)] (%.po): Remove rule.
18036
18037 * sysdeps/sparc/sparc32/Makefile
18038 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18039 start-of-line whitespace in argument of echo.
18040 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18041 with whitespace. Generate __wrap_.udiv alias.
18042 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18043 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18044 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18045 * sysdeps/sparc/sparc32/urem.S: Likewise.
18046
18047 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18048
18049 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18050 for aligned inputs.
18051
18052 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18053
18054 * benchtests/bench-strcmp.c: Print output in JSON format.
18055
18056 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18057
18058 2017-12-14 Florian Weimer <fweimer@redhat.com>
18059
18060 [BZ #22607]
18061 CVE-2017-1000409
18062 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18063 the expanded path string.
18064
18065 2017-12-14 Florian Weimer <fweimer@redhat.com>
18066
18067 [BZ #22606]
18068 CVE-2017-1000408
18069 * elf/dl-load.c (system_dirs): Update comment.
18070 (nsystem_dirs_len): Use array_length.
18071 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18072
18073 2017-12-14 Florian Weimer <fweimer@redhat.com>
18074
18075 Simplify compiling most of support/ outside of glibc.
18076 * support/check_addrinfo.c: Include <string.h>.
18077 * support/check_dns_packet.c: Likewise.
18078 * support/check_hostent.c: Likewise.
18079 * support/support_can_chroot.c: Include <support/xunistd.h>.
18080 * support/support_format_addrinfo.c: Include <stdlib.h>
18081 * support/support_format_dns_packet.c: Include <stdbool.h>.
18082 * support/support_format_hostent.c: Include <stdlib.h>.
18083 * support/support_format_netent.c: Likewise.
18084 * support/support_write_string.c: Include <support/xunistd.h>.
18085 * support/xdlfcn.c: Include <stddef.h>.
18086
18087 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18088
18089 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18090
18091 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18092 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18093
18094 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18095 (sysdeps_routines): Add memset-niagara7.
18096 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18097 Likewise.
18098 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18099 file.
18100 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18101 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18102 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18103 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18104 Add niagara7 option.
18105 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18106 memset.
18107
18108 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18109 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18110 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18111 Likewise.
18112 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18113 New file.
18114 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18115 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18116 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18117 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18118 and __memmove_niagara7.
18119 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18120 Add niagara7 option.
18121 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18122 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18123 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18124 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18125 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18126
18127 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18128
18129 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18130 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18131 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18132 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18133
18134 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18135 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18136 _dl_sparc_cap_flags array.
18137 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18138
18139 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18140
18141 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18142 time whenever possible.
18143
18144 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18145
18146 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18147 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18148
18149 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18150
18151 * soft-fp/fmadf4.c: Move to ....
18152 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18153 * soft-fp/fmasf4.c: Move to ....
18154 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18155 * soft-fp/fmatf4.c: Move to ....
18156 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18157 * sysdeps/ieee754/soft-fp/Makefile: New file.
18158 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18159 * sysdeps/arm/preconfigure: Regenerated.
18160 * sysdeps/arm/nofpu/Implies: New file.
18161 * sysdeps/arm/s_fma.c: Remove file.
18162 * sysdeps/arm/s_fmaf.c: Likewise.
18163 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18164 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18165 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18166 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18167 * sysdeps/microblaze/s_fma.c: Remove file.
18168 * sysdeps/microblaze/s_fmaf.c: Likewise.
18169 * sysdeps/mips/mips32/nofpu/Implies: New file.
18170 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18171 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18172 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18173 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18174 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18175 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18176 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18177 implementation.
18178 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18179 * sysdeps/nios2/s_fma.c: Remove file.
18180 * sysdeps/nios2/s_fmaf.c: Likewise.
18181 * sysdeps/sh/nofpu/Implies: New file.
18182 * sysdeps/sh/s_fma.c: Remove file.
18183 * sysdeps/sh/s_fmaf.c: Likewise.
18184 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18185 * sysdeps/tile/s_fma.c: Remove file.
18186 * sysdeps/tile/s_fmaf.c: Likewise.
18187
18188 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18189
18190 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18191 Add s_cosf-sse2 and s_cosf-fma.
18192 (CFLAGS-s_cosf-fma.c): New.
18193 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18194 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18195 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18196
18197 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18198
18199 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18200
18201 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18202
18203 * libio/Makefile (tests): Add tst-bz22415.
18204 (tst-bz22415-ENV): New rule.
18205 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18206 (tests-special): Add tst-bz22415-mem.out.
18207 ($(objpfx)tst-bz22415-mem.out): New rule.
18208 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18209 in case of a successful seek operation.
18210 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18211 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18212 buffer is required.
18213 * libio/tst-bz22415.c: New test.
18214
18215 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18216
18217 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18218
18219 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18220 __IPC_64 to 0 to avoid IPC_64 being set.
18221
18222 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18223
18224 [BZ #22593]
18225 * math/bits/mathcalls.h (nextafter): Remove const.
18226 (nexttoward): Likewise.
18227
18228 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18229
18230 * configure.ac (--with-fp): Remove configure option.
18231 (with_fp_cond): New variable.
18232 (libc_cv_with_fp): New configure test. Use this variable instead
18233 of with_fp.
18234 * configure: Regenerated.
18235 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18236 * manual/install.texi (Configuring and compiling): Remove
18237 --without-fp.
18238 * INSTALL: Regenerated.
18239 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18240 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18241 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18242 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18243 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18244 use --without-fp to configure glibc.
18245
18246 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18247
18248 * manual/locale.texi (nl_langinfo): Fix a typo.
18249
18250 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18251
18252 [BZ #22588]
18253 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18254
18255 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18256
18257 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18258 (CFLAGS-argp-parse.c): Likewise.
18259 (CFLAGS-argp-fmtstream.c): Likewise.
18260 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18261 (CPPFLAGS-sha512-crypt.c): Likewise.
18262 (CPPFLAGS-md5-crypt.c): Likewise.
18263 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18264 (CFLAGS-stack_chk_fail_local.c): Likewise.
18265 (CFLAGS-backtrace.c): Likewise.
18266 (CFLAGS-sprintf_chk.c): Likewise.
18267 (CFLAGS-snprintf_chk.c): Likewise.
18268 (CFLAGS-vsprintf_chk.c): Likewise.
18269 (CFLAGS-vsnprintf_chk.c): Likewise.
18270 (CFLAGS-asprintf_chk.c): Likewise.
18271 (CFLAGS-vasprintf_chk.c): Likewise.
18272 (CFLAGS-obprintf_chk.c): Likewise.
18273 (CFLAGS-dprintf_chk.c): Likewise.
18274 (CFLAGS-vdprintf_chk.c): Likewise.
18275 (CFLAGS-printf_chk.c): Likewise.
18276 (CFLAGS-fprintf_chk.c): Likewise.
18277 (CFLAGS-vprintf_chk.c): Likewise.
18278 (CFLAGS-vfprintf_chk.c): Likewise.
18279 (CFLAGS-gets_chk.c): Likewise.
18280 (CFLAGS-fgets_chk.c): Likewise.
18281 (CFLAGS-fgets_u_chk.c): Likewise.
18282 (CFLAGS-fread_chk.c): Likewise.
18283 (CFLAGS-fread_u_chk.c): Likewise.
18284 (CFLAGS-swprintf_chk.c): Likewise.
18285 (CFLAGS-vswprintf_chk.c): Likewise.
18286 (CFLAGS-wprintf_chk.c): Likewise.
18287 (CFLAGS-fwprintf_chk.c): Likewise.
18288 (CFLAGS-vwprintf_chk.c): Likewise.
18289 (CFLAGS-vfwprintf_chk.c): Likewise.
18290 (CFLAGS-fgetws_chk.c): Likewise.
18291 (CFLAGS-fgetws_u_chk.c): Likewise.
18292 (CFLAGS-read_chk.c): Likewise.
18293 (CFLAGS-pread_chk.c): Likewise.
18294 (CFLAGS-pread64_chk.c): Likewise.
18295 (CFLAGS-recv_chk.c): Likewise.
18296 (CFLAGS-recvfrom_chk.c): Likewise.
18297 (CFLAGS-tst-longjmp_chk.c): Likewise.
18298 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18299 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18300 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18301 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18302 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18303 (CFLAGS-tst-chk1.c): Likewise.
18304 (CFLAGS-tst-chk2.c): Likewise.
18305 (CFLAGS-tst-chk3.c): Likewise.
18306 (CFLAGS-tst-chk4.cc): Likewise.
18307 (CFLAGS-tst-chk5.cc): Likewise.
18308 (CFLAGS-tst-chk6.cc): Likewise.
18309 (CFLAGS-tst-lfschk1.c): Likewise.
18310 (CFLAGS-tst-lfschk2.c): Likewise.
18311 (CFLAGS-tst-lfschk3.c): Likewise.
18312 (CFLAGS-tst-lfschk4.cc): Likewise.
18313 (CFLAGS-tst-lfschk5.cc): Likewise.
18314 (CFLAGS-tst-lfschk6.cc): Likewise.
18315 (CFLAGS-tst-ssp-1.c): Likewise.
18316 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18317 (CFLAGS-scandir64.c): Likewise.
18318 (CFLAGS-scandir-tail.c): Likewise.
18319 (CFLAGS-scandir64-tail.c): Likewise.
18320 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18321 (CFLAGS-dl-tunables.c): Likewise.
18322 (CFLAGS-dl-runtime.c): Likewise.
18323 (CFLAGS-dl-lookup.c): Likewise.
18324 (CFLAGS-dl-iterate-phdr.c): Likewise.
18325 (CFLAGS-vismain.c): Likewise.
18326 (CFLAGS-tst-linkall-static.c): Likewise.
18327 (CFLAGS-tst-linkall-static.c): Likewise.
18328 (CPPFLAGS-dl-load.c): Likewise.
18329 (CFLAGS-ldconfig.c): Likewise.
18330 (CFLAGS-dl-cache.c): Likewise.
18331 (CFLAGS-cache.c): Likewise.
18332 (CFLAGS-rtld.c): Likewise.
18333 (CFLAGS-multiload.c): Likewise.
18334 (CFLAGS-filtmod1.c): Likewise.
18335 (CFLAGS-tst-align.c): Likewise.
18336 (CFLAGS-tst-align2.c): Likewise.
18337 (CFLAGS-tst-alignmod.c): Likewise.
18338 (CFLAGS-tst-alignmod2.c): Likewise.
18339 (CPPFLAGS-tst-execstack.c): Likewise.
18340 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18341 (CFLAGS-tst-latepthreadmod.c): Likewise.
18342 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18343 (CFLAGS-getgrnam_r.c): Likewise.
18344 (CFLAGS-getgrent_r.c): Likewise.
18345 (CFLAGS-getgrent.c): Likewise.
18346 (CFLAGS-fgetgrent.c): Likewise.
18347 (CFLAGS-fgetgrent_r.c): Likewise.
18348 (CFLAGS-putgrent.c): Likewise.
18349 (CFLAGS-initgroups.c): Likewise.
18350 (CFLAGS-getgrgid.c): Likewise.
18351 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18352 (CFLAGS-getsgent.c): Likewise.
18353 (CFLAGS-fgetsgent.c): Likewise.
18354 (CFLAGS-fgetsgent_r.c): Likewise.
18355 (CFLAGS-putsgent.c): Likewise.
18356 (CFLAGS-getsgnam.c): Likewise.
18357 (CFLAGS-getsgnam_r.c): Likewise.
18358 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18359 (CFLAGS-iconv_charmap.c): Likewise.
18360 (CFLAGS-dummy-repertoire.c): Likewise.
18361 (CFLAGS-charmap.c): Likewise.
18362 (CFLAGS-linereader.c): Likewise.
18363 (CFLAGS-simple-hash.c): Likewise.
18364 (CFLAGS-gconv_conf.c): Likewise.
18365 (CFLAGS-iconvconfig.c): Likewise.
18366 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18367 (CFLAGS-gethstbyad.c): Likewise.
18368 (CFLAGS-gethstbynm_r.c): Likewise.
18369 (CFLAGS-gethstbynm.c): Likewise.
18370 (CFLAGS-gethstbynm2_r.c): Likewise.
18371 (CFLAGS-gethstbynm2.c): Likewise.
18372 (CFLAGS-gethstent_r.c): Likewise.
18373 (CFLAGS-gethstent.c): Likewise.
18374 (CFLAGS-rcmd.c): Likewise.
18375 (CFLAGS-getnetbynm_r.c): Likewise.
18376 (CFLAGS-getnetbynm.c): Likewise.
18377 (CFLAGS-getnetbyad_r.c): Likewise.
18378 (CFLAGS-getnetbyad.c): Likewise.
18379 (CFLAGS-getnetent_r.c): Likewise.
18380 (CFLAGS-getnetent.c): Likewise.
18381 (CFLAGS-getaliasent_r.c): Likewise.
18382 (CFLAGS-getaliasent.c): Likewise.
18383 (CFLAGS-getrpcent_r.c): Likewise.
18384 (CFLAGS-getrpcent.c): Likewise.
18385 (CFLAGS-getservent_r.c): Likewise.
18386 (CFLAGS-getservent.c): Likewise.
18387 (CFLAGS-getprtent_r.c): Likewise.
18388 (CFLAGS-getprtent.c): Likewise.
18389 (CFLAGS-either_ntoh.c): Likewise.
18390 (CFLAGS-either_hton.c): Likewise.
18391 (CFLAGS-getnetgrent.c): Likewise.
18392 (CFLAGS-getnetgrent_r.c): Likewise.
18393 (CFLAGS-tst-checks-posix.c): Likewise.
18394 (CFLAGS-tst-sockaddr.c): Likewise.
18395 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18396 (CFLAGS-tst-translit.c): Likewise.
18397 (CFLAGS-tst-gettext2.c): Likewise.
18398 (CFLAGS-tst-codeset.c): Likewise.
18399 (CFLAGS-tst-gettext3.c): Likewise.
18400 (CFLAGS-tst-gettext4.c): Likewise.
18401 (CFLAGS-tst-gettext5.c): Likewise.
18402 (CFLAGS-tst-gettext6.c): Likewise.
18403 * io/Makefile (CFLAGS-open.c): Likewise.
18404 (CFLAGS-open64.c): Likewise.
18405 (CFLAGS-creat.c): Likewise.
18406 (CFLAGS-creat64.c): Likewise.
18407 (CFLAGS-fcntl.c): Likewise.
18408 (CFLAGS-poll.c): Likewise.
18409 (CFLAGS-ppoll.c): Likewise.
18410 (CFLAGS-lockf.c): Likewise.
18411 (CFLAGS-statfs.c): Likewise.
18412 (CFLAGS-fstatfs.c): Likewise.
18413 (CFLAGS-statvfs.c): Likewise.
18414 (CFLAGS-fstatvfs.c): Likewise.
18415 (CFLAGS-fts.c): Likewise.
18416 (CFLAGS-fts64.c): Likewise.
18417 (CFLAGS-ftw.c): Likewise.
18418 (CFLAGS-ftw64.c): Likewise.
18419 (CFLAGS-lockf.c): Likewise.
18420 (CFLAGS-posix_fallocate.c): Likewise.
18421 (CFLAGS-posix_fallocate64.c): Likewise.
18422 (CFLAGS-fallocate.c): Likewise.
18423 (CFLAGS-fallocate64.c): Likewise.
18424 (CFLAGS-read.c): Likewise.
18425 (CFLAGS-write.c): Likewise.
18426 (CFLAGS-test-stat.c): Likewise.
18427 (CFLAGS-test-lfs.c): Likewise.
18428 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18429 (CFLAGS-fputc.c): Likewise.
18430 (CFLAGS-fputwc.c): Likewise.
18431 (CFLAGS-freopen64.c): Likewise.
18432 (CFLAGS-freopen.c): Likewise.
18433 (CFLAGS-fseek.c): Likewise.
18434 (CFLAGS-fseeko64.c): Likewise.
18435 (CFLAGS-fseeko.c): Likewise.
18436 (CFLAGS-ftello64.c): Likewise.
18437 (CFLAGS-ftello.c): Likewise.
18438 (CFLAGS-fwide.c): Likewise.
18439 (CFLAGS-genops.c): Likewise.
18440 (CFLAGS-getc.c): Likewise.
18441 (CFLAGS-getchar.c): Likewise.
18442 (CFLAGS-getwc.c): Likewise.
18443 (CFLAGS-getwchar.c): Likewise.
18444 (CFLAGS-iofclose.c): Likewise.
18445 (CFLAGS-iofflush.c): Likewise.
18446 (CFLAGS-iofgetpos64.c): Likewise.
18447 (CFLAGS-iofgetpos.c): Likewise.
18448 (CFLAGS-iofgets.c): Likewise.
18449 (CFLAGS-iofgetws.c): Likewise.
18450 (CFLAGS-iofputs.c): Likewise.
18451 (CFLAGS-iofputws.c): Likewise.
18452 (CFLAGS-iofread.c): Likewise.
18453 (CFLAGS-iofsetpos64.c): Likewise.
18454 (CFLAGS-iofsetpos.c): Likewise.
18455 (CFLAGS-ioftell.c): Likewise.
18456 (CFLAGS-iofwrite.c): Likewise.
18457 (CFLAGS-iogetdelim.c): Likewise.
18458 (CFLAGS-iogetline.c): Likewise.
18459 (CFLAGS-iogets.c): Likewise.
18460 (CFLAGS-iogetwline.c): Likewise.
18461 (CFLAGS-ioputs.c): Likewise.
18462 (CFLAGS-ioseekoff.c): Likewise.
18463 (CFLAGS-ioseekpos.c): Likewise.
18464 (CFLAGS-iosetbuffer.c): Likewise.
18465 (CFLAGS-iosetvbuf.c): Likewise.
18466 (CFLAGS-ioungetc.c): Likewise.
18467 (CFLAGS-ioungetwc.c): Likewise.
18468 (CFLAGS-oldfileops.c): Likewise.
18469 (CFLAGS-oldiofclose.c): Likewise.
18470 (CFLAGS-oldiofgetpos64.c): Likewise.
18471 (CFLAGS-oldiofgetpos.c): Likewise.
18472 (CFLAGS-oldiofsetpos64.c): Likewise.
18473 (CFLAGS-oldiofsetpos.c): Likewise.
18474 (CFLAGS-peekc.c): Likewise.
18475 (CFLAGS-putc.c): Likewise.
18476 (CFLAGS-putchar.c): Likewise.
18477 (CFLAGS-putwc.c): Likewise.
18478 (CFLAGS-putwchar.c): Likewise.
18479 (CFLAGS-rewind.c): Likewise.
18480 (CFLAGS-wfileops.c): Likewise.
18481 (CFLAGS-wgenops.c): Likewise.
18482 (CFLAGS-oldiofopen.c): Likewise.
18483 (CFLAGS-iofopen.c): Likewise.
18484 (CFLAGS-iofopen64.c): Likewise.
18485 (CFLAGS-oldtmpfile.c): Likewise.
18486 (CFLAGS-tst_putwc.c): Likewise.
18487 * locale/Makefile (CFLAGS-md5.c): Likewise.
18488 (CFLAGS-charmap.c): Likewise.
18489 (CFLAGS-locfile.c): Likewise.
18490 (CFLAGS-charmap-dir.c): Likewise.
18491 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18492 (CFLAGS-getpt.c): Likewise.
18493 (CFLAGS-pt_chown.c): Likewise.
18494 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18495 (CFLAGS-obstack.c): Likewise.
18496 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18497 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18498 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18499 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18500 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18501 (CFLAGS-test-tgmath.c): Likewise.
18502 (CFLAGS-test-tgmath2.c): Likewise.
18503 (CFLAGS-test-tgmath-ret.c): Likewise.
18504 (CFLAGS-test-powl.c): Likewise.
18505 (CFLAGS-test-snan.c): Likewise.
18506 (CFLAGS-test-signgam-finite.c): Likewise.
18507 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18508 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18509 (CFLAGS-test-signgam-uchar.c): Likewise.
18510 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18511 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18512 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18513 (CFLAGS-test-signgam-uint.c): Likewise.
18514 (CFLAGS-test-signgam-uint-init.c): Likewise.
18515 (CFLAGS-test-signgam-uint-static.c): Likewise.
18516 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18517 (CFLAGS-test-signgam-ullong.c): Likewise.
18518 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18519 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18520 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18521 (CFLAGS-test-math-cxx11.cc): Likewise.
18522 (CFLAGS-test-math-isinff.cc): Likewise.
18523 (CFLAGS-test-math-iszero.cc): Likewise.
18524 (CFLAGS-test-math-issignaling.cc): Likewise.
18525 (CFLAGS-test-math-iscanonical.cc): Likewise.
18526 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18527 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18528 (CFLAGS-test-flt-eval-method.c): Likewise.
18529 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18530 (CFLAGS-test-finite-macros.c): Likewise.
18531 * misc/Makefile (CFLAGS-select.c): Likewise.
18532 (CFLAGS-tsearch.c): Likewise.
18533 (CFLAGS-lsearch.c): Likewise.
18534 (CFLAGS-pselect.c): Likewise.
18535 (CFLAGS-readv.c): Likewise.
18536 (CFLAGS-writev.c): Likewise.
18537 (CFLAGS-preadv.c): Likewise.
18538 (CFLAGS-preadv64.c): Likewise.
18539 (CFLAGS-pwritev.c): Likewise.
18540 (CFLAGS-pwritev64.c): Likewise.
18541 (CFLAGS-preadv2.c): Likewise.
18542 (CFLAGS-preadv64v2.c): Likewise.
18543 (CFLAGS-pwritev2.c): Likewise.
18544 (CFLAGS-pwritev64v2.c): Likewise.
18545 (CFLAGS-usleep.c): Likewise.
18546 (CFLAGS-syslog.c): Likewise.
18547 (CFLAGS-error.c): Likewise.
18548 (CFLAGS-getpass.c): Likewise.
18549 (CFLAGS-mkstemp.c): Likewise.
18550 (CFLAGS-mkstemp64.c): Likewise.
18551 (CFLAGS-getsysstats.c): Likewise.
18552 (CFLAGS-getusershell.c): Likewise.
18553 (CFLAGS-err.c): Likewise.
18554 (CFLAGS-tst-tsearch.c): Likewise.
18555 (CFLAGS-msync.c): Likewise.
18556 (CFLAGS-fdatasync.c): Likewise.
18557 (CFLAGS-fsync.c): Likewise.
18558 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18559 (CFLAGS-unwind.c): Likewise.
18560 (CFLAGS-unwind-forcedunwind.c): Likewise.
18561 (CFLAGS-pthread_cancel.c): Likewise.
18562 (CFLAGS-pthread_setcancelstate.c): Likewise.
18563 (CFLAGS-pthread_setcanceltype.c): Likewise.
18564 (CFLAGS-cancellation.c): Likewise.
18565 (CFLAGS-libc-cancellation.c): Likewise.
18566 (CFLAGS-pthread_exit.c): Likewise.
18567 (CFLAGS-forward.c): Likewise.
18568 (CFLAGS-pthread_testcancel.c): Likewise.
18569 (CFLAGS-pthread_join.c): Likewise.
18570 (CFLAGS-pthread_timedjoin.c): Likewise.
18571 (CFLAGS-pthread_once.c): Likewise.
18572 (CFLAGS-pthread_cond_wait.c): Likewise.
18573 (CFLAGS-sem_wait.c): Likewise.
18574 (CFLAGS-sem_timedwait.c): Likewise.
18575 (CFLAGS-fcntl.c): Likewise.
18576 (CFLAGS-lockf.c): Likewise.
18577 (CFLAGS-pread.c): Likewise.
18578 (CFLAGS-pread64.c): Likewise.
18579 (CFLAGS-pwrite.c): Likewise.
18580 (CFLAGS-pwrite64.c): Likewise.
18581 (CFLAGS-wait.c): Likewise.
18582 (CFLAGS-waitpid.c): Likewise.
18583 (CFLAGS-sigwait.c): Likewise.
18584 (CFLAGS-msgrcv.c): Likewise.
18585 (CFLAGS-msgsnd.c): Likewise.
18586 (CFLAGS-tcdrain.c): Likewise.
18587 (CFLAGS-open.c): Likewise.
18588 (CFLAGS-open64.c): Likewise.
18589 (CFLAGS-pause.c): Likewise.
18590 (CFLAGS-recv.c): Likewise.
18591 (CFLAGS-send.c): Likewise.
18592 (CFLAGS-accept.c): Likewise.
18593 (CFLAGS-sendto.c): Likewise.
18594 (CFLAGS-connect.c): Likewise.
18595 (CFLAGS-recvfrom.c): Likewise.
18596 (CFLAGS-recvmsg.c): Likewise.
18597 (CFLAGS-sendmsg.c): Likewise.
18598 (CFLAGS-close.c): Likewise.
18599 (CFLAGS-read.c): Likewise.
18600 (CFLAGS-write.c): Likewise.
18601 (CFLAGS-nanosleep.c): Likewise.
18602 (CFLAGS-sigsuspend.c): Likewise.
18603 (CFLAGS-msync.c): Likewise.
18604 (CFLAGS-fdatasync.c): Likewise.
18605 (CFLAGS-fsync.c): Likewise.
18606 (CFLAGS-pt-system.c): Likewise.
18607 (CFLAGS-tst-cleanup2.c): Likewise.
18608 (CFLAGS-tst-cleanupx2.c): Likewise.
18609 (CFLAGS-flockfile.c): Likewise.
18610 (CFLAGS-ftrylockfile.c): Likewise.
18611 (CFLAGS-funlockfile.c): Likewise.
18612 (CFLAGS-tst-initializers1.c): Likewise.
18613 (CFLAGS-tst-initializers1-c89.c): Likewise.
18614 (CFLAGS-tst-initializers1-c99.c): Likewise.
18615 (CFLAGS-tst-initializers1-c11.c): Likewise.
18616 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18617 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18618 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18619 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18620 (CFLAGS-nscd_getgr_r.c): Likewise.
18621 (CFLAGS-nscd_gethst_r.c): Likewise.
18622 (CFLAGS-nscd_getai.c): Likewise.
18623 (CFLAGS-nscd_initgroups.c): Likewise.
18624 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18625 (CFLAGS-pause.c): Likewise.
18626 (CFLAGS-pread.c): Likewise.
18627 (CFLAGS-pread64.c): Likewise.
18628 (CFLAGS-pwrite.c): Likewise.
18629 (CFLAGS-pwrite64.c): Likewise.
18630 (CFLAGS-sleep.c): Likewise.
18631 (CFLAGS-wait.c): Likewise.
18632 (CFLAGS-waitid.c): Likewise.
18633 (CFLAGS-waitpid.c): Likewise.
18634 (CFLAGS-getopt.c): Likewise.
18635 (CFLAGS-wordexp.c): Likewise.
18636 (CFLAGS-sysconf.c): Likewise.
18637 (CFLAGS-pathconf.c): Likewise.
18638 (CFLAGS-fpathconf.c): Likewise.
18639 (CFLAGS-spawn.c): Likewise.
18640 (CFLAGS-spawnp.c): Likewise.
18641 (CFLAGS-spawni.c): Likewise.
18642 (CFLAGS-glob.c): Likewise.
18643 (CFLAGS-glob64.c): Likewise.
18644 (CFLAGS-getconf.c): Likewise.
18645 (CFLAGS-nanosleep.c): Likewise.
18646 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18647 (CFLAGS-getpwent.c): Likewise.
18648 (CFLAGS-getpw.c): Likewise.
18649 (CFLAGS-fgetpwent_r.c): Likewise.
18650 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18651 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18652 (CFLAGS-mq_timedreceive.c): Likewise.
18653 (CFLAGS-mq_timedsend.c): Likewise.
18654 (CFLAGS-clock_nanosleep.c): Likewise.
18655 (CFLAGS-librt-cancellation.c): Likewise.
18656 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18657 (CFLAGS-getspent.c): Likewise.
18658 (CFLAGS-fgetspent.c): Likewise.
18659 (CFLAGS-fgetspent_r.c): Likewise.
18660 (CFLAGS-putspent.c): Likewise.
18661 (CFLAGS-getspnam.c): Likewise.
18662 (CFLAGS-getspnam_r.c): Likewise.
18663 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18664 (CFLAGS-sigsuspend.c): Likewise.
18665 (CFLAGS-sigtimedwait.c): Likewise.
18666 (CFLAGS-sigwait.c): Likewise.
18667 (CFLAGS-sigwaitinfo.c): Likewise.
18668 (CFLAGS-sigreturn.c): Likewise.
18669 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18670 (CFLAGS-vfwprintf.c): Likewise.
18671 (CFLAGS-tmpfile.c): Likewise.
18672 (CFLAGS-tmpfile64.c): Likewise.
18673 (CFLAGS-tempname.c): Likewise.
18674 (CFLAGS-psignal.c): Likewise.
18675 (CFLAGS-vprintf.c): Likewise.
18676 (CFLAGS-cuserid.c): Likewise.
18677 (CFLAGS-errlist.c): Likewise.
18678 (CFLAGS-siglist.c): Likewise.
18679 (CFLAGS-scanf15.c): Likewise.
18680 (CFLAGS-scanf17.c): Likewise.
18681 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18682 (CFLAGS-msort.c): Likewise.
18683 (CFLAGS-qsort.c): Likewise.
18684 (CFLAGS-system.c): Likewise.
18685 (CFLAGS-fmtmsg.c): Likewise.
18686 (CFLAGS-strfmon.c): Likewise.
18687 (CFLAGS-strfmon_l.c): Likewise.
18688 (CFLAGS-strfromd.c): Likewise.
18689 (CFLAGS-strfromf.c): Likewise.
18690 (CFLAGS-strfroml.c): Likewise.
18691 (CFLAGS-tst-bsearch.c): Likewise.
18692 (CFLAGS-tst-qsort.c): Likewise.
18693 (CFLAGS-tst-makecontext2.c): Likewise.
18694 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18695 (CFLAGS-xnlm_prot.c): Likewise.
18696 (CFLAGS-xrstat.c): Likewise.
18697 (CFLAGS-xyppasswd.c): Likewise.
18698 (CFLAGS-xklm_prot.c): Likewise.
18699 (CFLAGS-xrex.c): Likewise.
18700 (CFLAGS-xsm_inter.c): Likewise.
18701 (CFLAGS-xmount.c): Likewise.
18702 (CFLAGS-xrusers.c): Likewise.
18703 (CFLAGS-xspray.c): Likewise.
18704 (CFLAGS-xnfs_prot.c): Likewise.
18705 (CFLAGS-xrquota.c): Likewise.
18706 (CFLAGS-xkey_prot.c): Likewise.
18707 (CFLAGS-auth_unix.c): Likewise.
18708 (CFLAGS-key_call.c): Likewise.
18709 (CFLAGS-pmap_rmt.c): Likewise.
18710 (CFLAGS-clnt_perr.c): Likewise.
18711 (CFLAGS-openchild.c): Likewise.
18712 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18713 (CFLAGS-msgsnd.c): Likewise.
18714 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18715 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18716 (CFLAGS-tzset.c): Likewise.
18717 (CFLAGS-getdate.c): Likewise.
18718 (CFLAGS-test_time.c): Likewise.
18719 (CPPFLAGS-tst-tzname.c): Likewise.
18720 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18721 (CFLAGS-zic.c): Likewise.
18722 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18723 (CFLAGS-wcswidth.c): Likewise.
18724 (CFLAGS-wcstol.c): Likewise.
18725 (CFLAGS-wcstoul.c): Likewise.
18726 (CFLAGS-wcstoll.c): Likewise.
18727 (CFLAGS-wcstoull.c): Likewise.
18728 (CFLAGS-wcstod.c): Likewise.
18729 (CFLAGS-wcstold.c): Likewise.
18730 (CFLAGS-wcstof128.c): Likewise.
18731 (CFLAGS-wcstof.c): Likewise.
18732 (CFLAGS-wcstol_l.c): Likewise.
18733 (CFLAGS-wcstoul_l.c): Likewise.
18734 (CFLAGS-wcstoll_l.c): Likewise.
18735 (CFLAGS-wcstoull_l.c): Likewise.
18736 (CFLAGS-wcstod_l.c): Likewise.
18737 (CFLAGS-wcstold_l.c): Likewise.
18738 (CFLAGS-wcstof128_l.c): Likewise.
18739 (CFLAGS-wcstof_l.c): Likewise.
18740 (CPPFLAGS-tst-wchar-h.c): Likewise.
18741 (CPPFLAGS-wcstold_l.c): Likewise.
18742
18743 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18744
18745 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18746
18747 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18748 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18749
18750 * manual/tunables.texi (Hardware Capability Tunables): Document
18751 glibc.tune.cached_memopt.
18752 * sysdeps/powerpc/cpu-features.c: New file.
18753 * sysdeps/powerpc/cpu-features.h: New file.
18754 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18755 _dl_powerpc_cpu_features.
18756 * sysdeps/powerpc/dl-tunables.list: New file.
18757 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18758 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18759 (INIT_ARCH): Initialize use_aligned_memopt.
18760 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18761 IS_IN(rtld))]: Restrict dl_platform_init availability and
18762 initialize CPU features used by tunables.
18763 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18764 Add memcpy-power8-cached.
18765 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18766 __memcpy_power8_cached.
18767 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18768 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18769 New file.
18770
18771 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18772
18773 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18774 (CFLAGS-noinl-tester.c): Likewise.
18775 (CFLAGS-tst-strlen.c): Likewise.
18776 (CFLAGS-stratcliff.c): Likewise.
18777 (CFLAGS-test-ffs.c): Likewise.
18778 (CFLAGS-tst-inlcall.c): Likewise.
18779 (CFLAGS-tst-xbzero-opt.c): Likewise.
18780 (CFLAGS-memcpy.c): Likewise.
18781 (CFLAGS-wordcopy.c): Likewise.
18782
18783 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18784
18785 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18786 Store r15 on stack and add cfi rule.
18787 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18788 Likewise.
18789
18790 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18791
18792 [BZ #22577]
18793 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18794 call.
18795
18796 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18797
18798 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18799 Add s_sinf-sse2 and s_sinf-fma.
18800 (CFLAGS-s_sinf-fma.c): New.
18801 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18802 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18803 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18804
18805 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18806
18807 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18808
18809 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18810
18811 [BZ #22568]
18812 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18813 part of result to imaginary part of argument if it is zero and the
18814 real part of the argument is not finite.
18815 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18816 of result to real part of argument if it is zero and the imaginary
18817 part of the argument is not finite.
18818
18819 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18820
18821 [BZ #22524]
18822 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18823 and to the list of locales to be built for testing.
18824 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18825 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18826 and build the collation rules upon that.
18827
18828 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18829
18830 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18831 * manual/math.texi (Mathematics): Document support for _Float32.
18832 * math/Makefile (test-types): Add float32.
18833 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18834 * stdlib/Versions (GLIBC_2.27): Likewise.
18835 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18836 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18837 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18838 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18839 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18840 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18841 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18842 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18843 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18844 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18850 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18851 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18857 Likewise.
18858 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18859 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18860 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18861 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18862 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18864 Likewise.
18865 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18866 Likewise.
18867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18868 Likewise.
18869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18870 Likewise.
18871
18872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18873 Likewise.
18874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18875 Likewise.
18876 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18877 Likewise.
18878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18879 Likewise.
18880 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18881 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18882 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18883 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18884 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18885 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18886 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18887 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18888 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18889 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18890 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18891 Likewise.
18892 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18893 Likewise.
18894 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18895 Likewise.
18896 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18897 Likewise.
18898 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18899 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18900 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18901 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18902 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18903 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18904 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18905 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18906
18907 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18908
18909 * stdlib/strtof.c: Include <bits/floatn.h>
18910 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18911 and later undefine as macro. Define as weak alias if
18912 [!USE_WIDE_CHAR].
18913 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18914 and later undefine as macro. Define as weak alias if
18915 [USE_WIDE_CHAR].
18916 * stdlib/strtof_l.c: Include <bits/floatn.h>
18917 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18918 and later undefine as macro. Define as weak alias if
18919 [!USE_WIDE_CHAR].
18920 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18921 and later undefine as macro. Define as weak alias if
18922 [USE_WIDE_CHAR].
18923
18924 * stdlib/strfromf.c: Include <bits/floatn.h>.
18925 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18926 and later undefine as macro and define as weak alias.
18927
18928 * math/test-float32.h: New file.
18929
18930 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18931 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18932 (libm_alias_float_other_r): Create f32 alias.
18933 (libm_alias_float_r): Use semicolon before call to
18934 libm_alias_float_other_r.
18935
18936 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18937 second argument to libm_alias_float_other.
18938 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18939 second argument to libm_alias_float_other.
18940 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18941 argument to libm_alias_float_other.
18942
18943 [BZ #22561]
18944 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18945 real part of result for argument 0 + i * NaN.
18946 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18947 results for tests of 0 + i * NaN.
18948
18949 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18950
18951 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18952
18953 2017-12-06 David S. Miller <davem@davemloft.net>
18954
18955 * sysdeps/sparc/fpu/libm-test-ulps: Update
18956 exp_{downward,towardzero,upward} ulps.
18957
18958 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18959
18960 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18961 variables static.
18962
18963 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18964 (Y0_2D): Likewise.
18965 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18966 (Y0_2D): Likewise.
18967 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18968 (Y0_2D): Likewise.
18969 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18970 (Y0_2D): Likewise.
18971
18972 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18973
18974 [BZ #22515]
18975 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18976 and to the list of locales to be built for testing.
18977 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18978 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18979 and build the collation rules upon that.
18980
18981 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18982
18983 * NEWS: Add sinf to list of optimized functions.
18984
18985 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18986
18987 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18988 (__HAVE_FLOAT32X): Likewise.
18989 * manual/math.texi (Mathematics): Document support for _Float64
18990 and _Float32x.
18991 * math/Makefile (test-types): Add float64 and float32x.
18992 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18993 functions.
18994 * stdlib/Versions (GLIBC_2.27): Likewise.
18995 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18996 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18997 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18998 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18999 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19000 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19001 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19002 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19003 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19004 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19005 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19006 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19007 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19008 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19009 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19010 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19011 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19012 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19014 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19015 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19016 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19017 Likewise.
19018 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19019 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19020 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19021 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19022 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19023 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19024 Likewise.
19025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19026 Likewise.
19027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19028 Likewise.
19029 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19030 Likewise.
19031 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19032 Likewise.
19033 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19034 Likewise.
19035 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19036 Likewise.
19037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19038 Likewise.
19039 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19040 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19041 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19042 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19043 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19044 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19045 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19046 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19047 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19048 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19049 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19050 Likewise.
19051 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19052 Likewise.
19053 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19054 Likewise.
19055 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19056 Likewise.
19057 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19058 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19059 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19060 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19061 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19062 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19063 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19064 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19065
19066 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19067
19068 * bits/floatn-common.h: Include <bits/long-double.h>.
19069 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19070 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19071 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19072 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19073 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19074 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19075 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19076 (__builtin_huge_valf64): Use __builtin_huge_vall.
19077 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19078 (__builtin_inff64): Use __builtin_infl.
19079 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19080 (__builtin_nanf64): Use __builtin_nanl.
19081 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19082 (__builtin_nansf64): Use __builtin_nansl.
19083
19084 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19085 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19086 Carlos O'Donnell <carlos@redhat.com>
19087
19088 * elf/dl-tunables.list: Add elision parameters.
19089 * manual/tunables.texi: Add entries about elision tunable.
19090 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19091 Add callback functions to dynamically enable/disable elision.
19092 Add multiple callbacks functions to set elision parameters.
19093 Deleted __libc_enable_secure check.
19094 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19095 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19096 * configure: Regenerated.
19097 * configure.ac: Option enable_lock_elision was deleted.
19098 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19099 * config.make.in: Remove references to enable_lock_elision.
19100 * manual/install.texi: Elision configure option was removed.
19101 * INSTALL: Regenerated to remove enable_lock_elision.
19102 * nptl/Makefile:
19103 Disable elision so it can verify error case for destroying a mutex.
19104 * sysdeps/powerpc/nptl/elide.h:
19105 Cleanup ENABLE_LOCK_ELISION check.
19106 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19107 * sysdeps/s390/configure: Regenerated.
19108 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19109 * nptl/tst-mutex8.c:
19110 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19111 * sysdeps/powerpc/powerpc32/sysdep.h:
19112 Deleted all ENABLE_LOCK_ELISION checks.
19113 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19114 * sysdeps/powerpc/sysdep.h: Likewise.
19115 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19116 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19117 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19118 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19119 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19120 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19121 enable-lock-elision.
19122
19123 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19124
19125 * stdlib/strtod.c: Include <bits/floatn.h>.
19126 (BUILD_DOUBLE): New macro.
19127 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19128 (strtof64): Define and later undefine as macro. Define as weak
19129 alias if [!USE_WIDE_CHAR].
19130 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19131 (wcstof64): Define and later undefine as macro. Define as weak
19132 alias if [USE_WIDE_CHAR].
19133 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19134 (strtof32x): Define and later undefine as macro. Define as weak
19135 alias if [!USE_WIDE_CHAR].
19136 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19137 (wcstof32x): Define and later undefine as macro. Define as weak
19138 alias if [USE_WIDE_CHAR].
19139 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19140 (BUILD_DOUBLE): New macro.
19141 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19142 (strtof64_l): Define and later undefine as macro. Define as weak
19143 alias if [!USE_WIDE_CHAR].
19144 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19145 (wcstof64_l): Define and later undefine as macro. Define as weak
19146 alias if [USE_WIDE_CHAR].
19147 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19148 (strtof32x_l): Define and later undefine as macro. Define as weak
19149 alias if [!USE_WIDE_CHAR].
19150 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19151 (wcstof32x_l): Define and later undefine as macro. Define as weak
19152 alias if [USE_WIDE_CHAR].
19153
19154 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19155
19156 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19157 (reduced): Use ones as double instead of integer.
19158
19159 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19160
19161 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19162
19163 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19164
19165 * stdlib/strfromd.c: Include <bits/floatn.h>.
19166 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19167 and later undefine as macro and define as weak alias.
19168 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19169 Likewise.
19170
19171 * math/test-float32x.h: New file.
19172 * math/test-float64.h: Likewise.
19173
19174 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19175 (libm_alias_double_other_r_f64): New macro.
19176 (libm_alias_double_other_r_f32x): Likewise.
19177 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19178 libm_alias_double_other_r_f32x.
19179 (libm_alias_double_r): Use semicolon before call to
19180 libm_alias_double_other_r.
19181 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19182 <bits/floatn.h>.
19183 (libm_alias_double_other_r_f64): New macro.
19184 (libm_alias_double_other_r_f32x): Likewise.
19185 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19186 libm_alias_double_other_r_f32x.
19187
19188 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19189
19190 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19191 int.
19192 (SINF_FUNC): Likewise. Replace floor with simple casts.
19193
19194 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19195
19196 [BZ #22517]
19197 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19198 and to the list of locales to be built for testing.
19199 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19200 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19201 and build the collation rules upon that.
19202
19203 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19204
19205 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19206 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19207 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19208 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19209 instead of __insn__xxx.
19210 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19211 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19212 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19213 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19214 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19215 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19216
19217 2017-12-05 Florian Weimer <fweimer@redhat.com>
19218
19219 Linux: Implement interfaces for memory protection keys
19220 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19221 xsignal, xsysconf.
19222 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19223 * support/xunistd.h (xsysconf): Declare.
19224 * support/xraise.c: New file.
19225 * support/xsigaction.c: Likewise.
19226 * support/xsignal.c: Likewise.
19227 * support/xsysconf.c: Likewise.
19228 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19229 pkey_set, pkey_get, pkey_mprotect.
19230 [misc] (tests): Add tst-pkey.
19231 (tst-pkey): Link with -lpthread.
19232 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19233 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19234 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19235 (PKEY_DISABLE_WRITE): Define.
19236 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19237 Declare.
19238 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19239 (SEGV_PKUERR): Add.
19240 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19241 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19242 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19243 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19244 Add.
19245 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19246 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19247 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19248 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19249 * sysdeps/unix/sysv/linux/**.abilist: Update.
19250
19251 2017-12-05 Florian Weimer <fweimer@redhat.com>
19252
19253 * support/tst-test_compare.c (subprocess): Use long long instead
19254 of long argument for consistent type width across 32-bit and
19255 64-bit architectures.
19256 (do_test): Adjust expected output.
19257
19258 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19259
19260 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19261 (cosf): Define using libm_alias_float.
19262 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19263 (fabsf): Define using libm_alias_float.
19264 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19265 (fmaf): Define using libm_alias_float.
19266 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19267 (rintf): Define using libm_alias_float.
19268 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19269 (sinf): Define using libm_alias_float.
19270 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19271 <libm-alias-float.h>.
19272 (modff): Define using libm_alias_float.
19273 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19274 <libm-alias-float.h>.
19275 (logbf): Define using libm_alias_float.
19276 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19277 <libm-alias-float.h>.
19278 (ceilf): Define using libm_alias_float.
19279 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19280 <libm-alias-float.h>.
19281 (copysignf): Define using libm_alias_float.
19282 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19283 <libm-alias-float.h>.
19284 (floorf): Define using libm_alias_float.
19285 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19286 <libm-alias-float.h>.
19287 (llrintf): Define using libm_alias_float.
19288 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19289 <libm-alias-float.h>.
19290 (llroundf): Define using libm_alias_float.
19291 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19292 <libm-alias-float.h>.
19293 (lrintf): Define using libm_alias_float.
19294 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19295 <libm-alias-float.h>.
19296 (lroundf): Define using libm_alias_float.
19297 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19298 <libm-alias-float.h>.
19299 (nearbyintf): Define using libm_alias_float.
19300 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19301 <libm-alias-float.h>.
19302 (rintf): Define using libm_alias_float.
19303 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19304 <libm-alias-float.h>.
19305 (roundf): Define using libm_alias_float.
19306 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19307 <libm-alias-float.h>.
19308 (truncf): Define using libm_alias_float.
19309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19310 Include <libm-alias-float.h>.
19311 (ceilf): Define using libm_alias_float.
19312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19313 Include <libm-alias-float.h>.
19314 (copysignf): Define using libm_alias_float.
19315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19316 Include <libm-alias-float.h>.
19317 (floorf): Define using libm_alias_float.
19318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19319 Include <libm-alias-float.h>.
19320 (llrintf): Define using libm_alias_float.
19321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19322 Include <libm-alias-float.h>.
19323 (llroundf): Define using libm_alias_float.
19324 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19325 Include <libm-alias-float.h>.
19326 (logbf): Define using libm_alias_float.
19327 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19328 Include <libm-alias-float.h>.
19329 (lrintf): Define using libm_alias_float.
19330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19331 Include <libm-alias-float.h>.
19332 (lroundf): Define using libm_alias_float.
19333 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19334 Include <libm-alias-float.h>.
19335 (modff): Define using libm_alias_float.
19336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19337 Include <libm-alias-float.h>.
19338 (roundf): Define using libm_alias_float.
19339 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19340 Include <libm-alias-float.h>.
19341 (truncf): Define using libm_alias_float.
19342 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19343 <libm-alias-float.h>.
19344 (llrintf): Define using libm_alias_float.
19345 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19346 <libm-alias-float.h>.
19347 (llroundf): Define using libm_alias_float.
19348 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19349 <libm-alias-float.h>.
19350 (ceilf): Define using libm_alias_float.
19351 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19352 <libm-alias-float.h>.
19353 (floorf): Define using libm_alias_float.
19354 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19355 <libm-alias-float.h>.
19356 (llroundf): Define using libm_alias_float.
19357 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19358 <libm-alias-float.h>.
19359 (lroundf): Define using libm_alias_float.
19360 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19361 <libm-alias-float.h>.
19362 (roundf): Define using libm_alias_float.
19363 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19364 <libm-alias-float.h>.
19365 (truncf): Define using libm_alias_float.
19366 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19367 <libm-alias-float.h>.
19368 (copysignf): Define using libm_alias_float.
19369 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19370 <libm-alias-float.h>.
19371 (llrintf): Define using libm_alias_float.
19372 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19373 <libm-alias-float.h>.
19374 (llroundf): Define using libm_alias_float.
19375 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19376 <libm-alias-float.h>.
19377 (lrintf): Define using libm_alias_float.
19378 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19379 <libm-alias-float.h>.
19380 (lroundf): Define using libm_alias_float.
19381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19382 <libm-alias-float.h>.
19383 (ceilf): Define using libm_alias_float.
19384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19385 <libm-alias-float.h>.
19386 (copysignf): Define using libm_alias_float.
19387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19388 <libm-alias-float.h>.
19389 (cosf): Define using libm_alias_float.
19390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19391 <libm-alias-float.h>.
19392 (floorf): Define using libm_alias_float.
19393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19394 <libm-alias-float.h>.
19395 (llrintf): Define using libm_alias_float.
19396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19397 <libm-alias-float.h>.
19398 (llroundf): Define using libm_alias_float.
19399 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19400 <libm-alias-float.h>.
19401 (logbf): Define using libm_alias_float.
19402 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19403 <libm-alias-float.h>.
19404 (modff): Define using libm_alias_float.
19405 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19406 <libm-alias-float.h>.
19407 (roundf): Define using libm_alias_float.
19408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19409 <libm-alias-float.h>.
19410 (sinf): Define using libm_alias_float.
19411 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19412 <libm-alias-float.h>.
19413 (truncf): Define using libm_alias_float.
19414 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19415 <libm-alias-float.h>.
19416 (ceilf): Define using libm_alias_float.
19417 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19418 <libm-alias-float.h>.
19419 (copysignf): Define using libm_alias_float.
19420 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19421 <libm-alias-float.h>.
19422 (floorf): Define using libm_alias_float.
19423 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19424 <libm-alias-float.h>.
19425 (llrintf): Define using libm_alias_float.
19426 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19427 <libm-alias-float.h>.
19428 (llroundf): Define using libm_alias_float.
19429 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19430 <libm-alias-float.h>.
19431 (nearbyintf): Define using libm_alias_float.
19432 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19433 <libm-alias-float.h>.
19434 (rintf): Define using libm_alias_float.
19435 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19436 <libm-alias-float.h>.
19437 (roundf): Define using libm_alias_float.
19438 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19439 <libm-alias-float.h>.
19440 (truncf): Define using libm_alias_float.
19441 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19442 <libm-alias-float.h>.
19443 (ceilf): Define using libm_alias_float.
19444 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19445 <libm-alias-float.h>.
19446 (floorf): Define using libm_alias_float.
19447 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19448 <libm-alias-float.h>.
19449 (llroundf): Define using libm_alias_float.
19450 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19451 <libm-alias-float.h>.
19452 (roundf): Define using libm_alias_float.
19453 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19454 <libm-alias-float.h>.
19455 (truncf): Define using libm_alias_float.
19456 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19457 <libm-alias-float.h>.
19458 (copysignf): Define using libm_alias_float.
19459 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19460 <libm-alias-float.h>.
19461 (llrintf): Define using libm_alias_float.
19462 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19463 <libm-alias-float.h>.
19464 (llroundf): Define using libm_alias_float.
19465 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19466 <libm-alias-float.h>.
19467 (cosf): Define using libm_alias_float.
19468 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19469 <libm-alias-float.h>.
19470 (llrintf): Define using libm_alias_float.
19471 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19472 <libm-alias-float.h>.
19473 (llroundf): Define using libm_alias_float.
19474 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19475 <libm-alias-float.h>.
19476 (sinf): Define using libm_alias_float.
19477
19478 2017-12-04 Florian Weimer <fweimer@redhat.com>
19479
19480 * support/check.h (TEST_COMPARE): Define.
19481 (support_test_compare_failure): Declare.
19482 * support/Makefile (libsupport-routines): Add
19483 support_test_compare_failure.
19484 (tests): Add tst-test_compare.
19485 * support /support_test_compare_failure.c: New file.
19486 * support/tst-test_compare.c: Likewise.
19487
19488 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19489
19490 [BZ #22527]
19491 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19492 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19493 available, this rewrite of the collation rules does reproduce
19494 the test file in the same order.
19495
19496 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19497
19498 [BZ #10580]
19499 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19500 digraphs in the month and day names. Using single code points for
19501 digraphs is deprecated. While there are dedicated Unicode
19502 codepoints, for the digraphs, these are included for backwards
19503 compatibility and modern texts use a sequence of Basic Latin
19504 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19505 This makes the month and day names agree exactly with CLDR now,
19506 CLDR does not use the single code points for the digraphs either.
19507
19508 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19509
19510 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19511
19512 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19513
19514 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19515 of floor.
19516
19517 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19518
19519 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19520 Define only for libc.so.
19521
19522 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19523
19524 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19525 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19526 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19527 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19528 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19529
19530 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19531
19532 [BZ #5997]
19533 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19534
19535 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19536
19537 [BZ libc/19170]
19538 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19539 PREINIT_FUNCTION_WEAK is nonzero.
19540 (gmon_initializer): New function. Put procedure label for it in
19541 .init_array section.
19542 (_init): Don't call PREINIT_FUNCTION.
19543 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19544 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19545 value when map argument is null.
19546
19547 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19548 depi instruction from PIC pc-relative sequence.
19549 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19550 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19551 (elf_machine_load_address): Likewise.
19552 (elf_machine_runtime_setup): Likewise.
19553
19554 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19555
19556 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19557 <libm-alias-double.h>.
19558 (logb): Define using libm_alias_double.
19559 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19560 <libm-alias-double.h>.
19561 (copysign): Define using libm_alias_double.
19562 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19563 <libm-alias-double.h>.
19564 (llrint): Define using libm_alias_double.
19565 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19566 <libm-alias-double.h>.
19567 (llround): Define using libm_alias_double.
19568 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19569 <libm-alias-double.h>.
19570 (lrint): Define using libm_alias_double.
19571 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19572 <libm-alias-double.h>.
19573 (lround): Define using libm_alias_double.
19574 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19575 Include <libm-alias-double.h>.
19576 (copysign): Define using libm_alias_double.
19577 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19578 Include <libm-alias-double.h>.
19579 (llrint): Define using libm_alias_double.
19580 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19581 Include <libm-alias-double.h>.
19582 (llround): Define using libm_alias_double.
19583 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19584 <libm-alias-double.h>.
19585 (logb): Define using libm_alias_double.
19586 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19587 Include <libm-alias-double.h>.
19588 (lrint): Define using libm_alias_double.
19589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19590 Include <libm-alias-double.h>.
19591 (lround): Define using libm_alias_double.
19592 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19593 <libm-alias-double.h>.
19594 (llrint): Define using libm_alias_double.
19595 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19596 <libm-alias-double.h>.
19597 (llround): Define using libm_alias_double.
19598 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19599 <libm-alias-double.h>.
19600 (llround): Define using libm_alias_double.
19601 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19602 <libm-alias-double.h>.
19603 (lround): Define using libm_alias_double.
19604 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19605 <libm-alias-double.h>.
19606 (copysign): Define using libm_alias_double.
19607 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19608 <libm-alias-double.h>.
19609 (llrint): Define using libm_alias_double.
19610 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19611 <libm-alias-double.h>.
19612 (llround): Define using libm_alias_double.
19613 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19614 <libm-alias-double.h>.
19615 (lrint): Define using libm_alias_double.
19616 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19617 <libm-alias-double.h>.
19618 (lround): Define using libm_alias_double.
19619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19620 <libm-alias-double.h>.
19621 (copysign): Define using libm_alias_double.
19622 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19623 <libm-alias-double.h>.
19624 (llrint): Define using libm_alias_double.
19625 (lrint): Likewise.
19626 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19627 <libm-alias-double.h>.
19628 (llround): Define using libm_alias_double.
19629 (lround): Likewise.
19630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19631 <libm-alias-double.h>.
19632 (logb): Define using libm_alias_double.
19633 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19634 <libm-alias-double.h>.
19635 (copysign): Define using libm_alias_double.
19636 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19637 <libm-alias-double.h>.
19638 (llrint): Define using libm_alias_double.
19639 (lrint): Likewise.
19640 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19641 <libm-alias-double.h>.
19642 (llround): Define using libm_alias_double.
19643 (lround): Likewise.
19644 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19645 <libm-alias-double.h>.
19646 (llround): Define using libm_alias_double.
19647 (lround): Likewise.
19648 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19649 <libm-alias-double.h>.
19650 (copysign): Define using libm_alias_double.
19651 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19652 <libm-alias-double.h>.
19653 (llrint): Define using libm_alias_double.
19654 (lrint): Likewise.
19655 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19656 <libm-alias-double.h>.
19657 (llround): Define using libm_alias_double.
19658 (lround): Likewise.
19659 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19660 <libm-alias-double.h>.
19661 (llrint): Define using libm_alias_double.
19662 (lrint): Likewise.
19663 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19664 <libm-alias-double.h>.
19665 (llround): Define using libm_alias_double.
19666 (lround): Likewise.
19667
19668 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19669
19670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19671 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19672 compat symbol based on llround.
19673
19674 * sysdeps/powerpc/power7/fpu/s_logb.c
19675 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19676 symbol based on __logb, not on logb.
19677 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19678 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19680 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19681
19682 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19683 (rint): Define using libm_alias_double.
19684 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19685 <libm-alias-double.h>.
19686 (modf): Define using libm_alias_double.
19687 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19688 <libm-alias-double.h>.
19689 (ceil): Define using libm_alias_double.
19690 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19691 <libm-alias-double.h>.
19692 (floor): Define using libm_alias_double.
19693 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19694 <libm-alias-double.h>.
19695 (nearbyint): Define using libm_alias_double.
19696 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19697 <libm-alias-double.h>.
19698 (rint): Define using libm_alias_double.
19699 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19700 <libm-alias-double.h>.
19701 (round): Define using libm_alias_double.
19702 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19703 <libm-alias-double.h>.
19704 (trunc): Define using libm_alias_double.
19705 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19706 <libm-alias-double.h>.
19707 (ceil): Define using libm_alias_double.
19708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19709 Include <libm-alias-double.h>.
19710 (floor): Define using libm_alias_double.
19711 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19712 <libm-alias-double.h>.
19713 (modf): Define using libm_alias_double.
19714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19715 Include <libm-alias-double.h>.
19716 (round): Define using libm_alias_double.
19717 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19718 Include <libm-alias-double.h>.
19719 (trunc): Define using libm_alias_double.
19720 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19721 <libm-alias-double.h>.
19722 (ceil): Define using libm_alias_double.
19723 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19724 <libm-alias-double.h>.
19725 (floor): Define using libm_alias_double.
19726 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19727 <libm-alias-double.h>.
19728 (round): Define using libm_alias_double.
19729 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19730 <libm-alias-double.h>.
19731 (trunc): Define using libm_alias_double.
19732 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19733 <libm-alias-double.h>.
19734 (ceil): Define using libm_alias_double.
19735 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19736 <libm-alias-double.h>.
19737 (floor): Define using libm_alias_double.
19738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19739 <libm-alias-double.h>.
19740 (modf): Define using libm_alias_double.
19741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19742 <libm-alias-double.h>.
19743 (round): Define using libm_alias_double.
19744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19745 <libm-alias-double.h>.
19746 (trunc): Define using libm_alias_double.
19747 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19748 <libm-alias-double.h>.
19749 (ceil): Define using libm_alias_double.
19750 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19751 <libm-alias-double.h>.
19752 (floor): Define using libm_alias_double.
19753 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19754 <libm-alias-double.h>.
19755 (nearbyint): Define using libm_alias_double.
19756 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19757 <libm-alias-double.h>.
19758 (rint): Define using libm_alias_double.
19759 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19760 <libm-alias-double.h>.
19761 (round): Define using libm_alias_double.
19762 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19763 <libm-alias-double.h>.
19764 (trunc): Define using libm_alias_double.
19765 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19766 <libm-alias-double.h>.
19767 (ceil): Define using libm_alias_double.
19768 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19769 <libm-alias-double.h>.
19770 (floor): Define using libm_alias_double.
19771 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19772 <libm-alias-double.h>.
19773 (round): Define using libm_alias_double.
19774 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19775 <libm-alias-double.h>.
19776 (trunc): Define using libm_alias_double.
19777
19778 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19779 (fabs): Define using libm_alias_double.
19780 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19781 (fma): Define using libm_alias_double.
19782 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19783 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19784 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19785 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19786
19787 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19788
19789 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19790
19791 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19792 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19793 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19794
19795 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19796 due redirect macro.
19797
19798 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19799
19800 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19801
19802 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19803
19804 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19805 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19806 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19807 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19808
19809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19810 (libm-sysdep_routines): Add s_nearbyintf-generic and
19811 s_nearbyint-generic.
19812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19813 New file.
19814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19815 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19816 Likewise.
19817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19818 Likewise.
19819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19820 file.
19821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19822 Likewise.
19823
19824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19825 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19827 file.
19828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19829 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19830 Likewise.
19831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19832 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19834
19835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19836 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19838 file.
19839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19841 Likewise.
19842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19844 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19845
19846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19847 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19849 file.
19850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19852 Likewise.
19853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19854 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19856
19857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19858 (sysdep_calls): New rule.
19859 (sysdep_routines): Use sysdep_calls as base.
19860 (libm-sysdep_routines): Add generic rule for symbols shared with
19861 libc. Add s_copysign-generic and s_copysign-generic objects.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19863 New file.
19864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19865 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19866 Likewise.
19867 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19870
19871 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19872
19873 [BZ #22519]
19874 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19875 the list of locales to be built for testing.
19876 * localedata/is_IS.UTF-8.in: New file.
19877 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19878 on iso14651_t1.
19879
19880 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19881
19882 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19883 <libm-alias-float.h>.
19884 (fabsf): Define using libm_alias_float.
19885
19886 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19887
19888 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19889
19890 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19891
19892 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19893 <libm-alias-float.h>.
19894 (fabsf): Define using libm_alias_float.
19895 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19896 <libm-alias-float.h>.
19897 (lrintf): Define using libm_alias_float.
19898 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19899 <libm-alias-float.h>.
19900 (rintf): Define using libm_alias_float.
19901
19902 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19903 <libm-alias-double.h>.
19904 (fabs): Define using libm_alias_double.
19905 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19906 <libm-alias-double.h>.
19907 (lrint): Define using libm_alias_double.
19908 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19909 <libm-alias-double.h>.
19910 (rint): Define using libm_alias_double.
19911
19912 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19913 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19914 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19915 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19916 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19917 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19918 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19919 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19920 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19921 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19922 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19923 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19924 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19925 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19926 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19927 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19928 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19929 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19930 s_atan_template.c.
19931 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19932 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19933 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19934 s_ceil_template.c.
19935 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19936 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19937 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19938 s_cos_template.c.
19939 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19940 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19941 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19942 s_expm1_template.c.
19943 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19944 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19945 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19946 s_fabs_template.c.
19947 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19948 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19949 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19950 s_floor_template.c.
19951 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19952 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19953 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19954 s_frexp_template.c.
19955 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19956 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19957 s_lrint_template.c.
19958 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19959 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19960 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19961 s_modf_template.c.
19962 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19963 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19964 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19965 s_nearbyint_template.c.
19966 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19967 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19968 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19969 s_remquo_template.c.
19970 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19971 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19972 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19973 s_rint_template.c.
19974 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19975 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19976 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19977 s_sin_template.c.
19978 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19979 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19980 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19981 s_sincos_template.c.
19982 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19983 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19984 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19985 s_tan_template.c.
19986 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19987 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19988 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19989 s_tanh_template.c.
19990 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19991 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19992 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19993 s_trunc_template.c.
19994 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19995 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19996 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19997 s_atan.c instead of including s_atan.c.
19998 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19999 s_atanf.c instead of including s_atanf.c.
20000 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20001 s_atanl.c instead of including s_atanl.c.
20002 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20003 instead of s_atan.c.
20004 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20005 instead of s_atanf.c.
20006 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20007 instead of s_atanl.c.
20008
20009 * scripts/update-copyrights: Do not handle intl/plural.c
20010 specially.
20011
20012 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20013
20014 [BZ #22432]
20015 * configure.ac (BISON): Require to be present.
20016 * configure: Regenerated.
20017 * intl/Makefile (generated): Add plural.c.
20018 [$(BISON) != no]: Make code unconditional.
20019 (plural.c): Change rule to $(objpfx)plural.c.
20020 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20021 * intl/plural.c: Remove.
20022 * manual/install.texi (Tools for Compilation): Document bison as
20023 required.
20024 * INSTALL: Regenerated.
20025
20026 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20027
20028 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20029 <libm-alias-double.h>.
20030 (llrint): Define using libm_alias_double.
20031 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20032 <libm-alias-float.h>.
20033 (llrintf): Define using libm_alias_float.
20034 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20035 <libm-alias-ldouble.h>.
20036 (llrintl): Define using libm_alias_ldouble.
20037
20038 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20039 declare_mgen_alias instead of weak_alias.
20040 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20041 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20042 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20043
20044 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20045
20046 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20047 Add add_n-generic.
20048 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20049 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20050 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20051
20052 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20053 Add submul_1-generic.
20054 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20055 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20056 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20057
20058 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20059 Add addmul_1-generic.
20060 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20061 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20062 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20063
20064 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20065 Add sub_n-generic.
20066 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20067 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20068 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20069
20070 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20071 Add mul_1-generic.
20072 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20073 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20074 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20075
20076 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20077
20078 According to CLDR, collation rules for Serbian and Bosnian
20079 should be the same as for Croatian.
20080
20081 [BZ #22534]
20082 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20083 and to the list of locales to be built for testing.
20084 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20085 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20086 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20087 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20088
20089 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20090
20091 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20092 to make test case pass.
20093 * localedata/hr_HR.UTF-8.in: Add more test strings.
20094
20095 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20096
20097 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20098
20099 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20100
20101 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20102 the list of locales to built for testing.
20103 * localedata/hr_HR.UTF-8.in: New file.
20104
20105 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20106
20107 [BZ #10580]
20108 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20109 iso14651_t1.
20110 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20111 CLDR (except use ligatures for the digraphs, CLDR does not use
20112 the ligatures), add first_workday, some fixes in the date and time
20113 formats.
20114 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20115 for Đ and đ.
20116 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20117 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20118 Add int_p_cs_precedes and int_n_cs_precedes.
20119 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20120 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20121 LC_MONETARY now).
20122 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20123 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20124 name_miss.
20125 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20126 and lang_lib. Change postal_fmt.
20127
20128 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20129
20130 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20131 <setjmp.h>.
20132 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20133 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20134 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20135 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20136 * sysdeps/generic/setjmpP.h: New file.
20137 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20138 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20139 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20140 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20141 Add jmp_buf-ssp.sym.
20142 (tests): Add tst-saved_mask-1.
20143
20144 2017-11-30 Arjun Shankar <arjun@redhat.com>
20145
20146 [BZ #22375]
20147 CVE-2017-17426
20148 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20149 instead of request2size.
20150
20151 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20152
20153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20154 (__lllrint): Remove alias.
20155 (lllrint): Likewise.
20156 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20157 (__lllrintf): Likewise.
20158 (lllrintf): Likewise.
20159
20160 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20161 <libm-alias-float.h>.
20162 (copysignf): Define using libm_alias_float.
20163 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20164 <libm-alias-float.h>.
20165 (fabsf): Define using libm_alias_float.
20166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20167 Include <libm-alias-float.h>.
20168 (copysignf): Define using libm_alias_float.
20169 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20170 <libm-alias-float.h>.
20171 (fabsf): Define using libm_alias_float.
20172 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20173 <libm-alias-float.h>.
20174 (fdimf): Define using libm_alias_float.
20175 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20176 <libm-alias-float.h>.
20177 (fmaf): Define using libm_alias_float.
20178 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20179 <libm-alias-float.h>.
20180 (llrintf): Define using libm_alias_float.
20181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20182 Include <libm-alias-float.h>.
20183 (nearbyintf): Define using libm_alias_float.
20184 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20185 <libm-alias-float.h>.
20186 (rintf): Define using libm_alias_float.
20187 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20188 <libm-alias-float.h>.
20189 (llrintf): Define using libm_alias_float.
20190 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20191 <libm-alias-float.h>.
20192 (lrintf): Define using libm_alias_float.
20193 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20194 <libm-alias-float.h>.
20195 (nearbyintf): Define using libm_alias_float.
20196 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20197 <libm-alias-float.h>.
20198 (rintf): Define using libm_alias_float.
20199 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20200 <libm-alias-float.h>.
20201 (ceilf): Define using libm_alias_float.
20202 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20203 <libm-alias-float.h>.
20204 (floorf): Define using libm_alias_float.
20205 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20206 <libm-alias-float.h>.
20207 (fmaf): Define using libm_alias_float.
20208 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20209 <libm-alias-float.h>.
20210 (lrintf): Define using libm_alias_float.
20211 (llrintf): Likewise.
20212 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20213 <libm-alias-float.h>.
20214 (nearbyintf): Define using libm_alias_float.
20215 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20216 <libm-alias-float.h>.
20217 (rintf): Define using libm_alias_float.
20218 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20219 <libm-alias-float.h>.
20220 (truncf): Define using libm_alias_float.
20221 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20222 <libm-alias-float.h>.
20223 (copysignf): Define using libm_alias_float.
20224 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20225 <libm-alias-float.h>.
20226 (fabsf): Define using libm_alias_float.
20227 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20228 <libm-alias-float.h>.
20229 (lrintf): Define using libm_alias_float.
20230 (llrintf): Likewise.
20231 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20232 <libm-alias-float.h>.
20233 (nearbyintf): Define using libm_alias_float.
20234 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20235 <libm-alias-float.h>.
20236 (rintf): Define using libm_alias_float.
20237
20238 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20239
20240 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20241 <libm-alias-double.h>.
20242 (copysign): Define using libm_alias_double.
20243 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20244 <libm-alias-double.h>.
20245 (fabs): Define using libm_alias_double.
20246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20247 Include <libm-alias-double.h>.
20248 (copysign): Define using libm_alias_double.
20249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20250 <libm-alias-double.h>.
20251 (fabs): Define using libm_alias_double.
20252 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20253 <libm-alias-double.h>.
20254 (fdim): Define using libm_alias_double.
20255 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20256 <libm-alias-double.h>.
20257 (fma): Define using libm_alias_double.
20258 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20259 <libm-alias-double.h>.
20260 (llrint): Define using libm_alias_double.
20261 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20262 Include <libm-alias-double.h>.
20263 (nearbyint): Define using libm_alias_double.
20264 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20265 <libm-alias-double.h>.
20266 (rint): Define using libm_alias_double.
20267 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20268 <libm-alias-double.h>.
20269 (fabs): Define using libm_alias_double.
20270 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20271 <libm-alias-double.h>.
20272 (llrint): Define using libm_alias_double.
20273 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20274 <libm-alias-double.h>.
20275 (nearbyint): Define using libm_alias_double.
20276 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20277 <libm-alias-double.h>.
20278 (rint): Define using libm_alias_double.
20279 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20280 <libm-alias-double.h>.
20281 (ceil): Define using libm_alias_double.
20282 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20283 <libm-alias-double.h>.
20284 (floor): Define using libm_alias_double.
20285 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20286 <libm-alias-double.h>.
20287 (fma): Define using libm_alias_double.
20288 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20289 <libm-alias-double.h>.
20290 (lrint): Define using libm_alias_double.
20291 (llrint): Likewise.
20292 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20293 <libm-alias-double.h>.
20294 (nearbyint): Define using libm_alias_double.
20295 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20296 <libm-alias-double.h>.
20297 (rint): Define using libm_alias_double.
20298 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20299 <libm-alias-double.h>.
20300 (trunc): Define using libm_alias_double.
20301 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20302 <libm-alias-double.h>.
20303 (copysign): Define using libm_alias_double.
20304 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20305 <libm-alias-double.h>.
20306 (fabs): Define using libm_alias_double.
20307 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20308 <libm-alias-double.h>.
20309 (lrint): Define using libm_alias_double.
20310 (llrint): Likewise.
20311 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20312 <libm-alias-double.h>.
20313 (nearbyint): Define using libm_alias_double.
20314 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20315 <libm-alias-double.h>.
20316 (rint): Define using libm_alias_double.
20317
20318 [BZ #22229]
20319 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20320 <math_ldbl_opt.h>.
20321 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20322
20323 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20324 SPARC --disable-multi-arch glibc variants.
20325
20326 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20327 <libm-alias-float.h>.
20328 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20329 if [SHARED].
20330 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20331 <libm-alias-float.h>.
20332 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20333 if [SHARED].
20334 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20335 <libm-alias-float.h>.
20336 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20337 if [SHARED].
20338 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20339 <libm-alias-float.h>.
20340 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20341 if [SHARED].
20342 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20343 <libm-alias-float.h>.
20344 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20345 if [SHARED].
20346 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20347 <libm-alias-float.h>.
20348 (ceilf): Define using libm_alias_float.
20349 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20350 <libm-alias-float.h>.
20351 (floorf): Define using libm_alias_float.
20352 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20353 <libm-alias-float.h>.
20354 (fmaf): Define using libm_alias_float.
20355 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20356 <libm-alias-float.h>.
20357 (nearbyintf): Define using libm_alias_float.
20358 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20359 <libm-alias-float.h>.
20360 (rintf): Define using libm_alias_float.
20361 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20362 <libm-alias-float.h>.
20363 (truncf): Define using libm_alias_float.
20364 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20365 (copysignf): Define using libm_alias_float.
20366 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20367 (cosf): Define using libm_alias_float.
20368 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20369 (fabsf): Define using libm_alias_float.
20370 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20371 (fmaxf): Define using libm_alias_float.
20372 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20373 (fminf): Define using libm_alias_float.
20374 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20375 (llrintf): Define using libm_alias_float.
20376 [!__ILP32__] (lrintf): Likewise.
20377 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20378 (sincosf): Define using libm_alias_float.
20379 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20380 (sinf): Define using libm_alias_float.
20381 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20382 (lrintf): Define using libm_alias_float.
20383
20384 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20385 <libm-alias-double.h>.
20386 (atan): Define using libm_alias_double.
20387 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20388 <libm-alias-double.h>.
20389 (ceil): Define using libm_alias_double.
20390 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20391 <libm-alias-double.h>.
20392 (floor): Define using libm_alias_double.
20393 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20394 <libm-alias-double.h>.
20395 (fma): Define using libm_alias_double.
20396 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20397 <libm-alias-double.h>.
20398 (nearbyint): Define using libm_alias_double.
20399 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20400 <libm-alias-double.h>.
20401 (rint): Define using libm_alias_double.
20402 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20403 <libm-alias-double.h>.
20404 (sin): Define using libm_alias_double.
20405 (cos): Likewise.
20406 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20407 <libm-alias-double.h>.
20408 (tan): Define using libm_alias_double.
20409 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20410 <libm-alias-double.h>.
20411 (trunc): Define using libm_alias_double.
20412 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20413 (copysign): Define using libm_alias_double.
20414 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20415 (fabs): Define using libm_alias_double.
20416 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20417 (fmax): Define using libm_alias_double.
20418 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20419 (fmin): Define using libm_alias_double.
20420 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20421 (llrint): Define using libm_alias_double.
20422 [!__ILP32__] (lrint): Likewise.
20423 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20424 (lrint): Define using libm_alias_double.
20425
20426 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20427
20428 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20429 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20430 objects.
20431 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20432 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20433 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20436 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20437
20438 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20439 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20440 objects.
20441 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20442 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20443 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20444 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20445 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20446 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20447
20448 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20449 (libm-sysdep_routines): Add s_nearbyint-generic and
20450 s_nearbyintf-generic objects.
20451 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20452 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20453 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20454 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20455 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20457
20458 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20459 Add s_finitef-generic and s_finite-generic objects.
20460 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20461 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20462 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20463 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20464 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20465 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20466
20467 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20468 Add s_isinff-generic and s_isinf-generic objects.
20469 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20470 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20471 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20472 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20473 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20474 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20475
20476 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20477 Add s_isnanf-generic and s_isnan-generic objects.
20478 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20479 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20481 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20482 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20483 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20484
20485 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20486 macro.
20487 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20488 rule.
20489 (sysdep_routines): Use sysdep_calls as base.
20490 (libm-sysdep_routines): Add generic rule for symbols shared with
20491 libc. Add s_signbit-generic and s_signbitf-generic objects.
20492 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20493 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20494 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20495 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20496 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20497 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20498
20499 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20500
20501 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20502 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20503 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20504 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20505 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20506 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20507 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20508 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20509 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20510 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20511 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20512 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20513 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20514 libm_alias_float_r.
20515 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20516 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20517 (logf): Likewise.
20518 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20519 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20520 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20521 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20522 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20523 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20524 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20525 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20526 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20527 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20528 libm_alias_float.
20529 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20530 (cosf): Likewise.
20531 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20532 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20533 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20534 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20535 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20536 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20537 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20538 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20539 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20540 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20541 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20542 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20543 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20544 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20545 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20546 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20547 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20548 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20549 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20550 libm_alias_float.
20551 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20552 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20553 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20554 * sysdeps/ia64/fpu/w_lgammaf_main.c
20555 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20556 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20557
20558 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20559 Alexandre Oliva <aoliva@redhat.com>
20560
20561 [BZ #17750]
20562 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20563 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20564 accents sorting.
20565 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20566 sorting.
20567 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20568 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20569 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20570 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20571 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20572 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20573 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20574 instead of “ifdef DIACRIT_BACKWARD”.
20575
20576 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20577
20578 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20579 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20580 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20581 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20582 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20583 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20584 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20585 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20586 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20587 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20588 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20589 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20590 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20591 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20592 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20593 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20594 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20595 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20596 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20597 ($(have-as-vis3) == yes): Remove conditional.
20598 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20599 Likewise.
20600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20601 file.
20602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20603 file.
20604 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20605 file.
20606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20607 file.
20608 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20609 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20610 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20611 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20612 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20613 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20614 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20615 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20616
20617 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20618
20619 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20620 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20621 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20622 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20623 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20624 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20625 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20626 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20627 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20628 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20629 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20630 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20631 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20632 libm_alias_double_r.
20633 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20634 (log): Likewise.
20635 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20636 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20637 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20638 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20639 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20640 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20641 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20642 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20643 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20644 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20645 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20646 libm_alias_double.
20647 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20648 (cos): Likewise.
20649 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20650 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20651 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20652 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20653 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20654 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20655 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20656 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20657 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20658 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20659 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20660 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20661 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20662 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20663 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20664 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20665 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20666 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20667 libm_alias_double.
20668 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20669 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20670 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20671 * sysdeps/ia64/fpu/w_lgamma_main.c
20672 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20673 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20674
20675 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20676
20677 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20678 address of $global$ into %dp register earlier. Use pc-relative
20679 instruction sequence for PIC case.
20680
20681 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20682
20683 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20684 (asinhf): Define using libm_alias_float.
20685 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20686 (atanf): Define using libm_alias_float.
20687 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20688 (cbrtf): Define using libm_alias_float.
20689 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20690 (ceilf): Define using libm_alias_float.
20691 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20692 (copysignf): Define using libm_alias_float.
20693 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20694 (expm1f): Define using libm_alias_float.
20695 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20696 (fabsf): Define using libm_alias_float.
20697 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20698 (floorf): Define using libm_alias_float.
20699 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20700 (fmaxf): Define using libm_alias_float.
20701 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20702 (fminf): Define using libm_alias_float.
20703 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20704 (frexpf): Define using libm_alias_float.
20705 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20706 (llrintf): Define using libm_alias_float.
20707 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20708 (logbf): Define using libm_alias_float.
20709 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20710 (lrintf): Define using libm_alias_float.
20711 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20712 (nearbyintf): Define using libm_alias_float.
20713 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20714 (remquof): Define using libm_alias_float.
20715 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20716 (rintf): Define using libm_alias_float.
20717 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20718 (truncf): Define using libm_alias_float.
20719 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20720 <libm-alias-float.h>.
20721 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20722 if [SHARED].
20723 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20724 <libm-alias-float.h>.
20725 (expf): Define using libm_alias_float, or libm_alias_float_other
20726 if [SHARED].
20727 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20728 <libm-alias-float.h>.
20729 (log2f): Define using libm_alias_float, or libm_alias_float_other
20730 if [SHARED].
20731 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20732 <libm-alias-float.h>.
20733 (logf): Define using libm_alias_float, or libm_alias_float_other
20734 if [SHARED].
20735 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20736 <libm-alias-float.h>.
20737 (powf): Define using libm_alias_float, or libm_alias_float_other
20738 if [SHARED].
20739 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20740 <libm-alias-float.h>.
20741 (cosf): Define using libm_alias_float.
20742 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20743 <libm-alias-float.h>.
20744 (sincosf): Define using libm_alias_float.
20745 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20746 <libm-alias-float.h>.
20747 (sinf): Define using libm_alias_float.
20748 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20749 (fmaxf): Define using libm_alias_float.
20750 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20751 (fminf): Define using libm_alias_float.
20752 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20753 <libm-alias-float.h>.
20754 (fmaf): Define using libm_alias_float.
20755
20756 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20757 (asinh): Define using libm_alias_double.
20758 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20759 (atan): Define using libm_alias_double.
20760 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20761 (cbrt): Define using libm_alias_double.
20762 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20763 (ceil): Define using libm_alias_double.
20764 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20765 (copysign): Define using libm_alias_double.
20766 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20767 (expm1): Define using libm_alias_double.
20768 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20769 (fabs): Define using libm_alias_double.
20770 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20771 (fdim): Define using libm_alias_double.
20772 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20773 (floor): Define using libm_alias_double.
20774 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20775 (fmax): Define using libm_alias_double.
20776 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20777 (fmin): Define using libm_alias_double.
20778 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20779 (frexp): Define using libm_alias_double.
20780 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20781 (llrint): Define using libm_alias_double.
20782 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20783 (logb): Define using libm_alias_double.
20784 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20785 (lrint): Define using libm_alias_double.
20786 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20787 (nearbyint): Define using libm_alias_double.
20788 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20789 (remquo): Define using libm_alias_double.
20790 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20791 (rint): Define using libm_alias_double.
20792 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20793 (trunc): Define using libm_alias_double.
20794 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20795 (fmax): Define using libm_alias_double.
20796 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20797 (fmin): Define using libm_alias_double.
20798 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20799 (fma): Define using libm_alias_double.
20800
20801 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20802
20803 [BZ #22370]
20804 * elf/dl-hwcaps.c (ROUND): Removed.
20805 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20806 and ELF_NOTE_NEXT_OFFSET.
20807 * elf/dl-load.c (ROUND): Removed.
20808 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20809 * elf/readelflib.c (ROUND): Removed.
20810 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20811 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20812 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20813 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20814
20815 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20816
20817 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20818 [!__fmaf] (fmaf): Define using libm_alias_float.
20819
20820 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20821 [!__fma] (fma): Define using libm_alias_double.
20822 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20823
20824 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20825
20826 [BZ #22336]
20827 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20828 and implement the collation rules for cs from CLDR on top of that.
20829 * Makefile: Add cs_CZ.UTF-8 to test-input.
20830 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20831
20832 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20833
20834 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20835
20836 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20837 Icarus Sparry <icarus.w.sparry@intel.com>
20838
20839 * benchtests/Makefile:Add BENCHSET to allow subsets of
20840 benchmarks to be run.
20841 * benchtests/README: Add documentation for: Running subsets of
20842 benchmarks.
20843
20844 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20845
20846 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20847 range of tests names.
20848
20849 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20850 result from property and remove "max", min" and "mean" from
20851 required properties based on benchtests/bench-skeleton.c.
20852
20853 2017-11-28 Florian Weimer <fweimer@redhat.com>
20854
20855 [BZ #20826]
20856 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20857 due to Internet requirement.
20858 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20859 tst-getaddrinfo5.
20860 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20861
20862 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20863
20864 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20865 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20866 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20867 (sysdep_routines): Add memset-ultra1.
20868 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20869 file.
20870 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20871 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20872 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20873 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20874 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20875 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20876 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20877 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20878
20879 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20880 file.
20881 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20882 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20883 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20884 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20885 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20886 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20887 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20888 macro.
20889 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20890 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20891 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20892 (sysdep_routines): Add memcpy-ultra1.
20893 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20894 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20895
20896 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20897
20898 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20899 (cfloat_versions): Take function argument without trailing 'f'.
20900 Call libm_alias_float_other.
20901 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20902 * sysdeps/alpha/fpu/cargf.c: Likewise.
20903 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20904 * sysdeps/alpha/fpu/conjf.c: Likewise.
20905 * sysdeps/alpha/fpu/crealf.c: Likewise.
20906 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20907 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20908 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20909 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20910 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20911 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20912 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20913 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20914 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20915 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20916 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20917 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20918 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20919 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20920 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20921 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20922 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20923 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20924 (clog10f): Use libm_alias_float_other.
20925 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20926 (ceilf): Define using libm_alias_float.
20927 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20928 (copysignf): Define using libm_alias_float.
20929 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20930 (fabsf): Define using libm_alias_float.
20931 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20932 (floorf): Define using libm_alias_float.
20933 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20934 (fmaxf): Define using libm_alias_float.
20935 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20936 (fminf): Define using libm_alias_float.
20937 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20938 (lrintf): Define using libm_alias_float.
20939 (llrintf): Likewise.
20940 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20941 (lroundf): Define using libm_alias_float.
20942 (llroundf): Likewise.
20943 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20944 (rintf): Define using libm_alias_float.
20945 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20946 (truncf): Define using libm_alias_float.
20947
20948 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20949 (ceilf): Define using libm_alias_float.
20950 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20951 (floorf): Define using libm_alias_float.
20952 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20953 (fmaf): Define using libm_alias_float.
20954 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20955 (fmaxf): Define using libm_alias_float.
20956 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20957 (fminf): Define using libm_alias_float.
20958 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20959 (llrintf): Define using libm_alias_float.
20960 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20961 (llroundf): Define using libm_alias_float.
20962 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20963 (lrintf): Define using libm_alias_float.
20964 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20965 (lroundf): Define using libm_alias_float.
20966 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20967 <libm-alias-float.h>.
20968 (nearbyintf): Define using libm_alias_float.
20969 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20970 (rintf): Define using libm_alias_float.
20971 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20972 (roundf): Define using libm_alias_float.
20973 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20974 (truncf): Define using libm_alias_float.
20975
20976 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20977 (ceil): Define using libm_alias_double.
20978 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20979 (copysign): Define using libm_alias_double.
20980 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20981 (fabs): Define using libm_alias_double.
20982 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20983 (floor): Define using libm_alias_double.
20984 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20985 (fmax): Define using libm_alias_double.
20986 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20987 (fmin): Define using libm_alias_double.
20988 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20989 (lrint): Define using libm_alias_double.
20990 (llrint): Likewise.
20991 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20992 (lround): Define using libm_alias_double.
20993 (llround): Likewise.
20994 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20995 (rint): Define using libm_alias_double.
20996 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20997 (trunc): Define using libm_alias_double.
20998
20999 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21000 (libm_alias_double_r): Add semicolon after weak_alias call.
21001
21002 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21003
21004 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21005 (ceil): Define using libm_alias_double.
21006 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21007 (floor): Define using libm_alias_double.
21008 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21009 (fma): Define using libm_alias_double.
21010 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21011 (fmax): Define using libm_alias_double.
21012 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21013 (fmin): Define using libm_alias_double.
21014 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21015 (llrint): Define using libm_alias_double.
21016 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21017 (llround): Define using libm_alias_double.
21018 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21019 (lrint): Define using libm_alias_double.
21020 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21021 (lround): Define using libm_alias_double.
21022 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21023 (nearbyint): Define using libm_alias_double.
21024 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21025 (rint): Define using libm_alias_double.
21026 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21027 (round): Define using libm_alias_double.
21028 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21029 (trunc): Define using libm_alias_double.
21030
21031 2017-11-27 Florian Weimer <fweimer@redhat.com>
21032
21033 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21034 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21035 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21036 (tests): Add tst-mlock2.
21037 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21038 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21039 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21040 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21041 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21042 for mlock. Document mlock2.
21043
21044 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21045
21046 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21047 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21048 Likewise.
21049 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21050 Likewise.
21051 * sysdeps/x86/Makeconfig: New file.
21052 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21053 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21054 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21055 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21056 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21057 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21058 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21059 Likewise.
21060 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21061 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21062 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21063 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21064 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21065 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21066 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21067 * manual/math.texi (Mathematics): Document support for _Float64x.
21068 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21069 * stdlib/Versions (GLIBC_2.27): Likewise.
21070 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21071 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21072 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21073 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21074 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21075 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21076 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21077 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21078 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21079 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21080 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21081 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21083 Likewise.
21084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21085 Likewise.
21086 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21087 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21088 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21089 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21090 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21091 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21092 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21093 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21094 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21095 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21096 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21097 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21098 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21099 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21100
21101 2017-11-27 Andreas Schwab <schwab@suse.de>
21102
21103 * elf/Makefile (dl-routines): Add dl-sort-maps.
21104 * elf/dl-sort-maps.c: New file.
21105 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21106 (_dl_sort_maps): Declare.
21107 * elf/dl-fini.c (_dl_sort_fini): Remove.
21108 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21109 * elf/dl-close.c (_dl_close_worker): Likewise.
21110 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21111 open-coding it.
21112 * elf/dl-open.c (dl_open_worker): Likewise.
21113
21114 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21115
21116 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21117 using libm_alias_float128.
21118 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21119 Likewise.
21120 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21121 Likewise.
21122 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21123 (setpayloadsigf128): Likewise.
21124 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21125 Likewise.
21126 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21127 Likewise.
21128
21129 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21130 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21131 -mfloat128 to CFLAGS.
21132 ($(foreach
21133 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21134 Likewise.
21135 (CFLAGS-libm-test-support-float64x.c): New variable.
21136 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21137 $(f128-loader-link) to gnulib-tests.
21138
21139 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21140 (libm_alias_float128_other_r): If
21141 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21142 alias.
21143 (libm_alias_float128_r): Add semicolon after weak_alias call.
21144 * sysdeps/generic/libm-alias-ldouble.h
21145 (libm_alias_ldouble_other_r_f128): New macro.
21146 (libm_alias_ldouble_other_r_f64x): Likewise.
21147 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21148 and libm_alias_ldouble_other_r_f64x.
21149 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21150 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21151 (libm_alias_ldouble_other_r_f128): New macro.
21152 (libm_alias_ldouble_other_r_f64x): Likewise.
21153 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21154 and libm_alias_ldouble_other_r_f64x.
21155
21156 * stdlib/strfroml.c: Always include <stdlib.h>.
21157 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21158 undefine as macro and define as weak alias.
21159 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21160 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21161 <stdlib.h>.
21162 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21163 Define and later undefine as macro and define as weak alias.
21164
21165 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21166 Define and later undefine as macro. Define as weak alias if
21167 [!USE_WIDE_CHAR].
21168 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21169 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21170 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21171 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21172 Define and later undefine as macro. Define as weak alias if
21173 [!USE_WIDE_CHAR].
21174 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21175 Define and later undefine as macro. Define as weak alias if
21176 [USE_WIDE_CHAR].
21177 * sysdeps/ieee754/float128/strtof128_l.c
21178 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21179 Define and later undefine as macro. Define as weak alias if
21180 [!USE_WIDE_CHAR].
21181 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21182 Define and later undefine as macro. Define as weak alias if
21183 [USE_WIDE_CHAR].
21184 * sysdeps/ieee754/ldbl-128/strtold_l.c
21185 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21186 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21187 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21188 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21189 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21190 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21191 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21192 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21193 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21194 * sysdeps/ieee754/ldbl-96/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
21200 * math/test-float64x.h: New file.
21201 * math/Makefile (type-float64x-yes): New variable.
21202 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21203
21204 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21205 function-like macro.
21206 (min_of_type_): Likewise.
21207 (min_of_type_l): Likewise.
21208 (min_of_type_f128): Likewise.
21209 (min_of_type): Pass () as last argument of __MATH_TG.
21210
21211 * stdlib/tst-strtod-round-skeleton.c
21212 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21213 headers.
21214
21215 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21216 for combinations of long double with _Float64 and _Float64x.
21217
21218 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21219 (__DECL_SIMD_cosf32): Likewise.
21220 (__DECL_SIMD_cosf64): Likewise.
21221 (__DECL_SIMD_cosf32x): Likewise.
21222 (__DECL_SIMD_cosf64x): Likewise.
21223 (__DECL_SIMD_cosf128x): Likewise.
21224 (__DECL_SIMD_sinf16): Likewise.
21225 (__DECL_SIMD_sinf32): Likewise.
21226 (__DECL_SIMD_sinf64): Likewise.
21227 (__DECL_SIMD_sinf32x): Likewise.
21228 (__DECL_SIMD_sinf64x): Likewise.
21229 (__DECL_SIMD_sinf128x): Likewise.
21230 (__DECL_SIMD_sincosf16): Likewise.
21231 (__DECL_SIMD_sincosf32): Likewise.
21232 (__DECL_SIMD_sincosf64): Likewise.
21233 (__DECL_SIMD_sincosf32x): Likewise.
21234 (__DECL_SIMD_sincosf64x): Likewise.
21235 (__DECL_SIMD_sincosf128x): Likewise.
21236 (__DECL_SIMD_logf16): Likewise.
21237 (__DECL_SIMD_logf32): Likewise.
21238 (__DECL_SIMD_logf64): Likewise.
21239 (__DECL_SIMD_logf32x): Likewise.
21240 (__DECL_SIMD_logf64x): Likewise.
21241 (__DECL_SIMD_logf128x): Likewise.
21242 (__DECL_SIMD_expf16): Likewise.
21243 (__DECL_SIMD_expf32): Likewise.
21244 (__DECL_SIMD_expf64): Likewise.
21245 (__DECL_SIMD_expf32x): Likewise.
21246 (__DECL_SIMD_expf64x): Likewise.
21247 (__DECL_SIMD_expf128x): Likewise.
21248 (__DECL_SIMD_powf16): Likewise.
21249 (__DECL_SIMD_powf32): Likewise.
21250 (__DECL_SIMD_powf64): Likewise.
21251 (__DECL_SIMD_powf32x): Likewise.
21252 (__DECL_SIMD_powf64x): Likewise.
21253 (__DECL_SIMD_powf128x): Likewise.
21254
21255 * stdlib/Versions (libc): Move entries for wcstof128 and
21256 wcstof128_l to ....
21257 * wcsmbs/Versions (libc): ... here.
21258 Include <float128-abi.h>.
21259
21260 2017-11-24 Florian Weimer <fweimer@redhat.com>
21261
21262 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21263 bits/mman-shared.h.
21264 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21265 <bits/mman-shared.h>.
21266 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21267 to ...
21268 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21269 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21270 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21271 <bits/mman-shared.h>.
21272
21273 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21274
21275 [BZ #22457]
21276 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21277 posix_memalign/free.
21278 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21279
21280 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21281
21282 [BZ #22469]
21283 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21284 and implement the collation rules for pl from CLDR on top of that.
21285 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21286 of locales to be built for testing.
21287 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21288
21289 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21290
21291 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21292 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21293 libm_alias_ldouble_other.
21294 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21295 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21296 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21297 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21298 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21299 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21300 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21301 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21302 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21303 libm_alias_ldouble_r.
21304 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21305 libm_alias_ldouble_other.
21306 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21307 (log10l): Likewise.
21308 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21309 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21310 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21311 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21312 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21313 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21314 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21315 (atan2l): Likewise.
21316 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21317 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21318 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21319 libm_alias_ldouble.
21320 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21321 (cosl): Likewise.
21322 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21323 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21324 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21325 (expl): Likewise.
21326 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21327 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21328 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21329 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21330 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21331 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21332 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21333 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21334 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21335 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21336 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21337 libm_alias_ldouble.
21338 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21339 libm_alias_ldouble_other.
21340 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21341 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21342 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21343 libm_alias_ldouble.
21344 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21345 libm_alias_ldouble_other.
21346 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21347 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21348 * sysdeps/ia64/fpu/w_lgammal_main.c
21349 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21350 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21351
21352 2017-11-23 Florian Weimer <fweimer@redhat.com>
21353
21354 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21355 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21356 alike. Remove freeres marker.
21357 * malloc/arena.c (arena_thread_freeres): Call
21358 tcache_thread_shutdown.
21359
21360 2017-11-23 Florian Weimer <fweimer@redhat.com>
21361
21362 [BZ #22459]
21363 Export nscd hash function as __nss_hash.
21364 * include/nss.h (__nss_hash): Declare.
21365 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21366 symbol.
21367 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21368 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21369 of __nscd_hash.
21370 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21371 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21372 * nss/Makefiles (routines): Add nss_hash.
21373 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21374 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21375 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21376 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21377
21378 2017-11-23 Florian Weimer <fweimer@redhat.com>
21379
21380 [BZ #22478]
21381 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21382 Return error code, not -1.
21383 * signal/tst-sigwait-eintr.c: New file.
21384 * signal/Makefile (tests): Add tst-sigwait-eintr.
21385
21386 2017-11-23 Florian Weimer <fweimer@redhat.com>
21387
21388 Linux: Add memfd_create system call wrapper
21389 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21390 tst-memfd_create.
21391 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21392 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21393 [__USE_GNU] (memfd_create): Declare.
21394 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21395 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21396 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21397 * sysdeps/unix/sysv/linux/**.abilist: Update.
21398 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21399
21400 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21401
21402 * localedata/gen-locale.sh: Fix typo in variable name.
21403
21404 * resolv/res_debug.c (p_secstodate): Condition definition on
21405 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21406 directly as __p_secstodate, and as a compat symbol. Do not use
21407 libresolv_hidden_def.
21408 * resolv/resolv.h (p_secstodate): Remove macro and function
21409 declaration.
21410 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21411 using p_secstodate.
21412 * include/resolv.h (__p_secstodate): Do not use
21413 libresolv_hidden_proto.
21414 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21415 (tests-internal): ... here.
21416 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21417 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21418 and declare and use __p_secstodate and use compat_symbol_reference
21419 in that case.
21420 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21421 implementation returning 77.
21422
21423 [BZ #22463]
21424 * resolv/res_debug.c: Include <libc-diag.h>.
21425 (p_secstodate): Assert time_t at least as wide as u_long. On
21426 overflow, use integer seconds since the epoch as output, or use
21427 "<overflow>" as output and set errno to EOVERFLOW if integer
21428 seconds since the epoch would be 14 or more characters.
21429 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21430 for sprintf call.
21431 * resolv/tst-p_secstodate.c: New file.
21432 * resolv/Makefile (tests): Add tst-p_secstodate.
21433 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21434
21435 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21436 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21437 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21438
21439 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21440
21441 * posix/regcomp.c (init_word_char): Add comments.
21442
21443 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21444
21445 [BZ #22447]
21446 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21447 strlen to compute length of ut_user and set trailing NUL byte of
21448 result explicitly.
21449
21450 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21451
21452 [BZ #15537]
21453 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21454 using “copy "iso14651_t1"” and then implementing the
21455 collation rules for lv from CLDR on top of that.
21456 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21457 of locales to be built for testing.
21458 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21459 sorting.
21460
21461 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21462
21463 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21464 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21465 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21466 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21467 [__USE_MISC] (MADV_HWPOISON): New macro.
21468 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21469
21470 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21471
21472 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21473 -Wmissing-braces on GCC 4.9.
21474
21475 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21476
21477 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21478 * sysdeps/s390/s390-32/start.S (_start): Likewise
21479 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21480 (thread_start): Likewise.
21481 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21482 (thread_start): Likewise.
21483 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21484 (__makecontext_ret): Likewise.
21485 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21486 (__makecontext_ret): Likewise.
21487
21488 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21489
21490 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21491 __wcschrnul): Remove attribute_hidden.
21492
21493 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21494
21495 regex: don't assume uint64_t or uint32_t
21496 This avoids -Werror=overflow errors for 32-bit systems in
21497 the 64-bit case. Problem reported by Joseph Myers in:
21498 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21499 Also, when this code is used in Gnulib it ports to platforms
21500 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21501 them, and on some 32-bit compilers there is no uint64_t.
21502 Problem reported by Gianluigi Tiesi in:
21503 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21504 * posix/regcomp.c (init_word_char): Don't assume that the types
21505 uint64_t and uint32_t exist. Adapted from Gnulib patch
21506 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21507 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21508
21509 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21510
21511 * sysdeps/aarch64/memset-reg.h: New file.
21512 * sysdeps/aarch64/memset.S: Use it.
21513 (__memset): Rename to MEMSET macro.
21514 [ZVA_MACRO]: Use zva_macro.
21515 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21516 Add memset_generic and memset_falkor.
21517 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21518 (__libc_ifunc_impl_list): Add memset ifuncs.
21519 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21520 local variable zva_size.
21521 * sysdeps/aarch64/multiarch/memset.c: New file.
21522 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21523 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21524 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21525 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21526 (DCZID_DZP_MASK): New macro.
21527 (DCZID_BS_MASK): Likewise.
21528 (init_cpu_features): Read and set zva_size.
21529 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21530 (struct cpu_features): New member zva_size.
21531
21532 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21533 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21534 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21535
21536 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21537 backwards. Fix timing computation.
21538 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21539 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21540 on memset by N at a time. Fix timing computation.
21541
21542 2017-11-20 Florian Weimer <fweimer@redhat.com>
21543
21544 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21545 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21546
21547 2017-11-19 Florian Weimer <fweimer@redhat.com>
21548
21549 manual: Document mprotect
21550 * manual/memory.texi (Memory Protection): New section.
21551 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21552 documentation of PROT_* flags and reference the Memory Protection
21553 section instead.
21554
21555 2017-11-19 Florian Weimer <fweimer@redhat.com>
21556
21557 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21558 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21559 (Scatter-Gather): ... to here. Remove misleading comment.
21560
21561 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21562
21563 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21564 style.
21565
21566 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21567 when /proc/<pid>/setgroups does not exist.
21568
21569 2017-11-18 Florian Weimer <fweimer@redhat.com>
21570
21571 * sysdeps/unix/sysv/linux/tst-ttyname.c
21572 (become_root_in_mount_ns): Remove.
21573 (do_in_chroot_1): Call support_enter_mount_namespace.
21574 (do_in_chroot_2): Likewise.
21575 (do_test): Call support_become_root early.
21576
21577 2017-11-18 Florian Weimer <fweimer@redhat.com>
21578
21579 * support/namespace.h (support_enter_mount_namespace): Declare.
21580 * support/support_enter_mount_namespace.c: New file.
21581 * support/Makefile (libsupport-routines): Add
21582 support_enter_mount_namespace.
21583
21584 2017-11-18 Florian Weimer <fweimer@redhat.com>
21585
21586 * support/temp_file.c (support_create_temp_directory): Use
21587 test_dir and do not rely on the presence of the XXXXXX suffix.
21588 * support/temp_file.h (support_create_temp_directory): Update
21589 comment.
21590 * support/tst-xreadlink.c (do_test): Adjust.
21591 * support/support_chroot.c (support_chroot_create): Likewise.
21592
21593 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21594
21595 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21596 macro.
21597 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21598 htm-no-suspend.
21599
21600 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21601
21602 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21603 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21604 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21605 (ceill): Define using libm_alias_ldouble.
21606 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21607 <libm-alias-ldouble.h>.
21608 (copysignl): Define using libm_alias_ldouble.
21609 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21610 (fabsl): Define using libm_alias_ldouble.
21611 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21612 (floorl): Define using libm_alias_ldouble.
21613 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21614 (fmaxl): Define using libm_alias_ldouble.
21615 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21616 (fminl): Define using libm_alias_ldouble.
21617 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21618 (llrintl): Define using libm_alias_ldouble.
21619 (lrintl): Likewise.
21620 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21621 <libm-alias-ldouble.h>.
21622 (nearbyintl): Define using libm_alias_ldouble.
21623 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21624 (truncl): Define using libm_alias_ldouble.
21625 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21626 <libm-alias-ldouble.h>.
21627 (lrintl): Define using libm_alias_ldouble.
21628
21629 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21630 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21631 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21632 (asinhl): Define using libm_alias_ldouble.
21633 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21634 (atanl): Define using libm_alias_ldouble.
21635 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21636 (cbrtl): Define using libm_alias_ldouble.
21637 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21638 (ceill): Define using libm_alias_ldouble.
21639 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21640 (copysignl): Define using libm_alias_ldouble.
21641 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21642 (fabsl): Define using libm_alias_ldouble.
21643 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21644 (floorl): Define using libm_alias_ldouble.
21645 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21646 (fmaxl): Define using libm_alias_ldouble.
21647 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21648 (fminl): Define using libm_alias_ldouble.
21649 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21650 (frexpl): Define using libm_alias_ldouble.
21651 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21652 (llrintl): Define using libm_alias_ldouble.
21653 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21654 (logbl): Define using libm_alias_ldouble.
21655 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21656 (lrintl): Define using libm_alias_ldouble.
21657 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21658 (nearbyintl): Define using libm_alias_ldouble.
21659 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21660 (nextafterl): Define using libm_alias_ldouble.
21661 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21662 (remquol): Define using libm_alias_ldouble.
21663 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21664 (rintl): Define using libm_alias_ldouble.
21665 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21666 (truncl): Define using libm_alias_ldouble.
21667 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21668 (fmaxl): Define using libm_alias_ldouble.
21669 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21670 (fminl): Define using libm_alias_ldouble.
21671
21672 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21673 to C syntax instead of availability and properties of types.
21674 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21675 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21676 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21677 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21678 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21679 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21680
21681 2017-11-17 Florian Weimer <fweimer@redhat.com>
21682
21683 support_become_root: Enable file creation in namespaces.
21684 * support/support_become_root.c (setup_mapping): New function.
21685 (support_become_root): Call it.
21686
21687 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21688
21689 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21690 macro.
21691
21692 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21693
21694 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21695 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21696
21697 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21698
21699 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21700
21701 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21702 version to 4.14.
21703
21704 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21705
21706 * INSTALL: Fix botched up regeneration.
21707
21708 * NEWS: Update sourceare link to https.
21709 * configure.ac: Likewise.
21710 * crypt/md5test-giant.c: Likewise.
21711 * dlfcn/bug-atexit1.c: Likewise.
21712 * dlfcn/bug-atexit2.c: Likewise.
21713 * localedata/README: Likewise.
21714 * malloc/tst-mallocfork.c: Likewise.
21715 * manual/install.texi: Likewise.
21716 * nptl/tst-pthread-getattr.c: Likewise.
21717 * stdio-common/tst-fgets.c: Likewise.
21718 * stdio-common/tst-fwrite.c: Likewise.
21719 * sunrpc/Makefile: Likewise.
21720 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21721 * wcsmbs/tst-mbrtowc2.c: Likewise.
21722 * configure: Regenerate.
21723 * INSTALL: Regenerate.
21724
21725 2017-11-15 Martin Sebor <msebor@redhat.com>
21726
21727 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21728 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21729 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21730
21731 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21732
21733 [BZ #22145]
21734 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21735 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21736
21737 [BZ #22145]
21738 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21739 Defer is_pty check until end of the function.
21740 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21741
21742 [BZ #22145]
21743 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21744 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21745 (ttyname): Likewise.
21746 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21747 (__ttyname_r): Likewise.
21748
21749 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21750 int to bool.
21751
21752 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21753
21754 * manual/terminal.texi (Is It a Terminal):
21755 Mention ENODEV for ttyname and ttyname_r.
21756
21757 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21758
21759 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21760 constant and macro.
21761
21762 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21763 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21764 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21765 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21766 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21767 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21768
21769 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21770
21771 * signal/sigrelse.c (sigrelse): Optimize implementation.
21772
21773 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21774 (__sigpause): Rely on __sigsuspend to implement single thread
21775 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21776
21777 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21778
21779 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21780 kernel version to 4.14.
21781
21782 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21783
21784 [BZ #22442]
21785 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21786 Check if ifname is too long.
21787
21788 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21789
21790 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21791
21792 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21793
21794 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21795 was accidentally lost.
21796
21797 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21798
21799 * localedata/locales/az_IR: Add standard copyright header.
21800
21801 2017-11-15 Florian Weimer <fweimer@redhat.com>
21802
21803 [BZ #22439]
21804 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21805 not just the top one. Output a new "subheaps" statistic.
21806
21807 2017-11-15 Florian Weimer <fweimer@redhat.com>
21808
21809 [BZ #22408]
21810 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21811 under the per-arena lock.
21812 * malloc/Makefile (tests): Add tst-malloc_info.
21813 (tst-malloc_info): Link with libpthread.
21814 * malloc/tst-malloc_info.c: New file.
21815
21816 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21817
21818 [BZ #21660]
21819 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21820 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21821 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21822 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21823 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21824 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21825 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21826 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21827 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21828 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21829 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21830 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21831 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21832 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21833 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21834 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21835 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21836 (__floating_type): Likewise.
21837 (__real_integer_type): Likewise.
21838 (__complex_integer_type): Likewise.
21839 (__expr_is_real): Likewise.
21840 (__tgmath_real_type_sub): Likewise.
21841 (__tgmath_real_type): Likewise.
21842 (__tgmath_complex_type_sub): Likewise.
21843 (__tgmath_complex_type): Likewise.
21844 (__TGMATH_F128): Likewise.
21845 (__TGMATH_CF128): Likewise.
21846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21847 new macros.
21848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21849 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21850 Likewise.
21851 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21852 Likewise.
21853 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21854 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21855 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21857 Likewise.
21858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21859 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21860 Likewise.
21861 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21862 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21863 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21864 Likewise.
21865 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21866 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21867 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21868 (cimag): Likewise.
21869 (creal): Likewise.
21870
21871 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21872
21873 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21874 for stpncpy calls for GCC 8.
21875 (test_strncat): Disable -Wstringop-truncation warning for strncat
21876 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21877 strncat call for GCC 7.
21878 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21879 calls for GCC 8.
21880 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21881 trailing NUL.
21882
21883 * string/bug-strncat1.c: Include <libc-diag.h>.
21884 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21885
21886 2017-11-13 Claude Paroz <claude@2xlibre.net>
21887
21888 [BZ #22387]
21889 * localedata/locales/aa_DJ: Improved readibility by replacing
21890 <Uxxxx> sequences in the ASCII printable range by their ASCII
21891 character equivalents.
21892 * localedata/locales/aa_ER: Likewise.
21893 * localedata/locales/aa_ER@saaho: Likewise.
21894 * localedata/locales/aa_ET: Likewise.
21895 * localedata/locales/af_ZA: Likewise.
21896 * localedata/locales/agr_PE: Likewise.
21897 * localedata/locales/ak_GH: Likewise.
21898 * localedata/locales/am_ET: Likewise.
21899 * localedata/locales/anp_IN: Likewise.
21900 * localedata/locales/ar_AE: Likewise.
21901 * localedata/locales/ar_BH: Likewise.
21902 * localedata/locales/ar_DZ: Likewise.
21903 * localedata/locales/ar_EG: Likewise.
21904 * localedata/locales/ar_IN: Likewise.
21905 * localedata/locales/ar_IQ: Likewise.
21906 * localedata/locales/ar_JO: Likewise.
21907 * localedata/locales/ar_KW: Likewise.
21908 * localedata/locales/ar_LB: Likewise.
21909 * localedata/locales/ar_LY: Likewise.
21910 * localedata/locales/ar_MA: Likewise.
21911 * localedata/locales/ar_OM: Likewise.
21912 * localedata/locales/ar_QA: Likewise.
21913 * localedata/locales/ar_SA: Likewise.
21914 * localedata/locales/ar_SD: Likewise.
21915 * localedata/locales/ar_SS: Likewise.
21916 * localedata/locales/ar_SY: Likewise.
21917 * localedata/locales/ar_TN: Likewise.
21918 * localedata/locales/ar_YE: Likewise.
21919 * localedata/locales/as_IN: Likewise.
21920 * localedata/locales/ast_ES: Likewise.
21921 * localedata/locales/ayc_PE: Likewise.
21922 * localedata/locales/az_AZ: Likewise.
21923 * localedata/locales/az_IR: Likewise.
21924 * localedata/locales/be_BY: Likewise.
21925 * localedata/locales/be_BY@latin: Likewise.
21926 * localedata/locales/bem_ZM: Likewise.
21927 * localedata/locales/ber_DZ: Likewise.
21928 * localedata/locales/ber_MA: Likewise.
21929 * localedata/locales/bg_BG: Likewise.
21930 * localedata/locales/bhb_IN: Likewise.
21931 * localedata/locales/bho_IN: Likewise.
21932 * localedata/locales/bi_VU: Likewise.
21933 * localedata/locales/bn_BD: Likewise.
21934 * localedata/locales/bn_IN: Likewise.
21935 * localedata/locales/bo_CN: Likewise.
21936 * localedata/locales/bo_IN: Likewise.
21937 * localedata/locales/br_FR: Likewise.
21938 * localedata/locales/brx_IN: Likewise.
21939 * localedata/locales/bs_BA: Likewise.
21940 * localedata/locales/byn_ER: Likewise.
21941 * localedata/locales/ca_AD: Likewise.
21942 * localedata/locales/ca_ES: Likewise.
21943 * localedata/locales/ca_FR: Likewise.
21944 * localedata/locales/ca_IT: Likewise.
21945 * localedata/locales/ce_RU: Likewise.
21946 * localedata/locales/chr_US: Likewise.
21947 * localedata/locales/cmn_TW: Likewise.
21948 * localedata/locales/crh_UA: Likewise.
21949 * localedata/locales/cs_CZ: Likewise.
21950 * localedata/locales/csb_PL: Likewise.
21951 * localedata/locales/cv_RU: Likewise.
21952 * localedata/locales/cy_GB: Likewise.
21953 * localedata/locales/da_DK: Likewise.
21954 * localedata/locales/de_AT: Likewise.
21955 * localedata/locales/de_BE: Likewise.
21956 * localedata/locales/de_CH: Likewise.
21957 * localedata/locales/de_DE: Likewise.
21958 * localedata/locales/de_IT: Likewise.
21959 * localedata/locales/de_LI: Likewise.
21960 * localedata/locales/de_LU: Likewise.
21961 * localedata/locales/doi_IN: Likewise.
21962 * localedata/locales/dv_MV: Likewise.
21963 * localedata/locales/dz_BT: Likewise.
21964 * localedata/locales/el_CY: Likewise.
21965 * localedata/locales/el_GR: Likewise.
21966 * localedata/locales/en_AG: Likewise.
21967 * localedata/locales/en_AU: Likewise.
21968 * localedata/locales/en_BW: Likewise.
21969 * localedata/locales/en_CA: Likewise.
21970 * localedata/locales/en_DK: Likewise.
21971 * localedata/locales/en_GB: Likewise.
21972 * localedata/locales/en_HK: Likewise.
21973 * localedata/locales/en_IE: Likewise.
21974 * localedata/locales/en_IL: Likewise.
21975 * localedata/locales/en_IN: Likewise.
21976 * localedata/locales/en_NG: Likewise.
21977 * localedata/locales/en_NZ: Likewise.
21978 * localedata/locales/en_PH: Likewise.
21979 * localedata/locales/en_SG: Likewise.
21980 * localedata/locales/en_US: Likewise.
21981 * localedata/locales/en_ZA: Likewise.
21982 * localedata/locales/en_ZM: Likewise.
21983 * localedata/locales/en_ZW: Likewise.
21984 * localedata/locales/eo: Likewise.
21985 * localedata/locales/es_AR: Likewise.
21986 * localedata/locales/es_BO: Likewise.
21987 * localedata/locales/es_CL: Likewise.
21988 * localedata/locales/es_CO: Likewise.
21989 * localedata/locales/es_CR: Likewise.
21990 * localedata/locales/es_CU: Likewise.
21991 * localedata/locales/es_DO: Likewise.
21992 * localedata/locales/es_EC: Likewise.
21993 * localedata/locales/es_ES: Likewise.
21994 * localedata/locales/es_GT: Likewise.
21995 * localedata/locales/es_HN: Likewise.
21996 * localedata/locales/es_MX: Likewise.
21997 * localedata/locales/es_NI: Likewise.
21998 * localedata/locales/es_PA: Likewise.
21999 * localedata/locales/es_PE: Likewise.
22000 * localedata/locales/es_PR: Likewise.
22001 * localedata/locales/es_PY: Likewise.
22002 * localedata/locales/es_SV: Likewise.
22003 * localedata/locales/es_US: Likewise.
22004 * localedata/locales/es_UY: Likewise.
22005 * localedata/locales/es_VE: Likewise.
22006 * localedata/locales/et_EE: Likewise.
22007 * localedata/locales/eu_ES: Likewise.
22008 * localedata/locales/eu_ES@euro: Likewise.
22009 * localedata/locales/fa_IR: Likewise.
22010 * localedata/locales/ff_SN: Likewise.
22011 * localedata/locales/fi_FI: Likewise.
22012 * localedata/locales/fil_PH: Likewise.
22013 * localedata/locales/fo_FO: Likewise.
22014 * localedata/locales/fr_BE: Likewise.
22015 * localedata/locales/fr_CA: Likewise.
22016 * localedata/locales/fr_CH: Likewise.
22017 * localedata/locales/fr_FR: Likewise.
22018 * localedata/locales/fr_LU: Likewise.
22019 * localedata/locales/fur_IT: Likewise.
22020 * localedata/locales/fy_DE: Likewise.
22021 * localedata/locales/fy_NL: Likewise.
22022 * localedata/locales/ga_IE: Likewise.
22023 * localedata/locales/gd_GB: Likewise.
22024 * localedata/locales/gez_ER: Likewise.
22025 * localedata/locales/gez_ET: Likewise.
22026 * localedata/locales/gl_ES: Likewise.
22027 * localedata/locales/gu_IN: Likewise.
22028 * localedata/locales/gv_GB: Likewise.
22029 * localedata/locales/ha_NG: Likewise.
22030 * localedata/locales/hak_TW: Likewise.
22031 * localedata/locales/he_IL: Likewise.
22032 * localedata/locales/hi_IN: Likewise.
22033 * localedata/locales/hif_FJ: Likewise.
22034 * localedata/locales/hne_IN: Likewise.
22035 * localedata/locales/hr_HR: Likewise.
22036 * localedata/locales/hsb_DE: Likewise.
22037 * localedata/locales/ht_HT: Likewise.
22038 * localedata/locales/hu_HU: Likewise.
22039 * localedata/locales/hy_AM: Likewise.
22040 * localedata/locales/i18n: Likewise.
22041 * localedata/locales/ia_FR: Likewise.
22042 * localedata/locales/id_ID: Likewise.
22043 * localedata/locales/ig_NG: Likewise.
22044 * localedata/locales/ik_CA: Likewise.
22045 * localedata/locales/is_IS: Likewise.
22046 * localedata/locales/it_CH: Likewise.
22047 * localedata/locales/it_IT: Likewise.
22048 * localedata/locales/iu_CA: Likewise.
22049 * localedata/locales/ja_JP: Likewise.
22050 * localedata/locales/ka_GE: Likewise.
22051 * localedata/locales/kk_KZ: Likewise.
22052 * localedata/locales/kl_GL: Likewise.
22053 * localedata/locales/kn_IN: Likewise.
22054 * localedata/locales/ko_KR: Likewise.
22055 * localedata/locales/kok_IN: Likewise.
22056 * localedata/locales/ks_IN: Likewise.
22057 * localedata/locales/ks_IN@devanagari: Likewise.
22058 * localedata/locales/ku_TR: Likewise.
22059 * localedata/locales/kw_GB: Likewise.
22060 * localedata/locales/ky_KG: Likewise.
22061 * localedata/locales/lb_LU: Likewise.
22062 * localedata/locales/lg_UG: Likewise.
22063 * localedata/locales/li_BE: Likewise.
22064 * localedata/locales/li_NL: Likewise.
22065 * localedata/locales/lij_IT: Likewise.
22066 * localedata/locales/ln_CD: Likewise.
22067 * localedata/locales/lo_LA: Likewise.
22068 * localedata/locales/lt_LT: Likewise.
22069 * localedata/locales/lv_LV: Likewise.
22070 * localedata/locales/lzh_TW: Likewise.
22071 * localedata/locales/mag_IN: Likewise.
22072 * localedata/locales/mai_IN: Likewise.
22073 * localedata/locales/mg_MG: Likewise.
22074 * localedata/locales/mhr_RU: Likewise.
22075 * localedata/locales/mi_NZ: Likewise.
22076 * localedata/locales/mk_MK: Likewise.
22077 * localedata/locales/ml_IN: Likewise.
22078 * localedata/locales/mn_MN: Likewise.
22079 * localedata/locales/mni_IN: Likewise.
22080 * localedata/locales/mr_IN: Likewise.
22081 * localedata/locales/ms_MY: Likewise.
22082 * localedata/locales/mt_MT: Likewise.
22083 * localedata/locales/my_MM: Likewise.
22084 * localedata/locales/nan_TW: Likewise.
22085 * localedata/locales/nan_TW@latin: Likewise.
22086 * localedata/locales/nb_NO: Likewise.
22087 * localedata/locales/nds_DE: Likewise.
22088 * localedata/locales/nds_NL: Likewise.
22089 * localedata/locales/ne_NP: Likewise.
22090 * localedata/locales/nhn_MX: Likewise.
22091 * localedata/locales/niu_NU: Likewise.
22092 * localedata/locales/niu_NZ: Likewise.
22093 * localedata/locales/nl_AW: Likewise.
22094 * localedata/locales/nl_BE: Likewise.
22095 * localedata/locales/nl_NL: Likewise.
22096 * localedata/locales/nn_NO: Likewise.
22097 * localedata/locales/nr_ZA: Likewise.
22098 * localedata/locales/nso_ZA: Likewise.
22099 * localedata/locales/oc_FR: Likewise.
22100 * localedata/locales/om_ET: Likewise.
22101 * localedata/locales/om_KE: Likewise.
22102 * localedata/locales/or_IN: Likewise.
22103 * localedata/locales/os_RU: Likewise.
22104 * localedata/locales/pa_IN: Likewise.
22105 * localedata/locales/pa_PK: Likewise.
22106 * localedata/locales/pap_AW: Likewise.
22107 * localedata/locales/pap_CW: Likewise.
22108 * localedata/locales/pl_PL: Likewise.
22109 * localedata/locales/ps_AF: Likewise.
22110 * localedata/locales/pt_BR: Likewise.
22111 * localedata/locales/pt_PT: Likewise.
22112 * localedata/locales/quz_PE: Likewise.
22113 * localedata/locales/raj_IN: Likewise.
22114 * localedata/locales/ro_RO: Likewise.
22115 * localedata/locales/ru_RU: Likewise.
22116 * localedata/locales/ru_UA: Likewise.
22117 * localedata/locales/rw_RW: Likewise.
22118 * localedata/locales/sa_IN: Likewise.
22119 * localedata/locales/sat_IN: Likewise.
22120 * localedata/locales/sc_IT: Likewise.
22121 * localedata/locales/sd_IN: Likewise.
22122 * localedata/locales/sd_IN@devanagari: Likewise.
22123 * localedata/locales/se_NO: Likewise.
22124 * localedata/locales/sgs_LT: Likewise.
22125 * localedata/locales/shs_CA: Likewise.
22126 * localedata/locales/si_LK: Likewise.
22127 * localedata/locales/sid_ET: Likewise.
22128 * localedata/locales/sk_SK: Likewise.
22129 * localedata/locales/sl_SI: Likewise.
22130 * localedata/locales/sm_WS: Likewise.
22131 * localedata/locales/so_DJ: Likewise.
22132 * localedata/locales/so_ET: Likewise.
22133 * localedata/locales/so_KE: Likewise.
22134 * localedata/locales/so_SO: Likewise.
22135 * localedata/locales/sq_AL: Likewise.
22136 * localedata/locales/sq_MK: Likewise.
22137 * localedata/locales/sr_ME: Likewise.
22138 * localedata/locales/sr_RS: Likewise.
22139 * localedata/locales/sr_RS@latin: Likewise.
22140 * localedata/locales/ss_ZA: Likewise.
22141 * localedata/locales/st_ZA: Likewise.
22142 * localedata/locales/sv_FI: Likewise.
22143 * localedata/locales/sv_SE: Likewise.
22144 * localedata/locales/sw_KE: Likewise.
22145 * localedata/locales/sw_TZ: Likewise.
22146 * localedata/locales/szl_PL: Likewise.
22147 * localedata/locales/ta_IN: Likewise.
22148 * localedata/locales/ta_LK: Likewise.
22149 * localedata/locales/tcy_IN: Likewise.
22150 * localedata/locales/te_IN: Likewise.
22151 * localedata/locales/tg_TJ: Likewise.
22152 * localedata/locales/th_TH: Likewise.
22153 * localedata/locales/the_NP: Likewise.
22154 * localedata/locales/ti_ER: Likewise.
22155 * localedata/locales/ti_ET: Likewise.
22156 * localedata/locales/tig_ER: Likewise.
22157 * localedata/locales/tk_TM: Likewise.
22158 * localedata/locales/tl_PH: Likewise.
22159 * localedata/locales/tn_ZA: Likewise.
22160 * localedata/locales/to_TO: Likewise.
22161 * localedata/locales/tpi_PG: Likewise.
22162 * localedata/locales/tr_CY: Likewise.
22163 * localedata/locales/tr_TR: Likewise.
22164 * localedata/locales/ts_ZA: Likewise.
22165 * localedata/locales/tt_RU: Likewise.
22166 * localedata/locales/tt_RU@iqtelif: Likewise.
22167 * localedata/locales/ug_CN: Likewise.
22168 * localedata/locales/uk_UA: Likewise.
22169 * localedata/locales/unm_US: Likewise.
22170 * localedata/locales/ur_IN: Likewise.
22171 * localedata/locales/ur_PK: Likewise.
22172 * localedata/locales/uz_UZ: Likewise.
22173 * localedata/locales/uz_UZ@cyrillic: Likewise.
22174 * localedata/locales/ve_ZA: Likewise.
22175 * localedata/locales/vi_VN: Likewise.
22176 * localedata/locales/wa_BE: Likewise.
22177 * localedata/locales/wae_CH: Likewise.
22178 * localedata/locales/wal_ET: Likewise.
22179 * localedata/locales/wo_SN: Likewise.
22180 * localedata/locales/xh_ZA: Likewise.
22181 * localedata/locales/yi_US: Likewise.
22182 * localedata/locales/yo_NG: Likewise.
22183 * localedata/locales/yue_HK: Likewise.
22184 * localedata/locales/yuw_PG: Likewise.
22185 * localedata/locales/zh_CN: Likewise.
22186 * localedata/locales/zh_HK: Likewise.
22187 * localedata/locales/zh_SG: Likewise.
22188 * localedata/locales/zh_TW: Likewise.
22189 * localedata/locales/zu_ZA: Likewise.
22190
22191 2017-11-13 Florian Weimer <fweimer@redhat.com>
22192
22193 * support/next_to_fault.h, support/next_to_fault.c: New files.
22194 * support/Makefile (libsupport-routines): Add next_to_fault.
22195 * resolv/tst-inet_pton.c (struct next_to_fault)
22196 (next_to_fault_allocate, next_to_fault_free): Remove.
22197 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22198
22199 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22200
22201 * elf/dl-support.c: Include <dl-procruntime.c>.
22202 * include/link.h: Include <link_map.h>.
22203 * sysdeps/generic/dl-procruntime.c: New file.
22204 * sysdeps/generic/link_map.h: Likewise.
22205 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22206 the writable ld.so namespace.
22207
22208 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22209
22210 timezone: pacify GCC -Wstringop-truncation
22211 Problem reported by Martin Sebor in:
22212 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22213 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22214
22215 2017-11-12 Florian Weimer <fweimer@redhat.com>
22216
22217 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22218 tst-xreadlink.
22219 (tests): Add tst-xreadlink.
22220 * support/support.h (xstrndup): Declare.
22221 * support/xunistd.h (xunlink, xreadlink): Declare.
22222 * support/temp_file.h (support_create_temp_directory): Declare.
22223 * support/temp_file.c (support_create_temp_directory): New function.
22224 * support/support_chroot.c (support_chroot_create): Use it.
22225 * support/xreadlink.c: New file.
22226 * support/xstrndup.c: Likewise.
22227 * support/xunlink.c: Likewise.
22228 * support/tst-xreadlink.c: Likewise.
22229
22230 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22231
22232 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22233
22234 2017-11-11 Florian Weimer <fweimer@redhat.com>
22235
22236 [BZ #22409]
22237 [BZ #22412]
22238 * resolv/res_comp.c (printable_string, binary_hnok)
22239 (binary_leading_dash): New functions.
22240 (res_hnok): Reimplement using these functions and ns_name_pton.
22241 (res_ownok): Likewise.
22242 (res_mailok): Reimplement using printable_string, ns_name_pton and
22243 binary_hnok.
22244 (res_dnok): Reimplement using printable_string and ns_name_pton.
22245 * resolv/tst-res_hnok.c (tests): Add additional tests.
22246 (LETTERDIGITS, PRINTABLE): Define.
22247 (do_test): Adjust one_char results.
22248
22249 2017-11-11 Florian Weimer <fweimer@redhat.com>
22250
22251 [BZ #22413]
22252 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22253 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22254
22255 2017-11-11 Florian Weimer <fweimer@redhat.com>
22256
22257 * resolv/tst-ns_name_pton.c: New file.
22258 * resolv/Makefile (tests): Add tst-ns_name_pton.
22259 (tst-ns_name_pton): Link against libresolv.
22260
22261 2017-11-11 Florian Weimer <fweimer@redhat.com>
22262
22263 * resolv/tst-res_hnok.c: New file.
22264 * resolv/Makefile (tests): Add tst-res_hnok.
22265 (tst-res_hnok): Link against libresolv.
22266
22267 2017-11-11 Florian Weimer <fweimer@redhat.com>
22268
22269 * resolv/tst-resolv-network.c: Use test framework instead explicit
22270 main function.
22271
22272 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22273
22274 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22275 <jmp_buf-macros.h>.
22276 [!_ISOMAC] (STR_HELPER): New.
22277 [!_ISOMAC] (STR): Likewise.
22278 [!_ISOMAC] (TEST_SIZE): Likewise.
22279 [!_ISOMAC] (TEST_ALIGN): Likewise.
22280 [!_ISOMAC] (TEST_OFFSET): Likewise.
22281 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22282 field offsets of jmp_buf as well as sigjmp_buf.
22283 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22284 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22285 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22286 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22287 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22288 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22289 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22290 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22291 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22292 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22293 Likewise.
22294 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22295 Likewise.
22296 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22298 Likewise.
22299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22300 Likewise.
22301 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22302 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22303 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22304 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22305 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22306 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22307 Likewise.
22308 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22309 Likewise.
22310 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22311 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22312 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22313
22314 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22315
22316 * include/float.h
22317 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22318 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22319 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22320 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22321 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22322 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22323 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22324 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22325 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22326 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22327 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22328 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22329 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22330 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22331 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22332 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22333 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22334 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22335 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22336 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22337 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22338 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22339 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22340 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22341 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22342 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22343 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22344 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22345 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22346 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22347 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22348 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22349 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22350 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22351 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22352 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22353 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22354 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22355 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22356 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22357 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22358 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22359 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22360 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22361 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22362 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22363 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22364 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22365 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22366 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22367 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22368 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22369 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22370 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22371 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22372 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22373 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22374 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22375 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22376 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22377 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22378 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22379 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22380 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22381 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22382 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22383 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22384 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22385 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22386 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22387 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22388 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22389 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22390 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22391 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22392 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22393 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22394 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22395 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22396 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22397 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22398 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22399 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22400 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22401 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22402 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22403 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22404 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22405
22406 * stdlib/tst-strtod.h (F16): New macro.
22407 (F32): Likewise.
22408 (F64): Likewise.
22409 (F32X): Likewise.
22410 (F64X): Likewise.
22411 (F128X): Likewise.
22412 (IF_FLOAT16): Likewise.
22413 (IF_FLOAT32): Likewise.
22414 (IF_FLOAT64): Likewise.
22415 (IF_FLOAT32X): Likewise.
22416 (IF_FLOAT64X): Likewise.
22417 (IF_FLOAT128X): Likewise.
22418 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22419 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22420 (STRTOD_TEST_FOREACH): Likewise.
22421 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22422 (CHOOSE_f64): Likewise.
22423 (CHOOSE_f32x): Likewise.
22424 (CHOOSE_f64x): Likewise.
22425
22426 2017-11-07 Andreas Schwab <schwab@suse.de>
22427
22428 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22429
22430 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22431
22432 [BZ #22403]
22433 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22434 to be escaped.
22435 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22436 to be escaped.
22437
22438 2017-11-07 Claude Paroz <claude@2xlibre.net>
22439
22440 [BZ #22403]
22441 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22442 to be escaped.
22443 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22444 to be escaped.
22445 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22446 to be escaped.
22447
22448 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22449
22450 [BZ #22298]
22451 * nptl/allocatestack.c (allocate_stack): Check if
22452 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22453 __PTHREAD_MUTEX_HAVE_PREV is defined.
22454 * nptl/descr.h (pthread): Likewise.
22455 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22456 Likewise.
22457 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22458 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22459 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22460 * sysdeps/nptl/bits/thread-shared-types.h
22461 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22462 defines.
22463 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22464 of __WORDSIZE for internal layout.
22465 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22466 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22467 instead of __WORDSIZE whether to use an union for __spins and __list
22468 fields.
22469 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22470 case.
22471 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22472 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22473 defines.
22474 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22475 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22476 Likewise.
22477 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22478 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22479 Likewise.
22480 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22481 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22482 Likewise.
22483 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22484 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22485 Likewise.
22486 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22487 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22488 Likewise.
22489 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22490 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22491 Likewise.
22492 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22493 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22494 Likewise.
22495 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22496 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22497 Likewise.
22498 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22499 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22500 Likewise.
22501 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22502 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22503 Likewise.
22504 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22505 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22506 Likewise.
22507 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22508 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22509 Likewise.
22510 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22511 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22512 Likewise.
22513 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22514 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22515 Likewise.
22516
22517 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22518 New macros.
22519 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22520 checks for expected input type size.
22521 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22522 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22523 Likewise.
22524 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22525 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22526 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22527 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22528 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22529 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22530 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22531 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22532 superflous runtime assert check.
22533 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22534 Likewise.
22535 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22536 Likewise.
22537 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22538 Likewise.
22539 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22540 Likewise.
22541 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22542 Likewise.
22543 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22544 Likewise.
22545 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22546 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22547 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22548 Likewise.
22549 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22550 Likewise.
22551 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22552 Likewise.
22553 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22554 Likewise.
22555 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22556 Likewise.
22557 * nptl/pthread_attr_setinheritsched.c
22558 (__pthread_attr_setinheritsched): Likewise.
22559 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22560 Likewise.
22561 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22562 Likewise.
22563 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22564 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22565 __old_pthread_attr_setstack): Likewise.
22566 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22567 Likewise.
22568 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22569 Likewise.
22570 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22571 Likewise.
22572 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22573 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22574 Likewise.
22575 * nptl/tst-typesizes.c: Remove file.
22576
22577 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22578 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22579 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22580 checks for internal pthread_mutex_t offsets.
22581 * sysdeps/aarch64/nptl/pthread-offsets.h
22582 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22583 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22584 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22585 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22586 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22587 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22588 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22589 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22590 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22591 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22592 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22593 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22594 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22595 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22596 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22597 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22598 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22599 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22600
22601 2017-11-07 Florian Weimer <fweimer@redhat.com>
22602
22603 * bits/mman-linux.h: Move ...
22604 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22605 comment.
22606 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22607 outdated comment.
22608
22609 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22610
22611 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22612 Redefine STRNLEN as __strnlen_power8.
22613
22614 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22615
22616 * signal/sighold.c (sighold): Optimize implementation.
22617
22618 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22619 __NR_rt_sigqueueinfo.
22620
22621 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22622 __sigtimedwait.
22623 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22624 assume __NR_rt_sigtimedwait.
22625 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22626 and add LIBC_CANCEL_HANDLED for cancellation marking.
22627 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22628
22629 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22630 (sysdeps_routines): Add memchr_noneon.
22631 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22632 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22633 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22634 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22635 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22636 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22637 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22638
22639 * sysdeps/arm/arm-ifunc.h: New file.
22640 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22641 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22642 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22643 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22644 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22645 (__memcpy_neon): Avoid create hidden alias.
22646 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22647 (__memcpy_vfp): Likewise.
22648 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22649 (sysdep_routines): Add memcpy_arm.
22650 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22651
22652 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22653
22654 [BZ #22362]
22655 * Makerules (make-link-multidir): New.
22656 * config.make.in (multidir): New.
22657 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22658 * configure: Regenerated.
22659 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22660 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22661 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22662 New target.
22663
22664 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22665
22666 [BZ #22402]
22667 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22668 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22669
22670 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22671
22672 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22673 to be escaped.
22674
22675 2017-11-04 Florian Weimer <fweimer@redhat.com>
22676
22677 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22678
22679 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22680
22681 * math/math.h [__HAVE_DISTINCT_FLOAT16
22682 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22683 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22684 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22685 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22686 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22687 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22688 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22689 (__MATH_TG_F32): New macro.
22690 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22691 (__MATH_TG_F64X): Likewise.
22692 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22693 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22694
22695 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22696
22697 * po/de.po: Update translations.
22698 * po/ru.po: Likewise.
22699
22700 2017-11-03 Florian Weimer <fweimer@redhat.com>
22701
22702 * manual/filesys.texi (Hard Links): Document linkat.
22703
22704 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22705
22706 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22707 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22708 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22709 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22710 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22711 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22712 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22713 the same as _Float128.
22714 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22715 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22716 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22717
22718 * stdlib/stdlib.h
22719 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22720 Declare.
22721 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22722 Likewise.
22723 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22724 Likewise.
22725 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22726 (strtof32x): Likewise.
22727 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22728 (strtof64x): Likewise.
22729 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22730 (strtof128x): Likewise.
22731 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22732 (strfromf16): Likewise.
22733 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22734 (strfromf32): Likewise.
22735 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22736 (strfromf64): Likewise.
22737 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22738 (strfromf32x): Likewise.
22739 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22740 (strfromf64x): Likewise.
22741 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22742 (strfromf128x): Likewise.
22743 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22744 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22745 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22746 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22747 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22748 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22749
22750 2017-11-03 Richard Henderson <rth@twiddle.net>
22751
22752 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22753
22754 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22755
22756 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22757
22758 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22759
22760 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22761 DT_TLSDESC_GOT initialization.
22762 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22763 (_dl_tlsdesc_resolve_hold): Likewise.
22764 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22765 (_dl_tlsdesc_resolve_hold): Likewise.
22766 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22767 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22768
22769 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22770
22771 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22772
22773 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22774
22775 [BZ #18572]
22776 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22777 non-lazily for R_ARM_TLS_DESC.
22778
22779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22780
22781 [BZ #17078]
22782 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22783 R_ARM_TLS_DESC case.
22784 (elf_machine_lazy_rel): Remove the prelink check.
22785
22786 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22787
22788 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22789 DT_TLSDESC_GOT initialization.
22790 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22791 (_dl_tlsdesc_resolve_rela): Likewise.
22792 (_dl_tlsdesc_resolve_hold): Likewise.
22793 (_dl_tlsdesc_undefweak): Remove ldar.
22794 (_dl_tlsdesc_dynamic): Likewise.
22795 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22796 (_dl_tlsdesc_resolve_rela): Likewise.
22797 (_dl_tlsdesc_resolve_hold): Likewise.
22798 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22799 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22800 (_dl_tlsdesc_resolve_rela): Likewise.
22801 (_dl_tlsdesc_resolve_hold): Likewise.
22802
22803 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22804
22805 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22806 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22807
22808 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22809
22810 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22811 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22812
22813 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22814
22815 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22816 Declare.
22817 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22818 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22819 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22820 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22821 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22822 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22823 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22824 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22825 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22826 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22827 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22828
22829 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22830
22831 [BZ #22382]
22832 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22833 * localedata/locales/tpi_PG: Add standard header.
22834
22835 2017-11-02 Florian Weimer <fweimer@redhat.com>
22836
22837 test-errno-linux: quotactl can fail with EPERM in containers.
22838 * sysdeps/unix/sysv/linux/test-errno-linux.c
22839 (LIST, LIST_FORWARD): New macros.
22840 (check_error_in_list): New function.
22841 (test_wrp_rv): Accept list of permitted error codes.
22842 (test_wrp_rv2): Remove.
22843 (test_wrp): Call test_wrp_rv with list of error codes.
22844 (test_wrp2): Accept list of error codes.
22845 (do_test): Adjust. Allow EPERM for quotactl.
22846
22847 2017-11-02 Florian Weimer <fweimer@redhat.com>
22848
22849 * stdio-common/bug16.c (do_test): Use array_length.
22850 * stdio-common/errlist.c (_sys_nerr): Likewise.
22851 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22852 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22853 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22854 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22855 (do_test): Use array_length.
22856 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22857 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22858 * stdio-common/tst-printf-round.c (do_test): Likewise.
22859 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22860 (CHECK): Use array_length.
22861 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22862 * stdio-common/tstscanf.c (main): Likewise.
22863 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22864
22865 2017-11-02 Florian Weimer <fweimer@redhat.com>
22866
22867 Add array_length and array_end macros.
22868 * include/array_length.h: New file.
22869
22870 2017-11-02 Florian Weimer <fweimer@redhat.com>
22871
22872 [BZ #22332]
22873 * posix/tst-glob-tilde.c (do_noescape): New variable.
22874 (one_test): Process it.
22875 (do_test): Set do_noescape. Add unescaping test case.
22876
22877 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22878
22879 * math/complex.h
22880 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22881 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22882 with appropriate macros defined and undefined.
22883 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22884 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22885 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22886 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22887 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22888 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22889 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22890 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22891 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22892 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22893
22894 * math/complex.h
22895 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22896 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22897 that for long double. Do not condition define and undefine of
22898 _Mdouble_complex_ on [__CFLOAT128].
22899
22900 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22901
22902 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22903 of <sysdeps/generic/sysdep.h>.
22904 (ALIGNARG): Removed.
22905 (ASM_SIZE_DIRECTIVE): Likewise.
22906 (ENTRY): Likewise.
22907 (END): Likewise.
22908 (ENTRY_CHK): Likewise.
22909 (END_CHK): Likewise.
22910 (syscall_error): Likewise.
22911 (mcount): Likewise.
22912 (PSEUDO_END): Likewise.
22913 (L): Likewise.
22914 (atom_text_section): Likewise.
22915 * sysdeps/x86/sysdep.h: New file.
22916 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22917 of <sysdeps/generic/sysdep.h>.
22918 (ALIGNARG): Removed.
22919 (ASM_SIZE_DIRECTIVE): Likewise.
22920 (ENTRY): Likewise.
22921 (END): Likewise.
22922 (ENTRY_CHK): Likewise.
22923 (END_CHK): Likewise.
22924 (syscall_error): Likewise.
22925 (mcount): Likewise.
22926 (PSEUDO_END): Likewise.
22927 (L): Likewise.
22928 (atom_text_section): Likewise.
22929
22930 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22931
22932 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22933 category of LC_CTYPE set to "i18n:2012".
22934 * localedata/locales/i18n_ctype: Regenerate.
22935
22936 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22937
22938 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22939 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22940 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22941 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22942
22943 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22944 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22945 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22946 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22947
22948 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22949
22950 * math/complex.h
22951 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22952 New macro.
22953 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22954 Likewise.
22955 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22956 Likewise.
22957 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22958 (CMPLXF32X): Likewise.
22959 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22960 (CMPLXF64X): Likewise.
22961 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22962 (CMPLXF128X): Likewise.
22963
22964 * math/math.h
22965 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22966 (__MATH_EVAL_FMT2): Define to add 0.0f.
22967
22968 2017-10-31 Alan Modra <amodra@gmail.com>
22969
22970 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22971 include sysdep.h.
22972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23034 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23035 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23036 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23037 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23038 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23039 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23040 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23041
23042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23043 include sysdep.h and math_ldbl_opt.h.
23044
23045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23046 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23066 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23068 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23069 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23070 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23071
23072 2017-10-31 Alan Modra <amodra@gmail.com>
23073
23074 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23075 string/strncase_l.c, not string/strncase.c.
23076 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23077 (libc_hidden_def): Redefine.
23078
23079 2017-10-31 Alan Modra <amodra@gmail.com>
23080
23081 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23082 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23083 (__strcasecmp): Don't define.
23084
23085 2017-10-31 Alan Modra <amodra@gmail.com>
23086
23087 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23088 IS_IN (libc).
23089 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23090 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23091 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23092
23093 2017-10-31 Alan Modra <amodra@gmail.com>
23094
23095 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23096 USE_AS_STPNCPY.
23097
23098 2017-10-31 Alan Modra <amodra@gmail.com>
23099
23100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23101 Redefine only when SHARED.
23102
23103 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23104
23105 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23106 Include <bits/math-finite.h> with appropriate macros defined and
23107 undefined.
23108 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23109 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23110 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23111 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23112 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23113
23114 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23115 [!_Mlong_double_] (_Mlong_double_): Likewise.
23116 [!_Mfloat16_] (_Mfloat16_): Likewise.
23117 [!_Mfloat32_] (_Mfloat32_): Likewise.
23118 [!_Mfloat64_] (_Mfloat64_): Likewise.
23119 [!_Mfloat128_] (_Mfloat128_): Likewise.
23120 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23121 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23122 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23123 (_Mdouble_): Define without indirection through those macros.
23124 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23125 [!_Mfloat128_] (_Mfloat128_): Likewise.
23126 [_Mlong_double_] (_Mlong_double_): Likewise.
23127 (_Mdouble_): Define without indirection through those macros.
23128 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23129 not add -D_Mlong_double_=double.
23130 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23131 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23132
23133 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23134
23135 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23136
23137 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23138
23139 * sysdeps/x86/libc-start.c: Reformat.
23140
23141 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23142
23143 [BZ #22353]
23144 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23145 (1): Renamed to ...
23146 (L(Src0)): This.
23147 (L(Src1)): New.
23148 (L(Src2)): Likewise.
23149 (L(1)): Renamed to ...
23150 (L(Src3)): This.
23151
23152 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23153
23154 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23155 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23156 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23157 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23158 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23159 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23160 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23161 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23162 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23163 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23164 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23165 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23166 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23167 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23168 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23169 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23170 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23171 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23172 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23173 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23174 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23175 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23176 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23177 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23178 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23179 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23180 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23181 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23182 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23183 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23184 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23185 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23186 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23187 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23188 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23189 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23190 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23191 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23192 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23193 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23194 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23195 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23196 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23197 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23198 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23199 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23200 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23201 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23202 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23203 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23204 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23205 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23206 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23207 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23208 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23209 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23210 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23211 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23212 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23213 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23214 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23215 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23216 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23217 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23218 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23219 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23220
23221 2017-10-30 Florian Weimer <fweimer@redhat.com>
23222
23223 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23224 always defined.
23225 * io/tst-mkdirat.c (do_test): Likewise.
23226 * io/tst-mkfifoat.c (do_test): Likewise.
23227 * io/tst-mknodat.c (do_test): Likewise.
23228 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23229 * locale/programs/locale.c (select_dirs): Likewise.
23230 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23231 * posix/bug-glob2.c (my_readdir): Likewise.
23232 * posix/tst-dir.c (main): Likewise.
23233 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23234 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23235
23236 2017-10-30 Florian Weimer <fweimer@redhat.com>
23237
23238 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23239 just __USE_GNU.
23240
23241 2017-10-30 Florian Weimer <fweimer@redhat.com>
23242
23243 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23244 Convert to support/test-driver.c.
23245 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23246 New macro parameters.
23247 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23248 * posix/tst-gnuglob.c: New file.
23249 * posix/tst-gnuglob64.c: Likewise.
23250 * posix/Makefile (tests): Add tst-gnuglob64.
23251
23252 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23253
23254 [BZ #19485]
23255 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23256 and use a better translation for March in “mon”.
23257 * localedata/locales/csb_PL: Use more ASCII to improve the
23258 readability of the source.
23259
23260 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23261
23262 [BZ #13953]
23263 * localedata/locales/km_KH: Use ASCII as much
23264 as possible for better readability of the source and
23265 remove useless comments.
23266 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23267 was commented out and apparently wrong anyway because it was
23268 using Lao characters. If Buddhist era should be used
23269 for km_KH, a native speaker should write the correct formaat
23270 for Khmer.
23271 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23272 (According to CLDR, the first weekday for Cambodia is Sunday).
23273 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23274 (These were using Lao characters which must be wrong. If we get
23275 the correct data from a native speaker, we could add it back, until
23276 then it is better not to have name_mr and name_mrs at all than
23277 having it wrong).
23278
23279 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23280
23281 * locale/loadlocale.c: Correct size of
23282 _nl_value_type_LC_<category> arrays.
23283
23284 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23285
23286 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23287 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23288 with appropriate macros defined and undefined.
23289 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23290 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23291 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23292 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23293 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23294
23295 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23296
23297 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23298 "-O2 -march=i586".
23299
23300 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23301
23302 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23303 with lowercase letters to make it agree with CLDR.
23304
23305 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23306
23307 [BZ #15260]
23308 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23309 first letters of yesstr and nostr in yesexpr and noexpr,
23310 not for the full words.
23311 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23312 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23313 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23314 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23315 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23316 first letters of yesstr and nostr in yesexpr and noexpr,
23317 until now only English was matched in yesexpr and noexpr.
23318 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23319 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23320 fil but not for tl. As tl and fil are very similar, using fil
23321 is probably better than using English.
23322
23323 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23324
23325 [BZ #21706]
23326 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23327 in yesstr and nostr.
23328
23329 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23330
23331 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23332 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23333 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23334 Likewise.
23335 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23336 Likewise.
23337 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23338 Likewise.
23339 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23340 Likewise.
23341 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23342 (SNANF128X): Likewise.
23343
23344 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23345 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23346 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23347 (HUGE_VAL_F32): Likewise.
23348 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23349 (HUGE_VAL_F64): Likewise.
23350 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23351 (HUGE_VAL_F32X): Likewise.
23352 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23353 (HUGE_VAL_F64X): Likewise.
23354 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23355 (HUGE_VAL_F128X): Likewise.
23356
23357 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23358
23359 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23360 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23361 for the br_FR locale.
23362
23363 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23364
23365 [BZ #21706]
23366 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23367
23368 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23369
23370 * locale/programs/record-status.h: Define globals, and function
23371 prototypes. Move function bodies...
23372 * locale/programs/record-status.c: ... to here. New file.
23373 * iconv/Makefile (iconv_prog-modules): Add record-status.
23374 * locale/Makefile (lib-modules): Likewise.
23375 * iconv/iconv_prog.c: Remove verbose.
23376 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23377 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23378 record a warning about ASCII compatibility.
23379 * locale/programs/ld-monetary.c (monetary_finish): If
23380 warn_int_curr_symbol is true then record a warning about the symbol
23381 not being in our ISO 4217 list.
23382 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23383 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23384 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23385 (OPT_NO_WARN): Define.
23386 (OPT_WARN): Define.
23387 (options): Add entry for --no-warnings, and --warnings.
23388 (set_warnings): New function to enable/disable warnings.
23389 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23390 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23391 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23392 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23393 Pass flags to generate_locale.
23394 (generate_locale): Accept new flag argument and pass it to localedef
23395 invocation.
23396 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23397 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23398
23399 * localedata/Makefile (test-input-data): Use full file name.
23400 * localedata/da_DK.in: Rename to...
23401 * localedata/da_DK.ISO-8859-1.in: ...this.
23402 * localedata/de_DE.in: Rename to...
23403 * localedata/de_DE.ISO-8859-1.in: ...this.
23404 * localedata/en_US.in: Rename to...
23405 * localedata/en_US.ISO-8859-1.in: ...this.
23406 * localedata/fr_FR.in: Rename to...
23407 * localedata/fr_FR.UTF-8.in: ... this.
23408 * localedata/hr_HR.in: Rename to...
23409 * localedata/hr_HR.ISO-8859-2.in: ...this.
23410 * localedata/hu_HU.in: Rename to...
23411 * localedata/hu_HU.UTF-8.in: ...this.
23412 * localedata/si_LK.in: Rename to...
23413 * localedata/si_LK.UTF-8.in: ...this.
23414 * localedata/sv_SE.in: Rename to...
23415 * localedata/sv_SE.ISO-8859-1.in: ...this.
23416 * localedata/tr_TR.in: Rename to...
23417 * localedata/tr_TR.UTF-8.in: ...this.
23418 * localedata/uk_UA.in: Rename to...
23419 * localedata/uk_UA.UTF-8.in: ...this.
23420 * localedata/sort-test.sh: Test file is locale name with the
23421 suffix.
23422
23423 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23424 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23425 file.
23426 * localedata/locales/i18n_ctype: Regenerate.
23427 * localedata/locales/tr_TR: Likewise.
23428 * localedata/locales/translit_circle: Likewise.
23429 * localedata/locales/translit_cjk_compat: Likewise.
23430 * localedata/locales/translit_combining: Likewise.
23431 * localedata/locales/translit_compat: Likewise.
23432 * localedata/locales/translit_font: Likewise.
23433 * localedata/locales/translit_fraction: Likewise.
23434
23435 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23436
23437 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23438 lxvd2x/stxvd2x with lvx/stvx.
23439 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23440
23441 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23442
23443 * include/alloc_buffer.h: Replace "if if " with "if " in
23444 comments.
23445 * sysdeps/mips/memcpy.S: Likkewise.
23446 * sysdeps/mips/memset.S: Likewise.
23447 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23448 Likewise.
23449 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23450 Likewise.
23451 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23452 Likewise.
23453
23454 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23455
23456 [BZ #15261]
23457 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23458 yesexpr and noexpr.
23459 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23460 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23461 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23462 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23463 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23464 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23465 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23466
23467 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23468
23469 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23470 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23471 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23472 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23473 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23474 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23475 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23476 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23477 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23478 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23479 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23480 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23481
23482 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23483
23484 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23485 as possible for better readability of the source.
23486 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23487 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23488 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23489 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23490 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23491 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23492 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23493 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23494 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23495 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23496 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23497 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23498 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23499 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23500 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23501 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23502 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23503 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23504 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23505 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23506 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23507 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23508 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23509 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23510 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23511 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23512 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23513 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23514 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23515 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23516 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23517 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23518 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23519 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23520 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23521 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23522 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23523 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23524 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23525 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23526 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23527 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23528 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23529 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23530 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23531 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23532 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23533 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23534 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23535 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23536 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23537 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23538 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23539 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23540 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23541 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23542 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23543 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23544 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23545 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23546 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23547 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23548 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23549 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23550 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23551 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23552 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23553 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23554 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23555 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23556 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23557 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23558 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23559 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23560 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23561 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23562 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23563 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23564 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23565 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23566 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23567 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23568 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23569 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23570 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23571 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23572 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23573 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23574 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23575 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23576 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23577 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23578 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23579 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23580 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23581 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23582 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23583 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23584 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23585 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23586 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23587 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23588 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23589 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23590 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23591 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23592 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23593 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23594 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23595 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23596 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23597 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23598 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23599 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23600 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23601 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23602 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23603 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23604 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23605 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23606 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23607 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23608 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23609 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23610 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23611 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23612 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23613 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23614 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23615 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23616 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23617 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23618 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23619 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23620 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23621 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23622 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23623 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23624 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23625 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23626 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23627 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23628 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23629 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23630 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23631 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23632 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23633 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23634 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23635 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23636 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23637 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23638 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23639 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23640 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23641 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23642 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23643 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23644 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23645 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23646 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23647 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23648 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23649 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23650 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23651 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23652 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23653 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23654 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23655 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23656 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23657 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23658 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23659 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23660
23661 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23662
23663 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23664 (Use first letters of yesstr and nostr correctly instead of using
23665 full words).
23666
23667 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23668
23669 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23670 (Use first letters of yesstr and nostr correctly).
23671
23672 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23673
23674 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23675 also check for the first characters of yesstr and nostr.
23676 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23677 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23678
23679 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23680
23681 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23682 also check for Chinese characters.
23683
23684 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23685
23686 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23687 match also for the contents of yesstr and nostr. As the first letter
23688 of yesstr and nostr is equal, checking only for the first letter
23689 is not enough.
23690
23691 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23692
23693 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23694 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23695
23696 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23697
23698 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23699 of main contributor.
23700
23701 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23702
23703 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23704 instead of using English.
23705
23706 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23707
23708 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23709 by including the first letters of nostr and yesexpr in the regexp.
23710 Also make it more readable by using ASCII where possible.
23711
23712 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23713
23714 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23715 the first letter of nostr in the regexp. It agrees with CLDR now.
23716 Also make it more readable by using ASCII where possible.
23717
23718 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23719
23720 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23721 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23722 these strings contain a U+17D6 (which somewhat looks like a colon)
23723 instead of a real colon to separate the full words for “yes”
23724 and “no” from the single letter responses.
23725
23726 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23727
23728 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23729 it agree with CLDR (include the first letter of yesstr).
23730 Also make it more readable by using ASCII where possible.
23731
23732 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23733
23734 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23735 and improve yesexpr and noexpr. The yesstr and nostr apparently
23736 came from CLDR. And CLDR has a bug there: these strings contain
23737 a U+0903 (which looks like a colon) instead of a real colon
23738 to separate the full words for “yes” and “no” from the single
23739 letter responses.
23740
23741 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23742
23743 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23744 letters of the full yesstr and nostr in yesexpr and noexpr.
23745
23746 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23747
23748 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23749 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23750 * localedata/locales/an_ES: Make source more readable by using ASCII
23751 where possible.
23752
23753 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23754
23755 [BZ #20952]
23756 * localedata/locales/yuw_PG: New file.
23757 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23758 * locale/iso-639.def: Add Yau (Uruwa).
23759
23760 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23761
23762 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23763
23764 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23765
23766 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23767 (__libc_realloc): Likewise.
23768 (_mid_memalign): Likewise.
23769 (__libc_calloc): Likewise.
23770
23771 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23772
23773 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23774 by adding the generic +1 and -0 as in all other locales.
23775 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23776 day names and make it more readable by using ASCII where possible.
23777
23778 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23779
23780 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23781 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23782
23783 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23784
23785 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23786 WNOHANG in waitpid call.
23787
23788 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23789
23790 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23791 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23792
23793 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23794 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23795 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23796 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23797 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23798 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23799 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23800 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23801 variables.
23802
23803 2017-10-23 Michael Collison <michael.collison@arm.com>
23804
23805 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23806 with __builtin_sqrt.
23807 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23808 with __builtin_sqrtf.
23809 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23810 with __builtin_ceil.
23811 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23812 with __builtin_ceilf.
23813 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23814 with __builtin_floor.
23815 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23816 with __builtin_floorf.
23817 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23818 with __builtin_fma.
23819 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23820 with __builtin_fmaf.
23821 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23822 with __builtin_fmax.
23823 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23824 with __builtin_fmaxf.
23825 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23826 with __builtin_fmin.
23827 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23828 with __builtin_fminf.
23829 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23830 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23831 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23832 with builtin_rint and conversion to int.
23833 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23834 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23835 with builtin_llround.
23836 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23837 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23838 with builtin_rint and conversion to long int.
23839 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23840 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23841 with builtin_lround.
23842 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23843 with builtin_lroundf.
23844 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23845 statements with __builtin_nearbyint.
23846 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23847 statements with __builtin_nearbyintf.
23848 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23849 with __builtin_rint.
23850 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23851 with __builtin_rintf.
23852 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23853 with __builtin_round.
23854 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23855 with __builtin_roundf.
23856 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23857 with __builtin_trunc.
23858 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23859 with __builtin_truncf.
23860 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23861 and s_l[l]round[f].c too.
23862
23863 2017-10-23 Alan Modra <amodra@gmail.com>
23864
23865 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23866 Adjust stack after restoring regs. Add missing LR cfi_restore.
23867
23868 2017-10-23 Alan Modra <amodra@gmail.com>
23869
23870 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23871 Move LR save and frame setup/teardown and LR restore to
23872 immediately around memset call. Provide cfi.
23873
23874 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23875
23876 * sysdeps/i386/fpu/e_powf.S: Removed.
23877 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23878 * sysdeps/i386/fpu/w_powf.c: Likewise.
23879 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23880 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23881 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23882 Add e_powf-sse2.
23883 (CFLAGS-e_powf-sse2.c): New.
23884 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23885 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23886
23887 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23888
23889 * sysdeps/i386/fpu/e_log2f.S: Removed.
23890 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23891 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23892 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23893 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23894 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23895 Add e_log2f-sse2.
23896 (CFLAGS-e_log2f-sse2.c): New.
23897 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23898 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23899
23900 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23901
23902 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23903 Add e_powf-fma.
23904 (CFLAGS-e_powf-fma.c): New.
23905 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23906 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23907
23908 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23909
23910 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23911 Add e_log2f-fma.
23912 (CFLAGS-e_log2f-fma.c): New.
23913 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23914 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23915
23916 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23917
23918 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23919 Add e_logf-fma.
23920 (CFLAGS-e_logf-fma.c): New.
23921 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23922 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23923
23924 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23925
23926 * sysdeps/i386/fpu/e_logf.S: Removed.
23927 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23928 * sysdeps/i386/fpu/w_logf.c: Likewise.
23929 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23930 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23931 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23932 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23933 Add e_logf-sse2.
23934 (CFLAGS-e_logf-sse2.c): New.
23935 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23936 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23937
23938 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23939
23940 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23941 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23942 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23943 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23944 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23945 Add e_exp2f-sse2.
23946 (CFLAGS-e_exp2f-sse2.c): New.
23947 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23948 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23949
23950 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23951
23952 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23953 Add e_exp2f-fma.
23954 (CFLAGS-e_exp2f-fma.c): New.
23955 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23956 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23957
23958 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23959
23960 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23961 * sysdeps/i386/fpu/e_expf.S: Likewise.
23962 * sysdeps/i386/fpu/math_errf.c: Likewise.
23963 * sysdeps/i386/fpu/w_expf.c: Likewise.
23964 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23965 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23966 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23967 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23968 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23969 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23970 Remove e_expf-ia32.
23971 (CFLAGS-e_expf-sse2.c): New.
23972 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23973 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23974
23975 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23976
23977 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23978 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23979 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23980 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23981 e_expf.c.
23982 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23983 New.
23984 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23985 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23986 Renamed to ...
23987 (__redirect_expf): This.
23988 (SYMBOL_NAME): Changed to expf.
23989 (__ieee754_expf): Renamed to ...
23990 (__expf): This.
23991 (__GI___expf): This.
23992 (__ieee754_expf): Add strong_alias.
23993 (__expf_finite): Likewise.
23994 (__expf): New.
23995 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23996
23997 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23998
23999 [BZ #22332]
24000 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24001 unescaping.
24002
24003 2017-10-21 Florian Weimer <fweimer@redhat.com>
24004
24005 * posix/Makefile (tests): Add tst-glob-tilde.
24006 (tests-special): Add tst-glob-tilde-mem.out
24007 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24008 (tst-glob-tilde-mem.out): Add mtrace check.
24009 * posix/tst-glob-tilde.c: New file.
24010
24011 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24012
24013 * bits/floatn-common.h: New file.
24014 * math/Makefile (headers): Add bits/floatn-common.h.
24015 * bits/floatn.h: Include <bits/floatn-common.h>.
24016 * sysdeps/ia64/bits/floatn.h: Likewise.
24017 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24018 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24019 * sysdeps/powerpc/bits/floatn.h: Likewise.
24020 * sysdeps/x86/bits/floatn.h: Likewise.
24021
24022 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24023
24024 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24025 indicates whether compiler emits an warning for alias for
24026 functions with incompatible types.
24027
24028 [BZ #22273]
24029 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24030 the auxiliary process is terminated by a signal before calling _exit
24031 or execve.
24032
24033 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24034
24035 [BZ #21265]
24036 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24037 New.
24038 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24039 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24040 and bit_arch_XSAVEC_Usable if needed.
24041 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24042 and bit_arch_Use_dl_runtime_resolve_opt.
24043 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24044 Removed.
24045 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24046 (bit_arch_Prefer_No_AVX512): Updated.
24047 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24048 (bit_arch_XSAVEC_Usable): New.
24049 (STATE_SAVE_OFFSET): Likewise.
24050 (STATE_SAVE_MASK): Likewise.
24051 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24052 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24053 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24054 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24055 (index_arch_XSAVEC_Usable): New.
24056 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24057 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24058 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24059 is enabled.
24060 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24061 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24062 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24063 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24064 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24065 _dl_runtime_resolve_xsavec.
24066 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24067 Removed.
24068 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24069 instead of VEC_SIZE.
24070 (REGISTER_SAVE_BND0): Removed.
24071 (REGISTER_SAVE_BND1): Likewise.
24072 (REGISTER_SAVE_BND3): Likewise.
24073 (REGISTER_SAVE_RAX): Always defined to 0.
24074 (VMOV): Removed.
24075 (_dl_runtime_resolve_avx): Likewise.
24076 (_dl_runtime_resolve_avx_slow): Likewise.
24077 (_dl_runtime_resolve_avx_opt): Likewise.
24078 (_dl_runtime_resolve_avx512): Likewise.
24079 (_dl_runtime_resolve_avx512_opt): Likewise.
24080 (_dl_runtime_resolve_sse): Likewise.
24081 (_dl_runtime_resolve_sse_vex): Likewise.
24082 (USE_FXSAVE): New.
24083 (_dl_runtime_resolve_fxsave): Likewise.
24084 (USE_XSAVE): Likewise.
24085 (_dl_runtime_resolve_xsave): Likewise.
24086 (USE_XSAVEC): Likewise.
24087 (_dl_runtime_resolve_xsavec): Likewise.
24088 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24089 Removed.
24090 (_dl_runtime_resolve_avx512_opt): Likewise.
24091 (_dl_runtime_resolve_avx): Likewise.
24092 (_dl_runtime_resolve_avx_opt): Likewise.
24093 (_dl_runtime_resolve_sse): Likewise.
24094 (_dl_runtime_resolve_sse_vex): Likewise.
24095 (_dl_runtime_resolve_fxsave): New.
24096 (_dl_runtime_resolve_xsave): Likewise.
24097 (_dl_runtime_resolve_xsavec): Likewise.
24098
24099 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24100
24101 [BZ #22320]
24102 CVE-2017-15670
24103 * posix/glob.c (__glob): Fix one-byte overflow.
24104
24105 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24106
24107 * malloc/malloc.c (sysdep-cancel.h): Add include.
24108
24109 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24110
24111 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24112
24113 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24114
24115 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24116 (tests): Remove $(objpfx)ga_test depdendency.
24117 * resolv/ga_test.c: Remove file.
24118
24119 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24120
24121 [BZ #18812]
24122 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24123 * localedata/locales/kab_DZ: New file.
24124
24125 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24126
24127 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24128 _dl_relocate_static_pie instead of _dl_start to compute load
24129 address in static PIE.
24130
24131 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24132
24133 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24134
24135 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24136
24137 [BZ #13605]
24138 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24139 * localedata/locales/shn_MM: New file.
24140
24141 2017-10-20 Florian Weimer <fweimer@redhat.com>
24142
24143 [BZ #22321]
24144 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24145 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24146 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24147 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24148 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24149 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24150
24151 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24152
24153 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24154
24155 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24156
24157 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24158
24159 [BZ #22322]
24160 * sysdeps/mips/bits/long-double.h: Move to ....
24161 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24162
24163 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24164
24165 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24166
24167 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24168 H.J. Lu <hongjiu.lu@intel.com>
24169
24170 [BZ #22299]
24171 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24172 GLRO(dl_platform) to NULL.
24173 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24174 (modules-names): Add tst-platformmod-1 and
24175 x86_64/tst-platformmod-2.
24176 (CFLAGS-tst-platform-1.c): New.
24177 (CFLAGS-tst-platformmod-1.c): Likewise.
24178 (CFLAGS-tst-platformmod-2.c): Likewise.
24179 (LDFLAGS-tst-platformmod-2.so): Likewise.
24180 ($(objpfx)tst-platform-1): Likewise.
24181 ($(objpfx)tst-platform-1.out): Likewise.
24182 (tst-platform-1-ENV): Likewise.
24183 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24184 * sysdeps/x86_64/tst-platform-1.c: New file.
24185 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24186 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24187
24188 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24189
24190 [BZ #13994]
24191 * locale/iso-639.def: Add Karbi.
24192 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24193 * localedata/locales/mjw_IN: New file.
24194
24195 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24196
24197 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24198 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24199 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24200 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24201 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24202 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24203 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24204 <bits/floatn.h>.
24205 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24206 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24207 * manual/math.texi (Mathematics): Document additional architecture
24208 support for _Float128.
24209 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24210 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24211 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24212 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24213 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24214 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24215 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24216 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24217 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24218 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24219 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24220 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24221 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24222 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24223 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24224
24225 2017-10-18 Renlin Li <renlin.li@arm.com>
24226
24227 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24228 _DYNAMIC symbol to calculate load address.
24229
24230 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24231
24232 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24233 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24234 summary bits.
24235 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24236 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24237
24238 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24239
24240 [BZ #16777]
24241 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24242 and improve readability by using more ASCII.
24243 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24244 and improve readability by using more ASCII.
24245
24246 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24247
24248 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24249 not all targets support atomics on bool.
24250
24251 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24252
24253 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24254 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24255 __f128.
24256 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24257 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24258 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24259 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24260 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24261 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24262
24263 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24264
24265 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24266 defines.
24267
24268 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24269
24270 [BZ #22159]
24271 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24272 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24273 (do_check_remalloced_chunk): Fix build bug.
24274 (do_check_malloc_state): Add assert that checks arena->top.
24275 (malloc_consolidate): Remove initialization.
24276 (int_mallinfo): Remove call to malloc_consolidate.
24277 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24278
24279 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24280
24281 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24282 (have_fastchunks): Remove.
24283 (clear_fastchunks): Remove.
24284 (set_fastchunks): Remove.
24285 (malloc_state): Add have_fastchunks.
24286 (malloc_init_state): Use have_fastchunks.
24287 (do_check_malloc_state): Remove incorrect invariant checks.
24288 (_int_malloc): Use have_fastchunks.
24289 (_int_free): Likewise.
24290 (malloc_consolidate): Likewise.
24291
24292 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24293
24294 * malloc/malloc.c (tcache_put): Inline.
24295 (tcache_get): Inline.
24296
24297 2017-10-17 Jordi Mallach <jordi@gnu.org>
24298
24299 Aurelien Jarno <aurelien@aurel32.net>
24300 [BZ #2522]
24301 * localedata/locales/ca_ES@valencia: New file.
24302 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24303
24304 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24305
24306 [BZ #22296]
24307 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24308 < 6.x
24309
24310 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24311
24312 * scripts/build-many-glibcs.py (Context.add_all_configs):
24313 Add arm-linux-gnueabihf multiarch extra_glibcs.
24314
24315 * sysdeps/generic/ifunc-init.h: New file.
24316 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24317
24318 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24319
24320 [BZ #22019]
24321 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24322 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24323 * stdlib/tst-strfmon_l.c: adapt test case.
24324
24325 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24326
24327 * sysdeps/generic/float128-abi.h: New file.
24328 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24329 non-__prefixed symbols to ....
24330 * math/Versions: ... here. Include <float128-abi.h>.
24331 * stdlib/Versions ... and here. Include <float128-abi.h>
24332
24333 2017-10-16 Florian Weimer <fweimer@redhat.com>
24334
24335 * version.h (VERSION): Switch to ".9000" as the development
24336 version suffix.
24337
24338 2017-10-16 Florian Weimer <fweimer@redhat.com>
24339
24340 [BZ #22050]
24341 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24342 compat_symbol_reference to access non-default version.
24343
24344 2017-10-16 Florian Weimer <fweimer@redhat.com>
24345
24346 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24347
24348 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24349
24350 * include/shlib-compat.h (compat_symbol_reference): Update
24351 comment.
24352
24353 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24354
24355 * math/Makefile (test-types): Add
24356 $(type-float128-$(float128-alias-fcts)).
24357 * math/test-float128.h (TYPE_STR): Define conditional on
24358 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24359 (ULP_IDX): Likewise.
24360 (ULP_I_IDX): Likewise.
24361
24362 * stdlib/strtold.c: Include <bits/floatn.h>
24363 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24364 and later undefine as macro. Define as weak alias if
24365 [!USE_WIDE_CHAR].
24366 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24367 and later undefine as macro. Define as weak alias if
24368 [USE_WIDE_CHAR].
24369 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24370 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24371 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24372 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24373 Define and later undefine as macro. Define as weak alias if
24374 [USE_WIDE_CHAR].
24375 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24376 <bits/floatn.h>.
24377 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24378 Define and later undefine as macro. Define as weak alias if
24379 [!USE_WIDE_CHAR].
24380 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24381 Define and later undefine as macro. Define as weak alias if
24382 [USE_WIDE_CHAR].
24383
24384 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24385
24386 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24387 record_verbose messages.
24388
24389 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24390
24391 [BZ #22052]
24392 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24393 to silence -O3 -Wall warning with GCC 7.
24394
24395 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24396
24397 * Makeconfig (+link-static-before-libc): Use the first of
24398 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24399 * gmon/Makefile (tests): Add tst-gmon-static.
24400 (tests-static): Likewise.
24401 (CFLAGS-tst-gmon-static.c): New.
24402 (CRT-tst-gmon-static): Likewise.
24403 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24404 (tst-gmon-static-ENV): Likewise.
24405 (tests-special): Likewise.
24406 ($(objpfx)tst-gmon-static.out): Likewise.
24407 (clean-tst-gmon-static-data): Likewise.
24408 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24409 * gmon/tst-gmon-static-gprof.sh: New file.
24410 * gmon/tst-gmon-static.c: Likewise.
24411
24412 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24413
24414 [BZ #22295]
24415 * locale/programs/linereader.c (get_string): Don't warn on
24416 non-symbolic character.
24417
24418 [BZ #22294]
24419 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24420 int_curr_symbol.
24421
24422 [BZ #22292]
24423 * locale/programs/record-status.h: New file
24424 * locale/programs/locale.c: Add comment.
24425 * locale/programs/charmap-dir.c: Don't include error.h.
24426 (charmap_opendir): Use record_error.
24427 * locale/programs/charmap.c: Don't include error.h.
24428 (charmap_read): Use record_error, and record_warning.
24429 (parse_charmap): Likewise.
24430 * locale/programs/ld-address.c: Don't include error.h.
24431 (address_finish): Use record_error, and record_warning.
24432 * locale/programs/ld-collate.c: Don't include error.h.
24433 (collate_finish): Use record_error, and record_error_at_line.
24434 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24435 (ctype_class_new): Likewise.
24436 (ctype_map_new): Likewise.
24437 (set_one_default): Likewise.
24438 (set_class_defaults): Likewise.
24439 (translit_flatten): Likewise.
24440 (allocate_arrays): Use record_error, and record_verbose.
24441 * locale/programs/ld-identification.c: Don't include error.h.
24442 (indentation_finish): Use record_error and record_warning.
24443 * locale/programs/ld-measurement.c: Don't include error.h.
24444 (measurement_finish): Use record_error.
24445 * locale/programs/ld-messages.c
24446 (message_finish): Likewise.
24447 * locale/programs/ld-monetary.c
24448 (monetary_finish): Likewise.
24449 * locale/programs/ld-name.c (name_finish): Use record_error
24450 and record_warning.
24451 * locale/programs/ld-numeric.c
24452 (numeric_finish): Use record_error.
24453 * locale/programs/ld-paper.c: Don't include error.h.
24454 (paper_finish): Use record_error.
24455 * locale/programs/ld-telephone.c: Don't include error.h.
24456 (telephone_finish): Use record_error.
24457 * locale/programs/ld-time.c (time_finish): Likewise.
24458 * locale/programs/linereader.h (lr_error): Make inline func.
24459 * locale/programs/localedef.c: Define recorded_warning_count,
24460 and recorded_error_count.
24461 (main): Use record_error. Use recorded_error_count and
24462 recorded_warning_count to issue correct error returns.
24463 (add_to_readlist): Use record_error.
24464 (find_locale): Likewise.
24465 (load_locale): Likewise.
24466 * locale/programs/localedef.h: Remove be_quiet
24467 and WITH_CUR_LOCALE.
24468 * locale/programs/locarchive.c (compare_from_file): Use
24469 record_error.
24470 * locale/programs/locfile.c (write_locale_data): Use
24471 record_error.
24472 * locale/programs/repertoire.c: Dont include error.h.
24473 (repertoire_complain): Use record_error.
24474 * localedata/tst-fmon.sh: Expect failures from localedef.
24475 * localedata/tst-locale.sh: Likewise.
24476 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24477
24478 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24479 (REPORTS): Likewise.
24480 (check): Likewise.
24481 (i18n): Rename to...
24482 (i18n_ctype): ...this.
24483 (i18n-report): Rename to...
24484 (i18n_ctype-report): ...this.
24485 * localedata/locales/i18n_ctype: Regenerate.
24486 * localedata/locales/i18n: copy i18n_ctype.
24487
24488 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24489
24490 * stdlib/strfroml.c: Include <bits/floatn.h>.
24491 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24492 Define before include of <stdlib.h> and undefine afterwards, then
24493 define as weak alias.
24494
24495 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24496 Undefine and restore default definition. Use
24497 libm_alias_ldouble_other.
24498
24499 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24500
24501 [BZ #22153]
24502 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24503 in coredumps.
24504
24505 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24506
24507 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24508 Assign sym_map to be map for local symbols, as TLS relocations
24509 use sym_map to determine whether the symbol is defined and to
24510 extract the TLS information.
24511 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24512 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24513
24514 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24515
24516 [BZ #22189]
24517 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24518 (math_force_eval): Add powerpc version.
24519
24520 [BZ #22142]
24521 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24522 -DBL_MAX.
24523 (do_test): Likewise.
24524 * stdio-common/tst-printf.sh: Likewise.
24525 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24526 ifdef clause in order to set the carry bit right. Replace r0 by
24527 0 without changing the behavior.
24528
24529 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24530
24531 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24532 <libm-alias-ldouble.h>.
24533 (fabsl): Define using libm_alias_ldouble.
24534 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24535 <libm-alias-ldouble.h>.
24536 (fabsl): Define using libm_alias_ldouble.
24537
24538 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24539 Remove conditional code.
24540
24541 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24542 Rename to __clog10_internal_l.
24543 (__clog10_internal_l): Define aliases using
24544 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24545 with __clog10.
24546
24547 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24548
24549 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24550 * benchtests/sincosf-inputs: New file.
24551 * benchtests/cosf-inputs: New file.
24552 * benchtests/sinf-inputs: New file.
24553
24554 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24555
24556 * posix/tst-spawn.c (do_test): Wait for both children.
24557
24558 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24559
24560 [BZ #22284]
24561 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24562 tests-pie): Add tst-gmon-pie.
24563 (CFLAGS-tst-gmon-pie.c): New.
24564 (CRT-tst-gmon-pie): Likewise.
24565 (tst-gmon-pie-ENV): Likewise.
24566 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24567 ($(objpfx)tst-gmon-pie.out): Likewise.
24568 (clean-tst-gmon-pie-data): Likewise.
24569 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24570 * gmon/gmon.c [PIC]: Include <link.h>.
24571 [PIC] (callback): New function.
24572 (write_hist): Add an argument for load address. Subtract load
24573 address from PCs.
24574 (write_call_graph): Likewise.
24575 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24576 it to write_hist and write_call_graph.
24577 * gmon/tst-gmon-pie.c: New file.
24578
24579 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24580
24581 * math/Makefile (test-types-basic): New variable.
24582 (test-types): Likewise.
24583 (libm-test-support): Use $(test-types) instead of $(types).
24584 (libm-tests-base-normal): Likewise.
24585 (libm-tests-base-finite): Likewise.
24586 (libm-tests-base-inline): Likewise.
24587 (generated): Likewise.
24588 ($(objpfx)libm-test-support-$(t).c): Likewise.
24589 (libm-tests-for-type iterator): Likewise.
24590 (libm-test-support iterator): Likewise.
24591 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24592 (ulp_idx): Use ULP_IDX.
24593 * math/test-ldouble.h: Include <float.h>.
24594 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24595 (ULP_IDX): New macro.
24596 (ULP_I_IDX): Likewise.
24597 * math/test-double.h (ULP_IDX): Likewise.
24598 (ULP_I_IDX): Likewise.
24599 * math/test-float.h (ULP_IDX): Likewise.
24600 (ULP_I_IDX): Likewise.
24601 * math/test-float128.h (ULP_IDX): Likewise.
24602 (ULP_I_IDX): Likewise.
24603
24604 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24605
24606 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24607 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24608 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24609 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24610 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24611 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24612 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24613 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24614 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24615 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24616 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24617 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24618 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24619 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24620 (SINGLE_THREAD_BY_GLOBAL): Define.
24621 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24622 Likewise.
24623 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24624 Likewise.
24625 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24626 Likewise.
24627 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24628 Likewise.
24629 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24630 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24631 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24632 Likewise.
24633
24634 2017-10-11 Andreas Schwab <schwab@suse.de>
24635
24636 * nis/Makefile (aux): Remove.
24637 * nscd/Makefile (aux): Add nscd_hash.
24638 (nscd-modules): Likewise.
24639 ($(objpfx)nscd): Don't depend on libnsl.
24640 * nscd/nscd_hash.c: New file.
24641 * nscd/nscd_hash.h: Likewise.
24642 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24643 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24644 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24645 instead of <nis/rpcsvc/nis.h>.
24646 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24647
24648 2017-10-11 Florian Weimer <fweimer@redhat.com>
24649
24650 [BZ #22078]
24651 Avoid large NSS buffers with many addresses, aliases.
24652 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24653 using dynarrays and struct alloc_buffer.
24654 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24655 (tst-nss-files-hosts-multi): Link with -ldl.
24656 * nss/tst-nss-files-hosts-multi.c: New file.
24657
24658 2017-10-11 Florian Weimer <fweimer@redhat.com>
24659
24660 [BZ #18023]
24661 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24662 scratch_buffer. Eliminate gotos.
24663
24664 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24665
24666 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24667 libm_alias_ldouble_other.
24668 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24669 undefine and redefine.
24670 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24671 (exp10l): Do not define here.
24672 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24673 (weak_alias): Undefine and redefine.
24674 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24675 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24676 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24677 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24678
24679 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24680 [!__fma] (fma): Define using libm_alias_double.
24681 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24682 [!__fmaf] (fmaf): Define using libm_alias_float.
24683 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24684 (fmal): Define using libm_alias_ldouble.
24685
24686 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24687
24688 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24689 New macro.
24690 (libm_alias_double_other): Likewise.
24691 (libm_alias_double_r): Use libm_alias_double_other_r.
24692 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24693 New macro.
24694 (libm_alias_float_other): Likewise.
24695 (libm_alias_float_r): Use libm_alias_float_other_r.
24696 * sysdeps/generic/libm-alias-float128.h
24697 (libm_alias_float128_other_r): New macro.
24698 (libm_alias_float128_other): Likewise.
24699 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24700 * sysdeps/generic/libm-alias-ldouble.h
24701 (libm_alias_ldouble_other_r): New macro.
24702 (libm_alias_ldouble_other): Likewise.
24703 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24704 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24705 (libm_alias_double_other_r): New macro.
24706 (libm_alias_double_other): Likewise.
24707 (libm_alias_double_r): Use libm_alias_double_other_r.
24708 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24709 (libm_alias_ldouble_other_r): New macro.
24710 (libm_alias_ldouble_other): Likewise.
24711 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24712 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24713 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24714 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24715 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24716 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24717 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24718 * math/w_exp2f.c: Use libm_alias_float_other.
24719 * math/w_expf.c: Likewise.
24720 * math/w_log2f.c: Likewise.
24721 * math/w_logf.c: Likewise.
24722 * math/w_powf.c: Likewise.
24723 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24724 [!__exp2f]: Use libm_alias_float_other.
24725 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24726 [!__expf]: Use libm_alias_float_other.
24727 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24728 [!__log2f]: Use libm_alias_float_other.
24729 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24730 [!__logf]: Use libm_alias_float_other.
24731 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24732 [!__powf]: Use libm_alias_float_other.
24733
24734 2017-10-10 Florian Weimer <fweimer@redhat.com>
24735
24736 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24737 function.
24738 (_nss_files_gethostbyname3_r): Call it.
24739
24740 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24741
24742 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24743 error. Remove default definition of declare_mgen_alias.
24744 [!declare_mgen_alias_r]: Likewise.
24745 * sysdeps/generic/math-type-macros-double.h
24746 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24747 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24748 (declare_mgen_alias_r): Likewise.
24749 * sysdeps/generic/math-type-macros-float128.h
24750 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24751 * sysdeps/generic/math-type-macros-ldouble.h
24752 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24753 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24754 macro.
24755 (declare_mgen_alias_r_s): Likewise.
24756 (declare_mgen_alias_r): Likewise.
24757 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24758 (lgamma_r): Define using libm_alias_double_r.
24759 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24760 (lgammaf_r): Define using libm_alias_float_r.
24761 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24762 (lgammal_r): Define using libm_alias_ldouble_r.
24763 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24764 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24765
24766 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24767
24768 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24769 extern declaration.
24770
24771 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24772
24773 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24774
24775 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24776
24777 [BZ #21326]
24778 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24779 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24780 * math/Makefile (test-math-cxx11): New test.
24781 * math/test-math-cxx11.cc: New file.
24782
24783 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24784
24785 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24786
24787 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24788 call to allocate the slave pty file descriptor.
24789
24790 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24791
24792 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24793 [!__fma] (fma): Define using libm_alias_double.
24794 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24795 [!__fma] (fma): Define using libm_alias_double.
24796
24797 * sysdeps/ieee754/float128/float128_private.h: Include
24798 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24799 (libm_alias_ldouble_r): Undefine and redefine.
24800 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24801 <libm-alias-ldouble.h>.
24802 (asinhl): Define using libm_alias_ldouble.
24803 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24804 <libm-alias-ldouble.h>.
24805 (atanl): Define using libm_alias_ldouble.
24806 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24807 <libm-alias-ldouble.h>.
24808 (cbrtl): Define using libm_alias_ldouble.
24809 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24810 <libm-alias-ldouble.h>.
24811 (ceill): Define using libm_alias_ldouble.
24812 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24813 <libm-alias-ldouble.h>.
24814 (copysignl): Define using libm_alias_ldouble.
24815 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24816 <libm-alias-ldouble.h>.
24817 (cosl): Define using libm_alias_ldouble.
24818 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24819 <libm-alias-ldouble.h>.
24820 (erfl): Define using libm_alias_ldouble.
24821 (erfcl): Likewise.
24822 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24823 <libm-alias-ldouble.h>.
24824 (expm1l): Define using libm_alias_ldouble.
24825 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24826 <libm-alias-ldouble.h>.
24827 (fabsl): Define using libm_alias_ldouble.
24828 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24829 <libm-alias-ldouble.h>.
24830 (floorl): Define using libm_alias_ldouble.
24831 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24832 <libm-alias-ldouble.h>.
24833 (fmal): Define using libm_alias_ldouble.
24834 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24835 <libm-alias-ldouble.h>.
24836 (frexpl): Define using libm_alias_ldouble.
24837 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24838 libm_alias_ldouble.
24839 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24840 <libm-alias-ldouble.h>.
24841 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24842 libm_alias_ldouble.
24843 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24844 <libm-alias-ldouble.h>.
24845 (getpayloadl): Define using libm_alias_ldouble.
24846 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24847 <libm-alias-ldouble.h>.
24848 (llrintl): Define using libm_alias_ldouble.
24849 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24850 <libm-alias-ldouble.h>.
24851 (llroundl): Define using libm_alias_ldouble.
24852 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24853 <libm-alias-ldouble.h>.
24854 (logbl): Define using libm_alias_ldouble.
24855 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24856 <libm-alias-ldouble.h>.
24857 (lrintl): Define using libm_alias_ldouble.
24858 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24859 <libm-alias-ldouble.h>.
24860 (lroundl): Define using libm_alias_ldouble.
24861 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24862 <libm-alias-ldouble.h>.
24863 (modfl): Define using libm_alias_ldouble.
24864 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24865 <libm-alias-ldouble.h>.
24866 (nearbyintl): Define using libm_alias_ldouble.
24867 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24868 <libm-alias-ldouble.h>.
24869 (nextafterl): Define using libm_alias_ldouble.
24870 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24871 <libm-alias-ldouble.h>.
24872 (nextupl): Define using libm_alias_ldouble.
24873 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24874 <libm-alias-ldouble.h>.
24875 (remquol): Define using libm_alias_ldouble.
24876 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24877 <libm-alias-ldouble.h>.
24878 (rintl): Define using libm_alias_ldouble.
24879 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24880 <libm-alias-ldouble.h>.
24881 (roundevenl): Define using libm_alias_ldouble.
24882 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24883 <libm-alias-ldouble.h>.
24884 (roundl): Define using libm_alias_ldouble.
24885 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24886 using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24888 <libm-alias-ldouble.h>.
24889 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24890 Define using libm_alias_ldouble.
24891 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24892 <libm-alias-ldouble.h>.
24893 (sincosl): Define using libm_alias_ldouble.
24894 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24895 <libm-alias-ldouble.h>.
24896 (sinl): Define using libm_alias_ldouble.
24897 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24898 <libm-alias-ldouble.h>.
24899 (tanhl): Define using libm_alias_ldouble.
24900 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24901 <libm-alias-ldouble.h>.
24902 (tanl): Define using libm_alias_ldouble.
24903 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24904 <libm-alias-ldouble.h>.
24905 (totalorderl): Define using libm_alias_ldouble.
24906 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24907 <libm-alias-ldouble.h>.
24908 (totalordermagl): Define using libm_alias_ldouble.
24909 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24910 <libm-alias-ldouble.h>.
24911 (truncl): Define using libm_alias_ldouble.
24912 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24913 libm_alias_ldouble.
24914 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24915 libm_alias_ldouble.
24916 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24917 <libm-alias-ldouble.h>.
24918 (weak_alias): Do not undefine and redefine.
24919 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24920 (copysignl): Define with long_double_symbol only if [IS_IN
24921 (libc)].
24922 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24923 <libm-alias-ldouble.h>.
24924 (weak_alias): Do not undefine and redefine.
24925 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24926 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24927 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24928 <libm-alias-ldouble.h>.
24929 (weak_alias): Do not undefine and redefine.
24930 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24931 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24932 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24933 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24934 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24935 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24936 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24937 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24938 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24939 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24940 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24941 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24942 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24943 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24944 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24945 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24946 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24947 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24948 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24949 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24950 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24951 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24952 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24953 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24954 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24955 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24956
24957 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24958
24959 [BZ #22111]
24960 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24961 (tcache_thread_freeres): Set tcache_shutting_down before
24962 freeing the tcache.
24963 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24964 * malloc/tst-malloc-tcache-leak.c: New file.
24965
24966 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24967
24968 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24969 back to powerpc32 file.
24970 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24971 (memrchr): Add __memrchr_power8 to ifunc list.
24972 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24973 extra bytes for unaligned inputs.
24974
24975 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24976
24977 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24978 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24979 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24980 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24981 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24982
24983 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24984
24985 * sysdeps/arm/libm-test-ulps: Update.
24986
24987 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24988 <libm-alias-ldouble.h>.
24989 (asinhl): Define using libm_alias_ldouble.
24990 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24991 <libm-alias-ldouble.h>.
24992 (cbrtl): Define using libm_alias_ldouble.
24993 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24994 <libm-alias-ldouble.h>.
24995 (copysignl): Define using libm_alias_ldouble.
24996 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24997 <libm-alias-ldouble.h>.
24998 (cosl): Define using libm_alias_ldouble.
24999 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25000 <libm-alias-ldouble.h>.
25001 (erfl): Define using libm_alias_ldouble.
25002 (erfcl): Likewise.
25003 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25004 <libm-alias-ldouble.h>.
25005 (fmal): Define using libm_alias_ldouble.
25006 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25007 <libm-alias-ldouble.h>.
25008 (frexpl): Define using libm_alias_ldouble.
25009 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25010 libm_alias_ldouble.
25011 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25012 <libm-alias-ldouble.h>.
25013 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25014 libm_alias_ldouble.
25015 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25016 <libm-alias-ldouble.h>.
25017 (getpayloadl): Define using libm_alias_ldouble.
25018 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25019 <libm-alias-ldouble.h>.
25020 (llrintl): Define using libm_alias_ldouble.
25021 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25022 <libm-alias-ldouble.h>.
25023 (llroundl): Define using libm_alias_ldouble.
25024 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25025 <libm-alias-ldouble.h>.
25026 (lrintl): Define using libm_alias_ldouble.
25027 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25028 <libm-alias-ldouble.h>.
25029 (lroundl): Define using libm_alias_ldouble.
25030 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25031 <libm-alias-ldouble.h>.
25032 (modfl): Define using libm_alias_ldouble.
25033 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25034 <libm-alias-ldouble.h>.
25035 (nextupl): Define using libm_alias_ldouble.
25036 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25037 <libm-alias-ldouble.h>.
25038 (remquol): Define using libm_alias_ldouble.
25039 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25040 <libm-alias-ldouble.h>.
25041 (roundevenl): Define using libm_alias_ldouble.
25042 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25043 <libm-alias-ldouble.h>.
25044 (roundl): Define using libm_alias_ldouble.
25045 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25046 using libm_alias_ldouble.
25047 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25048 <libm-alias-ldouble.h>.
25049 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25050 <libm-alias-ldouble.h>.
25051 (setpayloadsigl): Define using libm_alias_ldouble.
25052 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25053 <libm-alias-ldouble.h>.
25054 (sincosl): Define using libm_alias_ldouble.
25055 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25056 <libm-alias-ldouble.h>.
25057 (sinl): Define using libm_alias_ldouble.
25058 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25059 <libm-alias-ldouble.h>.
25060 (tanhl): Define using libm_alias_ldouble.
25061 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25062 <libm-alias-ldouble.h>.
25063 (tanl): Define using libm_alias_ldouble.
25064 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25065 <libm-alias-ldouble.h>.
25066 (totalorderl): Define using libm_alias_ldouble.
25067 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25068 <libm-alias-ldouble.h>.
25069 (totalordermagl): Define using libm_alias_ldouble.
25070 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25071 libm_alias_ldouble.
25072 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25073 libm_alias_ldouble.
25074
25075 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25076
25077 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25078 memmove_falkor.
25079 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25080 (__libc_ifunc_impl_list): Likewise.
25081 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25082 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25083
25084 * benchtests/bench-memmove-walk.c: New file.
25085 * benchtests/Makefile (string-benchset): Add it.
25086
25087 * benchtests/bench-memset-walk.c: New file.
25088 * benchtests/Makefile (string-benchset): Add it.
25089
25090 * benchtests/bench-memcpy-walk.c: New file.
25091 * benchtests/Makefile (string-benchset): Add it.
25092
25093 2017-10-05 Florian Weimer <fweimer@redhat.com>
25094
25095 nscd: Eliminate compilation time dependency in the build output.
25096 * nscd/nscd_stat.c (STATDATA_VERSION)
25097 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25098 (STATDATA_VERSION_FULL): New macro definitions.
25099 (compilation): Remove.
25100 (struct statdata): Adjust version member.
25101 (send_stats): Set version from STATDATA_VERSION_FULL.
25102 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25103
25104 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25105
25106 * configure.ac (--enable-add-ons): Remove option.
25107 (machine): Do not mention add-ons in comment.
25108 (LIBC_PRECONFIGURE): Likewise.
25109 (add_ons): Remove variable and sanity checks and logic to locate
25110 add-ons.
25111 (add_ons_automatic): Remove variable.
25112 (configured_add_ons): Likewise.
25113 (add_ons_sfx): Likewise.
25114 (add_ons_pfx): Likewise.
25115 (add_on_subdirs): Likewise.
25116 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25117 consideration of add-ons in Implies handling.
25118 (sysdeps_add_ons): Likewise.
25119 * configure: Regenerated.
25120 * libidn/configure.ac: Remove.
25121 * libidn/configure: Likewise.
25122 * sysdeps/unix/inet/configure.ac: New file.
25123 * sysdeps/unix/inet/configure: New generated file.
25124 * sysdeps/unix/inet/Subdirs: Add libidn.
25125 * Makeconfig (sysdeps-srcdirs): Remove variable.
25126 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25127 ($(common-objpfx)config.status): Do not depend on add-on files.
25128 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25129 comment.
25130 (all-subdirs): Do not include $(add-on-subdirs).
25131 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25132 * config.make.in (add-ons): Remove variable.
25133 (add-on-subdirs): Likewise.
25134 (sysdeps-add-ons): Likewise.
25135 * manual/Makefile (add-chapters): Remove.
25136 ($(objpfx)texis): Do not depend on $(add-chapters).
25137 (nonexamples): Do not handle $(add-chapters).
25138 (examples): Do not handle $(add-ons).
25139 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25140 libc-texinfo.sh.
25141 * manual/install.texi (Installation): Do not mention add-ons.
25142 (--enable-add-ons): Do not document configure option.
25143 * INSTALL: Regenerated.
25144 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25145 * manual/maint.texi (Hierarchy Conventions): Do not mention
25146 add-ons.
25147 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25148 --enable-add-ons.
25149 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25150 add-ons.
25151 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25152 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25153
25154 2017-10-05 Andreas Schwab <schwab@suse.de>
25155
25156 [BZ #15142]
25157 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25158 (_IO_flush_all_lockp): Always lock list_all_lock.
25159 (_IO_flush_all_linebuffered): Likewise.
25160 (_IO_unbuffer_all): Likewise.
25161
25162 2017-10-05 Florian Weimer <fweimer@redhat.com>
25163
25164 [BZ #15436]
25165 Do not flush stdio streams on abort.
25166 * stdlib/abort.c (fflush): Remove macro definition.
25167 (abort): Remove stages related to stdio flushing.
25168
25169 2017-10-05 Florian Weimer <fweimer@redhat.com>
25170
25171 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25172
25173 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25174
25175 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25176
25177 2017-10-05 Florian Weimer <fweimer@redhat.com>
25178
25179 * support/support_format_hostent.c (support_format_hostent): Add
25180 more error information for NETDB_INTERNAL.
25181
25182 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25183
25184 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25185 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25186 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25187 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25188 AC_DEFINE if multi-arch is enabled.
25189 * sysdeps/i386/configure: Regenerated.
25190
25191 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25192
25193 * Makeconfig (+link-static-before-libc): Use
25194 $(DEFAULT-LDFLAGS-$(@F)).
25195 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25196 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25197 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25198
25199 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25200
25201 * elf/Makefile (tests): Add tst-main1.
25202 (modules-names): Add tst-main1mod.
25203 ($(objpfx)tst-main1): New.
25204 (CRT-tst-main1): Likewise.
25205 (LDFLAGS-tst-main1): Likewise.
25206 (LDLIBS-tst-main1): Likewise.
25207 (tst-main1mod.so-no-z-defs): Likewise.
25208 * elf/tst-main1.c: New file.
25209 * elf/tst-main1mod.c: Likewise.
25210
25211 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25212
25213 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25214
25215 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25216
25217 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25218 (fma): Define using libm_alias_double.
25219 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25220 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25221 <math_ldbl_opt.h>.
25222 (fmal): Do not define as compat symbol here.
25223 * sysdeps/alpha/fpu/s_fma.c: New file.
25224
25225 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25226
25227 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25228
25229 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25230
25231 [BZ #22229]
25232 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25233 <math_ldbl_opt.h>
25234 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25235 and libc.
25236 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25237 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25238 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25239 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25241 Include <math_ldbl_opt.h>
25242 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25243 and libc.
25244 (compat_symbol): Undefine and redefine.
25245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25246 <math_ldbl_opt.h>
25247 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25248 (compat_symbol): Undefine and redefine.
25249 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25250 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25251 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25252 GLIBC_2_1 for libm.
25253 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25254 GLIBC_2.0 copysignl symbol.
25255 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25256 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25257
25258 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25259
25260 2017-10-04 Florian Weimer <fweimer@redhat.com>
25261
25262 * scripts/check-local-headers.sh: Ignore nspr4 header file
25263 directory in addition to nspr.
25264
25265 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25266
25267 [BZ #17956]
25268 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25269 * configure: Regenerate.
25270 * crypt/Makefile (nss-cpp-flags): New variable.
25271 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25272 (CPPFLAGS-md5-crypt.c): Use it.
25273 * scripts/check-local-headers.sh: Ignore nspr header file
25274 directory.
25275
25276 2017-10-04 Andreas Schwab <schwab@suse.de>
25277
25278 * nis/Makefile (services): Remove compat.
25279 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25280 ($(objpfx)libnss_compat.so): Remove rule.
25281 * nis/Versions (libnss_compat): Remove.
25282 * nss/Makefile (services): Add compat.
25283 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25284 * nss/Versions (libnss_compat): Define.
25285 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25286 Don't include <rpc/types.h>. Replace bool_t by bool.
25287 * nss/nss_compat/compat-initgroups.c: Likewise.
25288 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25289 instead of <rpcsrv/ypclnt.h>.
25290 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25291 yp_get_default_domain.
25292 * nss/nss_compat/compat-pwd.c: Likewise.
25293 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25294 yp_get_default_domain.
25295 * nss/nss_compat/nisdomain.c: New file.
25296 * nss/nss_compat/nisdomain.h: Likewise.
25297
25298 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25299
25300 [BZ #22244]
25301 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25302 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25303
25304 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25305
25306 [BZ #22243]
25307 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25308 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25309
25310 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25311
25312 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25313 "movl main@GOTOFF(%ebx), %eax".
25314
25315 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25316
25317 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25318 allow undefined _DYNAMIC in PIE libc.a.
25319 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25320 Likewse.
25321
25322 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25323
25324 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25325 check _DYNAMIC.
25326
25327 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25328
25329 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25330 check _DYNAMIC.
25331
25332 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25333
25334 * math/test-math-iscanonical.cc (error): Replace bool with int.
25335
25336 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25337
25338 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25339 (modf): Define using libm_alias_double, only if [!__modf].
25340 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25341 <libm-alias-double.h>.
25342 (modf): Define using libm_alias_double, only if [!__modf].
25343 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25344 compat symbol here.
25345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25346 (weak_alias): Do not undefine and redefine.
25347 (strong_alias): Likewise.
25348 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25349 (weak_alias): Likewise.
25350 (strong_alias): Likewise.
25351
25352 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25353 (logb): Define using libm_alias_double, only if [!__logb].
25354 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25355 <libm-alias-double.h>.
25356 (logb): Define using libm_alias_double, only if [!__logb].
25357 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25358 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25359 (weak_alias): Do not undefine and redefine.
25360 (strong_alias): Likewise.
25361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25362 (weak_alias): Likewise.
25363 (strong_alias): Likewise.
25364
25365 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25366
25367 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25368 Check SHARED instead PIC.
25369
25370 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25371
25372 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25373 [!__fmaf] (fmaf): Define using libm_alias_float.
25374
25375 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25376 (frexp): Define using libm_alias_double.
25377 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25378 <libm-alias-double.h>.
25379 (frexp): Define using libm_alias_double.
25380 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25381 compat symbol here.
25382
25383 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25384
25385 [BZ #22235]
25386 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25387 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25388 (CFLAGS-test-math-iscanonical.cc): New variable.
25389 * math/test-math-iscanonical.cc: New file.
25390 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25391 Provide a C++ implementation based on function overloading,
25392 rather than using __MATH_TG, which uses C-only builtins.
25393 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25394 Likewise.
25395 * sysdeps/powerpc/powerpc64le/Makefile
25396 (CFLAGS-test-math-iscanonical.cc): New variable.
25397
25398 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25399
25400 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25401 (ceil): Define using libm_alias_double.
25402 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25403 (floor): Define using libm_alias_double.
25404 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25405 <libm-alias-double.h>.
25406 (llround): Define using libm_alias_double.
25407 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25408 <libm-alias-double.h>.
25409 (lround): Define using libm_alias_double.
25410 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25411 <libm-alias-double.h>.
25412 (nearbyint): Define using libm_alias_double.
25413 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25414 <libm-alias-double.h>.
25415 (remquo): Define using libm_alias_double.
25416 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25417 (rint): Define using libm_alias_double.
25418 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25419 (round): Define using libm_alias_double.
25420 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25421 (trunc): Define using libm_alias_double.
25422 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25423 <libm-alias-double.h>.
25424 (ceil): Define using libm_alias_double.
25425 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25426 <libm-alias-double.h>.
25427 (floor): Define using libm_alias_double.
25428 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25429 <libm-alias-double.h>.
25430 (llround): Define using libm_alias_double.
25431 [_LP64] (lround): Likewise.
25432 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25433 <libm-alias-double.h>.
25434 [!_LP64] (lround): Define using libm_alias_double.
25435 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25436 <libm-alias-double.h>.
25437 (nearbyint): Define using libm_alias_double.
25438 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25439 <libm-alias-double.h>.
25440 (remquo): Define using libm_alias_double.
25441 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25442 <libm-alias-double.h>.
25443 (rint): Define using libm_alias_double.
25444 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25445 <libm-alias-double.h>.
25446 (round): Define using libm_alias_double.
25447 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25448 <libm-alias-double.h>.
25449 (trunc): Define using libm_alias_double.
25450 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25451 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25452 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25453 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25454 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25455 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25456 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25457 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25458 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25459
25460 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25461
25462 * math/w_remainder.c: New file.
25463 * math/w_remainderf.c: New file.
25464 * math/w_remainderl.c: New file.
25465
25466 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25467
25468 * elf/rtld.c (BOOTSTRAP_MAP): New.
25469 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25470 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25471 Likewise.
25472 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25473 Likewise.
25474 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25475 Likewise.
25476
25477 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25478
25479 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25480 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25481 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25482 rtld_hidden_data_ver): Define to empty.
25483 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25484 __assert_perror_fail): Likewise.
25485 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25486 (__rewinddir): Likewise.
25487 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25488 (__profile_frequency): Likewise.
25489 * include/setjmp.h (__sigsetjmp): Likewise.
25490 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25491 __libc_sigaction): Likewise.
25492 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25493 not set hidden attribute.
25494 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25495 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25496 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25497 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25498 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25499 __fxstatat64): Likewise.
25500 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25501 (__uname): Likewise.
25502 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25503 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25504 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25505 (NO_RTLD_HIDDEN): Set.
25506 * sysdeps/mach/hurd/configure: Refresh.
25507 * config.h.in: Refresh.
25508
25509 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25510
25511 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25512 (atan): Define using libm_alias_double.
25513 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25514 (tan): Define using libm_alias_double.
25515 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25516 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25517
25518 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25519 define as weak alias of __atan. Do not define any aliases if
25520 [__atan].
25521 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25522 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25523 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25524 as weak alias of __tan. Do not define any aliases if [__tan].
25525 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25526 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25527 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25528 __atan.
25529 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25530 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25531 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25532 and define as weak alias of __atan.
25533 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25534 __atan.
25535 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25536 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25537 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25538 define as weak alias of __tan.
25539
25540 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25541
25542 * math/w_lgamma.c: New file.
25543 * math/w_lgammaf.c: New file.
25544 * math/w_lgammal.c: New file.
25545
25546 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25547
25548 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25549 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25550 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25551 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25552 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25553 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25554 * sysdeps/i386/fpu/w_log2f.c: New file.
25555 * sysdeps/i386/fpu/w_logf.c: New file.
25556 * sysdeps/i386/fpu/w_powf.c: New file.
25557 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25558 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25559 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25560
25561 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25562 H.J. Lu <hongjiu.lu@intel.com>
25563
25564 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25565 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25566 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25567 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25568 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25569 the new expf code.
25570 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25571 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25572 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25573 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25574 * sysdeps/i386/fpu/w_exp2f.c: New file.
25575 * sysdeps/i386/fpu/w_expf.c: New file.
25576 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25577 * sysdeps/x86_64/fpu/w_expf.c: New file.
25578
25579 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25580
25581 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25582 (log2f): Likewise.
25583 (powf): Likewise.
25584 * math/w_log2f.c: New file.
25585 * math/w_logf.c: New file.
25586 * math/w_powf.c: New file.
25587 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25588 * math/w_logf_compat.c (__logf_compat): Likewise.
25589 * math/w_powf_compat.c (__powf_compat): Likewise.
25590 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25591 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25592 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25593 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25594 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25595 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25596 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25597 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25598 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25599 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25600 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25601 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25602 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25603 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25604 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25605 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25606 Likewise.
25607 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25608 Likewise.
25609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25610 Likewise.
25611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25612 Likewise.
25613 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25614 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25615 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25616 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25617 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25618 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25619 Likewise.
25620 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25621 Likewise.
25622 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25623 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25624 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25625
25626 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25627
25628 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25629 (sysdep_routines): Add memrchr_power8.
25630 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25631 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25632 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25633 New file.
25634 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25635 (memrchr): Add __memrchr_power8 to ifunc list.
25636 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25637
25638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25639
25640 [BZ #18822]
25641 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25642 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25643 libc_hidden_def.
25644 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25645 (__posix_fallocate64_l64): Likewise.
25646
25647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25648
25649 [BZ #18822]
25650 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25651 (__sched_setaffinity_new): Add libc_hidden_proto and
25652 libc_hidden_def.
25653
25654 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25655
25656 [BZ #18822]
25657 * include/glob.h (__glob64): Add libc_hidden_proto.
25658 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25659 libc_hidden_def.
25660
25661 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25662
25663 [BZ #18822]
25664 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25665 attribute_hidden.
25666
25667 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25668
25669 [BZ #18822]
25670 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25671
25672 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25673
25674 [BZ #18822]
25675 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25676 libc_hidden_def.
25677
25678 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25679
25680 [BZ #18822]
25681 * csu/version.c (__libc_print_version): Add attribute_hidden.
25682
25683 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25684
25685 [BZ #18822]
25686 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25687
25688 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25689
25690 [BZ #18822]
25691 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25692
25693 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25694
25695 [BZ #18822]
25696 * nscd/nscd_helper.c (__nis_hash): New prototype.
25697
25698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25699
25700 [BZ #18822]
25701 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25702 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25703 libc_hidden_def.
25704 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25705 * termios/tcgetattr.c (__tcgetattr): Likewise.
25706
25707 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25708
25709 [BZ #18822]
25710 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25711 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25712 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25713 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25714 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25715
25716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25717
25718 [BZ #18822]
25719 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25720
25721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25722
25723 [BZ #18822]
25724 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25725 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25726
25727 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25728
25729 [BZ #18822]
25730 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25731
25732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25733
25734 [BZ #18822]
25735 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25736 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25737
25738 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25739
25740 [BZ #18822]
25741 * include/ifreq.h: New file.
25742 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25743 (__ifreq): Likewise.
25744 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25745 (__ifreq): Likewise.
25746
25747 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25748
25749 [BZ #18822]
25750 * include/idna.h: New file.
25751 * inet/getnameinfo.c: Include <idna.h> instead of
25752 <libidn/idna.h>.
25753 (__idna_to_unicode_lzlz): Removed.
25754 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25755 <libidn/idna.h>.
25756 (__idna_to_ascii_lz): Removed.
25757 (__idna_to_unicode_lzlz): Likewise.
25758
25759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25760
25761 [BZ #18822]
25762 * include/plural-exp.h: New file.
25763 * intl/plural-exp.c: Include <plural-exp.h> instead of
25764 "plural-exp.h".
25765
25766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25767
25768 [BZ #18822]
25769 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25770 "getsourcefilter.h".
25771 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25772 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25773 "getsourcefilter.h".
25774 (__get_sol): Removed.
25775
25776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 [BZ #18822]
25779 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25780 to ...
25781 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25782
25783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25784
25785 [BZ #18822]
25786 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25787 attribute_hidden.
25788
25789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25790
25791 [BZ #18822]
25792 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25793
25794 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25795
25796 [BZ #18822]
25797 * include/search.h (__tdestroy): Add libc_hidden_proto.
25798 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25799
25800 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25801
25802 [BZ #18822]
25803 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25804
25805 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25806
25807 [BZ #18822]
25808 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25809 attribute_hidden.
25810
25811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25812
25813 [BZ #18822]
25814 * include/signal.h (__kill): Add libc_hidden_proto.
25815 (__sigblock): Likewise.
25816 (__sigprocmask): Likewise.
25817 (__sigaltstack): Likewise.
25818 * signal/kill.c (__kill): Add libc_hidden_def.
25819 * signal/sigblock.c (__sigblock): Likewise.
25820 * signal/sigprocmask.c (__sigprocmask): Likewise.
25821 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25822 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25823 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25824 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25825 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25826 Likewise.
25827 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25828 Likewise.
25829 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25830 (__sigprocmask): Likewise.
25831 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25832 Likewise.
25833 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25834 (__sigprocmask): Likewise.
25835 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25836 Likewise.
25837
25838 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25839
25840 [BZ #18822]
25841 * include/string.h (__strsep): Add libc_hidden_proto.
25842 * string/strsep.c (__strsep): Add libc_hidden_def.
25843
25844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25845
25846 [BZ #18822]
25847 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25848 attribute_hidden.
25849 (__spawni): Likewise.
25850
25851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25852
25853 [BZ #18822]
25854 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25855 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25856 libc_hidden_def.
25857
25858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25859
25860 [BZ #18822]
25861 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25862
25863 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25864
25865 [BZ #18822]
25866 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25867 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25868 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25869 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25870 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25871 Likewise.
25872 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25873 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25874
25875 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25876
25877 [BZ #18822]
25878 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25879 (__dcigettext): Likewise.
25880
25881 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25882
25883 [BZ #18822]
25884 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25885 libc_hidden_proto.
25886 (__get_nprocs): Likewise.
25887 (__get_phys_pages): Likewise.
25888 (__get_avphys_pages): Likewise.
25889 (__get_child_max): Add attribute_hidden.
25890 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25891 (__get_nprocs): Likewise.
25892 (__get_phys_pages): Likewise.
25893 (__get_avphys_pages): Likewise.
25894 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25895 libc_hidden_def.
25896 (__get_nprocs): Likewise.
25897 (__get_phys_pages): Likewise.
25898 (__get_avphys_pages): Likewise.
25899 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25900 libc_hidden_def.
25901 (__get_nprocs_conf): Likewise.
25902 (__get_phys_pages): Likewise.
25903 (__get_avphys_pages): Likewise.
25904
25905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25906
25907 [BZ #18822]
25908 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25909 attribute_hidden.
25910 (__netlink_close): Likewise.
25911 (__netlink_free_handle): Likewise.
25912 (__netlink_request): Likewise.
25913
25914 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25915
25916 [BZ #18822]
25917 * include/rpc/rpc.h (__rpc_thread_variables): Add
25918 attribute_hidden.
25919 (__rpc_thread_svc_cleanup): Likewise.
25920 (__rpc_thread_clnt_cleanup): Likewise.
25921 (__rpc_thread_key_cleanup): Likewise.
25922
25923 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25924
25925 [BZ #18822]
25926 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25927 (__writev): Likewise.
25928 * misc/readv.c (__readv): Add libc_hidden_def.
25929 * misc/writev.c (__writev): Likewise.
25930 * sysdeps/posix/readv.c (__readv): Likewise.
25931 * sysdeps/posix/writev.c (__writev): Likewise.
25932 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25933 (__readv): Likewise.
25934 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25935 (__writev): Likewise.
25936
25937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25938
25939 [BZ #18822]
25940 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25941 (__regcomp): Add libc_hidden_proto.
25942 (__regexec): Likewise.
25943 (__regfree): Likewise.
25944 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25945 (__regfree): Likewise.
25946 * posix/regexec.c (__regexec): Likewise.
25947
25948 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25949
25950 [BZ #18822]
25951 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25952 (__getutent): Likewise.
25953 (__getutid): Likewise.
25954 (__getutline): Likewise.
25955 (__pututline): Likewise.
25956 (__getutent_r): Likewise.
25957 (__getutid_r): Likewise.
25958 (__getutline_r): Likewise.
25959 (__utmpname): Add attribute_hidden.
25960 (__setutent): Likewise.
25961 (__endutent): Likewise.
25962 * login/getutent.c (__getutent): Add libc_hidden_def.
25963 * login/getutent_r.c (__getutent_r): Likewise.
25964 (__pututline): Likewise.
25965 * login/getutid.c (__getutid): Likewise.
25966 * login/getutid_r.c (__getutid_r): Likewise.
25967 * login/getutline.c (__getutline): Likewise.
25968 * login/getutline_r.c (__getutline_r): Likewise.
25969 * login/updwtmp.c (__updwtmp): Likewise.
25970
25971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25972
25973 [BZ #18822]
25974 * include/dirent.h (__opendir): Always add attribute_hidden.
25975 (__fdopendir): Likewise.
25976 (__closedir): Likewise.
25977 (__readdir): Likewise.
25978 (__readdir64): Add libc_hidden_proto.
25979 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25980 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25981 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25982 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25983 New alias.
25984
25985 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25986
25987 [BZ #18822]
25988 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25989 * include/netdb.h (__gethostbyaddr_r): Likewise.
25990 (__gethostbyname_r): Likewise.
25991 (__gethostbyname2_r): Likewise.
25992 (__getnetbyaddr_r): Likewise.
25993 (__getnetbyname_r): Likewise.
25994 (__getservbyname_r): Likewise.
25995 (__getservbyport_r): Likewise.
25996 (__getprotobyname_r): Likewise.
25997 (__getprotobynumber_r): Likewise.
25998 (__getnetgrent_r): Likewise.
25999 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26000 (__getrpcbynumber_r): Likewise.
26001 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26002
26003 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26004
26005 [BZ #18822]
26006 * include/stdio.h (__fcloseall): Add attribute_hidden.
26007 (__getline): Likewise.
26008 (__path_search): Likewise.
26009 (__gen_tempname): Likewise.
26010 (__libc_message): Likewise.
26011 (__flockfile): Likewise.
26012 (__funlockfile): Likewise.
26013 (__fxprintf): Likewise.
26014 (__fxprintf_nocancel): Likewise.
26015
26016 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26017
26018 [BZ #18822]
26019 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26020 (__sgetsgent_r): Likewise.
26021
26022 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26023
26024 [BZ #18822]
26025 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26026 (__statfs64): Likewise.
26027 (__fstatfs64): Likewise.
26028 * include/sys/statvfs.h (__statvfs64): Likewise.
26029 (__fstatvfs64): Likewise.
26030 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26031 (__statfs_filesize_max): Likewise.
26032 (__statfs_symlinks): Likewise.
26033 (__statfs_chown_restricted): Likewise.
26034
26035 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26036
26037 [BZ #18822]
26038 * include/time.h (__tzstring): Add attribute_hidden.
26039 (__tzfile_read): Likewise.
26040 (__tzfile_compute): Likewise.
26041 (__tzfile_default): Likewise.
26042 (__tzset_parse_tz): Likewise.
26043 (__offtime): Likewise.
26044 (__asctime_r): Likewise.
26045 (__tzset): Likewise.
26046 (__tz_convert): Likewise.
26047 (__getdate_r): Likewise.
26048 (__getclktck): Likewise.
26049
26050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26051
26052 [BZ #18822]
26053 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26054 (__nscd_unmap): Likewise.
26055 (__nscd_cache_search): Likewise.
26056 (__nscd_get_nl_timestamp): Likewise.
26057 (__nscd_getpwnam_r): Likewise.
26058 (__nscd_getpwuid_r): Likewise.
26059 (__nscd_getgrnam_r): Likewise.
26060 (__nscd_getgrgid_r): Likewise.
26061 (__nscd_gethostbyname_r): Likewise.
26062 (__nscd_gethostbyname2_r): Likewise.
26063 (__nscd_gethostbyaddr_r): Likewise.
26064 (__nscd_getai): Likewise.
26065 (__nscd_getgrouplist): Likewise.
26066 (__nscd_getservbyname_r): Likewise.
26067 (__nscd_getservbyport_r): Likewise.
26068 (__nscd_innetgr): Likewise.
26069 (__nscd_setnetgrent): Likewise.
26070
26071 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26072
26073 [BZ #18822]
26074 * include/gmp.h: Declare internal functions only if _ISOMAC is
26075 undefined.
26076 (__mpn_extract_double): Add attribute_hidden.
26077 (__mpn_extract_long_double): Likewise.
26078 (__mpn_extract_float128): Likewise.
26079 (__mpn_construct_float): Likewise.
26080 (__mpn_construct_double): Likewise.
26081 (__mpn_construct_long_double): Likewise.
26082 (__mpn_construct_float128): Likewise.
26083 (mpn_add_1): Likewise.
26084 (mpn_addmul_1): Likewise.
26085 (mpn_add_n): Likewise.
26086 (mpn_cmp): Likewise.
26087 (mpn_divrem): Likewise.
26088 (mpn_lshift): Likewise.
26089 (mpn_mul): Likewise.
26090 (mpn_mul_1): Likewise.
26091 (mpn_rshift): Likewise.
26092 (mpn_sub_1): Likewise.
26093 (mpn_submul_1): Likewise.
26094 (mpn_sub_n): Likewise.
26095
26096 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26097
26098 [BZ #18822]
26099 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26100 (__wcscat): Likewise.
26101 (__btowc): Likewise.
26102 (__wcrtomb): Likewise.
26103 (__mbsrtowcs): Likewise.
26104 (__wcsrtombs): Likewise.
26105 (__mbsnrtowcs): Likewise.
26106 (__wcsnrtombs): Likewise.
26107 (__wcsncpy): Likewise.
26108 (__wcpncpy): Likewise.
26109 (__wmemcpy): Likewise.
26110 (__wmempcpy): Likewise.
26111 (__wmemmove): Likewise.
26112 (__wcschrnul): Likewise.
26113 (__vfwscanf): Likewise.
26114 (__vswprintf): Likewise.
26115 (__fwprintf): Likewise.
26116 (__vfwprintf): Likewise.
26117
26118 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26119
26120 [BZ #18822]
26121 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26122 (__getgrgid_r): Likewise.
26123 (__getgrnam_r): Likewise.
26124 * include/pwd.h (__getpwuid_r): Likewise.
26125 (__getpwnam_r): Likewise.
26126 (__fgetpwent_r): Likewise.
26127 * include/shadow.h (__getspnam_r): Likewise.
26128 (__sgetspent_r): Likewise.
26129 (__fgetspent_r): Likewise.
26130
26131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26132
26133 [BZ #18822]
26134 * include/unistd.h (__access): Add attribute_hidden.
26135 (__lseek64): Likewise.
26136 (__libc_pread64): Likewise.
26137 (__pipe2): Likewise.
26138 (__sleep): Likewise.
26139 (__chdir): Likewise.
26140 (__fchdir): Likewise.
26141 (__getcwd): Likewise.
26142 (__rmdir): Likewise.
26143 (__execvpe): Likewise.
26144 (__execve): Likewise.
26145 (__setsid): Likewise.
26146 (__getuid): Likewise.
26147 (__geteuid): Likewise.
26148 (__getgid): Likewise.
26149 (__getegid): Likewise.
26150 (__getgroups): Likewise.
26151 (__group_member): Likewise.
26152 (__ttyname_r): Likewise.
26153 (__isatty): Likewise.
26154 (__readlink): Likewise.
26155 (__unlink): Likewise.
26156 (__gethostname): Likewise.
26157 (__profil): Likewise.
26158 (__getdtablesize): Likewise.
26159 (__brk): Likewise.
26160 (__ftruncate): Likewise.
26161 (__ftruncate64): Likewise.
26162
26163 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26164
26165 [BZ #18822]
26166 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26167 * argp/argp-fs-xinl.c: Likewise.
26168 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26169 * argp/argp-parse.c: Include <argp.h>.
26170 * argp/argp-xinl.c: Likewise.
26171 * include/argp-fmtstream.h: New file.
26172 * include/argp.h (__argp_error): Add attribute_hidden.
26173 (__argp_failure): Likewise.
26174 (__argp_input): Likewise.
26175 (__argp_state_help): Likewise.
26176
26177 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26178
26179 [BZ #18822]
26180 * include/wchar.h (____wcstof_l_internal): New prototype.
26181 (____wcstod_l_internal): Likewise.
26182 (____wcstold_l_internal): Likewise.
26183 (____wcstol_l_internal): Likewise.
26184 (____wcstoul_l_internal): Likewise.
26185 (____wcstoll_l_internal): Likewise.
26186 (____wcstoull_l_internal): Likewise.
26187 (____wcstof128_l_internal): Likewise.
26188 * sysdeps/ieee754/float128/wcstof128.c
26189 (____wcstof128_l_internal): Removed.
26190 * sysdeps/ieee754/float128/wcstof128_l.c
26191 (____wcstof128_l_internal): Likewise.
26192 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26193 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26194 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26195 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26196 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26197 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26198 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26199 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26200 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26201 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26202
26203 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26204
26205 [BZ #18822]
26206 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26207 instead of <sys/statvfs.h>.
26208 (__internal_statvfs): Removed.
26209 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26210 instead of <sys/statvfs.h>.
26211 (__internal_statvfs64): Removed.
26212 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26213 "internal_statvfs.h" instead of <sys/statvfs.h>.
26214 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26215 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26216 instead of <sys/statvfs.h>.
26217 (__internal_statvfs): Removed.
26218 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26219 instead of <sys/statvfs.h>.
26220 (__internal_statvfs64): Removed.
26221
26222 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26223
26224 [BZ #18822]
26225 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26226 (__gconv_close): Likewise.
26227 (__gconv): Likewise.
26228 (__gconv_find_transform): Likewise.
26229 (__gconv_lookup_cache): Likewise.
26230 (__gconv_compare_alias_cache): Likewise.
26231 (__gconv_load_cache): Likewise.
26232 (__gconv_get_path): Likewise.
26233 (__gconv_close_transform): Likewise.
26234 (__gconv_release_cache): Likewise.
26235 (__gconv_find_shlib): Likewise.
26236 (__gconv_release_shlib): Likewise.
26237 (__gconv_get_builtin_trans): Likewise.
26238 (__gconv_compare_alias): Likewise.
26239 * include/dlfcn.h (_dlerror_run): Likewise.
26240 * include/stdio.h (__fortify_fail_abort): Likewise.
26241 * include/time.h (__tz_compute): Likewise.
26242 (__strptime_internal): Likewise.
26243 * intl/gettextP.h (_nl_find_domain): Likewise.
26244 (_nl_load_domain): Likewise.
26245 (_nl_find_msg): Likewise.
26246 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26247 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26248 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26249 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26250 (__gai_find_request): Likewise.
26251 (__gai_remove_request): Likewise.
26252 (__gai_notify): Likewise.
26253 (__gai_notify_only): Likewise.
26254 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26255 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26256 (_dl_non_dynamic_init): Likewise.
26257 (_dl_aux_init): Likewise.
26258 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26259 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26260 Likewise.
26261 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26262 (__wcsmbs_clone_conv): Likewise.
26263 (__wcsmbs_named_conv): Likewise.
26264
26265 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26266
26267 [BZ #18822]
26268 * include/stdlib.h (__random): Add attribute_hidden.
26269 (__random_r): Likewise.
26270 (__srandom_r): Likewise.
26271 (__initstate_r): Likewise.
26272 (__setstate_r): Likewise.
26273 (__erand48_r): Likewise.
26274 (__nrand48_r): Likewise.
26275 (__jrand48_r): Likewise.
26276 (__srand48_r): Likewise.
26277 (__seed48_r): Likewise.
26278 (__lcong48_r): Likewise.
26279 (__drand48_iterate): Likewise.
26280 (__setenv): Likewise.
26281 (__unsetenv): Likewise.
26282 (__clearenv): Likewise.
26283 (__ptsname_r): Likewise.
26284 (__posix_openpt): Likewise.
26285 (__add_to_environ): Likewise.
26286 (__realpath): Add libc_hidden_proto.
26287 (__ecvt_r): Likewise.
26288 (__fcvt_r): Likewise.
26289 (__qecvt_r): Likewise.
26290 (__qfcvt_r): Likewise.
26291 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26292 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26293
26294 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26295
26296 [BZ #18822]
26297 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26298 * include/time.h (__mktime_internal): Likewise.
26299 * libio/iolibio.h (__fopen_internal): Likewise.
26300
26301 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26302
26303 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26304 pointer in frame.
26305 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26306 Correct offset used to restore PIC register.
26307
26308 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26309
26310 [BZ libc/22165]
26311 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26312 code to load address of __getcontext_ret when generating PIC code.
26313
26314 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26315
26316 * elf/Makefile (tests-static-internal): Add
26317 tst-tls1-static-non-pie.
26318 (LDFLAGS-tst-tls1-static-non-pie): New.
26319 * elf/tst-tls1-static-non-pie.c: New file.
26320
26321 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26322
26323 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26324 (asinh): Define using libm_alias_double.
26325 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26326 (cbrt): Define using libm_alias_double.
26327 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26328 <libm-alias-double.h>.
26329 (copysign): Define using libm_alias_double.
26330 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26331 (erf): Define using libm_alias_double.
26332 (erfc): Likewise.
26333 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26334 (expm1): Define using libm_alias_double.
26335 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26336 (fabs): Define using libm_alias_double.
26337 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26338 libm_alias_double.
26339 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26340 <libm-alias-double.h>.
26341 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26342 libm_alias_double.
26343 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26344 <libm-alias-double.h>.
26345 (getpayload): Define using libm_alias_double.
26346 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26347 <libm-alias-double.h>.
26348 (llrint): Define using libm_alias_double.
26349 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26350 (lrint): Define using libm_alias_double.
26351 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26352 <libm-alias-double.h>.
26353 (nextup): Define using libm_alias_double.
26354 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26355 <libm-alias-double.h>.
26356 (roundeven): Define using libm_alias_double.
26357 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26358 libm_alias_double.
26359 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26360 <libm-alias-double.h>.
26361 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26362 using libm_alias_double.
26363 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26364 (cos): Define using libm_alias_double.
26365 (sin): Likewise.
26366 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26367 <libm-alias-double.h>.
26368 (sincos): Define using libm_alias_double.
26369 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26370 (tanh): Define using libm_alias_double.
26371 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26372 <libm-alias-double.h>.
26373 (totalorder): Define using libm_alias_double.
26374 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26375 <libm-alias-double.h>.
26376 (totalordermag): Define using libm_alias_double.
26377 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26378 libm_alias_double.
26379 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26380 libm_alias_double.
26381 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26382 <libm-alias-double.h>.
26383 (getpayload): Define using libm_alias_double.
26384 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26385 <libm-alias-double.h>.
26386 (roundeven): Define using libm_alias_double.
26387 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26388 <libm-alias-double.h>.
26389 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26390 <libm-alias-double.h>.
26391 (totalorder): Define using libm_alias_double.
26392 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26393 <libm-alias-double.h>.
26394 (totalordermag): Define using libm_alias_double.
26395 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26396 libc compat symbol here.
26397 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26398 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26399 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26400 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26401 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26402 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26403 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26404 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26405 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26406 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26407
26408 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26409
26410 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26411 _dl_relocate_static_pie instead of _dl_start to compute load
26412 address in static PIE. Return 0 if _DYNAMIC is undefined for
26413 static executable.
26414
26415 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26416
26417 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26418 _DYNAMIC is undefined for static executable.
26419
26420 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26421
26422 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26423
26424 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26425
26426 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26427
26428 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26429
26430 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26431 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26432 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26433 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26434 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26435 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26436 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26437 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26438 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26439 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26440 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26441 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26442 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26443 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26444 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26445 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26446 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26447
26448 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26449
26450 * math/bits/cmathcalls.h (cimag): Remove inline.
26451 (creal): Remove inline.
26452 (conj): Remove inline.
26453
26454 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26455
26456 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26457 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26458 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26459 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26460 (issignalingf_inline): Likewise.
26461 (POWF_LOG2_TABLE_BITS): Likewise.
26462 (POWF_LOG2_POLY_ORDER): Likewise.
26463 (POWF_SCALE_BITS): Likewise.
26464 (POWF_SCALE): Likewise.
26465 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26466 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26467 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26468
26469 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26470
26471 * math/Makefile (type-float-routines): Add e_log2f_data.
26472 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26473 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26474 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26475 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26476 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26477 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26478 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26479
26480 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26481
26482 * math/Makefile (type-float-routines): Add e_logf_data.
26483 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26484 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26485 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26486 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26487 * sysdeps/i386/fpu/e_logf_data.c: New file.
26488 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26489 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26490
26491 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26492
26493 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26494 undefined _DYNAMIC in PIE libc.a.
26495 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26496 Likewse.
26497
26498 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26499
26500 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26501 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26502 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26503 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26504 (__signbit): Remove.
26505 (__signbitl): Remove.
26506 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26507 (__signbit): Remove.
26508 (__signbitl): Remove.
26509 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26510 (__signbit): Remove.
26511 (__signbitl): Remove.
26512 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26513 (__signbit): Remove.
26514 (__signbitl): Remove.
26515 * sysdeps/tile/bits/mathinline.h: Delete file.
26516 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26517 (__signbit): Remove.
26518 (__signbitl): Remove.
26519
26520 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26521
26522 * math/math.h: Improve handling of C99 isgreater macros.
26523 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26524 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26525 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26526 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26527 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26528
26529 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26530
26531 * sysdeps/aarch64/libm-test-ulps: Update.
26532
26533 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26534
26535 [BZ #22225]
26536 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26537 math_opt_barrier on argument when doing arithmetic on it.
26538 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26539 Likewise. Use math_force_eval not math_opt_barrier after
26540 arithmetic.
26541 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26542 math_opt_barrier on argument when doing arithmetic on it.
26543 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26544 Likewise.
26545
26546 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26547
26548 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26549 libc_hidden_def.
26550 (__freeifaddrs): Likewise.
26551
26552 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26553
26554 * include/dirent.h (__dirfd): New declaration.
26555 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26556 alias.
26557 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26558 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26559 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26560 * include/unistd.h (__revoke): New declaration.
26561 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26562 alias.
26563 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26564 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26565 revoke.
26566 * include/dirent.h (__seekdir): New declaration.
26567 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26568 redefine as weak alias.
26569 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26570 of seekdir.
26571 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26572 and use libc_hidden_def on them.
26573 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26574 them.
26575 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26576 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26577 instead of getifaddrs and freeifaddrs.
26578
26579 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26580
26581 [BZ #18822]
26582 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26583 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26584 (__dso_handle): Remove declaration.
26585 * dlfcn/tstatexit.c (__dso_handle): Removed.
26586 (main): Don't check __dso_handle.
26587 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26588 (main): Don't check __dso_handle.
26589 * include/dso_handle.h: New file.
26590 * malloc/mtrace.c: Include <dso_handle.h>.
26591 (mtrace): Pass __dso_handle directly.
26592 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26593 (__dso_handle): Remove declaration.
26594 (__pthread_atfork): Pass __dso_handle directly.
26595 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26596 (__dso_handle): Removed.
26597 * posix/wordexp-test.c: Include <dso_handle.h>.
26598 (__dso_handle): Remove declaration.
26599 (__app_register_atfork): Pass __dso_handle directly.
26600 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26601 (__dso_handle): Remove declaration.
26602 (at_quick_exit): Pass __dso_handle directly.
26603 * stdlib/atexit.c: Include <dso_handle.h>.
26604 (__dso_handle): Remove declaration.
26605 (atexit): Pass __dso_handle directly.
26606 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26607 (__dso_handle): Removed.
26608
26609 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26610
26611 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26612 using VDSO.
26613
26614 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26615
26616 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26617 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26618 values to correct default value for given type.
26619
26620 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26621
26622 [BZ #22101]
26623 * elf/Makefile (tests): Add tst-debug1.
26624 ($(objpfx)tst-debug1): New.
26625 ($(objpfx)tst-debug1.out): Likewise.
26626 ($(objpfx)tst-debug1mod1.so): Likewise.
26627 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26628 with p_filesz == 0.
26629 * elf/tst-debug1.c: New file.
26630
26631 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26632
26633 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26634 Define using __ifunc.
26635
26636 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26637
26638 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26639 exp2f() values.
26640
26641 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26642
26643 [BZ #22156]
26644 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26645
26646 2017-09-26 Florian Weimer <fweimer@redhat.com>
26647
26648 * resolv/Makefile (tests-internal): Fix typo in comment.
26649
26650 2017-09-26 Florian Weimer <fweimer@redhat.com>
26651
26652 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26653
26654 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26655
26656 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26657 Use an union instead of a max_align_t array for __space,
26658 so that __space is the same size on all platforms.
26659 * malloc/scratch_buffer_grow_preserve.c
26660 (__libc_scratch_buffer_grow_preserve): Likewise.
26661
26662 [BZ #22183]
26663 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26664 version to 2.
26665 * posix/Makefile (routines): Add glob-lstat-compat and
26666 glob64-lstat-compat.
26667 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26668 * posix/glob-lstat-compat.c: New file.
26669 * posix/glob64-lstat-compat.c: Likewise.
26670 * posix/tst-glob_lstat_compat.c: Likewise.
26671 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26672 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26673 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26674 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26675 Likewise.
26676 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26677 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26678 * posix/glob.c (glob_lstat): New function.
26679 (glob): Rename to __glob and add versioned symbol to 2.27.
26680 (glob_in_dir): Use glob_lstat.
26681 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26682 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26683 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26684 2.27.
26685 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26686 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26687 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26688 gl_lstat on glob call.
26689 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26690 and glob64 symbols.
26691 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26692 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26693 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26694 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26695 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26696 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26697 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26698 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26699 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26700 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26701 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26703 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26704 Likewise.
26705 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26707 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26709 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26710 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26711 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26712 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26713 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26714 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26715 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26716 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26717
26718 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26719
26720 * configure.ac (AS): Require binutils 2.25 or later.
26721 * configure: Regenerated.
26722
26723 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26724
26725 [BZ #22207]
26726 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26727 VM size.
26728
26729 2017-09-25 DJ Delorie <dj@redhat.com>
26730
26731 [BZ #22161]
26732 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26733 resetting timeout.
26734
26735 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26736
26737 * sysdeps/ieee754/dbl-64/sincos32.h
26738 [SINCCOS32_H]: Remove define.
26739 [SINCOS32_H]: Define.
26740
26741 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26742
26743 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26744 (exp2f): Likewise.
26745 * math/w_exp2f.c: New file.
26746 * math/w_expf.c: New file.
26747 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26748 * math/w_expf_compat.c (__expf_compat): Likewise.
26749 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26750 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26751 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26752 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26753 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26754 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26755 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26756 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26757 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26758 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26759 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26760 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26761 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26762 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26764 Likewise.
26765 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26766 Likewise.
26767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26768 Likewise.
26769 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26770 Likewise.
26771 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26772 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26773 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26774 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26775 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26776 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26777 Likewise.
26778 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26779 Likewise.
26780 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26781 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26782 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26783
26784 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26785
26786 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26787 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26788 (roundtoint, converttoint): Likewise.
26789 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26790 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26791 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26792 * sysdeps/ieee754/flt-32/math_config.h: New file.
26793 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26794 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26795 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26796 * sysdeps/i386/fpu/math_errf.c: New file.
26797 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26798 * sysdeps/ia64/fpu/math_errf.c: New file.
26799 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26800 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26801
26802 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26803
26804 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26805 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26806 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26807 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26808 to make sure that these symbols are defined.
26809 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26810 of <limits.h>
26811 (__need_NULL): Do not define.
26812 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26813 alignment.
26814 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26815 CMGROUP_MAX, cmsgcred): Do not define.
26816 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26817 NULL.
26818 * bits/socket.h: Likewise.
26819 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26820 __gettimeofday instead of gettimeofday.
26821 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26822 instead of settimeofday.
26823
26824 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26825
26826 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26827 (asinhf): Define using libm_alias_float.
26828 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26829 (atanf): Define using libm_alias_float.
26830 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26831 (cbrtf): Define using libm_alias_float.
26832 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26833 (ceilf): Define using libm_alias_float.
26834 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26835 <libm-alias-float.h>.
26836 (copysignf): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26838 (cosf): Define using libm_alias_float.
26839 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26840 (erff): Define using libm_alias_float.
26841 (erfcf): Likewise.
26842 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26843 (expm1f): Define using libm_alias_float.
26844 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26845 (fabsf): Define using libm_alias_float.
26846 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26847 (floorf): Define using libm_alias_float.
26848 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26849 (frexpf): Define using libm_alias_float.
26850 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26851 libm_alias_float.
26852 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26853 <libm-alias-float.h>.
26854 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26855 libm_alias_float.
26856 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26857 <libm-alias-float.h>.
26858 (getpayloadf): Define using libm_alias_float.
26859 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26860 <libm-alias-float.h>.
26861 (llrintf): Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26863 <libm-alias-float.h>.
26864 (llroundf): Define using libm_alias_float.
26865 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26866 (logbf): Define using libm_alias_float.
26867 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26868 (lrintf): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26870 (lroundf): Define using libm_alias_float.
26871 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26872 (modff): Define using libm_alias_float.
26873 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26874 <libm-alias-float.h>.
26875 (nearbyintf): Define using libm_alias_float.
26876 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26877 <libm-alias-float.h>.
26878 (nextafterf): Define using libm_alias_float.
26879 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26880 <libm-alias-float.h>.
26881 (nextupf): Define using libm_alias_float.
26882 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26883 <libm-alias-float.h>.
26884 (remquof): Define using libm_alias_float.
26885 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26886 (rintf): Define using libm_alias_float.
26887 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26888 <libm-alias-float.h>.
26889 (roundevenf): Define using libm_alias_float.
26890 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26891 (roundf): Define using libm_alias_float.
26892 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26893 using libm_alias_float.
26894 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26895 <libm-alias-float.h>.
26896 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26897 Define using libm_alias_float.
26898 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26899 <libm-alias-float.h>.
26900 (sincosf): Define using libm_alias_float.
26901 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26902 (sinf): Define using libm_alias_float.
26903 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26904 (tanf): Define using libm_alias_float.
26905 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26906 (tanhf): Define using libm_alias_float.
26907 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26908 <libm-alias-float.h>.
26909 (totalorderf): Define using libm_alias_float.
26910 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26911 <libm-alias-float.h>.
26912 (totalordermagf): Define using libm_alias_float.
26913 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26914 (truncf): Define using libm_alias_float.
26915 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26916 libm_alias_float.
26917 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26918 libm_alias_float.
26919
26920 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26921
26922 [BZ #22146]
26923 math/math.h: Let fpclassify use the builtin in C++ mode, even
26924 when optimazing for size.
26925
26926 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26927
26928 * csu/Makefile (generated): Do not add version-info.h.
26929 (before-compile): Likewise.
26930 (all-Banner-files): Remove variable.
26931 ($(objpfx)version-info.h): Remove rule.
26932 * csu/version.c (banner): Do not include "version-info.h".
26933 * libidn/Banner: Remove.
26934 * manual/contrib.texi (Simon Josefsson): New entry.
26935
26936 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26937
26938 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26939 Remove conditionals on LDBL_MANT_DIG.
26940 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26941 (__ieee754_lgammal_r): Likewise.
26942
26943 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26944
26945 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26946 _Float128 and L().
26947 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26948 _Float128 and L(). Replace _Float128 with long double and L(x)
26949 with xL, throughout the file.
26950 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26951 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26952 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26953 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26954
26955 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26956
26957 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26958 sysdeps/ieee754/ldbl-128ibm.
26959 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26960 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26961 of including it. Keep _Float128 and L() intact. These will be
26962 reviewed by a separate patch.
26963 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26964 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26965 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26966 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26967
26968 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26969
26970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26971 (__finitef128): Define to __redirect___finitef128.
26972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26973 (__isinff128): Define to __redirect___isinff128.
26974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26975 (__isnanf128): Define to __redirect___isnanf128.
26976
26977 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26978
26979 * sysdeps/powerpc/powerpc64le/Makefile
26980 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26981 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26982
26983 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26984 Carlos O'Donell <carlos@redhat.com>
26985
26986 [BZ #22180]
26987 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26988 * stdlib/test-dlclose-exit-race.c: New file.
26989 * stdlib/test-dlclose-exit-race-helper.c: New file.
26990 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26991
26992 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26993
26994 * crypt/Banner: Remove file.
26995 * nptl/Banner: Likewise.
26996 * resolv/Banner: Likewise.
26997 * soft-fp/Banner: Likewise.
26998 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26999 ($(objpfx)version.d): Remove dependency on banner.h.
27000 ($(objpfx)version.os): Likewise.
27001 * nptl/version.c (banner): Do not include banner.h.
27002 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27003 Jelinek and BIND code.
27004
27005 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27006 Carlos O'Donell <carlos@redhat.com>
27007
27008 * support/xdlfcn.h: New file.
27009 * support/xdlfcn.c: New file.
27010 * support/Makefile (libsupport-routines): Add xdlfcn.
27011 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27012
27013 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27014
27015 [BZ #20142]
27016 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27017 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27018 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27019 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27020 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27021 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27022 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27023 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27024
27025 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27026 Ricky Zhou <rickyz@google.com>
27027 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27028
27029 [BZ #14333]
27030 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27031 Remove atomics.
27032 (__new_exitfn): Fail registration when we finished at_exit processing.
27033 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27034 * stdlib/on_exit.c (__on_exit): Likewise.
27035 * stdlib/exit.c (__exit_funcs_done): New variable.
27036 (__run_exit_handlers): Use __exit_funcs_lock.
27037 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27038 declarations.
27039 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27040 (test-cxa_atexit-race, test-on_exit-race): New tests.
27041 * stdlib/test-atexit-race-common.c: New file.
27042 * stdlib/test-atexit-race.c: New file.
27043 * stdlib/test-at_quick_exit-race.c: New file.
27044 * stdlib/test-cxa_atexit-race.c: New file.
27045 * stdlib/test-on_exit-race.c: New file.
27046
27047 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27048
27049 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27050 * benchtests/exp2f-inputs: Copy of expf-inputs.
27051 * benchtests/log2f-inputs: Copy of logf-inputs.
27052
27053 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27054
27055 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27056 Explicitly take address of first element of array arguments in
27057 call to INLINE_SYSCALL.
27058
27059 2017-09-19 Andreas Schwab <schwab@suse.de>
27060
27061 [BZ #22134]
27062 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27063 execveat first.
27064 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27065 unimplemented.
27066 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27067 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27068 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27069 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27070 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27071 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27072 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27073 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27074 * posix/Makefile (tests): Add tst-fexecve.
27075 * posix/tst-fexecve.c: New file.
27076
27077 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27078
27079 * benchtests/Makefile: Add logf benchmark.
27080 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27081
27082 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27083
27084 * benchtests/Makefile: Add expf benchmark.
27085 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27086
27087 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27088
27089 * csu/Makefile: Add -funwind-tables to libc-start.c.
27090 * debug/Makefile: Add -funwind-tables to backtrace.c.
27091 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27092 * sysdeps/arm/Makefile: Likewise.
27093 * sysdeps/i386/Makefile: Likewise.
27094 * sysdeps/m68k/Makefile: Likewise.
27095 * sysdeps/mips/Makefile: Likewise.
27096 * sysdeps/nios2/Makefile: Likewise.
27097 * sysdeps/sh/Makefile: Likewise.
27098 * sysdeps/sparc/Makefile: Likewise.
27099
27100 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27101
27102 * benchtests/Makefile (bench-math): Add trunc and truncf.
27103 (CFLAGS-bench-trunc.c): New variable.
27104 (CFLAGS-bench-truncf.c): Likewise.
27105 * benchtests/trunc-inputs: New file.
27106 * benchtests/truncf-inputs: Likewise.
27107
27108 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27109
27110 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27111
27112 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27113
27114 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27115 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27116 redefine.
27117 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27118 (exp10l): Define as weak alias.
27119 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27120 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27121 and redefine.
27122 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27123 (remainderl): Define as weak alias.
27124
27125 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27126 (fmal): Define using libm_alias_ldouble.
27127 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27128 (acoshl): Define using libm_alias_ldouble.
27129 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27130 (acosl): Define using libm_alias_ldouble.
27131 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27132 (asinl): Define using libm_alias_ldouble.
27133 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27134 (atan2l): Define using libm_alias_ldouble.
27135 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27136 (atanhl): Define using libm_alias_ldouble.
27137 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27138 (coshl): Define using libm_alias_ldouble.
27139 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27140 (exp10l): Define using libm_alias_ldouble.
27141 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27142 (exp2l): Define using libm_alias_ldouble.
27143 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27144 (expl): Define using libm_alias_ldouble.
27145 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27146 (fmodl): Define using libm_alias_ldouble.
27147 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27148 (hypotl): Define using libm_alias_ldouble.
27149 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27150 (j0l): Define using libm_alias_ldouble.
27151 (y0l): Likewise.
27152 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27153 (j1l): Define using libm_alias_ldouble.
27154 (y1l): Likewise.
27155 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27156 (jnl): Define using libm_alias_ldouble.
27157 (ynl): Likewise.
27158 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27159 (log10l): Define using libm_alias_ldouble.
27160 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27161 (log2l): Define using libm_alias_ldouble.
27162 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27163 (logl): Define using libm_alias_ldouble.
27164 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27165 (powl): Define using libm_alias_ldouble.
27166 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27167 (remainderl): Define using libm_alias_ldouble.
27168 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27169 (sinhl): Define using libm_alias_ldouble.
27170 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27171 (sqrtl): Define using libm_alias_ldouble.
27172 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27173 (tgammal): Define using libm_alias_ldouble.
27174 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27175 (exp10l): Do not use long_double_symbol here.
27176 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27177 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27178 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27179 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27180 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27181 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27182 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27183 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27184 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27185 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27186 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27187 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27188 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27189 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27191 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27192 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27193 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27194 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27195 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27196 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27197 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27198
27199 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27200
27201 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27202 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27203
27204 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27205
27206 * io/read.c (read): Add libc_hidden_weak.
27207 * sysdeps/mach/hurd/read.c (read): Likewise.
27208 * io/write.c (write): Likewise.
27209 * sysdeps/mach/hurd/write.c (write): Likewise.
27210 * io/pread64.c (__pread64): Likewise.
27211 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27212 * posix/pread64.c (__pread64): Add libc_hidden_def.
27213
27214 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27215
27216 * benchtests/scripts/compare_strings.py: New option -g.
27217 (draw_graph): Print a message that a graph is being generated.
27218 (process_results): Generate graph only if -g is passed.
27219 (main): Process option -g.
27220
27221 * benchtests/scripts/compare_strings.py (process_results):
27222 Better spacing for output.
27223
27224 * benchtests/scripts/compare_strings.py: Use argparse.
27225 * benchtests/README: Document existence of compare_strings.py.
27226
27227 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27228
27229 * math/s_fma.c: Include <libm-alias-double.h>.
27230 (fma): Define using libm_alias_double.
27231 * math/s_nextafter.c: Include <libm-alias-double.h>.
27232 (nextafter): Define using libm_alias_double.
27233 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27234 (acos): Define using libm_alias_double.
27235 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27236 (aocsh): Define using libm_alias_double.
27237 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27238 (asin): Define using libm_alias_double.
27239 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27240 (atan2): Define using libm_alias_double.
27241 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27242 (atanh): Define using libm_alias_double.
27243 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27244 (cosh): Define using libm_alias_double.
27245 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27246 (exp10): Define using libm_alias_double.
27247 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27248 (exp2): Define using libm_alias_double.
27249 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27250 (exp): Define using libm_alias_double.
27251 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27252 (fmod): Define using libm_alias_double.
27253 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27254 (hypot): Define using libm_alias_double.
27255 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27256 (j0): Define using libm_alias_double.
27257 (y0): Likewise.
27258 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27259 (j1): Define using libm_alias_double.
27260 (y1): Likewise.
27261 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27262 (jn): Define using libm_alias_double.
27263 (yn): Likewise.
27264 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27265 (log10): Define using libm_alias_double.
27266 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27267 (log2): Define using libm_alias_double.
27268 * math/w_log_compat.c: Include <libm-alias-double.h>.
27269 (log): Define using libm_alias_double.
27270 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27271 (pow): Define using libm_alias_double.
27272 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27273 (remainder): Define using libm_alias_double.
27274 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27275 (sinh): Define using libm_alias_double.
27276 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27277 (sqrt): Define using libm_alias_double.
27278 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27279 (tgamma): Define using libm_alias_double.
27280 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27281 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27282 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27283 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27284 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27285 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27286 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27287 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27288 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27289 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27290 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27291 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27292 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27293 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27294 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27295 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27296 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27297 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27298 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27299 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27300 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27301 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27302 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27303 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27304 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27305
27306 * math/e_acoshl.c: Remove.
27307 * math/e_acosl.c: Likewise.
27308 * math/e_asinl.c: Likewise.
27309 * math/e_atan2l.c: Likewise.
27310 * math/e_atanhl.c: Likewise.
27311 * math/e_coshl.c: Likewise.
27312 * math/e_expl.c: Likewise.
27313 * math/e_fmodl.c: Likewise.
27314 * math/e_gammal_r.c: Likewise.
27315 * math/e_hypotl.c: Likewise.
27316 * math/e_j0l.c: Likewise.
27317 * math/e_j1l.c: Likewise.
27318 * math/e_jnl.c: Likewise.
27319 * math/e_lgammal_r.c: Likewise.
27320 * math/e_log10l.c: Likewise.
27321 * math/e_log2l.c: Likewise.
27322 * math/e_logl.c: Likewise.
27323 * math/e_powl.c: Likewise.
27324 * math/e_rem_pio2l.c: Likewise.
27325 * math/e_sinhl.c: Likewise.
27326 * math/e_sqrtf128.c: Likewise.
27327 * math/e_sqrtl.c: Likewise.
27328 * math/k_cosl.c: Likewise.
27329 * math/k_sinl.c: Likewise.
27330 * math/k_tanl.c: Likewise.
27331 * math/s_asinhl.c: Likewise.
27332 * math/s_atanl.c: Likewise.
27333 * math/s_cbrtl.c: Likewise.
27334 * math/s_erfl.c: Likewise.
27335 * math/s_expm1l.c: Likewise.
27336 * math/s_log1pl.c: Likewise.
27337 * math/s_tanhl.c: Likewise.
27338
27339 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27340
27341 [BZ #21745]
27342 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27343 [$(subdir) = math] (sysdep_calls): New variable. Has the
27344 previous contents of sysdep_routines, but re-sorted..
27345 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27346 sysdep_calls.
27347 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27348 defined in sysdep_calls and replace by the respective m_* names.
27349 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27350 (compat_symbol): Undefine to avoid duplicated compat symbols in
27351 libc.
27352
27353 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27354
27355 * math/s_fmaf.c: Include <libm-alias-float.h>.
27356 (fmaf): Define using libm_alias_float.
27357 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27358 (acosf): Define using libm_alias_float.
27359 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27360 (acoshf): Define using libm_alias_float.
27361 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27362 (asinf): Define using libm_alias_float.
27363 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27364 (atan2f): Define using libm_alias_float.
27365 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27366 (atanhf): Define using libm_alias_float.
27367 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27368 (coshf): Define using libm_alias_float.
27369 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27370 (exp10f): Define using libm_alias_float.
27371 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27372 (fmodf): Define using libm_alias_float.
27373 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27374 (hypotf): Define using libm_alias_float.
27375 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27376 (j0f): Define using libm_alias_float.
27377 (y0f): Likewise.
27378 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27379 (j1f): Define using libm_alias_float.
27380 (y1f): Likewise.
27381 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27382 (jnf): Define using libm_alias_float.
27383 (ynf): Likewise.
27384 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27385 (log10f): Define using libm_alias_float.
27386 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27387 (log2f): Define using libm_alias_float.
27388 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27389 (logf): Define using libm_alias_float.
27390 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27391 (powf): Define using libm_alias_float.
27392 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27393 (remainderf): Define using libm_alias_float.
27394 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27395 (sinhf): Define using libm_alias_float.
27396 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27397 (sqrtf): Define using libm_alias_float.
27398 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27399 (tgammaf): Define using libm_alias_float.
27400
27401 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27402
27403 * include/math.h (roundeven): Change hidden_proto call to
27404 __roundeven.
27405 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27406 alias.
27407 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27408 (y0): Rename to __y0 and define as weak alias.
27409 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27410 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27411 alias.
27412 (y0f): Rename to __y0f and define as weak alias.
27413 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27414 alias.
27415 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27416 (y1): Rename to __y1 and define as weak alias.
27417 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27418 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27419 alias.
27420 (y1f): Rename to __y1f and define as weak alias.
27421 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27422 alias.
27423 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27424 (yn): Rename to __yn and define as weak alias.
27425 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27426 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27427 alias.
27428 (ynf): Rename to __ynf and define as weak alias.
27429 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27430 (fromfp): Define as weak alias.
27431 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27432 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27433 (fromfpx): Define as weak alias.
27434 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27435 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27436 __getpayload and define as weak alias.
27437 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27438 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27439 __roundeven and define as weak alias.
27440 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27441 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27442 __setpayload.
27443 (setpayload): Define as weak alias.
27444 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27445 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27446 __setpayloadsig.
27447 (setpayloadsig): Define as weak alias.
27448 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27449 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27450 __totalorder and define as weak alias.
27451 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27452 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27453 to __totalordermag and define as weak alias.
27454 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27455 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27456 (ufromfp): Define as weak alias.
27457 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27458 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27459 __ufromfpx.
27460 (ufromfpx): Define as weak alias.
27461 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27462 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27463 Rename to __getpayload and define as weak alias.
27464 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27465 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27466 Rename to __roundeven and define as weak alias.
27467 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27468 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27469 Rename to __totalorder and define as weak alias.
27470 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27471 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27472 (totalordermag): Rename to __totalordermag and define as weak
27473 alias.
27474 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27475 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27476 macro.
27477 (__roundevenl): Likewise.
27478 (__totalorderl): Likewise.
27479 (__totalordermagl): Likewise
27480 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27481 __fromfpf128.
27482 (fromfpf128): Define as weak alias.
27483 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27484 __fromfpxf128.
27485 (fromfpxf128): Define as weak alias.
27486 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27487 __setpayloadf128.
27488 (setpayloadf128): Define as weak alias.
27489 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27490 __setpayloadsigf128.
27491 (setpayloadsigf128): Define as weak alias.
27492 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27493 __ufromfpf128.
27494 (ufromfpf128): Define as weak alias.
27495 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27496 __ufromfpxf128.
27497 (ufromfpxf128): Define as weak alias.
27498 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27499 (fromfpf): Define as weak alias.
27500 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27501 __fromfpxf.
27502 (fromfpxf): Define as weak alias.
27503 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27504 __getpayloadf and define as weak alias.
27505 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27506 __roundevenf and define as weak alias.
27507 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27508 __setpayloadf.
27509 (setpayloadf): Define as weak alias.
27510 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27511 __setpayloadsigf.
27512 (setpayloadsigf): Define as weak alias.
27513 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27514 __totalorderf and define as weak alias.
27515 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27516 Rename to __totalordermagf and define as weak alias.
27517 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27518 __ufromfpf.
27519 (ufromfpf): Define as weak alias.
27520 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27521 __ufromfpxf.
27522 (ufromfpxf): Define as weak alias.
27523 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27524 __fromfpl.
27525 (fromfpl): Define as weak alias.
27526 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27527 __fromfpxl.
27528 (fromfpxl): Define as weak alias.
27529 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27530 to __getpayloadl and define as weak alias.
27531 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27532 __roundevenl and define as weak alias.
27533 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27534 __setpayloadl.
27535 (setpayloadl): Define as weak alias.
27536 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27537 __setpayloadsigl.
27538 (setpayloadsigl): Define as weak alias.
27539 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27540 to __totalorderl and define as weak alias.
27541 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27542 Rename to __totalordermagl and define as weak alias.
27543 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27544 __ufromfpl.
27545 (ufromfpl): Define as weak alias.
27546 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27547 __ufromfpxl.
27548 (ufromfpxl): Define as weak alias.
27549 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27550 __fromfpl.
27551 (fromfpl): Define as weak alias.
27552 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27553 __fromfpxl.
27554 (fromfpxl): Define as weak alias.
27555 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27556 Rename to __getpayloadl and define as weak alias.
27557 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27558 to __roundevenl and define as weak alias. Call __roundeven
27559 instead of roundeven.
27560 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27561 __setpayloadl.
27562 (setpayloadl): Define as weak alias.
27563 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27564 __setpayloadsigl.
27565 (setpayloadsigl): Define as weak alias.
27566 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27567 Rename to __totalorderl and define as weak alias.
27568 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27569 Rename to __totalordermagl and define as weak alias.
27570 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27571 __ufromfpl.
27572 (ufromfpl): Define as weak alias.
27573 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27574 __ufromfpxl.
27575 (ufromfpxl): Define as weak alias.
27576 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27577 __fromfpl.
27578 (fromfpl): Define as weak alias.
27579 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27580 __fromfpxl.
27581 (fromfpxl): Define as weak alias.
27582 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27583 __getpayloadl and define as weak alias.
27584 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27585 __roundevenl and define as weak alias.
27586 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27587 __setpayloadl.
27588 (setpayloadl): Define as weak alias.
27589 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27590 __setpayloadsigl.
27591 (setpayloadsigl): Define as weak alias.
27592 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27593 __totalorderl and define as weak alias.
27594 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27595 Rename to __totalordermagl and define as weak alias.
27596 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27597 __ufromfpl.
27598 (ufromfpl): Define as weak alias.
27599 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27600 __ufromfpxl.
27601 (ufromfpxl): Define as weak alias.
27602
27603 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27604
27605 * benchtests/bench-string.h (realloc_bufs): New function.
27606 (test_init): Call it.
27607 * benchtests/bench-memset-large.c (do_test): Likewise.
27608 * benchtests/bench-memset.c (do_test): Likewise.
27609
27610 * benchtests/bench-memset-large.c: Print output in JSON
27611 format.
27612 * benchtests/bench-memset.c: Likewise.
27613
27614 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27615
27616 [BZ #21084]
27617 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27618 * iconvdata/Makefile: Add IBM858.
27619 * iconvdata/gconv-modules: Likewise.
27620 * iconvdata/tst-tables.sh: Likewise.
27621 * iconvdata/ibm858.c: New file.
27622 * localedata/charmaps/IBM858: Likewise.
27623
27624 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27625
27626 [BZ #22023]
27627 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27628 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27629
27630 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27631
27632 [BZ #22112]
27633 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27634 and add tel_int_fmt.
27635
27636 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27637
27638 * sysdeps/generic/libm-alias-float128.h: New file.
27639 * sysdeps/generic/math-type-macros-float128.h: Include
27640 <libm-alias-float128.h>.
27641 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27642
27643 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27644
27645 * sysdeps/generic/libm-alias-ldouble.h: New file.
27646 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27647 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27648 * sysdeps/generic/math-type-macros-ldouble.h: Include
27649 <libm-alias-ldouble.h>.
27650 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27651 libm_alias_ldouble.
27652
27653 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27654
27655 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27656 * math/w_exp_compat.c: ... here.
27657 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27658 * math/w_expf_compat.c: ... here.
27659 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27660 * math/w_expl_compat.c: ... here.
27661 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27662 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27663 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27664 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27665
27666 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27667
27668 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27669 redefine.
27670 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27671 macro.
27672 (ldexpl): Only define as compat symbol for libc, not libm.
27673 (scalbnl): Define as compat symbol for libc here.
27674 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27675 define for [IS_IN (libc)].
27676 (__ldexpl_2): Remove alias.
27677 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27678 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27679 name in long_double_symbol call.
27680 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27681 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27682 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27683 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27684 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27685 Remove macro.
27686 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27687 Define as compat symbol.
27688
27689 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27690
27691 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27692 * sysdeps/unix/sysv/linux/alpha/Makefile
27693 [$(subdir) = csu] (sysdep_routines): Remove rule.
27694
27695 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27696
27697 * sysdeps/generic/libm-alias-double.h: New file.
27698 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27699 * sysdeps/generic/math-type-macros-double.h: Include
27700 <libm-alias-double.h>.
27701 [declare_mgen_alias] (declare_mgen_alias): Define to use
27702 libm_alias_double.
27703 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27704 (M_LIBM_NEED_COMPAT): Remove macro.
27705 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27706 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27707 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27708 code.
27709 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27710 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27711 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27712 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27713 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27714 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27715 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27716 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27717 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27718 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27719 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27720 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27721 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27722 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27723 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27724 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27725 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27726 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27727 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27728 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27729 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27730 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27731 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27732 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27733 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27734 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27735 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27736 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27737 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27738 macro.
27739 (declare_mgen_alias): New macro.
27740 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27741 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27742 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27743 (M_LIBM_NEED_COMPAT): Remove macro.
27744 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27745 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27746 <first-versions.h>.
27747 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27748 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27749
27750 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27751
27752 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27753 (declare_mgen_alias_2): Remove.
27754 * sysdeps/generic/math-type-macros-double.h
27755 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27756 Likewise.
27757 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27758 alias.
27759 (ldexp): Define with declare_mgen_alias.
27760 (scalbn): Likewise.
27761
27762 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27763
27764 * grp/initgroups.c: Include config.h.
27765 (DEFAULT_CONFIG): New macro.
27766 (internal_getgrouplist): Use DEFAULT_CONFIG.
27767 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27768 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27769 (DEFAULT_DEFCONFIG): New macro.
27770 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27771 * nss/grp-lookup.c: Include config.h
27772 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27773 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27774 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27775 * manual/nss.texi: Update default values section.
27776
27777 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27778
27779 [BZ #21967]
27780 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27781 New.
27782 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27783 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27784 Handle MathVec_Prefer_No_AVX512.
27785 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27786 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27787 is set.
27788
27789 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27790
27791 * posix/sched_primax.c (__sched_get_priority_max): Add
27792 libc_hidden_def.
27793 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27794 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27795 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27796 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27797 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27798 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27799 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27800 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27801 Add aliases.
27802
27803 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27804
27805 * sysdeps/generic/libm-alias-float.h: New file.
27806 * sysdeps/generic/math-type-macros-float.h: Include
27807 <libm-alias-float.h>.
27808 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27809
27810 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27811
27812 [BZ #22093]
27813 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27814 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27815 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27816 (HWCAP_IMPORTANT): Likewise.
27817 (HWCAP_X86_64): New enum.
27818 (HWCAP_X86_AVX512_1): Updated.
27819 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27820 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27821 (modules-names): Add x86_64/tst-x86_64mod-1.
27822 (LDFLAGS-tst-x86_64mod-1.so): New.
27823 ($(objpfx)tst-x86_64-1): Likewise.
27824 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27825 (tst-x86_64-1-clean): Likewise.
27826 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27827 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27828
27829 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27830
27831 * po/sv.po: Update translations.
27832 * po/fr.po: Likewise.
27833
27834 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27835
27836 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27837 seconds.
27838 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27839 seconds.
27840 * elf/rtld-Rules: Fix $(error) use.
27841
27842 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27843
27844 [BZ #14925]
27845 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27846 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27847 * localedata/locales/bn_BD: “Bengali” was still used in some
27848 comments. Change it to “Bangla”.
27849
27850 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27851
27852 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27853
27854 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27855
27856 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27857 thunderx2t99p1 to list of cpu names.
27858 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27859 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27860
27861 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27862
27863 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27864 Use strcmp instead of tunable_is_name.
27865
27866 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27867
27868 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27869 (F_GET_RW_HINT): New macro.
27870 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27871 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27872 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27873 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27874 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27875 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27876 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27877 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27878 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27879
27880 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27881 (F_ADD_SEALS): New macro.
27882 [__USE_GNU] (F_GET_SEALS): Likewise.
27883 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27884 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27885 [__USE_GNU] (F_SEAL_GROW): Likewise.
27886 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27887
27888 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27889
27890 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27891 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27892 * posix/glob_internal.h (__glob_pattern_type):
27893 * posix/glob.c (glob):
27894 * posix/glob_pattern_p.c (__glob_pattern_p):
27895 Use them.
27896
27897 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27898 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27899 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27900 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27901 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27902 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27903 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27904 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27905 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27906 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27907 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27908 * sysdeps/wordsize-64/glob.c: Likewise.
27909 * sysdeps/wordsize-64/glob64.c: Likewise.
27910 * sysdeps/wordsize-64/globfree.c: Likewise.
27911 * sysdeps/wordsize-64/globfree64.c: Likewise.
27912 * sysdeps/unix/sysv/linux/glob.c: New file.
27913 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27914 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27915 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27916 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27917 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27918 adds !GLOB_NO_OLD_VERSION as an extra condition.
27919 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27920 using relative path instead of absolute one.
27921 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27922 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27923 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27924 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27925 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27926 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27927
27928 [BZ #1062]
27929 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27930 (glob): Use the same scratch buffer for both getlogin_r and
27931 getpwnam_r. Don’t require preallocation of the login name. This
27932 simplifies storage allocation, and corrects the handling of
27933 long login names.
27934
27935 [BZ #1062]
27936 * posix/glob.c (glob): Port recent patches to platforms
27937 lacking getpwnam_r.
27938 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27939 returns an error number rather than setting errno.
27940
27941 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27942 instead of GCC extension.
27943 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27944 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27945 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27946
27947 [BZ #866]
27948 [BZ #1062]
27949 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27950 * posix/bug-glob1.c: Remove file.
27951 * posix/tst-glob_symlinks.c: New file.
27952 * posix/glob.c (__lstat64): New macro.
27953 (is_dir): New function.
27954 (glob, glob_in_dir): Match symlinks even if they are dangling.
27955 (link_stat, link_exists_p): Remove. All uses removed.
27956
27957 [BZ #1062]
27958 [BZ #19971]
27959 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27960 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27961 All uses removed.
27962
27963 [BZ #1062]
27964 CVE-2017-15671
27965 * posix/Makefile (routines): Add globfree, globfree64, and
27966 glob_pattern_p.
27967 * posix/flexmember.h: New file.
27968 * posix/glob_internal.h: Likewise.
27969 * posix/glob_pattern_p.c: Likewise.
27970 * posix/globfree.c: Likewise.
27971 * posix/globfree64.c: Likewise.
27972 * sysdeps/gnu/globfree64.c: Likewise.
27973 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27974 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27975 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27976 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27977 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27978 * sysdeps/wordsize-64/globfree.c: Likewise.
27979 * sysdeps/wordsize-64/globfree64.c: Likewise.
27980 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27981 [NDEBUG): Remove comments.
27982 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27983 (dirent_type): New type. Use uint_fast8_t not
27984 uint8_t, as C99 does not require uint8_t.
27985 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27986 (struct readdir_result): Use dirent_type. Do not define skip_entry
27987 unless it is needed; this saves a byte on platforms lacking d_ino.
27988 (readdir_result_type, readdir_result_skip_entry):
27989 New functions, replacing ...
27990 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27991 these functions, which were removed. This makes the callers
27992 easier to read. All callers changed.
27993 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27994 (size_add_wrapv, glob_use_alloca): New static functions.
27995 (glob, glob_in_dir): Check for size_t overflow in several places,
27996 and fix some size_t checks that were not quite right.
27997 Remove old code using SHELL since Bash no longer
27998 uses this.
27999 (glob, prefix_array): Separate MS code better.
28000 (glob_in_dir): Remove old Amiga and VMS code.
28001 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28002 separate files.
28003 (glob_in_dir): Do not rely on undefined behavior in accessing
28004 struct members beyond their bounds. Use a flexible array member
28005 instead
28006 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28007 0/1. Caller changed.
28008 (glob): Fix memory leaks.
28009 * posix/glob64 (globfree64): Move to separate file.
28010 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28011 (globfree64): Remove hidden alias.
28012 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28013 oldglob.
28014 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28015 separate file.
28016 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28017 define.
28018 Move compat code to separate file.
28019 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28020 separate file.
28021
28022 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28023
28024 * resolv/tst-resolv-qtypes.c (domain): Changed to
28025 "const char domain[] =".
28026
28027 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28028
28029 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28030 version to 3.1.6.
28031
28032 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28033 (TCP_MD5SIG_EXT): Likewise.
28034 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28035 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28036 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28037
28038 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28039
28040 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28041
28042 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28043
28044 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28045
28046 [BZ #22100]
28047 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28048
28049 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28050
28051 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28052 before assuming that the file is empty. Avoid testing buffer content
28053 when nread == 0.
28054
28055 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28056
28057 [BZ #18858]
28058 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28059 Remove define.
28060 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28061 Likewise.
28062 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28063 Likewise.
28064 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28065 Likewise.
28066 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28067 Likewise.
28068 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28069 Likewise.
28070 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28071 Likewise.
28072
28073 2017-09-06 Florian Weimer <fweimer@redhat.com>
28074
28075 * malloc/dynarray_emplace_enlarge.c
28076 (__libc_dynarray_emplace_enlarge): Add missing else.
28077
28078 2017-09-06 Florian Weimer <fweimer@redhat.com>
28079
28080 [BZ #22096]
28081 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28082 case of failure to obtain the global conf object.
28083
28084 2017-09-06 Florian Weimer <fweimer@redhat.com>
28085
28086 [BZ #22095]
28087 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28088 dynarray allocation failure.
28089
28090 2017-09-06 Florian Weimer <fweimer@redhat.com>
28091
28092 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28093 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28094 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28095 New functions.
28096 (response): Call them. Add 'p', '6' flag processing.
28097 (test_reverse): New function.
28098 (test_get2_any): Call it.
28099 (test_no_inet6): Add 'p' test.
28100 (test_inet6): Likewise.
28101
28102 2017-09-06 Florian Weimer <fweimer@redhat.com>
28103
28104 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28105 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28106 the QNAME.
28107 (test_gai): Adjust query names. Add additional tests.
28108 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28109 test_get2. Adjust query names. Add additional tests.
28110 (test_no_inet6): New function, extracted from threadfunc.
28111 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28112 Add additional tests.
28113
28114 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28115
28116 [BZ #22070]
28117 * localedata/unicode-gen/utf8_gen.py: Set the width for
28118 characters with Prepended_Concatenation_Mark property to 1
28119 * localedata/charmaps/UTF-8: Updated using the improved script.
28120
28121 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28122
28123 [BZ #21750]
28124 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28125 use the range notation for all ranges of neighbouring characters
28126 with the same width.
28127
28128 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28129
28130 * sysdeps/generic/math-type-macros-double.h: Include
28131 <math-svid-compat.h>.
28132 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28133 * sysdeps/generic/math-type-macros-float.h: Include
28134 <math-svid-compat.h>.
28135 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28136 * sysdeps/generic/math-type-macros-ldouble.h: Include
28137 <math-svid-compat.h>.
28138 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28139 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28140 condition.
28141 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28142 * math/w_acosf_compat.c: Likewise.
28143 * math/w_acosh_compat.c: Likewise.
28144 * math/w_acoshf_compat.c: Likewise.
28145 * math/w_acoshl_compat.c: Likewise.
28146 * math/w_acosl_compat.c: Likewise.
28147 * math/w_asin_compat.c: Likewise.
28148 * math/w_asinf_compat.c: Likewise.
28149 * math/w_asinl_compat.c: Likewise.
28150 * math/w_atan2_compat.c: Likewise.
28151 * math/w_atan2f_compat.c: Likewise.
28152 * math/w_atan2l_compat.c: Likewise.
28153 * math/w_atanh_compat.c: Likewise.
28154 * math/w_atanhf_compat.c: Likewise.
28155 * math/w_atanhl_compat.c: Likewise.
28156 * math/w_cosh_compat.c: Likewise.
28157 * math/w_coshf_compat.c: Likewise.
28158 * math/w_coshl_compat.c: Likewise.
28159 * math/w_exp10_compat.c: Likewise.
28160 * math/w_exp10f_compat.c: Likewise.
28161 * math/w_exp10l_compat.c: Likewise.
28162 * math/w_exp2_compat.c: Likewise.
28163 * math/w_exp2f_compat.c: Likewise.
28164 * math/w_exp2l_compat.c: Likewise.
28165 * math/w_fmod_compat.c: Likewise.
28166 * math/w_fmodf_compat.c: Likewise.
28167 * math/w_fmodl_compat.c: Likewise.
28168 * math/w_hypot_compat.c: Likewise.
28169 * math/w_hypotf_compat.c: Likewise.
28170 * math/w_hypotl_compat.c: Likewise.
28171 * math/w_j0_compat.c: Likewise.
28172 * math/w_j0f_compat.c: Likewise.
28173 * math/w_j0l_compat.c: Likewise.
28174 * math/w_j1_compat.c: Likewise.
28175 * math/w_j1f_compat.c: Likewise.
28176 * math/w_j1l_compat.c: Likewise.
28177 * math/w_jn_compat.c: Likewise.
28178 * math/w_jnf_compat.c: Likewise.
28179 * math/w_jnl_compat.c: Likewise.
28180 * math/w_lgamma_r_compat.c: Likewise.
28181 * math/w_lgammaf_r_compat.c: Likewise.
28182 * math/w_lgammal_r_compat.c: Likewise.
28183 * math/w_log10_compat.c: Likewise.
28184 * math/w_log10f_compat.c: Likewise.
28185 * math/w_log10l_compat.c: Likewise.
28186 * math/w_log2_compat.c: Likewise.
28187 * math/w_log2f_compat.c: Likewise.
28188 * math/w_log2l_compat.c: Likewise.
28189 * math/w_log_compat.c: Likewise.
28190 * math/w_logf_compat.c: Likewise.
28191 * math/w_logl_compat.c: Likewise.
28192 * math/w_pow_compat.c: Likewise.
28193 * math/w_powf_compat.c: Likewise.
28194 * math/w_powl_compat.c: Likewise.
28195 * math/w_remainder_compat.c: Likewise.
28196 * math/w_remainderf_compat.c: Likewise.
28197 * math/w_remainderl_compat.c: Likewise.
28198 * math/w_sinh_compat.c: Likewise.
28199 * math/w_sinhf_compat.c: Likewise.
28200 * math/w_sinhl_compat.c: Likewise.
28201 * math/w_sqrt_compat.c: Likewise.
28202 * math/w_sqrtf_compat.c: Likewise.
28203 * math/w_sqrtl_compat.c: Likewise.
28204 * math/w_tgamma_compat.c: Likewise.
28205 * math/w_tgammaf_compat.c: Likewise.
28206 * math/w_tgammal_compat.c: Likewise.
28207 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28208 [LIBM_SVID_COMPAT].
28209 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28210 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28211 [LIBM_SVID_COMPAT].
28212 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28213 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28214 [LIBM_SVID_COMPAT].
28215 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28216 * sysdeps/i386/fpu/w_sqrt.c: New file.
28217 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28218 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28219 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28220 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28221 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28222 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28223 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28224 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28225 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28226 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28227 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28228 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28229 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28230 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28231 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28232 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28233 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28234 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28235 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28236 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28237 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28238 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28239 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28240 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28241 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28242 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28243 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28244 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28245 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28246 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28247 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28248 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28249 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28250 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28251 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28252 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28253 * sysdeps/ia64/fpu/w_log.c: Likewise.
28254 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28255 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28256 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28257 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28258 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28259 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28260 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28261 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28262 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28263 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28264 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28265 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28266 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28267 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28268 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28269 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28270 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28271 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28272 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28273 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28274 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28275 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28276 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28277 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28278 [LIBM_SVID_COMPAT].
28279 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28280 * sysdeps/ieee754/k_standard.c: Likewise.
28281 * sysdeps/ieee754/k_standardf.c: Likewise.
28282 * sysdeps/ieee754/k_standardl.c: Likewise.
28283 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28284 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28285 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28286 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28287 long_double_symbol call on [LIBM_SVID_COMPAT].
28288 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28289 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28290 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28291 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28292 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28293 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28294 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28295 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28296 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28297 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28298 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28299 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28300 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28301 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28302 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28303 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28304 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28305 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28306 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28307 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28308 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28309 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28310
28311 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28312
28313 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28314 * malloc/tst-mallocstate.c: Convert from test-skeleton
28315 to test-driver. Ifdef code using TEST_COMPAT macro.
28316 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28317 * math/test-matherr.c: Likewise.
28318
28319 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28320
28321 [BZ #22086]
28322 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28323 comparing word with byte-swapped constant.
28324
28325 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28326
28327 [BZ #20498]
28328 * locale/iso-639.def: add Miskito.
28329 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28330 * localedata/locales/miq_NI: New file.
28331
28332 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28333
28334 [BZ #18822]
28335 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28336 (__mkdir): Likewise.
28337 * io/chmod.c (__chmod): Add libc_hidden_def.
28338 * io/mkdir.c (__mkdir): Likewise.
28339 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28340 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28341 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28342 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28343
28344 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28345
28346 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28347 version to 4.13.
28348
28349 [BZ #22082]
28350 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28351 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28352
28353 2017-09-04 Florian Weimer <fweimer@redhat.com>
28354
28355 * math/math.h: Issue warning if log is defined.
28356
28357 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28358
28359 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28360 kernel version to 4.13.
28361
28362 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28363
28364 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28365 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28366 parameter.
28367 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28368 just <bits/types.h>.
28369 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28370 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28371 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28372 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28373 * misc/preadv2.c: Include <errno.h>.
28374 * misc/preadv64v2.c: Include <errno.h>.
28375 * misc/pwritev2.c: Include <errno.h>.
28376 * misc/pwritev64v2.c: Include <errno.h>.
28377 * sysdeps/posix/preadv2.c: Include <errno.h>.
28378 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28379 Fix <unistd.h> inclusion.
28380 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28381 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28382 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28383 __strtoul_internal): New functions.
28384 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28385 * sysdeps/posix/system.c: Include <sigsetops.h>.
28386 * sysdeps/mach/hurd/i386/Makefile
28387 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28388 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28389 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28390 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28391 __feraiseexcept_renamed to feraiseexcept instead of
28392 __GI_feraiseexcept.
28393 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28394 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28395 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28396 RWF_NOWAIT): Define to 0 if undefined already.
28397 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28398 boils down to 0.
28399 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28400 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28401
28402 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28403
28404 * manual/math.texi (pow10): Do not document.
28405 (pow10f): Likewise.
28406 (pow10l): Likewise.
28407 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28408 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28409 * math/libm-test-exp10.inc (pow10_test): Remove.
28410 (do_test): Do not call pow10.
28411 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28412 [NO_LONG_DOUBLE] (pow10l): Likewise.
28413 * math/w_exp10f_compat.c (pow10f): Likewise.
28414 * math/w_exp10l_compat.c (pow10l): Likewise.
28415 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28416 (pow10): Make into compat symbol.
28417 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28418 (pow10f): Make into compat symbol.
28419 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28420 (pow10l): Make into compat symbol.
28421 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28422 pow10.
28423 (CFLAGS-nldbl-pow10.c): Remove variable..
28424 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28425 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28426 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28427 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28428 Undefine and redefine.
28429 (pow10l): Make into compat symbol.
28430 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28431 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28432 * sysdeps/arm/libm-test-ulps: Likewise.
28433 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28434 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28435 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28436 * sysdeps/microblaze/libm-test-ulps: Likewise.
28437 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28438 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28439 * sysdeps/nios2/libm-test-ulps: Likewise.
28440 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28441 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28442 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28443 * sysdeps/sh/libm-test-ulps: Likewise.
28444 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28445 * sysdeps/tile/libm-test-ulps: Likewise.
28446 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28447
28448 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28449
28450 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28451
28452 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28453
28454 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28455 "../ChangeLog.old/ChangeLog.8".
28456 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28457 "../ChangeLog.old/ChangeLog.14".
28458
28459 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28460
28461 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28462 Threads Library.
28463
28464 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28465
28466 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28467
28468 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28469
28470 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28471 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28472
28473 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28474
28475 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28476 32 atexit handlers.
28477
28478 2017-09-01 Zack Weinberg <zackw@panix.com>
28479
28480 * math/math.h (HUGE_VAL): Improve commentary.
28481
28482 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28483 Andreas Schwab <schwab@suse.de>
28484
28485 [BZ #21530]
28486 * include/stdio.h (__gen_tempfd): New function.
28487 * stdio-common/Makefile (routines): Add gentempfd.
28488 * stdio-common/gentempfd.c: New file.
28489 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28490 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28491 unnamed file first.
28492
28493 2017-09-01 Florian Weimer <fweimer@redhat.com>
28494
28495 [BZ #21915]
28496 [BZ #21922]
28497 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28498 result to determine success or failure, not the errno value.
28499 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28500 (tst-nss-files-hosts-erange): Link with -ldl.
28501 * nss/tst-nss-files-hosts-erange.c: New file.
28502 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28503 (do_test): Add NO_DATA tests.
28504 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28505 (do_test): Call it.
28506
28507 2017-09-01 Florian Weimer <fweimer@redhat.com>
28508
28509 [BZ #21922]
28510 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28511 coming from gethostbyname2_r.
28512
28513 2017-09-01 Florian Weimer <fweimer@redhat.com>
28514
28515 * support/namespace.h (struct support_chroot_configuration): Add
28516 hosts, host_conf.
28517 (struct support_chroot): Add path_hosts, path_host_conf.
28518 * support/support_chroot.c (write_file): New function.
28519 (support_chroot_create): Call it to process /etc/resolv.conf,
28520 /etc/hosts, /etc/host.conf.
28521 (support_chroot_free): Update.
28522
28523 2017-09-01 Florian Weimer <fweimer@redhat.com>
28524
28525 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28526 status indicates it is set.
28527
28528 2017-09-01 Florian Weimer <fweimer@redhat.com>
28529
28530 [BZ #20532]
28531 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28532 function lookup failures more reliable.
28533
28534 2017-09-01 Florian Weimer <fweimer@redhat.com>
28535
28536 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28537 (getcanonname): Likewise.
28538 (gaih_inet): Likewise.
28539
28540 2017-09-01 Florian Weimer <fweimer@redhat.com>
28541
28542 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28543 (getcanonname): Likewise.
28544 (gaih_inet): Likewise.
28545
28546 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28547 Richard Henderson <rth@twiddle.net>
28548
28549 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28550 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28551 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28552 (IREG_SIZE, OREG_SIZE): New macros.
28553 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28554 (IREG_SIZE, OREG_SIZE): New macros.
28555 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28556 (IREG_SIZE): New macro.
28557 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28558 (IREG_SIZE): New macro.
28559 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28560 New includes.
28561 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28562 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28563 (__CONCATX): Handle exceptions correctly on large values that may
28564 set FE_INVALID.
28565 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28566 Initialize if not already set.
28567 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28568
28569 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28570
28571 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28572 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28573 Likewise.
28574 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28575 Likewise.
28576 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28577 Likewise.
28578 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28579 Likewise.
28580 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28581 Likewise.
28582 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28583 Likewise.
28584 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28585 Likewise.
28586 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28587 (NO_CANCELLATION): Likewise.
28588 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28589 Likewise.
28590 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28591 Likewise.
28592 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28593 Likewise.
28594 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28595 (NO_CANCELLATION): Likewise.
28596 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28597 (NO_CANCELLATION): Likewise.
28598 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28599 Likewise
28600 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28601 Likewise.
28602 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28603 Likewise.
28604 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28605 Likewise.
28606 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28607 hidden prototype.
28608 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28609 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28610
28611 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28612
28613 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28614 in resolver call.
28615
28616 2017-08-31 Florian Weimer <fweimer@redhat.com>
28617
28618 * include/libc-symbols.h (internal_function): Remove.
28619
28620 2017-08-31 Florian Weimer <fweimer@redhat.com>
28621
28622 * stdlib/fmtmsg.c (internal_addseverity): Remove
28623 internal_function.
28624
28625 2017-08-31 Florian Weimer <fweimer@redhat.com>
28626
28627 * stdio-common/printf_fp.c (group_number): Remove
28628 internal_function.
28629 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28630
28631 2017-08-31 Florian Weimer <fweimer@redhat.com>
28632
28633 * posix/fnmatch.c (internal_function): Remove definition.
28634 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28635 * posix/regcomp.c (peek_token, init_word_char)
28636 (duplicate_node_closure, fetch_token, peek_token)
28637 (peek_token_bracket, build_range_exp, build_collating_symbol):
28638 Likewise.
28639 * posix/regex_internal.c (re_string_construct_common)
28640 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28641 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28642 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28643 (re_string_translate_buffer, re_string_reconstruct)
28644 (re_string_peek_byte_case, re_string_fetch_byte_case)
28645 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28646 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28647 (re_node_set_add_intersect, re_node_set_init_union)
28648 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28649 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28650 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28651 (re_acquire_state_context): Likewise.
28652 * posix/regex_internal.h (internal_function): Remove definition.
28653 (re_string_realloc_buffers, build_wcs_buffer)
28654 (build_wcs_upper_buffer, build_upper_buffer)
28655 (re_string_translate_buffer, re_string_context_at)
28656 (re_string_char_size_at, re_string_wchar_at)
28657 (re_string_elem_size_at): Likewise.
28658 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28659 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28660 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28661 (re_search_internal, re_search_2_stub, re_search_stub)
28662 (re_copy_regs, prune_impossible_nodes, check_matching)
28663 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28664 (free_fail_stack_return, sift_states_iter_mb)
28665 (sift_states_backward, build_sifted_states)
28666 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28667 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28668 (check_subexp_limits, sift_states_bkref, merge_state_array)
28669 (find_recover_state, transit_state, merge_state_with_log)
28670 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28671 (transit_state_mb, transit_state_bkref, get_subexp)
28672 (get_subexp_sub, find_subexp_node, check_arrival)
28673 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28674 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28675 (check_node_accept_bytes, find_collation_sequence_value)
28676 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28677 (acquire_init_state_context, check_halt_node_context)
28678 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28679 (sub_epsilon_src_nodes): Likewise.
28680 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28681 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28682 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28683 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28684 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28685 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28686 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28687 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28688 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28689 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28690 (PREADV): Likewise.
28691 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28692 (PREADV): Likewise.
28693 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28694 (PWRITEV): Likewise.
28695 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28696 (PWRITEV): Likewise.
28697 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28698 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28699
28700 2017-08-31 Florian Weimer <fweimer@redhat.com>
28701
28702 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28703 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28704 Remove internal_function.
28705 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28706 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28707 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28708 (__deallocate_stack, __libc_pthread_init)
28709 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28710 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28711 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28712 Likewise.
28713 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28714 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28715 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28716 Likewise.
28717 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28718 (__pthread_mutex_unlock_usercnt): Likewise.
28719
28720 2017-08-31 Florian Weimer <fweimer@redhat.com>
28721
28722 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28723 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28724 (fts_safe_changedir): Remove internal_function.
28725 * io/ftw.c (internal_function): Remove definition.
28726 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28727
28728 2017-08-31 Florian Weimer <fweimer@redhat.com>
28729
28730 * inet/deadline.c (__deadline_current_time)
28731 (__deadline_from_timeval, __deadline_to_ms): Remove
28732 internal_function.
28733 * inet/getnameinfo.c (nrl_domainname): Likewise.
28734 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28735 * inet/inet6_option.c (add_pad): Likewise.
28736 * inet/net-internal.h (__deadline_current_time)
28737 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28738 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28739 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28740 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28741
28742 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28743
28744 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28745 include <bits/nan.h>.
28746 * math/Makefile (headers): Remove bits/nan.h.
28747 * bits/nan.h: Remove.
28748 * sysdeps/ieee754/bits/nan.h: Likewise.
28749 * sysdeps/mips/bits/nan.h: Likewise.
28750
28751 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28752 not include <bits/inf.h>.
28753 * math/Makefile (headers): Remove bits/inf.h.
28754 * bits/inf.h: Remove.
28755 * sysdeps/ieee754/bits/inf.h: Likewise.
28756
28757 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28758 bits/huge_vall.h or bits/huge_val_flt128.h.
28759 (HUGE_VAL): Define directly here.
28760 [__USE_ISOC99] (HUGE_VALF): Likewise.
28761 [__USE_ISOC99] (HUGE_VALL): Likewise.
28762 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28763 (HUGE_VAL_F128): Likewise.
28764 * math/Makefile (headers): Remove bits/huge_val.h,
28765 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28766 * bits/huge_val.h: Remove.
28767 * bits/huge_val_flt128.h: Likewise.
28768 * bits/huge_valf.h: Likewise.
28769 * bits/huge_vall.h: Likewise.
28770 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28771 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28772 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28773 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28774 * sysdeps/sh/bits/huge_val.h: Likewise.
28775 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28776 * sysdeps/x86/bits/huge_vall.h: Likewise.
28777
28778 2017-08-31 Florian Weimer <fweimer@redhat.com>
28779
28780 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28781 internal_function.
28782 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28783 Likewise.
28784 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28785 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28786 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28787 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28788 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28789 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28790 * elf/dl-libc.c (dlerror_run): Likewise.
28791 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28792 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28793 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28794 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28795 Likewise.
28796 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28797 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28798 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28799 * elf/dl-profile.c (_dl_start_profile): Likewise.
28800 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28801 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28802 Likewise.
28803 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28804 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28805 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28806 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28807 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28808 (_dl_allocate_tls_storage): Likewise.
28809 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28810 (_dl_check_all_versions): Likewise.
28811 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28812 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28813 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28814 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28815 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28816 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28817 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28818 internal_function from __dl_start.
28819 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28820 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28821 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28822 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28823 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28824 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28825 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28826 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28827 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28828 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28829 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28830 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28831 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28832 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28833 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28834 Likewise.
28835 (struct rtld_global_ro): Remove internal_function from the
28836 _dl_lookup_symbol_x member.
28837 (_dl_symbol_value): Remove. No longer defined anywhere.
28838 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28839 internal_function.
28840 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28841 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28842 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28843 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28844 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28845 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28846 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28847 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28848 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28849 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28850 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28851 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28852
28853 2017-08-31 Florian Weimer <fweimer@redhat.com>
28854
28855 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28856 Remove internal_function.
28857 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28858 Likewise.
28859 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28860 Likewise.
28861
28862 2017-08-31 Florian Weimer <fweimer@redhat.com>
28863
28864 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28865 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28866 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28867
28868 2017-08-31 Florian Weimer <fweimer@redhat.com>
28869
28870 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28871 (__gai_enqueue_request): Remove internal_function.
28872 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28873 (__gai_remove_request, __gai_notify, __gai_notify_only)
28874 (__gai_sigqueue): Likewise.
28875 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28876 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28877 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28878 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28879 Likewise.
28880
28881 2017-08-31 Florian Weimer <fweimer@redhat.com>
28882
28883 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28884 * include/dirent.h (__opendirat, __getdents, __getdents64)
28885 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28886 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28887 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28888 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28889 Likewise.
28890 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28891
28892 2017-08-31 Florian Weimer <fweimer@redhat.com>
28893
28894 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28895 internal_function.
28896 (GETCWD_RETURN_TYPE): Likewise.
28897
28898 2017-08-31 Florian Weimer <fweimer@redhat.com>
28899
28900 * include/time.h (__tz_compute, __strptime_internal): Remove
28901 internal_function.
28902 * time/strptime_l.c (__strptime_internal): Likewise.
28903 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28904
28905 2017-08-31 Florian Weimer <fweimer@redhat.com>
28906
28907 * iconv/gconv.c (__gconv): Remove internal_function.
28908 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28909 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28910 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28911 (__gconv_release_cache): Likewise.
28912 * iconv/gconv_close.c (__gconv_close): Likewise.
28913 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28914 (read_conf_file, __gconv_get_path): Likewise.
28915 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28916 (__gconv_release_step, gen_steps, increment_counter)
28917 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28918 (__gconv_close_transform, free_modules_db): Likewise.
28919 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28920 Likewise.
28921 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28922 (__gconv_find_transform, __gconv_lookup_cache)
28923 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28924 (__gconv_close_transform, __gconv_release_cache)
28925 (__gconv_loaded_object, __gconv_release_shlib)
28926 (__gconv_compare_alias): Likewise.
28927 * iconv/gconv_open.c (__gconv_open): Likewise.
28928 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28929 * iconv/iconvconfig.c (add_module): Likewise.
28930 * intl/dcigettext.c (plural_lookup, guess_category_value)
28931 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28932 * intl/eval-plural.h (plural_eval): Likewise.
28933 * intl/finddomain.c (_nl_find_domain): Likewise.
28934 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28935 (_nl_load_domain, _nl_find_msg): Likewise.
28936 (internal_function): Remove definition.
28937 * intl/loadinfo.h (internal_function): Likewise.
28938 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28939 internal_function.
28940 * intl/localealias.c (internal_function): Remove definition.
28941 (read_alias_file): Remove internal_function.
28942 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28943 * intl/plural-exp.h (internal_function): Remove definition.
28944 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28945 internal_function.
28946 * intl/plural.c: Regenerate.
28947 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28948 * locale/coll-lookup.c (__collidx_table_lookup)
28949 (__collseq_table_lookup): Likewise.
28950 * locale/coll-lookup.h (__collidx_table_lookup)
28951 (__collseq_table_lookup): Likewise.
28952 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28953 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28954 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28955 (_nl_unload_locale): Likewise.
28956 * locale/localeinfo.h (struct __locale_data): Remove
28957 internal_function from cleanup member.
28958 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28959 (_nl_remove_locale, _nl_load_locale_from_archive)
28960 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28961 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28962 (_nl_cleanup_time): Remove internal_function.
28963 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28964 (_nl_parse_alt_digit): Likewise.
28965 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28966 (_nl_select_era_entry): Likewise.
28967 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28968 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28969 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28970 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28971 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28972
28973 2017-08-31 Florian Weimer <fweimer@redhat.com>
28974
28975 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28976 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28977 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28978 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28979 Likewise.
28980 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28981 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28982 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28983 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28984 Likewise.
28985 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28986
28987 2017-08-31 Florian Weimer <fweimer@redhat.com>
28988
28989 * misc/getttyent.c (skip, value): Remove internal_function.
28990 * misc/syslog.c (openlog_internal): Likewise.
28991 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28992
28993 2017-08-31 Florian Weimer <fweimer@redhat.com>
28994
28995 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28996 (__nss_rewrite_field): Remove internal_function.
28997 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28998 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28999 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29000 * nss/nsswitch.c (nss_parse_file, nss_getline)
29001 (nss_parse_service_list, nss_new_service): Likewise.
29002 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29003 * nss/valid_field.c (__nss_valid_field): Likewise.
29004 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29005
29006 2017-08-31 Florian Weimer <fweimer@redhat.com>
29007
29008 * malloc/arena.c (__malloc_fork_lock_parent)
29009 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29010 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29011 internal_function from defintions.
29012 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29013 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29014 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29015 internal_function from declarations.
29016 * malloc/malloc.c (internal_function): Do not define.
29017 (mem2mem_check): Remove internal_function from declaration.
29018 (munmap_chunk, mremap_chunk): Remove internal_function.
29019 * malloc/mtrace.c (tr_where): Likewise.
29020
29021 2017-08-31 Florian Weimer <fweimer@redhat.com>
29022
29023 * include/rpc/pmap_clnt.h (__get_socket): Remove
29024 internal_function.
29025 * sunrpc/auth_des.c (synchronize): Likewise.
29026 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29027 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29028 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29029 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29030 (key_call): Likewise.
29031 * sunrpc/pm_getport.c (__get_socket): Likewise.
29032 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29033 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29034 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29035 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29036 (invalidate): Likewise.
29037 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29038 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29039 (set_input_fragment, get_input_bytes): Likewise.
29040
29041 2017-08-31 Florian Weimer <fweimer@redhat.com>
29042
29043 * malloc/malloc.c (_int_free): Remove locked variable and related
29044 asserts.
29045
29046 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29047
29048 [BZ #22051]
29049 * Makerules (build-module-helper-objlist): Filter out
29050 $(elf-objpfx)sofini.os.
29051 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29052 needed.
29053
29054 2017-08-31 Florian Weimer <fweimer@redhat.com>
29055
29056 * libio/fcloseall.c: Assume weak_alias is defined.
29057 * libio/feof.c: Likewise.
29058 * libio/fileno.c: Likewise.
29059 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29060 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29061 definitions.
29062 (_IO_file_open): Call __open directly.
29063 (_IO_new_file_sync): Assume ESPIPE is defined.
29064 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29065 (_IO_new_file_write): Call __write directly.
29066 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29067 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29068 * libio/genops.c: Assume _LIBC is defined.
29069 (save_for_backup): Remove internal_function.
29070 * libio/getc.c: Assume weak_alias is defined.
29071 * libio/getwc.c: Likewise.
29072 * libio/iofclose.c: Assume _LIBC is defined.
29073 * libio/iofdopen.c: Likewise.
29074 (_IO_fcntl): Remove macro definition.
29075 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29076 Call __fcntl directly.
29077 * libio/iofflush.c: Assume weak_alias is defined.
29078 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29079 defined.
29080 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29081 * libio/iofgets.c: Likewise.
29082 * libio/iofopen.c: Assume _LIBC is defined.
29083 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29084 * libio/iofputs.c: Assume weak_alias is defined.
29085 * libio/iofread.c: Likewise.
29086 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29087 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29088 * libio/ioftell.c: Assume weak_alias is defined.
29089 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29090 * libio/iofwide.c: Assume _LIBC is defined.
29091 (_IO_fwide): Drop SHARED conditional because it is implied by
29092 SHLIB_COMPAT.
29093 * libio/iofwrite.c: Assume weak_alias is defined.
29094 * libio/iogetdelim.c: Likewise.
29095 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29096 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29097 (_IO_getwline): Call __wmemcpy directly.
29098 * libio/iopopen.c: Assume _LIBC is defined.
29099 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29100 (_IO_close): Remove macro definitions.
29101 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29102 _exit directly.
29103 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29104 directly.
29105 * libio/ioputs.c: Assume weak_alias is defined.
29106 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29107 * libio/iosetbuffer.c: Assume weak_alias is defined.
29108 * libio/iosetvbuf.c: Likewise.
29109 * libio/ioungetc.c: Likewise.
29110 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29111 libc_hidden_def, libc_hidden_weak, NULL are defined.
29112 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29113 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29114 defined.
29115 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29116 definitions.
29117 (_IO_old_file_init_internal): Drop SHARED conditional because it
29118 is implied by SHLIB_COMPAT.
29119 (_IO_old_file_fopen): Call __open directly.
29120 (_IO_old_file_sync): Assume ESPIPE is defined.
29121 (_IO_old_file_write): Call __write directly.
29122 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29123 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29124 Call __fcntl directly.
29125 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29126 (_IO_old_fgetpos): Assume EIO is defined.
29127 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29128 (_IO_old_fgetpos64): Assume EIO is defined.
29129 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29130 (_IO_old_fsetpos): Assume EIO is defined.
29131 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29132 (_IO_old_fsetpos64): Assume EIO is defined.
29133 * libio/oldiopopen.c: Assume _LIBC is defined.
29134 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29135 (_IO_close): Remove macro definitions.
29136 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29137 directly.
29138 (_IO_old_proc_close): Call __close, __waitpid directly.
29139 * libio/put.c: Assume weak_alias is defined.
29140 * libio/stdfiles.c: Assume _LIBC is defined.
29141 * libio/stdio.c: Likewise.
29142 * libio/wfileops.c: Likewise.
29143 (_IO_wfile_sync): Assume ESPIPE is defined.
29144 * libio/wgenops.c: Assume _LIBC is defined.
29145 (save_for_wbackup): Remove internal_function.
29146
29147 2017-08-31 Florian Weimer <fweimer@redhat.com>
29148
29149 * malloc/malloc.c (top_check): Change return type to void. Remove
29150 internal_function.
29151 * malloc/hooks.c (top_check): Likewise.
29152 (malloc_check, realloc_check, memalign_check): Adjust.
29153
29154 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29155
29156 [BZ #21457]
29157 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29158 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29159 sigcontext and namespace requirements.
29160 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29161 * sysdeps/m68k/sys/ucontext.h: Likewise.
29162 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29163 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29164 <bits/sigcontext.h>.
29165 (__ctx): Define earlier.
29166 (mcontext_t): Define structure contents rather than using struct
29167 sigcontext.
29168 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29169 __glibc_reserved1 instead of __reserved.
29170 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29171 <bits/sigcontext.h>.
29172 (__ctx): Define earlier.
29173 (mcontext_t): Define structure contents rather than using struct
29174 sigcontext.
29175 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29176 mcontext_t instead of struct sigcontext.
29177 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29178 <bits/sigcontext.h>.
29179 (__ctx): Define earlier.
29180 (mcontext_t): Define structure contents rather than using struct
29181 sigcontext.
29182 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29183 <bits/sigcontext.h>.
29184 (__ctx): Define earlier.
29185 (mcontext_t): Define structure contents rather than using struct
29186 sigcontext.
29187 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29188 mcontext_t instead of struct sigcontext.
29189 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29190 mcontext_t instead of struct sigcontext.
29191 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29192 <bits/sigcontext.h>.
29193 (__ctx): New macro.
29194 (struct __ia64_fpreg_mcontext): New type.
29195 (mcontext_t): Define structure contents rather than using struct
29196 sigcontext.
29197 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29198 (uc_sigmask): Define using __ctx.
29199 (uc_stack): Likewise.
29200 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29201 <bits/sigcontext.h>.
29202 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29203 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29204 <bits/sigcontext.h>.
29205 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29206 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29207 <bits/sigcontext.h>.
29208 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29209 <bits/sigcontext.h>.
29210 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29211 <bits/sigcontext.h>.
29212 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29213 <bits/sigcontext.h>.
29214 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29215 <bits/sigcontext.h>.
29216 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29217 <bits/sigcontext.h>.
29218 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29219 <bits/sigcontext.h>.
29220 (__ctx): Define earlier.
29221 (mcontext_t): Define structure contents rather than using struct
29222 sigcontext.
29223 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29224 <bits/sigcontext.h>. Include <bits/types.h>.
29225 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29226 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29227 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29228 (test-xfail-UNIX98/signal.h/conform): Likewise.
29229 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29230 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29231 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29232 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29233 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29234 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29235 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29236 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29237 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29238
29239 2017-08-30 Florian Weimer <fweimer@redhat.com>
29240
29241 * malloc/dynarray_emplace_enlarge.c
29242 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29243 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29244 * malloc/tst-dynarray.c (test_long_overflow): New function.
29245 (do_test): Call it.
29246
29247 2017-08-30 Florian Weimer <fweimer@redhat.com>
29248
29249 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29250 (set_arena_corrupt): Remove definitions.
29251 (mtrim): Do not check for corrupt arena.
29252 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29253 Likewise.
29254
29255 2017-08-30 Florian Weimer <fweimer@redhat.com>
29256
29257 [BZ #21754]
29258 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29259 check_action.
29260 (ptmalloc_init): Do not set or use check_action.
29261 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29262 call to malloc_printerr. Remove return statement.
29263 (free_check): Likewise. Remove arena unlock.
29264 (top_check): Update comment. Adjust call to malloc_printerr.
29265 Remove heap repair code.
29266 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29267 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29268 (sysmalloc): Adjust call to malloc_printerr.
29269 (munmap_chunk, __libc_realloc): Likewise. Remove return
29270 statement.
29271 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29272 Remove errout label and corresponding gotos.
29273 (_int_free): Likewise. Remove arena unlock.
29274 (do_set_mallopt_check): Do not set check_action.
29275 (malloc_printerr): Adjust parameter list. Do not mark arena as
29276 corrupt.
29277 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29278 comment.
29279 * manual/probes.texi (Memory Allocation Probes): Remove
29280 memory_mallopt_check_action.
29281
29282 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29283
29284 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29285 Use pointer to uint64_t instead of long int for sp.
29286
29287 2017-08-30 Florian Weimer <fweimer@redhat.com>
29288
29289 [BZ #21754]
29290 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29291 without printing a backtrace. Do not leak any information in the
29292 error message.
29293 * manual/memory.texi (Heap Consistency Checking): Update.
29294 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29295
29296 2017-08-30 Florian Weimer <fweimer@redhat.com>
29297
29298 Do not scale NPTL tests with available number of CPUs.
29299 * nptl/tst-cond16.c (count): Set to constant value of 8.
29300 * nptl/tst-cond18.c (count): Likewise.
29301
29302 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29303
29304 [BZ #22035]
29305 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29306 Define to take a second argument that is a macro that
29307 concatentates a suffix, not the suffix itself.
29308 (__CONCAT_d): New macro.
29309 (__CONCAT_f): Likewise.
29310 (__CONCAT_l): Likewise.
29311
29312 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29313
29314 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29315 by child.
29316
29317 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29318 Aurelien Jarno <aurelien@aurel32.net>
29319 Maciej W. Rozycki <macro@imgtec.com>
29320
29321 [BZ #21956]
29322 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29323 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29324 `mips16-syscall6' and `mips16-syscall7'.
29325 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29326 (CFLAGS-mips16-syscall7.c): Remove.
29327 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29328 Remove `__mips16_syscall5', `__mips16_syscall6' and
29329 `__mips16_syscall7'.
29330 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29331 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29332 `__mips_syscall_return'.
29333 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29334 (__mips16_syscall1): Likewise.
29335 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29336 (__mips16_syscall2): Likewise.
29337 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29338 (__mips16_syscall3): Likewise.
29339 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29340 (__mips16_syscall4): Likewise.
29341 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29342 Remove.
29343 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29344 Remove.
29345 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29346 Remove.
29347 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29348 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29349 `__mips16_syscall5'. Remove prototype.
29350 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29351 `__mips16_syscall6'. Remove prototype.
29352 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29353 `__mips16_syscall7'. Remove prototype.
29354 (__nomips16, __mips16_syscall_return): Move to...
29355 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29356 (__nomips16, __mips_syscall_return): ... here.
29357 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29358 `__mips16_syscall_return' to `__mips_syscall_return'.
29359 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29360 `internal_syscall##nr'.
29361 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29362 `internal_syscall##nr'.
29363 (FORCE_FRAME_POINTER): Remove.
29364 (__mips_syscall5): New prototype.
29365 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29366 (__mips_syscall6): New prototype.
29367 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29368 (__mips_syscall7): New prototype.
29369 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29370 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29371 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29372 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29373 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29374 (sysdep_routines): Add libc-do-syscall.
29375 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29376 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29377
29378 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29379
29380 [BZ #21672]
29381 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29382 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29383 (advise_stack_range): New function.
29384 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29385 stack non required to advise_stack_range at allocatestack.c
29386
29387 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29388
29389 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29390
29391 2017-08-29 Florian Weimer <fweimer@redhat.com>
29392
29393 [BZ #22026]
29394 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29395 __end_fct. Mangle __end_fct after setting it to NULL.
29396 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29397 (modules-names, modules-names-tests): Add
29398 tst-gconv-init-failure-mod.
29399 (gconv-modules): New target.
29400 (tst-gconv-init-failure-mod.so): Link against libsupport.
29401 (tst-gconv-init-failure): Depend on gconv-modules,
29402 tst-gconv-init-failure-mod.so.
29403 * iconv/tst-gconv-init-failure-mod.c: New file.
29404 * iconv/tst-gconv-init-failure.c: Likewise.
29405 * iconv/test-gconv-modules: Likewise.
29406
29407 2017-08-29 Florian Weimer <fweimer@redhat.com>
29408
29409 [BZ #22025]
29410 * iconv/gconv_db.c (free_derivation): Remove redundant
29411 parentheses.
29412 (gen_steps): Unconditionally mangle __btowc_fct after
29413 initialization.
29414 (increment_counter): Likewise. Do not call init_fct for internal
29415 modules.
29416
29417 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29418
29419 [BZ #22028]
29420 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29421 (_MSUF_): Remove macro.
29422 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29423 Likewise.
29424 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29425 (__REDIRFROM_X): New macro.
29426 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29427 Likewise.
29428 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29429 (__REDIRTO_X): Likewise.
29430 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29431 arguments.
29432 (__MATH_REDIRCALL_2): Likewise.
29433 (__MATH_REDIRCALL_INTERNAL): Likewise.
29434 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29435 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29436 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29437 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29438 * math/test-finite-macros.c: New file.
29439 * math/Makefile (tests): Add test-finite-macros.
29440 (CFLAGS-test-finite-macros.c): New variable.
29441
29442 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29443 Jeff Law <law@redhat.com>
29444
29445 [BZ #22025]
29446 Mangle NULL pointers in iconv/gconv.
29447 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29448 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29449 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29450 is non-NULL before demangling the end_fct. Check for NULL
29451 end_fct after demangling.
29452 (__gconv_release_step): Demangle the end_fct before checking
29453 it for NULL. Remove assert on __shlibc_handle != NULL.
29454 (gen_steps): Don't check btowc_fct for NULL before mangling.
29455 Demangle init_fct before checking for NULL.
29456 (increment_counter): Likewise.
29457 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29458 end_fct for NULL before mangling.
29459 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29460 for NULL.
29461
29462 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29463
29464 [BZ #21971]
29465 * locale/iso-639.def: add Morisyen.
29466
29467 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29468
29469 [BZ #21930]
29470 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29471 (iszero): New C++ implementation that does not use
29472 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29473 signaling nans are enabled, since __builtin_types_compatible_p
29474 is a C-only feature.
29475 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29476 defined, include ieee754_float128.h for access to the union and
29477 member ieee854_float128.ieee.
29478 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29479 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29480 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29481 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29482 options of test-math-zero on powerpc64le.
29483
29484 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29485
29486 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29487 Change double to float.
29488
29489 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29490
29491 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29492 unconditional.
29493 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29494 conditional code; define contents only for [LIBM_SVID_COMPAT].
29495
29496 2017-08-28 Florian Weimer <fweimer@redhat.com>
29497
29498 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29499 (abi-lp64_be-options): Remove.
29500 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29501 (abi-hard-options): Likewise.
29502 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29503 (abi-o32_hard-options, abi-o32_soft_2008-options)
29504 (abi-o32_hard_2008-options, abi-n32_soft-options)
29505 (abi-n32_hard-options, abi-n32_soft_2008-options)
29506 (abi-n32_hard_2008-options, abi-n64_soft-options)
29507 (abi-n64_hard-options, abi-n64_soft_2008-options)
29508 (abi-n64_hard_2008-options): Likewise.
29509 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29510 (abi-64-v1-options, abi-64-v2-options): Likewise.
29511 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29512 (abi-64-options): Likewise.
29513 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29514 (abi-64-options): Likewise.
29515 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29516 (abi-64-options): Likewise.
29517 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29518 (abi-64-options, abi-x32-options): Likewise.
29519
29520 2017-08-28 Florian Weimer <fweimer@redhat.com>
29521
29522 Store supported list of SYS_* system calls in the source tree.
29523 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29524 (bits/syscall.h): Generate from list file.
29525 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29526 [$(subdir) = misc] (tests): Add tst-syscall-list.
29527 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29528 [$(subdir) = misc] (tst-syscall-list-macros.list)
29529 [$(subdir) = misc] (tst-syscall-list-nr.list)
29530 (tst-syscall-list-sys.list): Helper targets for new
29531 tst-syscall-list test.
29532 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29533 tst-syscall-list.sh.
29534 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29535 target. Do not include bits/syscall.d.
29536 [$(subdir) = misc] (generated): Do not update.
29537 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29538 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29539 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29540 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29541
29542 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29543
29544 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29545 (tst-cxa_atexit, tst-on_exit): Likewise.
29546 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29547 tst-cxa_atexit, and tst-on_exit.
29548 * stdlib/tst-atexit-common.c: New file.
29549 * stdlib/tst-atexit.c: New file.
29550 * stdlib/tst-at_quick_exit.c: New file.
29551 * stdlib/tst-cxa_atexit.c: New file.
29552 * stdlib/tst-on_exit.c: New file.
29553
29554 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29555
29556 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29557 * mach/stack_chk_fail_local.c: New file.
29558 * hurd/stack_chk_fail_local.c: New file.
29559 * mach/Machrules ($(interface-library)-routines): Add
29560 stack_chk_fail_local.
29561 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29562 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29563 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29564 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29565 * hurd/Makefile (CFLAGS-hurdstartup.o,
29566 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29567
29568 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29569
29570 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29571 (index_cpu_*, index_arch_*): Removed.
29572
29573 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29574
29575 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29576 Use uint64_t instead of unsigned long.
29577
29578 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29579
29580 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29581 [__HAVE_DISTINCT_FLOAT128].
29582
29583 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29584 of <bits/math-finite.h>.
29585 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29586 inclusion of <bits/math-finite.h>.
29587 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29588 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29589 __NO_LONG_DOUBLE_MATH].
29590 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29591 (__MATH_REDIRCALL_2): Likewise.
29592 (__MATH_REDIRCALL_INTERNAL): Likewise.
29593 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29594 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29595 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29596
29597 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29598 Remove file.
29599 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29600 Likewise.
29601 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29602 Likewise.
29603 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29604 Likewise.
29605 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29606 Likewise.
29607 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29608 Likewise.
29609 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29610 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29611 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29612 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29614 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29615 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29616 w_sqrtf_compat-ppc32.
29617
29618 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29619
29620 * math/math.h [defined __cplusplus] (issignaling): In the long
29621 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29622 is not defined. Call __issignaling, otherwise.
29623
29624 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29625
29626 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29627 syscall definitions and replace __builtin_expect with __glibc_likely.
29628 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29629 syscall.
29630 (SYSCALL_CANCELLABLE): Removedefinition
29631 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29632 definition.
29633 (PSEUDO_END): Likewise.
29634 [IS_IN (libpthread)] (CENABLE): Likewise.
29635 [IS_IN (libpthread)] (CDISABLE): Likewise.
29636 [IS_IN (libc)] (CENABLE): Likewise.
29637 [IS_IN (libc)] (CENABLE): Likewise.
29638 [IS_IN (librt)] (CDISABLE): Likewise.
29639 [IS_IN (librt)] (CDISABLE): Likewise.
29640 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29641 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29642 definition.
29643 (PSEUDO_END): Likewise.
29644 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29645 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29646 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29647 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29648 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29649 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29650 (CENABLE): Likewise.
29651 (CDISABLE): Likewise.
29652 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29653 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29654 defintion.
29655 (PSEUDO_END): Likewise.
29656 [IS_IN (libpthread)] (CENABLE): Likewise.
29657 [IS_IN (libpthread)] (CDISABLE): Likewise.
29658 [IS_IN (libc)] (CENABLE): Likewise.
29659 [IS_IN (libc)] (CENABLE): Likewise.
29660 [IS_IN (librt)] (CDISABLE): Likewise.
29661 [IS_IN (librt)] (CDISABLE): Likewise.
29662 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29663 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29664 definition.
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/i386/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/ia64/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/m68k/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/microblaze/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/mips/mips64/sysdep-cancel.h (PSEUDO):
29714 Remove 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 (SINGLE_THREAD_P): Likewise.
29723 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29724 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 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29733 * sysdeps/unix/sysv/linux/nios2/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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29744 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29745 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29746 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29747 definition.
29748 (PSEUDO_END): Likewise.
29749 [IS_IN (libpthread)] (CENABLE): Likewise.
29750 [IS_IN (libpthread)] (CDISABLE): Likewise.
29751 [IS_IN (libc)] (CENABLE): Likewise.
29752 [IS_IN (libc)] (CENABLE): Likewise.
29753 [IS_IN (librt)] (CDISABLE): Likewise.
29754 [IS_IN (librt)] (CDISABLE): Likewise.
29755 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29756 * sysdeps/unix/sysv/linux/s390/s390-64/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/sh/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/sparc/sparc32/sysdep-cancel.h: Remove file.
29777 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29778 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29779 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29780 definition.
29781 (PSEUDO_END): Likewise.
29782 [IS_IN (libpthread)] (CENABLE): Likewise.
29783 [IS_IN (libpthread)] (CDISABLE): Likewise.
29784 [IS_IN (libc)] (CENABLE): Likewise.
29785 [IS_IN (libc)] (CENABLE): Likewise.
29786 [IS_IN (librt)] (CDISABLE): Likewise.
29787 [IS_IN (librt)] (CDISABLE): Likewise.
29788 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29789 * sysdeps/unix/sysv/linux/x86_64/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
29800 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29801
29802 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29803
29804 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29805
29806 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29807
29808 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29809
29810 [BZ #21982]
29811 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29812 middle and outer with size_t instead of int. Repleace %d and
29813 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29814 "MAX (outer, nchars - 64)" to support unsigned outer and
29815 nchars. Also exit loop when outer == 0.
29816
29817 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29818
29819 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29820 * include/signal.h (__sigsuspend_nocancel): Likewise.
29821 * include/time.h (__nanosleep_nocancel): Likewise.
29822 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29823 * login/utmp_file.c: Include non cancellable syscall header.
29824 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29825 prototype.
29826
29827 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29828
29829 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29830 .byte sequences with AVX512F instructions.
29831 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29832 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29833 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29834 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29835 Likewise.
29836 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29837 Likewise.
29838
29839 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29840 Steve Ellcey <sellcey@cavium.com>
29841
29842 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29843 Use PTR_REG macro in cmp instruction.
29844
29845 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29846
29847 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29848 Change the return type of the ifunc resolver to match the return
29849 type of the target function.
29850
29851 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29852
29853 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29854 (preadv64): Likewise.
29855 (pwrite64(: Likewise.
29856 (pwritev64): Likewise.
29857
29858 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29859 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29860 (LOAD_ARGS_0): Likewise.
29861 (LOAD_ARGS_1): Likewise.
29862 (LOAD_ARGS_2): Likewise.
29863 (LOAD_ARGS_3): Likewise.
29864 (LOAD_ARGS_4): Likewise.
29865 (LOAD_ARGS_5): Likewise.
29866 (LOAD_ARGS_6): Likewise.
29867 (LOAD_REGS_0): Likewise.
29868 (LOAD_REGS_1): Likewise.
29869 (LOAD_REGS_2): Likewise.
29870 (LOAD_REGS_3): Likewise.
29871 (LOAD_REGS_4): Likewise.
29872 (LOAD_REGS_5): Likewise.
29873 (LOAD_REGS_6): Likewise.
29874 (ASM_ARGS_0): Likewise.
29875 (ASM_ARGS_1): Likewise.
29876 (ASM_ARGS_2): Likewise.
29877 (ASM_ARGS_3): Likewise.
29878 (ASM_ARGS_4): Likewise.
29879 (ASM_ARGS_5): Likewise.
29880 (ASM_ARGS_6): Likewise.
29881 (LOAD_ARGS_TYPES_1): Likewise.
29882 (LOAD_ARGS_TYPES_2): Likewise.
29883 (LOAD_ARGS_TYPES_3): Likewise.
29884 (LOAD_ARGS_TYPES_4): Likewise.
29885 (LOAD_ARGS_TYPES_5): Likewise.
29886 (LOAD_ARGS_TYPES_6): Likewise.
29887 (LOAD_REGS_TYPES_1): Likewise.
29888 (LOAD_REGS_TYPES_2): Likewise.
29889 (LOAD_REGS_TYPES_3): Likewise.
29890 (LOAD_REGS_TYPES_4): Likewise.
29891 (LOAD_REGS_TYPES_5): Likewise.
29892 (LOAD_REGS_TYPES_6): Likewise.
29893 (TYPEFY): New define.
29894 (ARGIFY): Likewise.
29895 (internal_syscall0): Likewise.
29896 (internal_syscall1): Likewise.
29897 (internal_syscall2): Likewise.
29898 (internal_syscall3): Likewise.
29899 (internal_syscall4): Likewise.
29900 (internal_syscall5): Likewise.
29901 (internal_syscall6): Likewise.
29902 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29903 (INTERNAL_SYSCALL_NCS): Remove define.
29904 (internal_syscall1): Add define.
29905
29906 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29907
29908 * math/w_remainder_compat.c: Remove duplicate inclusion of
29909 math-svid-compat.h.
29910 * math/w_remainderf_compat.c: Likewise.
29911 * math/w_remainderl_compat.c: Likewise.
29912
29913 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29914
29915 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29916
29917 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29918
29919 [BZ #21684]
29920 * math/tgmath.h (__floating_type): Simplify definitions.
29921 (__real_integer_type): New macro.
29922 (__complex_integer_type): Likewise.
29923 (__expr_is_real): Likewise.
29924 (__tgmath_real_type_sub): Update comment to describe handling of
29925 complex types.
29926 (__tgmath_complex_type_sub): New macro.
29927 (__tgmath_complex_type): Likewise.
29928 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29929 (__TGMATH_CF128): Use __expr_is_real.
29930 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29931 __expr_is_real.
29932 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29933 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29934 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29935 integer types.
29936
29937 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29938
29939 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29940 macro.
29941 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29942 alias.
29943 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29944 Likewise.
29945
29946 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29947 nanosleep_not_cancel with __nanosleep_nocancel.
29948 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29949 (__nanosleep_nocancel): New macro.
29950 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29951 function.
29952 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29953 macro.
29954 (__nanosleep_nocancel): New prototype.
29955
29956 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29957 pause_not_cancel with __pause_nocancel.
29958 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29959 (__pause_nocancel): New macro.
29960 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29961 macro.
29962 (__pause_nocancel): New prototype.
29963 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29964
29965 2017-08-22 Martin Sebor <msebor@redhat.com>
29966
29967 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29968 to return a pointer to the same type as the target function.
29969
29970 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29971
29972 [BZ #18822]
29973 [BZ #21986]
29974 * include/printf.h (__printf_fphex): Add attribute_hidden.
29975 (__guess_grouping): New prototype.
29976 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29977 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29978 libc_hidden_proto and libc_hidden_def.
29979 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29980 (__vstrfmon_l): Remove the third argument passed to
29981 __guess_grouping.
29982
29983 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29984
29985 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29986 definition for issignaling that does not rely on __MATH_TG,
29987 since __MATH_TG uses __builtin_types_compatible_p, which is only
29988 available in C mode.
29989 (CFLAGS-test-math-issignaling.cc): New variable.
29990 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29991 * math/test-math-issignaling.cc: New test for C++ implementation
29992 of type-generic issignaling.
29993 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29994 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29995 options of test-math-issignaling on powerpc64le.
29996
29997 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29998
29999 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30000 building libc.a.
30001 (hidden_proto): Likewise.
30002 (hidden_tls_proto): Likewise.
30003 (__hidden_proto): Likewise.
30004
30005 2017-08-22 Florian Weimer <fweimer@redhat.com>
30006
30007 math: Statically link tests of internal functionality.
30008 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30009 atest-exp2.
30010 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30011 (gmp-objs): Remove assignment.
30012 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30013
30014 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30015
30016 [BZ #21987]
30017 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30018 and copy to ...
30019 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30020 ... here.
30021 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30022 ... and here.
30023
30024 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30025 variable definitions above inclusion of ../Rules.
30026
30027 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30028
30029 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30030 case calling __builtin_unreachable.
30031
30032 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30033
30034 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30035 __waitpid_nocancel.
30036 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30037 (__waitpid_nocancel): New macro.
30038 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30039 macro.
30040 (__waitpid_nocancel): Replace macro with a function.
30041 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30042 function.
30043
30044 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30045 __fcntl_nocancel.
30046 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30047 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30048
30049 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30050 __writev_nocancel_nostatus.
30051 (write_call_graph): Likewise.
30052 (write_bb_counts): Likewise.
30053 * resolv/herror.c (herror): Likewise.
30054 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30055 macro.
30056 (__writev_nocancel_nostatus): New macro.
30057 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30058 Remove macro.
30059 (__writev_nocancel_nostatus): New function.
30060
30061 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30062
30063 Revert:
30064 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30065
30066 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30067 building libc.a.
30068 (hidden_proto): Likewise.
30069 (hidden_tls_proto): Likewise.
30070 (__hidden_proto): Likewise.
30071
30072 [BZ #21973]
30073 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30074 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30075 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30076 Likewise.
30077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30078 Likewise.
30079 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30080 Likewise.
30081 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30082 Likewise.
30083 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30084 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30085 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30086 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30087 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30088 GLIBC_2.0 sqrtl symbol.
30089
30090 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30091 [__USE_MISC] (_LIB_VERSION): Likewise.
30092 [__USE_MISC] (struct exception): Likewise.
30093 [__USE_MISC] (matherr): Likewise.
30094 [__USE_MISC] (DOMAIN): Likewise.
30095 [__USE_MISC] (SING): Likewise.
30096 [__USE_MISC] (OVERFLOW): Likewise.
30097 [__USE_MISC] (UNDERFLOW): Likewise.
30098 [__USE_MISC] (TLOSS): Likewise.
30099 [__USE_MISC] (PLOSS): Likewise.
30100 [__USE_MISC] (HUGE): Likewise.
30101 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30102 * math/math-svid-compat.h: New file.
30103 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30104 and matherrl.
30105 * include/math.h [!_ISOMAC] (__matherr): Remove.
30106 * manual/arith.texi (FP Exceptions): Do not document matherr.
30107 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30108 (tests-internal): New variable.
30109 (install-lib): Do not add libieee.a.
30110 (non-lib.a): Likewise.
30111 (extra-objs): Do not add libieee.a and ieee-math.o.
30112 (CPPFLAGS-s_lib_version.c): Remove variable.
30113 ($(objpfx)libieee.a): Remove rule.
30114 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30115 * math/ieee-math.c: Remove.
30116 * math/libm-test-support.c (matherr): Remove.
30117 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30118 and license notices. Include <math-svid-compat.h> and
30119 <shlib-compat.h>.
30120 (matherr): Undefine as macro. Use compat_symbol_reference.
30121 (_LIB_VERSION): Likewise.
30122 * math/test-matherr-2.c: New file.
30123 * math/test-matherr-3.c: Likewise.
30124 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30125 declaration.
30126 (__kernel_standard_f): Likewise.
30127 (__kernel_standard_l): Likewise.
30128 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30129 <math_private.h>. Include <math-svid-compat.h>.
30130 (_LIB_VERSION): Undefine as macro.
30131 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30132 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30133 [LIBM_SVID_COMPAT], use compat_symbol.
30134 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30135 <math_private.h>. Include <math-svid-compat.h>.
30136 (matherr): Undefine as macro.
30137 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30138 compat_symbol.
30139 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30140 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30141 compat_symbol_reference.
30142 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30143 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30144 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30145 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30146 (MATHERR_D): Remove declaration.
30147 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30148 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30149 [LIBM_BUILD] (pmatherrf): Likewise.
30150 [LIBM_BUILD] (pmatherr): Likewise.
30151 [LIBM_BUILD] (pmatherrl): Likewise.
30152 (DOMAIN): Likewise.
30153 (SING): Likewise.
30154 (OVERFLOW): Likewise.
30155 (UNDERFLOW): Likewise.
30156 (TLOSS): Likewise.
30157 (PLOSS): Likewise.
30158 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30159 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30160 compat_symbol.
30161 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30162 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30163 compat_symbol.
30164 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30165 * math/w_acos_compat.c: Likewise.
30166 * math/w_acosf_compat.c: Likewise.
30167 * math/w_acosh_compat.c: Likewise.
30168 * math/w_acoshf_compat.c: Likewise.
30169 * math/w_acoshl_compat.c: Likewise.
30170 * math/w_acosl_compat.c: Likewise.
30171 * math/w_asin_compat.c: Likewise.
30172 * math/w_asinf_compat.c: Likewise.
30173 * math/w_asinl_compat.c: Likewise.
30174 * math/w_atan2_compat.c: Likewise.
30175 * math/w_atan2f_compat.c: Likewise.
30176 * math/w_atan2l_compat.c: Likewise.
30177 * math/w_atanh_compat.c: Likewise.
30178 * math/w_atanhf_compat.c: Likewise.
30179 * math/w_atanhl_compat.c: Likewise.
30180 * math/w_cosh_compat.c: Likewise.
30181 * math/w_coshf_compat.c: Likewise.
30182 * math/w_coshl_compat.c: Likewise.
30183 * math/w_exp10_compat.c: Likewise.
30184 * math/w_exp10f_compat.c: Likewise.
30185 * math/w_exp10l_compat.c: Likewise.
30186 * math/w_exp2_compat.c: Likewise.
30187 * math/w_exp2f_compat.c: Likewise.
30188 * math/w_exp2l_compat.c: Likewise.
30189 * math/w_fmod_compat.c: Likewise.
30190 * math/w_fmodf_compat.c: Likewise.
30191 * math/w_fmodl_compat.c: Likewise.
30192 * math/w_hypot_compat.c: Likewise.
30193 * math/w_hypotf_compat.c: Likewise.
30194 * math/w_hypotl_compat.c: Likewise.
30195 * math/w_j0_compat.c: Likewise.
30196 * math/w_j0f_compat.c: Likewise.
30197 * math/w_j0l_compat.c: Likewise.
30198 * math/w_j1_compat.c: Likewise.
30199 * math/w_j1f_compat.c: Likewise.
30200 * math/w_j1l_compat.c: Likewise.
30201 * math/w_jn_compat.c: Likewise.
30202 * math/w_jnf_compat.c: Likewise.
30203 * math/w_jnl_compat.c: Likewise.
30204 * math/w_lgamma_main.c: Likewise.
30205 * math/w_lgamma_r_compat.c: Likewise.
30206 * math/w_lgammaf_main.c: Likewise.
30207 * math/w_lgammaf_r_compat.c: Likewise.
30208 * math/w_lgammal_main.c: Likewise.
30209 * math/w_lgammal_r_compat.c: Likewise.
30210 * math/w_log10_compat.c: Likewise.
30211 * math/w_log10f_compat.c: Likewise.
30212 * math/w_log10l_compat.c: Likewise.
30213 * math/w_log2_compat.c: Likewise.
30214 * math/w_log2f_compat.c: Likewise.
30215 * math/w_log2l_compat.c: Likewise.
30216 * math/w_log_compat.c: Likewise.
30217 * math/w_logf_compat.c: Likewise.
30218 * math/w_logl_compat.c: Likewise.
30219 * math/w_pow_compat.c: Likewise.
30220 * math/w_powf_compat.c: Likewise.
30221 * math/w_powl_compat.c: Likewise.
30222 * math/w_remainder_compat.c: Likewise.
30223 * math/w_remainderf_compat.c: Likewise.
30224 * math/w_remainderl_compat.c: Likewise.
30225 * math/w_scalb_compat.c: Likewise.
30226 * math/w_scalbf_compat.c: Likewise.
30227 * math/w_scalbl_compat.c: Likewise.
30228 * math/w_sinh_compat.c: Likewise.
30229 * math/w_sinhf_compat.c: Likewise.
30230 * math/w_sinhl_compat.c: Likewise.
30231 * math/w_sqrt_compat.c: Likewise.
30232 * math/w_sqrtf_compat.c: Likewise.
30233 * math/w_sqrtl_compat.c: Likewise.
30234 * math/w_tgamma_compat.c: Likewise.
30235 * math/w_tgammaf_compat.c: Likewise.
30236 * math/w_tgammal_compat.c: Likewise.
30237 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30238 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30239 * sysdeps/ieee754/k_standard.c: Likewise.
30240 * sysdeps/ieee754/k_standardf.c: Likewise.
30241 * sysdeps/ieee754/k_standardl.c: Likewise.
30242 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30243 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30244 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30245 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30246 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30247 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30248 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30249 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30250 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30252 Likewise.
30253 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30254 Likewise.
30255 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30256 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30257 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30258 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30259
30260 2017-08-21 Florian Weimer <fweimer@redhat.com>
30261
30262 [BZ #21864]
30263 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30264 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30265 Move before inclusion of ../Rules.
30266
30267 2017-08-21 Florian Weimer <fweimer@redhat.com>
30268
30269 [BZ #21972]
30270 * assert/assert.h (assert): Use static_cast (bool) for C++.
30271 Use the ternary operator in the warning branch for GNU C.
30272 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30273 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30274 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30275 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30276 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30277
30278 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30279
30280 [BZ #18822]
30281 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30282 (__syscall_clock_gettime): Add attribute_hidden.
30283 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30284 (__start_context): Likewise.
30285
30286 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30287
30288 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30289 building libc.a.
30290 (hidden_proto): Likewise.
30291 (hidden_tls_proto): Likewise.
30292 (__hidden_proto): Likewise.
30293
30294 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30295
30296 * include/libc-symbols.h (attribute_hidden): Enable hidden
30297 visibility in libc.a compiled with PIE.
30298
30299 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30300
30301 [BZ #18822]
30302 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30303 Add attribute_hidden.
30304
30305 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30306
30307 [BZ #21864]
30308 * Makerules (all-nonlib): Add $(others-extras).
30309 * catgets/Makefile (others-extras): New.
30310 * elf/Makefile (others-extras): Likewise.
30311 * nss/Makefile (others-extras): Likewise.
30312
30313 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30314
30315 [BZ #18822]
30316 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30317 * elf/dl-open.c: Include <libc-internal.h>.
30318 (__libc_multiple_libcs): Removed.
30319 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30320 <hp-timing.h>.
30321 * include/libc-internal.h (__libc_multiple_libcs): New.
30322 * misc/sbrk.c: Include <libc-internal.h>.
30323 (__libc_multiple_libcs): Removed.
30324
30325 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30326
30327 [BZ #18822]
30328 * grp/initgroups.c (__nss_group_database): Removed.
30329 (__nss_initgroups_database): Likewise.
30330 * nscd/gai.c (__nss_hosts_database): Likewise.
30331 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30332 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30333 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30334 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30335 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30336 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30337 attribute_hidden.
30338 * nss/nsswitch.c (__nss_database_custom): Define only if
30339 USE_NSCD is defined.
30340 (__nss_configure_lookup): Use __nss_database_custom only if
30341 USE_NSCD is defined.
30342 * nss/nsswitch.h (__nss_database_custom): Declare only if
30343 USE_NSCD is defined. Add attribute_hidden.
30344 (__nss_setent): Add attribute_hidden.
30345 (__nss_endent): Likewise.
30346 (__nss_getent_r): Likewise.
30347 (__nss_getent): Likewise.
30348 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30349
30350 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30351
30352 [BZ #18822]
30353 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30354 libc_hidden_proto and libc_hidden_def.
30355
30356 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30357
30358 [BZ #18822]
30359 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30360 Add libc_hidden_proto.
30361 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30362 Add libc_hidden_def.
30363
30364 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30365
30366 [BZ #21974]
30367 * gmon/Makefile (routines): Remove bb_init_func and
30368 bb_exit_func.
30369 (elide-routines.os): Removed.
30370 * gmon/bb_exit_func.c: Likewise.
30371 * gmon/bb_init_func.c: Likewise.
30372 * include/sys/gmon.h (__bb): Likewise.
30373 (__bb_init_func): Likewise.
30374 (__bb_exit_func): Likewise.
30375 * sysdeps/alpha/bb_init_func.S: Likewise.
30376
30377 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30378
30379 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30380 * include/setjmp.h (____longjmp_chk): Here. Add
30381 attribute_hidden.
30382
30383 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30384
30385 [BZ #18822]
30386 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30387 attribute_hidden.
30388 (__strspn_sse2): Likewise.
30389
30390 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30391
30392 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30393 (close_not_cancel_no_status): Likewise.
30394 (__close_nocancel): New macro.
30395 (__close_nocancel_nostatus): Likewise.
30396 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30397 macro.
30398 (close_not_cancel): Likewise.
30399 (close_not_cancel_no_status): Likewise.
30400 (__close_nocancel): New prototype.
30401 (__close_nocancel_nostatus): New function.
30402 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30403 * catgets/open_catalog.c (__open_catalog): Replace
30404 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30405 * gmon/gmon.c (write_gmon): Likewise.
30406 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30407 * intl/loadmsgcat.c (close): Likewise.
30408 * io/ftw.c (open_dir_stream): Likewise.
30409 (ftw_startup): Likewise.
30410 * libio/fileops.c (_IO_file_open): Likewise.
30411 (_IO_file_close_mmap): Likewise.
30412 (_IO_file_close): Likewise.
30413 * libio/iopopen.c (_IO_dup2): Likewise.
30414 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30415 * locale/loadlocale.c (_nl_load_locale): Likewise.
30416 * login/utmp_file.c (pututline_file): Likewise.
30417 (endutent_file): Likewise.
30418 * misc/daemon.c (daemon): Likewise.
30419 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30420 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30421 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30422 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30423 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30424 * nscd/nscd_helper.c (open_socket): Likewise.
30425 (__nscd_open_socket): Likewise.
30426 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30427 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30428 (__nscd_innetgr): Likewise.
30429 * nss/nss_db/db-open.c (internal_setent): Likewise.
30430 * resolv/res-close.c (__res_iclose): Likewise.
30431 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30432 * sysdeps/posix/closedir.c (__closedir): Likewise.
30433 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30434 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30435 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30436 (opendir_tail): Likewise.
30437 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30438 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30439 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30440 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30441 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30442 (gethostid): Likewise.
30443 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30444 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30445 Likewise.
30446 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30447 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30448 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30449 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30450 Likewise.
30451 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30452 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30453 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30454 Likewise.
30455 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30456 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30457 Likewise.
30458 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30459 Likewise.
30460 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30461 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30462 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30463 __close_nocancel.
30464
30465 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30466 (openat_not_cancel_3): Likewise.
30467 (openat64_not_cancel_3): Likewise).
30468 (openat_not_cancel_3): Likewise).
30469 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30470 macro.
30471 (openat_not_cancel_3): Likewise.
30472 (openat64_not_cancel): Likewise.
30473 (openat64_not_cancel_3): Likewise.
30474 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30475 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30476 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30477 __open{64}_nocancel.
30478 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30479 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30480 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30481
30482 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30483
30484 [BZ #18822]
30485 * include/argz.h (__argz_create_sep): New function prototype.
30486 (__argz_append): Likewise.
30487 (__argz_add): Likewise.
30488 (__argz_add_sep): Likewise.
30489 (__argz_delete): Likewise.
30490 (__argz_insert): Likewise.
30491 (__argz_replace): Likewise.
30492 * string/argz.h (__argz_create_sep): Removed.
30493 (__argz_append): Likewise.
30494 (__argz_add): Likewise.
30495 (__argz_add_sep): Likewise.
30496 (__argz_delete): Likewise.
30497 (__argz_insert): Likewise.
30498 (__argz_replace): Likewise.
30499
30500 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30501
30502 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30503 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30504 (GNU_PROPERTY_STACK_SIZE): Likewie.
30505 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30506 (GNU_PROPERTY_LOPROC): Likewise.
30507 (GNU_PROPERTY_HIPROC): Likewise.
30508 (GNU_PROPERTY_LOUSER): Likewise.
30509 (GNU_PROPERTY_HIUSER): Likewise.
30510 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30511 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30512 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30513 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30514 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30515 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30516 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30517 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30518 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30519 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30520 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30521 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30522 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30523 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30524 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30525 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30526 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30527 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30528 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30529 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30530 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30531 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30532 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30533
30534 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30535
30536 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30537 in C++ mode.
30538
30539 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30540
30541 [BZ #21930]
30542 * math/math.h (isinf): Check if in C or C++ mode before using
30543 __builtin_types_compatible_p, since this is a C mode feature.
30544
30545 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30546
30547 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30548 (__write_nocancel): New macro.
30549 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30550 Rewrite as a function prototype.
30551 (write_not_cancel): Remove macro.
30552 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30553 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30554 (write_gmon): Likewise.
30555 * libio/fileops.c (_IO_new_file_write): Likewise.
30556 * login/utmp_file.c (pututline_file): Likewise.
30557 (updwtmp_file): Likewise.
30558 * stdio-common/psiginfo.c (psiginfo): Likewise.
30559 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30560 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30561 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30562 Likewise.
30563 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30564 Likewise.
30565
30566 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30567 (__read_nocancel): New macro.
30568 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30569 __read_nocancel.
30570 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30571 macro.
30572 (__read_nocancel): New prototype.
30573 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30574 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30575 with __read_nocancel.
30576 * intl/loadmsgcat.c (read): Likewise.
30577 * libio/fileops.c (_IO_file_read): Likewise.
30578 * locale/loadlocale.c (_nl_load_locale): Likewise.
30579 * login/utmp_file.c (getutent_r_file): Likewise.
30580 (internal_getut_r): Likewise.
30581 (getutline_r_file): Likewise.
30582 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30583 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30584 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30585 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30586 Likewise.
30587 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30588 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30589 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30590 Likewise.
30591 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30592 Likewise.
30593 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30594 Likewise.
30595 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30596 Likewise.
30597 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30598
30599 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30600
30601 [BZ #21966]
30602 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30603 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30604 usable.
30605
30606 2017-08-17 DJ Delorie <dj@redhat.com>
30607
30608 * bug17079.c: Update to new test harness.
30609 * test-digits-dots.c: Likewise.
30610 * test-netdb.c: Likewise.
30611 * tst-field.c: Likewise.
30612 * tst-nss-getpwent.c: Likewise.
30613 * tst-nss-static.c: Likewise.
30614 * tst-nss-test1.c: Likewise.
30615 * tst-nss-test2.c: Likewise.
30616 * tst-nss-test3.c: Likewise.
30617 * tst-nss-test4.c: Likewise.
30618 * tst-nss-test5.c: Likewise.
30619
30620 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30621
30622 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30623 (open_not_cancel_2): Likewise.
30624 (open_nocancel): New macro.
30625 (open64_nocancel): Likewise.
30626 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30627 (open_not_cancel_2): Likewise.
30628 (__open_nocancel): New prototype.
30629 (__open64_nocancel): Likewise.
30630 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30631 __open_nocancel.
30632 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30633 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30634 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30635 with __open_nocancel.
30636 * csu/check_fds.c (check_one_fd): Likewise.
30637 * gmon/gmon.c (write_gmon): Likewise.
30638 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30639 * intl/loadmsgcat.c (open): Likewise.
30640 * libio/fileops.c (_IO_file_open): Likewise.
30641 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30642 * locale/loadlocale.c (_nl_load_locale): Likewise.
30643 * login/utmp_file.c (setutent_file): Likewise.
30644 * misc/daemon.c (daemon): Likewise.
30645 * nss/nss_db/db-open.c (internal_setent): Likewise.
30646 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30647 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30648 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30649 (__opendir): Likewise.
30650 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30651 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30652 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30653 (gethostid): Likewise.
30654 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30655 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30656 Likewise.
30657 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30658 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30659 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30660 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30661 Likewise.
30662 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30663 Likewise.
30664 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30665 Likewise.
30666 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30667 Likewise.
30668 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30669 Likewise.
30670 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30671 Likewise.
30672 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30673 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30674
30675 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30676
30677 * benchtests/bench-skeleton.c (main): Add support for
30678 latency benchmarking.
30679 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30680
30681 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30682
30683 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30684 the startup object.
30685
30686 2017-08-17 Florian Weimer <fweimer@redhat.com>
30687
30688 * include/sys/socket.h (__opensock): Remove internal_function.
30689 * socket/opensock.c (__opensock): Likewise.
30690 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30691
30692 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30693
30694 [BZ #21944]
30695 * signal/bits/types/__sigval_t.h: New file.
30696 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30697 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30698 and define sigval_t using __sigval_t.
30699 * include/bits/types/__sigval_t.h: New file.
30700 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30701 instead of <bits/types/__sigval_t.h>.
30702 (struct sigevent): Use __sigval_t instead of sigval_t.
30703 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30704 instead of <bits/types/__sigval_t.h>.
30705 (siginfo_t): Use __sigval_t instead of sigval_t.
30706 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30707 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30708 (struct sigevent): Use __sigval_t instead of sigval_t.
30709 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30710 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30711 (siginfo_t): Use __sigval_t instead of sigval_t.
30712 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30713
30714 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30715
30716 * NEWS: Remove "[Add new features here]" for 2.27.
30717
30718 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30719
30720 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30721 libc.so.
30722
30723 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30724
30725 * NEWS: Mention x86-64 FMA optimization.
30726
30727 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30728
30729 [BZ #21912]
30730 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30731 Add e_expf-fma.
30732 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30733 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30734 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30735
30736 2017-08-16 Andreas Schwab <schwab@suse.de>
30737
30738 [BZ #16750]
30739 CVE-2009-5064
30740 * elf/ldd.bash.in: Never run file directly.
30741
30742 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30743
30744 [BZ #21955]
30745 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30746 (L(SP_INF_0)): Likewise.
30747
30748 2017-08-15 Florian Weimer <fweimer@redhat.com>
30749
30750 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30751 run-built-tests.
30752
30753 2017-08-15 Florian Weimer <fweimer@redhat.com>
30754
30755 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30756 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30757 BROKEN_THREAD_SIGNALS code.
30758 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30759 request_list): Remove caller_pid member used for
30760 BROKEN_THREAD_SIGNALS.
30761 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30762 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30763 Remove BROKEN_THREAD_SIGNALS support.
30764 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30765 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30766
30767 2017-08-15 Florian Weimer <fweimer@redhat.com>
30768
30769 * gmon/Makefile (tests): Add tst-gmon.
30770 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30771 Set.
30772 (tests-special): Add tst-gmon-prof.out.
30773 (tst-gmon.out): Depend on clean-tst-gmon-data.
30774 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30775 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30776 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30777 startup object.
30778 * aclocal.m4 (GPROF): Set and substitute.
30779 * config.amke.in (GPROF): Set.
30780 * configure: Regenerate.
30781
30782 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30783
30784 * elf/elf.h A (NT_PPC_TAR): New macro.
30785 (NT_PPC_PPR): Likewise.
30786 (NT_PPC_DSCR): Likewise.
30787 (NT_PPC_EBB): Likewise.
30788 (NT_PPC_PMU): Likewise.
30789 (NT_PPC_TM_CGPR): Likewise.
30790 (NT_PPC_TM_CFPR): Likewise.
30791 (NT_PPC_TM_CVMX): Likewise.
30792 (NT_PPC_TM_CVSX): Likewise.
30793 (NT_PPC_TM_SPR): Likewise.
30794 (NT_PPC_TM_CTAR): Likewise.
30795 (NT_PPC_TM_CPPR): Likewise.
30796 (NT_PPC_TM_CDSCR): Likewise.
30797
30798 2017-08-15 Florian Weimer <fweimer@redhat.com>
30799
30800 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30801 regparm (2) instead of internal_function.
30802 (_MCOUNT_DECL): Adjust.
30803
30804 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30805
30806 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30807 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30808
30809 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30810
30811 * conform/data/sys/wait.h-data (si_value): Do not expect for
30812 XPG42.
30813
30814 2017-08-14 Florian Weimer <fweimer@redhat.com>
30815
30816 [BZ #21962]
30817 NSS: Create stubs for accidentally exported lookup functions.
30818 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30819 Remove declaration.
30820 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30821 (ether_hostton): Call __nss_ethers_lookup2 instead.
30822 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30823 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30824 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30825 (setup): Call __nss_netgroup_lookup2 instead.
30826 * nss/Makefile (routines): Add compat-lookup.
30827 * nss/Versions (GLIBC_2.27): Add symbol version.
30828 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30829 (DB_COMPAT_FCT): Remove.
30830 * nss/compat-lookup.c: New file.
30831 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30832 from databases.def.
30833 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30834 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30835 (netname2user): Call __nss_publickey_lookup2 instead.
30836 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30837 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30838 instead.
30839
30840 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30841 Sergei Trofimovich <slyfox@inbox.ru>
30842
30843 [BZ #21908]
30844 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30845 Rename to MMAP2_PAGE_UNIT.
30846 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30847 __OFF_T_MATCHES_OFF64_T is not defined.
30848 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30849 uint64_t.
30850 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30851 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30852
30853 2017-08-14 Florian Weimer <fweimer@redhat.com>
30854
30855 i386: Do not set internal_function.
30856 * config.h.in (USE_REGPARMS, internal_function): Remove.
30857 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30858 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30859
30860 2017-08-14 Florian Weimer <fweimer@redhat.com>
30861
30862 * elf/dl-init.c (_dl_init): Remove internal_function.
30863 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30864 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30865
30866 2017-08-14 Florian Weimer <fweimer@redhat.com>
30867
30868 * elf/rtld.c (_dl_start): Remove internal_function.
30869 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30870 _dl_start.
30871
30872 2017-08-14 Florian Weimer <fweimer@redhat.com>
30873
30874 * elf/dl-fini.c (_dl_fini): Remove internal_function
30875 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30876
30877 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30878
30879 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30880 (bit_cpu_SHSTK): Likewise.
30881 (index_cpu_IBT): Likewise.
30882 (index_cpu_SHSTK): Likewise.
30883 (reg_IBT): Likewise.
30884 (reg_SHSTK): Likewise.
30885 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30886 Handle index_cpu_IBT and index_cpu_SHSTK.
30887
30888 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30889
30890 [BZ #19982]
30891 * po/fr.po: Fix spelling mistake.
30892
30893 2017-08-13 Florian Weimer <fweimer@redhat.com>
30894
30895 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30896 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30897 (_dl_catch_error, _dl_receive_error): Likewise.
30898 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30899 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30900 (_dl_deallocate_tls): Likewise.
30901 * include/dlfcn.h (_dl_addr): Likewise.
30902 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30903 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30904 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30905 Likewise.
30906
30907 2017-08-13 Florian Weimer <fweimer@redhat.com>
30908
30909 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30910 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30911 internal_function.
30912 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30913
30914 2017-08-13 Florian Weimer <fweimer@redhat.com>
30915
30916 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30917 internal_function.
30918 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30919 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30920 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30921 internal_function from _dl_make_stack_executable_hook member.
30922 (_dl_make_stack_executable): Remove internal_function.
30923 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30924 Likewise.
30925 * sysdeps/unix/sysv/linux/dl-execstack.c
30926 (_dl_make_stack_executable): Likewise.
30927
30928 2017-08-13 Florian Weimer <fweimer@redhat.com>
30929
30930 * sysdeps/unix/sysv/linux/netlinkaccess.h
30931 (__netlink_assert_response): Remove internal_function.
30932 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30933 (__netlink_assert_response): Likewise.
30934
30935 2017-08-13 Florian Weimer <fweimer@redhat.com>
30936
30937 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30938 internal_function.
30939 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30940
30941 2017-08-13 Florian Weimer <fweimer@redhat.com>
30942
30943 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30944 internal_function.
30945 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30946 * inet/netgroup.h (__internal_setnetgrent)
30947 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30948 * inet/getnetgrent_r.c (__internal_setnetgrent)
30949 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30950 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30951 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30952 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30953 * nss/nsswitch.h (db_lookup_function): Likewise.
30954
30955 2017-08-13 Florian Weimer <fweimer@redhat.com>
30956
30957 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30958 Remove internal_function.
30959 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30960 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30961 message argument on the stack.
30962 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30963 Likeweise.
30964
30965 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30966
30967 Adapt test case data to the changes in the thousands
30968 separators.
30969
30970 [BZ #20756]
30971 * localedata/tst-langinfo.sh: Adapt test case data.
30972 * stdlib/tst-strfmon_l.c: Likewise.
30973 * stdlib/tst-strtod4.c: Likewise.
30974 * stdlib/tst-strtod5i.c: Likewise.
30975
30976 2017-08-11 Florian Weimer <fweimer@redhat.com>
30977
30978 [BZ #21242]
30979 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30980 Suppress pedantic warning resulting from statement expression.
30981 (__ASSERT_FUNCTION): Add missing __extension__.
30982
30983 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30984
30985 * benchtests/bench-memmove-large.c: Print output in JSON
30986 format.
30987 * benchtests/bench-memmove.c: Likewise.
30988
30989 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30990 * benchtests/bench-memchr.c (do_one_test): Likewise.
30991 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30992 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30993 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30994 * benchtests/bench-memmove.c (do_one_test): Likewise.
30995 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30996 * benchtests/bench-memset.c (do_one_test): Likewise.
30997 * benchtests/bench-string.h (test_init): Remove memsets.
30998
30999 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31000
31001 * manual/lang.texi
31002 (Computing the Width of an Integer Data Type): Rename section to
31003 "Width of an Integer Type". Remove inaccurate statement regarding
31004 lack of C language facilities for determining width of integer
31005 types, and reorder content to improve flow and context of
31006 discussion.
31007
31008 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31009
31010 * lang.texi (va_copy): Change standard from ISO to C99.
31011 (__va_copy): Add standard and header annotation.
31012 Update description for clarity of origins and current use.
31013
31014 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31015
31016 [BZ #21941]
31017 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31018 xssqrtqp requires operands to be in Vector Registers
31019 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31020 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31021 (__ieee754_sqrtf128): Likewise.
31022
31023 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31024
31025 * sysdeps/aarch64/memcmp.S (memcmp):
31026 Rewrite of optimized memcmp.
31027
31028 2017-08-10 Florian Weimer <fweimer@redhat.com>
31029
31030 Introduce ld.so exceptions.
31031 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31032 (_dl_exception_create, _dl_exception_create_format)
31033 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31034 (_dl_catch_exception): Declare.
31035 (_dl_catch_error): Update comment.
31036 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31037 errstring, malloced members with exception member.
31038 (_dl_out_of_memory): Remove.
31039 (fatal_error): New function, extracted from _dl_signal_error.
31040 (_dl_signal_exception, _dl_signal_cexception): New functions.
31041 (_dl_signal_error): Call _dl_exception_create to allocate an
31042 exception object.
31043 (_dl_catch_exception): New function, based on _dl_catch_error.
31044 (_dl_catch_error): Implement using _dl_catch_exception.
31045 * elf/dl-exception.c: New file.
31046 * elf/Makefile (dl-routines): Add dl-exception.
31047 (elide-routines.os): Likewise.
31048 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31049 _dl_exception_create_format, _dl_exception_free.
31050 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31051 _dl_signal_exception.
31052 * elf/dl-lookup.c (make_string): Remove.
31053 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31054 _dl_signal_cexception, _dl_exception_free.
31055 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31056 _dl_signal_exception.
31057 * elf/dl-sym.c (do_sym): Likewise.
31058 * elf/dl-version.c (make_string): Remove.
31059 (match_symbol): Use _dl_exception_create_format,
31060 _dl_signal_cexception, _dl_exception_free.
31061 (_dl_check_map_versions): Likewise.
31062 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31063 _dl_catch_exception.
31064 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31065 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31066 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31067 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31068 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31069 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31070 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31071 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31072 Likewise.
31073 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31075 (ld.so): Likewise.
31076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31077 (ld.so): Likewise.
31078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31079 Likewise.
31080 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31081 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31082 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31083 Likewise.
31084 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31085 Likewise.
31086 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31087
31088 2017-08-10 Florian Weimer <fweimer@redhat.com>
31089
31090 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31091 attribute_hidden, internal_function.
31092 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31093 internal_function.
31094
31095 2017-08-10 Florian Weimer <fweimer@redhat.com>
31096
31097 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31098 function which calls __builtin_unreachable.
31099
31100 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31101
31102 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31103 Indian monetary formatting
31104 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31105 test cases.
31106
31107 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31108
31109 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31110 Fix typo in comment.
31111
31112 [BZ #21928]
31113 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31114 PTRACE_SEIZE_DEVEL): Remove.
31115 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31116 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31117 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31118 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31119 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31120
31121 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31122
31123 * posix/bits/types.h (__qaddr_t): Remove.
31124
31125 [BZ #21457]
31126 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31127 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31128 __glibc_reserved1.
31129 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31130 (ucontext_t): Use __ctx with uc_flags.
31131 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31132 (__ctxt): Likewise.
31133 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31134 __glibc_reserved1.
31135 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31136 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31137 __glibc_reserved1.
31138 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31139 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31140 __glibc_reserved1.
31141 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31142 macro.
31143 (ucontext_t): Use __ctx with uc_flags.
31144 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31145 (ucontext_t): Use __ctx with uc_flags.
31146 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31147 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31148 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31149 (ucontext_t): Use __ctx with uc_flags.
31150 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31151 undefine further down.
31152 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31153 __glibc_reserved1.
31154 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31155 undefine further down.
31156 (ucontext_t): Use __ctx with uc_flags.
31157 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31158 undefine further down.
31159 (ucontext_t): Use __ctx with uc_flags.
31160 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31161 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31162 Rename uc_pad to __glibc_reserved1.
31163 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31164 undefine further down.
31165 (ucontext_t): Use __ctx with uc_flags.
31166 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31167 further down.
31168 (ucontext_t): Use __ctx with uc_flags.
31169 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31170 __ctx with uc_flags.
31171 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31172 (ucontext_t): Use __ctx with uc_flags.
31173 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31174 __ctx with uc_flags.
31175
31176 2017-08-09 Florian Weimer <fweimer@redhat.com>
31177
31178 [BZ #21932]
31179 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31180 before early return.
31181
31182 2017-08-09 Andreas Schwab <schwab@suse.de>
31183
31184 [BZ #21041]
31185 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31186 renamed alias.
31187
31188 [BZ #21041]
31189 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31190 tst-compat-forwarder.
31191 (modules-names): Add tst-compat-forwarder-mod.
31192 ($(objpfx)tst-compat-forwarder): Depend on
31193 $(objpfx)tst-compat-forwarder-mod.so.
31194 * nptl/tst-compat-forwarder.c: New file.
31195 * nptl/tst-compat-forwarder-mod.c: New file.
31196
31197 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31198
31199 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31200 comments.
31201
31202 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31203 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31204 memcpy_falkor.
31205 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31206 Bump.
31207 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31208 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31209 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31210 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31211 Add falkor.
31212 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31213 New macro.
31214
31215 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31216
31217 [BZ #759]
31218 * manual/setjmp.texi (getcontex): Document uc_stack value
31219 compatibility differences.
31220
31221 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31222
31223 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31224 (old_malloc_hook): Likewise.
31225 (old_memalign_hook): Likewise.
31226 (old_realloc_hook): Likewise.
31227 (struct hdr): Likewise.
31228 (flood): Likewise.
31229 (freehook): Likewise.
31230 (mallochook): Likewise.
31231 (memalignhook): Likewise.
31232 (reallochook): Likewise.
31233 (mprobe): Likewise.
31234 * malloc/mtrace.c (mallwatch): Likewise.
31235 (tr_old_free_hook): Likewise.
31236 (tr_old_malloc_hook): Likewise.
31237 (tr_old_realloc_hook): Likewise.
31238 (tr_old_memalign_hook): Likewise.
31239 (tr_where): Likewise.
31240 (lock_and_info): Likewise.
31241 (tr_freehook): Likewise.
31242 (tr_mallochook): Likewise.
31243 (tr_reallochook): Likewise.
31244 (tr_memalignhook): Likewise.
31245 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31246 * misc/mmap.c (__mmap): Likewise.
31247 * misc/mmap64.c (__mmap64): Likewise.
31248 * misc/mprotect.c (__mprotect): Likewise.
31249 * misc/msync.c (msync): Likewise.
31250 * misc/munmap.c (__munmap): Likewise.
31251 * posix/posix_madvise.c (posix_madvise): Likewise.
31252 * socket/send.c (__send): Likewise.
31253 * socket/sendto.c (__sendto): Likewise.
31254 * socket/setsockopt.c (__setsockopt): Likewise.
31255 * string/memcmp.c (__ptr_t): Remove macro.
31256 (MEMCMP): Use void * instead of ptr_t.
31257 * string/memrchr.c (__ptr_t): Remove macro.
31258 (__memrchr): Use void * instead of ptr_t.
31259 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31260 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31261 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31262 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31263 * sysdeps/mach/msync.c (msync): Likewise.
31264 * sysdeps/mach/munmap.c (__munmap): Likewise.
31265 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31266 Likewise.
31267 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31268 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31269 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31270 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31271 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31272 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31273 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31274 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31275 Likewise.
31276 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31277 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31278 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31279 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31280 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31281 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31282 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31283 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31284 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31285 Likewise.
31286 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31287 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31288 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31289 (MEMCMP): Use void * instead of ptr_t.
31290 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31291 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31292
31293 2017-08-08 Florian Weimer <fweimer@redhat.com>
31294
31295 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31296 return statement.
31297
31298 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31299
31300 [BZ #21913]
31301 * csu/libc-tls.c: Include <startup.h> first.
31302 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31303 * elf/dl-tunables.c: Include <startup.h> first.
31304 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31305 * sysdeps/generic/startup.h: New file.
31306 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31307 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31308 (I386_USE_SYSENTER): New. Defined to 0.
31309
31310 2017-08-08 Andreas Schwab <schwab@suse.de>
31311
31312 [BZ #21041]
31313 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31314 * nptl/pt-system.c (system): Likewise.
31315
31316 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31317
31318 [BZ #21780]
31319 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31320 EOPNOTSUPP.
31321 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31322 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31323 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31324 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31325 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31326 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31327 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31328
31329 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31330
31331 [BZ #21899]
31332 * bits/sigaction.h (struct sigaction): Define sa_handler and
31333 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31334 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31335 [__USE_XOPEN_EXTENDED].
31336 (SA_RESTART): Likewise.
31337 (SA_NODEFER): Likewise.
31338 (SA_RESETHAND): Likewise.
31339 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31340 (struct sigaction): Define sa_handler and sa_sigaction using union
31341 also for [__USE_XOPEN_EXTENDED].
31342 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31343 [__USE_XOPEN_EXTENDED].
31344 (SA_RESTART): Likewise.
31345 (SA_NODEFER): Likewise.
31346 (SA_RESETHAND): Likewise.
31347 * sysdeps/unix/sysv/linux/bits/sigaction.h
31348 (struct sigaction): Define sa_handler and sa_sigaction using union
31349 also for [__USE_XOPEN_EXTENDED].
31350 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31351 [__USE_XOPEN_EXTENDED].
31352 (SA_RESTART): Likewise.
31353 (SA_NODEFER): Likewise.
31354 (SA_RESETHAND): Likewise.
31355 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31356 (struct sigaction): Define sa_handler and sa_sigaction using union
31357 also for [__USE_XOPEN_EXTENDED].
31358 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31359 [__USE_XOPEN_EXTENDED].
31360 (SA_RESTART): Likewise.
31361 (SA_NODEFER): Likewise.
31362 (SA_RESETHAND): Likewise.
31363 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31364 (struct sigaction): Define sa_handler and sa_sigaction using union
31365 also for [__USE_XOPEN_EXTENDED].
31366 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31367 [__USE_XOPEN_EXTENDED].
31368 (SA_RESTART): Likewise.
31369 (SA_NODEFER): Likewise.
31370 (SA_RESETHAND): Likewise.
31371 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31372 (struct sigaction): Define sa_handler and sa_sigaction using union
31373 also for [__USE_XOPEN_EXTENDED].
31374 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31375 [__USE_XOPEN_EXTENDED].
31376 (SA_RESTART): Likewise.
31377 (SA_NODEFER): Likewise.
31378 (SA_RESETHAND): Likewise.
31379 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31380 (struct sigaction): Define sa_handler and sa_sigaction using union
31381 also for [__USE_XOPEN_EXTENDED].
31382 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31383 [__USE_XOPEN_EXTENDED].
31384 (SA_RESTART): Likewise.
31385 (SA_NODEFER): Likewise.
31386 (SA_RESETHAND): Likewise.
31387 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31388 (struct sigaction): Define sa_handler and sa_sigaction using union
31389 also for [__USE_XOPEN_EXTENDED].
31390 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31391 [__USE_XOPEN_EXTENDED].
31392 (SA_RESTART): Likewise.
31393 (SA_NODEFER): Likewise. Define directly rather than as alias.
31394 (SA_RESETHAND): Likewise.
31395 (SA_INTERRUPT): Define only for [__USE_MISC].
31396 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31397 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31398 [__USE_MISC].
31399 (SA_STACK): Define only for [__USE_MISC].
31400 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31401 (struct sigaction): Define sa_handler and sa_sigaction using union
31402 also for [__USE_XOPEN_EXTENDED].
31403 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31404 [__USE_XOPEN_EXTENDED].
31405 (SA_RESTART): Likewise.
31406 (SA_NODEFER): Likewise.
31407 (SA_RESETHAND): Likewise.
31408 (SA_NOPTRACE): Define only for [__USE_MISC].
31409
31410 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31411 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31412 (struct catalog_info): Likewise.
31413 * inet/htontest.c (lo): Likewise.
31414 (foo): Likewise.
31415 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31416 * inet/inet_net.c (inet_network): Likewise.
31417 * inet/inet_netof.c (inet_netof): Likewise.
31418 * inet/rcmd.c (__ivaliduser): Likewise.
31419 (iruserok): Likewise.
31420 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31421 * locale/programs/locale-spec.c (locale_special): Likewise.
31422 * nis/nis_findserv.c (struct findserv_req): Likewise.
31423 (__nis_findfastest_with_timeout): Likewise.
31424 * nss/test-netdb.c (test_network): Likewise.
31425 * resolv/inet_neta.c (inet_neta): Likewise.
31426 * resolv/ns_date.c (ns_datetosecs): Likewise.
31427 (SECS_PER_DAY): Likewise.
31428 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31429 Likewise.
31430 * resolv/res_comp.c (__putlong): Likewise.
31431 (__putshort): Likewise.
31432 (_getlong): Likewise.
31433 (_getshort): Likewise.
31434 * resolv/res_debug.c (p_time): Likewise.
31435 (precsize_ntoa): Likewise.
31436 (precsize_aton): Likewise.
31437 (latlon2ul): Likewise.
31438 (loc_aton): Likewise.
31439 (loc_ntoa): Likewise.
31440 * resolv/res_hconf.c (struct netaddr): Likewise.
31441 (_res_hconf_reorder_addrs): Likewise.
31442 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31443 (clnttcp_control): Likewise.
31444 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31445 (clntudp_control): Likewise.
31446 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31447 (clntunix_control): Likewise.
31448 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31449 * sunrpc/rpc/auth.h (union des_block): Likewise.
31450 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31451 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31452 (xdrrec_create): Likewise.
31453 (xdrrec_endofrecord): Likewise.
31454 (flush_out): Likewise.
31455 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31456 (xdrstdio_putlong): Likewise.
31457 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31458 Likewise.
31459
31460 * misc/sys/cdefs.h (__long_double_t): Remove.
31461 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31462 instead of __long_double_t,
31463 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31464
31465 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31466
31467 * benchtests/scripts/compare_strings.py: Avoid display error when
31468 running on a text terminal.
31469
31470 * benchtests/scripts/compare_strings.py (main): Add an
31471 optional -base option.
31472 (process_results): New argument base_func.
31473
31474 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31475 hardcoding memcpy.
31476 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31477 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31478
31479 2017-08-07 Andreas Schwab <schwab@suse.de>
31480
31481 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31482 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31483 * intl/Makefile ($(objpfx)tst-gettext.out)
31484 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31485 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31486 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31487 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31488 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31489 * posix/Makefile ($(objpfx)globtest.out)
31490 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31491 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31492 ($(objpfx)tst-printf.out): Likewise.
31493 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31494 ($(objpfx)tst-setcontext3.out): Likewise.
31495
31496 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31497
31498 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31499 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31500 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31501 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31502 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31503 and mptan-fma.
31504 (CFLAGS-doasin-fma.c): New.
31505 (CFLAGS-dosincos-fma.c): Likewise.
31506 (CFLAGS-e_asin-fma.c): Likewise.
31507 (CFLAGS-e_atan2-fma.c): Likewise.
31508 (CFLAGS-e_exp-fma.c): Likewise.
31509 (CFLAGS-e_log-fma.c): Likewise.
31510 (CFLAGS-e_pow-fma.c): Likewise.
31511 (CFLAGS-halfulp-fma.c): Likewise.
31512 (CFLAGS-mpa-fma.c): Likewise.
31513 (CFLAGS-mpatan-fma.c): Likewise.
31514 (CFLAGS-mpatan2-fma.c): Likewise.
31515 (CFLAGS-mpexp-fma.c): Likewise.
31516 (CFLAGS-mplog-fma.c): Likewise.
31517 (CFLAGS-mpsqrt-fma.c): Likewise.
31518 (CFLAGS-mptan-fma.c): Likewise.
31519 (CFLAGS-s_atan-fma.c): Likewise.
31520 (CFLAGS-sincos32-fma.c): Likewise.
31521 (CFLAGS-slowexp-fma.c): Likewise.
31522 (CFLAGS-slowpow-fma.c): Likewise.
31523 (CFLAGS-s_sin-fma.c): Likewise.
31524 (CFLAGS-s_tan-fma.c): Likewise.
31525 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31526 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31527 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31528 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31529 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31530 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31531 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31532 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31533 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31534 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31535 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31536 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31537 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31538 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31540 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31542 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31549 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31550 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31551 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31552 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31553 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31554 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31555 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31556
31557 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31558
31559 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31560 (min_of_type_f): New macro.
31561 (min_of_type_): Likewise.
31562 (min_of_type_l): Likewise.
31563 (min_of_type_f128): Likewise.
31564 (min_of_type): Define using __MATH_TG and taking an expression
31565 argument.
31566 (math_check_force_underflow): Pass expression instead of type to
31567 min_of_type.
31568 (math_check_force_underflow_nonneg): Likewise.
31569
31570 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31571
31572 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31573 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31574 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31575
31576 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31577
31578 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31579 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31580 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31581 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31582 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31583 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31584 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31585 memmove_chk-nonshared and memset_chk-nonshared
31586 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31587 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31588 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31589 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31590 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31591 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31592 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31593 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31594 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31595 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31596 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31597 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31598 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31599 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31600 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31601 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31602 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31603 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31604 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31605 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31606 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31607 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31609 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31610 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31611 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31612 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31613 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31614 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31615 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31616 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31617 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31618 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31619 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31621 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31622 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31623 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31624 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31625 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31626 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31627 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31628 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31629 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31630 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31631 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31632 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31633 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31634 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31635 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31636 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31637 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31638 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31639 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31640 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31641 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31642 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31643 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31645 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31646 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31647 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31648 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31649 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31650 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31651 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31652 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31653 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31654 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31655 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31656 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31657 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31658 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31659 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31660 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31661 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31662 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31663 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31664 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31665 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31666 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31667 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31668 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31669 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31670 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31671 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31672 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31673 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31674 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31675 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31676 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31677 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31680 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31682 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31687 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31688 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31689 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31690 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31691 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31692 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31693 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31694
31695 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31696
31697 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31698 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31699 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31700 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31701 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31702 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31703 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31704 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31705 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31706 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31707 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31708 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31709 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31710 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31711 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31712 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31713 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31714 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31715 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31716 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31717 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31718 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31721 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31723 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31726 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31728 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31749 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31751 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31752 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31754 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31756 ...
31757 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31758 Don't include <sysdep.h> nor <init-arch.h>.
31759 (_ZGVbN2v_cos): Removed.
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31761 ...
31762 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31763 Don't include <sysdep.h> nor <init-arch.h>.
31764 (_ZGVdN4v_cos): Removed.
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31766 ...
31767 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31768 Don't include <sysdep.h> nor <init-arch.h>.
31769 (_ZGVeN8v_cos): Removed.
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31771 ...
31772 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31773 Don't include <sysdep.h> nor <init-arch.h>.
31774 (_ZGVbN2v_exp): Removed.
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31776 ...
31777 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31778 Don't include <sysdep.h> nor <init-arch.h>.
31779 (_ZGVdN4v_exp): Removed.
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31781 ...
31782 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31783 Don't include <sysdep.h> nor <init-arch.h>.
31784 (_ZGVeN8v_exp): Removed.
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31786 ...
31787 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31788 Don't include <sysdep.h> nor <init-arch.h>.
31789 (_ZGVbN2v_log): Removed.
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31791 ...
31792 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31793 Don't include <sysdep.h> nor <init-arch.h>.
31794 (_ZGVdN4v_log): Removed.
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31796 ...
31797 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31798 Don't include <sysdep.h> nor <init-arch.h>.
31799 (_ZGVeN8v_log): Removed.
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31801 ...
31802 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31803 Don't include <sysdep.h> nor <init-arch.h>.
31804 (_ZGVbN2vv_pow): Removed.
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31806 ...
31807 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31808 Don't include <sysdep.h> nor <init-arch.h>.
31809 (_ZGVdN4vv_pow): Removed.
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31811 ...
31812 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31813 Don't include <sysdep.h> nor <init-arch.h>.
31814 (_ZGVeN8vv_pow): Removed.
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31816 ...
31817 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31818 Don't include <sysdep.h> nor <init-arch.h>.
31819 (_ZGVbN2v_sin): Removed.
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31821 ...
31822 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31823 Don't include <sysdep.h> nor <init-arch.h>.
31824 (_ZGVbN4v_sin): Removed.
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31826 ...
31827 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31828 Don't include <sysdep.h> nor <init-arch.h>.
31829 (_ZGVbN8v_sin): Removed.
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31831 ...
31832 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31833 Don't include <sysdep.h> nor <init-arch.h>.
31834 (_ZGVbN2vvv_sincos): Removed.
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31836 ...
31837 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31838 Don't include <sysdep.h> nor <init-arch.h>.
31839 (_ZGVdN4vvv_sincos): Removed.
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31841 ...
31842 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31843 Don't include <sysdep.h> nor <init-arch.h>.
31844 (_ZGVeN8vvv_sincos): Removed.
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31846 ...
31847 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31848 Don't include <sysdep.h> nor <init-arch.h>.
31849 (_ZGVeN16v_cosf): Removed.
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31851 ...
31852 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31853 Don't include <sysdep.h> nor <init-arch.h>.
31854 (_ZGVbN4v_cosf): Removed.
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31856 ...
31857 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31858 Don't include <sysdep.h> nor <init-arch.h>.
31859 (_ZGVdN8v_cosf): Removed.
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31861 ...
31862 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31863 Don't include <sysdep.h> nor <init-arch.h>.
31864 (_ZGVeN16v_expf): Removed.
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31866 ...
31867 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31868 Don't include <sysdep.h> nor <init-arch.h>.
31869 (_ZGVbN4v_expf): Removed.
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31871 ...
31872 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31873 Don't include <sysdep.h> nor <init-arch.h>.
31874 (_ZGVdN8v_expf): Removed.
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31876 ...
31877 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31878 Don't include <sysdep.h> nor <init-arch.h>.
31879 (_ZGVeN16v_logf): Removed.
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31881 ...
31882 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31883 Don't include <sysdep.h> nor <init-arch.h>.
31884 (_ZGVbN4v_logf): Removed.
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31886 ...
31887 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31888 Don't include <sysdep.h> nor <init-arch.h>.
31889 (_ZGVdN8v_logf): Removed.
31890 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31891 ...
31892 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31893 Don't include <sysdep.h> nor <init-arch.h>.
31894 (_ZGVeN16vv_powf): Removed.
31895 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31896 ...
31897 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31898 Don't include <sysdep.h> nor <init-arch.h>.
31899 (_ZGVbN4vv_powf): Removed.
31900 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31901 ...
31902 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31903 Don't include <sysdep.h> nor <init-arch.h>.
31904 (_ZGVdN8vv_powf): Removed.
31905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31906 ...
31907 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31908 Don't include <sysdep.h> nor <init-arch.h>.
31909 (_ZGVeN16vvv_sincosf): Removed.
31910 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31911 ...
31912 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31913 Don't include <sysdep.h> nor <init-arch.h>.
31914 (_ZGVbN4vvv_sincosf): Removed.
31915 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31916 ...
31917 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31918 Don't include <sysdep.h> nor <init-arch.h>.
31919 (_ZGVdN8vvv_sincosf): Removed.
31920 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31921 ...
31922 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31923 Don't include <sysdep.h> nor <init-arch.h>.
31924 (_ZGVeN16v_sinf): Removed.
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31926 ...
31927 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31928 Don't include <sysdep.h> nor <init-arch.h>.
31929 (_ZGVbN4v_sinf): Removed.
31930 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31931 ...
31932 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31933 Don't include <sysdep.h> nor <init-arch.h>.
31934 (_ZGVdN8v_sinf): Removed.
31935
31936 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31937
31938 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31939 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31940 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31941 s_rint-sse4_1 and s_rintf-sse4_1.
31942 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31943 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31944 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31945 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31946 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31947 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31948 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31949 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31950 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31951 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31952 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31953 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31954 (__ceil): Removed.
31955 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31956 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31957 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31958 (__ceilf): Removed.
31959 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31960 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31961 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31962 (__floor): Removed.
31963 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31964 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31965 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31966 (__floorf): Removed.
31967 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31968 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31969 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31970 (__nearbyint): Removed.
31971 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31972 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31973 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31974 (__nearbyintf): Removed.
31975 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31976 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31977 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31978 (__rint): Removed.
31979 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31980 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31981 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31982 (__rintf): Removed.
31983
31984 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31985
31986 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31987 SHARED. Avoid dynamic relocation against main in static PIE.
31988
31989 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31990
31991 [BZ #21815]
31992 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31993 (LDFLAGS-tst-prelink): Likewise.
31994
31995 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31996
31997 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31998 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31999 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32000 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32001 (INTERNAL_SYSCALL_NCS): Likewise.
32002 (LOADARGS_1): Likewise.
32003 (LOADARGS_5): Likewise.
32004 (RESTOREARGS_1): Likewise.
32005 (RESTOREARGS_5): Likewise.
32006
32007 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32008
32009 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32010 (MEMPCPY_SYMBOL): Likewise.
32011 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32012 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32013 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32014 in libc.a.
32015 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32016 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32017 Likewise.
32018 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32019 (__hidden_ver1): Don't use in libc.a.
32020 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32021 (__mempcpy): Don't create a weak alias in libc.a.
32022 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32023 libc.a.
32024 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32025 (__hidden_ver1): Don't use in libc.a.
32026
32027 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32028
32029 * config.make.in (have-insert): New.
32030 * configure.ac (libc_cv_insert): New. Set to yes if linker
32031 supports INSERT in linker script.
32032 (AC_SUBST(libc_cv_insert): New.
32033 * configure: Regenerated.
32034 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32035 if $(have-insert) == yes.
32036
32037 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32038
32039 * elf/Makefile (tests): Add vismain only if
32040 $(have-protected-data) == yes.
32041 (tests-pie): Likewise.
32042
32043 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32044
32045 [BZ #21871]
32046 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32047 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32048
32049 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32050
32051 [BZ #21790]
32052 * sysdeps/i386/i586/memset.S
32053 (__memset_zero_constant_len_parameter): Removed.
32054 * sysdeps/i386/i686/memset.S
32055 (__memset_zero_constant_len_parameter): Likewise.
32056 * sysdeps/i386/i686/multiarch/memset_chk.S
32057 (__memset_zero_constant_len_parameter): Likewise.
32058 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32059 Likewise.
32060
32061 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32062
32063 * stdlib/getentropy.c (getentropy): Change return type to int.
32064
32065 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32066
32067 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32068
32069 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32070
32071 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32072 u_intN_t.
32073 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32074 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32075 Likewise.
32076 (ieee_float_shape_type): Likewise.
32077 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32078 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32079 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32080 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32081 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32082 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32083 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32084 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32085 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32086 Likewise.
32087 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32088 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32089 (__ieee754_yn): Likewise.
32090 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32091 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32092 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32093 Likewise.
32094 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32095 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32096 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32097 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32098 (__erfc): Likewise.
32099 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32100 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32101 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32102 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32103 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32104 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32105 Likewise.
32106 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32107 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32108 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32109 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32110 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32111 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32112 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32113 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32114 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32115 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32116 (__issignaling): Likewise.
32117 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32118 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32119 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32120 Likewise.
32121 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32122 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32123 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32124 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32125 Likewise.
32126 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32127 Likewise.
32128 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32129 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32130 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32131 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32132 (__erfcf): Likewise.
32133 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32134 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32135 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32136 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32137 Likewise.
32138 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32139 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32140 Likewise.
32141 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32142 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32143 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32144 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32145 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32146 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32147 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32148 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32149 Likewise.
32150 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32151 Likewise.
32152 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32153 Likewise.
32154 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32155 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32156 Likewise.
32157 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32158 Likewise.
32159 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32160 (__ieee754_ynl): Likewise.
32161 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32162 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32163 Likewise.
32164 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32165 Likewise.
32166 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32167 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32168 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32169 Likewise.
32170 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32171 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32172 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32173 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32174 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32175 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32176 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32177 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32178 Likewise.
32179 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32180 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32181 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32182 Likewise.
32183 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32184 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32185 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32186 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32187 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32188 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32189 Likewise.
32190 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32191 Likewise.
32192 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32193 Likewise.
32194 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32195 Likewise.
32196 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32197 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32198 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32199 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32200 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32201 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32202 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32203 Likewise.
32204 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32205 Likewise.
32206 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32207 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32208 Likewise.
32209 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32210 (__ieee754_remainderl): Likewise.
32211 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32212 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32213 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32214 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32215 Likewise.
32216 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32217 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32218 Likewise.
32219 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32220 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32221 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32222 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32223 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32224 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32225 Likewise.
32226 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32227 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32228 (__ieee754_y0l): Likewise.
32229 (pzero): Likewise.
32230 (qzero): Likewise.
32231 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32232 (__ieee754_y1l): Likewise.
32233 (pone): Likewise.
32234 (qone): Likewise.
32235 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32236 (__ieee754_ynl): Likewise.
32237 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32238 (__ieee754_lgammal_r): Likewise.
32239 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32240 Likewise.
32241 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32242 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32243 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32244 (__erfcl): Likewise.
32245 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32246 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32247 Likewise.
32248 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32249 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32250 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32251 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32252 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32253 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32254 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32255 Likewise.
32256 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32257 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32258 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32259 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32260 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32261 Likewise.
32262 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32263 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32264 Likewise.
32265 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32266 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32267 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32268 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32269 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32270
32271 2017-08-03 Florian Weimer <fweimer@redhat.com>
32272
32273 [BZ #21885]
32274 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32275 on memory allocation failure.
32276
32277 2017-08-03 Alan Modra <amodra@gmail.com>
32278
32279 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32280 tst-tlsopt-powerpc.c with function name change and no test harness.
32281 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32282 Call tls_get_addr_opt_test.
32283 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32284 (modules-names): Add mod-tlsopt-powerpc.
32285 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32286 (tst-tlsopt-powerpc): Depend on .so.
32287 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32288 define. Expand use in TLS_GD and TLS_LD.
32289
32290 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32291
32292 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32293 function.
32294 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32295
32296 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32297
32298 [BZ #21686]
32299 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32300 comparing size with that of double.
32301 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32302 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32303 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32304 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32305 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32306 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32307 unsigned __int128 types.
32308
32309 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32310
32311 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32312 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32313 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32314 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32315 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32316
32317 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32318
32319 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32320
32321 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32322
32323 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32324 of SHARED.
32325 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32326 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32327 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32328 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32329 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32330 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32331 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32332
32333 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32334
32335 [BZ #21685]
32336 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32337 bit-field expressions passed to sizeof or typeof.
32338 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32339 (__TGMATH_F128): Likewise.
32340 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32341 (__TGMATH_CF128): Likewise.
32342 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32343 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32344 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32345 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32346 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32347 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32348 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32349 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32350 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32351 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32352 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32353 (__TGMATH_UNARY_IMAG): Likewise.
32354 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32355 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32356 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32357 type.
32358 (define_vars_for_type): Handle bit_field type specially.
32359 (Tests.__init__): Declare structure with bit-field element.
32360
32361 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32362
32363 [BZ #21791]
32364 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32365 (MEMCPY_CHK): Define only if SHARED is defined.
32366 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32367 Likewise.
32368 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32369 Likewise.
32370
32371 See ChangeLog.18 for earlier changes.