]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
libio: Eliminate _IO_stdin, _IO_stdout, _IO_stderr
[thirdparty/glibc.git] / ChangeLog
1 2019-02-18 Florian Weimer <fweimer@redhat.com>
2
3 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
4 declaration.
5 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6 Remove definitions.
7 * libio/stdfiles.c: Update comment.
8 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
9 set _IO_stdin, _IO_stdout, _IO_stderr.
10 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
11 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
12 inline function.
13 (_IO_deallocate_file): New inline function.
14 * libio/iolibio.h (_IO_vprintf): Remove definition.
15 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
16 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
17 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
18 _IO_legacy_file.
19 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
20 __builtin_expect. Use _IO_legacy_file.
21
22 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
23
24 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
25 Initialize ctid with a known value and remove update of ctid
26 after clone.
27 (wait_tid): Adjust arguments and call futex_wait with ctid_val
28 as assumed current value of ctid_ptr.
29
30 2019-02-15 Florian Weimer <fweimer@redhat.com>
31
32 Check that non-sysdeps headers have wrapper headers.
33 * scripts/check-wrapper-headers.py: New file.
34 * Makefile (tests-special): Add check-wrapper-headers.out.
35 (check-wrapper-headers.out): New target.
36 * Rules (tests-special): Add check-wrapper-headers.out.
37 (check-wrapper-headers.out): New target.
38
39 2019-02-15 Florian Weimer <fweimer@redhat.com>
40
41 Add missing header wrappers under include/.
42 * include/ar.h: New file.
43 * include/bits/mqueue2.h: Likewise.
44 * include/bits/stdio.h: Likewise.
45 * include/bits/stdio2.h: Likewise.
46 * include/fstab.h: Likewise.
47 * include/fts.h: Likewise.
48 * include/lastlog.h: Likewise.
49 * include/netinet/icmp6.h: Likewise.
50 * include/netinet/igmp.h: Likewise.
51 * include/netinet/ip6.h: Likewise.
52 * include/re_comp.h: Likewise.
53 * include/regexp.h: Likewise.
54 * include/rpcsvc/bootparam.h: Likewise.
55 * include/rpcsvc/yp_prot.h: Likewise.
56 * include/sys/random.h: Likewise.
57 * include/sys/stropts.h: Likewise.
58 * include/sys/ttychars.h: Likewise.
59 * include/sys/vfs.h: Likewise.
60 * include/wait.h: Likewise.
61
62 2019-02-15 Florian Weimer <fweimer@redhat.com>
63
64 * nptl_db/proc_service.h: Move to ...
65 * sysdeps/nptl/proc_service.h: ... here.
66 * nptl_db/thread_db.h: Move to ...
67 * sysdeps/nptl/thread_db.h: ... here.
68 * nptl/descr.h: Include <thread_db.h>.
69
70 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
71
72 * io/Makefile (tests): Add tst-lockf.
73 * io/lockf.c (lockf): Use __fcntl and only define for
74 !__OFF_T_MATCHES_OFF64_T.
75 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
76 __OFF_T_MATCHES_OFF64_T case.
77 * io/tst-lockf.c: New file.
78 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
79 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
80 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
81 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
82 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
83 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
84 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
85 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
86 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
87
88 2019-02-15 Florian Weimer <fweimer@redhat.com>
89
90 [BZ #24211]
91 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
92 pd->result after the thread descriptor has been freed.
93
94 2019-02-15 Joseph Myers <joseph@codesourcery.com>
95
96 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
97 from function return type.
98
99 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
100
101 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
102
103 * scripts/test_printers_common.py: Set TERM to a known harmless
104 value.
105
106 2019-02-14 Joseph Myers <joseph@codesourcery.com>
107
108 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
109 (xdr_u_int): Likewise.
110 (xdr_enum): Likewise.
111 (xdr_bytes): Reword fall-through comment.
112 (xdr_string): Likewise.
113
114 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
115
116 [BZ #2421]
117 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
118 (tests): Add tst-join8 tst-join9.
119 * nptl/lll_timedwait_tid.c: Remove file.
120 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
121 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
122 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
123 * nptl/pthread_join_common.c (timedwait_tid): New function.
124 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
125 is set.
126 * nptl/tst-join5.c (thread_join): New function.
127 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
128 check.
129 * nptl/tst-join8.c: New file.
130 * nptl/tst-join9.c: Likewise.
131 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
132 lll_futex_timed_wait_cancel): Add generic macros.
133 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
134 Remove definitions.
135 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
136 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
137 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
138 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
139 Remove function.
140 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
141 Likewise.
142 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
143 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
144 (lll_futex_timed_wait_cancel): New macro.
145
146 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
147
148 * benchtests/Makefile: Add malloc-simple benchmark.
149 * benchtests/bench-malloc-simple.c: New benchmark.
150
151 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
152
153 * benchtests/bench-memmove.c (do_one_test): Remove unused
154 ORIG_SRC.
155 (do_test): Adjust.
156 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
157 ORIG_SRC.
158 (do_test): Adjust.
159
160 2019-01-13 Jim Wilson <jimw@sifive.com>
161
162 [BZ #24040]
163 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
164 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
165 (func): New.
166 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
167 call func directly.
168 * nptl/Makefile (tests): Add tst-unwind-thread.
169 (CFLAGS-tst-unwind-thread.c): Define.
170 * nptl/tst-unwind-thread.c: New file.
171 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
172 as undefined.
173
174 2019-02-13 Joseph Myers <joseph@codesourcery.com>
175
176 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
177 comment wording.
178 * nis/nis_call.c (__do_niscall3): Likewise.
179
180 * catgets/gencat.c (normalize_line): Use braces around empty
181 'else' body.
182 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
183 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
184 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
185 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
186 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
187 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
188 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
189 definition.
190
191 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
192 execlp returns.
193
194 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
195
196 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
197 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
198 * benchtests/bench-strchr.c (stupid_strchr): Remove.
199 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
200 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
201 * benchtests/bench-strlen.c (builtin_strlen): Remove.
202 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
203 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
204 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
205 * benchtests/bench-strspn.c (stupid_strspn): Remove.
206 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
207 * benchtests/bench-bcopy.c: Delete file.
208 * benchtests/bench-bzero.c: Likewise.
209 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
210 (simple_memccpy): Remove.
211 (generic_memccpy): Add function.
212 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
213 * benchtests/bench-memmove.c (simple_bcopy): Remove.
214 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
215 (generic_mempcpy): Add new function.
216 * benchtests/bench-memset.c (simple_bzero): Remove.
217 (builtin_bzero): Remove.
218 (builtin_memset): Remove.
219 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
220 (generic_rawmemchr): Add new function.
221
222 2019-02-12 Florian Weimer <fweimer@redhat.com>
223
224 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
225
226 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
227
228 [BZ #24122]
229 * elf/Makefile (tests): Add tst-audit13.
230 (modules-names): Add tst-audit13mod1.
231 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
232 rule.
233 * elf/tst-audit13.c: New file.
234 * elf/tst-audit13mod1.c: Likewise.
235
236 2019-02-12 Florian Weimer <fweimer@redhat.com>
237
238 [BZ #24122]
239 * elf/rtld.c (unload_audit_module): New function.
240 (report_audit_module_load_error): Likewise.
241 (load_audit_module): Likewise. Extracted from dl_main. Call
242 _dl_close if the laversion symbol cannot be found. Use early
243 returns for error handling. Add malloc error check. Check for a
244 zero return value from la_version. Remove spurious comment about
245 static TLS initialization. Remove useless casts.
246 (notify_audit_modules_of_loaded_object): New function. Extracted
247 from dl_main.
248 (load_audit_module): Likewise.
249 (dl_main): Call load_audit_modules.
250
251 2019-02-12 Joseph Myers <joseph@codesourcery.com>
252
253 * elf/dl-exception.c (_dl_exception_create_format): Add
254 fall-through comments.
255 * elf/ldconfig.c (parse_conf_include): Likewise.
256 * elf/rtld.c (print_statistics): Likewise.
257 * locale/programs/charmap.c (parse_charmap): Likewise.
258 * misc/mntent_r.c (__getmntent_r): Likewise.
259 * posix/wordexp.c (parse_arith): Likewise.
260 (parse_backtick): Likewise.
261 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
262 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
263 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
264
265 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
266
267 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
268 Use float instead of double.
269
270 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
271
272 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
273
274 2019-02-08 Joseph Myers <joseph@codesourcery.com>
275
276 * sysdeps/powerpc/bits/mathinline.h: Remove.
277
278 2019-02-08 Florian Weimer <fweimer@redhat.com>
279
280 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
281 * math/bits/math-finite.h: Move to ...
282 * bits/math-finite.h: ... here.
283
284 2019-02-08 Florian Weimer <fweimer@redhat.com>
285
286 * sysdeps/generic/bits/unistd_ext.h: Move to ...
287 * bits/unistd_ext.h: here.
288
289 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
290
291 [BZ #21915]
292 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
293 * nss/tst-nss-files-hosts-long.c: New file.
294 * nss/tst-nss-files-hosts-long.root: New directory.
295 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
296 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
297
298 2019-02-08 Florian Weimer <fweimer@redhat.com>
299
300 * include/bits/unistd_ext.h: Remove file.
301 * posix/bits/unistd_ext.h: Move to ...
302 * sysdeps/generic/bits/unistd_ext.h: ... here.
303
304 2019-02-08 Florian Weimer <fweimer@redhat.com>
305
306 * include/bits/unistd_ext.h: New file.
307
308 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
309
310 * time/tst-strftime2.c: Use array_length macros instead of magic
311 numbers.
312
313 2019-02-08 Florian Weimer <fweimer@redhat.com>
314
315 [BZ #24161]
316 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
317 argument.
318 * nptl/register-atfork.c (__run_fork_handlers): Only perform
319 locking if the new do_locking argument is true.
320 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
321 __run_fork_handlers.
322
323 2019-02-08 Florian Weimer <fweimer@redhat.com>
324
325 [BZ #6399]
326 Linux: Add gettid system call wrapper.
327 * posix/Makefile (headers): Add bits/unistd_ext.h.
328 * posix/bits/unistd_ext.h: New file.
329 * posix/unistd.h: Include it.
330 * manual/process.texi (Process Identification): Document gettid.
331 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
332 tst-gettid, tst-gettid-kill.
333 (tst-gettid): Link with $(shared-thread-library).
334 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
335 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
336 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
337 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
338 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
339 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
340 Add gettid.
341 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
342 Likewise.
343 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
344 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
345 Likewise.
346 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
347 Likewise.
348 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
349 Likewise.
350 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
351 Likewise.
352 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
353 Likewise.
354 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
355 Likewise.
356 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
357 Likewise.
358 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
359 (GLIBC_2.30): Likewise.
360 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
361 (GLIBC_2.30): Likewise.
362 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
363 (GLIBC_2.30): Likewise.
364 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
365 (GLIBC_2.30): Likewise.
366 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
367 Likewise.
368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
369 (GLIBC_2.30): Likewise.
370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
371 (GLIBC_2.30): Likewise.
372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
373 (GLIBC_2.30): Likewise.
374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
375 (GLIBC_2.30): Likewise.
376 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
377 Likewise.
378 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
379 Likewise.
380 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
381 Likewise.
382 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
383 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
384 Likewise.
385 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
386 Likewise.
387 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
388 Likewise.
389 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
390 Likewise.
391 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
392
393 2019-02-07 Florian Weimer <fweimer@redhat.com>
394
395 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
396 compatibility symbols.
397
398 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
399
400 [BZ #24180]
401 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
402 Add compiler barriers and comments.
403
404 2019-02-07 Florian Weimer <fweimer@redhat.com>
405
406 * include/array_length.h (array_length): Do not use a statement
407 expression and _Static_assert, so that array_length can be used at
408 file scope and as a constant expression.
409
410 2019-02-07 Florian Weimer <fweimer@redhat.com>
411
412 * support/xdlfcn.h (xdlmopen): Declare.
413 * support/xdlmopen.c: New file.
414 * support/Makefile (libsupport-routines): Add xdlmopen.
415
416 2019-02-06 Joseph Myers <joseph@codesourcery.com>
417
418 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
419 before return type, without separate inline.
420 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
421 * elf/dl-tunables.h (tunable_is_name): Likewise.
422 * malloc/malloc.c (do_set_trim_threshold): Likewise.
423 (do_set_top_pad): Likewise.
424 (do_set_mmap_threshold): Likewise.
425 (do_set_mmaps_max): Likewise.
426 (do_set_mallopt_check): Likewise.
427 (do_set_perturb_byte): Likewise.
428 (do_set_arena_test): Likewise.
429 (do_set_arena_max): Likewise.
430 (do_set_tcache_max): Likewise.
431 (do_set_tcache_count): Likewise.
432 (do_set_tcache_unsorted_limit): Likewise.
433 * nis/nis_subr.c (count_dots): Likewise.
434 * nptl/allocatestack.c (advise_stack_range): Likewise.
435 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
436 (do_sin): Likewise.
437 (reduce_sincos): Likewise.
438 (do_sincos): Likewise.
439 * sysdeps/unix/sysv/linux/x86/elision-conf.c
440 (do_set_elision_enable): Likewise.
441 (TUNABLE_CALLBACK_FNDECL): Likewise.
442
443 2019-02-06 Florian Weimer <fweimer@redhat.com>
444
445 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
446 (xdlsym): Use dlerror to detect a NULL symbol.
447
448 2019-02-06 Florian Weimer <fweimer@redhat.com>
449
450 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
451 <stap-probe.h>.
452 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
453
454 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
455
456 * libio/tst-bz24153.c (wide): Use wide char format specifier.
457
458 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
459
460 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
461 __wmemcmp and weak alias to wmemcmp.
462
463 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
464
465 [BZ #23403]
466 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
467 TLS_TCB_AT_TP tls variant.
468 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
469 Add alignment checks.
470 * support/Makefile (libsupport-routines): Add xposix_memalign and
471 xpthread_setstack.
472 * support/support.h: Add xposix_memalign.
473 * support/xthread.h: Add xpthread_attr_setstack.
474 * support/xposix_memalign.c: New File.
475 * support/xpthread_attr_setstack.c: Likewise.
476
477 2019-02-05 Florian Weimer <fweimer@redhat.com>
478
479 [BZ #24164]
480 arm: Use "nr" constraint for Systemtap probes, to avoid the
481 compiler using memory operands for constants, due to the "o"
482 alternative in the default "nor" constraint.
483 * include/stap-probe.h [USE_STAP_PROBE]: Include
484 <stap-probe-machine.h>
485 * sysdeps/generic/stap-probe-machine.h: New file.
486 * sysdeps/arm/stap-probe-machine.h: Likewise.
487
488 2019-02-04 Joseph Myers <joseph@codesourcery.com>
489
490 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
491 with 0, not tcache->entries[tc_idx].
492
493 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
494 once.
495
496 2019-02-04 Andreas Schwab <schwab@suse.de>
497
498 [BZ #16976]
499 [BZ #17396]
500 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
501 looking up collating elements match against (wide) character
502 sequence instead of name. Correct alignment adjustment.
503 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
504 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
505 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
506 (LOCALES): Add cs_CZ.ISO-8859-2.
507 * posix/tst-fnmatch4.c: New file.
508 * posix/tst-fnmatch5.c: New file.
509 * include/wchar.h (__wmemcmp): Declare.
510 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
511 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
512 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
513 * sysdeps/s390/wmemcmp.c: Likewise.
514
515 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
516
517 [BZ #24155]
518 CVE-2019-7309
519 * NEWS: Updated for CVE-2019-7309.
520 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
521 upper 32 bits of RDX register for x32. Use unsigned Jcc
522 instructions, instead of signed.
523 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
524 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
525
526 2019-02-04 Florian Weimer <fweimer@redhat.com>
527
528 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
529 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
530 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
531 Likewise.
532 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
533 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
534 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
535 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
536 Likewise.
537 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
538 Likewise.
539 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
540 Likewise.
541 (posix_spawn_file_actions_addopen): Likewise.
542 (posix_spawn_file_actions_addclose): Likewise.
543 (posix_spawn_file_actions_adddup2): Likewise.
544 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
545 qualifiers.
546 (posix_spawn_file_actions_addfchdir_np): Likewise.
547
548 2019-02-04 David Newall <glibc@davidnewall.com>
549
550 elf: Implement --preload option for the dynamic linker.
551 * elf/rtld.c (preloadarg): New variable.
552 (handle_preload_list): Pass through “where” argument to
553 do_preload.
554 (dl_main): Handle "--preload" and add second call to
555 handle_preload_list.
556 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
557 (tst-rtld-preload-OBJS): Set variable.
558 (tst-rtld-preload.out): New target.
559 * elf/tst-rtld-preload.sh: New file.
560
561 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
562
563 * Makefile (testrun.sh): Exit in case of incorrect argument.
564
565 2019-02-04 Florian Weimer <fweimer@redhat.com>
566
567 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
568 alignment gaps.
569
570 2019-02-03 Florian Weimer <fweimer@redhat.com>
571
572 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
573 implicit overflow checks.
574
575 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
576
577 * stdlib/isomac.c: Include <unistd.h>.
578
579 2019-02-03 Florian Weimer <fweimer@redhat.com>
580
581 * include/time.h (__tzfile_default): Use int, not long int, for
582 the GMT offsets.
583 * time/tzfile.c (struct ttinfo): Change type of the offset member
584 to int.
585 (__tzfile_read): Remove useless cast.
586 (__tzfile_default): Adjust prototype.
587 * time/tzset.c (tz_rule): Change type of the offset member to int.
588 (parse_offset): Change the type of the sign variable to int.
589
590 2019-02-03 Florian Weimer <fweimer@redhat.com>
591
592 [BZ #24153]
593 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
594 * libio/getchar.c (getchar): Likewise.
595 * libio/getchar_u.c (getchar_unlocked): Likewise.
596 * libio/getwchar.c (getwchar): Likewise.
597 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
598 * libio/iogets.c (_IO_gets): Likewise.
599 * libio/vscanf.c (_IO_vscanf): Likewise.
600 * libio/vwscanf.c (__vwscanf): Likewise.
601 * libio/tst-bz24153.c: New file.
602 * libio/Makefile (tests): Add it.
603
604 2019-02-02 Florian Weimer <fweimer@redhat.com>
605
606 [BZ #14829]
607 * manual/resource.texi (Basic Scheduling Functions): Add
608 portability note. Change process to task throughout the section.
609 Remove incorrect comment about sched_yield as it affects
610 tasks/threads, not entire processes.
611 * sysdeps/unix/sysv/linux/bits/posix_opt.h
612 (_POSIX_PRIORITY_SCHEDULING): Update comment.
613
614 2019-02-01 Joseph Myers <joseph@codesourcery.com>
615
616 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
617 * configure: Regenerated.
618 * manual/install.texi (Tools for Compilation): Update minimum GCC
619 version.
620 * INSTALL: Regenerated.
621
622 2019-02-01 Florian Weimer <fweimer@redhat.com>
623
624 * support/support_test_compare_string.c
625 (support_test_compare_string): Use "string" in error message.
626 * support/tst-test_compare_string.c (do_test): Adjust.
627
628 2019-02-01 Florian Weimer <fweimer@redhat.com>
629
630 * support/support_format_address_family.c
631 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
632
633 2019-02-01 Florian Weimer <fweimer@redhat.com>
634
635 * manual/socket.texi (Internet Address Formats): Clarify the byte
636 order of struct sockaddr_in, struct sockaddr_in6. Document
637 sin6_flowinfo and sin6_scope_id.
638
639 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
640
641 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
642 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
643 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
644 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
645 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
646 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
647
648 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
649
650 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
651 [!MEMCHR](MEMCHR): Set to __memchr.
652 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
653 Add memchr_generic and memchr_nosimd.
654 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
655 (__libc_ifunc_impl_list): Add memchr ifuncs.
656 * sysdeps/aarch64/multiarch/memchr.c: New file.
657 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
658 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
659
660 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
661
662 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
663 Add memset_emag.
664 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
665 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
666 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
667 Add IS_EMAG check for ifunc dispatch.
668 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
669 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
670
671 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
672
673 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
674 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
675 Add emag.
676 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
677 New macro.
678
679 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
680
681 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
682
683 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
684
685 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
686 syscall-template file.
687
688 2019-01-31 Carlos O'Donell <carlos@redhat.com>
689 Torvald Riegel <triegel@redhat.com>
690 Rik Prohaska <prohaska7@gmail.com>
691
692 [BZ# 23844]
693 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
694 tst-rwlock-trywrlock-stall.
695 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
696 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
697 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
698 Set __wrphase_fute to 1 only if we started the write phase.
699 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
700 * nptl/tst-rwlock-trywrlock-stall.c: New file.
701 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
702 * support/xpthread_rwlock_destroy.c: New file.
703 * support/xthread.h: Declare xpthread_rwlock_destroy.
704
705 2019-02-01 Joseph Myers <joseph@codesourcery.com>
706
707 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
708 version to 4.0.2.
709
710 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
711
712 [BZ #24051]
713 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
714 * libio/fileops.c (_IO_new_file_underflow): Likewise
715 * libio/wfileops.c (_IO_wfile_underflow): Likewise
716 * libio/putchar.c (putchar): Likewise.
717 * libio/putchar_u.c (putchar_unlocked): Likewise.
718 * libio/putwchar.c (putchar): Likewise.
719 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
720 * libio/tst-bz24051.c: New test.
721 * libio/Makefile (tests): Add tst-bz24051
722
723 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
724
725 regex: fix read overrun [BZ #24114]
726 Problem found by AddressSanitizer, reported by Hongxu Chen in:
727 https://debbugs.gnu.org/34140
728 * posix/regexec.c (proceed_next_node):
729 Do not read past end of input buffer.
730
731 2019-01-31 Florian Weimer <fweimer@redhat.com>
732
733 [BZ #24059]
734 * nss/nss_files/files-alias.c (get_next_alias): Handle
735 continuation line without newline at the end.
736 * nss/tst-nss-files-alias-truncated.c: New file.
737 * nss/Makefile [$(build-shared)] (tests): Add
738 tst-nss-files-alias-truncated.
739 (tst-nss-files-alias-truncated): Link with libnss_files.so.
740 * support/namespace.h (struct support_chroot_configuration): Add
741 aliases member.
742 (struct support_chroot): Add path_aliases member.
743 * support/support_chroot.c (support_chroot_create): Handle
744 aliases.
745 (support_chroot_free): Free path_aliases.
746
747 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
748
749 * version.h (RELEASE): Set to "development".
750 (VERSION): Set to "2.29.9000".
751 * NEWS: Add section for 2.30.
752
753 * version.h (RELEASE): Set to "stable".
754 (VERSION): Set to "2.29".
755 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
756
757 * NEWS: Add the list of bugs fixed in 2.29.
758 * manual/contrib.texi: Update contributors list with some more
759 names.
760 * manual/install.texi: Update latest versions of packages
761 tested.
762 * INSTALL: Regenerated.
763
764 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
765
766 * po/be.po: Update translations.
767 * po/bg.po: Likewise.
768 * po/ca.po: Likewise.
769 * po/cs.po: Likewise.
770 * po/da.po: Likewise.
771 * po/de.po: Likewise.
772 * po/el.po: Likewise.
773 * po/eo.po: Likewise.
774 * po/es.po: Likewise.
775 * po/fi.po: Likewise.
776 * po/fr.po: Likewise.
777 * po/gl.po: Likewise.
778 * po/hr.po: Likewise.
779 * po/hu.po: Likewise.
780 * po/ia.po: Likewise.
781 * po/id.po: Likewise.
782 * po/it.po: Likewise.
783 * po/ja.po: Likewise.
784 * po/ko.po: Likewise.
785 * po/lt.po: Likewise.
786 * po/nb.po: Likewise.
787 * po/nl.po: Likewise.
788 * po/pl.po: Likewise.
789 * po/pt_BR.po: Likewise.
790 * po/ru.po: Likewise.
791 * po/rw.po: Likewise.
792 * po/sk.po: Likewise.
793 * po/sl.po: Likewise.
794 * po/sv.po: Likewise.
795 * po/tr.po: Likewise.
796 * po/uk.po: Likewise.
797 * po/vi.po: Likewise.
798 * po/zh_CN.po: Likewise.
799 * po/zh_TW.po: Likewise.
800
801 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
802
803 [BZ #24130]
804 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
805 of $f3 register on $y_is_neg path.
806
807 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
808
809 [BZ #24110]
810 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
811 sigaltstack.ss_flags.
812
813 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
814
815 [BZ #23758]
816 * manual/time.texi (strftime): Document "%Ey".
817 * time/strftime_l.c (__strftime_internal): Set the default width
818 padding with zero of "%Ey" to 2.
819
820 [BZ #24096]
821 * manual/time.texi (strftime): Document "%EC" and "%EY".
822 * time/Makefile (tests): Add tst-strftime2.
823 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
824 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
825 override padding for "%Ey".
826 If an optional flag ('_' or '-') is specified to "%EY", interpret the
827 "%Ey" in the subformat as if decorated with that flag.
828 * time/tst-strftime2.c: New file.
829
830 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
831
832 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
833 are not defined.
834
835 [BZ #24122]
836 * elf/Makefile (tests): Add tst-audit13.
837 (modules-names): Add tst-audit13mod1.
838 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
839 rule.
840 * elf/rtld.c (dl_main): Handle invalid audit module version.
841 * elf/tst-audit13.c: New file.
842 * elf/tst-audit13mod1.c: Likewise.
843
844 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
845
846 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
847 returned by __hurd_at_flags.
848 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
849 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
850 directly instead of __hurd_file_name_lookup.
851
852 2019-01-21 Joseph Myers <joseph@codesourcery.com>
853
854 * scripts/build-many-glibcs.py (Context.checkout): Default
855 binutils version to 2.32 branch.
856
857 2019-01-21 Florian Weimer <fweimer@redhat.com>
858
859 [BZ #20018]
860 CVE-2016-10739
861 resolv: Reject trailing characters in host names
862 * include/arpa/inet.h (__inet_aton_exact): Declare.
863 (inet_aton): Remove hidden prototype. No longer used internally.
864 * nscd/gai.c (__inet_aton): Do not define.
865 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
866 * nss/digits_dots.c (__inet_aton): Likewise.
867 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
868 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
869 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
870 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
871 (tst-resolv-trailing): Likewise.
872 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
873 libc.
874 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
875 Make static. Add endp parameter.
876 (__inet_aton_exact): New function.
877 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
878 (__inet_addr): Call inet_aton_end.
879 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
880 not just IPv6. Call __inet_aton_exact.
881 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
882 (tests): Make const. Add additional test cases with trailing
883 characters.
884 (do_test): Use array_length.
885 * resolv/tst-inet_aton_exact.c: New file.
886 * resolv/tst-resolv-trailing.c: Likewise.
887 * resolv/tst-resolv-nondecimal.c: Likewise.
888 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
889
890 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
891
892 [BZ# 24097]
893 CVE-2019-6488
894 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
895 Clear the upper 32 bits of RSI register.
896 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
897 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
898 and tst-size_t-wcsnlen.
899 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
900 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
901
902 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
903
904 [BZ# 24097]
905 CVE-2019-6488
906 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
907 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
908 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
909 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
910 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
911
912 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
913
914 [BZ# 24097]
915 CVE-2019-6488
916 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
917 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
918 * sysdeps/x86_64/strcmp.S: Likewise.
919 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
920 tst-size_t-strncmp and tst-size_t-wcsncmp.
921 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
922 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
923 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
924
925 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
926
927 [BZ# 24097]
928 CVE-2019-6488
929 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
930 RDX_LP for length. Clear the upper 32 bits of RDX register.
931 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
932 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
933 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
934 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
935
936 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
937
938 [BZ# 24097]
939 CVE-2019-6488
940 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
941 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
942 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
943 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
944
945 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
946
947 [BZ# 24097]
948 CVE-2019-6488
949 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
950 length. Clear the upper 32 bits of RDX register.
951 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
952 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
953 Likewise.
954 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
955 Likewise.
956 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
957 tst-size_t-wmemchr.
958 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
959
960 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
961
962 [BZ# 24097]
963 CVE-2019-6488
964 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
965 length. Clear the upper 32 bits of RDX register.
966 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
967 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
968 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
969 tst-size_t-wmemcmp.
970 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
971 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
972
973 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
974
975 [BZ# 24097]
976 CVE-2019-6488
977 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
978 upper 32 bits of RDX register.
979 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
980 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
981 tst-size_t-wmemchr.
982 * sysdeps/x86_64/x32/test-size_t.h: New file.
983 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
984 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
985
986 2019-01-18 Florian Weimer <fweimer@redhat.com>
987
988 [BZ #24112]
989 resolv: Do not send queries for non-host-names in nss_dns.
990 * resolv/nss_dns/dns-host.c (check_name): New function.
991 (_nss_dns_gethostbyname2_r): Use it.
992 (_nss_dns_gethostbyname_r): Likewise.
993 (_nss_dns_gethostbyname4_r): Likewise.
994
995 2019-01-21 Florian Weimer <fweimer@redhat.com>
996
997 * resolv/inet_addr.c: Reformat to GNU style.
998 (__inet_addr, __inet_aton): Update comment.
999
1000 2019-01-18 Florian Weimer <fweimer@redhat.com>
1001
1002 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1003 ("malloc: Use current (C11-style) atomics for fastbin access").
1004 This commit introduces a substantial performance regression on
1005 POWER and Aarch64.
1006 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1007 (REMOVE_FB): Define.
1008 (_int_malloc): Use it and reindent.
1009 (_int_free): Use CAS loop with
1010 catomic_compare_and_exchange_val_rel.
1011 (malloc_consolidate): Use atomic_exchange_acq.
1012
1013
1014 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1015
1016 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1017 -Wl,-z,now.
1018 (LDFLAGS-tst-minsigstksz-2): Likewise.
1019 (LDFLAGS-tst-minsigstksz-3): Likewise.
1020 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1021 (LDFLAGS-tst-minsigstksz-4): Likewise.
1022
1023 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1024
1025 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1026 than "alternate".
1027
1028 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1029
1030 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1031
1032 2019-01-16 Zack Weinberg <zackw@panix.com>
1033
1034 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1035 (xget_sigstack_location): New test support functions.
1036 * support/xsigstack.c: New file, implementing them.
1037 * support/tst-xsigstack.c: New test for them.
1038 * support/Makefile: Update.
1039
1040 * signal/tst-minsigstksz-1.c
1041 * signal/tst-minsigstksz-2.c
1042 * signal/tst-minsigstksz-3.c
1043 * signal/tst-minsigstksz-3a.c
1044 * signal/tst-minsigstksz-4.c: New tests.
1045 * signal/Makefile: Run them.
1046
1047 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1048
1049 * po/libc.pot: Regenerate.
1050
1051 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1052
1053 * math/libm-test-fma.inc (fma_test_data): Set
1054 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1055
1056 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1057
1058 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1059 (do_test): Changed __vector __int128_t to __vector unsigned int.
1060
1061 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1062
1063 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1064 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1065 stpcpy-avx2 and stpncpy-avx2.
1066 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1067 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1068 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1069 and __stpncpy_avx2.
1070 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1071 ifunc-strcpy.h}: rename header for a more generic name.
1072 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1073 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1074 AVX unaligned load is fast and vzeroupper is preferred.
1075 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1076 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1077 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1078 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1079 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1080 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1081
1082 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1083
1084 * argp/argp-help.c: Fix typo in comment.
1085 * misc/sys/cdefs.h: Likewise.
1086 * posix/regexec.c (sift_states_iter_mb): Likewise.
1087 * socket/sockatmark.c: Likewise.
1088 * socket/sys/socket.h: Likewise.
1089 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1090 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1091 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1092 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1093 * sysdeps/unix/sockatmark.c: Likewise.
1094 * time/strptime_l.c: Likewise.
1095
1096 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1097
1098 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1099 missing space after the cast of "_NL_CURRENT".
1100
1101 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1102
1103 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1104 ifdef to fix read of VSCR.
1105 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1106 tst-ucontext-ppc64-vscr.c to test list.
1107 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1108
1109 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1110
1111 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1112 fall-through.
1113
1114 2019-01-09 Jim Wilson <jimw@sifive.com>
1115
1116 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1117
1118 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1119
1120 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1121 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1122 __memcpy_falkor for ares.
1123 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1124 Add new define.
1125 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1126 Add ares cpu.
1127
1128 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1129
1130 [BZ #24066]
1131 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1132 4_FP_W_TYPEs are used for IEEE quad precision.
1133 * soft-fp/extendhftf2.c: Likewise.
1134 * soft-fp/extendsftf2.c: Likewise.
1135 * soft-fp/extendxftf2.c: Likewise.
1136 * soft-fp/trunctfdf2.c: Likewise.
1137 * soft-fp/trunctfhf2.c: Likewise.
1138 * soft-fp/trunctfsf2.c: Likewise.
1139 * soft-fp/trunctfxf2.c: Likewise.
1140 * sysdeps/alpha/ots_cvttx.c: Likewise.
1141 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1142 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1143 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1144 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1145 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1146 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1147 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1148 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1149 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1150 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1151 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1152 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1153 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1154 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1155 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1156 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1157 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1158
1159 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1160
1161 [BZ #24024]
1162 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1163 code with -fmath-errno.
1164 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1165 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1166 * string/test-strerror-errno.c: New file.
1167
1168 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1169
1170 [BZ #24046]
1171 * localedata/locales/en_US (date_fmt): Add, set to
1172 "%a %d %b %Y %r %Z".
1173
1174 2019-01-07 Florian Weimer <fweimer@redhat.com>
1175
1176 [BZ #24063]
1177 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1178 instead of @var{errno}.
1179 (Parsing of Integers): Likewise.
1180 (Parsing of Floats): Likewise.
1181 * manual/filesys.texi (Working with Directory Trees): Likewise.
1182 (Temporary Files): Likewise.
1183 * manual/job.texi (Terminal Access Functions): Likewise.
1184 * manual/llio.texi (Synchronizing I/O): Likewise.
1185 * manual/math.texi (SVID Random): Likewise.
1186 * manual/message.texi (The catgets Functions): Likewise.
1187 (Translation with gettext): Likewise.
1188 (Locating gettext catalog): Likewise.
1189 (Charset conversion in gettext): Likewise.
1190 * manual/nss.texi (NSS Module Function Internals): Likewise.
1191 * manual/search.texi (Hash Search Function): Likewise.
1192 * manual/setjmp.texi (System V contexts): Likewise.
1193 * manual/time.texi (Sleeping): Likewise.
1194 * manual/users.texi (Lookup User): Likewise.
1195 (Lookup Group): Likewise.
1196
1197 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1198
1199 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1200 fix typo.
1201
1202 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1203
1204 [BZ #19444]
1205 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1206 __builtin_unreachable for default case in switch.
1207 (__ieee754_yn): Likewise.
1208 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1209 (__ieee754_ynl): Likewise.
1210 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1211 (__ieee754_ynl): Likewise.
1212 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1213 (__ieee754_ynl): Likewise.
1214
1215 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1216
1217 * manual/maint.texi: Use @{ and @}.
1218
1219 2019-01-04 Florian Weimer <fweimer@redhat.com>
1220
1221 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1222 function.
1223 (do_in_chroot_1): Call it.
1224 (run_chroot_tests):
1225 Improve error reporting in case it is not possible to create a
1226 collision for the PTY name required by the test.
1227
1228 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1229
1230 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1231 lll_wait_tid with timeout.
1232 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1233 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1234 futex_reltimed_wait_cancelable for cancelabla mode.
1235 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1236 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1237 macros.
1238 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1239 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1240 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1241 SYSCALL_CANCEL_NCS): New macro.
1242 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1243 (lll_timedwait_tid): Remove macro.
1244 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1245 Likewise.
1246 (lll_timedwait_tid): Likewise.
1247 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1248 Likewise.
1249 (lll_timedwait_tid): Likewise.
1250 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1251 Likewise.
1252 (lll_timedwait_tid): Likewise.
1253 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1254 Use INTERNAL_SYSCALL_CANCEL.
1255 * sysdeps/unix/sysv/linux/futex-internal.h
1256 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1257 instead of __pthread_{enable,disable}_asynccancel.
1258 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1259 (lll_futex_wait_cancel): New macro.
1260
1261 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1262 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1263
1264 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1265 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1266
1267 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1268 in backtrace analysis.
1269 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1270 side-effects.
1271 (tf_send): Likewise.
1272
1273 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1274 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1275 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1276 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1277 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1278 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1279 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1280 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1281 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1282 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1283 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1284 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1285 Likewise.
1286 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1287 tst-cancel-wrappers.sh.
1288 (generated): Remove tst-cancel-wrappers.out.
1289 (tst-cancel-wrappers.out): Remove rule.
1290 * nptl/tst-cancel-wrappers.sh: Remove file.
1291
1292 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1293
1294 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1295 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1296 Update.
1297
1298 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1299
1300 [BZ #23640]
1301 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1302 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1303 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1304 close-on-exec reset for adddup2 file action.
1305 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1306
1307 2019-01-03 Zack Weinberg <zackw@panix.com>
1308
1309 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1310 parameter. Only use deprecated scanf when __USE_GNU is defined
1311 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1312 than 201103L, whichever is relevant for the language being compiled.
1313
1314 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1315 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1316 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1317 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1318 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1319
1320 * libio/iovsscanf.c
1321 * libio/fwscanf.c
1322 * libio/iovswscanf.c
1323 * libio/swscanf.c
1324 * libio/vscanf.c
1325 * libio/vwscanf.c
1326 * libio/wscanf.c
1327 * stdio-common/fscanf.c
1328 * stdio-common/scanf.c
1329 * stdio-common/vfscanf.c
1330 * stdio-common/vfwscanf.c
1331 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1332 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1333 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1334 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1335 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1336 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1337 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1338 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1339 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1340 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1341 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1342 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1343 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1344 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1345 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1346
1347 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1348 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1349 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1350 not sscanf.
1351 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1352 with a preprocessor macro.
1353
1354 * stdio-common/bug21.c, stdio-common/scanf14.c:
1355 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1356 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1357 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1358 to xscanf, xfscanf, xsscanf.
1359
1360 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1361 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1362 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1363 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1364 xfscanf, xsscanf.
1365 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1366 override feature selection macros or provide definitions of u_char etc.
1367 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1368 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1369 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1370 with -std=gnu89.
1371
1372 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1373
1374 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1375 bits/termios-misc.h.
1376 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1377 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1378 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1379 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1380 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1381 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1382
1383 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1384 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1385 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1386 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1387 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1388 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1389 termios-misc.h.
1390 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1391 (sysdep_headers): Add termios-misc.h.
1392
1393 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1394 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1395 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1396
1397 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1398 termios-tcflow.h.
1399 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1400 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1401 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1402 TCSAFLUSH): Move to termios-tcflow.h.
1403 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1404 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1405 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1406 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1407
1408 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1409 termios-c_lflag.h.
1410 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
1411 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
1412 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
1413 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
1414 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
1415 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
1416 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
1417 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
1418 Likewise.
1419 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1420 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1421 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1422 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1423
1424 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1425 termios-c_cflag.h.
1426 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
1427 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
1429 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
1430 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
1431 termios-c_cflag.h.
1432 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1433 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1434 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1435 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1436
1437 [BZ #23783]
1438 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1439 termios-baud.h.
1440 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
1441 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
1442 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
1443 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
1444 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
1445 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
1446 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
1447 __MAX_BAUD): Move to termios-baud.h.
1448 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
1449 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
1450 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1451 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1452 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1453
1454 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
1455 termios-c_oflag.h.
1456 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
1457 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
1458 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
1459 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
1460 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
1461 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
1462 termios-c_oflag.h.
1463 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
1464 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
1465 FFR1): Likewise.
1466 [USE_MISC] (XTABS): Likewise.
1467 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1468 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1469 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1470 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
1471
1472 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1473 termios-c_iflag.h.
1474 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
1475 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
1476 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
1477 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
1478 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
1479 IUTF8): Move to termios-c_iflag.h.
1480 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1481 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1482 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1483 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1484
1485 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
1486 termios-cc.h.
1487 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
1488 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
1489 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
1490 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
1491 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
1492 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
1493 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
1494 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
1495 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1496 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1497 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1498 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1499
1500 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
1501 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
1502 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
1503 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
1504 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1505 termios-struct.h.
1506 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
1507 termios-struct.h.
1508 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
1509 Likewise.
1510 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
1511 Likewise.
1512 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
1513 Likewise.
1514 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
1515 Likewise.
1516 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
1517 _HAVE_C_OSPEED): Define.
1518 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
1519 _HAVE_C_OSPEED): Likewise.
1520 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
1521 _HAVE_C_OSPEED): Likewise.
1522 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
1523 (cfsetospeed): Check for define value instead of existence.
1524 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
1525 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1526 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
1527 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
1528 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
1529
1530 [BZ #17783]
1531 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
1532 Define.
1533 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1534 (TIOCSER_TEMT): Likewise.
1535 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
1536 (TEOCSER_TEMT): Likewise.
1537
1538 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
1539
1540 [BZ #24011]
1541 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
1542
1543 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1544
1545 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
1546
1547 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
1548
1549 * sysdeps/htl/pt-barrierattr-setpshared.c
1550 (pthread_barrierattr_setpshared): Add stub warning.
1551 * sysdeps/htl/pt-condattr-setpshared.c
1552 (pthread_condattr_setpshared): Likewise.
1553 * sysdeps/htl/pt-mutexattr-setpshared.c
1554 (pthread_mutexattr_setpshared): Likewise.
1555 * sysdeps/htl/pt-rwlockattr-setpshared.c
1556 (pthread_rwlockattr_setpshared): Likewise.
1557 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
1558 (pthread_mutexattr_setpshared): Likewise.
1559
1560 2019-01-02 Joseph Myers <joseph@codesourcery.com>
1561
1562 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
1563 constants to match with Linux 4.20.
1564
1565 * sysdeps/mips/mips32/libm-test-ulps: Update.
1566 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
1567
1568 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
1569
1570 [BZ #24034]
1571 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
1572 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
1573 than __typeof (...) for the a_ptr variable.
1574
1575 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1576
1577 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
1578 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
1579 * libio/Makefile (tests): Add tst-sprintf-ub and
1580 tst-sprintf-chk-ub.
1581 (CFLAGS-tst-sprintf-ub.c): New variable.
1582 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
1583 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
1584 destination buffer and check for overflows in fortified mode.
1585 * libio/libioP.h (PRINTF_CHK): New macro.
1586 * libio/tst-sprintf-chk-ub.c: New file.
1587 * libio/tst-sprintf-ub.c: Likewise.
1588
1589 2019-01-02 Florian Weimer <fweimer@redhat.com>
1590
1591 [BZ #24018]
1592 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
1593 failure.
1594
1595 2019-01-02 Florian Weimer <fweimer@redhat.com>
1596
1597 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
1598
1599 2019-01-01 Joseph Myers <joseph@codesourcery.com>
1600
1601 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
1602 macro.
1603
1604 * sysdeps/unix/sysv/linux/netpacket/packet.h
1605 (PACKET_IGNORE_OUTGOING): New macro.
1606
1607 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
1608 macro.
1609
1610 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1611 version to 4.20.
1612 (riscv_flush_icache): New syscall.
1613
1614 * manual/texinfo.tex: Update to version 2018-12-28.17 with
1615 trailing whitespace removed.
1616 * scripts/config.guess: Update to version 2019-01-01.
1617 * scripts/config.sub: Update to version 2019-01-01.
1618 * scripts/move-if-change: Update from gnulib.
1619
1620 * NEWS: Update copyright dates.
1621 * catgets/gencat.c (print_version): Likewise.
1622 * csu/version.c (banner): Likewise.
1623 * debug/catchsegv.sh: Likewise.
1624 * debug/pcprofiledump.c (print_version): Likewise.
1625 * debug/xtrace.sh (do_version): Likewise.
1626 * elf/ldconfig.c (print_version): Likewise.
1627 * elf/ldd.bash.in: Likewise.
1628 * elf/pldd.c (print_version): Likewise.
1629 * elf/sotruss.sh: Likewise.
1630 * elf/sprof.c (print_version): Likewise.
1631 * iconv/iconv_prog.c (print_version): Likewise.
1632 * iconv/iconvconfig.c (print_version): Likewise.
1633 * locale/programs/locale.c (print_version): Likewise.
1634 * locale/programs/localedef.c (print_version): Likewise.
1635 * login/programs/pt_chown.c (print_version): Likewise.
1636 * malloc/memusage.sh (do_version): Likewise.
1637 * malloc/memusagestat.c (print_version): Likewise.
1638 * malloc/mtrace.pl: Likewise.
1639 * manual/libc.texinfo: Likewise.
1640 * nptl/version.c (banner): Likewise.
1641 * nscd/nscd.c (print_version): Likewise.
1642 * nss/getent.c (print_version): Likewise.
1643 * nss/makedb.c (print_version): Likewise.
1644 * posix/getconf.c (main): Likewise.
1645 * scripts/test-installation.pl: Likewise.
1646 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
1647
1648 * All files with FSF copyright notices: Update copyright dates
1649 using scripts/update-copyrights.
1650 * locale/programs/charmap-kw.h: Regenerated.
1651 * locale/programs/locfile-kw.h: Likewise.
1652
1653 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1654
1655 * timezone/zdump.c: Update from tzcode 2018i.
1656 * timezone/zic.c: Likewise.
1657
1658 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
1659
1660 regex: improve Gnulib port to AIX
1661 From the glibc point of view, this removes duplicate macro
1662 definitions and is obviously safe.
1663 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
1664 * posix/regex_internal.h:
1665 (__attribute__, __attribute_warn_unused_result__):
1666 Remove; already defined elsewhere.
1667
1668 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
1669
1670 [BZ #24027]
1671 * malloc/malloc.c (_int_realloc): Always call memcpy for the
1672 copying operation. (ncopies had the wrong type, resulting in an
1673 integer wraparound and too few elements being copied.)
1674
1675 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 [BZ #24022]
1678 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
1679 <asm/syscalls.h> exists with __has_include__ before including it.
1680
1681 2018-12-31 Joseph Myers <joseph@codesourcery.com>
1682
1683 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1684 version to 4.20.
1685
1686 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
1687
1688 * hurd/lookup-retry: Include <unistd.h>.
1689 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
1690 Release it on return. Handle "pid" magical lookup retry.
1691
1692 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1693
1694 [BZ #10496]
1695 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
1696 (t_fmt_ampm): Likewise.
1697 * localedata/locales/aa_ER (t_fmt): Likewise.
1698 (t_fmt_ampm): Likewise.
1699 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
1700 (t_fmt_ampm): Likewise.
1701 * localedata/locales/aa_ET (t_fmt): Likewise.
1702 (t_fmt_ampm): Likewise.
1703 * localedata/locales/am_ET (t_fmt): Likewise.
1704 (t_fmt_ampm): Likewise.
1705 * localedata/locales/byn_ER (t_fmt): Likewise.
1706 (t_fmt_ampm): Likewise.
1707 * localedata/locales/om_ET (t_fmt): Likewise.
1708 (t_fmt_ampm): Likewise.
1709 * localedata/locales/sid_ET (t_fmt): Likewise.
1710 (t_fmt_ampm): Likewise.
1711 * localedata/locales/so_DJ (t_fmt): Likewise.
1712 (t_fmt_ampm): Likewise.
1713 * localedata/locales/so_ET (t_fmt): Likewise.
1714 (t_fmt_ampm): Likewise.
1715 * localedata/locales/so_SO (t_fmt): Likewise.
1716 (t_fmt_ampm): Likewise.
1717 * localedata/locales/ti_ER (t_fmt): Likewise.
1718 (t_fmt_ampm): Likewise.
1719 * localedata/locales/ti_ET (t_fmt): Likewise.
1720 (t_fmt_ampm): Likewise.
1721 * localedata/locales/tig_ER (t_fmt): Likewise.
1722 (t_fmt_ampm): Likewise.
1723 * localedata/locales/wal_ET (t_fmt): Likewise.
1724 (t_fmt_ampm): Likewise.
1725
1726 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
1727 * localedata/locales/ar_IN (t_fmt): Likewise.
1728 * localedata/locales/bhb_IN (t_fmt): Likewise.
1729 * localedata/locales/bho_IN (t_fmt): Likewise.
1730 * localedata/locales/bi_VU (t_fmt): Likewise.
1731 * localedata/locales/bn_BD (t_fmt): Likewise.
1732 * localedata/locales/bn_IN (t_fmt): Likewise.
1733 * localedata/locales/brx_IN (t_fmt): Likewise.
1734 * localedata/locales/doi_IN (t_fmt): Likewise.
1735 * localedata/locales/en_HK (t_fmt): Likewise.
1736 (t_fmt_ampm): Likewise.
1737 * localedata/locales/en_IN (t_fmt): Likewise.
1738 * localedata/locales/en_PH (t_fmt): Likewise.
1739 * localedata/locales/gu_IN (t_fmt): Likewise.
1740 * localedata/locales/hi_IN (t_fmt): Likewise.
1741 * localedata/locales/hif_FJ (t_fmt): Likewise.
1742 * localedata/locales/hne_IN (t_fmt): Likewise.
1743 * localedata/locales/kn_IN (t_fmt): Likewise.
1744 * localedata/locales/kok_IN (t_fmt): Likewise.
1745 * localedata/locales/ks_IN (t_fmt): Likewise.
1746 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
1747 * localedata/locales/mag_IN (t_fmt): Likewise.
1748 * localedata/locales/mai_IN (t_fmt): Likewise.
1749 * localedata/locales/mjw_IN (t_fmt): Likewise.
1750 * localedata/locales/ml_IN (t_fmt): Likewise.
1751 * localedata/locales/mni_IN (t_fmt): Likewise.
1752 * localedata/locales/mr_IN (t_fmt): Likewise.
1753 * localedata/locales/ms_MY (t_fmt): Likewise.
1754 * localedata/locales/pa_IN (t_fmt): Likewise.
1755 * localedata/locales/raj_IN (t_fmt): Likewise.
1756 * localedata/locales/sa_IN (t_fmt): Likewise.
1757 * localedata/locales/sat_IN (t_fmt): Likewise.
1758 * localedata/locales/sd_IN (t_fmt): Likewise.
1759 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
1760 * localedata/locales/tcy_IN (t_fmt): Likewise.
1761 * localedata/locales/the_NP (t_fmt): Likewise.
1762 * localedata/locales/to_TO (t_fmt): Likewise.
1763 * localedata/locales/ur_IN (t_fmt): Likewise.
1764
1765 * localedata/locales/hif_FJ (d_t_fmt): Set to
1766 "%A %d %b %Y %I:%M:%S %p".
1767 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
1768
1769 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
1770 * localedata/locales/ar_BH (t_fmt): Likewise.
1771 * localedata/locales/ar_DZ (t_fmt): Likewise.
1772 * localedata/locales/ar_EG (t_fmt): Likewise.
1773 * localedata/locales/ar_IQ (t_fmt): Likewise.
1774 * localedata/locales/ar_JO (t_fmt): Likewise.
1775 * localedata/locales/ar_KW (t_fmt): Likewise.
1776 * localedata/locales/ar_LB (t_fmt): Likewise.
1777 * localedata/locales/ar_LY (t_fmt): Likewise.
1778 * localedata/locales/ar_OM (t_fmt): Likewise.
1779 * localedata/locales/ar_QA (t_fmt): Likewise.
1780 * localedata/locales/ar_SD (t_fmt): Likewise.
1781 * localedata/locales/ar_SS (t_fmt): Likewise.
1782 * localedata/locales/ar_SY (t_fmt): Likewise.
1783 * localedata/locales/ar_TN (t_fmt): Likewise.
1784 * localedata/locales/ar_YE (t_fmt): Likewise.
1785
1786 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
1787 (t_fmt_ampm): Likewise.
1788 * localedata/locales/gez_ET (t_fmt): Likewise.
1789 (t_fmt_ampm): Likewise.
1790
1791 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
1792 (t_fmt_ampm): Likewise.
1793 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
1794
1795 * localedata/locales/zh_HK (t_fmt):
1796 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
1797
1798 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
1799 because this locale does not use the 12-hour clock.
1800 (t_fmt): Set to "%Z %H:%M:%S".
1801 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
1802
1803 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
1804 because this locale does not use the 12-hour clock.
1805 (t_fmt): Set to "%H:%M:%S %Z".
1806 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
1807
1808 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
1809 because this locale does not use the 12-hour clock.
1810 (t_fmt): Set to "%T".
1811 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
1812 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
1813
1814 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
1815 because this locale does not use the 12-hour clock.
1816 (t_fmt): Set to "%H:%M:%S %Z".
1817 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
1818
1819 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
1820 because this locale does not use the 12-hour clock.
1821 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
1822 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
1823
1824 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
1825
1826 [BZ #10496]
1827 [BZ #23724]
1828 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
1829 (t_fmt_ampm): Likewise.
1830 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
1831 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
1832 (d_fmt): Set to "%-d.%-m.%y".
1833
1834 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1835
1836 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
1837 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
1838 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
1839 Likewise.
1840 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
1841 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
1842 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
1843 function.
1844 * support/blob_repeat.c (check_mul_overflow_size_t,
1845 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
1846
1847 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
1848
1849 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
1850
1851 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
1852
1853 regex: simplify Gnulib port
1854 This simplifies the code, by removing stuff intended for porting
1855 to Gnulib but no longer needed there.
1856 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
1857 uses of libc_hidden_def, weak_alias.
1858 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
1859 _Restrict_ except for public-facing headers.
1860 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
1861 Remove; already defined elsewhere.
1862 * posix/regex.c, posix/regex_internal.h:
1863 Use __GNUC_PREREQ instead of rolling our own.
1864 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
1865
1866 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
1867
1868 * benchtests/bench-strlen.c (generic_strlen): New function.
1869 (memchr_strlen): New function.
1870
1871 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1872
1873 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
1874 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
1875 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
1876
1877 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1878
1879 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
1880
1881 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
1882
1883 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
1884 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
1885 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
1886 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
1887 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
1888 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
1889 <sysdeps/ieee754/flt-32/s_sincosf.c>.
1890
1891 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1892
1893 [BZ #24023]
1894 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
1895 PLT reference in libc.so.
1896 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
1897 _Q_lltoq and _Q_qtod PLT references in libc.so.
1898
1899 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
1900
1901 * benchtests/bench-memchr.c: Cleanup defines.
1902 * benchtests/bench-memcmp.c: Likewise.
1903 * benchtests/bench-memset.c: Likewise.
1904 * benchtests/bench-memset-large.c: Likewise.
1905 * benchtests/bench-memset-walk.c: Likewise.
1906 * benchtests/bench-stpcpy.c: Likewise.
1907 * benchtests/bench-stpncpy.c: Likewise.
1908 * benchtests/bench-strcat.c: Likewise.
1909 * benchtests/bench-strchr.c: Likewise.
1910 * benchtests/bench-strcmp.c: Likewise.
1911 * benchtests/bench-strcpy.c: Likewise.
1912 * benchtests/bench-strcspn.c: Likewise.
1913 * benchtests/bench-string.h: Likewise.
1914 * benchtests/bench-strlen.c: Likewise.
1915 * benchtests/bench-strncat.c: Likewise.
1916 * benchtests/bench-strncmp.c: Likewise.
1917 * benchtests/bench-strncpy.c: Likewise.
1918 * benchtests/bench-strnlen.c: Likewise.
1919 * benchtests/bench-strpbrk.c: Likewise.
1920 * benchtests/bench-strrchr.c: Likewise.
1921 * benchtests/bench-strspn.c: Likewise.
1922
1923 2018-12-21 Joseph Myers <joseph@codesourcery.com>
1924
1925 * stdlib/longlong.h: Update from GCC.
1926
1927 [BZ #23993]
1928 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
1929 * configure: Regenerated.
1930 * manual/install.texi (Tools for Compilation): Update minimum GCC
1931 version.
1932 * INSTALL: Regenerated.
1933
1934 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
1935
1936 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
1937
1938 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
1939
1940 * malloc/malloc.c (mremap_chunk): Additional checks.
1941
1942 2018-12-21 Mao Han <han_mao@c-sky.com>
1943
1944 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
1945 * scripts/build-many-glibcs.py: Add C-SKY targets.
1946 * sysdeps/csky/Implies: New file.
1947 * sysdeps/csky/Makefile: Likewise.
1948 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
1949 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
1950 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
1951 * sysdeps/csky/abiv2/memcmp.S: Likewise.
1952 * sysdeps/csky/abiv2/memcpy.S: Likewise.
1953 * sysdeps/csky/abiv2/memmove.S: Likewise.
1954 * sysdeps/csky/abiv2/memset.S: Likewise.
1955 * sysdeps/csky/abiv2/setjmp.S: Likewise.
1956 * sysdeps/csky/abiv2/start.S: Likewise.
1957 * sysdeps/csky/abiv2/strcmp.S: Likewise.
1958 * sysdeps/csky/abiv2/strcpy.S: Likewise.
1959 * sysdeps/csky/abiv2/strlen.S: Likewise.
1960 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
1961 * sysdeps/csky/abort-instr.h: Likewise.
1962 * sysdeps/csky/atomic-machine.h: Likewise.
1963 * sysdeps/csky/bits/endian.h: Likewise.
1964 * sysdeps/csky/bits/fenv.h: Likewise.
1965 * sysdeps/csky/bits/link.h: Likewise.
1966 * sysdeps/csky/bits/setjmp.h: Likewise.
1967 * sysdeps/csky/bsd-_setjmp.S: Likewise.
1968 * sysdeps/csky/bsd-setjmp.S: Likewise.
1969 * sysdeps/csky/configure: Likewise.
1970 * sysdeps/csky/configure.ac: Likewise.
1971 * sysdeps/csky/dl-machine.h: Likewise.
1972 * sysdeps/csky/dl-procinfo.c: Likewise.
1973 * sysdeps/csky/dl-procinfo.h: Likewise.
1974 * sysdeps/csky/dl-sysdep.h: Likewise.
1975 * sysdeps/csky/dl-tls.h: Likewise.
1976 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
1977 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
1978 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
1979 * sysdeps/csky/fpu/fegetenv.c: Likewise.
1980 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
1981 * sysdeps/csky/fpu/fegetmode.c: Likewise.
1982 * sysdeps/csky/fpu/fegetround.c: Likewise.
1983 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
1984 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
1985 * sysdeps/csky/fpu/fenv_private.h: Likewise.
1986 * sysdeps/csky/fpu/fesetenv.c: Likewise.
1987 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
1988 * sysdeps/csky/fpu/fesetmode.c: Likewise.
1989 * sysdeps/csky/fpu/fesetround.c: Likewise.
1990 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
1991 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
1992 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
1993 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
1994 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
1995 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
1996 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
1997 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
1998 * sysdeps/csky/fpu_control.h: Likewise.
1999 * sysdeps/csky/gccframe.h: Likewise.
2000 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2001 * sysdeps/csky/ldsodefs.h: Likewise.
2002 * sysdeps/csky/libc-tls.c: Likewise.
2003 * sysdeps/csky/linkmap.h: Likewise.
2004 * sysdeps/csky/machine-gmon.h: Likewise.
2005 * sysdeps/csky/memusage.h: Likewise.
2006 * sysdeps/csky/nofpu/Implies: Likewise.
2007 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2008 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2009 * sysdeps/csky/nptl/Makefile: Likewise.
2010 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2011 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2012 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2013 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2014 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2015 * sysdeps/csky/nptl/tls.h: Likewise.
2016 * sysdeps/csky/preconfigure: Likewise.
2017 * sysdeps/csky/sfp-machine.h: Likewise.
2018 * sysdeps/csky/sotruss-lib.c: Likewise.
2019 * sysdeps/csky/stackinfo.h: Likewise.
2020 * sysdeps/csky/sysdep.h: Likewise.
2021 * sysdeps/csky/tininess.h: Likewise.
2022 * sysdeps/csky/tst-audit.h: Likewise.
2023 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2024 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2025 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2026 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2027 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2028 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2029 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2030 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2031 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2032 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2033 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2034 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2035 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2036 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2037 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2038 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2039 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2040 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2041 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2042 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2043 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2044 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2045 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2046 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2047 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2048 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2049 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2050 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2051 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2052 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2053 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2054 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2055 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2056 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2057 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2058 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2059 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2060 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2061 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2062 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2063 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2064 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2065 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2066 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2067
2068 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2069
2070 * include/time.h (__difftime64): Add.
2071 * time/difftime.c (subtract): convert to 64-bit time.
2072 * time/difftime.c (__difftime64): Add.
2073 * time/difftime.c (__difftime): Wrap around __difftime64.
2074
2075 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2076
2077 * manual/examples/add.c: Remove redundant "if not".
2078 * manual/examples/argp-ex1.c: Likewise.
2079 * manual/examples/argp-ex2.c: Likewise.
2080 * manual/examples/argp-ex3.c: Likewise.
2081 * manual/examples/argp-ex4.c: Likewise.
2082 * manual/examples/atexit.c: Likewise.
2083 * manual/examples/db.c: Likewise.
2084 * manual/examples/dir.c: Likewise.
2085 * manual/examples/dir2.c: Likewise.
2086 * manual/examples/execinfo.c: Likewise.
2087 * manual/examples/filecli.c: Likewise.
2088 * manual/examples/filesrv.c: Likewise.
2089 * manual/examples/fmtmsgexpl.c: Likewise.
2090 * manual/examples/genpass.c: Likewise.
2091 * manual/examples/inetcli.c: Likewise.
2092 * manual/examples/inetsrv.c: Likewise.
2093 * manual/examples/isockad.c: Likewise.
2094 * manual/examples/longopt.c: Likewise.
2095 * manual/examples/memopen.c: Likewise.
2096 * manual/examples/memstrm.c: Likewise.
2097 * manual/examples/mkdirent.c: Likewise.
2098 * manual/examples/mkfsock.c: Likewise.
2099 * manual/examples/mkisock.c: Likewise.
2100 * manual/examples/mygetpass.c: Likewise.
2101 * manual/examples/pipe.c: Likewise.
2102 * manual/examples/popen.c: Likewise.
2103 * manual/examples/rprintf.c: Likewise.
2104 * manual/examples/search.c: Likewise.
2105 * manual/examples/select.c: Likewise.
2106 * manual/examples/setjmp.c: Likewise.
2107 * manual/examples/sigh1.c: Likewise.
2108 * manual/examples/sigusr.c: Likewise.
2109 * manual/examples/stpcpy.c: Likewise.
2110 * manual/examples/strdupa.c: Likewise.
2111 * manual/examples/strftim.c: Likewise.
2112 * manual/examples/subopt.c: Likewise.
2113 * manual/examples/swapcontext.c: Likewise.
2114 * manual/examples/termios.c: Likewise.
2115 * manual/examples/testopt.c: Likewise.
2116 * manual/examples/testpass.c: Likewise.
2117 * manual/examples/timeval_subtract.c: Likewise.
2118
2119 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2120
2121 * sysdeps/x86/fpu/math_private.h: New file.
2122 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2123
2124 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2125 definition.
2126 (cosh): Likewise.
2127 (tanh): Likewise.
2128
2129 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2130
2131 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2132 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2133 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2134 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2135 fields.
2136 (_dl_show_auxv): Give a special treatment to
2137 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2138 and AT_L3_CACHEGEOMETRY.
2139 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2140 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2141 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2142 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2143
2144 2018-12-19 Andreas Schwab <schwab@suse.de>
2145
2146 * nscd/connections.c (check_use): Don't abort on invalid len.
2147
2148 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2149
2150 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2151 values in the 64bit value cases.
2152
2153 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2154
2155 * include/time.h
2156 (__ctime64_r): Add.
2157 * time/ctime_r.c
2158 (__ctime64_r): Add.
2159 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2160
2161 * include/time.h
2162 (__ctime64): Add.
2163 * time/gmtime.c
2164 (__ctime64): Add.
2165 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2166
2167 * include/time.h
2168 (__gmtime64_r): Add.
2169 * time/gmtime.c
2170 (__gmtime64_r): Add.
2171 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2172
2173 * include/time.h
2174 (__gmtime64): Add.
2175 * time/gmtime.c
2176 (__gmtime64): Add.
2177 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2178
2179 * include/time.h
2180 (__localtime64_r): Add.
2181 * time/localtime.c
2182 (__localtime64_r): Add.
2183 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2184
2185 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2186
2187 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2188 kernel_sigction definition.
2189
2190 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2191
2192 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2193
2194 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2195 __syscall_rt_sigaction.
2196 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2197 (kernel_sigaction): Use Linux generic defintion.
2198 (STUB): Define.
2199 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2200 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2201 (__syscall_rt_sigaction): Remove implementation.
2202 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2203 hidden.
2204 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2205 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2206 INTERNAL_SYSCALL): Remove definitions.
2207 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2208 action and signal set size.
2209 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2210 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2211
2212 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2213 James Clarke <jrtc27@jrtc27.com>
2214
2215 [BZ #23967]
2216 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2217 Define if SA_RESTORER is defined.
2218 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2219 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2220 already defined.
2221 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2222 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2223 definitions.
2224 (HAS_SA_RESTORER): Define.
2225 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2226 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2227 (HAS_SA_RESTORER): Define.
2228 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2229 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2230 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2231 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2232 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2233
2234 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2235
2236 * sysdeps/unix/sysv/linux/kernel-features.h
2237 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2238 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2239 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2240 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2241 (__ASSUME_ST_INO_64_BIT): Likewise.
2242 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2243 <kernel-features.h>.
2244 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2245 Remove conditional code.
2246 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2247 <kernel-features.h>.
2248 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2249 Remove conditional code.
2250 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2251 <kernel-features.h>.
2252 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2253 Remove conditional code.
2254 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2255 <kernel-features.h>.
2256 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2257 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2258
2259 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2260
2261 * sysdeps/s390/multiarch/ifunc-resolve.h
2262 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2263 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2264 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2265 Delete macro definition.
2266 (s390_libc_ifunc_init): Rename to
2267 s390_libc_ifunc_expr_stfle_init.
2268 * sysdeps/s390/bzero: Use
2269 s390_libc_ifunc_expr_stfle_init instead of
2270 s390_libc_ifunc_init.
2271 * sysdeps/s390/memcmp.c: Likewise.
2272 * sysdeps/s390/memcpy.c: Likewise.
2273 * sysdeps/s390/mempcpy.c: Likewise.
2274 * sysdeps/s390/memset.c: Likewise.
2275
2276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2277
2278 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2279 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2280
2281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2282
2283 * sysdeps/s390/multiarch/Makefile
2284 (sysdep_routines): Remove wmemcmp variants.
2285 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2286 * sysdeps/s390/multiarch/ifunc-impl-list.c
2287 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2288 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2289 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2290 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2291 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2292 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2293 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2294 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2295
2296 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2297
2298 * sysdeps/s390/multiarch/Makefile
2299 (sysdep_routines): Remove wmemset variants.
2300 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2301 * sysdeps/s390/multiarch/ifunc-impl-list.c
2302 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2303 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2304 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2305 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2306 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2307 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2308 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2309 * sysdeps/s390/ifunc-wmemset.h: New file.
2310
2311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2312
2313 * sysdeps/s390/multiarch/Makefile
2314 (sysdep_routines): Remove wmemchr variants.
2315 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2316 * sysdeps/s390/multiarch/ifunc-impl-list.c
2317 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2318 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2319 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2320 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2321 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2322 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2323 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2324 * sysdeps/s390/ifunc-wmemchr.h: New file.
2325
2326 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2327
2328 * sysdeps/s390/multiarch/Makefile
2329 (sysdep_routines): Remove wcscspn variants.
2330 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2331 * sysdeps/s390/multiarch/ifunc-impl-list.c
2332 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2333 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2334 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2335 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2336 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2337 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2338 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2339 * sysdeps/s390/ifunc-wcscspn.h: New file.
2340
2341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2342
2343 * sysdeps/s390/multiarch/Makefile
2344 (sysdep_routines): Remove wcspbrk variants.
2345 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2346 * sysdeps/s390/multiarch/ifunc-impl-list.c
2347 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2348 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2349 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2350 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2351 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2352 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2353 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2354 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2355
2356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2357
2358 * sysdeps/s390/multiarch/Makefile
2359 (sysdep_routines): Remove wcsspn variants.
2360 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2361 * sysdeps/s390/multiarch/ifunc-impl-list.c
2362 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2363 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2364 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2365 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2366 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2367 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2368 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2369 * sysdeps/s390/ifunc-wcsspn.h: New file.
2370
2371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2372
2373 * sysdeps/s390/multiarch/Makefile
2374 (sysdep_routines): Remove wcsrchr variants.
2375 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2376 * sysdeps/s390/multiarch/ifunc-impl-list.c
2377 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2378 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2379 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2380 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2381 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2382 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2383 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2384 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2385
2386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2387
2388 * sysdeps/s390/multiarch/Makefile
2389 (sysdep_routines): Remove wcschrnul variants.
2390 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2391 * sysdeps/s390/multiarch/ifunc-impl-list.c
2392 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2393 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2394 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2395 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2396 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2397 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2398 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2399 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2400
2401 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2402
2403 * sysdeps/s390/multiarch/Makefile
2404 (sysdep_routines): Remove wcschr variants.
2405 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2406 * sysdeps/s390/multiarch/ifunc-impl-list.c
2407 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
2408 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
2409 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
2410 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
2411 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
2412 * sysdeps/s390/multiarch/wcschr.c: Move to ...
2413 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
2414 * sysdeps/s390/ifunc-wcschr.h: New file.
2415
2416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2417
2418 * sysdeps/s390/multiarch/Makefile
2419 (sysdep_routines): Remove wcsncmp variants.
2420 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
2421 * sysdeps/s390/multiarch/ifunc-impl-list.c
2422 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
2423 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
2424 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
2425 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
2426 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
2427 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
2428 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
2429 * sysdeps/s390/ifunc-wcsncmp.h: New file.
2430
2431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2432
2433 * sysdeps/s390/multiarch/Makefile
2434 (sysdep_routines): Remove wcscmp variants.
2435 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
2436 * sysdeps/s390/multiarch/ifunc-impl-list.c
2437 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
2438 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
2439 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
2440 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
2441 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
2442 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
2443 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
2444 * sysdeps/s390/ifunc-wcscmp.h: New file.
2445
2446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2447
2448 * sysdeps/s390/multiarch/Makefile
2449 (sysdep_routines): Remove wcsncat variants.
2450 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
2451 * sysdeps/s390/multiarch/ifunc-impl-list.c
2452 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
2453 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
2454 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
2455 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
2456 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
2457 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
2458 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
2459 * sysdeps/s390/ifunc-wcsncat.h: New file.
2460
2461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2462
2463 * sysdeps/s390/multiarch/Makefile
2464 (sysdep_routines): Remove wcscat variants.
2465 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
2466 * sysdeps/s390/multiarch/ifunc-impl-list.c
2467 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
2468 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
2469 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
2470 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
2471 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
2472 * sysdeps/s390/multiarch/wcscat.c: Move to ...
2473 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
2474 * sysdeps/s390/ifunc-wcscat.h: New file.
2475
2476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2477
2478 * sysdeps/s390/multiarch/Makefile
2479 (sysdep_routines): Remove wcpncpy variants.
2480 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
2481 * sysdeps/s390/multiarch/ifunc-impl-list.c
2482 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
2483 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
2484 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
2485 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
2486 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
2487 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
2488 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
2489 * sysdeps/s390/ifunc-wcpncpy.h: New file.
2490
2491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2492
2493 * sysdeps/s390/multiarch/Makefile
2494 (sysdep_routines): Remove wcsncpy variants.
2495 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
2496 * sysdeps/s390/multiarch/ifunc-impl-list.c
2497 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
2498 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
2499 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
2500 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
2501 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
2502 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
2503 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
2504 * sysdeps/s390/ifunc-wcsncpy.h: New file.
2505
2506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2507
2508 * sysdeps/s390/multiarch/Makefile
2509 (sysdep_routines): Remove wcpcpy variants.
2510 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
2511 * sysdeps/s390/multiarch/ifunc-impl-list.c
2512 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
2513 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
2514 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
2515 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
2516 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
2517 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
2518 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
2519 * sysdeps/s390/ifunc-wcpcpy.h: New file.
2520
2521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2522
2523 * sysdeps/s390/multiarch/Makefile
2524 (sysdep_routines): Remove wcscpy variants.
2525 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
2526 * sysdeps/s390/multiarch/ifunc-impl-list.c
2527 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
2528 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
2529 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
2530 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
2531 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
2532 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
2533 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
2534 * sysdeps/s390/ifunc-wcscpy.h: New file.
2535
2536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2537
2538 * sysdeps/s390/multiarch/Makefile
2539 (sysdep_routines): Remove wcsnlen variants.
2540 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
2541 * sysdeps/s390/multiarch/ifunc-impl-list.c
2542 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
2543 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
2544 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
2545 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
2546 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
2547 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
2548 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
2549 * sysdeps/s390/ifunc-wcsnlen.h: New file.
2550
2551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2552
2553 * sysdeps/s390/multiarch/Makefile
2554 (sysdep_routines): Remove wcslen variants.
2555 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
2556 * sysdeps/s390/multiarch/ifunc-impl-list.c
2557 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
2558 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
2559 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
2560 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
2561 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
2562 * sysdeps/s390/multiarch/wcslen.c: Move to ...
2563 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
2564 * sysdeps/s390/ifunc-wcslen.h: New file.
2565
2566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2567
2568 * sysdeps/s390/multiarch/Makefile
2569 (sysdep_routines): Remove memrchr variants.
2570 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
2571 * sysdeps/s390/multiarch/ifunc-impl-list.c
2572 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
2573 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
2574 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
2575 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
2576 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
2577 * sysdeps/s390/multiarch/memrchr.c: Move to ...
2578 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
2579 * sysdeps/s390/ifunc-memrchr.h: New file.
2580
2581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2582
2583 * sysdeps/s390/multiarch/Makefile
2584 (sysdep_routines): Remove memccpy variants.
2585 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
2586 * sysdeps/s390/multiarch/ifunc-impl-list.c
2587 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
2588 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
2589 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
2590 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
2591 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
2592 * sysdeps/s390/multiarch/memccpy.c: Move to ...
2593 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
2594 * sysdeps/s390/ifunc-memccpy.h: New file.
2595
2596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2597
2598 * sysdeps/s390/multiarch/Makefile
2599 (sysdep_routines): Remove rawmemchr variants.
2600 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
2601 * sysdeps/s390/multiarch/ifunc-impl-list.c
2602 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
2603 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
2604 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
2605 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
2606 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
2607 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
2608 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
2609 * sysdeps/s390/ifunc-rawmemchr.h: New file.
2610
2611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2612
2613 * sysdeps/s390/multiarch/Makefile
2614 (sysdep_routines): Remove memchr variants.
2615 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
2616 * sysdeps/s390/multiarch/ifunc-impl-list.c
2617 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
2618 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
2619 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
2620 * sysdeps/s390/multiarch/memchr.c: Move to ...
2621 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
2622 * sysdeps/s390/ifunc-memchr.h: New file.
2623 * sysdeps/s390/s390-64/memchr.S: Move to ...
2624 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
2625 for 31/64bit and ifunc handling.
2626 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
2627 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
2628 * sysdeps/s390/s390-32/memchr.S: Likewise.
2629
2630 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2631
2632 * sysdeps/s390/multiarch/Makefile
2633 (sysdep_routines): Remove strcspn variants.
2634 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
2635 * sysdeps/s390/multiarch/ifunc-impl-list.c
2636 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
2637 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
2638 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
2639 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
2640 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
2641 * sysdeps/s390/multiarch/strcspn.c: Move to ...
2642 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
2643 * sysdeps/s390/ifunc-strcspn.h: New file.
2644
2645 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2646
2647 * sysdeps/s390/multiarch/Makefile
2648 (sysdep_routines): Remove strpbrk variants.
2649 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
2650 * sysdeps/s390/multiarch/ifunc-impl-list.c
2651 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
2652 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
2653 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
2654 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
2655 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
2656 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
2657 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
2658 * sysdeps/s390/ifunc-strpbrk.h: New file.
2659
2660 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2661
2662 * sysdeps/s390/multiarch/Makefile
2663 (sysdep_routines): Remove strspn variants.
2664 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
2665 * sysdeps/s390/multiarch/ifunc-impl-list.c
2666 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
2667 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
2668 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
2669 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
2670 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
2671 * sysdeps/s390/multiarch/strspn.c: Move to ...
2672 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
2673 * sysdeps/s390/ifunc-strspn.h: New file.
2674
2675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2676
2677 * sysdeps/s390/multiarch/Makefile
2678 (sysdep_routines): Remove strrchr variants.
2679 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
2680 * sysdeps/s390/multiarch/ifunc-impl-list.c
2681 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
2682 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
2683 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
2684 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
2685 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
2686 * sysdeps/s390/multiarch/strrchr.c: Move to ...
2687 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
2688 * sysdeps/s390/ifunc-strrchr.h: New file.
2689
2690 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2691
2692 * sysdeps/s390/multiarch/Makefile
2693 (sysdep_routines): Remove strchrnul variants.
2694 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
2695 * sysdeps/s390/multiarch/ifunc-impl-list.c
2696 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
2697 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
2698 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
2699 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
2700 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
2701 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
2702 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
2703 * sysdeps/s390/ifunc-strchrnul.h: New file.
2704
2705 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2706
2707 * sysdeps/s390/multiarch/Makefile
2708 (sysdep_routines): Remove strchr variants.
2709 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
2710 * sysdeps/s390/multiarch/ifunc-impl-list.c
2711 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
2712 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
2713 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
2714 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
2715 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
2716 * sysdeps/s390/multiarch/strchr.c: Move to ...
2717 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
2718 * sysdeps/s390/ifunc-strchr.h: New file.
2719
2720 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2721
2722 * sysdeps/s390/multiarch/Makefile
2723 (sysdep_routines): Remove strncmp variants.
2724 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
2725 * sysdeps/s390/multiarch/ifunc-impl-list.c
2726 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
2727 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
2728 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
2729 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
2730 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
2731 * sysdeps/s390/multiarch/strncmp.c: Move to ...
2732 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
2733 * sysdeps/s390/ifunc-strncmp.h: New file.
2734
2735 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2736
2737 * sysdeps/s390/multiarch/Makefile
2738 (sysdep_routines): Remove strcmp variants.
2739 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
2740 * sysdeps/s390/multiarch/ifunc-impl-list.c
2741 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
2742 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
2743 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
2744 * sysdeps/s390/multiarch/strcmp.c: Move to ...
2745 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
2746 * sysdeps/s390/ifunc-strcmp.h: New file.
2747 * sysdeps/s390/s390-64/strcmp.S: Move to ...
2748 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
2749 for 31/64bit and ifunc handling.
2750 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
2751 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
2752 * sysdeps/s390/s390-32/strcmp.S: Likewise.
2753
2754 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2755
2756 * sysdeps/s390/multiarch/Makefile
2757 (sysdep_routines): Remove strncat variants.
2758 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
2759 * sysdeps/s390/multiarch/ifunc-impl-list.c
2760 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
2761 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
2762 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
2763 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
2764 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
2765 * sysdeps/s390/multiarch/strncat.c: Move to ...
2766 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
2767 * sysdeps/s390/ifunc-strncat.h: New file.
2768
2769 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2770
2771 * sysdeps/s390/multiarch/Makefile
2772 (sysdep_routines): Remove strcat variants.
2773 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
2774 * sysdeps/s390/multiarch/ifunc-impl-list.c
2775 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
2776 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
2777 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
2778 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
2779 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
2780 * sysdeps/s390/multiarch/strcat.c: Move to ...
2781 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
2782 * sysdeps/s390/ifunc-strcat.h: New file.
2783
2784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2785
2786 * sysdeps/s390/multiarch/Makefile
2787 (sysdep_routines): Remove stpncpy variants.
2788 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
2789 * sysdeps/s390/multiarch/ifunc-impl-list.c
2790 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
2791 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
2792 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
2793 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
2794 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
2795 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
2796 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
2797 * sysdeps/s390/ifunc-stpncpy.h: New file.
2798
2799 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2800
2801 * sysdeps/s390/multiarch/Makefile
2802 (sysdep_routines): Remove strncpy variants.
2803 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
2804 * sysdeps/s390/multiarch/ifunc-impl-list.c
2805 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
2806 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
2807 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
2808 * sysdeps/s390/multiarch/strncpy.c: Move to ...
2809 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
2810 * sysdeps/s390/ifunc-strncpy.h: New file.
2811 * sysdeps/s390/s390-64/strncpy.S: Move to ...
2812 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
2813 and adjust ifunc handling.
2814 * sysdeps/s390/s390-32/strncpy.S: Move to ...
2815 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
2816 and adjust ifunc handling.
2817 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
2818 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
2819
2820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2821
2822 * sysdeps/s390/multiarch/Makefile
2823 (sysdep_routines): Remove stpcpy variants.
2824 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
2825 * sysdeps/s390/multiarch/ifunc-impl-list.c
2826 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
2827 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
2828 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
2829 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
2830 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
2831 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
2832 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
2833 * sysdeps/s390/ifunc-stpcpy.h: New file.
2834
2835 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2836
2837 * sysdeps/s390/multiarch/Makefile
2838 (sysdep_routines): Remove strcpy variants.
2839 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
2840 * sysdeps/s390/multiarch/ifunc-impl-list.c
2841 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
2842 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
2843 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
2844 * sysdeps/s390/multiarch/strcpy.c: Move to ...
2845 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
2846 * sysdeps/s390/ifunc-strcpy.h: New file.
2847 * sysdeps/s390/s390-64/strcpy.S: Move to ...
2848 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
2849 for 31/64bit and ifunc handling.
2850 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
2851 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
2852 * sysdeps/s390/s390-32/strcpy.S: Likewise.
2853
2854 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2855
2856 * sysdeps/s390/multiarch/Makefile
2857 (sysdep_routines): Remove strnlen variants.
2858 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
2859 * sysdeps/s390/multiarch/ifunc-impl-list.c
2860 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
2861 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
2862 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
2863 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
2864 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
2865 * sysdeps/s390/multiarch/strnlen.c: Move to ...
2866 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
2867 * sysdeps/s390/ifunc-strnlen.h: New file.
2868
2869 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2870
2871 * sysdeps/s390/multiarch/Makefile
2872 (sysdep_routines): Remove strlen variants.
2873 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
2874 * sysdeps/s390/multiarch/ifunc-impl-list.c
2875 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
2876 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
2877 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
2878 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
2879 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
2880 * sysdeps/s390/multiarch/strlen.c: Move to ...
2881 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
2882 * sysdeps/s390/ifunc-strlen.h: New file.
2883
2884 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2885
2886 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
2887 * sysdeps/s390/multiarch/ifunc-impl-list.c
2888 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
2889 * sysdeps/s390/ifunc-memmem.h: New file.
2890 * sysdeps/s390/memmem.c: Likewise.
2891 * sysdeps/s390/memmem-c.c: Likewise.
2892 * sysdeps/s390/memmem-vx.c: Likewise.
2893
2894 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2895
2896 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
2897 * sysdeps/s390/multiarch/ifunc-impl-list.c
2898 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
2899 * sysdeps/s390/ifunc-strstr.h: New file.
2900 * sysdeps/s390/strstr.c: Likewise.
2901 * sysdeps/s390/strstr-c.c: Likewise.
2902 * sysdeps/s390/strstr-vx.c: Likewise.
2903
2904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2905
2906 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
2907 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
2908 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
2909 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
2910 New defines.
2911 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
2912 * sysdeps/s390/memmove-c.c: New file.
2913 * sysdeps/s390/memmove.c: Likewise.
2914 * sysdeps/s390/multiarch/ifunc-impl-list.c
2915 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
2916
2917 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2918
2919 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
2920 * sysdeps/s390/configure.ac: Add check for z13 support.
2921 * sysdeps/s390/configure: Regenerated.
2922
2923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2924
2925 * sysdeps/s390/memcopy.h: New file.
2926
2927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2928
2929 * sysdeps/s390/s390-32/bcopy.S: Remove.
2930 * sysdeps/s390/s390-64/bcopy.S: Likewise.
2931
2932 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2933
2934 * sysdeps/s390/ifunc-memcpy.h: New File.
2935 * sysdeps/s390/memcpy.S: Move to ...
2936 * sysdeps/s390/memcpy-z900.S ... here.
2937 Move implementations from memcpy-s390x.s to here.
2938 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
2939 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2940 Remove memcpy/mempcpy variants.
2941 * sysdeps/s390/Makefile (sysdep_routines):
2942 Add memcpy/mempcpy variants.
2943 * sysdeps/s390/multiarch/ifunc-impl-list.c
2944 (__libc_ifunc_impl_list): Adjust ifunc variants for
2945 memcpy and mempcpy.
2946 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
2947 to ...
2948 * sysdeps/s390/memcpy.c: ... here.
2949 Adjust ifunc variants for memcpy.
2950 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
2951 * sysdeps/s390/mempcpy.c: ... here.
2952 Adjust ifunc variants for mempcpy.
2953 * sysdeps/s390/mempcpy.S: Delete file.
2954
2955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2956
2957 * sysdeps/s390/s390-64/memcpy.S: Move to ...
2958 * sysdeps/s390/memcpy.S: ... here.
2959 Adjust to be usable for 31/64bit.
2960 * sysdeps/s390/s390-32/memcpy.S: Delete File.
2961 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
2962 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
2963 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
2964 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
2965 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
2966 Adjust to be usable for 31/64bit.
2967 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
2968 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
2969 * sysdeps/s390/multiarch/memcpy.c: ... here.
2970 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/ifunc-memcmp.h: New File.
2975 * sysdeps/s390/memcmp.S: Move to ...
2976 * sysdeps/s390/memcmp-z900.S ... here.
2977 Move implementations from memcmp-s390x.s to here.
2978 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
2979 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
2980 Remove memcmp variants.
2981 * sysdeps/s390/Makefile (sysdep_routines):
2982 Add memcmp variants.
2983 * sysdeps/s390/multiarch/ifunc-impl-list.c
2984 (__libc_ifunc_impl_list): Adjust ifunc variants for
2985 memcmp.
2986 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
2987 to ...
2988 * sysdeps/s390/memcmp.c: ... here.
2989 Adjust ifunc variants for memcmp.
2990
2991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2992
2993 * sysdeps/s390/s390-64/memcmp.S: Move to ...
2994 * sysdeps/s390/memcmp.S: ... here.
2995 Adjust to be usable for 31/64bit.
2996 * sysdeps/s390/s390-32/memcmp.S: Delete File.
2997 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
2998 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
2999 Remove memcmp.
3000 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3001 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3002 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3003 Adjust to be usable for 31/64bit.
3004 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3005 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3006 * sysdeps/s390/multiarch/memcmp.c: ... here.
3007 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3008
3009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3010
3011 * sysdeps/s390/s390-32/bzero.S: Delete file.
3012 * sysdeps/s390/s390-64/bzero.S: Likewise.
3013 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3014 * sysdeps/s390/bzero.c: New file.
3015 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3016 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3017 * sysdeps/s390/multiarch/ifunc-impl-list.c
3018 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3019
3020 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3021
3022 * sysdeps/s390/ifunc-memset.h: New File.
3023 * sysdeps/s390/memset.S: Move to ...
3024 * sysdeps/s390/memset-z900.S ... here.
3025 Move implementations from memset-s390x.s to here.
3026 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3027 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3028 Remove memset variants.
3029 * sysdeps/s390/Makefile (sysdep_routines):
3030 Add memset variants.
3031 * sysdeps/s390/multiarch/ifunc-impl-list.c
3032 (__libc_ifunc_impl_list): Adjust ifunc variants for
3033 memset.
3034 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3035 to ...
3036 * sysdeps/s390/memset.c: ... here.
3037 Adjust ifunc variants for memset.
3038
3039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3040
3041 * sysdeps/s390/s390-64/memset.S: Move to ...
3042 * sysdeps/s390/memset.S: ... here.
3043 Adjust to be usable for 31/64bit.
3044 * sysdeps/s390/s390-32/memset.S: Delete File.
3045 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3046 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3047 Remove memset.
3048 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3049 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3050 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3051 Adjust to be usable for 31/64bit.
3052 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3053 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3054 * sysdeps/s390/multiarch/memset.c: ... here.
3055 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3056
3057 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3058
3059 * sysdeps/s390/multiarch/ifunc-resolve.h
3060 (s390_libc_ifunc_init, s390_libc_ifunc,
3061 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3062
3063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3064
3065 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3066 * sysdeps/s390/configure.ac: Add check for z10 support.
3067 * sysdeps/s390/configure: Regenerated.
3068
3069 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3070
3071 * sysdeps/i386/atomic-machine.h: Merged with ...
3072 * sysdeps/x86_64/atomic-machine.h: To ...
3073 * sysdeps/x86/atomic-machine.h: This. New file.
3074
3075 2018-12-18 Florian Weimer <fweimer@redhat.com>
3076
3077 Rewrite locale/gen-translit.pl in Python.
3078 * locale/Makefile (generated): Add C-translit.h.
3079 (before-compile): Add $(objpfx)C-translit.h.
3080 (C-translit.h): Move to $(objpfx). Create target directory.
3081 Build using Python script.
3082 * locale/gen-translit.py: New file.
3083 * locale/gen-translit.pl: Remove file.
3084 * locale/C-translit.h.in: Change comment character to '#' for
3085 easier parsing without a C preprocessor.
3086 * locale/C-translit.h: Remove generated file.
3087 * manual/install.texi (Tools for Compilation): Do not mention
3088 C-translit.h.
3089 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3090 Remove locale/C-translit.h.
3091 * scripts/update-copyrights: Likewise.
3092 * INSTALL: Regenerate.
3093
3094 2018-12-18 Florian Weimer <fweimer@redhat.com>
3095
3096 [BZ #23995]
3097 * localedata/locales/bi_VU: Remove executable bit from file.
3098
3099 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3100
3101 * include/time.h
3102 (__localtime64): Add.
3103 * manual/maint.texi: Document Y2038 symbol handling.
3104 * time/localtime.c
3105 (__localtime64): Add.
3106 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3107
3108 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3109
3110 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3111 Do not clobber r12.
3112
3113 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3114 to allow extra macros from first or second sources.
3115 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3116 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3117 (tests-special): Add $(objpfx)tst-mman-consts.out.
3118 ($(objpfx)tst-mman-consts.out): New makefile target.
3119
3120 2018-12-17 Mao Han <han_mao@c-sky.com>
3121
3122 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3123 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3124 without stat64 system call support.
3125 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3126 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3127 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3128 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3129 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3130 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3131 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3132 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3133 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3134 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3135 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3136
3137 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3138
3139 regex: fix storage-exhaustion error
3140 [BZ #18040]
3141 * posix/regexec.c (get_subexp):
3142 Do not continue if storage is exhausted.
3143
3144 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3145
3146 regex: fix heap-use-after-free error
3147 [BZ #18040]
3148 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3149 https://debbugs.gnu.org/32592
3150 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3151 call extend_buffers which reallocates the re_string_t internal buffer.
3152 Local variable 'buf' was not updated in such case, resulting in
3153 use-after-free.
3154 * posix/regexec.c (get_subexp): Update 'buf' after call to
3155 get_subexp_sub.
3156
3157 2018-12-15 Florian Weimer <fweimer@redhat.com>
3158
3159 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3160 (minimum_stride_size): Use it.
3161 (support_blob_repeat_allocate): Likewise.
3162
3163 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3164
3165 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3166 definition.
3167 (acosh): Likewise.
3168 (atanh): Likewise.
3169
3170 2018-12-14 Florian Weimer <fweimer@redhat.com>
3171
3172 * manual/process.texi (Process Creation Concepts): Remove
3173 documentation of process (ID) lifetime. List more process
3174 creation functions. Reference Process Identification section.
3175 (Process Identification): Add information about process ID
3176 lifetime. Describe Linux thread/task IDs.
3177 * manual/signal.texi (Signaling Another Process): Mention that the
3178 signal is always sent to the process.
3179
3180 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3181
3182 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3183 and tst-ldbl-efgcvt.
3184 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3185 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3186 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3187 (fcvt_tests, output_error, output_r_error, do_test): Use the
3188 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3189 select the type of floating-point variables and arguments; to
3190 produce extra tests for double and conversion specifiers for
3191 printf; and to set the names of called functions.
3192 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3193 in tst-efgcvt-template.c.
3194 * misc/tst-ldbl-efgcvt.c: Likewise.
3195
3196 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3197
3198 * nss/Makefile (tst-nss-test3.out): New rule.
3199
3200 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3201
3202 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3203 clobber sp.
3204
3205 2018-12-13 fanjinke <fanjinke@hygon.cn>
3206
3207 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3208 "HygonGenuine".
3209
3210 2018-12-13 Andreas Schwab <schwab@suse.de>
3211
3212 [BZ #23861]
3213 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3214 (__pthread_rwlock_rdlock_full): Update expected value for
3215 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3216 * nptl/tst-rwlock-pwn.c: New file.
3217 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3218
3219 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3220
3221 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3222 definition.
3223
3224 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3225
3226 * benchtests/scripts/compare_bench.py (do_compare): write to
3227 stderr in casestat is not present.
3228 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3229 stderr in case timings field is not present. Also string showing
3230 the output filename goes into the stderr.
3231
3232 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3233
3234 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3235 and ZeroDivisorError exceptions.
3236 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3237 argument to loop through user provided statistics.
3238 * benchtests/scripts/compare_bench.py (main): Include the --stats
3239 argument.
3240
3241 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3242
3243 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3244 instead of return.
3245
3246 2018-12-12 Florian Weimer <fweimer@redhat.com>
3247
3248 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3249 clause to copyright header.
3250
3251 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3252
3253 [BZ #23614]
3254 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3255 registers saved in the stack frame.
3256 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3257 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3258
3259 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3260
3261 * include/bits/monetary-ldbl.h: New file.
3262 * include/bits/printf-ldbl.h: Likewise.
3263 * include/bits/stdio-ldbl.h: Likewise.
3264 * include/bits/stdlib-ldbl.h: Likewise.
3265 * include/bits/syslog-ldbl.h: Likewise.
3266 * include/bits/wchar-ldbl.h: Likewise.
3267
3268 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3269
3270 * libio/libio.h: Remove redirection for _IO_vfprintf.
3271
3272 2018-12-11 Andreas Schwab <schwab@suse.de>
3273
3274 * Makerules: Remove all references to abilist-pattern.
3275 (update-all-abi): Simplify find expression.
3276
3277 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3278
3279 [BZ #23961]
3280 * math/auto-libm-test-in: Add new test case.
3281 * math/auto-libm-test-out-pow: Regenerated.
3282 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3283
3284 2018-12-10 DJ Delorie <dj@redhat.com>
3285
3286 [BZ #23948]
3287 * support/test-container.c: Move postclean step to before we
3288 change namespaces.
3289
3290 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3291
3292 * scripts/gen-as-const.py (main): Handle --python option.
3293 * scripts/gen-py-const.awk: Remove.
3294 * Makerules (py-const-script): Use gen-as-const.py.
3295 ($(py-const)): Likewise.
3296 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3297 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3298 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3299 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3300 ~PTHREAD_MUTEX_NO_ELISION_NP.
3301 * manual/README.pretty-printers: Update reference to
3302 gen-py-const.awk.
3303
3304 * scripts/glibcextract.py: New file.
3305 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3306 or tempfile. Import glibcexctract.
3307 (compute_c_consts): Remove. Moved to glibcextract.py.
3308 (gen_test): Update reference to compute_c_consts.
3309 (main): Likewise.
3310 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3311 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3312 * sysdeps/unix/sysv/linux/Makefile
3313 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3314 Redirect stderr as well as stdout.
3315
3316 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3317
3318 [BZ #19767]
3319 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3320 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3321 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3322 ALWAYS_USE_VSYSCALL.
3323 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3324 ALWAYS_USE_VSYSCALL.
3325 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3326 ALWAYS_USE_VSYSCALL.
3327
3328 2018-12-10 Florian Weimer <fweimer@redhat.com>
3329
3330 [BZ #23972]
3331 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3332 offset instead of count for clarity. Fix typo in comment.
3333 (__old_getdents64): Keep track of previous offset. Use it to call
3334 handle_overflow.
3335 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3336 that d_off is never zero.
3337
3338 2018-12-10 Andreas Schwab <schwab@suse.de>
3339
3340 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3341 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3343 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3344 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3345
3346 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3347
3348 * timezone/private.h: Update from tzcode 2018g.
3349 * timezone/tzfile.h: Likewise.
3350 * timezone/tzselect.ksh: Likewise.
3351 * timezone/zdump.c: Likewise.
3352 * timezone/zic.c: Likewise.
3353
3354 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3355
3356 [BZ #23490]
3357 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3358 (do_test): Adjust buffer size and fix format.
3359
3360 2018-12-07 DJ Delorie <dj@redhat.com>
3361
3362 [BZ #23907]
3363 * malloc/tst-tcfree3.c: New.
3364 * malloc/Makefile: Add it.
3365
3366 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3367
3368 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3369
3370 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3371
3372 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3373 used as a mask for the mode argument of __vfscanf_internal and
3374 __vfwscanf_internal.
3375 * stdio-common/vfscanf-internal.c
3376 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3377 (__strtof128_internal): Define to __wcstof128_internal.
3378 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3379 __strtof128_internal or __wcstof128_internal when the format of
3380 long double is the same as _Float128.
3381
3382 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3383
3384 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3385 * posix/confstr.c (confstr): Rename to __confstr.
3386 (__confstr): Add hidden def.
3387 (confstr): Add weak alias for __confstr.
3388 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3389 confstr.
3390
3391 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3392
3393 * NEWS: Mention getcpu.
3394 * include/sched.h (__getcpu): New libc_hidden_proto.
3395 * manual/resource.texi: Document getcpu.
3396 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3397 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3398 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3399 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3400 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3401 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3402 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3403 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3404 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3405 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3406 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3407 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3408 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
3409 Likewise.
3410 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3411 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3412 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3414 Likewise.
3415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
3416 Likewise.
3417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
3418 Likewise.
3419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
3420 Likewise.
3421 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3422 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3423 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3424 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3425 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3426 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3427 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3428 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3429 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
3430 * sysdeps/unix/sysv/linux/getcpu.c: New file.
3431 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
3432 Also check getcpu.
3433
3434 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3435
3436 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
3437 functions.
3438 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
3439
3440 2018-12-07 Florian Weimer <fweimer@redhat.com>
3441
3442 [BZ #17405]
3443 * posix/Makefile (routines): Add spawn_faction_addfchdir.
3444 * posix/Versions (GLIBC_2.29): Export
3445 posix_spawn_file_actions_addfchdir_np.
3446 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
3447 * posix/spawn_faction_destroy.c
3448 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
3449 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
3450 and the field action.fchdir_action.
3451 * posix/tst-spawn-chdir.c (add_chdir): New function.
3452 (do_test): Add do_fchdir loop. Call add_chdir.
3453 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
3454 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
3455 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
3456 posix_spawn_file_actions_addfchdir_np.
3457 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
3458 Likewise.
3459 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
3460 Likewise.
3461 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
3462 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
3463 Likewise.
3464 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
3465 Likewise.
3466 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
3467 Likewise.
3468 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
3469 Likewise.
3470 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
3471 Likewise.
3472 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
3473 Likewise.
3474 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3475 (GLIBC_2.29): Likewise.
3476 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3477 (GLIBC_2.29): Likewise.
3478 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3479 (GLIBC_2.29): Likewise.
3480 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3481 (GLIBC_2.29): Likewise.
3482 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
3483 Likewise.
3484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3485 (GLIBC_2.29): Likewise.
3486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3487 (GLIBC_2.29): Likewise.
3488 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
3489 (GLIBC_2.29): Likewise.
3490 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
3491 (GLIBC_2.29): Likewise.
3492 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
3493 Likewise.
3494 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
3495 Likewise.
3496 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
3497 Likewise.
3498 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
3499 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
3500 Likewise.
3501 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
3502 Likewise.
3503 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
3504 Likewise.
3505 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
3506 Likewise.
3507
3508 2018-12-06 Joseph Myers <joseph@codesourcery.com>
3509
3510 * manual/texinfo.tex: Update to version 2018-09-21.20 with
3511 trailing whitespace removed.
3512 * scripts/config.guess: Update to version 2018-11-28.
3513 * scripts/config.sub: Update to version 2018-11-28.
3514 * scripts/install-sh: Update to version 2018-03-11.20.
3515 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
3516 * scripts/move-if-change: Update to version 2018-03-07 03:47.
3517
3518 2018-12-07 Florian Weimer <fweimer@redhat.com>
3519
3520 [BZ #23927]
3521 CVE-2018-19591
3522 * inet/tst-if_index-long.c: New file.
3523 * inet/Makefile (tests): Add tst-if_index-long.
3524
3525 2018-12-07 Florian Weimer <fweimer@redhat.com>
3526
3527 * support/check.h (support_record_failure_is_failed): Declare.
3528 * support/descriptors.h: New file.
3529 * support/support_descriptors.c: Likewise.
3530 * support/tst-support_descriptors.c: Likewise.
3531 * support/support_record_failure.c
3532 (support_record_failure_is_failed): New function.
3533 * support/Makefile (libsupport-routines): Add support_descriptors.
3534 (tests): Add tst-support_descriptors.
3535
3536 2018-12-05 Zack Weinberg <zackw@panix.com>
3537 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3538
3539 * stdio-common/vfprintf-internal.c
3540 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
3541 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
3542 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
3543 and __no_long_double.
3544 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
3545 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
3546 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
3547 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
3548 and __nldbl_*syslog* functions.
3549 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
3550 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
3551 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
3552 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
3553 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
3554 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
3555 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
3556 (__nldbl_vwprintf, __nldbl_wprintf):
3557 Directly call the appropriate __v*printf_internal routine, passing
3558 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
3559 variable names.
3560 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
3561 (__nldbl___printf_chk, __nldbl___snprintf_chk)
3562 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
3563 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
3564 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
3565 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3566 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
3567 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
3568 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
3569 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
3570 Likewise, and also pass PRINTF_FORTIFY when appropriate.
3571 (__nldbl_syslog, __nldbl_vsyslog):
3572 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
3573 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3574 appropriate.
3575 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
3576 appropriate.
3577
3578 2018-12-05 Zack Weinberg <zackw@panix.com>
3579 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3580
3581 [BZ #11319]
3582 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
3583 Moved here from debug/vsprintf_chk.c.
3584 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
3585 and completion logic for the strfile to match exactly what
3586 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
3587 _IO_str_init_static_internal instead of maxlen-1.
3588 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3589 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
3590 __vsprintf_internal.
3591
3592 * debug/vsprintf_chk.c (__vsprintf_chk)
3593 * debug/sprintf_chk.c (__sprintf_chk):
3594 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
3595 'flags' argument is positive, and slen as maxlen. No need to lock
3596 the FILE and/or construct a temporary FILE. Minimize and normalize
3597 header inclusions and variable names. Do not libc_hidden_def anything.
3598
3599 * debug/asprintf_chk.c (__asprintf_chk)
3600 * debug/dprintf_chk.c (__dprintf_chk)
3601 * debug/fprintf_chk.c (__fprintf_chk)
3602 * debug/fwprintf_chk.c (__fwprintf_chk)
3603 * debug/printf_chk.c (__printf_chk)
3604 * debug/snprintf_chk.c (__snprintf_chk)
3605 * debug/swprintf_chk.c (__swprintf_chk)
3606 * debug/vasprintf_chk.c (__vasprintf_chk)
3607 * debug/vdprintf_chk.c (__vdprintf_chk)
3608 * debug/vfprintf_chk.c (__vfprintf_chk)
3609 * debug/vfwprintf_chk.c (__vfwprintf_chk)
3610 * debug/vprintf_chk.c (__vprintf_chk)
3611 * debug/vsnprintf_chk.c (__vsnprintf_chk)
3612 * debug/vswprintf_chk.c (__vswprintf_chk)
3613 * debug/vwprintf_chk.c (__vwprintf_chk)
3614 * debug/wprintf_chk.c (__wprintf_chk):
3615 Directly call the corresponding vxxprintf_internal function, passing
3616 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
3617 the FILE and/or construct a temporary FILE. Minimize and normalize
3618 header inclusions and variable names. Do not libc_hidden_def anything.
3619
3620 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
3621 __obstack_vprintf_internal.
3622 (__obstack_vprintf_chk): Convert into a wrapper that calls
3623 __obstack_vprintf_internal (these two functions already had the
3624 same code) and move to new file...
3625 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
3626 file.
3627 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
3628 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
3629 * debug/Makefile (routines): Add vobprintf_chk.
3630
3631 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
3632 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
3633 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
3634 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
3635 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
3636 (__nldbl___obstack_vfprintf_chk):
3637 Directly call the corresponding vxxprintf_internal function,
3638 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
3639 duplicate comparison of slen with 0 or maxlen from the corresponding
3640 non-__nldbl function.
3641
3642 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
3643 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
3644 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
3645 Remove libc_hidden_proto.
3646
3647 * stdio-common/vfprintf-internal.c
3648 (__vfprintf_internal, __vfwprintf_internal):
3649 Do not check _IO_FLAGS2_FORTIFY.
3650 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
3651 * libio/libioP.h: Update prototype of __vsprintf_internal and add
3652 a comment explaining why it has the maxlen argument.
3653 (_IO_acquire_lock_clear_flags2_fct): Remove.
3654 (_IO_acquire_lock_clear_flags2): Remove.
3655 (_IO_release_lock): Remove conditional statement which will
3656 now never execute.
3657 (_IO_acquire_lock): Remove variable which is now unused.
3658 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3659 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
3660
3661 * stdio-common/Makefile (tests): Add tst-bz11319 and
3662 tst-bz11319-fortify2.
3663 (CFLAGS-tst-bz11319-fortify2.c): New macro.
3664 * stdio-common/tst-bz11319-fortify2.c: New file.
3665 * stdio-common/tst-bz11319.c: Likewise.
3666
3667 2018-12-05 Zack Weinberg <zackw@panix.com>
3668 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3669
3670 * misc/syslog.c: Include libioP.h, not iolibio.h.
3671 (__vsyslog_internal): New function with the former body of
3672 __vsyslog_chk; takes mode_flags argument same as
3673 __v*printf_internal. Call __vfprintf_internal directly.
3674
3675 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
3676 Remove libc_hidden_def.
3677 (__syslog, __syslog_chk): Use __vsyslog_internal.
3678 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
3679
3680 * include/sys/syslog.h: Add multiple inclusion guard.
3681 Add prototype for __vsyslog_internal.
3682 Remove declaration and libc_hidden_proto for __vsyslog_chk.
3683
3684 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
3685 Use __vsyslog_internal.
3686
3687 2018-12-05 Zack Weinberg <zackw@panix.com>
3688 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3689
3690 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
3691 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
3692 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
3693 New functions.
3694 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
3695 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
3696
3697 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
3698 Include wctype.h here if COMPILE_WPRINTF is defined.
3699 Define __vfprintf_internal or __vfwprintf_internal, depending
3700 on COMPILE_WPRINTF.
3701 Temporarily, on entry to this function, update mode_flags
3702 according to the environmental settings corresponding to
3703 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
3704 Throughout, check mode_flags instead of __ldbl_is_dbl and
3705 _IO_FLAGS2_FORTIFY on the destination FILE.
3706 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
3707 Include vfprintf-internal.c. Don't include wctype.h.
3708 * stdio-common/vfprintf.c: New file. Just define __vfprintf
3709 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
3710 and vfprintf.
3711 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
3712 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
3713 and vfwprintf.
3714 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
3715
3716 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
3717 and add mode_flags argument; use __vfprintf_internal.
3718 (__vdprintf): New function. Alias vdprintf to this.
3719 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
3720 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
3721 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
3722 (__obstack_printf): Use __obstack_printf_internal.
3723 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
3724 public aliases __vsnprintf and vsnprintf.
3725 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
3726 called internally.
3727 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
3728 public aliases _IO_vsprintf and vsprintf.
3729 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
3730 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
3731 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
3732 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
3733 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
3734
3735 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
3736 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
3737 * stdio-common/fprintf.c, stdio-common/fxprintf.c
3738 * stdio-common/printf.c: Use __vfprintf_internal.
3739
3740 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
3741 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
3742 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
3743
3744 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
3745 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
3746 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
3747 __vfwprintf_internal.
3748
3749 * libio/libio.h: Remove libc_hidden_proto and declaration for
3750 _IO_vfprintf.
3751 Remove declaration of _IO_vfwprintf.
3752 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
3753 _IO_vsprintf.
3754 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
3755 _IO_obstack_printf.
3756 * include/stdio.h: Add prototype for __vasprintf.
3757 (__vsnprintf): Remove declaration, because there are no more
3758 internal calls.
3759 * include/wchar.h (__vfwprintf, __vswprintf): Remove
3760 declaration, because there are no more internal calls.
3761
3762 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
3763 __vsnprintf_internal, instead of _IO_vsnprintf.
3764 * argp/argp-help.c (__argp_error, __argp_failure): Use
3765 __vasprintf_internal, instead of _IO_vasprintf.
3766 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
3767 redefine, because there are no more internal calls.
3768
3769 2018-12-05 Zack Weinberg <zackw@panix.com>
3770 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3771
3772 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
3773 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
3774 Include libio/strfile.h instead of libioP.h.
3775 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
3776 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
3777 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
3778 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
3779 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
3780 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
3781 necessary. Do not set __no_long_double. Normalize variable names.
3782 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
3783 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
3784 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
3785 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
3786 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
3787 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
3788 Call __vfscanf_internal / __vfwscanf_internal directly, passing
3789 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
3790 Do not set __no_long_double. Normalize variable names.
3791
3792 2018-12-05 Zack Weinberg <zackw@panix.com>
3793 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3794
3795 * stdio-common/isoc99_scanf.c
3796 * stdio-common/isoc99_fscanf.c
3797 * stdio-common/isoc99_sscanf.c
3798 * stdio-common/isoc99_vscanf.c
3799 * stdio-common/isoc99_vfscanf.c
3800 * stdio-common/isoc99_vsscanf.c
3801 * wcsmbs/isoc99_wscanf.c
3802 * wcsmbs/isoc99_fwscanf.c
3803 * wcsmbs/isoc99_swscanf.c
3804 * wcsmbs/isoc99_vwscanf.c
3805 * wcsmbs/isoc99_vfwscanf.c
3806 * wcsmbs/isoc99_vswscanf.c:
3807 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
3808 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
3809 No need to lock and unlock the FILE passed to that function.
3810
3811 * stdio-common/vfscanf-internal.c
3812 (__vfscanf_internal, __vfwscanf_internal):
3813 Don't look at _IO_FLAGS2_SCANF_STD.
3814 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
3815 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
3816 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
3817
3818 2018-12-05 Zack Weinberg <zackw@panix.com>
3819 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3820
3821 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
3822 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
3823 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
3824 * libio/strfile.h: Add multiple inclusion guard.
3825 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
3826
3827 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
3828 consistency with the other version of this file.
3829 (ldbl_compat_symbol): New macro.
3830 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
3831 New macro.
3832
3833 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
3834 Define __vfscanf_internal or __vfwscanf_internal, depending on
3835 COMPILE_WSCANF; don't define any other public symbols.
3836 Remove errval and code to set errp.
3837 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
3838 as the mode_flags argument.
3839 (encode_error, conv_error, input_error): Don't set errval.
3840 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
3841 Include vfscanf-internal.c.
3842 * stdio-common/vfscanf.c: New file defining the public entry
3843 point vfscanf, which calls __vfscanf_internal.
3844 * stdio-common/vfwscanf.c: New file defining the public entry
3845 point vfwscanf, which calls __vfwscanf_internal.
3846
3847 * stdio-common/iovfscanf.c: New file.
3848 * stdio-common/iovfwscanf.c: Likewise.
3849
3850 * stdio-common/Makefile (routines): Add vfscanf-internal,
3851 vfwscanf-internal, iovfscanf, iovfwscanf.
3852 * stdio-common/Versions: Mention GLIBC_2.29, so that
3853 it can be used in SHLIB_COMPAT expressions.
3854 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
3855 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
3856 Call __vfscanf_internal, instead of _IO_vfscanf.
3857 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
3858 _IO_vfscanf.
3859 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
3860 _IO_vfwscanf.
3861
3862 * libio/iovsscanf.c: Clean up includes, when possible. Use
3863 _IO_strfile_read or _IO_strfile_readw, when needed. Call
3864 __vfscanf_internal or __vfwscanf_internal directly.
3865 * libio/iovswscanf.c: Likewise.
3866 * libio/swscanf.c: Likewise.
3867 * libio/vscanf.c: Likewise.
3868 * libio/vwscanf.c: Likewise.
3869 * libio/wscanf.c: Likewise.
3870 * stdio-common/isoc99_fscanf.c: Likewise.
3871 * stdio-common/isoc99_scanf.c: Likewise.
3872 * stdio-common/isoc99_sscanf.c: Likewise.
3873 * stdio-common/isoc99_vfscanf.c: Likewise.
3874 * stdio-common/isoc99_vscanf.c: Likewise.
3875 * stdio-common/isoc99_vsscanf.c: Likewise.
3876 * stdio-common/scanf.c: Likewise.
3877 * stdio-common/sscanf.c: Likewise.
3878 * wcsmbs/isoc99_fwscanf.c: Likewise.
3879 * wcsmbs/isoc99_swscanf.c: Likewise.
3880 * wcsmbs/isoc99_vfwscanf.c: Likewise.
3881 * wcsmbs/isoc99_vswscanf.c: Likewise.
3882 * wcsmbs/isoc99_vwscanf.c: Likewise.
3883 * wcsmbs/isoc99_wscanf.c: Likewise.
3884
3885 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
3886
3887 * include/time.h
3888 (__tz_compute): Replace time_t with __time64_t.
3889 (__tz_convert): Replace time_t* with __time64_t.
3890 (__offtime): Replace time_t* with __time64_t.
3891 * time/gmtime.c
3892 (__gmtime_r): Adjust call to __tz_convert.
3893 (gmtime): Likewise.
3894 * time/localtime.c
3895 (__localtime_r): Likewise.
3896 (localtime): Likewise.
3897 * time/offtime.c: Replace time_t with __time64_t.
3898 * time/tzset.c: Likewise.
3899
3900 2018-12-04 Joseph Myers <joseph@codesourcery.com>
3901
3902 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
3903 dynamic linker unless [$(run-built-tests) = yes].
3904
3905 2018-12-03 DJ Delorie <dj@delorie.com>
3906
3907 * support/test-container.c (check_for_unshare_hints): New.
3908 (main): Call it if unshare fails. Add support for "su" scriptlet
3909 command.
3910
3911 2018-12-03 Joseph Myers <joseph@codesourcery.com>
3912
3913 * scripts/gen-as-const.py (compute_c_consts): Take an argument
3914 'START' to indicate that start text should be output.
3915 (gen_test): Likewise.
3916 (main): Generate 'START' for first symbol or '--' line, or at end
3917 of input if not previously generated.
3918
3919 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
3920
3921 [BZ #19767]
3922 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
3923 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
3924 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
3925 ALWAYS_USE_VSYSCALL.
3926
3927 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3928
3929 [BZ #23913]
3930 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
3931 new_argv by one.
3932
3933 2018-12-03 Carlos O'Donell <carlos@redhat.com>
3934
3935 [BZ #23923]
3936 * locale/programs/localedef.c: Declare boolean hard_links default true.
3937 (options): Add --no-hard-links option.
3938 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
3939 * locale/programs/localedef.h: Declare prototype for hard_links.
3940 * locale/programs/locfile.c (write_locale_data): Don't use hard
3941 links if hard_links is false.
3942
3943 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
3944
3945 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
3946 cpu_features_basic.
3947 (__cache_sysconf): Likewise.
3948 (init_cacheinfo): Likewise.
3949 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
3950 populate COMMON_CPUID_INDEX_80000007 and
3951 COMMON_CPUID_INDEX_80000008.
3952 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
3953 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
3954 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
3955 (init_cpu_features): Use _Static_assert on
3956 index_arch_Fast_Unaligned_Load.
3957 __get_cpuid_registers and __get_arch_feature. Updated for
3958 cpu_features_basic. Set stepping in cpu_features.
3959 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
3960 (FEATURE_INDEX_2): New.
3961 (FEATURE_INDEX_MAX): Changed to enum.
3962 (COMMON_CPUID_INDEX_D_ECX_1): New.
3963 (COMMON_CPUID_INDEX_80000007): Likewise.
3964 (COMMON_CPUID_INDEX_80000008): Likewise.
3965 (cpuid_registers): Likewise.
3966 (cpu_features_basic): Likewise.
3967 (CPU_FEATURE_USABLE): Likewise.
3968 (bit_arch_XXX_Usable): Likewise.
3969 (cpu_features): Use cpuid_registers and cpu_features_basic.
3970 (bit_arch_XXX): Reweritten.
3971 (bit_cpu_XXX): Likewise.
3972 (index_cpu_XXX): Likewise.
3973 (reg_XXX): Likewise.
3974 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
3975 <support/check.h>.
3976 (CHECK_CPU_FEATURE): New.
3977 (CHECK_CPU_FEATURE_USABLE): Likewise.
3978 (cpu_kinds): Likewise.
3979 (do_test): Print vendor, family, model and stepping. Check
3980 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
3981 (TEST_FUNCTION): Removed.
3982 Include <support/test-driver.c> instead of
3983 "../../test-skeleton.c".
3984 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
3985 Check POPCNT instead of POPCOUNT.
3986 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
3987
3988 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3989
3990 * scripts/gen-as-const.py (main): Avoid emitting empty line when
3991 there is no element in `consts'.
3992
3993 2018-12-01 Florian Weimer <fweimer@redhat.com>
3994
3995 * support/support_capture_subprocess.c
3996 (support_capture_subprocess): Check that pipe descriptors have
3997 expected values. Close original pipe descriptors in subprocess.
3998
3999 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4000
4001 [BZ #23032]
4002 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4003 attr with __pthread_default_barrierattr.
4004 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4005 attr with __pthread_default_condattr.
4006 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4007 attr with __pthread_default_mutexattr.
4008 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4009 attr with __pthread_default_rwlockattr.
4010
4011 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4012
4013 * manual/tunables.texi (POSIX Thread Tunables): New node.
4014 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4015 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4016 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4017 __pthread_tunables_init.
4018 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4019 (max_adaptive_count): Define.
4020 * nptl/pthread_mutex_conf.c: New file.
4021 * nptl/pthread_mutex_conf.h: New file.
4022 * sysdeps/generic/adaptive_spin_count.h: New file.
4023 * sysdeps/nptl/dl-tunables.list: New file.
4024 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4025 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4026 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4027 Likewise.
4028
4029 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4030
4031 [BZ #20544]
4032 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4033 * stdlib/on_exit.c (__on_exit): Likewise.
4034 * stdlib/Makefile (tests): Add tst-bz20544.
4035 * stdlib/tst-bz20544.c: New test.
4036
4037 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4038
4039 [BZ #19767]
4040 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4041 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4042 New.
4043
4044 2018-11-30 Florian Weimer <fweimer@redhat.com>
4045
4046 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4047 Extend error logging.
4048 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4049 symbol.
4050
4051 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4052
4053 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4054 __sigismember instead of sigismember.
4055 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4056 cancel_handler): New definitions.
4057 (do_system): Use posix_spawn instead of fork and execl and remove
4058 reentracy code.
4059 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4060 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4061 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4062 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4063 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4064 * sysdeps/unix/sysv/linux/system.c: Likewise.
4065
4066 [BZ #22834]
4067 [BZ #17490]
4068 * NEWS: Add new semantic for atfork with popen and system.
4069 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4070 fork and execl.
4071
4072 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4073
4074 [BZ #23690]
4075 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4076 modification order when accessing reloc_result->addr.
4077 * include/link.h (reloc_result): Add field init.
4078 * nptl/Makefile (tests): Add tst-audit-threads.
4079 (modules-names): Add tst-audit-threads-mod1 and
4080 tst-audit-threads-mod2.
4081 Add rules to build tst-audit-threads.
4082 * nptl/tst-audit-threads-mod1.c: New file.
4083 * nptl/tst-audit-threads-mod2.c: Likewise.
4084 * nptl/tst-audit-threads.c: Likewise.
4085 * nptl/tst-audit-threads.h: Likewise.
4086
4087 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4088
4089 * scripts/gen-as-const.py: New file.
4090 * scripts/gen-as-const.awk: Remove.
4091 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4092 gen-as-const.py.
4093 ($(objpfx)test-as-const-%.c): Likewise.
4094
4095 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4096
4097 * elf/dl-exception.c: Include <_itoa.h>.
4098
4099 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4100
4101 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4102 returned by __f_setlk.
4103
4104 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4105 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4106
4107 * elf/Makefile (tests-internal): Add tst-create_format1.
4108 * elf/dl-exception.c (_dl_exception_create_format): Support
4109 %x, %lx and %zx.
4110 * elf/tst-create_format1.c: New file.
4111
4112 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4113
4114 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4115 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4116 gnulib.)
4117 * argp/argp-help.c (__argp_failure): Likewise.
4118
4119 2018-11-29 Mao Han <han_mao@c-sky.com>
4120
4121 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4122 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4123 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4124 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4125 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4126 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4127 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4128 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4129 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4130 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4131 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4132 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4133 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4134 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4135 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4136 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4137 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4138 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4139 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4140 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4141 (R_CKCORE_TLS_TPOFF32): New defines.
4142
4143 2018-11-29 Florian Weimer <fweimer@redhat.com>
4144
4145 * posix/Makefile (before-compile): Remove testcases.h and
4146 ptestcases.h.
4147 (generated): Add testcases.h and ptestcases.h.
4148 (testcases.h, ptestcases.h): Move to $(objpfx).
4149 (runtests.o): Add dependency on testcases.h.
4150 (runptests.o): Add dependency on ptestcases.h.
4151 * posix/testcases.h, posix/ptestcases.h: Remove files.
4152 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4153 not touch posix/testcases.h and posix/ptestcases.h.
4154
4155 2018-11-28 Florian Weimer <fweimer@redhat.com>
4156
4157 support: Add signal support to support_capture_subprocess_check.
4158 * support/capture_subprocess.h (support_capture_subprocess_check):
4159 Adjust comment and rename parameter.
4160 * support/support_capture_subprocess_check.c
4161 (print_actual_status): New function.
4162 (support_capture_subprocess_check): Support negative
4163 status_or_signal. Call print_actual_status.
4164 * support/tst-support_capture_subprocess.c (do_test): Call
4165 support_capture_subprocess_check.
4166 * libio/tst-vtables-common.c (termination_status)
4167 (init_termination_status): Remove.
4168 (check_for_termination): Adjust support_capture_subprocess_check
4169 call.
4170 (do_test): Remove call to init_termination_status.
4171
4172 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4173
4174 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4175 source directory instead of a copy.
4176 (CommandList.create_copy_dir): Remove.
4177
4178 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4179
4180 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4181
4182 2018-11-28 Florian Weimer <fweimer@redhat.com>
4183
4184 * support/support.h (support_quote_string): Do not use str
4185 parameter name.
4186
4187 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4188
4189 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4190 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4191
4192 2018-11-27 Florian Weimer <fweimer@redhat.com>
4193
4194 * support/support.h (support_quote_string): Declare.
4195 * support/support_quote_string.c: New file.
4196 * support/tst-support_quote_string.c: Likewise.
4197 * support/Makefile (libsupport-routines): Add
4198 support_quote_string.
4199 (tests): Add tst-support_quote_string.
4200
4201 2018-11-27 Florian Weimer <fweimer@redhat.com>
4202
4203 [BZ #23927]
4204 CVE-2018-19591
4205 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4206 descriptor leak in case of ENODEV error.
4207
4208 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4209
4210 [BZ #19767]
4211 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4212 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4213 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4214
4215 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4216
4217 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4218 Error for unknown lines.
4219
4220 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4221
4222 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4223 Touch additional files.
4224
4225 2018-11-26 Florian Weimer <fweimer@redhat.com>
4226
4227 [BZ #23907]
4228 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4229 double-frees.
4230
4231 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4232
4233 [BZ #19767]
4234 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4235 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4236 SHARED. Include sysdep.h.
4237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4238 ALWAYS_USE_VSYSCALL.
4239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4240 ALWAYS_USE_VSYSCALL.
4241
4242 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4243
4244 [BZ #19767]
4245 * nptl/Makefile (tests-static): Add tst-cond11-static.
4246 (tests): Likewise.
4247 * nptl/tst-cond11-static.c: New File.
4248 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4249 tst-affinity-static.
4250 (tests): Likewise.
4251 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4252 instead of SHARED.
4253 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4254 (USE_VSYSCALL): Likewise.
4255 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4256 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4257 instead of SHARED.
4258 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4259 SHARED.
4260 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4261 New.
4262
4263 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4264
4265 [BZ #23915]
4266 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4267 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4268 Undefine.
4269
4270 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4271
4272 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4273 (tst-cet-legacy-1a-ARGS): New.
4274 ($(objpfx)tst-cet-legacy-1a): New target.
4275 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4276
4277 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4278
4279 * conform/conformtest.py (CompileSubTest.__init__): Set
4280 self.run_early to False.
4281 (ExecuteSubTest.__init__): Likewise.
4282 (HeaderTests.run): Try running all non-optional, non-XFAILed
4283 compilation tests in a single execution of the compiler.
4284
4285 * conform/conformtest.py (CompileSubTest): New class.
4286 (ExecuteSubTest): Likewise.
4287 (ElementTest.run): Rename to gen_subtests. Append tests to
4288 self.subtests instead of running them.
4289 (ConstantTest.run): Likewise.
4290 (SymbolTest.run): Likewise.
4291 (TypeTest.run): Likewise.
4292 (TagTest.run): Likewise.
4293 (FunctionTest.run): Likewise.
4294 (VariableTest.run): Likewise.
4295 (MacroFunctionTest.run): Likewise.
4296 (MacroStrTest.run): Likewise.
4297 (HeaderTests.handle_test_line): Generate subtests for tests.
4298 (HeaderTests.run): Run subtests for tests.
4299
4300 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4301
4302 * math/Versions (GLIBC_2.29): Add pow.
4303 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4304 symbol.
4305 * math/w_pow.c: New file.
4306 * sysdeps/i386/fpu/w_pow.c: New file.
4307 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4308 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4309 and add necessary aliases.
4310 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4311 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4312 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4313 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4314 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4315 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4316 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4317 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4318 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4319 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4320 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4321 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4322 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4323 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4324 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4326 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4329 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4330 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4331 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4332 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4333 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4334 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4335 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4336 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4337 __pow.
4338 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4339 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4340 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4341
4342 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4343
4344 * math/Versions (GLIBC_2.29): Add log2.
4345 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4346 symbol.
4347 * math/w_log2.c: New file.
4348 * sysdeps/i386/fpu/w_log2.c: New file.
4349 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4350 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4351 and add necessary aliases.
4352 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4353 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4354 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4355 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4356 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4357 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4358 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4359 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4360 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4361 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4362 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4363 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4364 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4365 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4366 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4370 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4371 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4372 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4373 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4374 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4375 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4376 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4377 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4378
4379 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4380
4381 * math/Versions (GLIBC_2.29): Add log.
4382 * math/w_log_compat.c (__log_compat): Change to versioned compat
4383 symbol.
4384 * math/w_log.c: New file.
4385 * sysdeps/i386/fpu/w_log.c: New file.
4386 * sysdeps/ia64/fpu/e_log.S: Update.
4387 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4388 and add necessary aliases.
4389 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4390 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4391 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4392 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4393 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4394 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4395 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4396 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4397 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4398 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4399 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4400 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4401 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4402 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4403 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4408 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4409 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4410 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4411 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4412 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4413 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4414 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4415 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
4416 __log.
4417 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
4418 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
4419 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
4420 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
4421
4422 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4423
4424 * math/Versions (GLIBC_2.29): Add exp and exp2.
4425 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
4426 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
4427 * math/w_exp_compat.c (__exp_compat): Likewise.
4428 * math/w_exp.c: New file.
4429 * math/w_exp2.c: New file.
4430 * sysdeps/i386/fpu/w_exp.c: New file.
4431 * sysdeps/i386/fpu/w_exp2.c: New file.
4432 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
4433 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
4434 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
4435 and add necessary aliases.
4436 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
4437 and add necessary aliases.
4438 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
4439 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
4440 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
4441 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
4442 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4443 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4444 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4445 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4446 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4447 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4448 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4449 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4450 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4451 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4452 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4453 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4454 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4455 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4456 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4459 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4460 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4461 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4462 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4463 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4464 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4465 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4466 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
4467 (__ieee754_exp): Rename to __exp.
4468 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
4469 (__ieee754_exp): Rename to __exp.
4470 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
4471 (__ieee754_exp): Rename to __exp.
4472 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
4473 __exp.
4474 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
4475
4476 2018-11-20 DJ Delorie <dj@redhat.com>
4477
4478 * malloc/malloc.c (tcache_entry): Add key field.
4479 (tcache_put): Set it.
4480 (tcache_get): Likewise.
4481 (_int_free): Check for double free in tcache.
4482 * malloc/tst-tcfree1.c: New.
4483 * malloc/tst-tcfree2.c: New.
4484 * malloc/Makefile: Run the new tests.
4485 * manual/probes.texi: Document memory_tcache_double_free probe.
4486
4487 * dlfcn/dlerror.c (check_free): Prevent double frees.
4488
4489 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
4490
4491 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
4492
4493 2018-11-20 Joseph Myers <joseph@codesourcery.com>
4494
4495 * conform/conformtest.py (ElementTest.run): Use unique identifiers
4496 in tests. Use names for format arguments.
4497 (ConstantTest.run): Likewise.
4498 (SymbolTest.run): Likewise.
4499 (TypeTest.run): Likewise.
4500 (TagTest.run): Likewise.
4501 (FunctionTest.run): Likewise.
4502 (VariableTest.run): Likewise.
4503 (MacroFunctionTest.run): Likewise.
4504 (MacroStrTest.run): Likewise.
4505 (HeaderTests.__init__): Set self.num_tests.
4506 (HeaderTests.handle_test_line): Set test.num. Increment
4507 self.num_tests.
4508
4509 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
4510
4511 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
4512 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
4513 SEEK_SET.
4514
4515 2018-11-19 Mao Han <han_mao@c-sky.com>
4516
4517 * scripts/config.guess: Update to version 2018-08-29.
4518 * scripts/config.sub: Update to version 2018-08-29.
4519
4520 2018-11-19 Florian Weimer <fweimer@redhat.com>
4521
4522 support: Print timestamps in timeout handler.
4523 * support/support_test_main.c (print_timestamp): New function.
4524 (signal_handler): Use it to print the termination time and the
4525 time of the last write to standard output.
4526
4527 2018-11-16 Zack Weinberg <zackw@panix.com>
4528 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4529
4530 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
4531 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
4532 argument.
4533 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
4534 and add flags argument. Check flags instead of __ldbl_is_dbl when
4535 deciding whether to set is_long_double.
4536 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
4537 passing zero for flags argument.
4538 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
4539
4540 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4541 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
4542 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
4543 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
4544 variable names. Remove libc_hidden_def/libc_hidden_proto from
4545 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
4546 longer called from within the library.
4547 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
4548 for __nldbl___vstrfmon_l, declare it explicitly.
4549
4550 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
4551
4552 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
4553
4554 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
4555 macros
4556 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
4557 F_SETLK64, F_SETLKW64, respectively.
4558 * sysdeps/mach/hurd/f_setlk.c: New file.
4559 * sysdeps/mach/hurd/f_setlk.h: New file.
4560 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
4561 f_setlk.
4562 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
4563 (__libc_fcntl): Move non-flock operations to...
4564 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
4565 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
4566
4567 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
4568
4569 mktime: DEBUG_MKTIME cleanup
4570 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
4571 And it’s no longer needed now that glibc and Gnulib both have
4572 their own testing mechanisms for mktime.
4573 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
4574
4575 mktime: fix non-EOVERFLOW errno handling
4576 [BZ#23789]
4577 mktime was not properly reporting failures when the underlying
4578 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
4579 them like EOVERFLOW failures, and set errno to EOVERFLOW.
4580 The problem could happen on non-glibc platforms, with Gnulib.
4581 * time/mktime.c (guess_time_tm): Remove, replacing with ...
4582 (tm_diff): ... this simpler function, which does not change errno.
4583 All callers changed to deal with errno themselves.
4584 (ranged_convert, __mktime_internal): Return failure immediately if
4585 the underlying function reports any failure other than EOVERFLOW.
4586 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
4587 gap code fails.
4588
4589 mktime: fix bug with Y2038 DST transition
4590 [BZ#23789]
4591 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
4592 mishandle a DST transition that jumps over the Y2038 boundary.
4593 No such DST transitions are known so this is only a theoretical
4594 bug, but we might as well do things right.
4595
4596 mktime: make more room for overflow
4597 [BZ#23789]
4598 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
4599 This is so that we can add tm_diff results to a previous guess,
4600 which will be useful in a later patch.
4601
4602 mktime: simplify offset guess
4603 [BZ#23789]
4604 * time/mktime.c (__mktime_internal): Omit excess precision.
4605
4606 mktime: new test for mktime failure
4607 [BZ#23789]
4608 Based on a test suggested by Albert Aribaud in:
4609 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
4610 * time/Makefile (tests): Add bug-mktime4.
4611 * time/bug-mktime4.c: New file.
4612
4613 mktime: fix EOVERFLOW bug
4614 [BZ#23789]
4615 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
4616 Include libc-config.h, not config.h, for __set_errno.
4617 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
4618
4619 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
4620
4621 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
4622 __attribute_copy__ to copy attributes from name. Drop static qualifier
4623 to avoid warnings about leaf attribute not having effect on static
4624 functions.
4625
4626 2018-11-13 Florian Weimer <fweimer@redhat.com>
4627
4628 * malloc/malloc.c (fastbin_push_entry): New function.
4629 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
4630 (REMOVE_FB): Remove macro.
4631 (_int_malloc): Use fastbin_pop_entry and reindent.
4632 (_int_free): Use fastbin_push_entry.
4633 (malloc_consolidate): Use atomic_exchange_acquire.
4634
4635 2018-11-13 Joseph Myers <joseph@codesourcery.com>
4636
4637 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
4638 alias attribute, not with strong_alias.
4639
4640 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
4641 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
4642 with additional parameter thread.
4643 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
4644 in terms of __hidden_ver2.
4645 (hidden_tls_def): New macro.
4646 (libc_hidden_tls_def): Likewise.
4647 (rtld_hidden_tls_def): Likewise.
4648 (libm_hidden_tls_def): Likewise.
4649 (libmvec_hidden_tls_def): Likewise.
4650 (libresolv_hidden_tls_def): Likewise.
4651 (librt_hidden_tls_def): Likewise.
4652 (libdl_hidden_tls_def): Likewise.
4653 (libnss_files_hidden_tls_def): Likewise.
4654 (libnsl_hidden_tls_def): Likewise.
4655 (libnss_nisplus_hidden_tls_def): Likewise.
4656 (libutil_hidden_tls_def): Likewise.
4657 (libutil_hidden_tls_def): Likweise.
4658 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
4659 libc_hidden_tls_def.
4660 (__sim_disabled_exceptions_thread): Likewise.
4661 (__sim_round_mode_thread): Likewise.
4662
4663 * sysdeps/sparc/sparc-ifunc.h [SHARED]
4664 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
4665 copy attributes from name.
4666
4667 2018-11-12 Joseph Myers <joseph@codesourcery.com>
4668
4669 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
4670 Use __attribute_copy__ to copy attributes from name.
4671
4672 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
4673 with __hidden_ver1 call.
4674 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
4675 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
4676 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
4677 (__cosf): Do not declare here.
4678 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
4679 (__sincosf): Do not declare here.
4680 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
4681 (__sinf): Do not declare here.
4682
4683 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
4684 (__BIG_ENDIAN): Likewise.
4685 (__BYTE_ORDER): Likewise.
4686 (strong_alias): Likewise.
4687 (_strong_alias): Likewise.
4688
4689 2018-11-12 Florian Weimer <fweimer@redhat.com>
4690
4691 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
4692 function. Move after the definition of in_smallbin_range. Do not
4693 use __builtin_expect for paths that lead to a noreturn function.
4694 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
4695 because it is unclear whether this is in fact an unlikely
4696 condition.
4697 (_int_malloc, _int_free): Adjust.
4698 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
4699 variables.
4700 * malloc/arena.c (heap_trim): Likewise.
4701
4702 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
4703
4704 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
4705 it, free it if needed.
4706 (reauthenticate): Test and use ccwdir.
4707 (child_init_port): In non-resetids case, test and use ccwdir.
4708 (child_chdir): New nested function to set ccwdir.
4709 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
4710 * hurd/hurd/port.h (_hurd_port_move): New function.
4711 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
4712 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
4713 * hurd/Versions (_hurd_port_move): Export function.
4714 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
4715 symbol.
4716 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
4717 of dtablesize for allocating dtable_cloexec.
4718
4719 2018-11-09 Martin Sebor <msebor@redhat.com>
4720
4721 * include/libc-symbols.h (__attribute_copy__): Define macro unless
4722 it's already defined.
4723 (_strong_alias): Use __attribute_copy__.
4724 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
4725 * misc/sys/cdefs.h (__attribute_copy__): New macro.
4726 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
4727 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
4728 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
4729 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
4730 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
4731 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
4732 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
4733 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
4734 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
4735 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
4736 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
4737 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
4738 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
4739 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
4740 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
4741 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
4742 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
4743
4744 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4745
4746 * misc/tst-efgcvt.c: Include support/check.h and
4747 support/test-driver.c. Do not include test-skeleton.c.
4748 (error_count): Remove.
4749 (output_error): Replace increments to error_count with calls to
4750 support_record_failure.
4751 (output_r_error): Likewise.
4752 (special): Likewise.
4753 (do_test): Unconditionally return zero.
4754 (TEST_FUNCTION): Remove.
4755
4756 2018-11-09 Joseph Myers <joseph@codesourcery.com>
4757
4758 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
4759 not $(@D)/scratch.
4760 ($(linknamespace-header-tests)): Likewise.
4761
4762 * conform/conformtest.py: New file.
4763 * conform/conformtest.pl: Remove.
4764 * conform/GlibcConform.pm: Likewise.
4765 * conform/glibcconform.py (KEYWORDS_C90): New constant.
4766 (KEYWORDS_C99): Likewise.
4767 (KEYWORDS): Likewise.
4768 * conform/Makefile ($(conformtest-header-tests)): Use
4769 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
4770 option. Use --header instead of --headers.
4771 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
4772 function entries.
4773 * conform/data/spawn.h-data: Likewise.
4774 * conform/data/fcntl.h-data (openat): Add space after function
4775 name.
4776 * conform/data/wchar.h-data (wcscasecmp): Likewise.
4777 (wcscasecmp_l): Likewise.
4778 * conform/data/termios.h-data (c_cc): Add space after element
4779 name.
4780
4781 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4782
4783 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
4784 instead of manually comparing and reporting mismatching strings.
4785 * misc/tst-ldbl-error.c (do_one_test): Likewise.
4786 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
4787
4788 2018-11-08 Joseph Myers <joseph@codesourcery.com>
4789
4790 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
4791 __ASSUME_SOCKETCALL.
4792 * sysdeps/unix/sysv/linux/i386/kernel-features.h
4793 (__ASSUME_SOCKETCALL): Remove.
4794 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4795 (__ASSUME_SOCKETCALL): Likewise.
4796 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4797 (__ASSUME_SOCKETCALL): Likewise.
4798 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4799 (__ASSUME_SOCKETCALL): Likewise.
4800 * sysdeps/unix/sysv/linux/s390/kernel-features.h
4801 (__ASSUME_SOCKETCALL): Likewise.
4802 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4803 (__ASSUME_SOCKETCALL): Likewise.
4804 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4805 (__ASSUME_SOCKETCALL): Likewise.
4806
4807 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
4808
4809 [BZ #23509]
4810 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
4811 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
4812 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
4813 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
4814 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
4815 lc_unknown.
4816
4817 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
4818
4819 [BZ #17630]
4820 * resolv/tst-resolv-network.c: Add test for getnetbyname.
4821
4822 2018-11-07 Joseph Myers <joseph@codesourcery.com>
4823
4824 [BZ #23867]
4825 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4826 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4827 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4828 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
4829
4830 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4831
4832 * support/support_test_compare_string.c
4833 (support_test_compare_string): Fix printf format.
4834
4835 2018-11-07 Florian Weimer <fweimer@redhat.com>
4836
4837 Implement TEST_COMPARE_STRING.
4838 * support/check.h (TEST_COMPARE_STRING): Define.
4839 (support_test_compare_string): Declare.
4840 * support/Makefile (libsupport-routines): Add
4841 support_test_compare_string.
4842 (tests): Add tst-test_compare_string.
4843 * support/support_test_compare_string.c: New file.
4844 * support/tst-test_compare_string.c: Likewise.
4845
4846 2018-11-07 Andreas Schwab <schwab@suse.de>
4847
4848 [BZ #23864]
4849 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
4850 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
4851 Undef.
4852
4853 2018-11-06 Joseph Myers <joseph@codesourcery.com>
4854
4855 [BZ #23862]
4856 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4857 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
4858 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
4859 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
4860 Likewise.
4861
4862 2018-11-06 Florian Weimer <fweimer@redhat.com>
4863
4864 [BZ #17405]
4865 * posix/Makefile (routines): Add spawn_faction_addchdir.
4866 (tests): Add tst-spawn-chdir.
4867 * posix/Versions (GLIBC_2.29): Add
4868 posix_spawn_file_actions_addchdir_np.
4869 * posix/spawn_faction_addchdir.c: New file.
4870 * posix/spawn_faction_destroy.c
4871 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
4872 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
4873 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
4874 chdir_action.
4875 * posix/tst-spawn-chdir.c: New file.
4876 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
4877 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4878 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4879 posix_spawn_file_actions_addchdir_np.
4880 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4881 Likewise.
4882 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4883 Likewise.
4884 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4885 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4886 Likewise.
4887 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4888 Likewise.
4889 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4890 Likewise.
4891 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4892 Likewise.
4893 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4894 Likewise.
4895 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4896 Likewise.
4897 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4898 (GLIBC_2.29): Likewise.
4899 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4900 (GLIBC_2.29): Likewise.
4901 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4902 (GLIBC_2.29): Likewise.
4903 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4904 (GLIBC_2.29): Likewise.
4905 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4906 Likewise.
4907 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4908 (GLIBC_2.29): Likewise.
4909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4910 (GLIBC_2.29): Likewise.
4911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4912 (GLIBC_2.29): Likewise.
4913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4914 (GLIBC_2.29): Likewise.
4915 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4916 Likewise.
4917 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4918 Likewise.
4919 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4920 Likewise.
4921 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4922 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4923 Likewise.
4924 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4925 Likewise.
4926 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4927 Likewise.
4928 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4929 Likewise.
4930
4931 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4932
4933 * misc/Makefile (tests): Add tst-ldbl-error.
4934 * misc/tst-ldbl-error.c: New file.
4935
4936 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4937
4938 * misc/Makefile (tests): Add tst-ldbl-warn.
4939 * misc/tst-ldbl-warn.c: New file.
4940
4941 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4942
4943 * argp/Makefile (tests): Add tst-ldbl-argp.
4944 * argp/tst-ldbl-argp.c: New file.
4945
4946 2018-11-05 Arjun Shankar <arjun@redhat.com>
4947
4948 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
4949 __gconv_path_elem and call __gconv_get_path unconditionally.
4950
4951 2018-11-05 Andreas Schwab <schwab@suse.de>
4952
4953 [BZ #22927]
4954 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
4955 creating the first helper thread failed.
4956
4957 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4958
4959 * sysdeps/mach/hurd/msync.c: New file.
4960
4961 2018-11-02 Florian Weimer <fweimer@redhat.com>
4962
4963 * support/shell-container.c (copy_func): Call
4964 support_copy_file_range instead of copy_file_range to support
4965 cross-device copies.
4966
4967 2018-11-02 Florian Weimer <fweimer@redhat.com>
4968
4969 * support/test-container.c: Include <libc-pointer-arith.h> for
4970 ALIGN_UP.
4971
4972 2018-11-01 Zong Li <zong@andestech.com>
4973
4974 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
4975 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
4976 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
4977 (__FP_FRAC_SET_8): Add implementation for RV32 use.
4978
4979 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
4980 variable to avoid overlap arguments.
4981
4982 2018-11-01 Joseph Myers <joseph@codesourcery.com>
4983
4984 * posix/bug-regex22.c (main): Use puts with distinct error
4985 messages for unexpected success of re_compile_pattern, not printf
4986 with NULL argument to %s.
4987
4988 * stdio-common/bug22.c: Include <libc-diag.h>.
4989 (do_test): Disable -Wformat-overflow= warnings around fprintf
4990 calls outputting more than INT_MAX characters.
4991 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
4992 around printf call with NULL %s argument.
4993
4994 [BZ #23848]
4995 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
4996 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
4997 Undefine.
4998 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
4999 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5000 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5001 (__ASSUME_SENDTO_SYSCALL): Likewise.
5002 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5003 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5004 [!__arch64__].
5005 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5006 (__ASSUME_CONNECT_SYSCALL): Likewise.
5007 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5008 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5009 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5010 Define.
5011 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5012 Likewise.
5013 [__LINUX_KERNEL_VERSION >= 0x040400]
5014 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5015 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5016 Remove.
5017 (listen): Likewise.
5018 (setsockopt): Likewise.
5019
5020 2018-11-01 Fredrik Noring <noring@nocrew.org>
5021
5022 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5023 with the ISA override.
5024
5025 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5026
5027 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5028 #endif.
5029
5030 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5031
5032 * manual/errno.texi (EIEIO): Document how translators should
5033 translate the error message.
5034 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5035 printing trailing whitespaces refused by git.
5036 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5037 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5038 * hurd/Makefile (user-interfaces): Add pci.
5039
5040 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5041
5042 * conform/linknamespace.py: New file.
5043 * conform/linknamespace.pl: Remove file.
5044 * conform/Makefile ($(linknamespace-header-tests)): Use
5045 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5046 option.
5047
5048 2018-10-30 Florian Weimer <fweimer@redhat.com>
5049
5050 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5051 memory leaks.
5052
5053 2018-10-30 Florian Weimer <fweimer@redhat.com>
5054
5055 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5056
5057 2018-10-30 Florian Weimer <fweimer@redhat.com>
5058
5059 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5060 support_blob_repeat.
5061
5062 2018-10-30 Florian Weimer <fweimer@redhat.com>
5063
5064 Avoid spurious test failures in stdlib/test-bz22786.
5065 * support/Makefile (libsupport-routines): Add blob_repeat.
5066 (tests): Add tst-support_blob_repeat.
5067 * support/blob_repeat.h: New file.
5068 * support/blob_repeat.c: Likewise.
5069 * support/tst-support_blob_repeat.c: Likewise.
5070 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5071 support_blob_repeat_allocate.
5072
5073 2018-10-30 Andreas Schwab <schwab@suse.de>
5074
5075 [BZ #23125]
5076 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5077 Don't use tail call.
5078 * elf/tst-unwind-main.c: New file.
5079 * elf/Makefile (tests): Add tst-unwind-main.
5080 (CFLAGS-tst-unwind-main.c): Define.
5081
5082 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5083
5084 [BZ #23791]
5085 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5086 n_cs_precedes to 0.
5087 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5088
5089 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5090
5091 * conform/glibcconform.py: Do not import shutil.
5092 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5093 of mkdtemp.
5094
5095 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5096 critic_missing for versions before 3.4.
5097 * configure: Regenerated.
5098 * manual/install.texi (Tools for Compilation): Document
5099 requirement for Python to build glibc.
5100 * INSTALL: Regenerated.
5101 * Rules [PYTHON]: Make code unconditional.
5102 * benchtests/Makefile [PYTHON]: Likewise.
5103 * conform/Makefile [PYTHON]: Likewise.
5104 * manual/Makefile [PYTHON]: Likewise.
5105 * math/Makefile [PYTHON]: Likewise.
5106
5107 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5108
5109 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5110 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5111 answer to interrupt_operation, return EIEIO instead of EINTR.
5112 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5113 _hurd_intr_rpc_msg_about_to global point to start of controlled
5114 assembly snippet. Make it check canceled flag.
5115 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5116 the _hurd_intr_rpc_msg_about_to point.
5117 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5118 issue, remove cancel flag check.
5119
5120 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5121
5122 * scripts/build-many-glibcs.py: Remove compatibility for missing
5123 os.cpu_count and re.fullmatch.
5124
5125 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5126
5127 [BZ #23822]
5128 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5129 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5130 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5131
5132 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5133
5134 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5135 macro.
5136
5137 2018-10-25 Florian Weimer <fweimer@redhat.com>
5138
5139 [BZ #23562]
5140 [BZ #23821]
5141 XFAIL siginfo_t si_band conform test on sparc64.
5142 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5143 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5144 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5145 (conformtest-xfail-conds): Add sparc64-linux.
5146 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5147 sparc64.
5148 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5149
5150 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5151
5152 * elf/elf.h (NT_MIPS_DSP): New macro.
5153 (NT_MIPS_FP_MODE): Likewise.
5154
5155 2018-10-25 Zong Li <zong@andestech.com>
5156
5157 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5158 name by adding the file extension (.so).
5159
5160 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5161
5162 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5163 (test-xfail-ISO11/threads.h/linknamespace,
5164 test-xfail-ISO11/threads.h/conform): Add.
5165
5166 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5167
5168 * math/gen-libm-test.py: Import os.
5169 (ALL_FLOATS_MANUAL): New constant.
5170 (ALL_FLOATS_SUFFIX): Likewise.
5171 (Ulps.all_functions): New function.
5172 (real_all_ulps): Likewise.
5173 (generate_err_table_sub): Likewise.
5174 (generate_err_table): Likewise.
5175 (main): Handle -s and -m options.
5176 * manual/libm-err-tab.pl: Remove.
5177 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5178 instead of libm-err-tab.pl.
5179 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5180 != no].
5181 * manual/install.texi (Tools for Compilation): Document
5182 requirement for Python to build manual.
5183 * INSTALL: Regenerated.
5184
5185 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5186
5187 * bits/time64.h: New file.
5188 * include/time.h: Replace internal_time_t with __time64_t.
5189 * posix/bits/types (__time64_t): Add.
5190 * stdlib/Makefile: Add bits/time64.h to includes.
5191 * time/tzfile.c: Replace internal_time_t with __time64_t.
5192
5193 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5194
5195 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5196 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5197 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5198 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5199 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5200 prototype.
5201 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5202 * posix/spawn_faction_addclose.c
5203 (__posix_spawn_file_actions_addclose): Add hidden definition.
5204 * posix/spawn_faction_adddup2.c
5205 (__posix_spawn_file_actions_adddup2): Likewise.
5206 * posix/spawn_faction_destroy.c
5207 (__posix_spawn_file_actions_destroy): Likewise.
5208 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5209 Likewise.
5210 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5211 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5212 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5213 Likewise.
5214 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5215 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5216 Likewise.
5217
5218 2018-10-24 Andreas Schwab <schwab@suse.de>
5219
5220 [BZ #18093]
5221 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5222 format cache.
5223 * elf/cache.c (print_cache): Likewise.
5224
5225 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5226
5227 * bits/timesize.h: New file.
5228 * stdlib/Makefile (headers): Add bits/timesize.h.
5229 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5230 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5231 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5232 (__SEM_PAD_AFTER_TIME): Likewise.
5233 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5234 (__SHM_PAD_AFTER_TIME): Likewise.
5235 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5236 (__MSQ_PAD_BEFORE_TIME): Likewise.
5237 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5238 (__SEM_PAD_BEFORE_TIME): Likewise.
5239 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5240 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5241 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5242 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5243 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5244 (__MSQ_PAD_BEFORE_TIME): Likewise.
5245 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5246 (__SEM_PAD_BEFORE_TIME): Likewise.
5247 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5248 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5249 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5250 (__MSQ_PAD_BEFORE_TIME): Likewise.
5251 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5252 (__SEM_PAD_BEFORE_TIME): Likewise.
5253 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5254 (__SHM_PAD_BEFORE_TIME): Likewise.
5255 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5256 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5257 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5258
5259 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5260
5261 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5262 USE_RDTSCP is defined.
5263 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5264 USE_RDTSCP is defined.
5265
5266 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5267
5268 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5269 defined.
5270
5271 [BZ #23709]
5272 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5273 independently of other flags.
5274
5275 2018-10-23 Florian Weimer <fweimer@redhat.com>
5276
5277 * time/tst-mktime2.c (N_STRINGS): Remove.
5278 (set_timezone): New function.
5279 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5280 (mktime_test1): Report localtime failure and check errno value.
5281 Use TEST_COMPARE.
5282 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5283 (do_test): Remove alarm call. Use set_timezone and array_length.
5284
5285 2018-10-23 Andreas Schwab <schwab@suse.de>
5286
5287 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5288 (__start_context): Use END instead of PSEUDO_END.
5289
5290 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5291
5292 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5293 version to 4.19.
5294
5295 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5296 version to 4.19.
5297
5298 [BZ #23793]
5299 * wcsmbs/c32rtomb.c: New file.
5300 * wcsmbs/mbrtoc32.c: Likewise.
5301 * wcsmbs/tst-c32-state.c: Likewise.
5302 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5303 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5304 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5305 (tests): Add tst-c32-state.
5306 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5307 $(gen-locales).
5308
5309 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5310
5311 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5312 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5313
5314 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5315
5316 [BZ #23794]
5317 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5318 pair and return 0 in that case, and use saved character to
5319 interpret following character.
5320 * wcsmbs/tst-c16-surrogate.c: New file.
5321 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5322 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5323 Depend on $(gen-locales)
5324
5325 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5326
5327 [BZ #23562]
5328 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5329 (struct siginfo_t): Use correct type for si_band.
5330
5331 2018-10-19 Florian Weimer <fweimer@redhat.com>
5332
5333 [BZ #23689]
5334 * resource/bits/types/struct_rusage.h (struct rusage): Update
5335 comment on struct. Remove extraneous field comment.
5336
5337 2018-10-18 David S. Miller <davem@davemloft.net>
5338
5339 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5340 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5341 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5342 sysdep_routines in subdir elf.
5343 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5344 version for __vdso_clock_gettime.
5345 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5346 Define.
5347 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5348 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5349
5350 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5351
5352 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5353
5354 * sysdeps/i386/init-arch.h: Removed.
5355 * sysdeps/i386/i586/init-arch.h: Likewise.
5356 * sysdeps/i386/i686/init-arch.h: Likewise.
5357 * sysdeps/i386/i686/hp-timing.h: Likewise.
5358 * sysdeps/x86_64/hp-timing.h: Likewise.
5359 * sysdeps/i386/isa.h: New file.
5360 * sysdeps/i386/i586/isa.h: Likewise.
5361 * sysdeps/i386/i686/isa.h: Likewise.
5362 * sysdeps/x86_64/isa.h: Likewise.
5363 * sysdeps/x86/hp-timing.h: New file.
5364 * sysdeps/x86/init-arch.h: Include <isa.h>.
5365
5366 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5367
5368 * math/libm-test-pow.inc (pow_test_data): Do not allow
5369 divide-by-zero exception for pow(+/- 0, -Inf).
5370
5371 2018-10-17 Zack Weinberg <zackw@panix.com>
5372
5373 * manual/job.texi (Job Control is Optional): Remove node, as
5374 job control has not been optional in quite some time.
5375 (Job Control): Mention briefly that systems older than
5376 POSIX.1-2001 might not support job control.
5377 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5378 defined on systems conforming to POSIX.1-2001.
5379
5380 2018-10-17 Arjun Shankar <arjun@redhat.com>
5381
5382 [BZ #22062]
5383 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5384 indentation.
5385 * (__gconv_read_conf): Mark function static.
5386 * (once): New static variable.
5387 * (__gconv_load_conf): New function.
5388 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5389 * iconv/gconv_db.c (once): Remove static variable.
5390 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5391 __gconv_read_conf.
5392 * (__gconv_find_transform): Likewise.
5393 * iconv/tst-iconv-mt.c: New test.
5394 * iconv/Makefile: Add tst-iconv_mt.
5395
5396 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5397
5398 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5399 bits/shm-pad.h.
5400 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5401 (shmatt_t): Define as __syscall_ulong_t.
5402 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5403 and [__SHM_PAD_AFTER_TIME].
5404 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5405 Define shm_segsz and associated padding based on
5406 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5407 Use __syscall_ulong_t instead of unsigned long int.
5408 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
5409 unsigned long int.
5410 [__USE_MISC] (struct shm_info): Likewise.
5411 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
5412 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
5413 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
5414 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
5415 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
5416 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5417 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
5418 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
5419 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
5420 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
5421 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
5422
5423 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5424 bits/shmlba.h.
5425 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
5426 (SHMLBA): Remove macro.
5427 (__getpagesize): Remove function declaration.
5428 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
5429 <bits/shmlba.h>.
5430 (SHMLBA): Remove macro.
5431 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
5432 <bits/shmlba.h>.
5433 (SHMLBA): Remove macro.
5434 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
5435 <bits/shmlba.h>.
5436 (SHMLBA): Remove macro.
5437 (__getpagesize): Remove function declaration.
5438 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
5439 <bits/shmlba.h>.
5440 (SHMLBA): Remove macro.
5441 (__getshmlba): Remove function declaration.
5442 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
5443 (SHMLBA): Remove macro.
5444 (__getpagesize): Remove function declaration.
5445 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
5446 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
5447 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
5448 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
5449 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
5450 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
5451 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
5452 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
5453 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
5454 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
5455
5456 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
5457
5458 [BZ #23275]
5459 * nptl/tst-mutex10.c: New File.
5460 * nptl/Makefile (tests): Add tst-mutex10.
5461 (tst-mutex10-ENV): New variable.
5462 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
5463 Ensure that elision path is used if elision is available.
5464 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
5465 Likewise.
5466 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
5467 Likewise.
5468 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
5469 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
5470 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
5471 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
5472 Likewise.
5473 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
5474 (__pthread_mutex_cond_lock_adjust): Likewise.
5475 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
5476 Likewise.
5477 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
5478 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
5479 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
5480 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
5481 Add comments.
5482 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
5483 Use atomic_load_relaxed and atomic_store_relaxed.
5484 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
5485 Use atomic_store_relaxed.
5486
5487 2018-10-17 Andreas Schwab <schwab@suse.de>
5488
5489 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
5490 * crypt/badsalttest.c (TIMEOUT): Likewise.
5491 * crypt/sha256c-test.c (TIMEOUT): Likewise.
5492 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
5493 * io/test-lfs.c (TIMEOUT): Likewise.
5494 * libio/tst-atime.c (TIMEOUT): Likewise.
5495 * localedata/tst-leaks.c (TIMEOUT): Likewise.
5496 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
5497 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
5498 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
5499 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
5500 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
5501 * nptl/tst-cond11.c (TIMEOUT): Likewise.
5502 * nptl/tst-cond14.c (TIMEOUT): Likewise.
5503 * nptl/tst-cond15.c (TIMEOUT): Likewise.
5504 * nptl/tst-cond24.c (TIMEOUT): Likewise.
5505 * nptl/tst-cond25.c (TIMEOUT): Likewise.
5506 * nptl/tst-kill2.c (TIMEOUT): Likewise.
5507 * nptl/tst-kill3.c (TIMEOUT): Likewise.
5508 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
5509 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
5510 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
5511 * nptl/tst-once2.c (TIMEOUT): Likewise.
5512 * nptl/tst-once3.c (TIMEOUT): Likewise.
5513 * nptl/tst-once4.c (TIMEOUT): Likewise.
5514 * nptl/tst-robust8.c (TIMEOUT): Likewise.
5515 * nptl/tst-robust9.c (TIMEOUT): Likewise.
5516 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
5517 * nptl/tst-sem14.c (TIMEOUT): Likewise.
5518 * nptl/tst-sem6.c (TIMEOUT): Likewise.
5519 * nptl/tst-signal3.c (TIMEOUT): Likewise.
5520 * nptl/tst-spin4.c (TIMEOUT): Likewise.
5521 * nptl/tst-tls3.c (TIMEOUT): Likewise.
5522 * nptl/tst-tls4.c (TIMEOUT): Likewise.
5523 * posix/tst-chmod.c (TIMEOUT): Likewise.
5524 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
5525 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
5526 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
5527 * posix/tst-regex2.c (TIMEOUT): Likewise.
5528 * posix/tst-waitid.c (TIMEOUT): Likewise.
5529 * rt/tst-aio.c (TIMEOUT): Likewise.
5530 * rt/tst-aio10.c (TIMEOUT): Likewise.
5531 * rt/tst-aio4.c (TIMEOUT): Likewise.
5532 * rt/tst-aio5.c (TIMEOUT): Likewise.
5533 * rt/tst-aio6.c (TIMEOUT): Likewise.
5534 * rt/tst-aio64.c (TIMEOUT): Likewise.
5535 * rt/tst-aio7.c (TIMEOUT): Likewise.
5536 * rt/tst-aio9.c (TIMEOUT): Likewise.
5537 * rt/tst-clock.c (TIMEOUT): Likewise.
5538 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
5539 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
5540 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
5541 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
5542 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
5543 * rt/tst-timer4.c (TIMEOUT): Likewise.
5544 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
5545 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
5546 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
5547 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
5548 * time/tst-ftime.c (TIMEOUT): Likewise.
5549 * timezone/tst-tzset.c (TIMEOUT): Likewise.
5550
5551 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5552
5553 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
5554 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
5555 for thunderX2.
5556
5557 2018-10-15 Joseph Myers <joseph@codesourcery.com>
5558
5559 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5560 bits/sem-pad.h.
5561 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
5562 instead of <bits/wordsize.h>.
5563 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
5564 and [__SEM_PAD_AFTER_TIME].
5565 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
5566 __syscall_ulong_t instead of unsigned long int.
5567 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
5568 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
5569 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
5570 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
5571 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
5572 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
5573 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
5574 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
5575 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
5576 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
5577 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
5578
5579 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
5580
5581 regex: simplify by using intprops.h
5582 [BZ#23744]
5583 * posix/regex_internal.h [_LIBC]: Include intprops.h.
5584 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
5585 intprops.h defines them.
5586
5587 regex: __builtin_expect → __glibc_unlikely
5588 [BZ#23744]
5589 This refactoring was prompted by a problem when the regex code is
5590 used as part of Gnulib and when the builder’s compiler does not grok
5591 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
5592 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
5593 Although this refactoring does not fix the problem directly,
5594 we might as well have Gawk use the now-preferred glibc style for when
5595 __builtin_expect is unavailable.
5596 * posix/regex_internal.h (BE): Remove.
5597 All uses replaced by __glibc_unlikely or __glibc_likely.
5598
5599 2018-10-11 Joseph Myers <joseph@codesourcery.com>
5600
5601 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5602 bits/msq-pad.h.
5603 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
5604 instead of <bits/wordsize.h>.
5605 (msgqnum_t): Define as __syscall_ulong_t.
5606 (msglen_t): Likewise.
5607 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
5608 and [__MSQ_PAD_AFTER_TIME].
5609 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
5610 __syscall_ulong_t instead of unsigned long int.
5611 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
5612 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
5613 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
5614 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
5615 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
5616 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
5617 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
5618 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
5619 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
5620 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
5621 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
5622
5623 2018-10-10 Joseph Myers <joseph@codesourcery.com>
5624
5625 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
5626 (struct shmid_ds): Condition padding after time fields on
5627 [__WORDSIZE == 32].
5628 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
5629 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
5630 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
5631
5632 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
5633 (struct semid_ds): Condition padding after time fields on
5634 [__WORDSIZE == 32].
5635 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
5636 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
5637 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
5638 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
5639
5640 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
5641 (struct msqid_ds): Condition padding after time fields on
5642 [__WORDSIZE == 32].
5643 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
5644 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
5645 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
5646 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
5647
5648 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5649
5650 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
5651
5652 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
5653
5654 * libio/tst-readline.c (TIMEOUT): Define.
5655
5656 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
5657
5658 mktime fix for Gnulib + coreutils
5659 [BZ#23745]
5660 This fix affects only Gnulib. Problem discovered when
5661 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
5662 * time/mktime.c:
5663 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
5664 Do not define since it is not used. Defining an unused static
5665 function prompts a warning from GCC when Coreutils is configured
5666 with --enable-gcc-warnings.
5667
5668 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5669
5670 * benchtests/scripts/compare_bench.py (main): set float type on
5671 threshold argument.
5672
5673 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
5674
5675 [BZ #23740]
5676 * localedata/locales/kl_GL (mon): Update, the relative case.
5677 (alt_mon): Add, fill with month names in the nominative case.
5678 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
5679 (d_fmt): Set to "%b %d %Y".
5680
5681 2018-10-04 Joseph Myers <joseph@codesourcery.com>
5682
5683 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
5684 <bits/mman-linux.h>.
5685 (PROT_READ): Don't define here.
5686 (PROT_WRITE): Likewise.
5687 (PROT_EXEC): Likewise.
5688 (PROT_NONE): Likewise.
5689 (PROT_GROWSDOWN): Likewise.
5690 (PROT_GROWSUP): Likewise.
5691 (MAP_SHARED): Likewise.
5692 (MAP_PRIVATE): Likewise.
5693 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
5694 [__USE_MISC] (MAP_FILE): Likewise.
5695 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
5696 [__USE_MISC] (MAP_ANON): Likewise.
5697 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
5698 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
5699 (MCL_CURRENT): Likewise.
5700 (MCL_FUTURE): Likewise.
5701 (MCL_ONFAULT): Likewise.
5702 [__USE_MISC] (MADV_NORMAL): Likewise.
5703 [__USE_MISC] (MADV_RANDOM): Likewise.
5704 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
5705 [__USE_MISC] (MADV_WILLNEED): Likewise.
5706 [__USE_MISC] (MADV_DONTNEED): Likewise.
5707 [__USE_MISC] (MADV_FREE): Likewise.
5708 [__USE_MISC] (MADV_REMOVE): Likewise.
5709 [__USE_MISC] (MADV_DONTFORK): Likewise.
5710 [__USE_MISC] (MADV_DOFORK): Likewise.
5711 [__USE_MISC] (MADV_HWPOISON): Likewise.
5712 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
5713 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
5714 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
5715 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
5716 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
5717 (__MAP_ANONYMOUS): New macro.
5718 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
5719 <bits/mman-linux.h> inclusion.
5720 (MAP_FIXED): Likewise.
5721 (MS_SYNC): Likewise.
5722 (MS_ASYNC): Likewise.
5723 (MS_INVALIDATE): Likewise.
5724 [__USE_MISC] (MADV_MERGEABLE): Likewise.
5725 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
5726 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
5727 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
5728 [__USE_MISC] (MADV_DONTDUMP): Likewise.
5729 [__USE_MISC] (MADV_DODUMP): Likewise.
5730 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
5731 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
5732
5733 [BZ #23735]
5734 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
5735 Define.
5736 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
5737 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
5738 Add test-nldbl-redirect.
5739 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
5740 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
5741 $(objpfx)libnldbl_nonshared.a.
5742
5743 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
5744
5745 * support/support.h (support_objdir_elf_ldso): New variable.
5746 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
5747 * support/Makefile (CFLAGS-support_paths.c): Add definition
5748 for OBJDIR_ELF_LDSO_PATH.
5749 * support/test-container.c (main): Search for the ld.so
5750 which is also used by the testsuite.
5751
5752 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
5753
5754 [BZ #20209]
5755 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
5756 should be "sap" rather than "sab".
5757 (day): Fix spelling of Sunday, should be "sapaat" rather than
5758 "sabaat".
5759
5760 2018-10-02 Joseph Myers <joseph@codesourcery.com>
5761
5762 * math/libm-test-fma.inc (fma_test_data): Add more tests.
5763
5764 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
5765
5766 [BZ #19444]
5767 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
5768 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
5769 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
5770
5771 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5772
5773 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
5774
5775 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
5776
5777 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
5778 Add -mrtm.
5779 (CFLAGS-elision-unlock.c): Likewise.
5780 (CFLAGS-elision-timed.c): Likewise.
5781 (CFLAGS-elision-trylock.c): Likewise.
5782 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
5783
5784 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5785
5786 [BZ #21037]
5787 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
5788 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
5789 new fd_to_filename interface.
5790 * libio/freopen64.c (freopen64): Likewise.
5791 * libio/tst-memstream.h: New file.
5792 * libio/tst-memstream4.c: Likewise.
5793 * libio/tst-wmemstream4.c: Likewise.
5794 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
5795 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
5796 and remove internal dynamic allocation.
5797
5798 2018-10-01 Joseph Myers <joseph@codesourcery.com>
5799
5800 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
5801 (MREMAP_MAYMOVE): Do not define here.
5802 [__USE_GNU] (MREMAP_FIXED): Likewise.
5803 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
5804 (MREMAP_MAYMOVE): Define here instead.
5805 [__USE_GNU] (MREMAP_FIXED): Likewise.
5806 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
5807 (MREMAP_MAYMOVE): Remove.
5808 [__USE_GNU] (MREMAP_FIXED): Likewise.
5809
5810 2018-09-28 Joseph Myers <joseph@codesourcery.com>
5811
5812 * math/fromfp.h: Do not include <math_private.h>.
5813 * math/s_cacosh_template.c: Likewise.
5814 * math/s_casin_template.c: Likewise.
5815 * math/s_casinh_template.c: Likewise.
5816 * math/s_ccos_template.c: Likewise.
5817 * math/s_cproj_template.c: Likewise.
5818 * math/s_fdim_template.c: Likewise.
5819 * math/s_fmaxmag_template.c: Likewise.
5820 * math/s_fminmag_template.c: Likewise.
5821 * math/s_iseqsig_template.c: Likewise.
5822 * math/s_ldexp_template.c: Likewise.
5823 * math/s_nextdown_template.c: Likewise.
5824 * math/w_log1p_template.c: Likewise.
5825 * math/w_scalbln_template.c: Likewise.
5826 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
5827 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
5828 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
5829 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
5830 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
5831 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
5832 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
5833 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
5834 * sysdeps/i386/fpu/s_atanl.c: Likewise.
5835 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
5836 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
5837 * sysdeps/i386/fpu/s_fdim.c: Likewise.
5838 * sysdeps/i386/fpu/s_logbl.c: Likewise.
5839 * sysdeps/i386/fpu/s_rintl.c: Likewise.
5840 * sysdeps/i386/fpu/s_significandl.c: Likewise.
5841 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
5842 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
5843 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5844 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5845 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
5846 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
5847 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5848 * sysdeps/ieee754/k_standardf.c: Likewise.
5849 * sysdeps/ieee754/k_standardl.c: Likewise.
5850 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5851 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
5852 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
5853 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
5854 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
5855 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
5856 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
5857 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
5858 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
5859 * sysdeps/ieee754/s_signgam.c: Likewise.
5860 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
5861 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
5862 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
5863 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
5864 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
5865 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
5866 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
5867 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
5868 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
5869 * sysdeps/riscv/rvd/s_finite.c: Likewise.
5870 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
5871 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
5872 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
5873 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
5874 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
5875 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
5876 * sysdeps/riscv/rvf/fegetround.c: Likewise.
5877 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
5878 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
5879 * sysdeps/riscv/rvf/fesetround.c: Likewise.
5880 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
5881 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
5882 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
5883 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
5884 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
5885 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
5886 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
5887 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
5888 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
5889 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
5890 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
5891 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
5892 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
5893 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
5894 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
5895 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
5896 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
5897 <math_private.h>.
5898 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
5899
5900 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
5901
5902 [BZ #23716]
5903 * sysdeps/i386/dl-cet.c: Removed.
5904 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
5905 prototype.
5906 (_dl_runtime_profile_shstk): Likewise.
5907 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
5908 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
5909
5910 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5911
5912 [BZ #23579]
5913 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
5914 do_test_with_invalid_iov): New tests.
5915 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
5916 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
5917 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
5918 errno is ENOSYS.
5919 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
5920 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
5921 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
5922
5923 2018-09-27 Joseph Myers <joseph@codesourcery.com>
5924
5925 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
5926 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
5927 (MATH_REDIRECT_BINARY_ARGS): New macro.
5928 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
5929 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
5930 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
5931 header inclusion.
5932 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
5933 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5934 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
5935 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5936 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
5937 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
5938 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
5939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
5940 Likewise.
5941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
5942 Likewise.
5943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
5944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
5945 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
5946 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
5947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
5948 Likewise.
5949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
5950 Likewise.
5951 * sysdeps/generic/math_private_calls.h
5952 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
5953 Do not declare and define as an inline function.
5954 * math/divtc3.c (__divtc3): Use copysign functions instead of
5955 __copysign variants.
5956 * math/multc3.c (__multc3): Likewise.
5957 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
5958 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
5959 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
5960 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
5961 Likewise.
5962 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
5963 (__ieee754_yn): Likewise.
5964 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
5965 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
5966 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
5967 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
5968 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
5969 (__sin): Likewise.
5970 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
5971 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5972 Likewise.
5973 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
5974 Likewise.
5975 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
5976 Likewise.
5977 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
5978 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
5979 Likewise.
5980 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
5981 (__ieee754_ynf): Likewise.
5982 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
5983 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
5984 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
5985 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
5986 Likewise.
5987 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
5988 (__ieee754_ynl): Likewise.
5989 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
5990 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
5991 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
5992 Likewise.
5993 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
5994 (__ieee754_ynl): Likewise.
5995 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
5996 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
5997 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
5998 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
5999 Likewise.
6000 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6001 (__ieee754_ynl)
6002 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6003 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6004 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6005 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6006 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6007
6008 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6009 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6010 using MATH_REDIRECT.
6011 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6012 header inclusion.
6013 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6014 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6015 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6016 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6017 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6018 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6019 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6020 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6024 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6025 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6026 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6027 (round): Redirect to __round.
6028 (__roundl): Call round instead of __round.
6029 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6030 Remove macro.
6031 [_ARCH_PWR5X] (__roundf): Likewise.
6032 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6033 functions instead of __round variants.
6034 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6035 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6036 Likewise.
6037 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6038 Likewise.
6039 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6040 Likewise.
6041 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6042 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6043 __lroundl.
6044 (__ieee754_expl): Call roundl instead of __roundl.
6045
6046 2018-09-27 Andreas Schwab <schwab@suse.de>
6047
6048 [BZ #23717]
6049 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6050 (do_test): Make st1 static.
6051
6052 2018-09-26 Andreas Schwab <schwab@suse.de>
6053
6054 [BZ #23707]
6055 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6056 * elf/Makefile (tests): Add tst-unwind-ctor.
6057 (modules-names): Add tst-unwind-ctor-lib.
6058 ($(objpfx)tst-unwind-ctor): Depend on
6059 $(objpfx)tst-unwind-ctor-lib.so.
6060
6061 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6062
6063 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6064 file. Most contents moved from ....
6065 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6066 and include <bits/mman-map-flags-generic.h>.
6067 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6068 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6069 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6070 <bits/mman-map-flags-generic.h>.
6071 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6072 macros defined in <bits/mman-map-flags-generic.h>.
6073 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6074 <bits/mman-map-flags-generic.h>.
6075 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6076 defined in <bits/mman-map-flags-generic.h>.
6077
6078 2018-09-26 Andreas Schwab <schwab@suse.de>
6079
6080 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6081 output.
6082
6083 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6084 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6085 Fangrui Song <maskray@google.com>
6086
6087 [BZ #20480]
6088 * config.make.in (have-textrel_ifunc): New define.
6089 * configure.ac: Add check if linker supports textrel relocation with
6090 ifunc.
6091 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6092 tst-ifunc-textrel.
6093 (CFLAGS-tst-ifunc-textrel.c): New rule.
6094 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6095 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6096 * elf/tst-ifunc-textrel.c: New file.
6097
6098 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6099
6100 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6101 <bits/procfs-prregset.h>.
6102 (prgregset_t): Define using __prgregset_t.
6103 (prfpregset_t): Define using __prfpregset_t.
6104 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6105 (sysdep_headers): Add bits/procfs-prregset.h.
6106 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6107 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6108 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6109 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6110
6111 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6112 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6113 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6114 pr_uid and pr_gid.
6115 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6116 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6117 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6118 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6119 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6120 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6121 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6122 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6123 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6124 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6125 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6126 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6127 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6128 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6129 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6130 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6131 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6132 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6133 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6134 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6135 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6136 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6137 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6138 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6139
6140 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6141 AArch64 version. Include <bits/procfs.h>.
6142 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6143 (sysdep_headers): Add bits/procfs.h.
6144 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6145 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6146 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6147 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6148 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6149 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6150 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6151 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6152 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6153 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6154 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6155 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6156 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6157 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6158 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6159 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6160 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6161
6162 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6163
6164 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6165 Use libsupport.
6166
6167 2018-09-25 Arjun Shankar <arjun@redhat.com>
6168
6169 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6170 (__gconv_max_path_elem_len): Likewise.
6171 (__gconv_nmodules): Likewise.
6172 (__gconv_get_path): Likewise.
6173 (path_elem): Move to ...
6174 * iconv/gconv_conf.c: ... here.
6175 (__gconv_get_path): Mark function static.
6176 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6177 * iconv/gconv_open.c: ... here.
6178
6179 2018-09-24 Andreas Schwab <schwab@suse.de>
6180
6181 * scripts/haveversions.awk: New file.
6182 * Makerules ($(common-objpfx)Versions.def)
6183 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6184 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6185 Move rules ...
6186 * Makeconfig ($(common-objpfx)Versions.def)
6187 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6188 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6189 ... here.
6190 ($(common-objpfx)Versions.mk): New rule. Include it.
6191 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6192 Emit error if build-obsolete-nsl = yes.
6193 * manual/install.texi (Configuring and compiling): Describe
6194 --enable-obsolete-nsl as unavaiable after version 2.28.
6195 * INSTALL: Regenerate.
6196
6197 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6198
6199 * NEWS: Add note about new TLE support on powerpc64le.
6200 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6201 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6202 __ununsed1.
6203 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6204 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6205 * sysdeps/powerpc/powerpc32/sysdep.h,
6206 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6207 ABORT_TRANSACTION): Remove macros.
6208 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6209 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6210 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6212 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6213 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6214 usage.
6215 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6216
6217 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6218
6219 [BZ #10425]
6220 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6221 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6222 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6223 which is the same as in it_IT.
6224 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6225 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6226
6227 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6228
6229 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6230 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6231 using MATH_REDIRECT.
6232 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6233 header inclusion.
6234 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6235 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6236 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6237 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6238 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6239 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6240 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6242 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6244 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6245 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6246 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6247 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6248 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6249 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6250 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6251 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6252 (ceil): Redirect to __ceil.
6253 (floor): Redirect to __floor.
6254 (trunc): Redirect to __trunc.
6255 (__truncl): Call trunc instead of __trunc.
6256 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6257 Remove macro.
6258 [_ARCH_PWR5X] (__truncf): Likewise.
6259 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6260 trunc functions instead of __trunc variants.
6261 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6262 Likewise.
6263 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6264 Likewise.
6265 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6266 Likewise.
6267 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6268 Likewise.
6269
6270 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6271 [__i586__ || __pentium__].
6272 [__i486__]: Handle explicitly.
6273 (HAS_CPUID): Define to 1 if above macros are undefined.
6274 (HAS_I586): Likewise.
6275 (HAS_I686): Likewise.
6276
6277 2018-09-20 Florian Weimer <fweimer@redhat.com>
6278
6279 * misc/tst-gethostid.c: New file.
6280 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6281 (tst-gethostid): Link with -ldl.
6282
6283 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6284
6285 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6286 value from gethostbyname_r.
6287
6288 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6289
6290 * stdlib/tst-setcontext9.c (f1): Rename to...
6291 (f1a): ... this.
6292 (f1b): New function implementing lower half of f1 in alternate stack.
6293
6294 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6295
6296 Fix mktime localtime offset confusion
6297 [BZ #23603]
6298 * include/time.h (__mktime_internal): The localtime offset is now
6299 of type long int instead of time_t. This is the longstanding type
6300 in glibc, and it is more than enough to represent difference
6301 between localtime and gmtime even if it is 32 bits and time_t is
6302 64. Changing it now will let us avoid an unnecessary change when
6303 time_t is widened to 64 bits on 32-bit platforms.
6304 * time/mktime-internal.h (mktime_offset_t): Now long int.
6305
6306 Merge mktime, timegm from upstream Gnulib
6307 [BZ #23603][BZ #16346]
6308 This fixes some obscure problems with integer overflow.
6309 Although it looks scary, it is almost all a byte-for-byte copy
6310 from Gnulib, and the Gnulib code has been tested reasonably well.
6311 * include/intprops.h: New file, copied from Gnulib.
6312 * include/verify.h, time/mktime-internal.h:
6313 New tiny files, simplified from Gnulib.
6314 * time/mktime.c: Copy from Gnulib. This has the following changes:
6315 Do not include config.h if DEBUG_MKTIME is nonzero.
6316 Include stdbool.h, intprops.h, verify.h.
6317 Include string.h only if needed.
6318 Include stdlib.h on MS-Windows.
6319 Include mktime-internal.h.
6320 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6321 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6322 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6323 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6324 simplify later conditionals; default the others to zero. Use
6325 these conditionals to express only the code needed on the current
6326 platform. In uses of these conditionals, explicitly spell out how
6327 _LIBC affects things, so it’s easier to review from a glibc
6328 viewpoint.
6329 (WRAPV): Remove; no longer needed now that we have
6330 systematic overflow checking.
6331 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6332 compartmentalize tzset issues. Move system-dependent tzsettish
6333 code here from mktime.
6334 (verify): Remove; now done by verify.h. All uses changed.
6335 (long_int): Use a more-conservative definition, to avoid
6336 integer overflow.
6337 (SHR): Remove, replacing with ...
6338 (shr): New function, which means we needn’t worry about side
6339 effects in args, and conversion analysis is simpler.
6340 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6341 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6342 (time_t_avg, time_t_add_ok): Remove.
6343 (mktime_min, mktime_max): New constants.
6344 (leapyear, isdst_differ): Use bool for booleans.
6345 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6346 Use long_int, not time_t, for mktime differences.
6347 (long_int_avg): New function, replacing time_t_avg.
6348 INT_ADD_WRAPV replaces time_t_add_ok.
6349 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6350 All uses changed.
6351 (convert_time): New function.
6352 (ranged_convert): Use it.
6353 (__mktime_internal): Last arg now points to mktime_offset_t, not
6354 time_t. All uses changed. This is a no-op on glibc, where
6355 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6356 offset guess. Directly check for integer overflow instead of
6357 using a heuristic that works only 99.9...% of the time.
6358 Access *OFFSET only once, to avoid an unlikely race if the
6359 compiler delays a load and if this cascades into a signed integer
6360 overflow.
6361 (mktime): Move tzsettish code to my_tzset, and move
6362 localtime_offset to within mktime so that it doesn’t
6363 need a separate ifdef.
6364 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6365 instead of localtime.
6366 * time/timegm.c: Copy from Gnulib. This has the following changes:
6367 Include mktime-internal.h.
6368 [!_LIBC]: Include config.h and time.h. Do not include
6369 timegm.h or time_r.h. Make __mktime_internal a macro,
6370 and include mktime-internal.h to get its declaration.
6371 (timegm): Temporary is now mktime_offset_t, not time_t.
6372 This affects only Gnulib.
6373
6374 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6375
6376 [BZ #23637]
6377 * string/test-strstr.c (pr23637): New function.
6378 (test_main): Add tests with longer needles.
6379 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6380 * string/strstr.c (AVAILABLE): Likewise.
6381
6382 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6383
6384 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6385
6386 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6387
6388 * NEWS: Mention pow improvements.
6389 * math/Makefile (type-double-routines): Add e_pow_log_data.
6390 * sysdeps/generic/math_private.h (__exp1): Remove.
6391 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6392 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6393 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6394 contraction.
6395 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6396 (exp_inline): Remove.
6397 (__ieee754_exp): Only single double input is handled.
6398 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6399 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6400 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6401 (__pow_log_data): Define.
6402 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6403 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6404 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6405 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6406 contraction.
6407 (CFLAGS-e_pow-fma4.c): Likewise.
6408
6409 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
6410
6411 Simplify tzfile fstat failure code
6412 [BZ #21716]
6413 * time/tzfile.c (__tzfile_read): Simplify slightly.
6414
6415 Fix tzfile low-memory assertion failure
6416 [BZ #21716]
6417 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
6418 when registering time zone abbreviations.
6419
6420 2018-09-18 Joseph Myers <joseph@codesourcery.com>
6421
6422 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
6423 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
6424 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
6425 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
6426 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
6427 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
6428 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
6429 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6430 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
6431
6432 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
6433 __ceil.
6434 (__ceill): Call ceil instead of __ceil.
6435 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
6436 __floor.
6437 (__floorl): Call floor instead of __floor.
6438
6439 2018-09-17 Joseph Myers <joseph@codesourcery.com>
6440
6441 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6442 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
6443 using MATH_REDIRECT.
6444 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
6445 header inclusion.
6446 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
6447 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6448 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6449 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
6450 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6451 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6452 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
6453 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
6454 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
6455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
6456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
6457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
6458 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6459 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6460 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
6461 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
6462 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
6463 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
6464 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
6465 Remove macro.
6466 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
6467 functions instead of __ceil variants.
6468 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6469 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6470 Likewise.
6471 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6472 Likewise.
6473 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6474 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6475 Likewise.
6476 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6477 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6478
6479 [BZ #21286]
6480 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
6481 constant.
6482 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
6483 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
6484 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
6485 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
6486 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
6487 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
6488 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
6489 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
6490 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
6491 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
6492 (ILL_BADIADDR): Remove constant.
6493 (TRAP_BRANCH): Likewise.
6494 (TRAP_HWBKPT): Likewise.
6495
6496 2018-09-14 Joseph Myers <joseph@codesourcery.com>
6497
6498 [BZ #23656]
6499 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
6500 Remove [_MIPS_SIM = _ABIN32] conditional case.
6501 (struct elf_prpsinfo): Likewise.
6502
6503 [BZ #23649]
6504 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
6505 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
6506 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
6507 Likewise.
6508 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
6509 elf_prpsinfo): Likewise.
6510 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
6511 elf_prpsinfo): Likewise.
6512 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
6513 Likewise.
6514
6515 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6516 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
6517 using MATH_REDIRECT.
6518 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
6519 header inclusion.
6520 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
6521 * sysdeps/alpha/fpu/s_rint.c: Likewise.
6522 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
6523 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6524 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6525 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6526 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
6527 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6528 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6529 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6530 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
6531 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
6532 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
6533 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
6534 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
6535 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6536 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6537 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
6538 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6539 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6541 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
6542 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
6543 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
6544 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
6545 * sysdeps/x86_64/fpu/math_private.h: Remove file.
6546 * math/e_scalb.c (invalid_fn): Use rint functions instead of
6547 __rint variants.
6548 * math/e_scalbf.c (invalid_fn): Likewise.
6549 * math/e_scalbl.c (invalid_fn): Likewise.
6550 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6551 Likewise.
6552 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6553 Likewise.
6554 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6555 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
6556 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6557 Likewise.
6558 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6559 Likewise.
6560 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6561 Likewise.
6562 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
6563 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
6564
6565 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6566 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
6567 New macro.
6568 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6569 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
6570 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6571 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
6572 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6573 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
6574 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6575 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
6576 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6577 && !NO_MATH_REDIRECT] (floor): Likewise.
6578 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
6579 header inclusion.
6580 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
6581 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6582 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6583 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
6584 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6585 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6586 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
6587 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
6588 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
6589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
6590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
6591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
6592 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6593 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6594 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
6595 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
6596 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
6597 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
6598 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
6599 Remove macro.
6600 [_ARCH_PWR5X] (__floorf): Likewise.
6601 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
6602 inline function.
6603 [__SSE4_1__] (__floorf): Likewise.
6604 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
6605 instead of __floor variants.
6606 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
6607 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
6608 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
6609 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
6610 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
6611 * math/w_tgamma_compat.c (__tgamma): Likewise.
6612 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
6613 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
6614 * math/w_tgammal_compat.c (__tgammal): Likewise.
6615 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
6616 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
6617 Likewise.
6618 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
6619 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
6620 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
6621 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
6622 Likewise.
6623 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
6624 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
6625 Likewise.
6626 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
6627 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
6628 Likewise.
6629 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
6630 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
6631 Likewise.
6632 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
6633 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
6634 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
6635 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
6636 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6637 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6638
6639 2018-09-12 Joseph Myers <joseph@codesourcery.com>
6640
6641 * elf/Makefile (modules-names-tests): New variable.
6642
6643 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6644
6645 * NEWS: Mention log2 improvements.
6646 * math/Makefile (type-double-routines): Add e_log2_data.
6647 * sysdeps/i386/fpu/e_log2_data.c: New file.
6648 * sysdeps/ia64/fpu/e_log2_data.c: New file.
6649 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
6650 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
6651 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
6652 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
6653 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
6654
6655 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
6656
6657 * NEWS: Mention log improvement.
6658 * math/Makefile (type-double-routines): Add e_log_data.
6659 * sysdeps/i386/fpu/e_log_data.c: New file.
6660 * sysdeps/ia64/fpu/e_log_data.c: New file.
6661 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
6662 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
6663 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
6664 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
6665 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
6666 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
6667
6668 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
6669 Xuepeng Guo <xuepeng.guo@intel.com>
6670
6671 [BZ #23606]
6672 * sysdeps/i386/start.S: Include <sysdep.h>
6673 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
6674 enabled. Add cfi_undefined (eip).
6675
6676 2018-09-11 Joseph Myers <joseph@codesourcery.com>
6677
6678 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
6679 (MOVQ): Likewise.
6680 (EXTRACT_WORDS64): Likewise.
6681 (INSERT_WORDS64): Likewise.
6682 (GET_FLOAT_WORD): Likewise.
6683 (SET_FLOAT_WORD): Likewise.
6684
6685 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
6686 argument.
6687 (Config.build_gcc): Use --disable-libsanitizer for first GCC
6688 build, but not for second build if --full-gcc. Use
6689 --enable-languages=all for second build if --full-gcc.
6690 (get_parser): Add --full-gcc option.
6691 (main): Update call to Context.
6692
6693 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
6694
6695 [BZ #10797]
6696 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
6697 Single Quotation Mark).
6698 (thousands_sep): Likewise.
6699 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
6700 * localedata/locales/it_IT (thousands_sep): Use ".".
6701 (grouping): Use "3;3".
6702
6703 2018-09-10 Joseph Myers <joseph@codesourcery.com>
6704
6705 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
6706 x86_64 and i686 configs using --enable-obsolete-rpc
6707 --enable-obsolete-nsl.
6708
6709 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6710
6711 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6712
6713 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
6714
6715 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6716 Increment size of new_argv by one.
6717
6718 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
6719
6720 [BZ #17426]
6721 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
6722 * localedata/locales/ar_IN (d_fmt): Likewise.
6723 * localedata/locales/bhb_IN (d_fmt): Likewise.
6724 * localedata/locales/bho_IN (d_fmt): Likewise.
6725 * localedata/locales/bn_BD (d_fmt): Likewise.
6726 * localedata/locales/bn_IN (d_fmt): Likewise.
6727 * localedata/locales/doi_IN (d_fmt): Likewise.
6728 * localedata/locales/gu_IN (d_fmt): Likewise.
6729 * localedata/locales/hi_IN (d_fmt): Likewise.
6730 * localedata/locales/hne_IN (d_fmt): Likewise.
6731 * localedata/locales/kn_IN (d_fmt): Likewise.
6732 * localedata/locales/mag_IN (d_fmt): Likewise.
6733 * localedata/locales/mai_IN (d_fmt): Likewise.
6734 * localedata/locales/mjw_IN (d_fmt): Likewise.
6735 * localedata/locales/ml_IN (d_fmt): Likewise.
6736 * localedata/locales/mni_IN (d_fmt): Likewise.
6737 * localedata/locales/mr_IN (d_fmt): Likewise.
6738 * localedata/locales/pa_IN (d_fmt): Likewise.
6739 * localedata/locales/raj_IN (d_fmt): Likewise.
6740 * localedata/locales/sat_IN (d_fmt): Likewise.
6741 * localedata/locales/sd_IN (d_fmt): Likewise.
6742 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
6743 * localedata/locales/ta_IN (d_fmt): Likewise.
6744 * localedata/locales/ta_LK (d_fmt): Likewise.
6745 * localedata/locales/tcy_IN (d_fmt): Likewise.
6746 * localedata/locales/ur_IN (d_fmt): Likewise.
6747
6748 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
6749 * localedata/locales/ks_IN (d_fmt): Likewise.
6750 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
6751
6752 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
6753 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
6754 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
6755 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
6756
6757 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
6758
6759 * NEWS: Mention exp and exp2 improvements.
6760 * math/Makefile (libm-support): Remove t_exp.
6761 (type-double-routines): Add math_err and e_exp_data.
6762 * sysdeps/aarch64/libm-test-ulps: Update.
6763 * sysdeps/arm/libm-test-ulps: Update.
6764 * sysdeps/i386/fpu/e_exp_data.c: New file.
6765 * sysdeps/i386/fpu/math_err.c: New file.
6766 * sysdeps/i386/fpu/t_exp.c: Remove.
6767 * sysdeps/ia64/fpu/e_exp_data.c: New file.
6768 * sysdeps/ia64/fpu/math_err.c: New file.
6769 * sysdeps/ia64/fpu/t_exp.c: Remove.
6770 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
6771 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
6772 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
6773 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
6774 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
6775 * sysdeps/ieee754/dbl-64/math_config.h: New file.
6776 * sysdeps/ieee754/dbl-64/math_err.c: New file.
6777 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
6778 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
6779 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
6780 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
6781 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
6782 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
6783 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
6784 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6785 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6786
6787 2018-09-05 Joseph Myers <joseph@codesourcery.com>
6788
6789 * sysdeps/alpha/fpu/math_private.h: Remove.
6790
6791 * sysdeps/generic/math_private.h
6792 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
6793 Move this inline function ....
6794 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
6795 * include/math.h [!_ISOMAC]: To here....
6796
6797 2018-09-04 Joseph Myers <joseph@codesourcery.com>
6798
6799 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
6800 code ....
6801 [!FE_HAVE_ROUNDING_MODES]: And this code ....
6802 * include/fenv.h [!_ISOMAC]: ... to here.
6803 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
6804 (feraiseexcept): Likewise.
6805 * math/fromfp.h: Do not include <fenv_private.h>.
6806 * math/s_cexp_template.c: Likewise.
6807 * math/s_csin_template.c: Likewise.
6808 * math/s_csinh_template.c: Likewise.
6809 * math/s_ctan_template.c: Likewise.
6810 * math/s_ctanh_template.c: Likewise.
6811 * math/s_iseqsig_template.c: Likewise.
6812 * math/w_acos_compat.c: Likewise.
6813 * math/w_acosf_compat.c: Likewise.
6814 * math/w_acosl_compat.c: Likewise.
6815 * math/w_asin_compat.c: Likewise.
6816 * math/w_asinf_compat.c: Likewise.
6817 * math/w_asinl_compat.c: Likewise.
6818 * math/w_j0_compat.c: Likewise.
6819 * math/w_j0f_compat.c: Likewise.
6820 * math/w_j0l_compat.c: Likewise.
6821 * math/w_j1_compat.c: Likewise.
6822 * math/w_j1f_compat.c: Likewise.
6823 * math/w_j1l_compat.c: Likewise.
6824 * math/w_jn_compat.c: Likewise.
6825 * math/w_jnf_compat.c: Likewise.
6826 * math/w_log10_compat.c: Likewise.
6827 * math/w_log10f_compat.c: Likewise.
6828 * math/w_log10l_compat.c: Likewise.
6829 * math/w_log2_compat.c: Likewise.
6830 * math/w_log2f_compat.c: Likewise.
6831 * math/w_log2l_compat.c: Likewise.
6832 * math/w_log_compat.c: Likewise.
6833 * math/w_logf_compat.c: Likewise.
6834 * math/w_logl_compat.c: Likewise.
6835 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6836 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6837 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6838 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6839 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6840 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6841 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6842 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6843 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6844 * sysdeps/ieee754/k_standardl.c: Likewise.
6845 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6846 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6847 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6848 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6849 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6850 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6851 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6852 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6853 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6854 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6855 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6856 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6857 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6858 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6859 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6860 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6861 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6862 * math/w_ilogb_template.c: Include <fenv.h> instead of
6863 <fenv_private.h>.
6864 * math/w_llogb_template.c: Likewise.
6865 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6866 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6867
6868 2018-09-03 Joseph Myers <joseph@codesourcery.com>
6869
6870 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
6871 * math/fromfp.h: Include <fenv_private.h>.
6872 * math/math-narrow.h: Likewise.
6873 * math/s_cexp_template.c: Likewise.
6874 * math/s_csin_template.c: Likewise.
6875 * math/s_csinh_template.c: Likewise.
6876 * math/s_ctan_template.c: Likewise.
6877 * math/s_ctanh_template.c: Likewise.
6878 * math/s_iseqsig_template.c: Likewise.
6879 * math/w_acos_compat.c: Likewise.
6880 * math/w_acosf_compat.c: Likewise.
6881 * math/w_acosl_compat.c: Likewise.
6882 * math/w_asin_compat.c: Likewise.
6883 * math/w_asinf_compat.c: Likewise.
6884 * math/w_asinl_compat.c: Likewise.
6885 * math/w_ilogb_template.c: Likewise.
6886 * math/w_j0_compat.c: Likewise.
6887 * math/w_j0f_compat.c: Likewise.
6888 * math/w_j0l_compat.c: Likewise.
6889 * math/w_j1_compat.c: Likewise.
6890 * math/w_j1f_compat.c: Likewise.
6891 * math/w_j1l_compat.c: Likewise.
6892 * math/w_jn_compat.c: Likewise.
6893 * math/w_jnf_compat.c: Likewise.
6894 * math/w_llogb_template.c: Likewise.
6895 * math/w_log10_compat.c: Likewise.
6896 * math/w_log10f_compat.c: Likewise.
6897 * math/w_log10l_compat.c: Likewise.
6898 * math/w_log2_compat.c: Likewise.
6899 * math/w_log2f_compat.c: Likewise.
6900 * math/w_log2l_compat.c: Likewise.
6901 * math/w_log_compat.c: Likewise.
6902 * math/w_logf_compat.c: Likewise.
6903 * math/w_logl_compat.c: Likewise.
6904 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6905 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6906 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6907 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6908 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6909 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6910 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6911 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6912 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6913 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6914 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6915 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6916 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
6917 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
6918 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6919 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6920 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6921 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6922 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6923 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6924 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6925 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6926 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6927 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6928 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6929 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6930 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6931 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
6932 * sysdeps/ieee754/float128/float128_private.h: Likewise.
6933 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6934 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6935 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6936 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
6937 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6938 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6939 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6940 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6941 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6942 * sysdeps/ieee754/k_standardl.c: Likewise.
6943 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6944 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6945 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6946 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6947 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6948 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
6949 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
6950 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6951 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6952 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6953 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6954 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6955 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
6956 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6957 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6958 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
6959 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6960 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
6961 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
6962 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
6963 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
6964 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
6965 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
6966 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
6967 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
6968 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6969 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6970 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6971 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
6972 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6973 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6974 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6975 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6976 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6977 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6978 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
6979 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6980 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6981 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6982 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6983 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6984 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6985 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6986 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6987 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6988 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6989 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6990 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6991 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6992 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6993 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6994 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6995 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6996 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6997 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6998 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6999 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7000 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7001 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7002 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7003 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7004 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7005 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7006 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7007 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7008 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7009 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7010 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7011 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7012 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7013 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7014
7015 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7016
7017 [BZ #20271]
7018 * include/stdio.h (__libc_fatal): Mention newline in comment.
7019 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7020 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7021 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7022 * nss/nsswitch.c (__nss_next2): Likewise.
7023 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7024 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7025 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7026 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7027 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7028 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7029 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7030 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7031 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7032 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7033 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7034 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7035 (__netlink_assert_response): Likewise.
7036
7037 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7038
7039 * conform/glibcconform.py: New file.
7040 * conform/list-header-symbols.py: Likewise.
7041 * conform/list-header-symbols.pl: Remove.
7042 * conform/Makefile (tests-special): Only add linknamespace tests
7043 if [PYTHON].
7044 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7045
7046 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7047
7048 [BZ #23597]
7049 * support/Makefile (libsupport-routines): Add
7050 support_copy_file_range and xcopy_file_range.
7051 * support/support.h: Include <sys/types.h>.
7052 (support_copy_file_range): New prototype.
7053 * support/support_copy_file_range.c: New file. Copied and
7054 modified from io/copy_file_range-compat.c.
7055 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7056 instead of copy_file_range.
7057 * support/xcopy_file_range.c: New file.
7058 * support/xunistd.h (xcopy_file_range): New prototype.
7059
7060 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7061
7062 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7063 xpthread_create and xpthread_join.
7064
7065 2018-08-30 Florian Weimer <fweimer@redhat.com>
7066
7067 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7068
7069 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7070
7071 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7072 if malloc fails.
7073
7074 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7075
7076 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7077 and minus_oflow as non-finite.
7078
7079 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7080
7081 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7082 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7083 moved to fenv_private.h except for ...
7084 (TOINT_INTRINSICS): Kept in math_private.h.
7085 (roundtoint): Likewise.
7086 (converttoint): Likewise.
7087 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7088 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7089 * sysdeps/arm/math_private.h: Remove.
7090 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7091 ....
7092 * sysdeps/generic/math_private.h: ... this file. Include
7093 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7094 Include <fenv_private.h>. Remove functions and macros moved to
7095 fenv_private.h.
7096 * sysdeps/i386/fpu/math_private.h: Remove.
7097 * sysdeps/mips/math_private.h: Move to ....
7098 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7099 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7100 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7101 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7102 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7103 * sysdeps/powerpc/fpu/math_private.h: Do not include
7104 <fenv_private.h>.
7105 * sysdeps/riscv/rvf/math_private.h: Move to ....
7106 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7107 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7108 <fenv_private.h>.
7109 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7110 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7111 * sysdeps/sparc/fpu/math_private.h: Remove.
7112 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7113 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7114 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7115 <fenv_private.h>.
7116 * sysdeps/x86_64/fpu/math_private.h: Do not include
7117 <sysdeps/i386/fpu/fenv_private.h>.
7118
7119 2018-08-28 Florian Weimer <fweimer@redhat.com>
7120
7121 [BZ #23578]
7122 * posix/tst-regcomp-truncated.c: New file.
7123 * posix/Makefile (tests): Add it.
7124 (tst-regcomp-truncated.out): Depend on generated locales.
7125
7126 2018-08-28 Florian Weimer <fweimer@redhat.com>
7127
7128 * support/test-container.c (main): Treat unshare failure with
7129 EPERM as an unsupported test.
7130
7131 2018-08-28 Florian Weimer <fweimer@redhat.com>
7132
7133 [BZ #23520]
7134 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7135 * nscd/netgroupcache.c
7136 (addgetnetgrentX): Add tofreep parameter. Do not free
7137 heap-allocated buffer.
7138 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7139 (addgetnetgrentX_ignore): New function.
7140 (addgetnetgrent): Call it.
7141 (readdgetnetgrent): Likewise.
7142
7143 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7144
7145 * string/memmem.c: Use memcmp for first match.
7146
7147 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7148
7149 [BZ #17426]
7150 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7151
7152 2018-08-27 DJ Delorie <dj@redhat.com>
7153
7154 * support/Makefile (others): Don't list programs explicitly as a
7155 dependency of "others".
7156
7157 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7158
7159 * sysdeps/generic/math-tests-trap-force.h: New file.
7160 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7161 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7162 * sysdeps/powerpc/math-tests.h: Remove file.
7163 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7164
7165 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7166 Torvald Riegel <triegel@redhat.com>
7167
7168 [BZ #23538]
7169 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7170 Update r to include the set wake-request flag if waiters are
7171 remaining after spinning.
7172
7173 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7174
7175 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7176
7177 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7178
7179 [BZ #23578]
7180 regex: fix uninitialized memory access
7181 I introduced this bug into gnulib in commit
7182 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7183 eventually it was merged into glibc. The bug was found by
7184 project-repo <bugs@feusi.co> and reported here:
7185 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7186 Diagnosis and draft fix reported by Assaf Gordon here:
7187 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7188 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7189 * posix/regex_internal.c (build_wcs_upper_buffer):
7190 Fix bug when mbrtowc returns 0.
7191
7192 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7193
7194 * po/be.po: Update translation.
7195
7196 2018-08-24 DJ Delorie <dj@delorie.com>
7197
7198 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7199 $(libunwind).
7200
7201 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7202
7203 [BZ #23400]
7204 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7205 create temporary files in source tree.
7206
7207 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7208
7209 * sysdeps/generic/math-tests-trap.h: New file.
7210 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7211 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7212 * sysdeps/aarch64/math-tests.h: Remove file.
7213 * sysdeps/arm/math-tests.h: Likewise.
7214 * sysdeps/riscv/math-tests.h: Likewise.
7215 * sysdeps/aarch64/math-tests-trap.h: New file.
7216 * sysdeps/arm/math-tests-trap.h: Likewise.
7217 * sysdeps/riscv/math-tests-trap.h: Likewise.
7218
7219 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7220
7221 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7222 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7223 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7224 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7225 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7226 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7227 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7228 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7229 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7230 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7231 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7232 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7233 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7234 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7235 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7236 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7237 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7238 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7239
7240 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7241
7242 * sysdeps/generic/math-tests-exceptions.h: New file.
7243 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7244 (EXCEPTION_TESTS_float): Do not define here.
7245 (EXCEPTION_TESTS_double): Likewise.
7246 (EXCEPTION_TESTS_long_double): Likewise.
7247 (EXCEPTION_TESTS_float128): Likewise.
7248 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7249 Likewise.
7250 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7251 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7252 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7253 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7254 * sysdeps/mips/math-tests.h: Likewise.
7255 * sysdeps/nios2/math-tests.h: Likewise.
7256 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7257 (EXCEPTION_TESTS_float): Do not define here.
7258 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7259 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7260 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7261
7262 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7263
7264 * NEWS: Move optimized sinf entry to 2.29.
7265
7266 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7267
7268 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7269
7270 2018-08-22 DJ Delorie <dj@redhat.com>
7271
7272 * Makefile (testroot.pristine): New rules to initialize the
7273 test-in-container "testroot".
7274 * Makerules (all-testsuite): Add tests-container.
7275 * Rules (tests-expected): Add tests-container.
7276 (binaries-all-tests): Likewise.
7277 (tests-container): New, run these tests in the testroot container.
7278 * support/Makefile (others): Add *-container, support_paths.c,
7279 xmkdirp, and links-dso-program.
7280 * support/links-dso-program-c.c: New.
7281 * support/links-dso-program.cc: New.
7282 * support/test-container.c: New.
7283 * support/shell-container.c: New.
7284 * support/echo-container.c: New.
7285 * support/true-container.c: New.
7286 * support/xmkdirp.c: New.
7287 * support/xsymlink.c: New.
7288 * support/support_paths.c: New.
7289 * support/support.h: Add support paths prototypes.
7290 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7291
7292 * nss/tst-nss-test3.c: Convert to test-in-container.
7293 * nss/tst-nss-test3.root/: New.
7294
7295 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7296
7297 regex: port Gnulib code to z/OS POSIX environment
7298 Problem reported by Arnold Robbins in:
7299 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7300 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7301 Undef.
7302
7303 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7304
7305 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7306 (ROUNDING_TESTS_double): Remove.
7307 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7308 (ROUNDING_TESTS_double): Remove.
7309 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7310 (ROUNDING_TESTS_double): Remove.
7311 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7312 (ROUNDING_TESTS_float): Remove.
7313 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7314 (ROUNDING_TESTS_float): Remove.
7315 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7316 (ROUNDING_TESTS_float): Remove.
7317 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7318 !TEST_MATHVEC here.
7319 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7320 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7321
7322 * sysdeps/generic/math-tests-rounding.h: New file.
7323 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7324 (ROUNDING_TESTS_float): Do not define here.
7325 (ROUNDING_TESTS_double): Likewise.
7326 (ROUNDING_TESTS_long_double): Likewise.
7327 (ROUNDING_TESTS_float128): Likewise.
7328 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7329 (ROUNDING_TESTS_double): Undefine before defining.
7330 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7331 (ROUNDING_TESTS_double): Undefine before defining.
7332 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7333 (ROUNDING_TESTS_double): Undefine before defining.
7334 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7335 (ROUNDING_TESTS_float): Undefine before defining.
7336 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7337 (ROUNDING_TESTS_float): Undefine before defining.
7338 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7339 (ROUNDING_TESTS_float): Undefine before defining.
7340 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7341 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7342 not define here.
7343 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7344 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7345 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7346 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7347 (ROUNDING_TESTS_float): Do not define here.
7348 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7349 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7350 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7351 (ROUNDING_TESTS_float): Likewise.
7352 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7353 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7354 * sysdeps/mips/math-tests.h [__mips_soft_float]
7355 (ROUNDING_TESTS_float): Likewise.
7356 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7357 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7358 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7359 (ROUNDING_TESTS_double): Likewise.
7360 (ROUNDING_TESTS_long_double): Likewise.
7361
7362 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7363
7364 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7365 (PF_XDP): New macro.
7366 (AF_XDP): New macro.
7367 (SOL_XDP): New macro.
7368
7369 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7370
7371 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7372 (TCP_INQ): Likewise.
7373 (TCP_CM_INQ): Likewise.
7374 (TCP_REPAIR_ON): Likewise.
7375 (TCP_REPAIR_OFF): Likewise.
7376 (TCP_REPAIR_OFF_NO_WP): Likewise.
7377 (struct tcp_zerocopy_receive): New type.
7378
7379 2018-08-21 Florian Weimer <fweimer@redhat.com>
7380
7381 * support/support.h (support_descriptor_supports_holes): Declare.
7382 * support/Makefile (libsupport-routines): Add
7383 support_descriptor_supports_holes.
7384 * support/support_descriptor_supports_holes.c: New file.
7385 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7386 and stop testing if holes are not supported.
7387 * io/test-lfs.c (do_prepare): Likewise.
7388 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7389 Likewise.
7390 * timezone/tst-tzset.c (create_tz_file): Likewise.
7391 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7392 variable.
7393 (do_prepare): Set it.
7394 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7395
7396 2018-08-21 Florian Weimer <fweimer@redhat.com>
7397
7398 [BZ #17248]
7399 * Makeconfig (+cflags): Do not sort (and deduplicate).
7400
7401 2018-08-21 Florian Weimer <fweimer@redhat.com>
7402
7403 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7404 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7405
7406 2018-08-20 Florian Weimer <fweimer@redhat.com>
7407
7408 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
7409 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
7410
7411 2018-08-20 Joseph Myers <joseph@codesourcery.com>
7412
7413 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
7414 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
7415 and ssi_arch members.
7416
7417 * elf/elf.c (NT_VMCOREDD): New macro.
7418 (AT_MINSIGSTKSZ): Likewise.
7419
7420 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7421
7422 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
7423 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
7424 s_cosf-ppc64 and s_cosf-power8.
7425 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
7426 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7427 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7428 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
7430 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
7431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
7432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
7433 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
7434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
7435 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
7436 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
7437
7438 2018-08-17 Florian Weimer <fweimer@redhat.com>
7439
7440 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
7441
7442 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
7443
7444 * malloc/malloc.c (_int_malloc): Additional binning code checks.
7445
7446 2018-08-16 Florian Weimer <fweimer@redhat.com>
7447
7448 * configure.ac: Add --with-nonshared-cflags option.
7449 * config.make.in (extra-nonshared-cflags): Set variable.
7450 * Makeconfig (CFLAGS-.oS): Use it.
7451 * manual/install.texi (Configuring and compiling): Document
7452 --with-nonshared-cflags.
7453 * configure: Regenerate.
7454 * INSTALL: Likewise.
7455
7456 2018-08-16 Florian Weimer <fweimer@redhat.com>
7457
7458 * Makeconfig (ASFLAGS): Always append required assembler flags.
7459
7460 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
7461
7462 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
7463 (malloc_consolidate): Likewise.
7464
7465 2018-08-16 Pochang Chen <johnchen902@gmail.com>
7466
7467 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
7468
7469 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7470
7471 * benchtests/bench-strlen.c (do_test): Allocate buffers before
7472 every strlen call.
7473
7474 * benchtests/bench-strlen.c: Print performance numbers in json.
7475
7476 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7477
7478 * sysdeps/powerpc/powerpc64/multiarch/Makefile
7479 (sysdep_routines): Build strcmp-power9 and strncmp-power9
7480 only for little endian.
7481 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
7482 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
7483 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
7484 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
7485 Add check for little endian.
7486 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
7487 (__strcmp_power9): Add check for little endian.
7488 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
7489 Add check for little endian.
7490 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
7491 (__strncmp_power9): Add check for little endian.
7492 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
7493 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
7494 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
7495 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
7496 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
7497
7498 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
7499
7500 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
7501 [!STRLEN](STRLEN): Set to __strlen.
7502 * sysdeps/aarch64/multiarch/strlen.c: New file.
7503 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
7504 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
7505 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7506 (__libc_ifunc_impl_list): Add strlen.
7507 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7508 strlen_generic and strlen_asimd.
7509
7510 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7511
7512 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
7513 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
7514 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
7515
7516 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
7517
7518 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
7519
7520 2018-08-14 Florian Weimer <fweimer@redhat.com>
7521
7522 [BZ #23519]
7523 * include/stdio.h (__vfxprintf): Declare.
7524 * stdio-common/fxprintf.c (__vfxprintf): New function.
7525 (__fxprintf): Call it.
7526 * misc/err.c (convert_and_print): Remove function.
7527 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
7528 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
7529 * misc/Makefile (tests): Add tst-warn-wide.
7530 * misc/tst-warn-wide.c: New file.
7531
7532 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
7533 Szabolcs Nagy <szabolcs.nagy@arm.com>
7534
7535 * NEWS: Mention sinf, cosf, sincosf.
7536 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
7537 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
7538 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
7539 constants rather than including generic sincosf.h.
7540 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
7541 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
7542 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
7543 (reduced_cos): Remove.
7544 (sinf_poly): New function.
7545 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
7546
7547 2018-08-14 Florian Weimer <fweimer@redhat.com>
7548
7549 [BZ #23521]
7550 [BZ #23522]
7551 * nss/nss_files/files-alias.c (get_next_alias): During :include:
7552 processing, bail out if no room, and close the stream before
7553 returning ERANGE.
7554 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
7555 (tst-nss-files-alias-leak): Link with libdl.
7556 (tst-nss-files-alias-leak.out): Depend on nss_files.
7557
7558 * nss/tst-nss-files-alias-leak.c: New file.
7559
7560 2018-08-14 Florian Weimer <fweimer@redhat.com>
7561
7562 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
7563 server_user, stat_user.
7564
7565 2018-08-13 Joseph Myers <joseph@codesourcery.com>
7566
7567 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7568 version to 4.18.
7569 (io_pgetevents): New syscall.
7570 (rseq): Likewise.
7571
7572 * manual/install.texi (Configuring and compiling): Do not list
7573 tools used for testing pretty printers here.
7574 (Tools for Compilation): List Python, PExpect and GDB here.
7575 Update descriptions of uses of Perl and Python.
7576 * INSTALL: Regenerate.
7577
7578 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7579 version to 4.18.
7580
7581 2018-08-13 Florian Weimer <fweimer@redhat.com>
7582
7583 * misc/error.c (error): Add missing va_end call.
7584 (error_at_line): Likewise.
7585
7586 2018-08-13 Florian Weimer <fweimer@redhat.com>
7587
7588 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
7589
7590 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
7591
7592 * benchtests/scripts/benchout.schema.json (properties): Add
7593 new properties.
7594
7595 * benchtests/bench-skeleton.c (main): Add duration and
7596 iterations attributes.
7597
7598 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
7599
7600 regex: Gnulib unibyte RRI uses bytes not chars
7601 Adjust the non-glibc code to agree with what Gawk needs for
7602 rational range interpretation (RRI) for regular expression ranges.
7603 In unibyte locales, Gawk wants ranges to use the underlying byte
7604 rather than the character code point. This change does not affect
7605 glibc proper.
7606 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
7607 In unibyte locales, use the byte value rather than
7608 running it through btowc.
7609
7610 2018-08-10 Joseph Myers <joseph@codesourcery.com>
7611
7612 * sysdeps/generic/math-tests-snan.h: New file.
7613 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
7614 (SNAN_TESTS_float): Do not define here.
7615 (SNAN_TESTS_double): Likewise.
7616 (SNAN_TESTS_long_double): Likewise.
7617 (SNAN_TESTS_float128): Likewise.
7618 * sysdeps/i386/fpu/math-tests-snan.h: New file.
7619 * sysdeps/i386/fpu/math-tests.h: Remove file.
7620 * sysdeps/ia64/math-tests-snan.h: New file.
7621 * sysdeps/ia64/math-tests.h: Remove file.
7622 * sysdeps/x86/math-tests.h: Likewise.
7623 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
7624
7625 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7626 Szabolcs Nagy <szabolcs.nagy@arm.com>
7627
7628 * math/Makefile: Add s_sincosf_data.c.
7629 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
7630 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
7631 (sincosf_poly): Likewise.
7632 (reduce_small): Likewise.
7633 (reduce_large): Likewise.
7634 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
7635 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
7636 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
7637 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
7638
7639 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
7640 Szabolcs Nagy <szabolcs.nagy@arm.com>
7641
7642 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
7643 (converttoint): Use lround.
7644 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
7645 document the semantics when TOINT_INTRINSICS is set.
7646 (converttoint): Likewise.
7647 (TOINT_RINT): Remove.
7648 (TOINT_SHIFT): Remove.
7649 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
7650 path.
7651
7652 2018-08-10 Florian Weimer <fweimer@redhat.com>
7653
7654 [BZ #23497]
7655 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
7656 function.
7657 (__old_getdents64): Use getdents64. Convert entries without
7658 moving them.
7659 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
7660 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
7661 tst-readdir64-compat.
7662
7663 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7664
7665 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
7666 Fix unwind.
7667
7668 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7669
7670 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
7671 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
7672 code to s390x-mcount.h and #include it.
7673 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
7674 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
7675 (__fentry__): Add.
7676
7677 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7678
7679 * stdlib/Versions: Remove __fentry__.
7680 * sysdeps/i386/Versions: Add __fentry__.
7681 * sysdeps/x86_64/Versions: Add __fentry__.
7682
7683 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7684
7685 * sysdeps/s390/Makefile: Register the new tests.
7686 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
7687 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
7688 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
7689 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
7690 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
7691 * sysdeps/s390/tst-dl-runtime.c: New file.
7692
7693 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7694
7695 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7696 Do not clobber R0.
7697
7698 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7699
7700 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7701 Do not clobber R0.
7702
7703 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7704
7705 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7706 Do not clobber R0.
7707
7708 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7709
7710 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7711 Do not clobber R0.
7712
7713 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7714
7715 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
7716 Use symbolic offsets for stack variables.
7717
7718 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7719
7720 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
7721 Use symbolic offsets for stack variables.
7722
7723 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7724
7725 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
7726 Use symbolic offsets for stack variables.
7727
7728 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
7729
7730 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
7731 Use symbolic offsets for stack variables.
7732
7733 2018-08-09 Joseph Myers <joseph@codesourcery.com>
7734
7735 * math/gen-libm-test.py: New file.
7736 * math/gen-libm-test.pl: Remove.
7737 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
7738 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
7739 gen-libm-test.pl.
7740 ($(libm-test-c-noauto-obj)): Likewise.
7741 ($(libm-test-c-auto-obj)): Likewise.
7742 ($(libm-test-c-narrow-obj)): Likewise.
7743 (regen-ulps): Likewise.
7744 * math/README.libm-test: Update references to gen-libm-test.pl.
7745 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
7746 referencing gen-libm-test.pl.
7747 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
7748 * math/libm-test-support.c: Likewise.
7749 * math/libm-test-support.h: Likewise.
7750 * sysdeps/generic/libm-test-ulps: Likewise.
7751
7752 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
7753
7754 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
7755 Fix value.
7756
7757 2018-08-08 Joseph Myers <joseph@codesourcery.com>
7758
7759 * math/libm-test-nextdown.inc (do_test): Move comment to ....
7760 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
7761
7762 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
7763
7764 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
7765 symbols.
7766 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
7767 __pthread_setspecific): Add hidden proto.
7768 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
7769 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
7770
7771 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7772
7773 * benchtests/bench-string.h (buf1_size, buf2_size): New
7774 variables.
7775 (init_sizes): New function.
7776 (test_init): Use it.
7777 (alloc_buf, exit_error): New functions.
7778 (alloc_bufs): Use ALLOC_BUF.
7779 (realloc_bufs): Remove.
7780 * benchtests/bench-memcmp.c (do_test): Adjust.
7781 * benchtests/bench-memset-large.c (do_test): Likewise.
7782 * benchtests/bench-memset-walk.c (do_test): Likewise.
7783 * benchtests/bench-memset.c (do_test): Likewise.
7784 * benchtests/bench-strncmp.c (do_test): Likewise.
7785
7786 2018-08-06 Andreas Schwab <schwab@suse.de>
7787
7788 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
7789 of CONST_THREAD_AREA.
7790
7791 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
7792
7793 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
7794 (STATE_SAVE_MASK): Likewise.
7795 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
7796 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
7797 (STATE_SAVE_MASK): Likewise.
7798 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
7799 instead of <cpu-features.h>.
7800
7801 2018-08-03 DJ Delorie <dj@redhat.com>
7802
7803 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
7804 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
7805
7806 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7807
7808 2018-08-03 Joseph Myers <joseph@codesourcery.com>
7809
7810 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
7811 after TEST_* calls.
7812 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
7813 * math/libm-test-logb.inc (logb_test_data): Likewise.
7814
7815 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
7816
7817 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
7818 * string/strstr.c (AVAILABLE): Likewise.
7819
7820 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7821
7822 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
7823 <init-arch.h>.
7824 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
7825 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
7826 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
7827
7828 2018-08-03 Carlos O'Donell <carlos@redhat.com>
7829
7830 * po/be.po: Update translation.
7831
7832 * po/be.po: Update translation.
7833
7834 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
7835
7836 * sysdeps/x86/cpu-features-offsets.sym
7837 (rtld_global_ro_offsetof): Removed.
7838 (CPU_FEATURES_SIZE): Likewise.
7839 (CPUID_OFFSET): Likewise.
7840 (CPUID_SIZE): Likewise.
7841 (CPUID_EAX_OFFSET): Likewise.
7842 (CPUID_EBX_OFFSET): Likewise.
7843 (CPUID_ECX_OFFSET): Likewise.
7844 (CPUID_EDX_OFFSET): Likewise.
7845 (FAMILY_OFFSET): Likewise.
7846 (MODEL_OFFSET): Likewise.
7847 (FEATURE_OFFSET): Likewise.
7848 (FEATURE_SIZ): Likewise.
7849 (COMMON_CPUID_INDEX_1): Likewise.
7850 (COMMON_CPUID_INDEX_7): Likewise.
7851 (FEATURE_INDEX_1): Likewise.
7852 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
7853
7854 2018-08-02 Carlos O'Donell <carlos@redhat.com>
7855
7856 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
7857 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
7858 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
7859 (install-locales): Depend on install-locale-archive.
7860 (install-locale-archive): Define.
7861 (install-locale-files): Define.
7862 (build-one-locale): Define macro.
7863 * manual/install.texi (Running make install): Document.
7864 * manual/INSTALL: Regenerate.
7865
7866 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
7867
7868 * benchtests/scripts/compare_strings.py: Import traceback.
7869 (parse_file): Pretty-print error.
7870
7871 * NEWS: Mention the change.
7872 * elf/dl-tunables.list: Rename tune namespace to cpu.
7873 * sysdeps/powerpc/dl-tunables.list: Likewise.
7874 * sysdeps/x86/dl-tunables.list: Likewise.
7875 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
7876 cpu.name.
7877 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
7878 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
7879 * manual/README.tunables: Likewise.
7880 * manual/tunables.texi: Likewise.
7881 * sysdeps/powerpc/cpu-features.c: Likewise.
7882 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
7883 (init_cpu_features): Likewise.
7884 * sysdeps/x86/cpu-features.c: Likewise.
7885 * sysdeps/x86/cpu-features.h: Likewise.
7886 * sysdeps/x86/cpu-tunables.c: Likewise.
7887 * sysdeps/x86_64/Makefile: Likewise.
7888 * sysdeps/x86/dl-cet.c: Likewise.
7889
7890 2018-08-02 Joseph Myers <joseph@codesourcery.com>
7891
7892 [BZ #23479]
7893 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
7894 [__mips_hard_float].
7895 (FE_UNDERFLOW): Likewise.
7896 (FE_OVERFLOW): Likewise.
7897 (FE_DIVBYZERO): Likewise.
7898 (FE_INVALID): Likewise.
7899 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
7900 (FE_TOWARDZERO): Define only if [__mips_hard_float].
7901 (FE_UPWARD): Likewise.
7902 (FE_DOWNWARD): Likewise.
7903 (__FE_UNDEFINED): Define if [!__mips_hard_float]
7904 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
7905 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
7906 [__mips_hard_float].
7907 (FP_ROUNDMODE): Likewise.
7908 (FP_RND_NEAREST): Likewise.
7909 (FP_RND_ZERO): Likewise.
7910 (FP_RND_PINF): Likewise.
7911 (FP_RND_MINF): Likewise.
7912 (FP_EX_INVALID): Likewise.
7913 (FP_EX_OVERFLOW): Likewise.
7914 (FP_EX_UNDERFLOW): Likewise.
7915 (FP_EX_DIVZERO): Likewise.
7916 (FP_EX_INEXACT): Likewise.
7917 (FP_INIT_ROUNDMODE): Likewise.
7918 * sysdeps/mips/nofpu/fesetenv.c: New file.
7919 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
7920
7921 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7922
7923 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
7924 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
7925 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
7926 conditional on [FE_UPWARD].
7927
7928 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
7929
7930 regex: fix memory leak in Gnulib
7931 Problem and fix reported by Assaf Gordon in:
7932 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
7933 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
7934 range_ends members too, as they are defined in 'struct
7935 re_charset_t' even if not _LIBC. This affects only Gnulib.
7936
7937 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
7938
7939 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
7940 ...
7941 (get_common_indices): This.
7942 (init_cpu_features): Updated.
7943
7944 2018-08-01 Joseph Myers <joseph@codesourcery.com>
7945
7946 * sysdeps/generic/math-tests-snan-payload.h: New file.
7947 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
7948 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
7949 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
7950 * sysdeps/generic/math-tests.h: Include
7951 <math-tests-snan-payload.h>.
7952 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7953 * sysdeps/hppa/math-tests.h: Remove file.
7954 * sysdeps/mips/math-tests.h [!__mips_nan2008]
7955 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
7956 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
7957 Likewise.
7958
7959 * sysdeps/generic/math-tests-snan-cast.h: New file.
7960 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
7961 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
7962 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
7963 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
7964
7965 2018-08-01 Carlos O'Donel <carlos@redhat.com>
7966
7967 * version.h (RELEASE): Set to "development".
7968 (VERSION): Set to "2.28.9000".
7969 * NEWS (2.29): New section.
7970
7971 * version.h (RELEASE): Set to "stable".
7972 (VERSION): Set to "2.28".
7973 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
7974 * NEWS: Add the list of bugs fixed in 2.28.
7975
7976 * po/ca.po: Update to latest version.
7977 * po/cs.po: Likewise
7978 * po/da.po: Likewise
7979 * po/el.po: Likewise
7980 * po/eo.po: Likewise
7981 * po/es.po: Likewise
7982 * po/fi.po: Likewise
7983 * po/fr.po: Likewise
7984 * po/gl.po: Likewise
7985 * po/hu.po: Likewise
7986 * po/ia.po: Likewise
7987 * po/id.po: Likewise
7988 * po/it.po: Likewise
7989 * po/ja.po: Likewise
7990 * po/ko.po: Likewise
7991 * po/lt.po: Likewise
7992 * po/nb.po: Likewise
7993 * po/nl.po: Likewise
7994 * po/pt_BR.po: Likewise
7995 * po/ru.po: Likewise
7996 * po/rw.po: Likewise
7997 * po/sk.po: Likewise
7998 * po/sl.po: Likewise
7999 * po/tr.po: Likewise
8000 * po/zh_CN.po: Likewise
8001 * po/zh_TW.po: Likewise
8002
8003 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8004
8005 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8006 initialization...
8007 (init): ... before initializing libpthread.
8008
8009 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8010 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8011 (__mach_setup_tls): ... new function.
8012 (mach_setup_tls): New alias.
8013 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8014 __mach_setup_thread.
8015 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8016 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8017 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8018 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8019
8020 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8021
8022 * manual/install.texi: Update versions.
8023 * INSTALL: Regenerate.
8024
8025 * manual/contrib.texi (Contributors): Update contributions.
8026
8027 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8028
8029 * po/be.po: Update translations.
8030
8031 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8032
8033 * sysdeps/sh/libm-test-ulps: Update.
8034
8035 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8036
8037 * po/bg.po: Update translations.
8038 * po/de.po: Likewise.
8039 * po/hr.po: Likewise.
8040 * po/pt_BR.po: Likewise.
8041 * po/sv.po: Likewise.
8042 * po/vi.po: Likewise.
8043
8044 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8045
8046 [BZ #23467]
8047 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8048 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8049 (CFLAGS-tst-cet-property-1.o): New.
8050 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8051 ($(objpfx)tst-cet-property-2): Likewise.
8052 ($(objpfx)tst-cet-property-2.out): Likewise.
8053 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8054 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8055 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8056 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8057 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8058
8059 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8060
8061 [BZ #23458]
8062 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8063
8064 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8065
8066 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8067 __sbrk): Do not set attribute_hidden.
8068 * sysdeps/mach/hurd/not-errno.h: New file.
8069 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8070 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8071
8072 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8073
8074 * po/uk.po: Update translations.
8075 * po/cs.po: Likewise.
8076 * po/pl.po: Likewise.
8077
8078 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8079
8080 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8081 parse beyond the note end.
8082
8083 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8084
8085 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8086 kernel does not support OFD locks.
8087 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8088
8089 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8090
8091 * sysdeps/mach/hurd/Versions (libc): Make __access and
8092 __access_noerrno external so they can override the ld symbols.
8093 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8094 __writev, __open64, __access_noerrno extern so they can be overrided.
8095 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8096 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8097
8098 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8099
8100 * po/libc.pot: Regenerate.
8101
8102 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8103
8104 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8105
8106 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8107
8108 [BZ #23459]
8109 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8110 function.
8111 (init_cpu_features): Call get_extended_indices for both Intel
8112 and AMD CPUs.
8113 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8114 Remove "for AMD" comment.
8115
8116 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8117
8118 [BZ # 23456]
8119 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8120 COMMON_CPUID_INDEX_80000001.
8121
8122 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8123
8124 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8125 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8126
8127 2018-07-26 Florian Weimer <fweimer@redhat.com>
8128
8129 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8130 aliases for symbols not in the implementation namespace.
8131
8132 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8133
8134 [BZ #23393]
8135 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8136 lowercase in LATIN script.
8137 * localedata/Makefile (test-input): Add en_US.UTF-8.
8138 * localedata/en_US.UTF-8.in: New file.
8139 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8140 and restore old tests.
8141 * posix/tst-regexloc.c (do_test): Add back range expression test.
8142
8143 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8144
8145 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8146
8147 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8148
8149 * nptl/threads.h: Move to ...
8150 * sysdeps/nptl/threads.h: ... here.
8151 * sysdeps/hurd/stdc-predef.h: New file.
8152
8153 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8154
8155 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8156 tst-cet-setcontext-1 if CET is enabled.
8157 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8158 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8159
8160 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8161
8162 * include/threads.h: Move to ...
8163 * sysdeps/nptl/threads.h: ... here.
8164 * sysdeps/htl/threads.h: New file.
8165 * conform/Makefile (linknamespace-libs-ISO11): Use
8166 static-thread-library instead of linking libpthread.
8167 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8168
8169 2018-07-25 Florian Weimer <fweimer@redhat.com>
8170
8171 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8172 nanoseconds into seconds.
8173 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8174 (do_test): Likewise.
8175 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8176 (do_test): Likewise. Avoid nanosecond overflow and spurious
8177 timeouts due to system load.
8178 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8179 (child_wait): Increment it.
8180 (do_test): Wait as long as necessary until all expected threads
8181 have arrived.
8182
8183 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8184 H.J. Lu <hongjiu.lu@intel.com>
8185
8186 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8187 __ssp.
8188 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8189 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8190 (__push___start_context): New.
8191 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8192 <asm/prctl.h>.
8193 (__getcontext): Record the current shadow stack base. Save the
8194 caller's shadow stack pointer and base.
8195 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8196 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8197 (__push___start_context): New prototype.
8198 (__makecontext): Call __push___start_context to allocate a new
8199 shadow stack, push __start_context onto the new stack as well
8200 as the new shadow stack.
8201 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8202 <asm/prctl.h>.
8203 (__setcontext): Restore the target shadow stack.
8204 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8205 <asm/prctl.h>.
8206 (__swapcontext): Record the current shadow stack base. Save
8207 the caller's shadow stack pointer and base. Restore the target
8208 shadow stack.
8209 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8210 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8211 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8212
8213 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8214
8215 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8216 tst-setcontext8 and tst-setcontext9.
8217 * stdlib/tst-setcontext6.c: New file.
8218 * stdlib/tst-setcontext7.c: Likewise.
8219 * stdlib/tst-setcontext8.c: Likewise.
8220 * stdlib/tst-setcontext9.c: Likewise.
8221
8222 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8223
8224 * stdlib/Makefile ((tests): Add tst-setcontext5.
8225 * stdlib/tst-setcontext5.c: New file.
8226
8227 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8228
8229 * stdlib/Makefile (tests): Add tst-setcontext4.
8230 * stdlib/tst-setcontext4.c: New file.
8231
8232 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8233
8234 * stdlib/Makefile (tests): Add tst-swapcontext1.
8235 * stdlib/tst-swapcontext1.c: New test.
8236
8237 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8238
8239 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8240 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8241 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8242 and tst-cet-legacy-4c.
8243 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8244 and tst-cet-legacy-mod-4.
8245 (CFLAGS-tst-cet-legacy-2.c): New.
8246 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8247 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8248 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8249 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8250 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8251 ($(objpfx)tst-cet-legacy-1): Likewise.
8252 ($(objpfx)tst-cet-legacy-2): Likewise.
8253 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8254 ($(objpfx)tst-cet-legacy-2a): Likewise.
8255 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8256 ($(objpfx)tst-cet-legacy-4): Likewise.
8257 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8258 ($(objpfx)tst-cet-legacy-4a): Likewise.
8259 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8260 (tst-cet-legacy-4a-ENV): Likewise.
8261 ($(objpfx)tst-cet-legacy-4b): Likewise.
8262 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8263 (tst-cet-legacy-4b-ENV): Likewise.
8264 ($(objpfx)tst-cet-legacy-4c): Likewise.
8265 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8266 (tst-cet-legacy-4c-ENV): Likewise.
8267 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8268 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8269 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8270 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8271 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8272 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8273 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8274 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8275 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8276 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8277 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8278
8279 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8280
8281 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8282 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8283 with ssp_base.
8284 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8285 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8286 with ssp_base.
8287
8288 2018-07-25 Andreas Schwab <schwab@suse.de>
8289
8290 [BZ #23442]
8291 * locale/weightwc.h (findidx): Handle the case where usrc is a
8292 prefix of cp but one character too short.
8293
8294 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8295
8296 * NEWS: Add ISO C threads addition.
8297
8298 2018-07-24 Florian Weimer <fweimer@redhat.com>
8299
8300 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8301 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8302 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8303 4.13.
8304
8305 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8306
8307 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8308 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8309 <sys/prctl.h> and <asm/prctl.h>.
8310 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8311 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8312 and <asm/prctl.h>.
8313 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8314 ARCH_CET_LEGACY_BITMAP.
8315 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8316 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8317 * sysdeps/x86/libc-start.c: Include <startup.h>.
8318
8319 2018-07-24 Florian Weimer <fweimer@redhat.com>
8320
8321 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8322 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8323
8324 2018-07-24 Rical Jasan <rj@2c3t.io>
8325 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8326 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8327
8328 [BZ #14092]
8329 * manual/debug.texi: Update adjacent chapter name.
8330 * manual/probes.texi: Likewise.
8331 * manual/threads.texi (ISO C Threads): New section.
8332 (POSIX Threads): Convert to a section.
8333
8334 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8335 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8336
8337 [BZ# 14092]
8338 * nptl/Makefile (tests): Add new test files.
8339 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8340 * nptl/tst-cnd-basic.c: Likewise.
8341 * nptl/tst-cnd-broadcast.c: Likewise.
8342 * nptl/tst-cnd-timedwait.c: Likewise.
8343 * nptl/tst-mtx-basic.c: Likewise.
8344 * nptl/tst-mtx-recursive.c: Likewise.
8345 * nptl/tst-mtx-timedlock.c: Likewise.
8346 * nptl/tst-mtx-trylock.c: Likewise.
8347 * nptl/tst-thrd-basic.c: Likewise.
8348 * nptl/tst-thrd-detach.c: Likewise.
8349 * nptl/tst-thrd-sleep.c: Likewise.
8350 * nptl/tst-tss-basic.c: Likewise.
8351
8352 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8353
8354 [BZ #14092]
8355 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8356 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8357 symbols.
8358 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8359 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8360 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8361 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8362 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8363 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8364 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8365 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8366 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8367 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8368 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8369 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8371 Likewise.
8372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8373 Likewise.
8374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8375 Likewise.
8376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8377 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8378 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8380 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8381 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8382 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8383 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8384 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8385 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8386 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8387 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8388 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8389 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8390 Likewise.
8391 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8392 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8393 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8394 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8395 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8396 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8397 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8398 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8399 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8400 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8401 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8402 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8403 ikewise.
8404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8406 Likewise.
8407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
8408 Likewise.
8409 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
8410 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
8411 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
8412 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
8413 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
8414 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
8415 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
8416 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
8417
8418 [BZ #14092]
8419 * conform/data/threads.h-data (thread_local): New macro.
8420 (TSS_DTOR_ITERATIONS): Likewise.
8421 (tss_t): New type.
8422 (tss_dtor_t): Likewise.
8423 (tss_create): New function.
8424 (tss_get): Likewise.
8425 (tss_set): Likewise.
8426 (tss_delete): Likewise.
8427 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
8428 tss_get, and tss_set objects.
8429 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8430 * nptl/tss_create.c: New file.
8431 * nptl/tss_delete.c: Likewise.
8432 * nptl/tss_get.c: Likewise.
8433 * nptl/tss_set.c: Likewise.
8434 * sysdeps/nptl/threads.h (thread_local): New define.
8435 (TSS_DTOR_ITERATIONS): Likewise.
8436 (tss_t): New typedef.
8437 (tss_dtor_t): Likewise.
8438 (tss_create): New prototype.
8439 (tss_get): Likewise.
8440 (tss_set): Likewise.
8441 (tss_delete): Likewise.
8442
8443 [BZ #14092]
8444 * conform/data/threads.h-data (cnd_t): New type.
8445 (cnd_init): New function.
8446 (cnd_signal): Likewise.
8447 (cnd_broadcast): Likewise.
8448 (cnd_wait): Likewise.
8449 (cnd_timedwait): Likewise.
8450 (cnd_destroy): Likewise.
8451 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
8452 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
8453 object.
8454 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
8455 * nptl/cnd_broadcast.c: New file.
8456 * nptl/cnd_destroy.c: Likewise.
8457 * nptl/cnd_init.c: Likewise.
8458 * nptl/cnd_signal.c: Likewise.
8459 * nptl/cnd_timedwait.c: Likewise.
8460 * nptl/cnd_wait.c: Likewise.
8461 * sysdeps/nptl/threads.h (cnd_t): New type.
8462 (cnd_init): New prototype.
8463 (cnd_signa): Likewise.
8464 (cnd_broadcast): Likewise.
8465 (cnd_wait): Likewise.
8466 (cnd_timedwait): Likewise.
8467 (cnd_destroy): Likewise.
8468
8469 [BZ #14092]
8470 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
8471 (once_flag): New type.
8472 (call_once): New function.
8473 * nptl/Makefile (libpthread-routines): Add call_once object.
8474 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
8475 * nptl/call_once.c: New file.
8476 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
8477 (once_flag): New type.
8478 (call_once): New prototype.
8479
8480 [BZ #14092]
8481 * conform/data/threads.h-data (mtx_plain): New constant.
8482 (mtx_recursive): Likewise.
8483 (mtx_timed): Likewise.
8484 (mtx_t): New type.
8485 (mtx_init): New function.
8486 (mtx_lock): Likewise.
8487 (mtx_timedlock): Likewise.
8488 (mtx_trylock): Likewise.
8489 (mtx_unlock): Likewise.
8490 (mtx_destroy): Likewise.
8491 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
8492 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
8493 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
8494 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
8495 * nptl/mtx_destroy.c: New file.
8496 * nptl/mtx_init.c: Likewise.
8497 * nptl/mtx_lock.c: Likewise.
8498 * nptl/mtx_timedlock.c: Likewise.
8499 * nptl/mtx_trylock.c: Likewise.
8500 * nptl/mtx_unlock.c: Likewise.
8501 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
8502 (mtx_recursive): Likewise.
8503 (mtx_timed): Likewise.
8504 (mtx_t): New type.
8505 (mtx_init): New prototype.
8506 (mtx_lock): Likewise.
8507 (mtx_timedlock): Likewise.
8508 (mtx_trylock): Likewise.
8509 (mtx_unlock): Likewise.
8510 (mtx_destroy): Likewise.
8511
8512 [BZ #14092]
8513 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
8514 (linknamespace-libs-ISO11): Add libpthread.a.
8515 * conform/data/threads.h-data: New file: add C11 thrd_* types and
8516 functions.
8517 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
8518 * nptl/Makefile (headers): Add threads.h.
8519 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
8520 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
8521 thrd_yield.
8522 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
8523 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
8524 thrd_join, thrd_sleep, and thrd_yield symbols.
8525 * nptl/descr.h (struct pthread): Add c11 field.
8526 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
8527 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
8528 routine with expected function prototype.
8529 (__pthread_create_2_1): Add C11 threads check based on attribute
8530 value.
8531 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
8532 * nptl/thrd_create.c: New file.
8533 * nptl/thrd_current.c: Likewise.
8534 * nptl/thrd_detach.c: Likewise.
8535 * nptl/thrd_equal.c: Likewise.
8536 * nptl/thrd_exit.c: Likewise.
8537 * nptl/thrd_join.c: Likewise.
8538 * nptl/thrd_priv.h: Likewise.
8539 * nptl/thrd_sleep.c: Likewise.
8540 * nptl/thrd_yield.c: Likewise.
8541 * include/threads.h: Likewise.
8542
8543 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8544
8545 * bits/indirect-return.h: New file.
8546 * misc/sys/cdefs.h (__glibc_has_attribute): New.
8547 * sysdeps/x86/bits/indirect-return.h: Likewise.
8548 * stdlib/Makefile (headers): Add bits/indirect-return.h.
8549 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
8550 (swapcontext): Add __INDIRECT_RETURN.
8551 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
8552 (prepare_test_buffer): Use it.
8553
8554 2018-07-24 Andreas Schwab <schwab@suse.de>
8555
8556 [BZ #23448]
8557 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
8558 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
8559
8560 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8561
8562 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
8563 Redefine if shadow stack is enabled.
8564 (SYSCALL_ERROR_LABEL): Likewise.
8565 (__vfork): Pop shadow stack and jump back to to caller directly
8566 when shadow stack is in use.
8567 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
8568 Redefine if shadow stack is enabled.
8569 (SYSCALL_ERROR_LABEL): Likewise.
8570 (__vfork): Pop shadow stack and jump back to to caller directly
8571 when shadow stack is in use.
8572
8573 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8574
8575 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
8576 enabled.
8577 (foo): Likewise.
8578 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
8579 (foo): Likewise.
8580
8581 2018-07-20 Joseph Myers <joseph@codesourcery.com>
8582
8583 * scripts/build-many-glibcs.py (Context.checkout): Default
8584 binutils version to 2.31 branch.
8585
8586 2018-07-20 Zong Li <zong@andestech.com>
8587
8588 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
8589 URL of gcc's tarball.
8590
8591 2018-07-20 Florian Weimer <fweimer@redhat.com>
8592
8593 [BZ #23396]
8594 * posix/regcomp.c (build_equiv_class): When comparing weights, do
8595 not compare an extra byte after the end of the weights.
8596
8597 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
8598
8599 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
8600 to 1.
8601 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
8602 hidden prototypes.
8603 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
8604 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
8605 * scripts/check-execstack.awk: Consider `xfail' variable containing a
8606 list of libraries whose stack executability is expected.
8607 * elf/Makefile ($(objpfx)check-execstack.out): Pass
8608 $(check-execstack-xfail) to check-execstack.awk through `xfail'
8609 variable.
8610 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
8611 libc.so libpthread.so.
8612
8613 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
8614
8615 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
8616 SOCK_NONBLOCK.
8617 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
8618 and SOCK_NONBLOCK.
8619 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
8620 implement __pipe2.
8621 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
8622
8623 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8624
8625 * benchtests/scripts/compare_bench.py (__main__): use the argparse
8626 library to improve command line parsing.
8627 (__main__): make schema file as optional parameter (--schema),
8628 defaulting to benchtests/scripts/benchout.schema.json.
8629 (main): move out of the parsing stuff to __main_  and leave it
8630 only as caller of main comparison functions.
8631
8632 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
8633
8634 * NEWS: Add a note for Intel CET status.
8635 * manual/install.texi: Likewise.
8636 * INSTALL: Regenerated.
8637
8638 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
8639
8640 [BZ #23140]
8641 * localedata/locales/oc_FR (mon): Rename to...
8642 (alt_mon): This, then update October (typo fix).
8643 (mon): New content (genitive case, month names preceded by
8644 "de" or "d’").
8645
8646 [BZ #23422]
8647 * localedata/locales/oc_FR (abday): Update all items.
8648 (day): Update Wednesday and Saturday (typo fixes).
8649 (abmon): Update all items, except May.
8650 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
8651 (LC_IDENTIFICATION): Bump the revision number and date.
8652 Keep the "category" entries in alphabetic order.
8653 (LC_ADDRESS): Remove no longer needed comment.
8654 (LC_COLLATE): Use “copy "ca_ES"”.
8655 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
8656 "name_mrs".
8657
8658 2018-07-18 Joseph Myers <joseph@codesourcery.com>
8659
8660 * grp/tst_fgetgrent.c: Include <unistd.h>.
8661 (main): Use mkstemp instead of tmpnam.
8662 * io/test-utime.c (main): Likewise.
8663 * posix/annexc.c (macrofile): Change to modifiable array.
8664 (main): Remove macrofile here.
8665 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8666 macrofile here.
8667 (check_header): Do not remove macrofile here.
8668 * posix/bug-getopt1.c: Include <stdlib.h>.
8669 (do_test): Use mkstemp instead of tmpnam.
8670 * posix/bug-getopt2.c: Include <stdlib.h>.
8671 (do_test): Use mkstemp instead of tmpnam.
8672 * posix/bug-getopt3.c: Include <stdlib.h>.
8673 (do_test): Use mkstemp instead of tmpnam.
8674 * posix/bug-getopt4.c: Include <stdlib.h>.
8675 (do_test): Use mkstemp instead of tmpnam.
8676 * posix/bug-getopt5.c: Include <stdlib.h>.
8677 (do_test): Use mkstemp instead of tmpnam.
8678 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
8679 (main): Use mkstemp instead of tmpnam.
8680 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
8681 (main): Use mkstemp instead of tmpnam.
8682 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
8683 (main): use mkstemp instead of tmpnam.
8684 * stdlib/isomac.c (macrofile): Change to modifiable array.
8685 (main): Remove macrofile here.
8686 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
8687 macrofile here.
8688 (check_header): Do not remove macrofile here.
8689
8690 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8691
8692 * manual/tunables.texi: Document glibc.tune.x86_ibt and
8693 glibc.tune.x86_shstk.
8694
8695 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8696
8697 * NEWS: Mention --enable-cet.
8698 * manual/install.texi: Document --enable-cet.
8699 * INSTALL: Regenerated.
8700
8701 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8702
8703 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
8704 Add _CET_NOTRACK before indirect jump to jump table.
8705
8706 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8707
8708 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
8709 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8710 to jump table.
8711
8712 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8713
8714 * sysdeps/i386/i686/multiarch/strcat-sse2.S
8715 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8716 to jump table.
8717
8718 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
8721 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8722 to jump table.
8723
8724 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8725
8726 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
8727 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8728 to jump table.
8729
8730 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8731
8732 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
8733 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8734 to jump table.
8735 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
8736
8737 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8738
8739 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
8740 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8741 to jump table.
8742
8743 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8744
8745 * sysdeps/i386/i686/multiarch/memset-sse2.S
8746 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8747 to jump table.
8748
8749 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8750
8751 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
8752 indirect jump to jump table.
8753
8754 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8755
8756 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
8757 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8758 to jump table.
8759 (MEMCPY): Likewise.
8760
8761 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8762
8763 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.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/strcmp-sse42.S (STRCMP_SSE42): Add
8771 _CET_NOTRACK before indirect jump to jump table.
8772
8773 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8774
8775 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
8776 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
8777 to jump table.
8778
8779 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
8780
8781 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
8782 indirect jump to jump table.
8783
8784 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
8785
8786 [BZ #22241]
8787 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
8788 (LOCALES): Likewise.
8789 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
8790 * localedata/locales/sah_RU: New file.
8791 * localedata/sah_RU.UTF-8.in: New file.
8792
8793 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8794
8795 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
8796 "sysdep.h".
8797 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8798 _CET_ENDBR to indirect jump targets and adjust jump destination
8799 for _CET_ENDBR.
8800 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
8801 "sysdep.h".
8802 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
8803 _CET_ENDBR to indirect jump targets and adjust jump destination
8804 for _CET_ENDBR.
8805 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
8806 "sysdep.h".
8807 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
8808 _CET_ENDBR to indirect jump targets and adjust jump destination
8809 for _CET_ENDBR.
8810
8811 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8812
8813 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
8814 _CET_ENDBR.
8815
8816 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8817
8818 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
8819 _CET_ENDBR.
8820 (_dl_tlsdesc_undefweak): Likewise.
8821 (_dl_tlsdesc_dynamic): Likewise.
8822 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
8823 (_dl_tlsdesc_resolve_rel): Likewise.
8824 (_dl_tlsdesc_resolve_rela): Likewise.
8825 (_dl_tlsdesc_resolve_hold): Likewise.
8826 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
8827 (_dl_tlsdesc_undefweak): Likewise.
8828 (_dl_tlsdesc_dynamic): Likewise.
8829 (_dl_tlsdesc_resolve_rela): Likewise.
8830 (_dl_tlsdesc_resolve_hold): Likewise.
8831
8832 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8833
8834 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
8835 (_fini): Likewise.
8836 * sysdeps/x86_64/crti.S (_init): Likewise.
8837 (_fini): Likewise.
8838
8839 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
8840
8841 [BZ #23140]
8842 * localedata/locales/os_RU (mon): Rename to...
8843 (alt_mon): This.
8844 (mon): Import from CLDR (genitive case).
8845
8846 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
8847
8848 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
8849 cet-tunables.h> when CET is enabled.
8850
8851 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
8852
8853 [BZ #21598]
8854 * configure.ac: Add --enable-cet.
8855 * configure: Regenerated.
8856 * elf/Makefille (all-built-dso): Add a comment.
8857 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
8858 Include <dl-prop.h>.
8859 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
8860 segment.
8861 * elf/dl-open.c: Include <dl-prop.h>.
8862 (dl_open_worker): Call _dl_open_check.
8863 * elf/rtld.c: Include <dl-prop.h>.
8864 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
8865 _rtld_main_check.
8866 * sysdeps/generic/dl-prop.h: New file.
8867 * sysdeps/i386/dl-cet.c: Likewise.
8868 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
8869 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
8870 * sysdeps/x86/cet-tunables.h: Likewise.
8871 * sysdeps/x86/check-cet.awk: Likewise.
8872 * sysdeps/x86/configure: Likewise.
8873 * sysdeps/x86/configure.ac: Likewise.
8874 * sysdeps/x86/dl-cet.c: Likewise.
8875 * sysdeps/x86/dl-procruntime.c: Likewise.
8876 * sysdeps/x86/dl-prop.h: Likewise.
8877 * sysdeps/x86/libc-start.h: Likewise.
8878 * sysdeps/x86/link_map.h: Likewise.
8879 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
8880 _CET_ENDBR.
8881 (_dl_runtime_profile): Likewise.
8882 (_dl_runtime_resolve_shstk): New.
8883 (_dl_runtime_profile_shstk): Likewise.
8884 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
8885 if CET is enabled.
8886 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
8887 (CFLAGS-.os): Likewise.
8888 (CFLAGS-.op): Likewise.
8889 (CFLAGS-.oS): Likewise.
8890 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
8891 is enabled.
8892 (tests-special): Add $(objpfx)check-cet.out.
8893 (cet-built-dso): New.
8894 (+$(cet-built-dso:=.note)): Likewise.
8895 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
8896 ($(objpfx)check-cet.out): New.
8897 (generated): Add check-cet.out.
8898 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
8899 <cet-tunables.h>.
8900 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
8901 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8902 (init_cpu_features): Call get_cet_status to check CET status
8903 and update dl_x86_feature_1 with CET status. Call
8904 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
8905 (set_x86_shstk). Disable and lock CET in libc.a.
8906 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
8907 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
8908 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
8909 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
8910 (_CET_ENDBR): Define if not defined.
8911 (ENTRY): Add _CET_ENDBR.
8912 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
8913 x86_shstk.
8914 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
8915 _CET_ENDBR.
8916 (_dl_runtime_profile): Likewise.
8917
8918 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
8919
8920 [BZ #21895]
8921 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
8922 restore r2 on longjmp.
8923 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
8924 test list.
8925 Added rules to build test tst-setjmp-bug21895-static.
8926 Added module setjmp-bug21895 and rules to build a shared object from it.
8927 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
8928 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
8929
8930 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
8931
8932 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
8933 * benchtests/bench-strstr.c: Likewise.
8934 * string/memmem.c (FASTSEARCH): Define.
8935 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
8936 Add support for FASTSEARCH.
8937 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
8938 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
8939 (FASTSEARCH): Define.
8940 * string/test-strcasestr.c: Rename __strnlen to strnlen.
8941 * string/test-strstr.c: Likewise.
8942
8943 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
8944
8945 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
8946 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
8947
8948 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
8949 H.J. Lu <hongjiu.lu@intel.com>
8950
8951 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
8952 (__longjmp): Restore shadow stack pointer if shadow stack is
8953 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8954 isn't defined for __longjmp_cancel.
8955 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
8956 (_setjmp): Save shadow stack pointer if shadow stack is enabled
8957 and SHADOW_STACK_POINTER_OFFSET is defined.
8958 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
8959 (setjmp): Save shadow stack pointer if shadow stack is enabled
8960 and SHADOW_STACK_POINTER_OFFSET is defined.
8961 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
8962 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8963 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8964 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
8965 <jmp_buf-ssp.h>.
8966 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8967 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8968 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
8969 Remove jmp_buf-ssp.sym.
8970 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8971 <jmp_buf-ssp.h>.
8972 (____longjmp_chk): Restore shadow stack pointer if shadow stack
8973 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8974 * sysdeps/x86/Makefile (gen-as-const-headers): Add
8975 jmp_buf-ssp.sym.
8976 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
8977 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
8978 (__longjmp): Restore shadow stack pointer if shadow stack is
8979 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
8980 isn't defined for __longjmp_cancel.
8981 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
8982 (__sigsetjmp): Save shadow stack pointer if shadow stack is
8983 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
8984
8985 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
8986
8987 [BZ #22563]
8988 * nptl/pthread_create.c: Include <tls-setup.h>.
8989 (__pthread_create_2_1): Call tls_setup_tcbhead.
8990 * sysdeps/generic/tls-setup.h: New file.
8991 * sysdeps/x86/nptl/tls-setup.h: Likewise.
8992 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
8993 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
8994 Likewise.
8995 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
8996 to feature_1.
8997 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8998 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
8999 (X86_FEATURE_1_SHSTK): Likewise.
9000 (CET_ENABLED): Likewise.
9001 (IBT_ENABLED): Likewise.
9002 (SHSTK_ENABLED): Likewise.
9003
9004 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9005
9006 [BZ #23208]
9007 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9008 (LOCALES): Likewise.
9009 * localedata/dsb_DE.UTF-8.in: New file.
9010 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9011
9012 2018-07-12 Florian Weimer <fweimer@redhat.com>
9013
9014 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9015 __mprotect, not mprotect.
9016
9017 2018-07-11 Florian Weimer <fweimer@redhat.com>
9018
9019 * io/Makefile (headers): Add bits/statx.h.
9020
9021 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9022
9023 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9024 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9025 and headers.
9026 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9027 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9028 for utf8_gen.py
9029
9030 2018-07-10 Florian Weimer <fweimer@redhat.com>
9031
9032 * io/Makefile (routines): Add statx.
9033 (tests-internal): Add tst-statx.
9034 * io/Versions (GLIBC_2.28): Export statx.
9035 * io/bits/statx.h: New file.
9036 * io/sys/stat.h [__USE_GNU]: Include it.
9037 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9038 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9039 Define.
9040 * io/statx.c: New file.
9041 * io/statx_generic.: Likewise.
9042 * io/tst-statx.: Likewise.
9043 * include/bits/statx.h: Likewise.
9044 * sysdeps/unix/sysv/linux/kernel-features.h
9045 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9046 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9047 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9048 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9049 Undefine.
9050 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9051 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9052 * sysdeps/unix/sysv/linux/statx.c: New file.
9053 * manual/filesys.texi: Note that statx is undocumented.
9054 * sysdeps/**/libc*.abilist: Update.
9055
9056 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9057
9058 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9059 a kernel issue which lead to test failure in some cases.
9060
9061 2018-07-10 Florian Weimer <fweimer@redhat.com>
9062
9063 [BZ #23036]
9064 * posix/regexec.c (check_node_accept_bytes): When comparing
9065 weights, do not compare an extra byte after the end of the
9066 weights.
9067
9068 2018-07-10 Florian Weimer <fweimer@redhat.com>
9069
9070 * libio/readline.c: Fix copyright year.
9071 * libio/tst-readline.c Likewise.
9072 * nss/tst-nss-files-hosts-getent.c: Likewise.
9073
9074 2018-07-06 Florian Weimer <fweimer@redhat.com>
9075
9076 [BZ #18991]
9077 * nss/nss_files/files-XXX.c (internal_getent): Use
9078 __libc_readline_unlocked. Seek back to the start of the line if
9079 parsing failes with ERANGE.
9080 (get_contents_ret, get_contents): Remove.
9081 * nss/tst-nss-files-hosts-getent.c: New file.
9082 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9083 (tst-nss-files-hosts-getent): Link with -ldl.
9084
9085 2018-07-06 Florian Weimer <fweimer@redhat.com>
9086
9087 * include/stdio.h (__libc_readline_unlocked): Declare.
9088 (__ftello64, __fseeko64): Declare aliases.
9089 * libio/readline.c: New file.
9090 * libio/tst-readline.c: Likewise.
9091 (routines): Add readline.
9092 (tests-internal): Add tst-readlime.
9093 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9094 __libc_readline_unlocked.
9095 * libio/fseeko.c (__fseeko): Rename from fseeko.
9096 (fseeko): Add alias.
9097 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9098 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9099 (fseeko64): Add alias.
9100 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9101 * libio/ftello64.c (__ftello64): Rename from ftello64.
9102 (ftello64): Add alias.
9103
9104 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9105
9106 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9107 HWCAP_ATOMICS.
9108
9109 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9110
9111 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9112 Use dl_hwcap without masking.
9113 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9114 Remove HWCAP_CPUID.
9115
9116 2018-07-06 Florian Weimer <fweimer@redhat.com>
9117
9118 * conform/conformtest.pl (checknamespace): Escape literal braces
9119 in regular expressions.
9120
9121 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9122
9123 * sysdeps/x86/cpu-features.c (get_common_indeces):
9124 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9125 * sysdeps/x86/cpu-features.c (init_cpu_features):
9126 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9127
9128 2018-07-05 Florian Weimer <fweimer@redhat.com>
9129
9130 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9131 protector.
9132 (CFLAGS-elf-init.oS): Likewise.
9133
9134 2018-07-05 Florian Weimer <fweimer@redhat.com>
9135 Carlos O'Donell <carlos@redhat.com>
9136
9137 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9138 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9139 with stack protector enabled because there is no risk of infinite
9140 recursion.
9141
9142 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9143
9144 [BZ #19818]
9145 [BZ #23307]
9146 * libc-abis (ABSOLUTE): New ABI.
9147 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9148 * NEWS: Mention the new ABI.
9149
9150 2018-07-05 Florian Weimer <fweimer@redhat.com>
9151
9152 [BZ # 17662]
9153 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9154 (RENAME_WHITEOUT): Define.
9155 [__USE_GNU] (renameat2): Declare.
9156 * stdio-common/Makefile (routines): Add renameat2.
9157 (tests): Add tst-renameat2.
9158 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9159 * stdio-common/renameat2.c: New file.
9160 * stdio-common/tst-renameat2.c: Likewise.
9161 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9162 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9163 undocumented.
9164 * sysdeps/unix/sysv/linux/kernel-features.h
9165 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9166 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9167 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9168 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9169 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9170 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9171 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9172 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9173 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9174 * include/stdio.h (__renameat): Add alias for renameat.
9175 * stdio-common/renameat.c (__renameat): Rename from renameat.
9176 Add hidden definition and alias.
9177 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9178 * sysdeps/mach/hurd/renameat.c: Likewise.
9179 * sysdeps/**/libc*.abilist: Add renameat2.
9180
9181 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9182
9183 * posix/bug-regex33.c: Fix build after regex sync.
9184
9185 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9186
9187 [BZ #23164]
9188 * localedata/tst-langinfo-setlocale.c: New file.
9189 * localedata/tst-langinfo-setlocale-static.c: New file.
9190 * localedata/tst-langinfo-newlocale.c: New file.
9191 * localedata/tst-langinfo-newlocale-static.c: New file.
9192 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9193 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9194 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9195 (tests-static): Remove tst-langinfo-static. Add
9196 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9197 (tests-special): Remove $(objpfx)tst-langinfo.out,
9198 $(objpfx)tst-langinfo-static.out. Add
9199 $(objpfx)tst-langinfo-setlocale.out,
9200 $(objpfx)tst-langinfo-newlocale.out,
9201 $(objpfx)tst-langinfo-setlocale-static.out,
9202 $(objpfx)tst-langinfo-newlocale-static.out.
9203 ($(objpfx)tst-langinfo.out): Remove.
9204 ($(objpfx)tst-langinfo-static.out): Remove.
9205 ($(objpfx)tst-langinfo-newlocale.out): New target.
9206 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9207 (test-xfail-tst-langinfo-newlocale-static): Add.
9208 ($(objpfx)tst-langinfo-setlocale.out): New target.
9209 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9210 * localedata/tst-langinfo.c: Call test_locale.
9211 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9212 data.
9213
9214 2018-07-04 Florian Weimer <fweimer@redhat.com>
9215
9216 testrun.sh: Implement --tool=strace, --tool=valgrind
9217 * Makefile (testrun-script): Define variable.
9218 (testrun.sh): Use variable.
9219 * manual/install.texi (Tools for Compilation): make 4.0 or later
9220 is required.
9221 * configure.ac: Check for make 4.0 or later.
9222 * INSTALL: Regenerate.
9223 * configure: Likewise.
9224
9225 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9226
9227 [BZ #23233]
9228 [BZ #21163]
9229 [BZ #18986]
9230 [BZ #13762]
9231 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9232 * posix/PCRE.tests: Remove invalid test.
9233 * posix/bug-regex28.c: Fix expected values for used syntax.
9234 * posix/bug-regex37.c: New file.
9235 * posix/bug-regex38.c: Likewise.
9236 * posix/regcomp.c: Sync with gnulib.
9237 * posix/regex.c: Likewise.
9238 * posix/regex.h: Likewise.
9239 * posix/regex_internal.c: Likewise.
9240 * posix/regex_internal.h: Likewise.
9241 * posix/regexec.c: Likewise.
9242
9243 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9244
9245 [BZ #23308]
9246 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9247 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9248 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9249 * localedata/unicode-gen/PropList.txt: likewise.
9250 * localedata/unicode-gen/UnicodeData.txt: likewise.
9251 * localedata/charmaps/UTF-8: Regenerate.
9252 * localedata/locales/i18n_ctype: likewise.
9253 * localedata/locales/tr_TR: likewise.
9254 * localedata/locales/translit_circle: likewise.
9255 * localedata/locales/translit_cjk_compat: likewise.
9256 * localedata/locales/translit_combining: likewise.
9257 * localedata/locales/translit_compat: likewise.
9258 * localedata/locales/translit_font: likewise.
9259 * localedata/locales/translit_fraction: likewise.
9260
9261 2018-07-03 Florian Weimer <fweimer@redhat.com>
9262
9263 [BZ #23363]
9264 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9265 * stdio-common/tst-printf.sh: Adjust expected output.
9266 * LICENSES: Update.
9267
9268 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9269
9270 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9271 symbol.
9272
9273 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9274
9275 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9276 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9277 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9278 * stdio-common/tst-printfsz-islongdouble.c: New file.
9279 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9280 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9281 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9282 [subdir == stdio-common] (tests-internal): Add
9283 test-printf-size-ieee128, and test-printf-size-ibm128.
9284 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9285 (CFLAGS-test-printf-size-ibm128.c): New variables.
9286 [subdir == stdio-common] (tests-special): Add
9287 $(objpfx)test-printf-size-ieee128.out and
9288 $(objpfx)test-printf-size-ibm128.out.
9289 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9290 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9291 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9292 __printf_sizeieee128.
9293 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9294 New file.
9295 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9296 Likewise.
9297 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9298 Likewise.
9299
9300 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9301
9302 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9303 (exp2f_inline): Likewise.
9304 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9305 (__math_uflowf): Likewise.
9306 (__math_may_uflowf): Likewise.
9307 (__math_divzerof): Likewise.
9308 (__math_invalidf): Likewise.
9309 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9310 (__math_oflowf): Likewise.
9311 (__math_uflowf): Likewise.
9312 (__math_may_uflowf): Likewise.
9313 (__math_divzerof): Likewise.
9314 (__math_invalidf): Likewise.
9315
9316 2018-06-29 DJ Delorie <dj@redhat.com>
9317 Carlos O'Donell <carlos@redhat.com>
9318
9319 [BZ #23329]
9320 * include/libc-symbols.h: Comment the freeres framework.
9321 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9322 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9323 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9324 * dlfcn/dlerror.c: Include libc-symbols.h
9325 (__dlerror_main_freeres): New function.
9326 * dlfcn/dlfreeres.c: New file.
9327 * dlfcn/sdlfreeres.c: New file.
9328 * include/dlfcn.h: Declare __dlerror_main_freeres.
9329 * malloc/set-freeres.c: Declare __libdl_freeres, and
9330 __libpthread_freeres.
9331 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9332 the releavant libraries are loaded.
9333 * malloc/thread-freeres.c: Add comments.
9334 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9335 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9336 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9337 (__free_stacks): Rename to...
9338 (free_stacks): ...this. Mark static.
9339 (queue_stack): Call free_stacks.
9340 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9341 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9342 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9343 ptr_freeres element from struct.
9344 (pthread_functions): Remove .ptr_freeres from struct initializer.
9345 [SHARED] (nptl_freeres): Remove.
9346 * nptl/nptlfreeres.c: New file.
9347 * nptl/pthreadP.h
9348 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9349 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9350 attribute_hidden.
9351 (__free_stacks): Rename to...
9352 (__nptl_stacks_freeres): ...this.
9353 (__shm_directory_freeres): Declare.
9354 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9355 (__nptl_unwind_freeres): ...this.
9356 * resolv/res-close.c: Add comment.
9357 * resolv/resolv_conf.c: Include libc-symbols.h.
9358 * string/strerror_l.c: Include libc-symbols.h.
9359 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9360 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9361 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9362 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9363
9364 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9365
9366 * stdlib/tst-strfmon_l.c: Add tests for long double.
9367
9368 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9369
9370 [BZ #23208]
9371 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9372 * localedata/locales/dsb_DE: New file.
9373
9374 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9375
9376 [BZ #23140]
9377 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9378 genitive case).
9379 (alt_mon): New entry, import from CLDR (nominative case).
9380
9381 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9382
9383 [BZ #22996]
9384 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9385
9386 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9387
9388 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9389 Use vector registers.
9390
9391 * sysdeps/aarch64/multiarch/memmove_falkor.S
9392 (__memcpy_falkor): Use vector registers.
9393
9394 2018-06-29 Martin Sebor <msebor@redhat.com>
9395
9396 * manual/stdio.texi (Customizing Printf): Mention interaction
9397 with GCC built-ins.
9398
9399 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9400
9401 [BZ #23307]
9402 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9403 `st_value' is 0 if `st_shndx' is SHN_ABS.
9404 * elf/tst-absolute-zero.c: New file.
9405 * elf/tst-absolute-zero-lib.c: New file.
9406 * elf/tst-absolute-zero-lib.lds: New file.
9407 * elf/Makefile (tests): Add `tst-absolute-zero'.
9408 (modules-names): Add `tst-absolute-zero-lib'.
9409 (LDLIBS-tst-absolute-zero-lib.so): New variable.
9410 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
9411 ($(objpfx)tst-absolute-zero: New dependency.
9412
9413 2018-06-29 Zack Weinberg <zackw@panix.com>
9414
9415 * configure.ac: New command-line option --disable-crypt.
9416 Force --disable-nss-crypt when --disable-crypt is given, with a
9417 warning if it was explicitly enabled.
9418 * configure: Regenerate.
9419 * config.make.in: New boolean substitution variable $(build-crypt).
9420 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
9421 when $(build-crypt).
9422 * manual/install.texi: Document --disable-crypt.
9423 * INSTALL: Regenerate.
9424
9425 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
9426 which is never set.
9427 * conform/Makefile: Only include libcrypt.a in
9428 linknamespace-libs-xsi and linknamespace-libs-XPG4
9429 when $(build-crypt).
9430 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
9431 USE_CRYPT to 1 when $(build-crypt).
9432 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
9433 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
9434 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
9435
9436 2018-06-29 Zack Weinberg <zackw@panix.com>
9437
9438 * crypt/crypt.h, posix/unistd.h: Update comments and
9439 prototypes for crypt and crypt_r.
9440
9441 * manual/crypt.texi (Cryptographic Functions): New initial
9442 exposition.
9443 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
9444 (Unpredictable Bytes): Improve initial exposition. Clarify error
9445 behavior of getentropy and getrandom.
9446 * manual/examples/genpass.c: Generate a salt using getentropy
9447 instead of the current time. Use hash $5$ (SHA-2-256).
9448 * manual/examples/testpass.c: Demonstrate validation against
9449 hashes generated with three different one-way functions.
9450
9451 * manual/intro.texi: crypt.texi does not need an overview
9452 anymore.
9453
9454 * manual/nss.texi, manual/memory.texi, manual/socket.texi
9455 * manual/terminal.texi: Consistently refer to "passphrases"
9456 * instead of "passwords", and to the "user database" instead
9457 * of the "password database".
9458 * manual/users.texi: Similarly. Add notes about how actual
9459 passphrase hashes are now stored in the shadow database.
9460 Remove 20-year-old junk todo note.
9461
9462 2018-06-29 Zack Weinberg <zackw@panix.com>
9463
9464 * manual/crypt.texi: Use a normal top-level @node declaration.
9465 Move most of the introductory text to the 'crypt' section.
9466 Move the example programs below the @deftypefun for 'crypt_r'.
9467 Move the 'getpass' section...
9468 * manual/terminal.texi: ...here.
9469
9470 2018-06-29 Zack Weinberg <zackw@panix.com>
9471 Florian Weimer <fweimer@redhat.com>
9472
9473 * posix/unistd.h: Do not declare encrypt.
9474 (_XOPEN_CRYPT): Remove macro definition.
9475 (crypt): Declare only for _USE_MISC.
9476 * stdlib/stdlib.h: Do not declare setkey.
9477 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
9478 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
9479
9480 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
9481 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
9482 into compat symbols. Don't define initial_perm if it's not
9483 going to be used.
9484 * crypt/cert.c: Link explicitly with the expected versions for
9485 setkey and encrypt. If they are not available at all, mark
9486 the test as unsupported.
9487
9488 * sunrpc/des_crypt.c: Unconditionally block linkage with
9489 cbc_crypt and ecb_crypt for new binaries.
9490 * sunrpc/des_soft.c: Unconditionally block linkage with
9491 des_setparity for new binaries.
9492
9493 * manual/crypt.texi: Remove the entire "DES Encryption"
9494 section. Also remove the paragraph talking about FIPS 140-2
9495 from the introduction.
9496 * manual/string.texi (strfry, memfrob): Revise. Recommend use
9497 of libgcrypt for "real" encryption, not DES.
9498 * manual/conf.texi (Constants for Sysconf): Mention that
9499 _XOPEN_CRYPT is no longer impelemented.
9500
9501 * conform/data/unistd.h-data: Remove crypt function declaration.
9502
9503 2018-06-29 Florian Weimer <fweimer@redhat.com>
9504
9505 [BZ #23351]
9506 * malloc/hooks.c: Update comments on restoring of dumped heaps.
9507 (disallow_malloc_check): Remove variable.
9508 (__malloc_check_init): Adjust.
9509 (malloc_set_state): Update comment.
9510 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
9511 declarations.
9512
9513 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9514
9515 [BZ #23140]
9516 * localedata/locales/ast_ES (mon): Rename to...
9517 (alt_mon): This.
9518 (mon): Import from CLDR (genitive case).
9519
9520 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
9521 Jakub Sitnicki <jkbs@redhat.com>
9522
9523 [BZ #21812]
9524 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
9525 on NLM_F_DUMP_INTR.
9526
9527 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
9528
9529 * manual/llio.texi: Remove spurious space.
9530
9531 2018-06-28 Florian Weimer <fweimer@redhat.com>
9532
9533 [BZ #23349]
9534 * time/bits/types/struct_timespec.h: Change header inclusion guard to
9535 _STRUCT_TIMESPEC.
9536
9537 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9538
9539 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
9540 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
9541 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
9542 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
9543 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
9544 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
9545 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
9546
9547 2018-06-27 Maciej W. Rozycki <macro@mips.com>
9548
9549 [BZ #23266]
9550 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
9551 Copy and null-terminate entries that are not terminated, in
9552 addition to empty ones.
9553
9554 2018-06-27 Florian Weimer <fweimer@redhat.com>
9555
9556 [BZ #18023]
9557 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
9558 (extend_alloca_account): Remove.
9559 * manual/stdio.texi (Variable Arguments Output): Update comment.
9560
9561 2018-06-27 Joseph Myers <joseph@codesourcery.com>
9562
9563 * nptl/sockperf.c: Remove file.
9564
9565 2018-06-27 Florian Weimer <fweimer@redhat.com>
9566
9567 [BZ #18023]
9568 * elf/dl-deps.c (_dl_map_object_deps): Use struct
9569 scratch_buffer instead of extend_alloca.
9570
9571 2018-06-27 Florian Weimer <fweimer@redhat.com>
9572
9573 [BZ #18023]
9574 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
9575 scratch_buffer instead of extend_alloca. Update comments.
9576
9577 2018-06-27 Florian Weimer <fweimer@redhat.com>
9578
9579 [BZ #18023]
9580 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
9581 instead of extend_alloca.
9582
9583 2018-06-26 Joseph Myers <joseph@codesourcery.com>
9584
9585 [BZ #13888]
9586 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
9587 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
9588 /tmp.
9589 * scripts/test-installation.pl: Put temporary files in build
9590 directory, not /tmp.
9591 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
9592 (CFLAGS-bug4.c): Likewise.
9593 (CFLAGS-bug5.c): Likewise.
9594 (CFLAGS-test-fseek.c): Likewise.
9595 (CFLAGS-test-popen.c): Likewise.
9596 (CFLAGS-test_rdwr.c): Likewise.
9597 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
9598 /tmp.
9599 * stdio-common/bug4.c (main): Likewise.
9600 * stdio-common/bug5.c (main): Likewise.
9601 * stdio-common/test-fseek.c (TESTFILE): Likewise.
9602 * stdio-common/test-popen.c (do_test): Likewise.
9603 * stdio-common/test_rdwr.c (main): Likewise.
9604
9605 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
9606
9607 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
9608 (sem_open): Set sem.newsem.pad to zero for valgrind.
9609
9610 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9611
9612 [BZ #20251]
9613 * NEWS: Mention fcntl64 addition.
9614 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
9615 * login/utmp_file.c: Likewise.
9616 * sysdeps/posix/fdopendir.c: Likewise.
9617 * sysdeps/posix/opendir.c: Likewise.
9618 * sysdeps/unix/pt-fcntl.c: Likewise.
9619 * include/fcntl.h (__libc_fcntl64, __fcntl64,
9620 __fcntl64_nocancel_adjusted): New prototype.
9621 (__fcntl_nocancel_adjusted): Remove prototype.
9622 * io/Makefile (routines): Add fcntl64.
9623 (CFLAGS-fcntl64.c): New rule.
9624 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
9625 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
9626 * io/fcntl.h (fcntl64): Add prototype and redirect if
9627 __USE_FILE_OFFSET64 is defined.
9628 * io/fcntl64.c: New file.
9629 * manual/llio.text: Add a note for which commands fcntl acts a
9630 cancellation point.
9631 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
9632 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
9633 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
9634 New symbols.
9635 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
9636 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
9637 non-LFS case.
9638 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
9639 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
9640 to __fcntl64_nocancel.
9641 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
9642 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
9643 to __fcntl64_nocancel.
9644 * sysdeps/generic/not-cancel.h: Likewise.
9645 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
9646 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
9647 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9648 (fcntl64): New symbol.
9649 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9650 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9651 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9654 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9655 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9656 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9657 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9658 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9659 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
9660 fcntl64): Likewise.
9661 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9662 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
9663 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9664 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9665 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9666 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9667 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9668 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9669 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9671 Likewise.
9672 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9673 Likewise.
9674 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9675 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9676 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9677
9678 2018-06-26 Florian Weimer <fweimer@redhat.com>
9679
9680 Run thread shutdown functions in an explicit order.
9681 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
9682 definition.
9683 (__libc_thread_freeres): Call thread shutdown functions
9684 explicitly.
9685 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
9686 * include/string.h (__strerror_thread_freeres): Declare.
9687 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
9688 arena_thread_freeres. No longer static. Remove thread shutdown
9689 hook registration.
9690 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
9691 Declare.
9692 * resolv/res-close.c (__res_thread_freeres): Renamed from
9693 res_thread_freeres. No longer static. Remove thread shutdown
9694 hook registration.
9695 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
9696 * resolv/resolv_conf.c (freeres): Remove incorrect section
9697 attribute and use libc_freeres_fn.
9698 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
9699 strerror_thread_freeres. No longer static. Remove thread
9700 shutdown hook registration.
9701 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
9702 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
9703 shutdown hook registration.
9704 * Makerules (shlib.lds): Do not provide section boundary symbols
9705 for __libc_thread_subfreeres.
9706 * manual/memory.texi (Basic Allocation): Update comment.
9707
9708 2018-06-26 Florian Weimer <fweimer@redhat.com>
9709
9710 Remove always-defined _RPC_THREAD_SAFE_ macro.
9711 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
9712 Do not define _RPC_THREAD_SAFE_.
9713 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
9714 conditional.
9715 * sunrpc/clnt_perr.c: Likewise.
9716 * sunrpc/clnt_raw.c: Likewise.
9717 * sunrpc/clnt_simp.c: Likewise.
9718 * sunrpc/key_call.c: Likewise.
9719 * sunrpc/rpc_common.c: Likewise.
9720 * sunrpc/rpc_main.c: Likewise.
9721 * sunrpc/rpc_thread.c: Likewise.
9722 * sunrpc/svc.c: Likewise.
9723 * sunrpc/svc_raw.c: Likewise.
9724 * sunrpc/svc_simple.c: Likewise.
9725 * sumrpc/svcauth_des.c: Likewise.
9726
9727 2018-06-26 Florian Weimer <fweimer@redhat.com>
9728
9729 * libio/Makefile (tests-internal): Add tst-vtables,
9730 tst-vtables-interposed.
9731 * libio/tst-vtables.c: New file.
9732 * libio/tst-vtables-common.c: Likewise.
9733 * libio/tst-vtables-interposed.c: Likewise.
9734
9735 2018-06-26 Florian Weimer <fweimer@redhat.com>
9736
9737 * support/support_test_main.c (support_test_main): Only call
9738 setvbuf if not disables.
9739 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
9740 * support/test-driver.h (struct test_config): Add no_setvbuf member.
9741
9742 2018-06-26 Florian Weimer <fweimer@redhat.com>
9743
9744 [BZ #23313]
9745 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
9746
9747 2018-06-25 Florian Weimer <fweimer@redhat.com>
9748
9749 [BZ #18023]
9750 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9751 Use struct scratch_buffer instead of extend_alloca.
9752
9753 2018-06-25 Florian Weimer <fweimer@redhat.com>
9754
9755 [BZ #18023]
9756 * nss/getent.c (initgroups_keys): Use dynarray instead of
9757 extend_alloca.
9758
9759 2018-06-25 Florian Weimer <fweimer@redhat.com>
9760
9761 [BZ #18023]
9762 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
9763 Use struct scratch_buffer instead of extend_alloca.
9764
9765 2018-06-25 Florian Weimer <fweimer@redhat.com>
9766
9767 [BZ #18023]
9768 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
9769 back to malloc directly, without stack allocations.
9770
9771 2018-06-25 Florian Weimer <fweimer@redhat.com>
9772
9773 [BZ #18023]
9774 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
9775 of extend_alloca.
9776
9777 2018-06-25 Florian Weimer <fweimer@redhat.com>
9778
9779 [BZ #18023]
9780 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
9781 of extend_alloca.
9782 * nscd/hstcache.c (addhstbyX): Likewise.
9783 * nscd/pwdcache.c (addpwbyX): Likewise.
9784 * nscd/servicescache.c (addservbyX): Likewise.
9785
9786 2018-06-25 Florian Weimer <fweimer@redhat.com>
9787
9788 [BZ #18023]
9789 * nscd/connections.c (read_cmdline): New function.
9790 (restart): Use it. Update comment.
9791
9792 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9793
9794 [BZ #23140]
9795 * localedata/locales/csb_PL (mon): Rename to...
9796 (alt_mon): This.
9797 (abmon): Rename to...
9798 (ab_alt_mon): This.
9799 (mon): Add with proper genitive forms, copy from Wikipedia.
9800 (abmon): Likewise.
9801
9802 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
9803
9804 [BZ #19485]
9805 * localedata/locales/csb_PL (mon): Fix typos:
9806 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
9807 (yesstr): Add, value is "jo".
9808 (nostr): Add, value is "nié".
9809
9810 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9811
9812 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
9813 all log1p and significand functions on m680x0.
9814 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
9815 of s_significand.c..
9816 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
9817 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
9818 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
9819 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
9820 s_log1p.c and include it..
9821
9822 2018-06-21 Vincent Chen <vincentc@andestech.com>
9823
9824 * elf/elf.h (R_NDS32_NONE): New define.
9825 (R_NDS32_32_RELA): Likewise.
9826 (R_NDS32_COPY): Likewise.
9827 (R_NDS32_GLOB_DAT): Likewise.
9828 (R_NDS32_JUMP_SLOT): Likewise.
9829 (R_NDS32_RELATIVE): Likewise.
9830 (R_NDS32_TLS_TPOFF): Likewise.
9831 (R_NDS32_TLS_DESC): Likewise.
9832
9833 2018-06-21 Mark Wielaard <mark@klomp.org>
9834
9835 * elf/elf.h (R_BPF_MAP_FD): Removed.
9836 (R_BPF_64_64, R_BPF_64_32): New.
9837
9838 2018-06-21 Florian Weimer <fweimer@redhat.com>
9839
9840 [BZ #23253]
9841 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
9842 Renamed from libc_feholdsetround_ctx.
9843 (default_libc_feresetround_ctx): Renamed from
9844 libc_feresetround_ctx.
9845 (default_libc_feholdsetround_noex_ctx): Renamed from
9846 libc_feholdsetround_noex_ctx.
9847 (default_libc_feresetround_noex_ctx): Renamed from
9848 libc_feresetround_noex_ctx.
9849 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
9850 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
9851 forwardning to the old implementations under the new names.
9852 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
9853 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
9854 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
9855 (libc_feresetround_ctx): Forward to default implements for i386
9856 and MATH_SET_BOTH_ROUNDING_MODES.
9857 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
9858 Add -DMATH_SET_BOTH_ROUNDING_MODES.
9859
9860 2018-06-20 Joseph Myers <joseph@codesourcery.com>
9861
9862 * string/tst-cmp.c: Include <libc-diag.h>.
9863 (strncmp_max): Disable -Wstringop-overflow= around call to
9864 strncmp.
9865 (strncasecmp_max): Disable -Wstringop-overflow= around call to
9866 strncasecmp.
9867
9868 * string/bug-strpbrk1.c: Include <libc-diag.h>.
9869 (main): Disable -Wunused-value around call to strpbrk.
9870 * string/bug-strspn1.c: Include <libc-diag.h>.
9871 (main): Disable -Wunused-value around call to strspn.
9872
9873 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9874 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9875
9876 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
9877 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
9878
9879 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9880
9881 * math/Makefile (libm-calls): Move s_significandF to...
9882 (gen-libm-calls): ... here.
9883 * math/s_significand_template.c: New file.
9884 * math/s_significand.c: Removed.
9885 * math/s_significandf.c: Removed.
9886 * math/s_significandl.c: Removed.
9887 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
9888 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
9889
9890 * math/e_exp2_template.c (declare_mgen_finite_alias,
9891 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
9892 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
9893 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
9894
9895 2018-06-20 Florian Weimer <fweimer@redhat.com>
9896
9897 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
9898
9899 2018-06-19 Joseph Myers <joseph@codesourcery.com>
9900
9901 [BZ #23280]
9902 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
9903 floating-point number to strtod functions rather than possibly
9904 negating result of those functions.
9905 * stdio-common/tst-scanf-round.c: New file.
9906 * stdio-common/Makefile (tests): Add tst-scanf-round.
9907 ($(objpfx)tst-scanf-round): Depend on $(libm).
9908
9909 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9910
9911 * sysdeps/mach/hurd/localplt.data: Move to...
9912 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
9913 R_386_GLOB_DAT like on Linux i386.
9914
9915 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9916
9917 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
9918 (SHM_STAT_ANY): New macro.
9919 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
9920 (SHM_STAT_ANY): Likewise.
9921 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
9922 (SHM_STAT_ANY): Likewise.
9923 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
9924 (SHM_STAT_ANY): Likewise.
9925 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
9926 (SHM_STAT_ANY): Likewise.
9927 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
9928 (SHM_STAT_ANY): Likewise.
9929 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
9930 (SHM_STAT_ANY): Likewise.
9931 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
9932 (SHM_STAT_ANY): Likewise.
9933 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
9934 (SHM_STAT_ANY): Likewise.
9935 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
9936 (SHM_STAT_ANY): Likewise.
9937 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
9938 (SHM_STAT_ANY): Likewise.
9939 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
9940 (SHM_STAT_ANY): Likewise.
9941
9942 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
9943 (SEM_STAT_ANY): New macro.
9944 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
9945 (SEM_STAT_ANY): Likewise.
9946 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
9947 (SEM_STAT_ANY): Likewise.
9948 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
9949 (SEM_STAT_ANY): Likewise.
9950 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
9951 (SEM_STAT_ANY): Likewise.
9952 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
9953 (SEM_STAT_ANY): Likewise.
9954 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
9955 (SEM_STAT_ANY): Likewise.
9956 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
9957 (SEM_STAT_ANY): Likewise.
9958 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
9959 (SEM_STAT_ANY): Likewise.
9960 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
9961 (SEM_STAT_ANY): Likewise.
9962
9963 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
9964 (MSG_STAT_ANY): New macro.
9965 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
9966 (MSG_STAT_ANY): Likewise.
9967 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
9968 (MSG_STAT_ANY): Likewise.
9969 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
9970 (MSG_STAT_ANY): Likewise.
9971 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
9972 (MSG_STAT_ANY): Likewise.
9973 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
9974 (MSG_STAT_ANY): Likewise.
9975 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
9976 (MSG_STAT_ANY): Likewise.
9977 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
9978 (MSG_STAT_ANY): Likewise.
9979 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
9980 (MSG_STAT_ANY): Likewise.
9981 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
9982 (MSG_STAT_ANY): Likewise.
9983
9984 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
9985 (MAP_TYPE): Change value to 0x2b.
9986
9987 2018-06-18 Florian Weimer <fweimer@redhat.com>
9988
9989 [BZ #15722]
9990 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
9991 socket with SOCK_CLOEXEC.
9992
9993 2018-06-18 Joseph Myers <joseph@codesourcery.com>
9994
9995 [BZ #23303]
9996 * sysdeps/powerpc/powerpc64/le/Makefile
9997 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
9998 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
9999 (gnulib-tests): Also add $(f128-loader-link) for
10000 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10001
10002 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10003
10004 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10005 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10006 of sendfile.
10007 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10008 (sendfile64): New strong alias.
10009 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10010 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10011 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10012 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10013 attribute.
10014 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10015 ___pthread_get_cleanup_stack.
10016 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10017 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10018 * mach/shortcut.awk: Make syscall stubs include
10019 <mach-shortcuts-hidden.h> and add hidden definition.
10020 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10021 (__mach_msg): Add hidden prototype.
10022 * mach/msg.c: Include <mach.h>.
10023 (__mach_msg): Add hidden definition.
10024 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10025 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10026 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10027 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10028 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10029 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10030 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10031 prototype and definition.
10032 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10033 hidden target for _hurd_self_sigstate.
10034
10035 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10036
10037 [BZ #23007]
10038 * stdlib/tst-strtod-nan-sign-main.c: New file.
10039 * stdlib/tst-strtod-nan-sign.c: Likewise.
10040 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10041 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10042 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10043 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10044 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10045
10046 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10047
10048 [BZ #23007]
10049 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10050 appropriate sign.
10051
10052 2018-06-14 Florian Weimer <fweimer@redhat.com>
10053
10054 [BZ #23290]
10055 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10056 that the result stays within the ISO-8859-1 range.
10057 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10058 characters are defined in IBM273.
10059
10060 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10061
10062 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10063 __mach_task_self): Remove attribute_hidden.
10064
10065 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10066
10067 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10068 ignore -Wrestrict for one test.
10069
10070 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10071 Szabolcs Nagy <szabolcs.nagy@arm.com>
10072
10073 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10074
10075 2018-06-14 Florian Weimer <fweimer@redhat.com>
10076
10077 * scripts/update-abilist.sh: Accept empty list of files to patch.
10078
10079 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10080
10081 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10082 test-xfail-check-abi-libmachuser): Add.
10083 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10084 __libc_read and __libc_write to __read and __write.
10085 * sysdeps/hurd/include/hurd/port.h: New file.
10086 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10087 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10088 __thread_switch, __evc_wait): Move declarations to...
10089 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10090 attribute_hidden.
10091 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10092 use PLT to call _hurd_self_sigstate.
10093
10094 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10095
10096 [BZ #23279]
10097 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10098 MAX_EXP as overflowing.
10099 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10100 overflow flag.
10101 (round_str): Output also whether result overflows in each rounding
10102 mode.
10103 * stdlib/tst-strtod-round-data: Add more tests.
10104 * stdlib/tst-strtod-round-data.h: Regenerated.
10105 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10106 (TEST): Handle extra arguments for overflow flags.
10107 (struct test_overflow): New type.
10108 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10109 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10110 (test_in_one_mode): Take argument with overflow information.
10111 (do_test): Update calls to test_in_one_mode.
10112
10113 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10114
10115 * elf/dl-load (_dl_dst_substitute): Correct comment.
10116 (_dl_dst_count): Likewise.
10117
10118 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10119 lll_futex_timed_wait.
10120
10121 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10122
10123 [BZ #23277]
10124 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10125 attribute.
10126 * math/test-nan-const.c: New file.
10127 * math/Makefile (tests): Add test-nan-const.
10128 (CFLAGS-test-nan-const.c): New variable.
10129
10130 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10131
10132 * benchtests/scripts/compare_strings.py (process_results): Add
10133 funcs argument. Compare only functions which are selected.
10134 (main): Check if base function is among selected functions.
10135 Pass selected functions to process_results.
10136 (__main__): Add -f/--functions argument.
10137
10138 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10139 Hongbo Zhang <hongbo.zhang@linaro.org>
10140
10141 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10142 __memcpy_falkor for phecda core.
10143 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10144 __memmove_falkor for phecda core.
10145 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10146 __memset_falkor for phecda core.
10147 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10148 for phecda core.
10149 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10150 macro to identify phecda core.
10151
10152 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10153 Andreas Schwab <schwab@suse.de>
10154 Dmitry V. Levin <ldv@altlinux.org>
10155 Florian Weimer <fweimer@redhat.com>
10156
10157 [BZ #23102]
10158 [BZ #21942]
10159 [BZ #18018]
10160 [BZ #23259]
10161 CVE-2011-0536
10162 * elf/dl-dst.h: Remove DL_DST_COUNT.
10163 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10164 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10165 (is_dst): Comment. Support ELF gABI.
10166 (_dl_dst_count): Comment. Simplify and count DSTs.
10167 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10168 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10169 locals.
10170
10171 2018-06-12 Zack Weinberg <zackw@panix.com>
10172
10173 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10174 * sysdeps/unix/sysv/linux/dl-sysdep.c
10175 Include not-cancel.h. Use __close_nocancel instead of __close,
10176 __open64_nocancel instead of __open, __read_nocancel instead of
10177 __libc_read, and __write_nocancel instead of __libc_write.
10178
10179 * csu/check_fds.c (check_one_fd)
10180 * sysdeps/posix/fdopendir.c (__fdopendir)
10181 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10182 instead of __fcntl and/or __libc_fcntl.
10183
10184 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10185 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10186 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10187 Use __open64_nocancel instead of __open_nocancel.
10188
10189 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10190 hidden_proto declarations to the end and issue them if either
10191 IS_IN(libc) or IS_IN(rtld).
10192 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10193 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10194 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10195 read_nocancel, waitpid_nocancel, write_nocancel.
10196
10197 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10198 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10199 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10200
10201 * nptl/pt-fcntl.c: New file.
10202 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10203 (libpthread-routines): Add pt-fcntl.
10204 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10205 (__libc_fcntl): Remove attribute_hidden.
10206 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10207 __fcntl_nocancel_adjusted, not fcntl_common.
10208 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10209 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10210 to fcntl_nocancel.c.
10211 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10213 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10214 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10215
10216 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10217 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10218 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10219 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10220 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10221 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10222 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10223 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10224 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10225 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10226 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10227 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10228 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10229 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10230 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10231 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10232 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10233 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10234 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10235 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10236
10237 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10238 libpthread-routines.
10239 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10240 defines nothing.
10241
10242 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10243 __libc_read, and __write instead of __libc_write. Define
10244 __open64 in addition to __open.
10245
10246 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10247
10248 [BZ #23250]
10249 [BZ #10686]
10250 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10251 to _private_tm[3] and add __glibc_reserved2.
10252 Add _Static_assert of offset of __private_ss == 0x30.
10253 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10254 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10255
10256 2018-06-12 Florian Weimer <fweimer@redhat.com>
10257
10258 x86: Make strncmp usable from rtld.
10259 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10260 __strncmp_ia32 if in libc (and not in rtld).
10261 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10262 strncmp if not in libc (and not to __strncmp_sse2).
10263
10264 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10265
10266 [BZ #23140]
10267 * localedata/locales/gd_GB (mon): Rename to...
10268 (alt_mon): This.
10269 (mon): Import from CLDR (genitive case).
10270 * localedata/locales/hsb_DE (mon): Rename to...
10271 (alt_mon): This.
10272 (mon): Import from CLDR (genitive case).
10273 * localedata/locales/wa_BE (mon): Rename to...
10274 (alt_mon): This.
10275 (mon): Add, fill with the proper genitive forms, but CLDR data
10276 is incomplete; completed according to the comments in this file.
10277 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10278
10279 * localedata/locales/wa_BE (country_name): Reword
10280 "Beljike" -> "Beldjike".
10281
10282 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10283
10284 [BZ #23272]
10285 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10286 cases of non-finite arguments.
10287 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10288
10289 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10290
10291 [BZ #23174]
10292 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10293
10294 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10295
10296 [BZ #23264]
10297 * include/unistd.h (__execvpex): New prototype.
10298 * posix/Makefile (tests): Add tst-spawn4.
10299 (tests-internal): Add tst-spawn4-compat.
10300 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10301 * posix/tst-spawn4-compat.c: New file.
10302 * posix/tst-spawn4.c: Likewise.
10303 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10304 binaries as shell scripts.
10305 * sysdeps/posix/spawni.c (__spawni): Likewise.
10306
10307 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10308
10309 [BZ #23145]
10310 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10311 ($(all-built-dso:=.dynsym): New target.
10312 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10313 ($(objpfx)check-initfini.out): New target.
10314 (generated): Add check-initfini.out.
10315 * scripts/check-initfini.awk: New file.
10316 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10317 (_fini): Likewise.
10318 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10319 (_fini): Likewise.
10320 * sysdeps/arm/crti.S (_init): Mark as hidden.
10321 (_fini): Likewise.
10322 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10323 (_fini): Likewise.
10324 * sysdeps/i386/crti.S (_init): Mark as hidden.
10325 (_fini): Likewise.
10326 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10327 (_fini): Likewise.
10328 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10329 (_fini): Likewise.
10330 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10331 (_fini): Likewise.
10332 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10333 (_fini): Likewise.
10334 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10335 (_fini): Likewise.
10336 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10337 (_fini): Likewise.
10338 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10339 (_fini): Likewise.
10340 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10341 (_fini): Likewise.
10342 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10343 (_fini): Likewise.
10344 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10345 (_fini): Likewise.
10346 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10347 (_fini): Likewise.
10348 * sysdeps/sh/crti.S (_init): Mark as hidden.
10349 (_fini): Likewise.
10350 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10351 (_fini): Likewise.
10352 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10353 (_fini): Likewise.
10354
10355 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10356
10357 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10358 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10359 and TF redirection to KFtype and KF only when the default
10360 long double type is not the IEEE 128-bit floating point type.
10361
10362 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10363
10364 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10365 macro.
10366 (HWCAP_USCAT): Likewise.
10367 (HWCAP_ILRCPC): Likewise.
10368 (HWCAP_FLAGM): Likewise.
10369 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10370 Increase to 28.
10371 (_dl_aarch64_cap_flags): Add new flag names.
10372
10373 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10374 (MAP_FIXED_NOREPLACE): New macro.
10375 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10376 (MAP_FIXED_NOREPLACE): Likewise.
10377 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10378 (MAP_FIXED_NOREPLACE): Likewise.
10379 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10380 (MAP_FIXED_NOREPLACE): Likewise.
10381 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10382 (MAP_FIXED_NOREPLACE): Likewise.
10383 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10384 (MAP_FIXED_NOREPLACE): Likewise.
10385 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10386 (MAP_FIXED_NOREPLACE): Likewise.
10387 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10388 (MAP_FIXED_NOREPLACE): Likewise.
10389 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10390 (MAP_FIXED_NOREPLACE): Likewise.
10391 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10392 (MAP_FIXED_NOREPLACE): Likewise.
10393 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10394 (MAP_FIXED_NOREPLACE): Likewise.
10395 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10396 (MAP_FIXED_NOREPLACE): Likewise.
10397 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10398 (MAP_FIXED_NOREPLACE): Likewise.
10399 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10400 (MAP_FIXED_NOREPLACE): Likewise.
10401 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10402 (MAP_FIXED_NOREPLACE): Likewise.
10403
10404 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10405 version to 4.17.
10406
10407 2018-06-04 Joseph Myers <joseph@codesourcery.com>
10408
10409 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10410 version to 4.17
10411
10412 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10413
10414 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
10415 int.
10416 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
10417
10418 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10419
10420 * benchtests/scripts/compare_string.py: (process_results) Catch
10421 exception in non-existent base_func and catch exception in
10422 non-existent attribute.
10423 (parse_file) Catch exception if input file does not exist.
10424
10425 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10426
10427 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
10428 options to avoid diff calculation and omit header, respectively.
10429 (main): process --no-diff and --no-header
10430
10431 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10432 H.J. Lu <hongjiu.lu@intel.com>
10433
10434 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10435 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
10436 wcsncmp-sse2.
10437 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
10438 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
10439 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
10440 and __wcsncmp_sse2.
10441 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
10442 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
10443 AVX unaligned load is fast and vzeroupper is preferred.
10444 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
10445 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
10446 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
10447 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
10448 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
10449 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
10450 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
10451 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
10452 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
10453 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
10454 is undefined.
10455
10456 2018-06-01 Florian Weimer <fweimer@redhat.com>
10457
10458 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
10459 configuring with --disable-multi-arch, building with
10460 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
10461 Haswell-era CPU.
10462
10463 2018-06-01 Florian Weimer <fweimer@redhat.com>
10464
10465 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
10466 results from building with “-march=x86-64 -mtune=generic
10467 -mfpmath=sse” and running on a Haswell-era CPU.
10468
10469 2018-06-01 Joseph Myers <joseph@codesourcery.com>
10470
10471 [BZ #18473]
10472 * soft-fp/sqrttf2.c: Remove file.
10473 * soft-fp/sqrtdf2.c: Move to ....
10474 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
10475 <shlib-compat.h>.
10476 (__sqrtdf2): Make conditional on
10477 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10478 symbol.
10479 * soft-fp/sqrtsf2.c: Move to ....
10480 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
10481 <shlib-compat.h>.
10482 (__sqrtsf2): Make conditional on
10483 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
10484 symbol.
10485 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
10486 (gcc-double-routines): Remove sqrtdf2.
10487 (gcc-quad-routines): Remove sqrttf2.
10488 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10489 Do not filter out sqrtsf2 and sqrtdf2.
10490 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10491 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
10492
10493 2018-06-01 Florian Weimer <fweimer@redhat.com>
10494
10495 * sysdeps/generic/libcidn.abilist: Remove file.
10496
10497 2018-06-01 Florian Weimer <fweimer@redhat.com>
10498
10499 [BZ #23236]
10500 * libio/strfile.h (struct _IO_str_fields): Rename members to
10501 discourage their use and add comment.
10502 (_IO_STR_DYNAMIC): Remove unused macro.
10503 * libio/strops.c (_IO_str_init_static_internal): Do not use
10504 callback pointers. Call malloc and free.
10505 (_IO_str_overflow): Do not use callback pointers. Call malloc
10506 and free.
10507 (enlarge_userbuf): Likewise.
10508 (_IO_str_finish): Call free.
10509 * libio/wstrops.c (_IO_wstr_init_static): Initialize
10510 _allocate_buffer_unused.
10511 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
10512 and free.
10513 (enlarge_userbuf): Likewise.
10514 (_IO_wstr_finish): Call free.
10515 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
10516 _allocate_buffer_unused, _free_buffer_unused.
10517 * libio/memstream.c (__open_memstream): Likewise.
10518 * libio/vasprintf.c (_IO_vasprintf): Likewise.
10519 * libio/wmemstream.c (open_wmemstream): Likewise.
10520
10521 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
10522
10523 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
10524 AMD Ryzen 7 1800X.
10525
10526 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10527
10528 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
10529 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
10530 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
10531 New file.
10532 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
10533 Likewise.
10534 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
10535
10536 2018-05-29 Florian Weimer <fweimer@redhat.com>
10537
10538 * support/Makefile (libsupport-routines): Add
10539 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
10540 xpthread_barrierattr_setpshared.
10541 * support/xpthread_barrierattr_destroy.c: New file.
10542 * support/xpthread_barrierattr_init.c: Likewise.
10543 * support/xpthread_barrierattr_setpshared.c: Likewise.
10544
10545 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
10546
10547 [BZ #23206]
10548 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
10549 _r_debug and update DT_DEBUG for debugger.
10550
10551 2018-05-29 Florian Weimer <fweimer@redhat.com>
10552
10553 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
10554 (tst-strtod5i.out): Likewise.
10555
10556 2018-05-25 Joseph Myers <joseph@codesourcery.com>
10557
10558 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
10559 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
10560 (sparc64-quad-routines): New variable. Moved from ....
10561 [$(subdir) = soft-fp] (sysdep_routines): Add
10562 $(sparc64-quad-routines). Moved from ....
10563 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
10564 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
10565 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
10566 moved from ....
10567 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
10568 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
10569 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
10570 * sysdeps/sparc/sparc64/qp_add.c: ... here.
10571 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
10572 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
10573 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
10574 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
10575 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
10576 * sysdeps/sparc/sparc64/qp_div.c: ... here.
10577 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
10578 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
10579 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
10580 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
10581 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
10582 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
10583 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
10584 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
10585 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
10586 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
10587 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
10588 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
10589 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
10590 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
10591 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
10592 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
10593 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
10594 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
10595 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
10596 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
10597 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
10598 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
10599 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
10600 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
10601 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
10602 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
10603 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
10604 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
10605 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
10606 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
10607 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
10608 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
10609 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
10610 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
10611 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
10612 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
10613 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
10614 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
10615 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
10616 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
10617 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
10618 * sysdeps/sparc/sparc64/qp_util.c: ... here.
10619 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
10620 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
10621 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
10622 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
10623 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
10624 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
10625
10626 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
10627 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
10628 (sparc32-quad-routines): New variable. Moved from ....
10629 [$(subdir) = soft-fp] (sysdep_routines): Add
10630 $(sparc32-quad-routines). Moved from ....
10631 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
10632 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
10633 moved from ....
10634 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
10635 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
10636 * sysdeps/sparc/sparc32/q_add.c: ... here.
10637 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
10638 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
10639 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
10640 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
10641 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
10642 * sysdeps/sparc/sparc32/q_div.c: ... here.
10643 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
10644 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
10645 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
10646 * sysdeps/sparc/sparc32/q_feq.c: ... here.
10647 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
10648 * sysdeps/sparc/sparc32/q_fge.c: ... here.
10649 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
10650 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
10651 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
10652 * sysdeps/sparc/sparc32/q_fle.c: ... here.
10653 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
10654 * sysdeps/sparc/sparc32/q_flt.c: ... here.
10655 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
10656 * sysdeps/sparc/sparc32/q_fne.c: ... here.
10657 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
10658 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
10659 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
10660 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
10661 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
10662 * sysdeps/sparc/sparc32/q_mul.c: ... here.
10663 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
10664 * sysdeps/sparc/sparc32/q_neg.c: ... here.
10665 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
10666 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
10667 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
10668 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
10669 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
10670 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
10671 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
10672 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
10673 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
10674 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
10675 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
10676 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
10677 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
10678 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
10679 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
10680 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
10681 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
10682 * sysdeps/sparc/sparc32/q_sub.c: ... here.
10683 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
10684 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
10685 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
10686 * sysdeps/sparc/sparc32/q_util.c: ... here.
10687 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
10688 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
10689 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
10690 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
10691
10692 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10693 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10694
10695 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
10696 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
10697 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
10698 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
10699
10700 2018-05-24 Joseph Myers <joseph@codesourcery.com>
10701
10702 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
10703 powerpc/soft-fp.
10704 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
10705 Likewise.
10706 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
10707 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
10708
10709 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10710
10711 [BZ #23171]
10712 * math/math.h [C++] (iseqsig): Fix parameter type for the long
10713 double version.
10714
10715 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10716
10717 * sysdeps/sh/Implies: Remove sh/soft-fp.
10718 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
10719 * sysdeps/sh/sfp-machine.h: ... here.
10720
10721 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10722
10723 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10724 (__mempcpy_erms): Skip zero length.
10725 (__memmove_erms): Likewise.
10726 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
10727 (__memset_erms): Likewise.
10728
10729 2018-05-23 Joseph Myers <joseph@codesourcery.com>
10730
10731 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
10732 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
10733 Add functions moved from ....
10734 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
10735 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
10736 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
10737 from ....
10738 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
10739 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
10740 * sysdeps/alpha/e_sqrtl.c: ... here.
10741 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
10742 * sysdeps/alpha/local-soft-fp.h: ... here.
10743 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
10744 * sysdeps/alpha/ots_add.c: ... here.
10745 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
10746 * sysdeps/alpha/ots_cmp.c: ... here.
10747 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
10748 * sysdeps/alpha/ots_cmpe.c: ... here.
10749 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
10750 * sysdeps/alpha/ots_cvtqux.c: ... here.
10751 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
10752 * sysdeps/alpha/ots_cvtqx.c: ... here.
10753 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
10754 * sysdeps/alpha/ots_cvttx.c: ... here.
10755 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
10756 * sysdeps/alpha/ots_cvtxq.c: ... here.
10757 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
10758 * sysdeps/alpha/ots_cvtxt.c: ... here.
10759 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
10760 * sysdeps/alpha/ots_div.c: ... here.
10761 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
10762 * sysdeps/alpha/ots_mul.c: ... here.
10763 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
10764 * sysdeps/alpha/ots_nintxq.c: ... here.
10765 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
10766 * sysdeps/alpha/ots_sub.c: ... here.
10767 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
10768 * sysdeps/alpha/sfp-machine.h: ... here.
10769
10770 2018-05-23 Florian Weimer <fweimer@redhat.com>
10771
10772 [BZ #19728]
10773 [BZ #19729]
10774 [BZ #22247]
10775 CVE-2016-6261
10776 CVE-2016-6263
10777 CVE-2017-14062
10778 Switch to extern IDNA implementation (libidn2).
10779 * libidn: Remove subdirectory.
10780 * LICENSES: Do not mention licensing conditions for the removed
10781 libidn code.
10782 * config.h.in (HAVE_LIBIDN): Remove.
10783 * include/dlfcn.h (__libc_dlopen): Update comment.
10784 * include/idna.h: Remove file.
10785 * inet/Makefile (routines): Add idna.
10786 (tests-static, tests-internal): Add tst-idna_name_classify.
10787 (LOCALES): Generate locales for tests.
10788 (tst-idna_name_classify.out): Depend on generated locales.
10789 * inet/idna_name_classify.c: New file.
10790 * inet/tst-idna_name_classify.c: Likewise.
10791 * inet/net-internal.h (__idna_to_dns_encoding)
10792 (__idna_from_dns_encoding): Declare.
10793 * inet/net-internal.h (enum idna_name_classification): Define.
10794 (__idna_name_classify): Declare.
10795 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
10796 __idna_from_dns_encoding.
10797 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
10798 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
10799 name as a fallback in case of encoding errors.
10800 (getnameinfo): Use DEPRECATED_NI_IDN.
10801 * inet/idna.c: New file.
10802 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
10803 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
10804 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
10805 (modules-names): Add tst-no-libidn2.
10806 (extra-test-objs): Add tst-no-libidn2.os.
10807 (LDFLAGS-tst-no-libidn2.so): Set soname.
10808 (LOCALES): Set, and generate locales.
10809 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
10810 (tst-resolv-ai_idn-latin1): Likewise.
10811 (tst-resolv-ai_idn-nolibidn2): Likewise.
10812 (tst-resolv-ai_idn.out): Depend on locales.
10813 (tst-resolv-ai_idn-latin1.out): Depend on locales.
10814 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
10815 tst-no-libidn2.so.
10816 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
10817 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
10818 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
10819 * resolv/tst-resolv-ai_idn.c: New file.
10820 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
10821 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
10822 * resolv/tst-no-libidn2.c: Likewise.
10823 * support/support_format_addrinfo.c (format_ai_flags): Do not
10824 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
10825 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
10826 (gaih_inet): Call __idna_to_dns_encoding and
10827 __idna_from_dns_encoding, and use the original (punycode) name if
10828 __idna_from_dns_encoding fails due to an encoding error.
10829 (getaddrinfo): Use DEPRECATED_AI_IDN.
10830 * sysdeps/unix/inet/Subdirs (libidn): Remove.
10831 * sysdeps/unix/inet/configure: Remove file.
10832 * sysdeps/unix/inet/configure.ac: Likewise.
10833
10834 2018-05-23 Florian Weimer <fweimer@redhat.com>
10835
10836 Implement allocate_once.
10837 * include/allocate_once.h: New file.
10838 * misc/allocate_once.c: Likewise.
10839 * misc/tst-allocate_once.c: Likewise.
10840 * misc/Makefile (routines): Add allocate_once.
10841 (tests-internal): Add tst-allocate_once.
10842 (generated): Add tst-allocate_once.mtrace,
10843 tst-allocate_once-mem.out.
10844 (tests-special): Add tst-allocate_once-mem.out.
10845 (tst-allocate_once-ENV): Set MALLOC_TRACE.
10846 (tst-allocate_once-mem.out): Call mtrace.
10847 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
10848
10849 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
10850
10851 [BZ #23196]
10852 * string/test-memcpy.c (do_test1): New function.
10853 (test_main): Call it.
10854
10855 2018-05-23 Andreas Schwab <schwab@suse.de>
10856
10857 [BZ #23196]
10858 CVE-2018-11237
10859 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
10860 (L(preloop_large)): Save initial destination pointer in %r11 and
10861 use it instead of %rax after the loop.
10862 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
10863
10864 2018-05-22 Joseph Myers <joseph@codesourcery.com>
10865
10866 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
10867 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
10868 -I../soft-fp. Moved from ....
10869 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
10870 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
10871 * sysdeps/aarch64/e_sqrtl.c: ... here.
10872 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
10873 * sysdeps/aarch64/sfp-machine.h: ... here.
10874
10875 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
10876 -Wmaybe-uninitialized around access to fq[0].
10877 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
10878 Likewise.
10879
10880 [BZ #18471]
10881 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
10882 aliases for non-libc case of versioned symbols.
10883 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
10884 (llseek): Define as compat symbol if
10885 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
10886 with link warning.
10887 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
10888 Make into a compat symbol, disabled for minimum symbol version
10889 GLIBC_2.28 and later.
10890 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
10891
10892 2018-05-22 Florian Weimer <fweimer@redhat.com>
10893
10894 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
10895 not add -mpreferred-stack-boundary=4.
10896 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
10897 (stack-align-test-flags): Likewise.
10898 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
10899 Likewise.
10900 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
10901 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
10902 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
10903 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
10904 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
10905 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
10906 (CFLAGS-tst-align2.c): Likewise.
10907
10908 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10909
10910 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
10911 (index_arch_Prefer_FSRM): Likewise.
10912 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
10913 Also check Prefer_FSRM.
10914 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
10915 Also return OPTIMIZE (erms) for Prefer_FSRM.
10916
10917 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
10918
10919 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
10920 (index_cpu_FSRM): Likewise.
10921 (reg_FSRM): Likewise.
10922
10923 2018-05-18 Joseph Myers <joseph@codesourcery.com>
10924
10925 * math/gen-tgmath-tests.py: Import sys.
10926 (Tests.__init__): Initialize macros_seen.
10927 (Tests.add_tests): Add macro to macros_seen. Only generate tests
10928 if requested to do so for this macro.
10929 (Tests.add_all_tests): Take argument for macro for which to
10930 generate tests.
10931 (Tests.check_macro_list): New function.
10932 (main): Handle check-list argument and argument specifying macro
10933 for which to generate tests.
10934 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
10935 [PYTHON] (tgmath3-macro-tests): Likewise.
10936 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
10937 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
10938 not test-tgmath3.c.
10939 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
10940 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
10941 to CFLAGS.
10942 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
10943 [PYTHON] ($(foreach
10944 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
10945 rule.
10946 [PYTHON] (tests-special): Add
10947 $(objpfx)test-tgmath3-macro-list.out.
10948 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
10949
10950 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
10951 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
10952 later.
10953
10954 [BZ #22639]
10955 * time/tzset.c (SECSPERDAY): Cast to time_t.
10956 * time/tst-y2039.c: New file.
10957 * time/Makefile (tests): Add tst-y2039.
10958
10959 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
10960
10961 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
10962 (PREFETCH_ONE_SET): Remove duplicate line.
10963
10964 2018-05-17 Florian Weimer <fweimer@redhat.com>
10965
10966 * sysdeps/generic/math-type-macros-double.h: Include
10967 <math-nan-payload-double.h> after <libm-alias-double.h>.
10968 * sysdeps/generic/math-type-macros-float.h: Include
10969 <math-nan-payload-float.h> after <libm-alias-float.h>.
10970 * sysdeps/generic/math-type-macros-float128.h: Include
10971 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
10972 * sysdeps/generic/math-type-macros-ldouble.h: Include
10973 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
10974
10975 2018-05-17 Andreas Schwab <schwab@suse.de>
10976
10977 * resolv/res_send.c (__res_context_send): Don't set errno when
10978 returing error after malloc failure.
10979
10980 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
10981
10982 * nptl/allocatestack.c (allocate_stack): Remove the
10983 !__ASSUME_PRIVATE_FUTEX paths.
10984 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
10985 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
10986 Likewise.
10987 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
10988 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10989 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10990 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
10991 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
10992 !__ASSUME_PRIVATE_FUTEX path.
10993 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
10994 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
10995 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
10996 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
10997 !__ASSUME_PRIVATE_FUTEX macros.
10998 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
10999 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11000 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11001 * sysdeps/unix/sysv/linux/kernel-features.h
11002 (__ASSUME_PRIVATE_FUTEX): Removed.
11003
11004 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11005
11006 * math/Makefile (libm-narrow-fns): Add div.
11007 (libm-test-funcs-narrow): Likewise.
11008 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11009 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11010 * math/gen-auto-libm-tests.c (test_functions): Add div.
11011 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11012 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11013 (NARROW_DIV_TRIVIAL): Likewise.
11014 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11015 macro.
11016 (__ddivl): Likewise.
11017 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11018 ddiv.
11019 (CFLAGS-nldbl-ddiv.c): New variable.
11020 (CFLAGS-nldbl-fdiv.c): Likewise.
11021 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11022 __nldbl_ddivl.
11023 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11024 prototype.
11025 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11026 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11027 * math/auto-libm-test-in: Add tests of div.
11028 * math/auto-libm-test-out-narrow-div: New generated file.
11029 * math/libm-test-narrow-div.inc: New file.
11030 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11031 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11032 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11033 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11034 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11035 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11036 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11037 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11038 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11039 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11040 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11041 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11042 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11043 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11044 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11045 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11046 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11047 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11048 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11049 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11050 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11051 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11052 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11053 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11054 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11055 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11056 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11057 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11058 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11059 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11060 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11061 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11065 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11066 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11067 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11068 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11069 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11070 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11071 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11072 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11073 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11074
11075 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11076
11077 [BZ #23178]
11078 * nscd/nscd-client.h (sendfileall): Remove prototype.
11079 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11080 (handle_request): Use writeall instead of sendfileall.
11081 * nscd/aicache.c (addhstaiX): Likewise.
11082 * nscd/grpcache.c (cache_addgr): Likewise.
11083 * nscd/hstcache.c (cache_addhst): Likewise.
11084 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11085 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11086 * nscd/pwdcache.c (cache_addpw): Likewise.
11087 * nscd/servicescache.c (cache_addserv): Likewise.
11088 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11089 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11090 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11091 Remove define.
11092
11093 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11094
11095 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11096 Include <string/strncat.c>.
11097 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11098 alias.
11099 (__GI___strncat): New hidden alias.
11100
11101 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11102
11103 * sysdeps/mips/mips32/libm-test-ulps: Update.
11104 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11105
11106 2018-05-16 Florian Weimer <fweimer@redhat.com>
11107
11108 * support/Makefile (libsupport-routines): Add support_quote_blob,
11109 support_test_compare_blob.
11110 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11111 * support/check.h (TEST_COMPARE_BLOB): Define.
11112 (support_test_compare_blob): Declare.
11113 * support/support.h (support_quote_blob): Declare.
11114 * support/support_quote_blob.c: New file.
11115 * support/support_test_compare_blob.c: Likewise.
11116 * support/tst-support_quote_blob.c: Likewise.
11117 * support/tst-test_compare_blob.c: Likewise.
11118
11119 2018-05-16 Florian Weimer <fweimer@redhat.com>
11120
11121 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11122 of <strtod_nan_double.h>.
11123 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11124 instead of SET_MANTISSA.
11125 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11126 of include <strtod_nan_float.h>.
11127 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11128 instead of <strtod_nan_ldouble.h>.
11129 * stdlib/strtod_nan_double.h: Move to ...
11130 * sysdeps/generic/math-nan-payload-double.h: ... here.
11131 (FLOAT): Remove definition.
11132 (SET_MANTISSA): Rename to ...
11133 (SET_NAN_PAYLOAD): ... this.
11134 * stdlib/strtod_nan_float.h: Move to ...
11135 * sysdeps/generic/math-nan-payload-float.h: ... here.
11136 (FLOAT): Remove definition.
11137 (SET_MANTISSA): Rename to ...
11138 (SET_NAN_PAYLOAD): ... this.
11139 * sysdeps/generic/math-type-macros-double.h: Include
11140 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11141 instead of <math-svid-compat.h>.
11142 * sysdeps/generic/math-type-macros-float.h: Include
11143 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11144 instead of <math-svid-compat.h>.
11145 * sysdeps/generic/math-type-macros-float128.h: Include
11146 <math-nan-payload-float128.h>.
11147 * sysdeps/generic/math-type-macros-ldouble.h: Include
11148 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11149 instead of <math-svid-compat.h>.
11150 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11151 check for definition.
11152 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11153 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11154 Include <ieee754_float128.h>.
11155 (FLOAT): Remove definition.
11156 (SET_MANTISSA): Rename to ...
11157 (SET_NAN_PAYLOAD): ... this.
11158 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11159 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11160 Do not include <float128_private.h>.
11161 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11162 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11163 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11164 (FLOAT): Remove definition.
11165 (SET_MANTISSA): Rename to ...
11166 (SET_NAN_PAYLOAD): ... this.
11167 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11168 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11169 (FLOAT): Remove definition.
11170 (SET_MANTISSA): Rename to ...
11171 (SET_NAN_PAYLOAD): ... this.
11172 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11173 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11174 (FLOAT): Remove definition.
11175 (SET_MANTISSA): Rename to ...
11176 (SET_NAN_PAYLOAD): ... this.
11177 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11178 of "../stdlib/strtod_nan_double.h".
11179 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11180 of "../stdlib/strtod_nan_float.h".
11181 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11182 instead of "../stdlib/strtod_nan_ldouble.h".
11183 * manual/arith.texi (Parsing of Floats): Adjust comment.
11184
11185 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11186
11187 * math/Makefile (libm-narrow-fns): Add mul.
11188 (libm-test-funcs-narrow): Likewise.
11189 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11190 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11191 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11192 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11193 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11194 (NARROW_MUL_TRIVIAL): Likewise.
11195 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11196 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11197 macro.
11198 (__dmull): Likewise.
11199 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11200 dmul.
11201 (CFLAGS-nldbl-dmul.c): New variable.
11202 (CFLAGS-nldbl-fmul.c): Likewise.
11203 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11204 __nldbl_dmull.
11205 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11206 prototype.
11207 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11208 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11209 * math/auto-libm-test-in: Add tests of mul.
11210 * math/auto-libm-test-out-narrow-mul: New generated file.
11211 * math/libm-test-narrow-mul.inc: New file.
11212 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11213 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11214 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11215 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11216 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11217 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11218 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11219 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11220 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11221 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11222 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11223 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11224 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11225 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11226 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11227 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11228 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11229 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11230 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11231 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11232 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11233 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11234 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11235 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11236 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11237 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11238 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11239 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11240 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11241 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11242 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11243 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11244 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11245 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11248 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11249 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11250 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11251 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11252 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11253 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11254 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11255 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11256
11257 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11258
11259 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11260 with *%eax in call.
11261
11262 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11263
11264 * sysdeps/i386/ldsodefs.h: Removed.
11265 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11266 * sysdeps/x86/ldsodefs.h: This.
11267 (La_i86_regs): New.
11268 (La_i86_retval): Likewise.
11269 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11270 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11271
11272 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11273
11274 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11275 unnecessary testl.
11276
11277 2018-05-13 Alan Modra <amodra@gmail.com>
11278
11279 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11280 R_PARISC_TLS_DTPOFF32 reloc addend.
11281
11282 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11283
11284 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11285 * math/math.h: Restrict the prototype definition for the functions
11286 issignaling(_Float128) and iszero(_Float128); and template
11287 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11288 __HAVE_FLOAT128_UNLIKE_LDBL.
11289 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11290 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11291 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11292 __f128() constants; define the type _Float128 as long double;
11293 and reuse long double in __CFLOAT128.
11294
11295 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11296
11297 * sysdeps/generic/math_private.h: Do not include
11298 <math-barriers.h>.
11299 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11300 <math_private.h>.
11301 * math/fromfp.h: Include <math-barriers.h>.
11302 * math/math-narrow.h: Likewise.
11303 * math/s_nextafter.c: Likewise.
11304 * math/s_nexttowardf.c: Likewise.
11305 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11306 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11307 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11308 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11309 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11310 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11311 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11312 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11313 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11314 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11315 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11316 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11317 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11318 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11319 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11320 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11321 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11322 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11323 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11324 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11325 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11326 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11327 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11328 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11329 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11330 * sysdeps/ieee754/k_standardl.c: Likewise.
11331 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11332 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11333 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11334 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11335 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11336 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11337 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11338 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11339 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11340 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11341 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11342 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11343 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11344 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11345 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11346 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11347 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11348 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11349 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11350 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11351 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11352 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11353
11354 2018-05-11 Florian Weimer <fweimer@redhat.com>
11355
11356 Use 64-bit epoch values in the time zone file parser.
11357 * include/time.h (internal_time_t): Define.
11358 (__tzfile_compute): Use it.
11359 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11360 member.
11361 (transitions): Switch to internal_time_t.
11362 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11363 types.
11364 (__tzfile_compute): Use internal_time_t for timer argument. Check
11365 for truncation before calling __offtime.
11366
11367 2018-05-11 Florian Weimer <fweimer@redhat.com>
11368
11369 [BZ #23166]
11370 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11371 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11372 Likewise.
11373 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11374 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11375 export without --enable-obsolete-rpc.
11376 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11377 symbol. This should not have been exported, ever.
11378
11379 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11380
11381 [BZ #23152]
11382 * localedata/locales/gd_GB (abmon): Fix typo in May:
11383 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11384
11385 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11386
11387 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11388 Use multiple registers to copy data in loop tail.
11389
11390 * sysdeps/aarch64/multiarch/memmove_falkor.S
11391 (__memmove_falkor): Use multiple registers to move data in
11392 loop tail.
11393
11394 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11395
11396 * math/math-underflow.h: New file.
11397 * sysdeps/generic/math_private.h: Do not include <float.h>.
11398 (fabs_tg): Remove macro. Moved to math-underflow.h.
11399 (min_of_type_f): Likewise.
11400 (min_of_type_): Likewise.
11401 (min_of_type_l): Likewise.
11402 (min_of_type_f128): Likewise.
11403 (min_of_type): Likewise.
11404 (math_check_force_underflow): Likewise.
11405 (math_check_force_underflow_nonneg): Likewise.
11406 (math_check_force_underflow_complex): Likewise.
11407 * math/e_exp2_template.c: Include <math-underflow.h>.
11408 * math/k_casinh_template.c: Likewise.
11409 * math/s_catan_template.c: Likewise.
11410 * math/s_catanh_template.c: Likewise.
11411 * math/s_ccosh_template.c: Likewise.
11412 * math/s_cexp_template.c: Likewise.
11413 * math/s_clog10_template.c: Likewise.
11414 * math/s_clog_template.c: Likewise.
11415 * math/s_csin_template.c: Likewise.
11416 * math/s_csinh_template.c: Likewise.
11417 * math/s_csqrt_template.c: Likewise.
11418 * math/s_ctan_template.c: Likewise.
11419 * math/s_ctanh_template.c: Likewise.
11420 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11421 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11422 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11423 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11424 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11425 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11426 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11427 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11428 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11429 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11430 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11431 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11432 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11433 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11434 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11435 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11436 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11437 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11438 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11439 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11440 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11441 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11442 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11443 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11444 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11445 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11446 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11447 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11448 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11449 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11450 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11451 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11452 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11453 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11454 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11455 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11456 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11457 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11458 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11459 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11460 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11461 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11462 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11463 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11464 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11465 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11466 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11467 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11468 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11469 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11470 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11471 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11472 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11473 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
11474 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11475 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11476 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11477 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11478 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11479 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11480 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11481 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11482 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11483 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11484 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11485 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11486 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11487 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11488 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11489 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11490 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11491 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11492 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
11493 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
11494 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11495 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11496 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11497 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11498 * sysdeps/x86/fpu/powl_helper.c: Likewise.
11499 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
11500 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
11501 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
11502 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
11503 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
11504
11505 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11506
11507 * sysdeps/generic/math-barriers.h: New file.
11508 * sysdeps/generic/math_private.h [!math_opt_barrier]
11509 (math_opt_barrier): Move to math-barriers.h.
11510 [!math_opt_barrier] (math_force_eval): Likewise.
11511 * sysdeps/aarch64/fpu/math-barriers.h: New file.
11512 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
11513 math-barriers.h.
11514 (math_force_eval): Likewise.
11515 * sysdeps/alpha/fpu/math-barriers.h: New file.
11516 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
11517 math-barriers.h.
11518 (math_force_eval): Likewise.
11519 * sysdeps/x86/fpu/math-barriers.h: New file.
11520 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
11521 math-barriers.h.
11522 (math_force_eval): Likewise.
11523 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
11524 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
11525 multiple-include guard for rename.
11526 * sysdeps/powerpc/fpu/math-barriers.h: New file.
11527 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
11528 math-barriers.h.
11529 (math_force_eval): Likewise.
11530
11531 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
11532
11533 [BZ #22786]
11534 CVE-2018-11236
11535 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
11536 computation.
11537 * stdlib/Makefile (test-bz22786): New test.
11538 * stdlib/test-bz22786.c: New test.
11539
11540 2018-05-09 Joseph Myers <joseph@codesourcery.com>
11541
11542 * include/math-narrow-eval.h: New file. Contents moved from ....
11543 * sysdeps/generic/math_private.h: ... here.
11544 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
11545 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11546 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
11547 * stdlib/strtod_l.c: Likewise.
11548 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
11549 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11550 * sysdeps/i386/fpu/s_fdim.c: Likewise.
11551 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11552 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11553 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11554 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11555 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11556 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11557 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
11558 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11559 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
11560 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11561 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11562 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11563 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11564 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11565 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11566 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11567 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11568 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11569 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11570 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11571 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11572 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
11573 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11574 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11575 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11576 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
11577
11578 2018-05-08 Andreas Schwab <schwab@suse.de>
11579
11580 * sysdeps/nptl/internaltypes.h: Fix comment.
11581
11582 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
11583
11584 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11585 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
11586 hidden.
11587
11588 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
11589
11590 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
11591 of I into loop header.
11592 * benchtests/bench-memmove-walk.c
11593 (test_main): Likewise.
11594
11595 2018-05-07 Alexandre Oliva <oliva@gnu.org>
11596
11597 Revert:
11598 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
11599 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
11600
11601 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
11602
11603 [BZ #20419]
11604 * elf/dl-load.c (open_verify): Fix stack overflow.
11605 * elf/Makefile (tst-big-note): New test.
11606 * elf/tst-big-note-lib.S: New.
11607 * elf/tst-big-note.c: New.
11608
11609 2018-05-04 Joseph Myers <joseph@codesourcery.com>
11610
11611 * scripts/abilist.awk: Ignore absolute symbols.
11612 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
11613 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
11614 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
11615 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
11616 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
11617 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
11618 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11619 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
11620 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
11621 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
11622 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
11623 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
11624 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
11625 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
11626 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
11627 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
11628 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
11629 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
11630 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11631 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
11632 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11633 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
11634 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
11635 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
11636 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
11637 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
11638 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
11639 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
11640 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11641 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
11666 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11667 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
11668 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
11669 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11670 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
11671 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11672 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
11673 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
11674 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
11675 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
11676 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
11677 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
11678 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
11679 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11680 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
11704 Likewise.
11705 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
11706 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11707 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
11708 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
11709 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11710 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
11711 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11712 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
11713 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
11714 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
11715 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
11716 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
11717 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
11718 Likewise.
11719 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
11720 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11721 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
11722 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
11723 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11724 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
11725 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11726 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
11727 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
11728 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
11729 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
11730 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
11731 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
11732 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
11733 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11734 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
11735 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
11736 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11737 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
11738 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11739 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
11740 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
11741 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
11742 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
11743 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11744 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
11745 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
11746 Likewise.
11747 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
11748 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
11749 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
11750 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
11767 Likewise.
11768 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
11775 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
11776 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
11777 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
11778 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11779 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
11780 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
11781 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11782 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
11783 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
11784 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
11785 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
11786 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11787 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
11788 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
11789 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
11800 Likewise.
11801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11806 Likewise.
11807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
11808 Likewise.
11809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
11811 Likewise.
11812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11814 Likewise.
11815 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
11816 Likewise.
11817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
11818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
11819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
11820 Likewise.
11821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
11822 Likewise.
11823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
11824 Likewise.
11825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
11829 Likewise.
11830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
11836 Likewise.
11837 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11839 Likewise.
11840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11841 Likewise.
11842 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
11843 Likewise.
11844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
11845 Likewise.
11846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
11849 Likewise.
11850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
11851 Likewise.
11852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
11853 Likewise.
11854 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
11855 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
11856 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
11857 Likewise.
11858 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
11859 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11860 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
11861 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
11862 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
11872 Likewise.
11873 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
11885 Likewise.
11886 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11887 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
11888 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
11889 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11890 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
11891 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11892 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
11893 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
11894 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
11895 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
11896 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
11897 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
11898 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
11899 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11900 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
11901 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
11902 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11903 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
11904 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11905 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
11906 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
11907 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
11908 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
11909 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
11910 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
11911 Likewise.
11912 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
11913 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11914 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
11915 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
11916 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11917 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
11918 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11919 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
11920 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
11921 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
11922 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
11923 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
11924 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
11925 Likewise.
11926 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
11927 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11928 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
11929 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
11930 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11931 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
11932 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
11957 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11958 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
11959 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11960 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
11961 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
11962 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
11963 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
11964
11965 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
11966
11967 [BZ #23137]
11968 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
11969 Use atomic_load_acquire to load __tid.
11970
11971 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11972
11973 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
11974 Restore the pointer into %rdx, after syscall and use %rdx,
11975 instead of %rsi, to restore context.
11976
11977 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11978
11979 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
11980 Pop the pointer into %rdx after syscall and use %rdx, instead
11981 of %rsi, to restore context.
11982
11983 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
11984
11985 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
11986 handlers after setjmp.
11987 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
11988 defined.
11989 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
11990 <libc-pointer-arith.h>.
11991 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
11992 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
11993 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
11994 _JUMP_BUF_SIGSET_BITS_PER_WORD.
11995 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
11996 * sysdeps/x86/__longjmp_cancel.S: New file.
11997 * sysdeps/x86/longjmp.c: Likewise.
11998 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
11999
12000 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12001
12002 * NEWS: Add ustat.h deprecation entry.
12003 * bits/ustat.h: Remove file.
12004 * misc/sys/ustat.h: Likewise.
12005 * misc/ustat.h: Likewise.
12006 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12007 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12008 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12009 compatibility mode.
12010 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12011 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12012 generic Linux implementation.
12013
12014 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12015
12016 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12017 * math/w_expl_compat.c: Likewise.
12018 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12019
12020 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12021
12022 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12023
12024 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12025
12026 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12027 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12028 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12029 Remove.
12030 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12031 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12032 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12033 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12034 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12035 and SYSCALL_LL64.
12036
12037 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12038
12039 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12040
12041 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12042 * math/w_asin_template.c: Likewise.
12043 * math/w_atanh_template.c: Likewise.
12044
12045 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12046
12047 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12048 to powerpc/powerpc64/be for big-endian.
12049 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12050 little-endian.
12051
12052 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12053 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12054 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12055 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12056 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12057 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12058 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12059 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12060 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12061 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12062 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12063 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12064 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12065 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12066 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12067 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12068 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12069 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12070 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12071 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12072 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12073 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12074 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12075 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12076 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12077 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12078 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12079 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12080 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12081 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12082 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12083 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12084
12085 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12086 adjusted to imply powerpc64 and older processors on powerpc64/be.
12087 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12088 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12089 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12090 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12091 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12092 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12093 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12094 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12095 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12096 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12097 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12098 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12099 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12100 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12101 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12102 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12103 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12104 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12105 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12106 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12107 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12108 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12109 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12110 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12111 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12112 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12113 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12114 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12115 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12116 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12117 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12118
12119 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12120 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12121 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12122 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12123
12124 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12125 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12126 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12127 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12128
12129 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12130 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12131 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12132 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12133 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12134 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12135 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12136 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12137 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12138 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12139 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12140
12141 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12142 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12143 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12144 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12145 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12146 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12147 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12148 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12149 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12150 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12151 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12152
12153 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12154 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12155 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12156 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12157 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12158 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12159 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12160 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12161 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12162 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12163 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12164 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12165
12166 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12167 and adjusted to imply olders processors.
12168 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12169 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12170 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12171 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12172 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12173 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12174 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12175 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12176 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12177 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12178 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12179
12180 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12181 powerpc64/le.
12182 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12183 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12184
12185 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12186 powerpc64le.
12187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12189
12190 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12191 powerpc64/be.
12192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12193 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12195
12196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12197 powerpc64 and adjusted.
12198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12201 Likewise.
12202
12203 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12204
12205 * sysdeps/tile: Remove.
12206 * sysdeps/unix/sysv/linux/tile: Likewise.
12207 * README (tilegx-*-linux-gnu): Remove from list of supported
12208 configurations.
12209 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12210 contribution of support for generic Linux kernel syscall
12211 interface.
12212 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12213 tilegx configurations.
12214 (Config.install_linux_headers): Do not handle tile.
12215 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12216 in comment.
12217 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12218 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12219 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12220 conditional undefine and redefine.
12221 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12222 in comment.
12223 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12224 conditional undefine and redefine.
12225
12226 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12227
12228 * signal/tst-sigaction.c: New file to test BZ #23069.
12229 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12230
12231 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12232
12233 [BZ #22766]
12234 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12235 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12236 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12237 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12238
12239 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12240
12241 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12242 _DIRENT_MATCHES_DIRENT64 is not defined.
12243 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12244 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12245 is defined.
12246 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12247 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12248
12249 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12250
12251 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12252 version to GCC 8 branch.
12253
12254 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12255
12256 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12257 (check_no_hidden): Use type of original function when declaring
12258 alias.
12259
12260 * sysdeps/unix/sysv/linux/sys/ptrace.h
12261 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12262 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12263 (struct __ptrace_seccomp_metadata): New type.
12264 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12265 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12266 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12267 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12268 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12269 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12270 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12271 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12272 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12273 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12274 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12275 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12276 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12277 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12278 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12279 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12280
12281 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12282
12283 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12284 defined.
12285 * dirent/versionsort.c (versionsort): Likewise.
12286 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12287 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12288 * dirent/versionsort64.c (versionsort64): Likewise.
12289 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12290 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12291 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12292 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12293 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12294 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12295 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12296 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12297 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12298 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12301 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12302 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12303
12304 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12305
12306 * elf/elf.h (NT_PPC_PKEY): New macro.
12307
12308 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12309
12310 [BZ #23094]
12311 * localedata/locales/hr_HR: fix thousands_sep and
12312 mon_thousands_sep
12313
12314 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12315
12316 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12317 (XTABS): Define to TAB3.
12318
12319 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12320
12321 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12322
12323 * dirent/scandir-tail-common.c: New file.
12324 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12325 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12326 * dirent/scandir.c: Use scandir-tail-common.c.
12327 * dirent/scandirat.c: Likewise.
12328 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12329 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12330 if _DIRENT_MATCHES_DIRENT64 is defined.
12331 * dirent/scandirat64.c (scandirat64): Likewise.
12332 * include/dirent.h (__scandir_tail): Only define iff
12333 _DIRENT_MATCHES_DIRENT64 is not defined.
12334 (__scandir64_tail): Define regardless.
12335 (__scandirat, scandirat64): Remove libc_hidden_proto.
12336 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12337 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12339 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12340 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12341 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12342 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12343
12344 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12345
12346 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12347 New macro.
12348 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12349 Increase to 24.
12350 (_dl_aarch64_cap_flags): Add asimdfhm.
12351
12352 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12353
12354 * sysdeps/nios2/libm-test-ulps: Update.
12355
12356 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12357
12358 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12359 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12360
12361 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12362 requirements.
12363 (_DIRENT_MATCHES_DIRENT64): Undef
12364 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12365 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12366 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12367 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12368 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12369 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12370 use getdents64 syscalls as base.
12371 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12372 symbol if required.
12373 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12374 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12375 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12376 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12377 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12378 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12379 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12380 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12381 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12382 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12383 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12384
12385 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12386
12387 * scripts/test_printers_common.py (init_test): Disable lock elision.
12388
12389 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12390
12391 * math/test-tgmath.c (count_double, count_float,
12392 count_ldouble, count_cdouble, count_cfloat,
12393 count_cldouble): Use volatile int.
12394
12395 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12396
12397 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12398 (conformtest-xfail-conds): Add i386-gnu.
12399 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12400 i386-gnu.
12401 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12402 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12403 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12404 msqid_ds.msg_lrpid): Likewise.
12405 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12406 Likewise.
12407 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
12408 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
12409 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
12410 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
12411 unsigned int.
12412 (struct statvfs64): Likewise.
12413 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
12414 Likewise.
12415 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
12416 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
12417 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
12418 instead of wait_queue.
12419 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
12420 instead of vm_area_struct.
12421 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
12422 struct sched_param definition to it.
12423 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12424 * bits/types/struct_sched_param.h: New file.
12425 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
12426 <bits/types/struct_sched_param.h> instead of <sched.h>.
12427 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
12428 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
12429 generic version but include <bits/pthreadtypes.h> to make struct
12430 sigevent's sigev_notify_attributes field a pthread_attr_t*.
12431 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
12432 non-compliant.
12433 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
12434 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
12435 [__USE_XOPEN] (OFDEL): New macro.
12436 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
12437 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
12438 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
12439 prototypes.
12440 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
12441 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
12442 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
12443 non-compliant.
12444 * sysdeps/i386/sys/ucontext.h: Likewise.
12445 * sysdeps/m68k/sys/ucontext.h: Likewise.
12446 * sysdeps/mips/sys/ucontext.h: Likewise.
12447 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
12448 * sysdeps/mach/hurd/i386/Makefile
12449 (test-xfail-POSIX/fcntl.h/conform): Add.
12450 (test-xfail-POSIX/signal.h/conform): Add.
12451 (test-xfail-POSIX/semaphore.h/conform): Add.
12452 (test-xfail-POSIX/regex.h/conform): Add.
12453 (test-xfail-POSIX/aio.h/conform): Add.
12454 (test-xfail-POSIX/mqueue.h/conform): Add.
12455 (test-xfail-POSIX/sys/types.h/conform): Add.
12456 (test-xfail-UNIX98/fcntl.h/conform): Add.
12457 (test-xfail-UNIX98/netdb.h/conform): Add.
12458 (test-xfail-UNIX98/signal.h/conform): Add.
12459 (test-xfail-UNIX98/semaphore.h/conform): Add.
12460 (test-xfail-UNIX98/regex.h/conform): Add.
12461 (test-xfail-UNIX98/aio.h/conform): Add.
12462 (test-xfail-UNIX98/ftw.h/conform): Add.
12463 (test-xfail-UNIX98/mqueue.h/conform): Add.
12464 (test-xfail-UNIX98/netinet/in.h/conform): Add.
12465 (test-xfail-UNIX98/sys/wait.h/conform): Add.
12466 (test-xfail-UNIX98/sys/sem.h/conform): Add.
12467 (test-xfail-UNIX98/sys/uio.h/conform): Add.
12468 (test-xfail-UNIX98/sys/socket.h/conform): Add.
12469 (test-xfail-UNIX98/sys/types.h/conform): Add.
12470 (test-xfail-UNIX98/stdlib.h/conform): Add.
12471 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
12472 (test-xfail-POSIX2008/fcntl.h/conform): Add.
12473 (test-xfail-POSIX2008/netdb.h/conform): Add.
12474 (test-xfail-POSIX2008/signal.h/conform): Add.
12475 (test-xfail-POSIX2008/semaphore.h/conform): Add.
12476 (test-xfail-POSIX2008/regex.h/conform): Add.
12477 (test-xfail-POSIX2008/aio.h/conform): Add.
12478 (test-xfail-POSIX2008/mqueue.h/conform): Add.
12479 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
12480 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
12481 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
12482 (test-xfail-POSIX2008/sys/types.h/conform): Add.
12483 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
12484 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
12485 (test-xfail-XOPEN2K/netdb.h/conform): Add.
12486 (test-xfail-XOPEN2K/signal.h/conform): Add.
12487 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
12488 (test-xfail-XOPEN2K/regex.h/conform): Add.
12489 (test-xfail-XOPEN2K/aio.h/conform): Add.
12490 (test-xfail-XOPEN2K/ftw.h/conform): Add.
12491 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
12492 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
12493 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
12494 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
12495 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
12496 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
12497 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
12498 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
12499 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
12500 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
12501 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
12502 (test-xfail-XOPEN2K8/signal.h/conform): Add.
12503 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
12504 (test-xfail-XOPEN2K8/regex.h/conform): Add.
12505 (test-xfail-XOPEN2K8/aio.h/conform): Add.
12506 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
12507 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
12508 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
12509 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
12510 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
12511 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
12512 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
12513 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
12514 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
12515 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
12516 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
12517 i386-gnu.
12518 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
12519 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
12520
12521 2018-04-18 Joseph Myers <joseph@codesourcery.com>
12522
12523 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
12524 --enable-obsolete for powerpc-linux-gnuspe.
12525
12526 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12527
12528 * conform/data/sys/un.h-data: Allow sun_ prefix.
12529 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
12530 prototypes.
12531 * sysdeps/mach/include/mach.h: Likewise.
12532 * sysdeps/mach/include/mach/mig_support.h: Likewise.
12533 * sysdeps/mach/include/mach_error.h: Likewise.
12534
12535 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12536
12537 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
12538 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
12539 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
12540 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
12541
12542 2018-04-16 Andreas Schwab <schwab@suse.de>
12543
12544 [BZ #19527]
12545 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
12546
12547 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
12548
12549 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
12550 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
12551
12552 2018-04-12 DJ Delorie <dj@redhat.com>
12553
12554 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
12555 version to 4.16.
12556
12557 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
12558
12559 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
12560 (struct kernel_sigaction): Use the same definition on 31bit as is used
12561 on 64bit.
12562
12563 2018-04-09 Florian Weimer <fweimer@redhat.com>
12564
12565 [BZ #23037]
12566 * resolv/res_send.c (send_dg): Use designated initializers instead
12567 of assignment to zero-initialize other fields of struct mmsghdr.
12568
12569 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12570
12571 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
12572 __READDIR_ALIAS): Undefine after usage.
12573 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
12574 __READDIR_R_ALIAS): Likewise.
12575 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
12576 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
12577 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
12578 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
12579 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
12580 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
12581 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
12582 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
12583 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
12584 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
12585 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
12586 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
12587 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
12588 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
12589 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
12590 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
12591 * sysdeps/unix/sysv/linux/readdir.c: New file.
12592 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
12593 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
12594 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
12595
12596 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
12597
12598 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
12599
12600 * manual/charset.texi (Converting a Character): Fix typo.
12601
12602 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12603
12604 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12605
12606 * sysdeps/arm/libm-test-ulps: Update.
12607
12608 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
12609 as base implementation.
12610 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
12611 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
12612 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12613 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12614 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
12615 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
12616 remove unrequired definitions and update comments.
12617 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
12618 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
12619 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
12620 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
12621 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
12622 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
12623 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
12624 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
12625 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
12626 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
12627 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
12628 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
12629 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
12630 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
12631 and RESET_SA_RESTORER hooks.
12632
12633 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
12634
12635 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12636
12637 2018-04-05 Florian Weimer <fweimer@redhat.com>
12638
12639 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
12640 integer overflow, memory leak on error, and indeterminate errno
12641 value. Add a null wide character to terminate the result string.
12642 * manual/charset.texi (Converting a Character): Mention embedded
12643 null bytes in the mbrtowc input string. Explain what happens in
12644 the -2 result case. Do not claim that mbrtowc is simple or
12645 obvious to use. Adjust the description of the code example. Use
12646 @code, not @var, for concrete variables.
12647
12648 2018-04-05 Florian Weimer <fweimer@redhat.com>
12649
12650 * manual/examples/mbstouwcs.c: New file.
12651 * manual/charset.texi (Converting a Character): Include it.
12652
12653 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
12654
12655 * include/dirent.h (dirfd): Add hidden proto.
12656 * dirent/dirfd.c (dirfd): Add hidden def.
12657 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
12658 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
12659
12660 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12661
12662 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
12663 sin, cos and sincos to 1 ULP.
12664
12665 2018-04-04 Maciej W. Rozycki <macro@mips.com>
12666
12667 [BZ #19818]
12668 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
12669 symbols.
12670 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
12671 * elf/tst-absolute-sym.c: New file.
12672 * elf/tst-absolute-sym-lib.c: New file.
12673 * elf/tst-absolute-sym-lib.lds: New file.
12674 * elf/Makefile (tests): Add `tst-absolute-sym'.
12675 (modules-names): Add `tst-absolute-sym-lib'.
12676 (LDLIBS-tst-absolute-sym-lib.so): New variable.
12677 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
12678 ($(objpfx)tst-absolute-sym): New dependency.
12679
12680 [BZ #19818]
12681 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
12682 parameter.
12683 (SYMBOL_ADDRESS): New macro.
12684 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
12685 SYMBOL_ADDRESS for symbol address calculation.
12686 * elf/dl-runtime.c (_dl_fixup): Likewise.
12687 (_dl_profile_fixup): Likewise.
12688 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
12689 * elf/rtld.c (dl_main): Likewise.
12690 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
12691 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
12692 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
12693 (elf_machine_rela): Likewise.
12694 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
12695 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
12696 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
12697 (elf_machine_rela): Likewise.
12698 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
12699 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
12700 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
12701 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12702 Likewise.
12703 (elf_machine_reloc): Likewise.
12704 (elf_machine_got_rel): Likewise.
12705 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
12706 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
12707 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
12708 Likewise.
12709 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
12710 Likewise.
12711 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
12712 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
12713 Likewise.
12714 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
12715 Likewise.
12716 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
12717 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
12718 Likewise.
12719 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
12720 Likewise.
12721 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
12722 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
12723
12724 2018-04-04 Zack Weinberg <zackw@panix.com>
12725
12726 * sysdeps/generic/internal-signals.h: Include signal.h,
12727 sigsetops.h, and stdbool.h.
12728 (__libc_signal_block_all): Actually block all signals.
12729 (__libc_signal_block_app): Likewise.
12730 (__libc_signal_restore_set): Actually restore the signal mask.
12731
12732 2018-04-04 Florian Weimer <fweimer@redhat.com>
12733
12734 inet: Actually build and run tst-deadline.
12735 * inet/Makefile (tests-internal): Add tst-deadline and do not
12736 overwrite the variable.
12737 (tests-static-internal): Remove variable.
12738
12739 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
12740
12741 [BZ #22947]
12742 * bits/uio-ext.h (RWF_APPEND): New.
12743 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
12744 * manual/llio.texi: Document RWF_APPEND.
12745 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
12746 (RWF_SUPPORTED): Add RWF_APPEND.
12747
12748 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12749
12750 [BZ #22391]
12751 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
12752 check for internal nptl signals.
12753 * nptl/sigaction.c (__sigaction): Likewise.
12754 * signal/sigaddset.c (sigaddset): Likewise.
12755 * signal/sigdelset.c (sigdelset): Likewise.
12756 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
12757 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
12758 value.
12759 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
12760 to filter out internal nptl signals.
12761 * signal/tst-sigset.c (do_test): Check ech signal indidually and
12762 also check realtime signals using standard macros.
12763 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
12764 __is_internal_signal, __libc_signal_block_all,
12765 __libc_signal_block_app, __libc_signal_restore_set): New functions.
12766 * sysdeps/nptl/sigfillset.c: Remove file.
12767 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
12768 Change return to bool.
12769 (__clear_internal_signals): Remove SIGTIMER clean since it is
12770 equal to SIGCANEL on Linux.
12771 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
12772 signal set was constructed using standard functions.
12773
12774 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
12775
12776 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
12777 ifname is too long.
12778 * hurd/hurdsig.c (interrupted_reply_port_location): Use
12779 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
12780 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
12781 hidden def.
12782 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
12783 * signal/sigaddset.c: Include <sigsetopts.h>.
12784 * signal/sigdelset.c: Likewise.
12785
12786 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12787
12788 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
12789 (__cos): Likewise.
12790 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
12791 logic as sin and cos.
12792
12793 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12794
12795 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
12796 inputs. Return correct sign.
12797 (do_sincos): Remove small input check before do_sin, let do_sin set
12798 the sign.
12799 (__sin): Likewise.
12800 (__cos): Likewise.
12801
12802 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12803
12804 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
12805 (do_cos_slow): Likewise.
12806 (do_sin_slow): Likewise.
12807 (reduce_and_compute): Likewise.
12808 (slow): Likewise.
12809 (slow1): Likewise.
12810 (slow2): Likewise.
12811 (sloww): Likewise.
12812 (sloww1): Likewise.
12813 (sloww2): Likewise.
12814 (bslow): Likewise.
12815 (bslow1): Likewise.
12816 (bslow2): Likewise.
12817 (cslow2): Likewise.
12818
12819 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12820
12821 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
12822 (do_cos): Remove corp parameter and calculations.
12823 (do_sin): Likewise.
12824 (do_sincos): Remove cor variable.
12825 (__sin): Use do_sincos for huge inputs.
12826 (__cos): Likewise.
12827 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12828 (reduce_and_compute_sincos): Remove unused function.
12829
12830 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12831
12832 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
12833 reduce_sincos, improve accuracy to 136 bits.
12834 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
12835 (__sin): Use improved reduction and simplified do_sincos calculation.
12836 (__cos): Likewise.
12837 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12838
12839 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12840
12841 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
12842 (do_sincos_2): Likewise.
12843 (__sin): Remove middle range reduction case.
12844 (__cos): Likewise.
12845 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
12846 reduction case.
12847
12848 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
12849
12850 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
12851 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
12852 inputs.
12853 (__cos): Likewise.
12854 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
12855
12856 2018-04-03 Joseph Myers <joseph@codesourcery.com>
12857
12858 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
12859 version to 4.16
12860
12861 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12862
12863 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
12864 Remove definitions.
12865 (opendir_oflags): Use O_DIRECTORY regardless.
12866 (__opendir, __opendirat): Remove need_isdir_precheck usage.
12867 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
12868
12869 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
12870
12871 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
12872 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
12873 macros.
12874 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
12875 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
12876 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
12877 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
12878 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
12879 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
12880
12881 * htl/Makefile: Bump licence to LGPL 2.1+.
12882 * htl/alloca_cutoff.c: Likewise.
12883 * htl/cthreads-compat.c: Likewise.
12884 * htl/lockfile.c: Likewise.
12885 * htl/pt-alloc.c: Likewise.
12886 * htl/pt-cancel.c: Likewise.
12887 * htl/pt-cleanup.c: Likewise.
12888 * htl/pt-create.c: Likewise.
12889 * htl/pt-dealloc.c: Likewise.
12890 * htl/pt-detach.c: Likewise.
12891 * htl/pt-exit.c: Likewise.
12892 * htl/pt-getattr.c: Likewise.
12893 * htl/pt-initialize.c: Likewise.
12894 * htl/pt-internal.h: Likewise.
12895 * htl/pt-join.c: Likewise.
12896 * htl/pt-self.c: Likewise.
12897 * htl/pt-setcancelstate.c: Likewise.
12898 * htl/pt-setcanceltype.c: Likewise.
12899 * htl/pt-sigmask.c: Likewise.
12900 * htl/pt-spin-inlines.c: Likewise.
12901 * htl/pt-testcancel.c: Likewise.
12902 * htl/pt-yield.c: Likewise.
12903 * htl/tests/test-1.c: Likewise.
12904 * htl/tests/test-10.c: Likewise.
12905 * htl/tests/test-11.c: Likewise.
12906 * htl/tests/test-12.c: Likewise.
12907 * htl/tests/test-13.c: Likewise.
12908 * htl/tests/test-14.c: Likewise.
12909 * htl/tests/test-15.c: Likewise.
12910 * htl/tests/test-16.c: Likewise.
12911 * htl/tests/test-17.c: Likewise.
12912 * htl/tests/test-2.c: Likewise.
12913 * htl/tests/test-3.c: Likewise.
12914 * htl/tests/test-4.c: Likewise.
12915 * htl/tests/test-5.c: Likewise.
12916 * htl/tests/test-6.c: Likewise.
12917 * htl/tests/test-7.c: Likewise.
12918 * htl/tests/test-8.c: Likewise.
12919 * htl/tests/test-9.c: Likewise.
12920 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
12921 * sysdeps/htl/bits/cancelation.h: Likewise.
12922 * sysdeps/htl/bits/pthread-np.h: Likewise.
12923 * sysdeps/htl/bits/pthread.h: Likewise.
12924 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
12925 * sysdeps/htl/bits/semaphore.h: Likewise.
12926 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
12927 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
12928 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
12929 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
12930 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
12931 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
12932 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
12933 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
12934 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
12935 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
12936 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
12937 * sysdeps/htl/old_pt-atfork.c: Likewise.
12938 * sysdeps/htl/pt-atfork.c: Likewise.
12939 * sysdeps/htl/pt-attr-destroy.c: Likewise.
12940 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
12941 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
12942 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
12943 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
12944 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
12945 * sysdeps/htl/pt-attr-getscope.c: Likewise.
12946 * sysdeps/htl/pt-attr-getstack.c: Likewise.
12947 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
12948 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
12949 * sysdeps/htl/pt-attr-init.c: Likewise.
12950 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
12951 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
12952 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
12953 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
12954 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
12955 * sysdeps/htl/pt-attr-setscope.c: Likewise.
12956 * sysdeps/htl/pt-attr-setstack.c: Likewise.
12957 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
12958 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
12959 * sysdeps/htl/pt-attr.c: Likewise.
12960 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
12961 * sysdeps/htl/pt-barrier-init.c: Likewise.
12962 * sysdeps/htl/pt-barrier-wait.c: Likewise.
12963 * sysdeps/htl/pt-barrier.c: Likewise.
12964 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
12965 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
12966 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
12967 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
12968 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
12969 * sysdeps/htl/pt-cond-destroy.c: Likewise.
12970 * sysdeps/htl/pt-cond-init.c: Likewise.
12971 * sysdeps/htl/pt-cond-signal.c: Likewise.
12972 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
12973 * sysdeps/htl/pt-cond-wait.c: Likewise.
12974 * sysdeps/htl/pt-cond.c: Likewise.
12975 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
12976 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
12977 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
12978 * sysdeps/htl/pt-condattr-init.c: Likewise.
12979 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
12980 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
12981 * sysdeps/htl/pt-destroy-specific.c: Likewise.
12982 * sysdeps/htl/pt-equal.c: Likewise.
12983 * sysdeps/htl/pt-getconcurrency.c: Likewise.
12984 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
12985 * sysdeps/htl/pt-getschedparam.c: Likewise.
12986 * sysdeps/htl/pt-getspecific.c: Likewise.
12987 * sysdeps/htl/pt-init-specific.c: Likewise.
12988 * sysdeps/htl/pt-key-create.c: Likewise.
12989 * sysdeps/htl/pt-key-delete.c: Likewise.
12990 * sysdeps/htl/pt-key.h: Likewise.
12991 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
12992 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
12993 * sysdeps/htl/pt-mutex-init.c: Likewise.
12994 * sysdeps/htl/pt-mutex-lock.c: Likewise.
12995 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
12996 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
12997 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
12998 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
12999 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13000 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13001 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13002 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13003 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13004 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13005 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13006 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13007 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13008 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13009 * sysdeps/htl/pt-mutexattr.c: Likewise.
13010 * sysdeps/htl/pt-once.c: Likewise.
13011 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13012 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13013 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13014 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13015 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13016 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13017 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13018 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13019 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13020 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13021 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13022 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13023 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13024 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13025 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13026 * sysdeps/htl/pt-setschedparam.c: Likewise.
13027 * sysdeps/htl/pt-setschedprio.c: Likewise.
13028 * sysdeps/htl/pt-setspecific.c: Likewise.
13029 * sysdeps/htl/pt-spin.c: Likewise.
13030 * sysdeps/htl/pt-startup.c: Likewise.
13031 * sysdeps/htl/pthread.h: Likewise.
13032 * sysdeps/htl/sem-close.c: Likewise.
13033 * sysdeps/htl/sem-destroy.c: Likewise.
13034 * sysdeps/htl/sem-getvalue.c: Likewise.
13035 * sysdeps/htl/sem-init.c: Likewise.
13036 * sysdeps/htl/sem-open.c: Likewise.
13037 * sysdeps/htl/sem-post.c: Likewise.
13038 * sysdeps/htl/sem-timedwait.c: Likewise.
13039 * sysdeps/htl/sem-trywait.c: Likewise.
13040 * sysdeps/htl/sem-unlink.c: Likewise.
13041 * sysdeps/htl/sem-wait.c: Likewise.
13042 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13043 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13044 * sysdeps/mach/htl/pt-block.c: Likewise.
13045 * sysdeps/mach/htl/pt-spin.c: Likewise.
13046 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13047 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13048 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13049 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13050 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13051 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13052 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13053 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13054 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13055 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13056 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13057 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13058 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13059 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13060 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13061 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13062 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13063 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13064 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13065 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13066 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13067 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13068 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13069 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13070 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13071 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13072 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13073 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13074 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13075 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13076 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13077 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13078 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13079 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13080 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13081 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13082 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13083 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13084 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13085 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13086 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13087 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13088 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13089
13090 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13091 * README: Remove the mention of out-of-tree patches needed for
13092 GNU/Hurd.
13093
13094 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13095 (UTIME_NOW, UTIME_OMIT): Define macros.
13096
13097 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13098 instead of pthread_detach.
13099 (__cthread_fork): Call __pthread_create instead of pthread_create.
13100 (__cthread_keycreate): Call __pthread_key_create instead of
13101 pthread_key_create.
13102 (__cthread_getspecific): Call __pthread_getspecific instead of
13103 pthread_getspecific.
13104 (__cthread_setspecific): Call __pthread_setspecific instead of
13105 pthread_setspecific.
13106 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13107 __pthread_mutex_unlock instead of pthread_mutex_lock and
13108 pthread_mutex_unlock.
13109 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13110 ___pthread_get_cleanup_stack.
13111 (__pthread_get_cleanup_stack): New strong alias.
13112 * htl/pt-create.c: Include <pthreadP.h>.
13113 (entry_point): Call __pthread_exit instead of pthread_exit.
13114 (pthread_create): Rename to __pthread_create.
13115 (pthread_create): New strong alias.
13116 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13117 (pthread_detach): New strong alias.
13118 (__pthread_detach): Call __pthread_cond_broadcast instead of
13119 pthread_cond_broadcast.
13120 * htl/pt-exit.c: Include <pthreadP.h>.
13121 (__pthread_exit): Call __pthread_setcancelstate and
13122 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13123 __pthread_get_cleanup_stack.
13124 * htl/pt-testcancel.c: Include <pthreadP.h>.
13125 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13126 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13127 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13128 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13129 pthread_attr_getstacksize.
13130 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13131 Rename to __pthread_attr_getstackaddr.
13132 (pthread_attr_getstackaddr): New strong alias.
13133 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13134 Rename to __pthread_attr_getstacksize.
13135 (pthread_attr_getstacksize): New strong alias.
13136 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13137 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13138 (pthread_attr_setstack): New strong alias.
13139 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13140 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13141 pthread_attr_getstacksize, pthread_attr_setstacksize and
13142 pthread_attr_setstackaddr.
13143 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13144 Rename to __pthread_attr_setstackaddr.
13145 (pthread_attr_setstackaddr): New strong alias.
13146 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13147 Rename to __pthread_attr_setstacksize.
13148 (pthread_attr_setstacksize): New strong alias.
13149 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13150 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13151 pthread_exit.
13152 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13153 (__pthread_key_create): New hidden def.
13154 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13155 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13156 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13157 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13158 __pthread_setspecific, __pthread_setcancelstate,
13159 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13160 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13161 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13162 declarations.
13163 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13164 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13165 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13166 (pthread_attr_setstackaddr): New strong alias.
13167 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13168 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13169 (pthread_attr_setstacksize): New strong alias.
13170 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13171 (call_exit): Call __pthread_exit instead of pthread_exit.
13172 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13173 (_pthread_mutex_init): New hidden definition.
13174 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13175 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13176 instead of pthread_attr_init and pthread_attr_setstack.
13177
13178 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13179 __vm_deallocate instead of vm_allocate and vm_deallocate.
13180 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13181 setenv.
13182 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13183 of geteuid.
13184 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13185 strdup.
13186 * hurd/siginfo.c: Include <libioP.h>.
13187 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13188 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13189 munmap.
13190 * mach/devstream.c: Include <libioP.h>.
13191 (dealloc_ref): Call __mach_port_deallocate instead of
13192 mach_port_deallocate.
13193 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13194 Call __mach_port_deallocate instead of mach_port_deallocate.
13195 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13196 pathconf.
13197 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13198 munmap.
13199 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13200 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13201 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13202 of munmap.
13203 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13204 of close.
13205 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13206 instead of sysconf.
13207 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13208 __clock_gettime instead of clock_gettime.
13209 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13210 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13211 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13212 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13213 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13214 tcgetattr.
13215 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13216 __clock_gettime and __nanosleep instead of clock_gettime and
13217 nanosleep.
13218 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13219 __hurd_catch_signal.
13220 (hurd_catch_signal): New strong alias.
13221 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13222 __hurd_catch_signal instead of hurd_catch_signal.
13223 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13224 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13225 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13226 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13227 (_hurd_thread_sigstate): Add hidden def.
13228 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13229 mutex_unlock.
13230 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13231 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13232 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13233 __hurd_file_name_path_lookup.
13234 (hurd_file_name_path_lookup): New strong alias.
13235 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13236 hurd_file_name_path_lookup.
13237 * mach/errstring.c (mach_error_type): Add hidden def.
13238 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13239 * mach/mutex-init.c (__mutex_init): Add hidden def.
13240 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13241 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13242 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13243 * sysdeps/mach/hurd/getcwd.c
13244 (_hurd_canonicalize_directory_name_internal): Rename to
13245 __hurd_canonicalize_directory_name_internal.
13246 (_hurd_canonicalize_directory_name_internal): New strong alias.
13247 (__canonicalize_directory_name_internal, __getcwd): Call
13248 __hurd_canonicalize_directory_name_internal instead of
13249 _hurd_canonicalize_directory_name_internal.
13250 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13251 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13252 hidden defs.
13253 * sysdeps/hurd/include/hurd.h: New file.
13254 * sysdeps/hurd/include/hurd/fd.h: New file.
13255 * sysdeps/hurd/include/hurd/signal.h: New file.
13256 * sysdeps/mach/include/lock-intern.h: New file.
13257 * sysdeps/mach/include/mach.h: New file.
13258 * sysdeps/mach/include/mach/mig_support.h: New file.
13259 * sysdeps/mach/include/mach_error.h: New file.
13260 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13261 prototype.
13262 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13263 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13264 _HEADER_H_HIDDEN_DEF macro.
13265 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13266 _hurd_fd_error_signal): Add hidden prototype.
13267 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13268 hidden def.
13269 * libio/iolibio.h (_IO_puts): New hidden prototype.
13270 * libio/ioputs.c (_IO_puts): New hidden def.
13271 * sysdeps/mach/hurd/localplt.data: New file.
13272
13273 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13274 Amos Jeffries <squid3@treenet.co.nz>
13275 David Michael <fedora.dm0@gmail.com>
13276 Marco Gerards <marco@gnu.org>
13277 Marcus Brinkmann <marcus@gnu.org>
13278 Neal H. Walfield <neal@gnu.org>
13279 Pino Toscano <toscano.pino@tiscali.it>
13280 Richard Braun <rbraun@sceen.net>
13281 Roland McGrath <roland@gnu.org>
13282 Samuel Thibault <samuel.thibault@ens-lyon.org>
13283 Thomas DiModica <ricinwich@yahoo.com>
13284 Thomas Schwinge <tschwinge@gnu.org>
13285
13286 * htl: New directory.
13287 * sysdeps/htl: New directory.
13288 * sysdeps/hurd/htl: New directory.
13289 * sysdeps/i386/htl: New directory.
13290 * sysdeps/mach/htl: New directory.
13291 * sysdeps/mach/hurd/htl: New directory.
13292 * sysdeps/mach/hurd/i386/htl: New directory.
13293 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13294 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13295 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13296
13297 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13298
13299 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13300 signals in thread created for runing timers.
13301
13302 2018-04-01 Florian Weimer <fweimer@redhat.com>
13303
13304 * support/support_format_addrinfo.c (support_format_addrinfo):
13305 Include unknown error number in formatted result.
13306
13307 2018-03-29 Florian Weimer <fweimer@redhat.com>
13308
13309 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13310 capture SIGBUS.
13311
13312 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13313
13314 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13315 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13316 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13317 (__ASSUME_CLONE_BACKWARDS): Define.
13318
13319 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13320
13321 [BZ #23024]
13322 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13323 early when linux sentinel value is set.
13324
13325 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13326
13327 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13328
13329 2018-03-27 Andreas Schwab <schwab@suse.de>
13330
13331 [BZ #23005]
13332 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13333 allocation of private copy of nsaddr_list fails.
13334
13335 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13336
13337 [BZ #16552]
13338 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13339 * sysdeps/unix/sysv/linux/umount.c: ... here.
13340 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13341 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13342 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13343 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13345 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13346 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13347
13348 2018-03-26 Andreas Schwab <schwab@suse.de>
13349
13350 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13351 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13352 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13353 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13354 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13355 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13356 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13357 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13358 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13359 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13360 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13361 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13362 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13363 (R_RISCV_NUM): Define.
13364
13365 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13366
13367 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13368 TLS declaration of errno.
13369 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13370 __libc_setup_tls.
13371 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13372 (ARCH_SETUP_TLS): Likewise.
13373 * sysdeps/mach/hurd/libc-start.h: New file copied from
13374 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13375 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13376 instead of __libc_setup_tls.
13377 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13378 __libc_setup_tls before initializing libpthread and running _hurd_init
13379 which starts the signal thread.
13380 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13381 Declare function.
13382 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13383
13384 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13385
13386 [BZ #22998]
13387 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13388 after it is defined.
13389
13390 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13391 Max Horn <max@quendi.de>
13392
13393 [BZ #22644]
13394 CVE-2017-18269
13395 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13396 branch conditions.
13397 * string/test-memmove.c (do_test2): New testcase.
13398
13399 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13400
13401 * sysdeps/generic/frame.h: Remove file.
13402 * sysdeps/arm/frame.h: Likewise.
13403 * sysdeps/hppa/frame.h: Likewise.
13404 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13405 macro.
13406 (GET_FRAME): Likewise.
13407 (GET_STACK): Likewise.
13408 (CALL_SIGHANDLER): Likewise.
13409 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
13410 Likewise.
13411 (GET_FRAME): Likewise.
13412 (GET_STACK): Likewise.
13413 (CALL_SIGHANDLER): Likewise.
13414 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
13415 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13416 (GET_FRAME): Likewise.
13417 (GET_STACK): Likewise.
13418 (CALL_SIGHANDLER): Likewise.
13419 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
13420 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13421 (GET_FRAME): Likewise.
13422 (GET_STACK): Likewise.
13423 (ADVANCE_STACK_FRAME): Likewise.
13424 (CALL_SIGHANDLER): Likewise.
13425 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
13426 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13427 (GET_FRAME): Likewise.
13428 (GET_STACK): Likewise.
13429 (CALL_SIGHANDLER): Likewise.
13430 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
13431 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13432 (GET_FRAME): Likewise.
13433 (GET_STACK): Likewise.
13434 (CALL_SIGHANDLER): Likewise.
13435 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
13436 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13437 (GET_FRAME): Likewise.
13438 (GET_STACK): Likewise.
13439 (CALL_SIGHANDLER): Likewise.
13440 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
13441 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13442 (GET_FRAME): Likewise.
13443 (GET_STACK): Likewise.
13444 (CALL_SIGHANDLER): Likewise.
13445 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
13446 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13447 (GET_FRAME): Likewise.
13448 (GET_STACK): Likewise.
13449 (CALL_SIGHANDLER): Likewise.
13450 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
13451 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13452 (GET_FRAME): Likewise.
13453 (GET_STACK): Likewise.
13454 (CALL_SIGHANDLER): Likewise.
13455 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
13456 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13457 (GET_FRAME): Likewise.
13458 (GET_STACK): Likewise.
13459 (CALL_SIGHANDLER): Likewise.
13460 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
13461 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13462 (GET_FRAME): Likewise.
13463 (GET_STACK): Likewise.
13464 (CALL_SIGHANDLER): Likewise.
13465 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
13466 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13467 (GET_FRAME): Likewise.
13468 (GET_STACK): Likewise.
13469 (CALL_SIGHANDLER): Likewise.
13470 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
13471 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13472 (FIRST_FRAME_POINTER): Likewise.
13473 (ADVANCE_STACK_FRAME): Likewise.
13474 (GET_STACK): Likewise.
13475 (GET_FRAME): Likewise.
13476 (CALL_SIGHANDLER): Likewise.
13477 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
13478 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13479 (ADVANCE_STACK_FRAME): Likewise.
13480 (GET_STACK): Likewise.
13481 (GET_FRAME): Likewise.
13482 (CALL_SIGHANDLER): Likewise.
13483 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
13484 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13485 (GET_FRAME): Likewise.
13486 (GET_STACK): Likewise.
13487 (CALL_SIGHANDLER): Likewise.
13488 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
13489 (SIGCONTEXT_EXTRA_ARGS): Likewise.
13490 (GET_FRAME): Likewise.
13491 (GET_STACK): Likewise.
13492 (CALL_SIGHANDLER): Likewise.
13493
13494 2018-03-21 Joseph Myers <joseph@codesourcery.com>
13495
13496 * sysdeps/x86_64/backtrace.c: Move to ....
13497 * debug/backtrace.c: ... here.
13498 * sysdeps/aarch64/backtrace.c: Remove file.
13499 * sysdeps/alpha/backtrace.c: Likewise.
13500 * sysdeps/hppa/backtrace.c: Likewise.
13501 * sysdeps/ia64/backtrace.c: Likewise.
13502 * sysdeps/mips/backtrace.c: Likewise.
13503 * sysdeps/nios2/backtrace.c: Likewise.
13504 * sysdeps/riscv/backtrace.c: Likewise.
13505 * sysdeps/sh/backtrace.c: Likewise.
13506 * sysdeps/tile/backtrace.c: Likewise.
13507
13508 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13509
13510 [BZ #22987]
13511 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
13512 function.
13513 (fdimf): Likewise.
13514 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
13515
13516 [BZ #17343]
13517 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
13518 possibly overflowing computations.
13519
13520 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
13521
13522 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
13523 values from Linux-specific section now that it is in the GNU section.
13524 * sysdeps/gnu/errlist.c: Regenerate.
13525
13526 2018-03-20 Joseph Myers <joseph@codesourcery.com>
13527
13528 * math/Makefile (libm-narrow-fns): Add sub.
13529 (libm-test-funcs-narrow): Likewise.
13530 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
13531 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
13532 * math/gen-auto-libm-tests.c (test_functions): Add sub.
13533 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
13534 (NARROW_SUB_ROUND_TO_ODD): Likewise.
13535 (NARROW_SUB_TRIVIAL): Likewise.
13536 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
13537 macro.
13538 (__dsubl): Likewise.
13539 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
13540 dsub.
13541 (CFLAGS-nldbl-dsub.c): New variable.
13542 (CFLAGS-nldbl-fsub.c): Likewise.
13543 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13544 __nldbl_dsubl.
13545 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
13546 prototype.
13547 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
13548 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
13549 * math/auto-libm-test-in: Add tests of sub.
13550 * math/auto-libm-test-out-narrow-sub: New generated file.
13551 * math/libm-test-narrow-sub.inc: New file.
13552 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
13553 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
13554 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
13555 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
13556 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
13557 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
13558 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
13559 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
13560 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
13561 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
13562 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
13563 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
13564 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
13565 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
13566 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
13567 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
13568 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
13569 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
13570 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13571 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13572 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13573 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13574 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13575 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13576 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13577 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13578 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13579 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13580 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13581 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13582 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13583 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13588 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13589 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13590 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13591 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13592 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13593 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13594 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
13595 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
13596 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13597 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13598
13599 2018-03-19 Joseph Myers <joseph@codesourcery.com>
13600
13601 [BZ #20079]
13602 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
13603
13604 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
13605
13606 * benchtests/bench-timing.h (attribute_hidden): Undefine.
13607
13608 2018-03-18 Richard Braun <rbraun@sceen.net>
13609
13610 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
13611 thread reference.
13612
13613 2018-03-18 Agustina Arzille <avarzille@riseup.net>
13614
13615 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
13616 (__libc_cleanup_fct): Define function.
13617 (__libc_cleanup_region_start, __libc_cleanup_region_end,
13618 __libc_cleanup_end): Rewrite implementation using
13619 __attribute__ ((__cleanup__)).
13620 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
13621 * hurd/Makefile (routines): Add hurdlock.
13622 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
13623 interface.
13624 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
13625 * hurd/hurdpid.c: Include <lowlevellock.h>
13626 (_S_msg_proc_newids): Use lll_wait to synchronize.
13627 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
13628 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
13629 * mach/Makefile (lock-headers): Remove machine-lock.h.
13630 * mach/lock-intern.h: Include <lowlevellock.h> instead of
13631 <machine-lock.h>.
13632 (__spin_lock_t): New type.
13633 (__SPIN_LOCK_INITIALIZER): New macro.
13634 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
13635 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
13636 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
13637 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
13638 (__mutex_init): Initialize with lll.
13639 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
13640 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
13641 needing lll.
13642 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13643 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
13644 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
13645 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
13646 (__setpgid): Use lll for synchronization.
13647 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
13648 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
13649 instead of <cthreads.h>.
13650 (_IO_lock_inexpensive): New macro
13651 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
13652 (__libc_lock_self0): New declaration.
13653 (__libc_lock_owner_self): New macro.
13654 (__libc_key_t): Remove type.
13655 (_LIBC_LOCK_INITIALIZER): New macro.
13656 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
13657 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
13658 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
13659 __libc_lock_define_initialized_recursive,
13660 __rtld_lock_define_initialized_recursive,
13661 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
13662 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
13663 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
13664 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
13665 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
13666 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
13667 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
13668 New macros.
13669 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
13670 * hurd/hurdlock.c: New file.
13671 * hurd/hurdlock.h: New file.
13672 * mach/lowlevellock.h: New file
13673
13674 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13675
13676 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
13677 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
13678 when opening a symlink with O_NOFOLLOW.
13679 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
13680 path when flags contains O_NOFOLLOW.
13681 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
13682 if flags contains O_DIRECTORY and the result is a directory.
13683 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
13684 oneself when the pointer given in D is nul (as set by ext2fs).
13685 * sysdeps/mach/hurd/mlockall.c: New file.
13686 * sysdeps/mach/hurd/munlockall.c: New file.
13687
13688 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
13689
13690 * hurd/hurdsig.c: Include <pthread.h>.
13691 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
13692 get the signal thread stack layout.
13693 * hurd/Makefile (headers): Remove threadvar.h.
13694 (inline-headers): Remove threadvar.h.
13695 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
13696 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
13697 __hurd_threadvar_max, __hurd_errno_location.
13698 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
13699 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
13700 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
13701 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
13702 unless TLS is not initialized yet, in which case we do not need a
13703 critical section yet anyway.
13704 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
13705 <machine-sp.h>.
13706 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
13707 declarations.
13708 (__hurd_threadvar_index): Remove enum.
13709 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
13710 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
13711 inlines.
13712 (__hurd_reply_port0): New variable declaration.
13713 (__hurd_local_reply_port): New macro.
13714 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
13715 (interrupted_reply_port_location): Add thread_t parameter. Use it
13716 with THREAD_TCB to access thread-local variables.
13717 (_hurdsig_abort_rpcs): Pass ss->thread to
13718 interrupted_reply_port_location.
13719 (_hurd_internal_post_signal): Likewise.
13720 (_hurdsig_init): Use presence of cthread_fork instead of
13721 __hurd_threadvar_stack_mask to start signal thread by hand.
13722 Remove signal thread threadvar initialization.
13723 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
13724 * hurd/sigunwind.c: Include <hurd/threadvar.h>
13725 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
13726 of threadvar.
13727 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
13728 __libc_lock_self0.
13729 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
13730 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
13731 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
13732 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
13733 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
13734 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
13735 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
13736 define variables.
13737 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
13738 <hurd/threadvar.h>.
13739 [IS_IN(rtld)] (rtld_errno): New variable.
13740 [IS_IN(rtld)] (__errno_location): New weak function.
13741 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
13742 * sysdeps/mach/hurd/errno.c: Remove file.
13743 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
13744 (__fork): Remove THREADVAR_SPACE macro and its use.
13745 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
13746 variable.
13747 (init): Do not initialize threadvar.
13748 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
13749 symbol.
13750 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
13751 __hurd_local_reply_port instead of threadvar.
13752 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
13753 _hurd_sigstate fields.
13754 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
13755 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
13756 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
13757 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
13758 instead of threadvar.
13759 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
13760 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
13761 (use_threadvar, global_reply_port): Remove variables.
13762 (__hurd_reply_port0): New variable.
13763 (__mig_get_reply_port): Use __hurd_local_reply_port and
13764 __hurd_reply_port0 instead of threadvar.
13765 (__mig_dealloc_reply_port): Likewise.
13766 (__mig_init): Do not initialize threadvar.
13767 * sysdeps/mach/hurd/profil.c: Fix comment.
13768 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
13769 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
13770 cthread_keycreate, cthread_getspecific, cthread_setspecific to
13771 __cthread_fork, __cthread_detach, __pthread_getattr_np,
13772 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
13773 __cthread_setspecific.
13774 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
13775 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
13776 __cthread_t instead of cthread_fork, cthread_detach,
13777 pthread_getattr_np, pthread_attr_getstack.
13778 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
13779 __cthread_keycreate.
13780 (cthread_getspecific): Rename to __cthread_getspecific.
13781 (cthread_setspecific): Rename to __cthread_setspecific.
13782 (__libc_getspecific): Use __cthread_getspecific instead of
13783 cthread_getspecific.
13784 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
13785 __cthread_keycreate instead of cthread_keycreate.
13786 (__libc_setspecific): Use __cthread_setspecific instead of
13787 cthread_setspecific.
13788 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
13789 Likewise.
13790 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
13791 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
13792 testing whether it is defined.
13793
13794 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
13795
13796 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
13797 Define macro.
13798 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
13799 * sysdeps/mach/i386/thread_state.h
13800 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
13801 i386_THREAD_STATE.
13802 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
13803 i386_THREAD_STATE.
13804 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
13805
13806 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
13807 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
13808
13809 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
13810 macros.
13811 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
13812 descriptor instead of creating a new one.
13813 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
13814
13815 * mach/setup-thread.c: Include <ldsodefs.h>.
13816 (__mach_setup_thread): Call _dl_allocate_tls, pass
13817 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
13818 MACHINE_THREAD_STATE_FLAVOR, before getting
13819 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
13820 MACHINE_THREAD_STATE_FLAVOR with the result.
13821 * hurd/hurdfault.c (_hurdsig_fault_init): Call
13822 MACHINE_THREAD_STATE_FIX_NEW.
13823 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
13824 too. Add original thread parameter.
13825
13826 2018-03-16 Joseph Myers <joseph@codesourcery.com>
13827
13828 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
13829 Remove inline function.
13830
13831 * sysdeps/i386/fpu/libm-test-ulps: Update.
13832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
13833
13834 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
13835
13836 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
13837 commit.
13838
13839 2018-03-15 Joseph Myers <joseph@codesourcery.com>
13840
13841 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
13842 (__sincos_code): Remove define and undefine.
13843 [__FAST_MATH__] (__sincos): Remove inline function.
13844 [__FAST_MATH__] (__sincosf): Remove inline function.
13845 [__FAST_MATH__] (__sincosl): Remove inline function.
13846 (__atan2l): Remove inline functions.
13847 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
13848 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
13849 function.
13850 (floor): Remove inline function.
13851 (ceil): Likewise.
13852 [__FAST_MATH__] (__ldexp_code): Remove macro.
13853 [__FAST_MATH__] (ldexp): Remove inline function.
13854 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
13855 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
13856 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
13857 [__USE_ISOC99] (__lrint_code): Remove macro.
13858 [__USE_ISOC99] (__llrint_code): Likewise.
13859 [__USE_ISOC99] (lrintf): Remove inline function.
13860 [__USE_ISOC99] (lrint): Likewise.
13861 [__USE_ISOC99] (lrintl): Likewise.
13862 [__USE_ISOC99] (llrint): Likewise.
13863 [__USE_ISOC99] (llrintf): Likewise.
13864 [__USE_ISOC99] (llrintl): Likewise.
13865
13866 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13867
13868 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
13869 (__ieee754_sqrtf): Remove.
13870 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
13871 (__ieee754_sqrtf): Remove.
13872 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
13873 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13874 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
13875 (__ieee754_sqrtf): Remove.
13876 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
13877 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
13878 (sqrtf): Remove.
13879 (sqrtl): Remove.
13880 (__ieee754_sqrt): Remove.
13881 (__ieee754_sqrtf): Remove.
13882 (__ieee754_sqrtl): Remove.
13883 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
13884 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
13885 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
13886 (__ieee754_sqrtf): Remove.
13887 (__ieee754_sqrtl): Remove.
13888
13889 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13890
13891 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
13892 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
13893 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
13894 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
13895 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
13896 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
13897 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
13898 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
13899 Likewise.
13900 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
13901 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
13902 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
13903 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
13904 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
13905 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
13906 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
13907 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
13908 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
13909 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13910 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
13911 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
13912 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
13913 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
13914 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
13915 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
13916 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
13917 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13918 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
13919 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
13920 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13921 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13922 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
13923 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
13924 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
13925 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
13926 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13927 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13928 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
13929 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
13930 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
13931 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
13932 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
13933 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
13934 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13935 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
13936 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
13937 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
13938 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
13939 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
13940
13941 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13942
13943 * include/math.h (sqrt): Declare with asm redirect.
13944 (sqrtf): Likewise.
13945 (sqrtl): Likewise.
13946 (sqrtf128): Likewise.
13947 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
13948 nonlib and libnldbl with -fmath-errno.
13949 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
13950 * math/w_sqrt_template.c: Likewise.
13951 * math/w_sqrtf_compat.c: Likewise.
13952 * math/w_sqrtl_compat.c: Likewise.
13953 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
13954 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
13955 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
13956 complex.h.
13957
13958 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
13959
13960 * benchtests/Makefile: Define _ISOMAC.
13961 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
13962 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
13963 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
13964 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
13965 * benchtests/bench-timing.h: Define attribute_hidden.
13966
13967 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
13968
13969 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
13970 mov + lsr.
13971
13972 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13973
13974 [BZ #22963]
13975 * localedata/locales/cs_CZ (mon): Rename to...
13976 (alt_mon): This.
13977 (mon): Import from CLDR (genitive case).
13978
13979 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13980
13981 [BZ #22937]
13982 * localedata/locales/el_CY (abmon): Rename to...
13983 (ab_alt_mon): This.
13984 (abmon): Import from CLDR (abbreviated genitive case).
13985 * localedata/locales/el_GR (abmon): Rename to...
13986 (ab_alt_mon): This.
13987 (abmon): Import from CLDR (abbreviated genitive case).
13988
13989 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
13990
13991 [BZ #22932]
13992 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
13993
13994 2018-03-15 Robert Buj <robert.buj@gmail.com>
13995
13996 [BZ #22848]
13997 * localedata/locales/ca_ES (abmon): Rename to...
13998 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13999 (mon): Rename to...
14000 (alt_mon): This.
14001 (abmon): Import from CLDR (genitive case, month names preceded by
14002 "de" or "d’").
14003 (mon): Likewise.
14004 (abday): Synchronize with CLDR.
14005 (d_t_fmt): Likewise.
14006 (d_fmt): Likewise.
14007 (am_pm): Likewise.
14008
14009 (LC_TIME): Improve indentation.
14010 (LC_TELEPHONE): Likewise.
14011 (LC_NAME): Likewise.
14012 (LC_ADDRESS): Likewise.
14013
14014 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14015
14016 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14017 (lrintf): Remove definitions used only with old GCC.
14018 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14019 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14020 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14021 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14022 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14023 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14024 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14025 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14026 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14027 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14028 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14029 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14030 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14031 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14032 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14033 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14034 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14035 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14036 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14037 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14038 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14039 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14040 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14041 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14042 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14043 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14044 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14045 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14046
14047 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14048
14049 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14050 instruction to unbreak builds with binutils 2.26 and older.
14051
14052 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14053
14054 * sysdeps/aarch64/strncmp.S (count): New macro.
14055 (strncmp): Store misaligned length in SRC1 in COUNT.
14056 (mutual_align): Adjust.
14057 (misaligned8): Load dword at a time when it is safe.
14058
14059 2018-03-12 Zack Weinberg <zackw@panix.com>
14060
14061 [BZ #1190]
14062 [BZ #19476]
14063 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14064 if the _IO_EOF_SEEN bit is already set; update commentary.
14065 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14066 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14067
14068 * support/support_openpty.c, support/tty.h: New files.
14069 * support/Makefile (libsupport-routines): Add support_openpty.
14070
14071 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14072 New test cases.
14073 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14074 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14075
14076 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14077
14078 * po/pt_BR.po: Update translations.
14079
14080 2018-03-12 David Michael <fedora.dm0@gmail.com>
14081
14082 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14083 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14084 get a port to the startup server.
14085
14086 2018-03-11 Zack Weinberg <zackw@panix.com>
14087
14088 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14089 before nldbl-compat.h.
14090
14091 2018-03-10 Zack Weinberg <zackw@panix.com>
14092
14093 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14094 math.h or math_private.h.
14095
14096 * sysdeps/alpha/fpu/s_isnan.c
14097 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14098 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14099 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14100 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14101 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14102 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14103 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14104 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14105 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14108 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14109 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14110 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14111 Include math_private.h.
14112
14113 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14114 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14115 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14116 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14117 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14118 * sysdeps/powerpc/power7/fpu/s_logb.c:
14119 Include math.h and math_private.h.
14120
14121 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14122 uses of $at in .set noat / .set at.
14123
14124 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14125
14126 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14127 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14128 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14129 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14130 Likewise.
14131
14132 2018-03-09 Florian Weimer <fweimer@redhat.com>
14133
14134 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14135 in comment.
14136
14137 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14138
14139 [BZ #22919]
14140 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14141 Add nop before __startcontext, add explaining comments.
14142
14143 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14144
14145 [BZ #22926]
14146 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14147 empty for __SPE__.
14148 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14149 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14150 Do not build hardware transactional code for __SPE__.
14151 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14152 (__lll_trylock_elision): Likewise.
14153 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14154 (__lll_unlock_elision): Likewise.
14155
14156 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14157 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14158 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14159 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14160 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14161 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14162 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14163 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14164 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14165 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14166 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14167 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14168 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14169 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14170 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14171 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14172 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14173 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14174 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14175 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14176 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14177 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14178 (__ASSUME_CLONE_BACKWARDS): Define.
14179 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14180 __clone2 if __NR_clone2 is defined.
14181 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14182 (__ASSUME_CLONE_BACKWARDS): Likewise.
14183 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14184 (__ASSUME_CLONE_BACKWARDS): Likewise.
14185 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14186 (__ASSUME_CLONE2): Likewise.
14187 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14188 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14189 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14190 variants and the define architecture can use.
14191 (__ASSUME_CLONE_DEFAULT): Define as default.
14192 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14193 (__ASSUME_CLONE_BACKWARDS): Likewise.
14194 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14195 (__ASSUME_CLONE_BACKWARDS): Likewise.
14196 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14197 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14198
14199 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14200
14201 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14202
14203 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14204 time.
14205
14206 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14207 (do_test_limit): Likewise.
14208
14209 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14210 for every implementation.
14211 (do_test): Likewise.
14212
14213 * benchtests/bench-strncmp.c: Convert output to json.
14214
14215 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14216
14217 * io/futimens.c: Add missing start-of-file descriptive comment.
14218 * io/utime.c: Likewise.
14219 * misc/futimesat.c: Likewise.
14220 * misc/utimes.c: Likewise.
14221 * sysdeps/mach/hurd/futimesat.c: Likewise.
14222 * sysdeps/mach/hurd/utimes.c: Likewise.
14223 * sysdeps/posix/utime.c: Likewise.
14224 * sysdeps/posix/utimes.c: Likewise.
14225 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14226 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14227 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14228 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14229
14230 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14231
14232 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14233 hurd_futimes.
14234 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14235 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14236 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14237 (__futimens): Move implementation to...
14238 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14239 utime_tvalue_from_tspec): ... new helper functions.
14240 (hurd_futimens): New function.
14241 * sysdeps/mach/hurd/futimesat.c: New file.
14242 * sysdeps/mach/hurd/utimensat.c: New file.
14243
14244 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14245
14246 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14247 UTIME_OMIT): New macros.
14248 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14249 before reverting to converting time spec to time value and calling
14250 __file_utimes.
14251 * sysdeps/mach/hurd/utime-helper.c: New file.
14252 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14253 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14254 reverting to utime_tvalue_from_tval and __file_utimes.
14255 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14256 (__lutimes): Just call hurd_futimens after lookup.
14257 * sysdeps/mach/hurd/utimes.c: Likewise.
14258
14259 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14260
14261 * bits/sigaction.h: Add include guard.
14262 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14263 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14264 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14265 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14266 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14267 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14268 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14269 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14270 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14271
14272 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14273
14274 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14275 -Wmaybe-uninitialized for -Os.
14276 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14277 this disabling.
14278
14279 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14280
14281 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14282 __INO_T_MATCHES_INO64_T is defined.
14283 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14284 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14285 of definition.
14286 * dirent/alphasort64.c: Likewise.
14287 * dirent/scandir.c: Likewise.
14288 * dirent/scandir64-tail.c: Likewise.
14289 * dirent/scandir64.c: Likewise.
14290 * dirent/scandirat.c: Likewise.
14291 * dirent/scandirat64.c: Likewise.
14292 * dirent/versionsort.c: Likewise.
14293 * dirent/versionsort64.c: Likewise.
14294 * include/dirent.h: Likewise.
14295
14296 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14297 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14298 for socketpair endpoint.
14299 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14300 WRITE_BUFFER_SIZE as buffer size for sending socket.
14301 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14302 issue on system where send is implemented with sendto syscall.
14303 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14304 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14305 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14306 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14307
14308 [BZ #21269]
14309 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14310 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14311 sa_restorer for vDSO case.
14312 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14313
14314 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14315
14316 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14317 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14318 * hurd/hurd/ioctl.h: Include <mach/port.h>
14319 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14320 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14321 <mach/mach_types.h> and <mach/message.h>.
14322 (headers): Move mach/param.h to bits/mach/param.h.
14323 * sysdeps/mach/i386/mach/param.h: Move file to ...
14324 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14325 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14326 of <mach/param.h>.
14327 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14328 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14329 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14330 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14331 trivial, for C++ conformity.
14332 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14333 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14334 Process mig output through $(migheadersed).
14335 * hurd/Makefile (migheadersed): Define variable.
14336 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14337 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14338 headers.
14339 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14340 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14341 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14342 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14343 <bits/types/sigset_t.h>.
14344 [!defined __USE_GNU]: Do not #error out.
14345 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14346 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14347 Include <stddef.h> and <bits/types/sigset_t.h>
14348 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14349 instead of sighandler_t.
14350 * stdlib/errno.h (error_t): Move definition to...
14351 * bits/types/error_t.h: ... new header.
14352 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14353 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14354 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14355 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14356 * hurd/hurd.h: Include <bits/types/error_t.h>
14357 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14358 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14359 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14360 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14361 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14362 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14363 * sysdeps/mach/hurd/futimens.c: New file.
14364
14365 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14366
14367 [BZ #22918]
14368 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14369 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14370 * nscd/gai.c (__nss_hosts_database): Readd definition.
14371 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14372 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14373 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14374
14375 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14376
14377 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14378 (ifunc_one): Likewise.
14379
14380 2018-03-01 DJ Delorie <dj@delorie.com>
14381
14382 [BZ #22342]
14383 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14384 key value.
14385
14386 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14387
14388 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14389 `match_pid' parameter.
14390 (td_ta_thr_iter): Update accordingly.
14391
14392 2018-03-01 Florian Weimer <fweimer@redhat.com>
14393
14394 * nptl/Makefile (install-lib-ldscripts): Remove.
14395 (install): Remove rule.
14396 ($(inst_libdir)/libpthread.so): Likewise.
14397
14398 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14399
14400 [BZ #22896]
14401 * localedata/locales/an_ES: update month and day names,
14402 improve d_fmt, improve postal_fmt, add country_post,
14403 add country_isbn
14404
14405 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14406
14407 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
14408 Ukrainian instead of Bulgarian.
14409
14410 2018-03-01 Florian Weimer <fweimer@redhat.com>
14411
14412 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
14413 reference.
14414
14415 2018-03-01 Florian Weimer <fweimer@redhat.com>
14416
14417 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
14418 * nptl/Makefile (routines): Add pthread_atfork.
14419 (static-only-routines): Set to pthread_atfork.
14420 (libpthread-routines): Remove pthread_atfork.
14421 (libpthread-static-only-routines): Remove.
14422 (install): Update comment.
14423 (libpthread.so): Do not install libpthread_nonshared.a.
14424 (tests): Do not link with libpthread_nonshared.a.
14425 (generated): Remove libpthread_nonshared.a.
14426 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
14427 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
14428 with libpthread_nonshared.a.
14429
14430 2018-02-28 Joseph Myers <joseph@codesourcery.com>
14431
14432 [BZ #22902]
14433 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
14434 (libc_feholdexcept_setroundf128): New macro.
14435 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
14436
14437 [BZ #15105]
14438 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
14439 libc_hidden_def.
14440 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
14441 * include/inttypes.h: New file.
14442
14443 2018-02-27 Joseph Myers <joseph@codesourcery.com>
14444
14445 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
14446 -Os in two more places.
14447
14448 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14449
14450 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
14451 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
14452 be sorted correctly at the moment because of a bug.
14453
14454 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14455
14456 [BZ #22550] - es_ES locale (and other es_* locales): collation should
14457 treat ñ as a primary different character, sync the collation
14458 for Spanish with CLDR.
14459 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
14460 * localedata/Makefile: Add new test files.
14461 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
14462 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
14463 collation order.
14464 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
14465 * localedata/am_ET.UTF-8.in: New test file.
14466 * localedata/az_AZ.UTF-8.in: Likewise.
14467 * localedata/be_BY.UTF-8.in: Likewise.
14468 * localedata/ber_DZ.UTF-8.in: Likewise.
14469 * localedata/ber_MA.UTF-8.in: Likewise.
14470 * localedata/bg_BG.UTF-8.in: Likewise.
14471 * localedata/br_FR.UTF-8.in: Likewise.
14472 * localedata/cmn_TW.UTF-8.in: Likewise.
14473 * localedata/crh_UA.UTF-8.in: Likewise.
14474 * localedata/csb_PL.UTF-8.in: Likewise.
14475 * localedata/cv_RU.UTF-8.in: Likewise.
14476 * localedata/cy_GB.UTF-8.in: Likewise.
14477 * localedata/dz_BT.UTF-8.in: Likewise.
14478 * localedata/eo.UTF-8.in: Likewise.
14479 * localedata/es_ES.UTF-8.in: Likewise.
14480 * localedata/fa_IR.UTF-8.in: Likewise.
14481 * localedata/fi_FI.UTF-8.in: Likewise.
14482 * localedata/fil_PH.UTF-8.in: Likewise.
14483 * localedata/fur_IT.UTF-8.in: Likewise.
14484 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
14485 * localedata/ha_NG.UTF-8.in: Likewise.
14486 * localedata/ig_NG.UTF-8.in: Likewise.
14487 * localedata/ik_CA.UTF-8.in: Likewise.
14488 * localedata/kk_KZ.UTF-8.in: Likewise.
14489 * localedata/ku_TR.UTF-8.in: Likewise.
14490 * localedata/ky_KG.UTF-8.in: Likewise.
14491 * localedata/ln_CD.UTF-8.in: Likewise.
14492 * localedata/mi_NZ.UTF-8.in: Likewise.
14493 * localedata/ml_IN.UTF-8.in: Likewise.
14494 * localedata/mn_MN.UTF-8.in: Likewise.
14495 * localedata/mr_IN.UTF-8.in: Likewise.
14496 * localedata/mt_MT.UTF-8.in: Likewise.
14497 * localedata/nb_NO.UTF-8.in: Likewise.
14498 * localedata/om_KE.UTF-8.in: Likewise.
14499 * localedata/os_RU.UTF-8.in: Likewise.
14500 * localedata/ps_AF.UTF-8.in: Likewise.
14501 * localedata/ro_RO.UTF-8.in: Likewise.
14502 * localedata/ru_RU.UTF-8.in: Likewise.
14503 * localedata/sc_IT.UTF-8.in: Likewise.
14504 * localedata/se_NO.UTF-8.in: Likewise.
14505 * localedata/sq_AL.UTF-8.in: Likewise.
14506 * localedata/sv_SE.UTF-8.in: Likewise.
14507 * localedata/szl_PL.UTF-8.in: Likewise.
14508 * localedata/tg_TJ.UTF-8.in: Likewise.
14509 * localedata/tk_TM.UTF-8.in: Likewise.
14510 * localedata/tt_RU.UTF-8.in: Likewise.
14511 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
14512 * localedata/ug_CN.UTF-8.in: Likewise.
14513 * localedata/uz_UZ.UTF-8.in: Likewise.
14514 * localedata/vi_VN.UTF-8.in: Likewise.
14515 * localedata/yi_US.UTF-8.in: Likewise.
14516 * localedata/yo_NG.UTF-8.in: Likewise.
14517 * localedata/zh_CN.UTF-8.in: Likewise.
14518 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
14519 file and fix bugs in the collation.
14520 * localedata/locales/az_AZ: Likewise.
14521 * localedata/locales/be_BY: Likewise.
14522 * localedata/locales/ber_DZ: Likewise.
14523 * localedata/locales/ber_MA: Likewise.
14524 * localedata/locales/bg_BG: Likewise.
14525 * localedata/locales/br_FR: Likewise.
14526 * localedata/locales/br_FR@euro: Likewise.
14527 * localedata/locales/ca_ES: Likewise.
14528 * localedata/locales/cns11643_stroke: Likewise.
14529 * localedata/locales/crh_UA: Likewise.
14530 * localedata/locales/cs_CZ: Likewise.
14531 * localedata/locales/csb_PL: Likewise.
14532 * localedata/locales/cv_RU: Likewise.
14533 * localedata/locales/cy_GB: Likewise.
14534 * localedata/locales/da_DK: Likewise.
14535 * localedata/locales/dz_BT: Likewise.
14536 * localedata/locales/en_CA: Likewise.
14537 * localedata/locales/eo: Likewise.
14538 * localedata/locales/es_CU: Likewise.
14539 * localedata/locales/es_EC: Likewise.
14540 * localedata/locales/es_ES: Likewise.
14541 * localedata/locales/es_US: Likewise.
14542 * localedata/locales/et_EE: Likewise.
14543 * localedata/locales/fa_IR: Likewise.
14544 * localedata/locales/fi_FI: Likewise.
14545 * localedata/locales/fil_PH: Likewise.
14546 * localedata/locales/fur_IT: Likewise.
14547 * localedata/locales/gez_ER@abegede: Likewise.
14548 * localedata/locales/ha_NG: Likewise.
14549 * localedata/locales/hr_HR: Likewise.
14550 * localedata/locales/hsb_DE: Likewise.
14551 * localedata/locales/hu_HU: Likewise.
14552 * localedata/locales/ig_NG: Likewise.
14553 * localedata/locales/ik_CA: Likewise.
14554 * localedata/locales/is_IS: Likewise.
14555 * localedata/locales/iso14651_t1_pinyin: Likewise.
14556 * localedata/locales/kk_KZ: Likewise.
14557 * localedata/locales/ku_TR: Likewise.
14558 * localedata/locales/ky_KG: Likewise.
14559 * localedata/locales/ln_CD: Likewise.
14560 * localedata/locales/lt_LT: Likewise.
14561 * localedata/locales/lv_LV: Likewise.
14562 * localedata/locales/mi_NZ: Likewise.
14563 * localedata/locales/ml_IN: Likewise.
14564 * localedata/locales/mn_MN: Likewise.
14565 * localedata/locales/mr_IN: Likewise.
14566 * localedata/locales/mt_MT: Likewise.
14567 * localedata/locales/nb_NO: Likewise.
14568 * localedata/locales/om_KE: Likewise.
14569 * localedata/locales/os_RU: Likewise.
14570 * localedata/locales/pl_PL: Likewise.
14571 * localedata/locales/ps_AF: Likewise.
14572 * localedata/locales/ro_RO: Likewise.
14573 * localedata/locales/ru_RU: Likewise.
14574 * localedata/locales/ru_UA: Likewise.
14575 * localedata/locales/sc_IT: Likewise.
14576 * localedata/locales/se_NO: Likewise.
14577 * localedata/locales/si_LK: Likewise.
14578 * localedata/locales/sq_AL: Likewise.
14579 * localedata/locales/sv_FI: Likewise.
14580 * localedata/locales/sv_FI@euro: Likewise.
14581 * localedata/locales/sv_SE: Likewise.
14582 * localedata/locales/szl_PL: Likewise.
14583 * localedata/locales/tg_TJ: Likewise.
14584 * localedata/locales/ti_ER: Likewise.
14585 * localedata/locales/tk_TM: Likewise.
14586 * localedata/locales/tl_PH: Likewise.
14587 * localedata/locales/tr_TR: Likewise.
14588 * localedata/locales/tt_RU: Likewise.
14589 * localedata/locales/tt_RU@iqtelif: Likewise.
14590 * localedata/locales/ug_CN: Likewise.
14591 * localedata/locales/uk_UA: Likewise.
14592 * localedata/locales/uz_UZ: Likewise.
14593 * localedata/locales/uz_UZ@cyrillic: Likewise.
14594 * localedata/locales/vi_VN: Likewise.
14595 * localedata/locales/yi_US: Likewise.
14596 * localedata/locales/yo_NG: Likewise.
14597
14598 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14599
14600 * gen-locales.mk: Make test files which contain @ modifiers in their
14601 name work.
14602 * localedata/gen-locale.sh: Likewise.
14603
14604 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14605
14606 * posix/tst-fnmatch.input: Fix results for range expressions
14607 for non C locales.
14608 * posix/tst-regexloc.c: Do not use a range expression for
14609 de_DE.ISO-8859-1 locale.
14610
14611 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14612
14613 * posix/bug-regex5.c: Fix test case because with the new
14614 iso14651_t1_common file, the da_DK locale now has 6 collating elements
14615 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
14616 file.
14617
14618 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14619
14620 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
14621 downloaded from ISO, the collation order of @-. and space has changed.
14622 Therefore, this test file needed to be adapted.
14623 * localedata/fr_CA.UTF-8.in: Likewise.
14624 * localedata/fr_FR.UTF-8.in: Likewise.
14625 * localedata/uk_UA.UTF-8.in: Likewise.
14626
14627 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14628
14629 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
14630 order of ȥ in the new iso14651_t1_common file.
14631 * localedata/pl_PL.UTF-8.in: Likewise.
14632
14633 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14634
14635 * localedata/locales/iso14651_t1_common: Add sections for various
14636 scripts to the iso14651_t1_common file.
14637
14638 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14639
14640 * localedata/locales/iso14651_t1_common: Use the code point of a
14641 character in the fourth collation level instead of IGNORE for all
14642 entries which have IGNORE on all 4 levels.
14643
14644 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14645
14646 * localedata/locales/iso14651_t1_common: Add some convenient collation
14647 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
14648 rules similar to those in CLDR.
14649
14650 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14651
14652 * localedata/locales/iso14651_t1_common: The new version of this
14653 file downloaded from ISO contained several syntax errors which
14654 are fixed by this patch.
14655
14656 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14657
14658 * localedata/locales/iso14651_t1_common: replace all <U.....>
14659 with <U000.....> because glibc understands only 4 digit or 8 digit
14660
14661 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14662
14663 * localedata/locales/iso14651_t1_common: Necessary changes
14664 to make the file downloaded from ISO usable by glibc.
14665
14666 2018-02-27 Mike FABIAN <mfabian@redhat.com>
14667
14668 [BZ #14095]
14669 * localedata/locales/iso14651_t1_common: Update file to
14670 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
14671
14672 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14673
14674 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
14675 of <nptl/pthreadP.h>
14676 (thread_attr_compare): Move function to...
14677 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
14678 * sysdeps/nptl/timer_routines.h: ... new header.
14679 * sysdeps/mach/hurd/gai_misc.h: New file.
14680
14681 2018-02-26 Joseph Myers <joseph@codesourcery.com>
14682
14683 * string/strcoll_l.c: Include <libc-diag.h>.
14684 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
14685 declarations of seq1 and seq2.
14686
14687 [BZ #15105]
14688 * stdlib/atoi.c (atoi): Use libc_hidden_def.
14689 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
14690
14691 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
14692
14693 [BZ #22433]
14694 [BZ #22807]
14695 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
14696 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
14697 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
14698 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
14699 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
14700 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
14701
14702 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14703
14704 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
14705 macros used in __ptrace_request.
14706
14707 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
14708
14709 [BZ #22792]
14710 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
14711 to $(CC).
14712 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
14713 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
14714 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
14715 <tcb-offsets.h>.
14716
14717 2018-02-23 Joseph Myers <joseph@codesourcery.com>
14718
14719 [BZ #15105]
14720 * ctype/ctype.c (tolower): Use libc_hidden_def.
14721 (toupper): Likewise.
14722 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
14723 [!_ISOMAC] (toupper): Likewise.
14724
14725 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14726
14727 * localedata/Makefile: Remove --quiet argument when
14728 installing locales
14729
14730 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14731
14732 [BZ #17438]
14733 * localedata/locales/pt_BR (LC_TIME): use / instead of -
14734 in d_fmt.
14735 * localedata/locales/pt_PT (LC_TIME): likewise
14736
14737 2018-02-23 Mike FABIAN <mfabian@redhat.com>
14738
14739 [BZ #22646]
14740 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
14741 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
14742 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
14743
14744 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14745
14746 * sysdeps/sparc/fpu/libm-test-ulps: Update.
14747
14748 * nptl/Makefile (routines): Remove unregister-atfork.
14749 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
14750 (fork_handler_alloc): Remove function.
14751 (fork_handlers, fork_handler_init): New variables.
14752 (__fork_lock): Rename to atfork_lock.
14753 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
14754 to use a dynamic array to add/remove atfork handlers.
14755 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
14756 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
14757 Remove declaration.
14758 (fork_handler): Remove next, refcntr, and need_signal member.
14759 (__run_fork_handler_type): New enum.
14760 (__run_fork_handlers): New prototype.
14761 * nptl/register-atfork.c: Remove file.
14762 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
14763
14764 * sysdeps/nptl/nptl-signals.h: Move to ...
14765 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
14766 comments.
14767 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
14768 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
14769 unnecessary check for SIGTIMER.
14770 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
14771 remove unnecessary removal of SIGTIMER.
14772 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
14773 include-signals.h rename.
14774 * nptl/pthreadP.h: Likewise.
14775 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
14776 __is_internal_signal instead of __nptl_is_internal_signal.
14777
14778 2018-02-22 Andrew Waterman <andrew@sifive.com>
14779
14780 [BZ # 22884]
14781 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
14782 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
14783 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
14784 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
14785
14786 2018-02-22 DJ Delorie <dj@delorie.com>
14787
14788 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
14789
14790 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
14791
14792 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
14793 do_misaligned, not misaligned8.
14794
14795 2018-02-22 Steve Ellcey <sellcey@cavium.com>
14796
14797 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
14798 Add memcpy_thunderx2.
14799 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
14800 Increment to 4.
14801 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
14802 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
14803 and IS_THUNDERX2PA checks.
14804 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
14805 Use macro to set name appropriately.
14806 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
14807 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
14808 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
14809 New macro.
14810 (IS_THUNDERX2): New macro.
14811
14812 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
14813
14814 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
14815
14816 2018-02-21 Zack Weinberg <zackw@panix.com>
14817
14818 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
14819 Define here, unconditionally.
14820 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
14821 * libio/libioP.h: Remove #if 0 blocks.
14822 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
14823 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
14824 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
14825
14826 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
14827 Assume weak_alias is always defined.
14828
14829 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
14830 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
14831 Remove #if 0 and #ifdef TODO blocks.
14832 Assume text_set_element is always defined.
14833
14834 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
14835 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
14836 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
14837
14838 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
14839 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
14840 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
14841 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
14842 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
14843 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
14844 Reformat bit flags for _flags field to make occupancy clearer.
14845 Update commentary.
14846 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
14847 Keep definitions consistent with those in libio/libio.h.
14848
14849 * libio/libio.h (_IO_file_flags): Remove macro.
14850 All uses changed to _flags.
14851
14852 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
14853 (__HAVE_COLUMN, _IO_BE): Don't define.
14854 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
14855 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
14856 * libio/libioP.h (EOF): Don't define.
14857 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
14858 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
14859 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
14860 testing _IO_UNIFIED_JUMPTABLES.
14861
14862 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
14863 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
14864 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
14865 (_IO_size_t): Delete; all uses changed to size_t.
14866 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
14867 (_IO_off_t): Delete; all uses changed to off_t.
14868 (_IO_off64_t): Delete; all uses changed to off64_t.
14869 (_IO_pid_t): Delete; all uses changed to pid_t.
14870 (_IO_uid_t): Delete; all uses changed to uid_t.
14871 (_IO_wint_t): Delete; all uses changed to wint_t.
14872 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
14873 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
14874 (_IO_cookie_io_functions_t): Delete; all uses changed to
14875 cookie_io_functions_t.
14876 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
14877 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
14878 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
14879 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
14880
14881 * libio/iofopncook.c: Remove unnecessary forward declarations.
14882 * libio/iolibio.h: Correct outdated commentary.
14883 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
14884 * stdio-common/fxprintf.c (__fxprintf_nocancel):
14885 Remove unnecessary casts.
14886 * stdio-common/getline.c: Use _IO_getdelim directly.
14887 Don't redefine ssize_t.
14888 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
14889 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
14890 Remove outdated comments.
14891 * stdio-common/vfscanf.c: Don't redefine va_list.
14892
14893 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
14894 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
14895 Remove preprocessor conditionals on _LIBC and __USE_GNU,
14896 which are always true, and __cplusplus, which is always false.
14897
14898 2018-02-21 Joseph Myers <joseph@codesourcery.com>
14899
14900 [BZ #15105]
14901 [BZ #19463]
14902 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
14903 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
14904 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
14905 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
14906 libc_hidden_proto.
14907 [!_ISOMAC] (putc_unlocked): Likewise.
14908 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
14909 define inline if [__USE_EXTERN_INLINES].
14910 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
14911 putc_unlocked.
14912
14913 [BZ #15105]
14914 [BZ #19463]
14915 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
14916 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
14917 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
14918 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
14919 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
14920 getc_unlocked.
14921 * time/tzfile.c (__tzfile_read): Likewise.
14922
14923 2018-02-21 Mike FABIAN <mfabian@redhat.com>
14924
14925 [BZ #22517]
14926 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
14927
14928 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14929
14930 * io/fcntl.h: Fix a typo in a comment.
14931
14932 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
14933
14934 [BZ #22862]
14935 * include/features.h: Add _ISOC11_SOURCE to test for whether to
14936 define _DEFAULT_SOURCE.
14937 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
14938
14939 2018-02-21 Florian Weimer <fweimer@redhat.com>
14940
14941 [BZ #20890]
14942 * elf/cache.c (save_cache): Call fsync on temporary file before
14943 renaming it.
14944 (save_aux_cache): Call fdatasync on temporary file before renaming
14945 it.
14946
14947 2018-02-21 Florian Weimer <fweimer@redhat.com>
14948
14949 [BZ #22787]
14950 * include/caller.h: Remove file.
14951 * elf/dl-caller.c: Likewise.
14952 * elf/Makefile (dl-routines): Remove dl-caller.
14953 (shared-only-routines): Do not add dl-caller.
14954 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
14955 __check_caller.
14956 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
14957 member.
14958 (dl_open_worker): Do not call __check_caller.
14959 (_dl_open): Do not set caller_dl_open member.
14960 * elf/rtld.c (_rtld_global_ro): Do not initialize
14961 _dl_check_caller member.
14962 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
14963 _dl_check_caller member.
14964 (_dl_check_caller): Remove declaration.
14965 * sysdeps/unix/sysv/linux/dl-execstack.c
14966 (_dl_make_stack_executable): Do not call __check_caller.
14967
14968 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
14969
14970 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
14971 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
14972
14973 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14974
14975 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
14976 description.
14977
14978 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
14979
14980 [BZ #16335]
14981 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
14982 of 199606L, 200112L, and 200809L.
14983 (_XOPEN_SOURCE): Document special values of 600 and 700.
14984 (_ISOC11_SOURCE): Document macro.
14985 (_ATFILE_SOURCE): Likewise.
14986 (_FORTIFY_SOURCE): Likewise.
14987
14988 2018-02-19 Joseph Myers <joseph@codesourcery.com>
14989
14990 [BZ #15105]
14991 [BZ #19463]
14992 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
14993 and define as weak alias of __ferror_unlocked. Use
14994 libc_hidden_weak.
14995 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
14996 libc_hidden_proto.
14997 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
14998 function if [__USE_EXTERN_INLINES].
14999 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15000 ferror_unlocked.
15001
15002 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15003
15004 [BZ #6889]
15005 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15006
15007 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15008
15009 [BZ #22818]
15010 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15011 the GLIBC_2.1 version.
15012
15013 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15014
15015 [BZ #21508]
15016 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15017 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15018 intl/tst-gettext-de.po from po/de.po by removing the
15019 POT-Creation-Date line.
15020 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15021 ../po/de.po.
15022 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15023 ../po/de.po.
15024
15025 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15026
15027 * mach/Makefile (headers): Add mach/param.h.
15028 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15029 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15030 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15031 (__ptsname_r): Move implementation to...
15032 (__ptsname_internal): ... new function. Add filling the STP
15033 structure.
15034
15035 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15036
15037 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15038 idouble to 1 ULP.
15039
15040 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15041
15042 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15043 syntax.
15044
15045 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15046
15047 * nptl/Makefile (tst-mutex8-ENV): Delete.
15048 * nptl/tst-mutex8.c (check_type):
15049 Add runtime check if mutex will be elided.
15050
15051 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15052
15053 [BZ #20980]
15054 [BZ #21234]
15055 * manual/install.texi (Configuring and compiling): Describe
15056 passing CC and CFLAGS on configure command line, not as
15057 environment variables. Use @code markup on those variables.
15058 Specify what options go in CC and what go in CFLAGS. Note the
15059 requirement to compile with optimization.
15060 * INSTALL: Regenerated.
15061
15062 [BZ #18124]
15063 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15064 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15065 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15066 __sigprocmask instead of sigprocmask.
15067 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15068 Likewise.
15069 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15070 __sigsetjmp and sigprocmask.
15071
15072 [BZ #15105]
15073 * include/argz.h (argz_next): Use libc_hidden_proto.
15074 (__argz_next): Likewise.
15075 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15076 (argz_next): Use libc_hidden_weak.
15077
15078 [BZ #15105]
15079 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15080 libc_hidden_proto.
15081 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15082 libc_hidden_def.
15083
15084 [BZ #15105]
15085 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15086 libc_hidden_proto.
15087 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15088
15089 [BZ #15105]
15090 [BZ #19463]
15091 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15092 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15093 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15094 (__feof_unlocked): New declaration, and inline function if
15095 [__USE_EXTERN_INLINES].
15096 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15097 instead of feof_unlocked.
15098 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15099 * nss/nsswitch.c (nss_parse_file): Likewise.
15100 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15101 Likewise.
15102 * time/getdate.c (__getdate_r): Likewise.
15103 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15104 Define as macro to call __feof_unlocked.
15105
15106 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15107
15108 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15109
15110 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15111
15112 * math/Makefile: Remove mpexp.c and mplog.c
15113 * sysdeps/i386/fpu/mpexp.c: Delete file.
15114 * sysdeps/i386/fpu/mplog.c: Likewise.
15115 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15116 * sysdeps/ia64/fpu/mplog.c: Likewise.
15117 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15118 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15119 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15120 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15121 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15122 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15123 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15124 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15125 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15126 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15127 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15128 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15129 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15130 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15131 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15132 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15133
15134 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15135
15136 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15137
15138 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15139
15140 * sysdeps/sh/libm-test-ulps: Update.
15141
15142 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15143
15144 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15145 idouble to 1 ULP.
15146
15147 2018-02-12 Zack Weinberg <zackw@panix.com>
15148
15149 [BZ #19239]
15150 * posix/sys/types.h: Don't include sys/sysmacros.h.
15151 * misc/sys/sysmacros.h: Remove the conditional deprecation
15152 warnings for the macros defined by this header.
15153
15154 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15155
15156 * manual/probes.texi: Remove slowexp probes.
15157 * math/Makefile: Remove slowexp.
15158 * sysdeps/generic/math_private.h (__slowexp): Remove.
15159 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15160 document error bounds.
15161 * sysdeps/i386/fpu/slowexp.c: Remove.
15162 * sysdeps/ia64/fpu/slowexp.c: Remove.
15163 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15164 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15165 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15166 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15167 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15168 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15170 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15171 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15172 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15173 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15174
15175 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15176
15177 [BZ #13932]
15178 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15179 * benchtests/pow-inputs: Update comment for slow path cases.
15180 * manual/probes.texi (slowpow_p10): Delete removed probe.
15181 (slowpow_p10): Likewise.
15182 * math/Makefile: Remove halfulp.c and slowpow.c.
15183 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15184 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15185 (__halfulp): Remove.
15186 (__slowpow): Remove.
15187 * sysdeps/i386/fpu/halfulp.c: Delete file.
15188 * sysdeps/i386/fpu/slowpow.c: Likewise.
15189 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15190 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15191 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15192 improve comments and add error analysis.
15193 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15194 (power1): Remove function:
15195 (log1): Remove error argument, add error analysis.
15196 (my_log2): Remove function.
15197 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15198 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15199 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15200 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15201 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15202 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15203 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15204 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15205 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15206 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15207 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15208 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15209 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15210 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15211
15212 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15213
15214 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15215 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15216
15217 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15218
15219 [BZ #22433]
15220 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15221 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15222 and PTRACE_SETHBPREGS.
15223
15224 2018-02-10 Zack Weinberg <zackw@panix.com>
15225
15226 [BZ #22830]
15227 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15228 correctly.
15229 * malloc/tst-malloc-stats-cancellation.c: New test case.
15230 * malloc/Makefile: Add new test case.
15231
15232 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15233
15234 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15235
15236 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15237
15238 * math/Makefile (libm-narrow-fns): Add add.
15239 (libm-test-funcs-narrow): Likewise.
15240 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15241 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15242 * math/gen-auto-libm-tests.c (test_functions): Add add.
15243 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15244 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15245 (NARROW_ADD_TRIVIAL): Likewise.
15246 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15247 macro.
15248 (__daddl): Likewise.
15249 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15250 dadd.
15251 (CFLAGS-nldbl-dadd.c): New variable.
15252 (CFLAGS-nldbl-fadd.c): Likewise.
15253 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15254 __nldbl_daddl.
15255 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15256 prototype.
15257 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15258 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15259 * math/auto-libm-test-in: Add tests of add.
15260 * math/auto-libm-test-out-narrow-add: New generated file.
15261 * math/libm-test-narrow-add.inc: New file.
15262 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15263 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15264 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15265 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15266 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15267 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15268 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15269 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15270 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15271 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15272 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15273 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15274 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15275 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15276 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15277 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15278 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15279 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15280 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15281 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15282 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15283 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15284 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15285 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15286 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15287 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15288 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15289 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15290 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15291 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15292 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15293 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15298 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15299 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15300 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15301 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15302 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15303 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15304 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15305 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15306 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15307 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15308
15309 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15310 (f128-pairs): New variable.
15311 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15312 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15313 to CFLAGS.
15314 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15315 Also make tests add $(f128-loader-link) to gnulib-tests.
15316
15317 2018-02-09 DJ Delorie <dj@redhat.com>
15318
15319 [BZ #22827]
15320 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15321 64-bit ELF type for 64-bit ELF objects.
15322
15323 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15324
15325 * math/libm-test-driver.c (snan_tests_arg): New variable.
15326 * math/libm-test-support.h (snan_tests_arg): New declaration.
15327 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15328
15329 * math/Makefile (test-type-pairs): New variable.
15330 (test-type-pairs-f64xf128-yes): Likewise.
15331 (tests): Add test-narrow-macros.
15332 (libm-test-funcs-narrow): New variable.
15333 (libm-test-c-narrow): Likewise.
15334 (generated): Add $(libm-test-c-narrow).
15335 (libm-tests-base-narrow): New variable.
15336 (libm-tests-narrow): Likewise.
15337 (libm-tests): Add $(libm-tests-narrow).
15338 (libm-tests-for-type): Handle $(libm-tests-narrow).
15339 (libm-test-c-narrow-obj): New variable.
15340 ($(libm-test-c-narrow-obj)): New rule.
15341 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15342 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15343 $(o-iterator) to set dependencies and CFLAGS.
15344 * math/gen-auto-libm-tests.c: Document use for narrowing
15345 functions.
15346 (output_for_one_input_case): Take argument NARROW.
15347 (generate_output): Likewise. Update call to
15348 output_for_one_input_case.
15349 (main): Take --narrow option. Update call to generate_output.
15350 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15351 (apply_lit): Update call to _apply_lit.
15352 (apply_arglit): New function.
15353 (parse_args): Handle "a" arguments.
15354 (parse_auto_input): Handle format names using ":".
15355 * math/README.libm-test: Document "a" parameter type.
15356 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15357 (ARG_TYPE_TRUE_MIN): Likewise.
15358 (ARG_TYPE_MAX): Likwise.
15359 (ARG_MIN_EXP): Likewise.
15360 (ARG_MAX_EXP): Likewise.
15361 (ARG_MANT_DIG): Likewise.
15362 (TEST_COND_arg_ibm128): Likewise.
15363 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15364 (TEST_COND_arg_fmt): New macro.
15365 (init_max_error): Update prototype.
15366 * math/libm-test-support.c (test_ibm128): New variable.
15367 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15368 instead of using [TEST_COND_ibm128] conditional.
15369 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15370 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15371 [TEST_NARROW] (TEST_MSG): New definition.
15372 (arg_plus_zero): New macro.
15373 (arg_minus_zero): Likewise.
15374 (arg_plus_infty): Likewise.
15375 (arg_minus_infty): Likewise.
15376 (arg_qnan_value_pl): Likewise.
15377 (arg_qnan_value): Likewise.
15378 (arg_snan_value_pl): Likewise.
15379 (arg_snan_value): Likewise.
15380 (arg_max_value): Likewise.
15381 (arg_min_value): Likewise.
15382 (arg_min_subnorm_value): Likewise.
15383 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15384 (RUN_TEST_LOOP_aa_f): New macro.
15385 (TEST_SUFF): New macro.
15386 (TEST_SUFF_STR): Likewise.
15387 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15388 (TEST_COND_any_ibm128): New macro.
15389 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15390 this_func. Update call to init_max_error.
15391 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15392 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15393 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15394 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15395 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15396 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15397 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15398 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15399 * math/test-math-vector.h (TEST_NARROW): Likewise.
15400 * math/test-arg-double.h: New file.
15401 * math/test-arg-float128.h: Likewise.
15402 * math/test-arg-float32x.h: Likewise.
15403 * math/test-arg-float64.h: Likewise.
15404 * math/test-arg-float64x.h: Likewise.
15405 * math/test-arg-ldouble.h: Likewise.
15406 * math/test-math-narrow.h: Likewise.
15407 * math/test-narrow-macros.c: Likewise.
15408 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
15409 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
15410 test-narrow-macros-ldbl-64.
15411 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
15412
15413 * math/bits/mathcalls-narrow.h: New file.
15414 * include/bits/mathcalls-narrow.h: Likewise.
15415 * math/math-narrow.h: Likewise.
15416 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
15417 (__MATHCALL_NARROW_ARGS_2): Likewise.
15418 (__MATHCALL_NARROW_ARGS_3): Likewise.
15419 (__MATHCALL_NARROW_NORMAL): Likewise.
15420 (__MATHCALL_NARROW_REDIR): Likewise.
15421 (__MATHCALL_NARROW): Likewise.
15422 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
15423 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
15424 defined.
15425 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
15426 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
15427 (libm-narrow-fns): New variable.
15428 (libm-narrow-types-basic): Likewise.
15429 (libm-narrow-types-ldouble-yes): Likewise.
15430 (libm-narrow-types-float128-yes): Likewise.
15431 (libm-narrow-types-float128-alias-yes): Likewise.
15432 (libm-narrow-types): Likewise.
15433 (libm-routines): Add narrowing functions.
15434 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
15435 (libc_feholdexcept_setroundf128): New macro.
15436 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
15437 * sysdeps/ieee754/float128/float128_private.h: Include
15438 <math/math-narrow.h>.
15439 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
15440 Undefine and redefine.
15441 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
15442 (libm_alias_float_ldouble): Undefine and redefine.
15443 (libm_alias_double_ldouble): Likewise.
15444
15445 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
15446
15447 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
15448
15449 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
15450 FPCR/FPSR.
15451
15452 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
15453
15454 * manual/creature.texi: Convert references to gcc.info to gcc.
15455 * manual/stdio.texi: Likewise.
15456 * manual/string.texi: Likewise.
15457
15458 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15459
15460 [BZ #17979]
15461 * posix/bits/types.h (__int_least8_t): New typedef.
15462 (__uint_least8_t): Likewise.
15463 (__int_least16_t): Likewise.
15464 (__uint_least16_t): Likewise.
15465 (__int_least32_t): Likewise.
15466 (__uint_least32_t): Likewise.
15467 (__int_least64_t): Likewise.
15468 (__uint_least64_t): Likewise.
15469 * sysdeps/generic/stdint.h (int_least8_t): Define using
15470 __int_least8_t.
15471 (int_least16_t): Define using __int_least16_t.
15472 (int_least32_t): Define using __int_least32_t.
15473 (int_least64_t): Define using __int_least64_t.
15474 (uint_least8_t): Define using __uint_least8_t.
15475 (uint_least16_t): Define using __uint_least16_t.
15476 (uint_least32_t): Define using __uint_least32_t.
15477 (uint_least64_t): Define using __uint_least64_t.
15478 * wcsmbs/uchar.h: Include <bits/types.h>.
15479 (char16_t): Define using __uint_least16_t conditional only on
15480 [!__USE_ISOCXX11].
15481 (char32_t): Define using __uint_least32_t conditional only on
15482 [!__USE_ISOCXX11].
15483 * wcsmbs/test-char-types.c: New file.
15484 * wcsmbs/Makefile (tests): Add test-char-types.
15485
15486 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15487 version to 4.0.1.
15488
15489 2018-02-07 Zack Weinberg <zackw@panix.com>
15490
15491 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
15492 Delete all contents except for definitions of _G_HAVE_MMAP and
15493 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
15494 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
15495 sysdeps/unix/sysv/linux/_G_config.h. Make same content
15496 change as above.
15497
15498 * libio/libio.h: Don't include bits/_G_config.h here.
15499 Include stddef.h with __need_wchar_t defined. Include
15500 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
15501 Define _IO_iconv_t here, directly.
15502 Don't define _IO_HAVE_ST_BLKSIZE.
15503 * libio/libioP.h: Include _G_config.h here. Move include of
15504 shlib-compat.h up with rest of includes. Simplify conditionals
15505 controlling definition of _IO_JUMPS_OFFSET.
15506
15507 * csu/init.c: Remove always-true #if around entire file.
15508 Don't include stdio.h. Set _IO_stdin_used to hardwired
15509 constant 0x20001, and update commentary.
15510 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
15511 Replace all uses of _G_va_list with __gnuc_va_list.
15512 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
15513 instead of #if _IO_HAVE_ST_BLKSIZE.
15514 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
15515 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
15516 not #ifdef.
15517
15518 * libio/bits/libio.h: Move back to libio/libio.h and adjust
15519 multiple-include guard to match.
15520 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
15521 into this file.
15522 Remove preprocessor conditionals that are always true and/or
15523 redundant to other preprocessor conditionals in the same nest.
15524 Include shlib-compat.h unconditionally.
15525 Error out if _LIBC is not defined, or if _ISOMAC is defined,
15526 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
15527 defined after including stdio.h.
15528 Use __BEGIN_DECLS/__END_DECLS.
15529
15530 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
15531 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
15532 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
15533
15534 2018-02-07 Zack Weinberg <zackw@panix.com>
15535
15536 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
15537 New single-type headers split from _G_config.h.
15538 * libio/bits/types/cookie_io_functions_t.h
15539 * libio/bits/types/struct_FILE.h
15540 New single-type headers split from libio.h.
15541
15542 * libio/Makefile: Install the above new headers. Don't install
15543 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
15544 bits/libio-ldbl.h.
15545 * libio/_G_config.h, libio/libio.h: Delete file.
15546
15547 * libio/bits/libio.h: Remove improper-inclusion guard.
15548 Include stdio.h and don't repeat anything that it does.
15549 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
15550 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
15551 __io_read_fn as cookie_read_function_t,
15552 __io_write_fn as cookie_write_function_t,
15553 __io_seek_fn as cookie_seek_function_t,
15554 __io_close_fn as cookie_close_function_t,
15555 and _IO_cookie_io_functions_t as cookie_io_functions_t.
15556 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
15557 here, in the "compatibility defines" section. Remove an #if 0
15558 block. Use the "body" macros from bits/types/struct_FILE.h to
15559 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
15560 and _IO_ferror_unlocked.
15561 Move prototypes of __uflow and __overflow...
15562
15563 * libio/stdio.h: ...here. Don't include bits/libio.h.
15564 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
15565 directly from stdarg.h. Include bits/types/__fpos_t.h,
15566 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
15567 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
15568 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
15569 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
15570 cookie_io_functions_t, not _IO_cookie_io_functions_t;
15571 __ssize_t, not _IO_ssize_t. Unconditionally define
15572 BUFSIZ as 8192 and EOF as (-1).
15573
15574 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
15575 macros from bits/types/struct_FILE.h instead of _IO_* macros
15576 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
15577 instead of _IO_ssize_t.
15578 * libio/bits/stdio2.h: Similarly.
15579
15580 * libio/iolibio.h: Add multiple-include guard.
15581 Include bits/libio.h after stdio.h.
15582 * libio/libioP.h: Add multiple-include guard.
15583 Include stdio.h and bits/libio.h before iolibio.h.
15584
15585 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
15586 * include/bits/types/cookie_io_functions_t.h
15587 * include/bits/types/struct_FILE.h: New wrappers.
15588
15589 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
15590 Get definitions of _G_fpos_t and _G_fpos64_t from
15591 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
15592 respectively. Remove improper-inclusion guards.
15593
15594 * conform/data/stdio.h-data: Update expectations of va_list.
15595 * scripts/check-installed-headers.sh: Remove special case for
15596 libio.h and _G_config.h.
15597
15598 2018-02-07 Joseph Myers <joseph@codesourcery.com>
15599
15600 [BZ #15105]
15601 [BZ #19463]
15602 * include/sys/sysmacros.h [!_ISOMAC]
15603 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
15604 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
15605 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
15606 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
15607 libc_hidden_proto.
15608 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
15609 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
15610 Likewise.
15611 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
15612 Undefine and redefine to add use __gnu_dev_ prefix.
15613 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
15614 Likewise.
15615 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
15616 and define as hidden inline function.
15617 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
15618 Likewise.
15619 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
15620 Likewise.
15621 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
15622 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
15623 (gnu_dev_minor): Likewise.
15624 (gnu_dev_makedev): Likewise.
15625 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
15626 makedev.
15627 * posix/wordexp.c (exec_comm_child): Likewise.
15628 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
15629 instead of minor and __gnu_dev_major instead of major.
15630 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
15631 __gnu_dev_major instead of major.
15632 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
15633 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
15634 instead of gnu_dev_minor.
15635 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
15636 (SLAVE_P): Likewise.
15637 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
15638 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
15639 instead of major.
15640
15641 [BZ #21313]
15642 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
15643 in another place.
15644 * locale/weightwc.h (findidx): Likewise.
15645
15646 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
15647
15648 * manual/probes.texi (slowlog): Delete documentation of removed probe.
15649 (slowlog_inexact): Likewise
15650 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
15651 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
15652
15653 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
15654
15655 [BZ #22797]
15656 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
15657 missing second underscore to parameter name.
15658
15659 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15660
15661 [BZ #14508]
15662 [BZ #15512]
15663 [BZ #17082]
15664 [BZ #20530]
15665 * bits/byteswap.h: Update file comment. Do not include
15666 <bits/byteswap-16.h>.
15667 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
15668 constant.
15669 (__bswap_16): Define as inline function.
15670 (__bswap_constant_32): Reformat definition.
15671 (__bswap_32): Always define as inline function, not macro, using
15672 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
15673 otherwise __bswap_constant_32.
15674 (__bswap_constant_64): Reformat definition. Do not use
15675 __extension__ here.
15676 (__bswap_64): Always define as inline function, not macro. Use
15677 __extension__ on function definition. Use __builtin_bswap64 if
15678 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
15679 * string/test-endian-file-scope.c: New file.
15680 * string/test-endian-sign-conversion.c: Likewise.
15681 * string/Makefile (headers): Remove bits/byteswap-16.h.
15682 (tests): Add test-endian-file-scope and
15683 test-endian-sign-conversion.
15684 (CFLAGS-test-endian-sign-conversion.c): New variable.
15685 * bits/byteswap-16.h: Remove file.
15686 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
15687 * sysdeps/ia64/bits/byteswap.h: Likewise.
15688 * sysdeps/m68k/bits/byteswap.h: Likewise.
15689 * sysdeps/s390/bits/byteswap-16.h: Likewise.
15690 * sysdeps/s390/bits/byteswap.h: Likewise.
15691 * sysdeps/tile/bits/byteswap.h: Likewise.
15692 * sysdeps/x86/bits/byteswap-16.h: Likewise.
15693 * sysdeps/x86/bits/byteswap.h: Likewise.
15694
15695 [BZ #17721]
15696 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
15697 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
15698 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
15699 199901L] (__restrict): Define to restrict.
15700
15701 [BZ #19667]
15702 * string/testcopy.c: Include <support/support.h>. Do not include
15703 <malloc.h>. Use <support/test-driver.c>.
15704 (main): Rename to do_test. Make static. Use xmalloc instead of
15705 malloc.
15706
15707 [BZ #13575]
15708 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
15709 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
15710 (SSIZE_MAX): Define to INT_MAX.
15711 * posix/test-ssize-max.c: New file.
15712 * posix/Makefile (tests): Add test-ssize-max.
15713
15714 [BZ #19668]
15715 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
15716 <support/support.h>. Do not include <malloc.h>.
15717 (query_auxv): Use xmalloc instead of malloc.
15718
15719 [BZ #14553]
15720 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
15721 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
15722 instead of loff_t.
15723
15724 2018-02-06 Florian Weimer <fweimer@redhat.com>
15725
15726 [BZ #18023]
15727 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15728 Use scratch_buffer instead of extend_alloca.
15729
15730 2018-02-06 Zack Weinberg <zackw@panix.com>
15731
15732 * libio/stdio.h: Don't define getc or putc as macros.
15733 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
15734 not _IO_getc and _IO_putc.
15735
15736 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
15737 * stdio-common/tstgetln.c: Don't redefine ssize_t.
15738
15739 2018-02-06 Joseph Myers <joseph@codesourcery.com>
15740
15741 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
15742 (TCP_FASTOPEN_NO_COOKIE): Likewise.
15743
15744 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
15745
15746 [BZ #14890]
15747 * elf/elf.h (NT_PRFPREG): New macro.
15748 (NT_S390_VXRS_LOW): Likewise.
15749 (NT_S390_VXRS_HIGH): Likewise.
15750 (NT_S390_GS_CB): Likewise.
15751 (NT_S390_GS_BC): Likewise.
15752 (NT_S390_RI_CB): Likewise.
15753
15754 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
15755 (MAP_SYNC): New macro.
15756 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
15757 Likewise.
15758 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
15759 (MAP_SYNC): Likewise.
15760 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
15761 (MAP_SYNC): Likewise.
15762 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
15763 (MAP_SYNC): Likewise.
15764 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
15765 (MAP_SYNC): Likewise.
15766 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
15767 (MAP_SYNC): Likewise.
15768 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
15769 (MAP_SYNC): Likewise.
15770 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
15771 Likewise.
15772 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
15773 Likewise.
15774
15775 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
15776 (MAP_SHARED_VALIDATE): New macro.
15777 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
15778 (MAP_SHARED_VALIDATE): Likewise.
15779
15780 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15781
15782 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
15783 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
15784 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15785
15786 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15787
15788 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
15789 (DT_NUM): Updated to 35.
15790
15791 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15792
15793 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
15794 __builtin_expect with __glibc_likely and __glibc_unlikely.
15795 (elf_machine_rela): Likewise.
15796 (elf_machine_lazy_rel): Likewise.
15797
15798 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15799
15800 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
15801 __builtin_expect with __glibc_likely and __glibc_unlikely.
15802 (elf_machine_lazy_rel): Likewise.
15803
15804 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
15805
15806 [BZ #22638]
15807 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
15808 SHARED.
15809 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
15810
15811 2018-02-05 Andreas Schwab <schwab@suse.de>
15812
15813 [BZ #22761]
15814 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
15815 string.
15816
15817 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
15818
15819 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
15820 not check against PTHREAD_STACK_MIN.
15821
15822 2018-02-02 Sean McKean <smckean83@gmail.com>
15823
15824 [BZ #22735]
15825 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
15826
15827 2018-02-02 Florian Weimer <fweimer@redhat.com>
15828
15829 [BZ #22753]
15830 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
15831 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
15832 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
15833 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
15834 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
15835 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
15836 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
15837 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
15838 * manual/llio.texi (Scatter-Gather): Mention offset -1.
15839 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
15840 * misc/tst-preadvwritev2.c (do_test): Call it.
15841 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
15842
15843 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
15844
15845 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
15846
15847 * benchtests/bench-memcmp.c: Print json instead of plain text.
15848
15849 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
15850 every test run.
15851
15852 2018-02-01 Joseph Myers <joseph@codesourcery.com>
15853
15854 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15855 version to 4.15.
15856 (s390_sthyi): New syscall.
15857
15858 * sysdeps/generic/ldbl-classify-compat.h: New file.
15859 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
15860 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
15861 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
15862 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
15863 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
15864 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
15865 * sysdeps/ieee754/dbl-64/s_finite.c: Include
15866 <ldbl-classify-compat.h>.
15867 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15868 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
15869 <ldbl-classify-compat.h>.
15870 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15871 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
15872 <ldbl-classify-compat.h>.
15873 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15874 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
15875 <ldbl-classify-compat.h>.
15876 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15877 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
15878 <ldbl-classify-compat.h>.
15879 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15880 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
15881 <ldbl-classify-compat.h>.
15882 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
15883 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
15884 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
15885 * sysdeps/m68k/coldfire/math_private.h: Remove file.
15886 * sysdeps/microblaze/math_private.h: Likewise.
15887 * sysdeps/nios2/math_private.h: Likewise.
15888 * sysdeps/sh/math_private.h: Likewise.
15889
15890 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
15891 * sysdeps/m68k/coldfire/math_private.h: ... here.
15892 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
15893 * sysdeps/tile/math_private.h: Likewise.
15894 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
15895 Remove macro.
15896 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
15897 Likewise.
15898
15899 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
15900 Remove macro.
15901 (libc_fetestexcept): Likewise.
15902 (libc_feupdateenv_test): Likewise.
15903 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
15904 (libc_fetestexcept): Likewise.
15905 (libc_feupdateenv_test): Likewise.
15906 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
15907 (libc_fetestexcept): Likewise.
15908 (libc_feupdateenv_test): Likewise.
15909 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
15910 (libc_fetestexcept): Likewise.
15911 (libc_feupdateenv_test): Likewise.
15912
15913 * sysdeps/generic/math_private.h
15914 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
15915 New inline function.
15916 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
15917 Likewise.
15918
15919 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
15920 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
15921 * sysdeps/generic/math_private.h
15922 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
15923 inline function.
15924 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
15925 Likewise.
15926 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
15927 Likewise.
15928 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
15929 Likewise.
15930 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
15931 Likewise.
15932 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
15933 Likewise.
15934 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
15935 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
15936 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
15937 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
15938 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
15939 (__fegetenv): Likewise.
15940 (fesetenv): Likewise.
15941 (__fesetenv): Likewise.
15942 (feupdateenv): Likewise.
15943 (__feupdateenv): Likewise.
15944 (fegetround): Likewise.
15945 (__fegetround): Likewise.
15946 (fesetround): Likewise.
15947 (__fesetround): Likewise.
15948
15949 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
15950 (feraiseexcept): New macro.
15951 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
15952 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
15953 Remove macro.
15954 (__feraiseexcept): Likewise.
15955 (feclearexcept): Likewise.
15956 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
15957 (__feraiseexcept): Likewise.
15958 (feclearexcept): Likewise.
15959 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
15960 (__feraiseexcept): Likewise.
15961 (feclearexcept): Likewise.
15962 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
15963 (__feraiseexcept): Likewise.
15964 (feclearexcept): Likewise.
15965 (fetestexcept): Likewise.
15966
15967 * sysdeps/m68k/coldfire/math-tests.h: New file.
15968
15969 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
15970 * sysdeps/m68k/bits/fenv.h: ... here.
15971 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
15972 not define.
15973 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
15974 Likewise.
15975 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
15976 Likewise.
15977 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
15978 Likewise.
15979 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
15980 Likewise.
15981 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
15982 Define to 0.
15983 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
15984 (__FE_UNDEFINED): New enum constant.
15985 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
15986 Do not define.
15987 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
15988 Likewise.
15989 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
15990 Likewise.
15991 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
15992 to match generic bits/fenv.h.
15993 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
15994 Do not define.
15995
15996 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
15997 packed on bits.
15998 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
15999 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16000 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16001 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16002
16003 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16004 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16005 Joseph Myers <joseph@codesourcery.com>
16006
16007 [BZ #21314]
16008 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16009 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16010 computation using c.
16011 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16012 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16013 computation using c.
16014
16015 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16016
16017 * version.h (RELEASE): Set to "development".
16018 (VERSION): Set to "2.27.9000".
16019 * NEWS (2.28): New section.
16020
16021 * version.h (RELEASE): Set to "stable".
16022 (VERSION): Set to "2.27".
16023 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16024
16025 * NEWS: Add the list of bugs fixed in 2.27.
16026
16027 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16028
16029 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16030 against PTHREAD_STACK_MIN.
16031
16032 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16033
16034 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16035 New entries.
16036 (Rafal Luzynski, Andreas Schwab): Update.
16037
16038 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16039
16040 [BZ #10871]
16041 * NEWS: List the languages which actually use the alternative
16042 months feature in this release. Also explain that "alt_mon" and
16043 "ab_alt_mon" are optional.
16044
16045 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16046
16047 [BZ #22765]
16048 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16049
16050 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16051
16052 * manual/install.texi (Tools for Compilation): Update the newest
16053 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16054 * INSTALL: Regenerated.
16055
16056 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16057
16058 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16059 instead of __builtin_expect.
16060
16061 2018-01-30 Florian Weimer <fweimer@redhat.com>
16062
16063 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16064 data.
16065 * nss/tst-nss-getpwent.c (do_test): Likewise.
16066
16067 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16068
16069 [BZ #10871]
16070 * localedata/locales/hr_HR (mon): Rename to...
16071 (alt_mon): This.
16072 (mon): Import from CLDR (genitive case).
16073 (d_t_fmt): Update the comment.
16074
16075 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16076
16077 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16078 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16079 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16080
16081 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16082
16083 * mach/Versions: Fix version when __mach_host_self_ was added.
16084 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16085 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16086 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16087 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16088 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16089 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16090 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16091 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16092 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16093 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16094 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16095 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16096 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16097 || to respect codestyle.
16098 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16099 (do_test_bz20181): Rename accordingly.
16100 * malloc/malloc.c: Include <assert.h>.
16101 (assert): Do not define.
16102 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16103 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16104 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16105 * sysdeps/mach/hurd/hp-timing.h: New file.
16106 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16107
16108 2018-01-29 Darius Rad <darius@bluespec.com>
16109
16110 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16111
16112 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16113
16114 * sysdeps/init_array/crti.S (.section .init_array): Add
16115 PREINIT_FUNCTION when defined.
16116 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16117 * config.h.in: Regenerate.
16118 * manual/platform.texi: Add RISC-V documenation for
16119 __riscv_flush_icache.
16120 * sysdeps/riscv/__longjmp.S: New file.
16121 * sysdeps/riscv/backtrace.c: Likewise.
16122 * sysdeps/riscv/bits/endian.h: Likewise.
16123 * sysdeps/riscv/bits/setjmp.h: Likewise.
16124 * sysdeps/riscv/bits/wordsize.h: Likewise.
16125 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16126 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16127 * sysdeps/riscv/dl-trampoline.S: Likewise.
16128 * sysdeps/riscv/gccframe.h: Likewise.
16129 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16130 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16131 * sysdeps/riscv/machine-gmon.h: Likewise.
16132 * sysdeps/riscv/memusage.h: Likewise.
16133 * sysdeps/riscv/setjmp.S: Likewise.
16134 * sysdeps/riscv/sys/asm.h: Likewise.
16135 * sysdeps/riscv/tls-macros.h: Likewise.
16136 * sysdeps/riscv/dl-tls.h: New file.
16137 * sysdeps/riscv/libc-tls.c: Likewise.
16138 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16139 * sysdeps/riscv/nptl/tls.h: Likewise.
16140 * sysdeps/riscv/stackinfo.h: Likewise.
16141 * sysdeps/riscv/bits/fenv.h: New file.
16142 * sysdeps/riscv/e_sqrtl.c: Likewise.
16143 * sysdeps/riscv/fpu_control.h: Likewise.
16144 * sysdeps/riscv/math-tests.h: Likewise.
16145 * sysdeps/riscv/nofpu/Implies: Likewise.
16146 * sysdeps/riscv/sfp-machine.h: Likewise.
16147 * sysdeps/riscv/tininess.h: Likewise.
16148 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16149 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16150 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16151 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16152 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16153 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16154 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16155 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16156 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16157 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16158 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16159 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16160 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16161 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16162 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16163 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16164 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16165 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16166 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16167 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16168 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16169 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16170 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16171 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16172 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16173 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16174 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16175 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16176 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16177 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16178 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16179 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16180 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16181 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16182 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16183 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16184 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16185 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16186 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16187 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16188 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16189 * sysdeps/riscv/rvf/math_private.h: Likewise.
16190 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16191 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16192 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16193 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16194 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16195 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16196 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16197 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16198 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16199 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16200 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16201 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16202 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16203 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16204 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16205 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16206 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16207 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16208 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16209 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16210 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16211 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16212 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16213 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16214 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16215 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16216 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16217 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16218 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16219 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16220 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16221 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16222 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16223 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16224 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16225 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16226 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16227 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16228 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16229 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16230 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16231 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16232 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16233 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16234 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16235 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16236 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16237 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16238 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16239 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16240 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16241 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16242 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16243 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16244 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16245 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16246 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16247 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16248 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16249 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16250 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16251 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16252 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16253 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16254 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16255 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16256 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16257 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16258 * sysdeps/riscv/Implies: New file.
16259 * sysdeps/riscv/Makefile: Likewise.
16260 * sysdeps/riscv/configure: Likewise.
16261 * sysdeps/riscv/configure.ac: Likewise.
16262 * sysdeps/riscv/nptl/Makefile: Likewise.
16263 * sysdeps/riscv/preconfigure: Likewise.
16264 * sysdeps/riscv/rv64/Implies-after: Likewise.
16265 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16266 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16267 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16268 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16269 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16270 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16271 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16272 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16273 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16274 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16275 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16276 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16277 (Config): Likewise.
16278
16279 2018-01-29 Florian Weimer <fweimer@redhat.com>
16280
16281 [BZ #22701]
16282 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16283 libnsl_hidden_proto.
16284 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16285 libnsl_hidden_proto.
16286 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16287 * nis/Makefile (libnsl-routines): Add nss-default only for
16288 build-obsolete-nsl.
16289 * nis/nis_defaults.c (__nis_default_ttl): Add
16290 libnsl_hidden_nolink_def.
16291 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16292 declaration.
16293 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16294 * nis/ypclnt.c (yp_maplist): Likewise.
16295
16296 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16297
16298 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16299 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16300
16301 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16302
16303 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16304 clean -dxfq for git updates when replacing sources.
16305
16306 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16307 --disable-libcilkrts unconditionally, not just for the final GCC
16308 build for Hurd.
16309
16310 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16311 version to 4.15.
16312
16313 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16314
16315 [BZ #10871]
16316 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16317 case).
16318
16319 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16320
16321 [BZ #10871]
16322 * localedata/locales/be_BY (mon): Rename to...
16323 (alt_mon): This, then synchronize with CLDR (nominative case).
16324 (abmon): Rename to...
16325 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16326 (mon): Import from CLDR (genitive case).
16327 (abmon): Likewise.
16328 * localedata/locales/be_BY@latin (mon): Rename to...
16329 (alt_mon): This.
16330 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16331
16332 * localedata/locales/be_BY@latin (lang_name): Reworded to
16333 "biełaruskaja mova".
16334
16335 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16336
16337 [BZ #10871]
16338 * localedata/locales/el_CY (mon): Renamed to...
16339 (alt_mon): This.
16340 (mon): Import from CLDR (genitive case).
16341 * localedata/locales/el_GR: Likewise.
16342
16343 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16344
16345 [BZ #10871]
16346 * localedata/locales/ru_RU (mon): Rename to...
16347 (alt_mon): This.
16348 (abmon): Rename to...
16349 (ab_alt_mon): This.
16350 (mon): Import from CLDR (genitive case).
16351 (abmon): Copy from the old content except the 5th month which is
16352 now in the genitive case, even when abbreviated.
16353 * localedata/locales/ru_UA: Likewise.
16354 * time/tst-strptime.c (day_tests): Add an actual example of
16355 a difference between %b and %Ob in Russian.
16356
16357 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16358
16359 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16360 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16361 a `c' variable.
16362 * resolv/res-close.c: Include <stdlib.h>.
16363 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16364 <sys/wait.h>, <time.h>, <sys/uio.h>.
16365 (NOT_CANCEL_H): Add inclusion guard.
16366 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16367 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16368 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16369 return 0.
16370 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16371 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16372 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16373 instead of void *.
16374 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16375 timer_ptr2id to cast struct timer_node * to void *.
16376 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16377 --disable-libcilkrts to gcc configure.
16378 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16379 and make them the default for now.
16380 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16381 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16382 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16383 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16384 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16385 MACH_IPC_COMPAT.
16386 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16387 __task_terminate would ever return successfully.
16388 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16389 to global scope.
16390 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16391 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16392 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16393 critical section to make code simpler and avoid warning.
16394 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16395 critical section to make code simpler and avoid warning.
16396 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16397 const char * instead of char *.
16398 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16399 __hurd_file_name_split, hurd_file_name_split,
16400 __hurd_directory_name_split, hurd_directory_name_split,
16401 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16402 hurd_file_name_path_lookup): Make lookup function parameter take a
16403 const char *name instead of char *name.
16404 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16405 __hurd_directory_name_split): Likewise.
16406 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16407 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
16408 * sysdeps/mach/hurd/check_native.c: New file.
16409 * sysdeps/mach/hurd/check_pf.c: New file.
16410 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
16411 (__freeifaddrs): Define macro to freeifaddrs.
16412 * sysdeps/mach/hurd/libhurduser.abilist: New file.
16413 * sysdeps/mach/libmachuser.abilist: New file.
16414 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
16415 (do_test_bz20181): Rename accordingly.
16416 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
16417 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
16418 <sys/mount.h>.
16419 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
16420 version only if __USE_EXTERN_INLINES is defined.
16421 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
16422 __hurd_sockfail): Likewise.
16423 (_hurd_fd_get): Always declare functions, and provide inline versions
16424 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
16425 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
16426 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
16427 _hurd_port_set): Always declare functions, and provide inline versions
16428 only if __USE_EXTERN_INLINES and _LIBC are defined and
16429 IS_IN(libc).
16430 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
16431 _hurd_critical_section_unlock): Likewise.
16432 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
16433 * __hurd_threadvar_location): Likewise.
16434 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
16435 _hurd_userlink_clear): Likewise.
16436 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
16437 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
16438 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
16439 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
16440 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
16441 __spin_lock_locked): Likewise.
16442 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
16443 __spin_lock_locked): Likewise.
16444 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
16445 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
16446 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
16447 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
16448 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
16449 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
16450 _POSIX_NO_TRUNC): Define to 0.
16451 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
16452 check size against PTHREAD_STACK_MIN.
16453 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
16454 IS_IN(libpthread)]: Include <sigsetops.h>.
16455 * mach/Makefile (user-interfaces): Add mach/gnumach.
16456 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
16457 * sysdeps/mach/configure (mach_interface_list): Regenerate.
16458 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
16459 instead of invalid -1.
16460 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
16461 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
16462 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
16463 <net/ppp_defs.h>.
16464
16465 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
16466
16467 * hurd/fcntl-internal.h: New file.
16468
16469 2018-01-27 James Clarke <jrtc27@jrtc27.com>
16470
16471 * sysdeps/hppa/fpu/libm-test-ulps: Update.
16472
16473 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16474
16475 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
16476
16477 [BZ #22701]
16478 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
16479 Build only shared objects.
16480
16481 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16482
16483 * README: Update for hppa.
16484
16485 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
16486
16487 * sysdeps/sparc/fpu/libm-test-ulps: Update
16488 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
16489
16490 2018-01-26 Carlos O'Donell <carlos@redhat.com>
16491
16492 Revert:
16493
16494 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16495
16496 [BZ #22563]
16497 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16498 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
16499 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
16500 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
16501 to feature_1.
16502
16503 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
16504
16505 [BZ #22563]
16506 * bits/types/__cancel_jmp_buf_tag.h: New file.
16507 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
16508 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
16509 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
16510 * nptl/Makefile (headers): Add
16511 bits/types/__cancel_jmp_buf_tag.h.
16512 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
16513 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
16514 * sysdeps/nptl/pthread.h: Include
16515 <bits/types/__cancel_jmp_buf_tag.h>.
16516 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
16517 __cancel_jmp_buf.
16518 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
16519
16520 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
16521
16522 [BZ #10871]
16523 * localedata/locales/uk_UA (mon): Renamed to...
16524 (alt_mon): This.
16525 (alt_digits): "0" removed and then renamed to...
16526 (mon): This.
16527 (date_fmt): Definition changed not to use the alternative
16528 digits hack.
16529
16530 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
16531
16532 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
16533 FLAG_RISCV_FLOAT_ABI_DOUBLE.
16534 * elf/elf.h (EF_RISCV_RVC): New define.
16535 (EF_RISCV_FLOAT_ABI): Likewise.
16536 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
16537 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
16538 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16539 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
16540 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
16541 define.
16542 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
16543
16544 2018-01-25 Andreas Schwab <schwab@suse.de>
16545
16546 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
16547 single quotes.
16548 * sysdeps/gnu/configure: Regenerate.
16549 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
16550 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
16551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
16552 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
16553 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
16554 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
16555 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
16556 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
16557
16558 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16559
16560 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
16561 URL, and run autoconf, make it the default for now.
16562
16563 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16564
16565 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16566 soft-float ColdFire configuration.
16567
16568 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
16569 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
16570 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
16571
16572 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
16573 MicroBlaze file.
16574
16575 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
16576 ....
16577 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
16578 ... here.
16579 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
16580 New file.
16581
16582 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
16583 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
16584 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
16585 file.
16586
16587 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
16588
16589 [BZ #22742]
16590 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
16591 Rename to __reserved and add comment.
16592 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
16593 Rename to __reserved.
16594
16595 2018-01-24 Joseph Myers <joseph@codesourcery.com>
16596
16597 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
16598 i686-gnu configurations.
16599 (Context.run_builds): Include mig, gnumach and hurd in components
16600 considered.
16601 (Context.checkout): Add mig, gnumach and hurd to components.
16602 (Context.checkout_tar): Add URL mappings for mig, gnumach and
16603 hurd.
16604 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
16605 (Config.build): Install gnumach headers, build mig and install
16606 hurd headers for 'gnu' OS.
16607 (Config.install_gnumach_headers): New function.
16608 (Config.install_hurd_headers): Likewise.
16609 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
16610 when building for 'gnu' OS.
16611
16612 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
16613
16614 * manual/tunables.texi (Hardware Capability Tunables): Fix
16615 spelling.
16616
16617 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
16618
16619 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
16620 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
16621 (ALTMON_11, ALTMON_12): Improve documentation.
16622 * manual/time.texi (strftime): Likewise.
16623
16624 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16625
16626 [BZ #10871]
16627 * localedata/locales/pl_PL: Alternative month names added,
16628 primary month names are genitive now.
16629 * time/tst-strptime.c (day_tests): Actually use a genitive case
16630 of a month name in Polish language.
16631
16632 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16633
16634 [BZ #10871]
16635 * manual/locale.texi: Document ALTMON_1..12 constants for
16636 nl_langinfo. Specify when to use ALTMON instead of MON.
16637 * manual/time.texi (strftime, strptime): Document GNU extension
16638 permitting O modifier with %B and %b. Specify when to use
16639 %OB instead of %B.
16640
16641 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16642
16643 [BZ #10871]
16644 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
16645 names, define them as the same as abbreviated month names explicitly.
16646 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
16647 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
16648 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
16649 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
16650 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
16651 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
16652 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
16653 _NL_WABALTMON_12): New enum constants.
16654 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
16655 wab_alt_mon, and ab_alt_mon_defined members.
16656 (time_output): Output ab_alt_mon and wab_alt_mon members.
16657 (time_read): Read them, initialize them as copies of abmon and wabmon
16658 respectively if they are missing, initialize ab_alt_mon_defined.
16659 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
16660 * locale/programs/locfile-kw.h: Regenerate.
16661 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
16662 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
16663 and ru_RU.UTF-8.
16664 * time/strftime_l.c (a_altmonth, aam_len): New macros.
16665 [!COMPILE_WIDE] (ABALTMON_1): New macro.
16666 (__strftime_internal): Handle %Ob and %Oh formats.
16667 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
16668 (__strptime_internal): Handle %Ob and %Oh formats.
16669 * time/tst-strptime.c (day_tests): Add more tests to parse different
16670 forms of month names including the new %Ob format specifier.
16671
16672 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
16673
16674 [BZ #10871]
16675 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
16676 define them as the same as primary full month names explicitly.
16677 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
16678 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
16679 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
16680 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
16681 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
16682 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
16683 _NL_WALTMON_12): New enum constants.
16684 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
16685 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
16686 macros.
16687 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
16688 walt_mon, and alt_mon_defined members.
16689 (time_output): Output alt_mon and walt_mon members.
16690 (time_read): Read them, initialize them as copies of mon and wmon
16691 respectively if they are missing, initialize alt_mon_defined.
16692 * locale/programs/locfile-kw.gperf (alt_mon): Define.
16693 * locale/programs/locfile-kw.h: Regenerate.
16694 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
16695 * localedata/tst-langinfo.c (map): Add tests for the new constants
16696 ALTMON_1 .. ALTMON_12.
16697 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
16698 and pl_PL.UTF-8.
16699 * time/strftime_l.c (f_altmonth): New macro.
16700 (__strftime_internal): Handle %OB format.
16701 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
16702 (__strptime_internal): Handle %OB format.
16703 * time/tst-strptime.c (day_tests): Add tests to parse different forms
16704 of month names including the new %OB format specifier.
16705
16706 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16707
16708 [BZ #22685]
16709 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
16710 from ABORT_TRANSACTION.
16711 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
16712 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
16713 ABORT_TRANSACTION_IMPL): Likewise.
16714 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
16715 Linux code, but remove the code that aborts transactions.
16716
16717 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
16718
16719 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
16720
16721 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
16722
16723 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
16724 in date: "2004-14-09" should be "2004-09-14".
16725 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
16726 "2003-15-09" should be "2003-09-15".
16727
16728 2018-01-18 Arjun Shankar <arjun@redhat.com>
16729
16730 [BZ #22343]
16731 [BZ #22774]
16732 CVE-2018-6485
16733 CVE-2018-6551
16734 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
16735 after padding.
16736 (_int_memalign): check for integer overflow before calling
16737 _int_malloc.
16738 * malloc/tst-malloc-too-large.c: New test.
16739 * malloc/Makefile: Add tst-malloc-too-large.
16740
16741 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
16742
16743 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
16744 in date: "2017-24-07" should be "2017-07-24".
16745 * localedata/locales/mai_IN: Likewise.
16746 * localedata/locales/mai_NP: Likewise.
16747
16748 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
16749
16750 * po/ru.po: Update translations.
16751
16752 2018-01-17 Joseph Myers <joseph@codesourcery.com>
16753
16754 [BZ #22719]
16755 * sysdeps/hppa/backtrace.c: New file.
16756
16757 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
16758
16759 [BZ #22715]
16760 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
16761 align La_x86_64_retval to VEC_SIZE.
16762
16763 2018-01-16 Joseph Myers <joseph@codesourcery.com>
16764
16765 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
16766 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
16767
16768 2018-01-16 Florian Weimer <fweimer@redhat.com>
16769
16770 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
16771 Move tst-thread-exit-clobber ...
16772 [$(CXX)] (tests-unsupported): ... to here.
16773
16774 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16775
16776 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
16777 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
16778 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16779 (_dl_aarch64_cap_flags): Update.
16780 (_DL_HWCAP_COUNT): Update.
16781
16782 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
16783
16784 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
16785 (_DL_HWCAP_LAST): Remove.
16786 (_DL_HWCAP_COUNT): Move to ...
16787 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
16788 (_DL_HWCAP_COUNT): ... here.
16789
16790 2018-01-16 Florian Weimer <fweimer@redhat.com>
16791
16792 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
16793 mode with GNU extensions.
16794
16795 2018-01-15 Alan Hayward <alan.hayward@arm.com>
16796
16797 * elf/elf.h (NT_ARM_SVE): Define.
16798
16799 2018-01-15 Florian Weimer <fweimer@redhat.com>
16800
16801 [BZ #22636]
16802 * nptl/tst-minstack-throw.cc: New file.
16803 * nptl/Makefile (tests): Add tst-minstack-throw.
16804 (LDLIBS-tst-minstack-throw): Link with libstdc++.
16805 [!CXX] (tests-unsupported): Add tst-minstack-throw.
16806
16807 2018-01-15 Joseph Myers <joseph@codesourcery.com>
16808
16809 * scripts/build-many-glibcs.py (Context.checkout): Default
16810 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
16811 version to 1.1.0.
16812
16813 2018-01-13 Carlos O'Donell <carlos@redhat.com>
16814
16815 [BZ #22707]
16816 * elf/elf.h (DF_1_STUB): Define.
16817 (DF_1_PIE): Define.
16818
16819 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16820
16821 [BZ #22697]
16822 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
16823 Do not add 0.5 to integer or out-of-range arguments.
16824
16825 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16826
16827 * po/bg.po: Update translations.
16828 * po/cs.po: Likewise.
16829 * po/de.po: Likewise.
16830 * po/ko.po: Likewise.
16831 * po/pl.po: Likewise.
16832 * po/sv.po: Likewise.
16833 * po/uk.po: Likewise.
16834 * po/vi.po: Likewise.
16835
16836 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
16837
16838 * aarch64/start.S (_start): Use __wrap_main.
16839 (__wrap_main): New local symbol.
16840
16841 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
16842
16843 [BZ #22679]
16844 CVE-2018-1000001
16845 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
16846 generic_getcwd if the path returned by getcwd syscall is not absolute.
16847 * io/tst-getcwd-abspath.c: New test.
16848 * io/Makefile (tests): Add tst-getcwd-abspath.
16849
16850 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
16851
16852 * malloc/malloc.c (malloc_consolidate): Add size check.
16853
16854 2018-01-12 Florian Weimer <fweimer@redhat.com>
16855
16856 * support/write_message.c (write_message): Preserve errno.
16857 * support/check.c (print_failure): Likewise.
16858 * support/support_test_verify_impl.c (support_test_verify_impl):
16859 Likewise.
16860 * support/support_test_compare_failure.c
16861 (support_test_compare_failure): Likewise.
16862
16863 2018-01-12 Florian Weimer <fweimer@redhat.com>
16864
16865 [BZ #22701]
16866 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
16867 Prevent installation of libnsl.so.
16868 (libnsl-inhibit-o): Do not build (or install) static libraries.
16869
16870 2018-01-12 Egmont Koblinger <egmont@gmail.com>
16871
16872 [BZ #22657]
16873 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
16874 before the day number which may produce a double space.
16875 (date_fmt): Likewise.
16876
16877 2018-01-12 Joseph Myers <joseph@codesourcery.com>
16878
16879 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
16880 instead of fegetenv.
16881
16882 2018-01-11 Joseph Myers <joseph@codesourcery.com>
16883
16884 [BZ #22702]
16885 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
16886 comment to say exceptions are discarded.
16887 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
16888 __fegetenv.
16889 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
16890 be enabled.
16891
16892 2018-01-11 Florian Weimer <fweimer@redhat.com>
16893
16894 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
16895 and error message.
16896
16897 2018-01-11 Florian Weimer <fweimer@redhat.com>
16898
16899 [BZ #22636]
16900 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
16901 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
16902
16903 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16904
16905 [BZ #22693]
16906 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
16907 negative arguments in test for NaN or infinity argument.
16908
16909 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
16910
16911 * po/libc.pot: Regenerate.
16912
16913 2018-01-10 Florian Weimer <fweimer@redhat.com>
16914
16915 [BZ #22636]
16916 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
16917 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
16918
16919 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
16920
16921 * hurd/hurd/fd.h: Include <fcntl.h>
16922 (__hurd_at_flags): New function.
16923 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
16924 with call to __hurd_at_flags.
16925 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
16926 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
16927 __faccessat
16928 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
16929 (__access_noerrno): Use __faccessat_common instead of access_common.
16930 (__access): Likewise.
16931 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
16932 with a call to __faccessat.
16933 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
16934 (__faccessat_common): ... this. Move implementation of __access into it when
16935 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
16936 reauthenticate_cwdir_at helper to implement AT mechanism.
16937 (__faccessat_noerrno): New function, just calls __faccessat_common.
16938 (__faccessat): New function, just calls __faccessat_common.
16939 (faccessat): Define weak alias.
16940
16941 2018-01-10 Joseph Myers <joseph@codesourcery.com>
16942
16943 [BZ #22691]
16944 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16945 (CFLAGS-s_fmaxmagl.c): New variable.
16946 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
16947
16948 [BZ #22690]
16949 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
16950 long int for arguments of possibly overflowing addition or
16951 subtraction.
16952 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
16953
16954 2018-01-09 Joseph Myers <joseph@codesourcery.com>
16955
16956 [BZ #22688]
16957 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16958 (CFLAGS-e_remainderl.c): New variable.
16959
16960 [BZ #22687]
16961 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
16962 variable.
16963 (CFLAGS-s_cacoshl.c): Likewise.
16964 (CFLAGS-s_casinhl.c): Likewise.
16965 (CFLAGS-s_catanl.c): Likewise.
16966 (CFLAGS-s_catanhl.c): Likewise.
16967 (CFLAGS-s_cexpl.c): Likewise.
16968 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
16969 (CFLAGS-s_csinhl.c): Likewise.
16970 (CFLAGS-s_clogl.c): Likewise.
16971 (CFLAGS-s_clog10l.c): Likewise.
16972 (CFLAGS-s_csinl.c): Likewise.
16973 (CFLAGS-s_csqrtl.c): Likewise.
16974
16975 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
16976 2017-01-09 Svante Signell <svante.signell@gmail.com>
16977
16978 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
16979 (_hurd_exec_paths): New function.
16980 * hurd/hurd.h (_hurd_exec): Deprecate function.
16981 (_hurd_exec_paths): Declare function.
16982 * hurd/Versions: Export _hurd_exec_paths.
16983 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
16984 (__execve): Use __getcwd to build absolute path, and use
16985 _hurd_exec_paths instead of _hurd_exec.
16986 * sysdeps/mach/hurd/spawni.c: Likewise.
16987 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
16988 _hurd_exec.
16989
16990 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
16991
16992 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
16993 test instead of failing in case of ENOENT returned by posix_openpt.
16994
16995 2018-01-08 Florian Weimer <fweimer@redhat.com>
16996
16997 resolv: Support binary labels in test framework.
16998 * support/resolv_test.c (struct to_be_freed): Remove.
16999 (struct compressed_name): New.
17000 (allocate_compressed_name, ascii_tolower)
17001 (compare_compressed_name): New functions.
17002 (struct resolv_response_builder): Update type of
17003 compression_offsets for use with tsearch. Rempve to_be_freed.
17004 (response_push_pointer_to_free): Remove function.
17005 (resolv_response_add_name): Rewrite using struct compressed_name
17006 and tsearch instead of hsearch_r.
17007 (response_builder_allocate): Remove initialization of
17008 compression_offsets.
17009 (response_builder_free): Update for removal of to_be_freed. Use
17010 tdestroy instead of hdestroy_r.
17011 * resolv/Makefile (tests): Add tst-resolv-binary.
17012 (tst-resolv-binary): Link with -lresolv -lpthread.
17013
17014 2018-01-08 Florian Weimer <fweimer@redhat.com>
17015
17016 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17017 time. Pass positive flag instead of negative flag to
17018 support_test_compare_failure.
17019 (support_test_compare_failure): Change negative parameter to
17020 positive.
17021 * support/support_test_compare_failure.c (report)
17022 (support_test_compare_failure): Likewise.
17023 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17024 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17025
17026 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17027
17028 [BZ #22637]
17029 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17030 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17031 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17032 stacksize.
17033 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17034
17035 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17036
17037 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17038 Add s_sincosf-sse2 and s_sincosf-fma.
17039 (CFLAGS-s_sincosf-fma.c): New.
17040 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17041 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17042 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17043 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17044 __sincosf is defined.
17045
17046 2018-01-08 Florian Weimer <fweimer@redhat.com>
17047
17048 * nptl/tst-thread-exit-clobber.cc: New file.
17049 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17050 C++11 mode.
17051 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17052 (tests): Add tst-thread-exit-clobber.
17053 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17054
17055 2018-01-08 Florian Weimer <fweimer@redhat.com>
17056
17057 * support/check.h (support_static_assert): Define.
17058 (TEST_COMPARE): Use it.
17059
17060 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17061
17062 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17063 [!__RLIM_T_MATCHES_RLIM64_T]
17064 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17065 __getrlimit64. Add libc_hidden_weak.
17066
17067 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17068
17069 * elf/elf.h (R_RISCV_NONE): New define.
17070 (R_RISCV_32): Likewise.
17071 (R_RISCV_64): Likewise.
17072 (R_RISCV_RELATIVE): Likewise.
17073 (R_RISCV_COPY): Likewise.
17074 (R_RISCV_JUMP_SLOT): Likewise.
17075 (R_RISCV_TLS_DTPMOD32): Likewise.
17076 (R_RISCV_TLS_DTPMOD64): Likewise.
17077 (R_RISCV_TLS_DTPREL32): Likewise.
17078 (R_RISCV_TLS_DTPREL64): Likewise.
17079 (R_RISCV_TLS_TPREL32): Likewise.
17080 (R_RISCV_TLS_TPREL64): Likewise.
17081 * Makerules (make-link-multidir): Make directories before linking into
17082 them.
17083 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17084 define.
17085 (VDSO_HASH_LINUX_4_15): Likewise.
17086 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17087 in subdirectories of lib.
17088 * nptl/Makefile (/librt.so): Always depend on
17089 "$(shared-thread-library)".
17090
17091 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17092
17093 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17094 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17095 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17096 (___tls_get_addr).
17097 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17098 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17099 "-O2 -march=i686".
17100 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17101 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17102 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17103 * sysdeps/gnu/glob-lstat-compat.c: New file.
17104 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17105 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17106
17107 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17108
17109 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17110 Reserve 16 chars to reloc_addr before calling _itoa_word.
17111
17112 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17113
17114 [BZ #22678]
17115 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17116 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17117
17118 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17119 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17120
17121 * resource/tst-getrlimit.c: Add copyright header.
17122
17123 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17124 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17125
17126 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17127 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17128 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17129 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17130 instead.
17131 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17132 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17133 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17134 RLIM64_INFINITY): Fix values to match the kernel ones.
17135 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17136 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17137 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17138 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17139 getrlimit64@@GLIBC_2_27.
17140 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17141 and setrlimit64.
17142 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17143 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17144 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17145 setrlimit, getrlimit64 and setrlimit64.
17146
17147 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17148
17149 [BZ #22648]
17150 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17151 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17152
17153 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17154
17155 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17156 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17157 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17158
17159 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17160
17161 [BZ #15479]
17162 [BZ #22666]
17163 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17164 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17165
17166 [BZ #15479]
17167 [BZ #22665]
17168 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17169 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17170 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17171 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17172
17173 2018-01-04 Florian Weimer <fweimer@redhat.com>
17174
17175 [BZ #22667]
17176 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17177 Align the stack before calling exit.
17178 * stdlib/tst-makecontext-align.c: New file.
17179 * stdlib/Makefile (tests): Add tst-makecontext-align.
17180
17181 2018-01-04 Florian Weimer <fweimer@redhat.com>
17182
17183 Add support for calling dlvsym from libc.so.
17184 * include/dlfcn.h (__libc_dlvsym): Declare.
17185 * elf/Makefile (tests-static-internal): Add
17186 tst-libc_dlvsym-static.
17187 (tests-internal): Add tst-libc_dlvsym.
17188 (modules-names): Add tst-libc_dlvsym-dso.
17189 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17190 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17191 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17192 object tst-libc_dlvsym-dso.so needs to be built before running
17193 these tests.
17194 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17195 * elf/Versions: Export __libc_dlvsym.
17196 * elf/dl-libc.c (struct do_dlvsym_args): New.
17197 (do_dlvsym, __libc_dlvsym): New functions.
17198 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17199 (_dl_open_hook2): New variable.
17200 (__libc_register_dl_open_hook): Set it.
17201 * elf/tst-libc_dlvsym-dso.c: New file.
17202 * elf/tst-libc_dlvsym-static.c: Likewise.
17203 * elf/tst-libc_dlvsym.c: Likewise.
17204 * elf/tst-libc_dlvsym.h: Likewise.
17205
17206 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17207
17208 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17209 include <sys/mount.h>.
17210
17211 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17212
17213 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17214 Add __NO_MATH_ERRNO__ check.
17215
17216 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17217
17218 * sysdeps/mips/mips32/libm-test-ulps: Update.
17219 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17220
17221 2018-01-02 Florian Weimer <fweimer@redhat.com>
17222
17223 * misc/tst-pselect.c: Add copyright header.
17224
17225 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17226
17227 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17228 comment.
17229 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17230 comment.
17231 (settrlimit): Rename into setrlimit.
17232 (__sttrlimit): Rename into __setrlimit.
17233
17234 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17235 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17236 never defined in that case.
17237
17238 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17239
17240 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17241
17242 * sysdeps/arm/libm-test-ulps: Update.
17243
17244 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17245 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17246
17247 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17248
17249 * NEWS: Add cosf and sincosf to list of optimized functions.
17250
17251 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17252
17253 [BZ #22660]
17254 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17255 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17256 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17257 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17258
17259 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17260
17261 [BZ #22433]
17262 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17263
17264 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17265 making a copy of it.
17266
17267 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17268
17269 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17270 trailing whitespace removed.
17271 * scripts/config.guess: Update to version 2018-01-01.
17272 * scripts/config.sub: Update to version 2018-01-01.
17273 * scripts/move-if-change: Update from gnulib.
17274
17275 * NEWS: Update copyright dates.
17276 * catgets/gencat.c (print_version): Likewise.
17277 * csu/version.c (banner): Likewise.
17278 * debug/catchsegv.sh: Likewise.
17279 * debug/pcprofiledump.c (print_version): Likewise.
17280 * debug/xtrace.sh (do_version): Likewise.
17281 * elf/ldconfig.c (print_version): Likewise.
17282 * elf/ldd.bash.in: Likewise.
17283 * elf/pldd.c (print_version): Likewise.
17284 * elf/sotruss.sh: Likewise.
17285 * elf/sprof.c (print_version): Likewise.
17286 * iconv/iconv_prog.c (print_version): Likewise.
17287 * iconv/iconvconfig.c (print_version): Likewise.
17288 * locale/programs/locale.c (print_version): Likewise.
17289 * locale/programs/localedef.c (print_version): Likewise.
17290 * login/programs/pt_chown.c (print_version): Likewise.
17291 * malloc/memusage.sh (do_version): Likewise.
17292 * malloc/memusagestat.c (print_version): Likewise.
17293 * malloc/mtrace.pl: Likewise.
17294 * manual/libc.texinfo: Likewise.
17295 * nptl/version.c (banner): Likewise.
17296 * nscd/nscd.c (print_version): Likewise.
17297 * nss/getent.c (print_version): Likewise.
17298 * nss/makedb.c (print_version): Likewise.
17299 * posix/getconf.c (main): Likewise.
17300 * scripts/test-installation.pl: Likewise.
17301 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17302
17303 * All files with FSF copyright notices: Update copyright dates
17304 using scripts/update-copyrights.
17305 * locale/programs/charmap-kw.h: Regenerated.
17306 * locale/programs/locfile-kw.h: Likewise.
17307
17308 2017-12-31 Zack Weinberg <zackw@panix.com>
17309
17310 * libio/bits/libio-ldbl.h: Correct check for improper
17311 inclusion. Add own multiple include guard.
17312
17313 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17314 Dmitry V. Levin <ldv@altlinux.org>
17315
17316 [BZ #22625]
17317 CVE-2017-16997
17318 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17319 string token expansion. Check for NULL pointer or empty string possibly
17320 returned by expand_dynamic_string_token.
17321 (decompose_rpath): Check for empty path after dynamic string
17322 token expansion.
17323
17324 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17325
17326 [BZ #22433]
17327 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17328
17329 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17330 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17331 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17332 and PTRACE_SYSCALL.
17333 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17334 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17335 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17336 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17337 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17338 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17339
17340 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17341 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17342 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17343 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17344 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17345 bits/ptrace-shared.h.
17346 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17347 <bits/ptrace-shared.h>.
17348 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17349 __ptrace_peeksiginfo_flags, ptrace): Remove.
17350 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17351 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17352 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17353 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17354 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17355
17356 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17357
17358 [BZ #17804]
17359 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17360 end of the loop. Improve comments.
17361
17362 2017-12-29 Zack Weinberg <zackw@panix.com>
17363
17364 [BZ #22615]
17365 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17366 might be set on success.
17367
17368 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17369
17370 [BZ #22611]
17371 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17372 is unchanged on success.
17373
17374 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17375
17376 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17377 updated.
17378 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17379 expand_dynamic_string_token): Likewise.
17380 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17381 is_path argument.
17382
17383 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17384 contains ':'.
17385
17386 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17387 is set and name contains ':', and all code depending on these checks.
17388
17389 2017-12-24 Zack Weinberg <zackw@panix.com>
17390
17391 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17392 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17393 respectively.
17394 * libio/libio.h: Rename the original version of this file to
17395 libio/bits/libio.h. Error out if not included by stdio.h or the
17396 stub libio.h.
17397 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17398 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17399 if not included by bits/libio.h or the stub _G_config.h.
17400 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17401 sysdeps/unix/sysv/linux/bits. Error out if not included by
17402 bits/libio.h or the stub _G_config.h.
17403 * libio/stdio.h: Include bits/libio.h, not libio.h.
17404 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17405 well as libio.h and _G_config.h.
17406
17407 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
17408 * libio/strfile.h, stdio-common/vfscanf.c
17409 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
17410 Include stdio.h, not _G_config.h nor libio.h.
17411 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
17412 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
17413
17414 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
17415
17416 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
17417
17418 [BZ #22347]
17419 * stdlib/getrandom.c (getrandom): Fix comment.
17420 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
17421
17422 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
17423
17424 [BZ #21161]
17425 * manual/arith.texi (strtoul): Fix a typo.
17426
17427 [BZ #22596]
17428 * manual/arith.texi (finite): Fix the description of the return
17429 value.
17430
17431 2017-12-22 Eric Blake <ebb9@byu.net>
17432
17433 Avoid gcc warnings on cygwin
17434 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
17435 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
17436 Avoid unused variable.
17437
17438 2017-12-22 Florian Weimer <fweimer@redhat.com>
17439
17440 * io/Makefile (routines): Add copy_file_range.
17441 (tests): Add tst-copy_file_range.
17442 (tests-static, tests-internal): Add tst-copy_file_range-compat.
17443 * io/Versions (GLIBC_2.27): Export copy_file_range.
17444 * io/copy_file_range-compat.c: New file.
17445 * io/copy_file_range.c: Likewise.
17446 * io/tst-copy_file_range-compat.c: Likewise.
17447 * io/tst-copy_file_range.c: Likewise.
17448 * manual/llio.texi (Copying File Data): New section.
17449 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
17450 * support/Makefile (libsupport-routines): Add support-xfstat,
17451 xftruncate, xlseek.
17452 * support/support-xfstat.c: New file.
17453 * support/xftruncate.c: Likewise.
17454 * support/xlseek.c: Likewise.
17455 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
17456 * sysdeps/unix/sysv/linux/**.abilist: Update.
17457 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
17458
17459 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
17460
17461 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17462 disable-multi-arch variant to aarch64-linux-gnu.
17463
17464 2017-12-20 Joseph Myers <joseph@codesourcery.com>
17465
17466 * manual/texinfo.tex: Update to version 2017-12-18.20 with
17467 trailing whitespace removed.
17468 * scripts/config.guess: Update to version 2017-12-17.
17469 * scripts/config.sub: Update to version 2017-11-23.
17470 * scripts/install-sh: Update to version 2017-09-23.17.
17471 * scripts/move-if-change: Update to version 2017-09-13 06:45.
17472
17473 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17474
17475 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
17476 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17477 * sysdeps/tile/_mcount.S (__mcount): Likewise.
17478 * sysdeps/tile/crti.S (_init, _fini): Likewise.
17479 * sysdeps/tile/crtn.S: Likewise.
17480 * sysdeps/tile/dl-start.S (_start): Likewise.
17481 * sysdeps/tile/dl-trampoline.S: Likewise.
17482 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
17483 * sysdeps/tile/start.S (_start): Likewise.
17484 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
17485 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
17486 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
17487 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
17488 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
17489 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
17490 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
17491
17492 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
17493 comment.
17494 * sysdeps/tile/preconfigure: Remove tilegx folder.
17495 * sysdeps/tile/tilegx/Implies: Move definitions to ...
17496 * sysdeps/tile/Implies: ... here.
17497 * sysdeps/tile/tilegx/Makefile: Move rules to ...
17498 * sysdeps/tile/Makefile: ... here.
17499 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
17500 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
17501 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
17502 * sysdeps/tile/bits/wordsize.h: ... here.
17503 * sysdeps/tile/tilegx/*: Move to ...
17504 * sysdeps/tile/*: ... here.
17505 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
17506 * sysdeps/tile/tilegx32/Implies: ... here.
17507 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
17508 * sysdeps/tile/tilegx64/Implies: ... here.
17509 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
17510 to ...
17511 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
17512 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
17513 * sysdeps/unix/sysv/linux/tile/*: ... here.
17514 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
17515 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
17516 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
17517 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
17518
17519 * README: Remove tilepro-*-linux-gnu from supported architecture.
17520 * scripts/build-many-glibcs.py: Likewise.
17521 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
17522 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
17523 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
17524 elf_machine_matches_host, elf_machine_dynamic,
17525 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
17526 howto, elf_machine_rela): Likewise.
17527 * sysdeps/tile/dl-start.S (_start): Likewise.
17528 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
17529 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
17530 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
17531 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
17532 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
17533 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
17534 Likewise.
17535 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
17536 * sysdeps/tile/preconfigure: Likewise.
17537 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
17538 POINTER_CHK_GUARD): Likewise.
17539 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
17540 * sysdeps/tile/start.S (_start): Likewise.
17541 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
17542 Likewise.
17543 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
17544 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
17545 CMOVNEZ): Remove.
17546 * sysdeps/unix/sysv/linux/tile/bits/environments.h
17547 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
17548 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
17549 Likewise.
17550 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
17551 * sysdeps/tile/tilepro/Implies: Remove file.
17552 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
17553 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
17554 * sysdeps/tile/tilepro/memchr.c: Likewise.
17555 * sysdeps/tile/tilepro/memcpy.S: Likewise.
17556 * sysdeps/tile/tilepro/memset.c: Likewise.
17557 * sysdeps/tile/tilepro/memusage.h: Likewise.
17558 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
17559 * sysdeps/tile/tilepro/strchr.c: Likewise.
17560 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
17561 * sysdeps/tile/tilepro/strlen.c: Likewise.
17562 * sysdeps/tile/tilepro/strrchr.c: Likewise.
17563 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
17564 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
17565 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
17566 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
17567 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
17568 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
17569 Likewise.
17570 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
17571 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
17572 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
17573 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
17574 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
17575 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
17576 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
17577 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
17578 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
17579 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
17580 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
17581 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
17582 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
17583 tilepro mention in comment.
17584
17585 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
17586 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
17587 * nptl/pthread_join_common.c: New file: common function used on
17588 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
17589 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
17590 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
17591 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
17592 (cleanup): Move definition to pthread_join_common.c.
17593 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
17594 Remove superflous checks.
17595 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
17596 Likewise.
17597
17598 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
17599
17600 * sysdeps/aarch64/libm-test-ulps: Update.
17601
17602 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17603
17604 * sysdeps/aarch64/memset.S (MEMSET): Define.
17605
17606 2017-12-20 Florian Weimer <fweimer@redhat.com>
17607
17608 [BZ #22635]
17609 nptl: Provide full implementation of pthread_self in libc.so.
17610 * nptl/Makefile (routines): Add pthread_self.
17611 (libpthread-routines): Replace pthread_self with
17612 compat-pthread_self.
17613 * nptl/forward.c (pthread_self): Remove.
17614 * nptl/nptl-init.c (pthread_functions): Do not initialize
17615 ptr_pthread_self.
17616 * nptl/pthread_self.c (pthread_self): Remove weak alias.
17617 * nptl/compat-pthread_self.c: New file.
17618 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
17619 Remove ptr_pthread_self.
17620
17621 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
17622
17623 * posix/regcomp.c: Fix spelling in comments.
17624 * posix/regex.h: Likewise.
17625 * posix/regex_internal.c: Likewise.
17626 * posix/regexec.c: Likewise.
17627
17628 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17629
17630 [BZ #22377]
17631 * math/Makefile [C++] (tests): Add test for iseqsig.
17632 * math/math.h [C++] (iseqsig): New implementation, which does
17633 not rely on __MATH_TG/__builtin_types_compatible_p.
17634 * math/test-math-iseqsig.cc: New file.
17635 * sysdeps/powerpc/powerpc64le/Makefile
17636 (CFLAGS-test-math-iseqsig.cc): New variable.
17637
17638 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
17639
17640 * elf/dl-load.c (is_trusted_path): Remove.
17641 (fillin_rpath): Remove check_trusted argument and its use,
17642 all callers changed.
17643
17644 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17645
17646 [BZ #22630]
17647 * Makeconfig (link-pie-before-libc): Replace -pie with
17648 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
17649 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
17650 (tst-dlopen-aout-no-pie): New.
17651 (LDFLAGS-tst-prelink): Removed.
17652 (tst-prelink-no-pie): New.
17653 (LDFLAGS-tst-main1): Removed.
17654 (tst-main1-no-pie): New.
17655 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
17656 (tst-gmon-no-pie): New.
17657
17658 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17659
17660 * manual/install.texi: Document that --enable-static-pie
17661 implies PIE.
17662 * INSTALL: Regenerated.
17663
17664 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17665
17666 [BZ #21309]
17667 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
17668 unsigned.
17669
17670 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17671
17672 Revert:
17673
17674 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17675
17676 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17677
17678 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17679
17680 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17681 <errno.h>. Include "eexp.tbl".
17682 (half): New constant.
17683 (one): Likewise.
17684 (__ieee754_exp): Rewrite.
17685 (__slowexp): Remove prototype.
17686 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17687 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17688 * sysdeps/i386/fpu/slowexp.c: Likewise.
17689 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17690 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17691 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17692 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17693 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17694 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17695 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17696 comment.
17697 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17698 (CPPFLAGS-slowexp.c): Remove variable.
17699 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17700 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17701 (CFLAGS-slowexp-fma.c): Remove variable.
17702 (CFLAGS-slowexp-fma4.c): Likewise.
17703 (CFLAGS-slowexp-avx.c): Likewise.
17704 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17705 define as macro.
17706 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17707 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17708 * math/Makefile (type-double-routines): Remove slowexp.
17709 * manual/probes.texi (slowexp_p6): Remove.
17710 (slowexp_p32): Likewise.
17711
17712 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17713
17714 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17715 arithmetic.
17716
17717 * lib/glob.c (glob): Do not pass NULL to mempcpy.
17718
17719 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17720
17721 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17722
17723 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17724
17725 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
17726 <errno.h>. Include "eexp.tbl".
17727 (half): New constant.
17728 (one): Likewise.
17729 (__ieee754_exp): Rewrite.
17730 (__slowexp): Remove prototype.
17731 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
17732 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
17733 * sysdeps/i386/fpu/slowexp.c: Likewise.
17734 * sysdeps/ia64/fpu/slowexp.c: Likewise.
17735 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
17736 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
17737 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
17738 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
17739 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
17740 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
17741 comment.
17742 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
17743 (CPPFLAGS-slowexp.c): Remove variable.
17744 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17745 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
17746 (CFLAGS-slowexp-fma.c): Remove variable.
17747 (CFLAGS-slowexp-fma4.c): Likewise.
17748 (CFLAGS-slowexp-avx.c): Likewise.
17749 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
17750 define as macro.
17751 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
17752 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
17753 * math/Makefile (type-double-routines): Remove slowexp.
17754 * manual/probes.texi (slowexp_p6): Remove.
17755 (slowexp_p32): Likewise.
17756
17757 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17758 James Clarke <jrtc27@jrtc27.com>
17759
17760 [BZ #22603]
17761 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
17762 addition.
17763
17764 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17765
17766 [BZ #22605]
17767 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
17768 code.
17769
17770 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17771
17772 [BZ #22563]
17773 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17774 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17775 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17776 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17777 to feature_1.
17778
17779 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17780
17781 [BZ #22563]
17782 * bits/types/__cancel_jmp_buf_tag.h: New file.
17783 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17784 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17785 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17786 * nptl/Makefile (headers): Add
17787 bits/types/__cancel_jmp_buf_tag.h.
17788 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17789 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17790 * sysdeps/nptl/pthread.h: Include
17791 <bits/types/__cancel_jmp_buf_tag.h>.
17792 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17793 __cancel_jmp_buf.
17794 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17795
17796 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17797
17798 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17799 --enable-static-pie variants to x86_64, x32 and i686.
17800
17801 2017-12-19 Joseph Myers <joseph@codesourcery.com>
17802
17803 [BZ #22631]
17804 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
17805 argument for attrubutes. All callers changed.
17806 (__inline_mathop1): Likewise. All callers changed.
17807 (__inline_mathop): Likewise. All callers changed.
17808 [__USE_MISC] (scalbn): Use __inline_forward instead of
17809 __inline_forward_c.
17810 [__USE_ISOC99] (scalbln): Likewise.
17811 [__USE_ISOC99] (nearbyint): Likewise.
17812 [__USE_ISOC99] (lrint): Likewise.
17813 [__USE_MISC] (scalbnf): Likewise.
17814 [__USE_ISOC99] (scalblnf): Likewise.
17815 [__USE_ISOC99] (nearbyintf): Likewise.
17816 [__USE_ISOC99] (lrintf): Likewise.
17817 [__USE_MISC] (scalbnl): Likewise.
17818 [__USE_ISOC99] (scalblnl): Likewise.
17819 [__USE_ISOC99] (nearbyintl): Likewise.
17820 [__USE_ISOC99] (lrintl): Likewise.
17821 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
17822 __inline_mathop and __m81_defun changed.
17823
17824 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
17825 CPU or FPU for ARM hard-float configurations.
17826
17827 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17828
17829 * nptl/tst-attr3.c: Include <libc-diag.h>.
17830 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
17831
17832 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
17833
17834 * string/tester.c (test_strncat): Also disable -Warray-bounds
17835 warnings for two tests.
17836
17837 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
17838
17839 [BZ #22614]
17840 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
17841 $(cc-pie-default) == yes.
17842 * config.make.in (cc-pie-default): New.
17843 * configure.ac (libc_cv_pie_default): Renamed to ...
17844 (libc_cv_cc_pie_default): This.
17845 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
17846 * configure: Regenerated.
17847
17848 2017-12-18 Florian Weimer <fweimer@redhat.com>
17849
17850 [BZ #20204]
17851 ld.so: Harden dl-libc/libdl hooks.
17852 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
17853 (rtld_active): New function.
17854 * dlfcn/dladdr.c (__dladdr): Call it.
17855 * dlfcn/dladdr1.c (__dladdr1): Likewise.
17856 * dlfcn/dlclose.c (__dlcose): Likewise.
17857 * dlfcn/dlerror.c (__dlerror): Likewise.
17858 * dlfcn/dlinfo.c (__dlinfo): Likewise.
17859 * dlfcn/dlmopen.c (__dlmopen): Likewise.
17860 * dlfcn/dlopen.c (__dlopen): Likewise.
17861 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
17862 * dlfcn/dlsym.c (__dlsym): Likewise.
17863 * dlfcn/dlvsym.c (__dlvsym): Likewise.
17864 * libio/vtables.c (_IO_vtable_check): Likewise.
17865 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
17866 (__libc_dlclose): Likewise.
17867 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
17868 assignment.
17869
17870 2017-12-18 Joseph Myers <joseph@codesourcery.com>
17871
17872 [BZ #22446]
17873 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
17874 buffers for readlink input and output.
17875
17876 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
17877
17878 [BZ #22624]
17879 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
17880 inhibit_stack_protector.
17881
17882 [BZ #22624]
17883 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
17884 inhibit_stack_protector.
17885
17886 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
17887
17888 [BZ #22627]
17889 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
17890 code and invocation.
17891
17892 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
17893
17894 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
17895
17896 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
17897
17898 [BZ #22505]
17899 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
17900
17901 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17902
17903 * sysdeps/s390/fpu/libm-test-ulps: Update.
17904
17905 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17906
17907 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17908
17909 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17910
17911 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
17912 constants to s_sincosf.h file.
17913 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17914 * sysdeps/ieee754/flt-32/s_sincosf.c: New
17915 implementation.
17916 * sysdeps/ieee754/flt-32/s_sincosf.h:
17917 New file.
17918
17919 2017-12-12 Carlos O'Donell <carlos@redhat.com>
17920
17921 [BZ #14681]
17922 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
17923 before mtrace.
17924
17925 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
17926
17927 [BZ #19574]
17928 * INSTALL: Regenerated.
17929 * Makeconfig (real-static-start-installed-name): New.
17930 (pic-default): Updated for --enable-static-pie.
17931 (pie-default): New for --enable-static-pie.
17932 (default-pie-ldflag): Likewise.
17933 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
17934 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
17935 Replace $(static-start-installed-name) with
17936 $(real-static-start-installed-name).
17937 (+prectorT): Updated for --enable-static-pie.
17938 (+postctorT): Likewise.
17939 (CFLAGS-.o): Add $(pie-default).
17940 (CFLAGS-.op): Likewise.
17941 * NEWS: Mention --enable-static-pie.
17942 * config.h.in (ENABLE_STATIC_PIE): New.
17943 * configure.ac (--enable-static-pie): New configure option.
17944 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
17945 (have-static-pie): Likewise.
17946 Enable static PIE if linker supports --no-dynamic-linker.
17947 (ENABLE_STATIC_PIE): New AC_DEFINE.
17948 (enable-static-pie): New LIBC_CONFIG_VAR.
17949 * configure: Regenerated.
17950 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
17951 gr$(start-installed-name) for --enable-static-pie.
17952 (extra-objs): Likewise.
17953 (install-lib): Likewise.
17954 (extra-objs): Add static-reloc.o and static-reloc.os
17955 ($(objpfx)$(start-installed-name)): Also depend on
17956 $(objpfx)static-reloc.o.
17957 ($(objpfx)r$(start-installed-name)): New.
17958 ($(objpfx)g$(start-installed-name)): Also depend on
17959 $(objpfx)static-reloc.os.
17960 ($(objpfx)gr$(start-installed-name)): New.
17961 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
17962 in libc.a.
17963 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
17964 initimage.
17965 * csu/static-reloc.c: New file.
17966 * elf/Makefile (routines): Add dl-reloc-static-pie.
17967 (elide-routines.os): Likewise.
17968 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
17969 (tst-tls1-static-non-pie-no-pie): New.
17970 * elf/dl-reloc-static-pie.c: New file.
17971 * elf/dl-support.c (_dl_get_dl_main_map): New function.
17972 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
17973 STATIC_PIE_BOOTSTRAP.
17974 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
17975 * gmon/Makefile (tests): Add tst-gmon-static-pie.
17976 (tests-static): Likewise.
17977 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
17978 (tst-gmon-static-no-pie): New.
17979 (CFLAGS-tst-gmon-static-pie.c): Likewise.
17980 (CRT-tst-gmon-static-pie): Likewise.
17981 (tst-gmon-static-pie-ENV): Likewise.
17982 (tests-special): Likewise.
17983 ($(objpfx)tst-gmon-static-pie.out): Likewise.
17984 (clean-tst-gmon-static-pie-data): Likewise.
17985 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
17986 * gmon/tst-gmon-static-pie.c: New file.
17987 * manual/install.texi: Document --enable-static-pie.
17988 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
17989 (_dl_get_dl_main_map): Likewise.
17990 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
17991 * sysdeps/x86_64/configure.ac: Likewise.
17992 * sysdeps/i386/configure: Regenerated.
17993 * sysdeps/x86_64/configure: Likewise.
17994 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
17995 (ASFLAGS-.op): Likewise.
17996
17997 2017-12-15 Joseph Myers <joseph@codesourcery.com>
17998
17999 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18000 * posix/tst-mmap-offset.c (fname): Use /tmp.
18001 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18002
18003 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18004
18005 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18006
18007 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18008
18009 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18010 errno.
18011
18012 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18013
18014 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18015 --with-float=hard for arm-linux-gnueabihf configurations.
18016
18017 [BZ #14121]
18018 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18019 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18020 ($(mo-installed)): Use $(objpfx)%.mo.
18021 (realclean): Remove rule.
18022
18023 * po/Makefile (linguas): Remove rule and dependencies.
18024 (linguas.mo): Likewise.
18025 (.PHONY): Do not depend on linguas and linguas.mo.
18026 (podir): Remove variable.
18027 (pofiles): Likewise.
18028 [$(pofiles)] (%.po): Remove rule.
18029
18030 * sysdeps/sparc/sparc32/Makefile
18031 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18032 start-of-line whitespace in argument of echo.
18033 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18034 with whitespace. Generate __wrap_.udiv alias.
18035 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18036 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18037 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18038 * sysdeps/sparc/sparc32/urem.S: Likewise.
18039
18040 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18041
18042 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18043 for aligned inputs.
18044
18045 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18046
18047 * benchtests/bench-strcmp.c: Print output in JSON format.
18048
18049 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18050
18051 2017-12-14 Florian Weimer <fweimer@redhat.com>
18052
18053 [BZ #22607]
18054 CVE-2017-1000409
18055 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18056 the expanded path string.
18057
18058 2017-12-14 Florian Weimer <fweimer@redhat.com>
18059
18060 [BZ #22606]
18061 CVE-2017-1000408
18062 * elf/dl-load.c (system_dirs): Update comment.
18063 (nsystem_dirs_len): Use array_length.
18064 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18065
18066 2017-12-14 Florian Weimer <fweimer@redhat.com>
18067
18068 Simplify compiling most of support/ outside of glibc.
18069 * support/check_addrinfo.c: Include <string.h>.
18070 * support/check_dns_packet.c: Likewise.
18071 * support/check_hostent.c: Likewise.
18072 * support/support_can_chroot.c: Include <support/xunistd.h>.
18073 * support/support_format_addrinfo.c: Include <stdlib.h>
18074 * support/support_format_dns_packet.c: Include <stdbool.h>.
18075 * support/support_format_hostent.c: Include <stdlib.h>.
18076 * support/support_format_netent.c: Likewise.
18077 * support/support_write_string.c: Include <support/xunistd.h>.
18078 * support/xdlfcn.c: Include <stddef.h>.
18079
18080 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18081
18082 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18083
18084 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18085 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18086
18087 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18088 (sysdeps_routines): Add memset-niagara7.
18089 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18090 Likewise.
18091 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18092 file.
18093 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18094 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18095 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18096 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18097 Add niagara7 option.
18098 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18099 memset.
18100
18101 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18102 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18103 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18104 Likewise.
18105 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18106 New file.
18107 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18108 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18109 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18110 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18111 and __memmove_niagara7.
18112 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18113 Add niagara7 option.
18114 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18115 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18116 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18117 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18118 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18119
18120 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18121
18122 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18123 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18124 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18125 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18126
18127 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18128 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18129 _dl_sparc_cap_flags array.
18130 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18131
18132 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18133
18134 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18135 time whenever possible.
18136
18137 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18138
18139 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18140 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18141
18142 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18143
18144 * soft-fp/fmadf4.c: Move to ....
18145 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18146 * soft-fp/fmasf4.c: Move to ....
18147 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18148 * soft-fp/fmatf4.c: Move to ....
18149 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18150 * sysdeps/ieee754/soft-fp/Makefile: New file.
18151 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18152 * sysdeps/arm/preconfigure: Regenerated.
18153 * sysdeps/arm/nofpu/Implies: New file.
18154 * sysdeps/arm/s_fma.c: Remove file.
18155 * sysdeps/arm/s_fmaf.c: Likewise.
18156 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18157 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18158 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18159 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18160 * sysdeps/microblaze/s_fma.c: Remove file.
18161 * sysdeps/microblaze/s_fmaf.c: Likewise.
18162 * sysdeps/mips/mips32/nofpu/Implies: New file.
18163 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18164 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18165 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18166 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18167 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18168 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18169 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18170 implementation.
18171 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18172 * sysdeps/nios2/s_fma.c: Remove file.
18173 * sysdeps/nios2/s_fmaf.c: Likewise.
18174 * sysdeps/sh/nofpu/Implies: New file.
18175 * sysdeps/sh/s_fma.c: Remove file.
18176 * sysdeps/sh/s_fmaf.c: Likewise.
18177 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18178 * sysdeps/tile/s_fma.c: Remove file.
18179 * sysdeps/tile/s_fmaf.c: Likewise.
18180
18181 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18182
18183 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18184 Add s_cosf-sse2 and s_cosf-fma.
18185 (CFLAGS-s_cosf-fma.c): New.
18186 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18187 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18188 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18189
18190 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18191
18192 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18193
18194 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18195
18196 * libio/Makefile (tests): Add tst-bz22415.
18197 (tst-bz22415-ENV): New rule.
18198 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18199 (tests-special): Add tst-bz22415-mem.out.
18200 ($(objpfx)tst-bz22415-mem.out): New rule.
18201 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18202 in case of a successful seek operation.
18203 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18204 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18205 buffer is required.
18206 * libio/tst-bz22415.c: New test.
18207
18208 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18209
18210 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18211
18212 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18213 __IPC_64 to 0 to avoid IPC_64 being set.
18214
18215 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18216
18217 [BZ #22593]
18218 * math/bits/mathcalls.h (nextafter): Remove const.
18219 (nexttoward): Likewise.
18220
18221 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18222
18223 * configure.ac (--with-fp): Remove configure option.
18224 (with_fp_cond): New variable.
18225 (libc_cv_with_fp): New configure test. Use this variable instead
18226 of with_fp.
18227 * configure: Regenerated.
18228 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18229 * manual/install.texi (Configuring and compiling): Remove
18230 --without-fp.
18231 * INSTALL: Regenerated.
18232 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18233 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18234 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18235 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18236 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18237 use --without-fp to configure glibc.
18238
18239 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18240
18241 * manual/locale.texi (nl_langinfo): Fix a typo.
18242
18243 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18244
18245 [BZ #22588]
18246 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18247
18248 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18249
18250 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18251 (CFLAGS-argp-parse.c): Likewise.
18252 (CFLAGS-argp-fmtstream.c): Likewise.
18253 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18254 (CPPFLAGS-sha512-crypt.c): Likewise.
18255 (CPPFLAGS-md5-crypt.c): Likewise.
18256 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18257 (CFLAGS-stack_chk_fail_local.c): Likewise.
18258 (CFLAGS-backtrace.c): Likewise.
18259 (CFLAGS-sprintf_chk.c): Likewise.
18260 (CFLAGS-snprintf_chk.c): Likewise.
18261 (CFLAGS-vsprintf_chk.c): Likewise.
18262 (CFLAGS-vsnprintf_chk.c): Likewise.
18263 (CFLAGS-asprintf_chk.c): Likewise.
18264 (CFLAGS-vasprintf_chk.c): Likewise.
18265 (CFLAGS-obprintf_chk.c): Likewise.
18266 (CFLAGS-dprintf_chk.c): Likewise.
18267 (CFLAGS-vdprintf_chk.c): Likewise.
18268 (CFLAGS-printf_chk.c): Likewise.
18269 (CFLAGS-fprintf_chk.c): Likewise.
18270 (CFLAGS-vprintf_chk.c): Likewise.
18271 (CFLAGS-vfprintf_chk.c): Likewise.
18272 (CFLAGS-gets_chk.c): Likewise.
18273 (CFLAGS-fgets_chk.c): Likewise.
18274 (CFLAGS-fgets_u_chk.c): Likewise.
18275 (CFLAGS-fread_chk.c): Likewise.
18276 (CFLAGS-fread_u_chk.c): Likewise.
18277 (CFLAGS-swprintf_chk.c): Likewise.
18278 (CFLAGS-vswprintf_chk.c): Likewise.
18279 (CFLAGS-wprintf_chk.c): Likewise.
18280 (CFLAGS-fwprintf_chk.c): Likewise.
18281 (CFLAGS-vwprintf_chk.c): Likewise.
18282 (CFLAGS-vfwprintf_chk.c): Likewise.
18283 (CFLAGS-fgetws_chk.c): Likewise.
18284 (CFLAGS-fgetws_u_chk.c): Likewise.
18285 (CFLAGS-read_chk.c): Likewise.
18286 (CFLAGS-pread_chk.c): Likewise.
18287 (CFLAGS-pread64_chk.c): Likewise.
18288 (CFLAGS-recv_chk.c): Likewise.
18289 (CFLAGS-recvfrom_chk.c): Likewise.
18290 (CFLAGS-tst-longjmp_chk.c): Likewise.
18291 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18292 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18293 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18294 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18295 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18296 (CFLAGS-tst-chk1.c): Likewise.
18297 (CFLAGS-tst-chk2.c): Likewise.
18298 (CFLAGS-tst-chk3.c): Likewise.
18299 (CFLAGS-tst-chk4.cc): Likewise.
18300 (CFLAGS-tst-chk5.cc): Likewise.
18301 (CFLAGS-tst-chk6.cc): Likewise.
18302 (CFLAGS-tst-lfschk1.c): Likewise.
18303 (CFLAGS-tst-lfschk2.c): Likewise.
18304 (CFLAGS-tst-lfschk3.c): Likewise.
18305 (CFLAGS-tst-lfschk4.cc): Likewise.
18306 (CFLAGS-tst-lfschk5.cc): Likewise.
18307 (CFLAGS-tst-lfschk6.cc): Likewise.
18308 (CFLAGS-tst-ssp-1.c): Likewise.
18309 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18310 (CFLAGS-scandir64.c): Likewise.
18311 (CFLAGS-scandir-tail.c): Likewise.
18312 (CFLAGS-scandir64-tail.c): Likewise.
18313 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18314 (CFLAGS-dl-tunables.c): Likewise.
18315 (CFLAGS-dl-runtime.c): Likewise.
18316 (CFLAGS-dl-lookup.c): Likewise.
18317 (CFLAGS-dl-iterate-phdr.c): Likewise.
18318 (CFLAGS-vismain.c): Likewise.
18319 (CFLAGS-tst-linkall-static.c): Likewise.
18320 (CFLAGS-tst-linkall-static.c): Likewise.
18321 (CPPFLAGS-dl-load.c): Likewise.
18322 (CFLAGS-ldconfig.c): Likewise.
18323 (CFLAGS-dl-cache.c): Likewise.
18324 (CFLAGS-cache.c): Likewise.
18325 (CFLAGS-rtld.c): Likewise.
18326 (CFLAGS-multiload.c): Likewise.
18327 (CFLAGS-filtmod1.c): Likewise.
18328 (CFLAGS-tst-align.c): Likewise.
18329 (CFLAGS-tst-align2.c): Likewise.
18330 (CFLAGS-tst-alignmod.c): Likewise.
18331 (CFLAGS-tst-alignmod2.c): Likewise.
18332 (CPPFLAGS-tst-execstack.c): Likewise.
18333 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18334 (CFLAGS-tst-latepthreadmod.c): Likewise.
18335 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18336 (CFLAGS-getgrnam_r.c): Likewise.
18337 (CFLAGS-getgrent_r.c): Likewise.
18338 (CFLAGS-getgrent.c): Likewise.
18339 (CFLAGS-fgetgrent.c): Likewise.
18340 (CFLAGS-fgetgrent_r.c): Likewise.
18341 (CFLAGS-putgrent.c): Likewise.
18342 (CFLAGS-initgroups.c): Likewise.
18343 (CFLAGS-getgrgid.c): Likewise.
18344 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18345 (CFLAGS-getsgent.c): Likewise.
18346 (CFLAGS-fgetsgent.c): Likewise.
18347 (CFLAGS-fgetsgent_r.c): Likewise.
18348 (CFLAGS-putsgent.c): Likewise.
18349 (CFLAGS-getsgnam.c): Likewise.
18350 (CFLAGS-getsgnam_r.c): Likewise.
18351 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18352 (CFLAGS-iconv_charmap.c): Likewise.
18353 (CFLAGS-dummy-repertoire.c): Likewise.
18354 (CFLAGS-charmap.c): Likewise.
18355 (CFLAGS-linereader.c): Likewise.
18356 (CFLAGS-simple-hash.c): Likewise.
18357 (CFLAGS-gconv_conf.c): Likewise.
18358 (CFLAGS-iconvconfig.c): Likewise.
18359 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18360 (CFLAGS-gethstbyad.c): Likewise.
18361 (CFLAGS-gethstbynm_r.c): Likewise.
18362 (CFLAGS-gethstbynm.c): Likewise.
18363 (CFLAGS-gethstbynm2_r.c): Likewise.
18364 (CFLAGS-gethstbynm2.c): Likewise.
18365 (CFLAGS-gethstent_r.c): Likewise.
18366 (CFLAGS-gethstent.c): Likewise.
18367 (CFLAGS-rcmd.c): Likewise.
18368 (CFLAGS-getnetbynm_r.c): Likewise.
18369 (CFLAGS-getnetbynm.c): Likewise.
18370 (CFLAGS-getnetbyad_r.c): Likewise.
18371 (CFLAGS-getnetbyad.c): Likewise.
18372 (CFLAGS-getnetent_r.c): Likewise.
18373 (CFLAGS-getnetent.c): Likewise.
18374 (CFLAGS-getaliasent_r.c): Likewise.
18375 (CFLAGS-getaliasent.c): Likewise.
18376 (CFLAGS-getrpcent_r.c): Likewise.
18377 (CFLAGS-getrpcent.c): Likewise.
18378 (CFLAGS-getservent_r.c): Likewise.
18379 (CFLAGS-getservent.c): Likewise.
18380 (CFLAGS-getprtent_r.c): Likewise.
18381 (CFLAGS-getprtent.c): Likewise.
18382 (CFLAGS-either_ntoh.c): Likewise.
18383 (CFLAGS-either_hton.c): Likewise.
18384 (CFLAGS-getnetgrent.c): Likewise.
18385 (CFLAGS-getnetgrent_r.c): Likewise.
18386 (CFLAGS-tst-checks-posix.c): Likewise.
18387 (CFLAGS-tst-sockaddr.c): Likewise.
18388 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18389 (CFLAGS-tst-translit.c): Likewise.
18390 (CFLAGS-tst-gettext2.c): Likewise.
18391 (CFLAGS-tst-codeset.c): Likewise.
18392 (CFLAGS-tst-gettext3.c): Likewise.
18393 (CFLAGS-tst-gettext4.c): Likewise.
18394 (CFLAGS-tst-gettext5.c): Likewise.
18395 (CFLAGS-tst-gettext6.c): Likewise.
18396 * io/Makefile (CFLAGS-open.c): Likewise.
18397 (CFLAGS-open64.c): Likewise.
18398 (CFLAGS-creat.c): Likewise.
18399 (CFLAGS-creat64.c): Likewise.
18400 (CFLAGS-fcntl.c): Likewise.
18401 (CFLAGS-poll.c): Likewise.
18402 (CFLAGS-ppoll.c): Likewise.
18403 (CFLAGS-lockf.c): Likewise.
18404 (CFLAGS-statfs.c): Likewise.
18405 (CFLAGS-fstatfs.c): Likewise.
18406 (CFLAGS-statvfs.c): Likewise.
18407 (CFLAGS-fstatvfs.c): Likewise.
18408 (CFLAGS-fts.c): Likewise.
18409 (CFLAGS-fts64.c): Likewise.
18410 (CFLAGS-ftw.c): Likewise.
18411 (CFLAGS-ftw64.c): Likewise.
18412 (CFLAGS-lockf.c): Likewise.
18413 (CFLAGS-posix_fallocate.c): Likewise.
18414 (CFLAGS-posix_fallocate64.c): Likewise.
18415 (CFLAGS-fallocate.c): Likewise.
18416 (CFLAGS-fallocate64.c): Likewise.
18417 (CFLAGS-read.c): Likewise.
18418 (CFLAGS-write.c): Likewise.
18419 (CFLAGS-test-stat.c): Likewise.
18420 (CFLAGS-test-lfs.c): Likewise.
18421 * libio/Makefile (CFLAGS-fileops.c): Likewise.
18422 (CFLAGS-fputc.c): Likewise.
18423 (CFLAGS-fputwc.c): Likewise.
18424 (CFLAGS-freopen64.c): Likewise.
18425 (CFLAGS-freopen.c): Likewise.
18426 (CFLAGS-fseek.c): Likewise.
18427 (CFLAGS-fseeko64.c): Likewise.
18428 (CFLAGS-fseeko.c): Likewise.
18429 (CFLAGS-ftello64.c): Likewise.
18430 (CFLAGS-ftello.c): Likewise.
18431 (CFLAGS-fwide.c): Likewise.
18432 (CFLAGS-genops.c): Likewise.
18433 (CFLAGS-getc.c): Likewise.
18434 (CFLAGS-getchar.c): Likewise.
18435 (CFLAGS-getwc.c): Likewise.
18436 (CFLAGS-getwchar.c): Likewise.
18437 (CFLAGS-iofclose.c): Likewise.
18438 (CFLAGS-iofflush.c): Likewise.
18439 (CFLAGS-iofgetpos64.c): Likewise.
18440 (CFLAGS-iofgetpos.c): Likewise.
18441 (CFLAGS-iofgets.c): Likewise.
18442 (CFLAGS-iofgetws.c): Likewise.
18443 (CFLAGS-iofputs.c): Likewise.
18444 (CFLAGS-iofputws.c): Likewise.
18445 (CFLAGS-iofread.c): Likewise.
18446 (CFLAGS-iofsetpos64.c): Likewise.
18447 (CFLAGS-iofsetpos.c): Likewise.
18448 (CFLAGS-ioftell.c): Likewise.
18449 (CFLAGS-iofwrite.c): Likewise.
18450 (CFLAGS-iogetdelim.c): Likewise.
18451 (CFLAGS-iogetline.c): Likewise.
18452 (CFLAGS-iogets.c): Likewise.
18453 (CFLAGS-iogetwline.c): Likewise.
18454 (CFLAGS-ioputs.c): Likewise.
18455 (CFLAGS-ioseekoff.c): Likewise.
18456 (CFLAGS-ioseekpos.c): Likewise.
18457 (CFLAGS-iosetbuffer.c): Likewise.
18458 (CFLAGS-iosetvbuf.c): Likewise.
18459 (CFLAGS-ioungetc.c): Likewise.
18460 (CFLAGS-ioungetwc.c): Likewise.
18461 (CFLAGS-oldfileops.c): Likewise.
18462 (CFLAGS-oldiofclose.c): Likewise.
18463 (CFLAGS-oldiofgetpos64.c): Likewise.
18464 (CFLAGS-oldiofgetpos.c): Likewise.
18465 (CFLAGS-oldiofsetpos64.c): Likewise.
18466 (CFLAGS-oldiofsetpos.c): Likewise.
18467 (CFLAGS-peekc.c): Likewise.
18468 (CFLAGS-putc.c): Likewise.
18469 (CFLAGS-putchar.c): Likewise.
18470 (CFLAGS-putwc.c): Likewise.
18471 (CFLAGS-putwchar.c): Likewise.
18472 (CFLAGS-rewind.c): Likewise.
18473 (CFLAGS-wfileops.c): Likewise.
18474 (CFLAGS-wgenops.c): Likewise.
18475 (CFLAGS-oldiofopen.c): Likewise.
18476 (CFLAGS-iofopen.c): Likewise.
18477 (CFLAGS-iofopen64.c): Likewise.
18478 (CFLAGS-oldtmpfile.c): Likewise.
18479 (CFLAGS-tst_putwc.c): Likewise.
18480 * locale/Makefile (CFLAGS-md5.c): Likewise.
18481 (CFLAGS-charmap.c): Likewise.
18482 (CFLAGS-locfile.c): Likewise.
18483 (CFLAGS-charmap-dir.c): Likewise.
18484 * login/Makefile (CFLAGS-grantpt.c): Likewise.
18485 (CFLAGS-getpt.c): Likewise.
18486 (CFLAGS-pt_chown.c): Likewise.
18487 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
18488 (CFLAGS-obstack.c): Likewise.
18489 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
18490 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
18491 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
18492 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
18493 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
18494 (CFLAGS-test-tgmath.c): Likewise.
18495 (CFLAGS-test-tgmath2.c): Likewise.
18496 (CFLAGS-test-tgmath-ret.c): Likewise.
18497 (CFLAGS-test-powl.c): Likewise.
18498 (CFLAGS-test-snan.c): Likewise.
18499 (CFLAGS-test-signgam-finite.c): Likewise.
18500 (CFLAGS-test-signgam-finite-c99.c): Likewise.
18501 (CFLAGS-test-signgam-finite-c11.c): Likewise.
18502 (CFLAGS-test-signgam-uchar.c): Likewise.
18503 (CFLAGS-test-signgam-uchar-init.c): Likewise.
18504 (CFLAGS-test-signgam-uchar-static.c): Likewise.
18505 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
18506 (CFLAGS-test-signgam-uint.c): Likewise.
18507 (CFLAGS-test-signgam-uint-init.c): Likewise.
18508 (CFLAGS-test-signgam-uint-static.c): Likewise.
18509 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
18510 (CFLAGS-test-signgam-ullong.c): Likewise.
18511 (CFLAGS-test-signgam-ullong-init.c): Likewise.
18512 (CFLAGS-test-signgam-ullong-static.c): Likewise.
18513 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
18514 (CFLAGS-test-math-cxx11.cc): Likewise.
18515 (CFLAGS-test-math-isinff.cc): Likewise.
18516 (CFLAGS-test-math-iszero.cc): Likewise.
18517 (CFLAGS-test-math-issignaling.cc): Likewise.
18518 (CFLAGS-test-math-iscanonical.cc): Likewise.
18519 (CFLAGS-test-iszero-excess-precision.c): Likewise.
18520 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
18521 (CFLAGS-test-flt-eval-method.c): Likewise.
18522 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
18523 (CFLAGS-test-finite-macros.c): Likewise.
18524 * misc/Makefile (CFLAGS-select.c): Likewise.
18525 (CFLAGS-tsearch.c): Likewise.
18526 (CFLAGS-lsearch.c): Likewise.
18527 (CFLAGS-pselect.c): Likewise.
18528 (CFLAGS-readv.c): Likewise.
18529 (CFLAGS-writev.c): Likewise.
18530 (CFLAGS-preadv.c): Likewise.
18531 (CFLAGS-preadv64.c): Likewise.
18532 (CFLAGS-pwritev.c): Likewise.
18533 (CFLAGS-pwritev64.c): Likewise.
18534 (CFLAGS-preadv2.c): Likewise.
18535 (CFLAGS-preadv64v2.c): Likewise.
18536 (CFLAGS-pwritev2.c): Likewise.
18537 (CFLAGS-pwritev64v2.c): Likewise.
18538 (CFLAGS-usleep.c): Likewise.
18539 (CFLAGS-syslog.c): Likewise.
18540 (CFLAGS-error.c): Likewise.
18541 (CFLAGS-getpass.c): Likewise.
18542 (CFLAGS-mkstemp.c): Likewise.
18543 (CFLAGS-mkstemp64.c): Likewise.
18544 (CFLAGS-getsysstats.c): Likewise.
18545 (CFLAGS-getusershell.c): Likewise.
18546 (CFLAGS-err.c): Likewise.
18547 (CFLAGS-tst-tsearch.c): Likewise.
18548 (CFLAGS-msync.c): Likewise.
18549 (CFLAGS-fdatasync.c): Likewise.
18550 (CFLAGS-fsync.c): Likewise.
18551 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
18552 (CFLAGS-unwind.c): Likewise.
18553 (CFLAGS-unwind-forcedunwind.c): Likewise.
18554 (CFLAGS-pthread_cancel.c): Likewise.
18555 (CFLAGS-pthread_setcancelstate.c): Likewise.
18556 (CFLAGS-pthread_setcanceltype.c): Likewise.
18557 (CFLAGS-cancellation.c): Likewise.
18558 (CFLAGS-libc-cancellation.c): Likewise.
18559 (CFLAGS-pthread_exit.c): Likewise.
18560 (CFLAGS-forward.c): Likewise.
18561 (CFLAGS-pthread_testcancel.c): Likewise.
18562 (CFLAGS-pthread_join.c): Likewise.
18563 (CFLAGS-pthread_timedjoin.c): Likewise.
18564 (CFLAGS-pthread_once.c): Likewise.
18565 (CFLAGS-pthread_cond_wait.c): Likewise.
18566 (CFLAGS-sem_wait.c): Likewise.
18567 (CFLAGS-sem_timedwait.c): Likewise.
18568 (CFLAGS-fcntl.c): Likewise.
18569 (CFLAGS-lockf.c): Likewise.
18570 (CFLAGS-pread.c): Likewise.
18571 (CFLAGS-pread64.c): Likewise.
18572 (CFLAGS-pwrite.c): Likewise.
18573 (CFLAGS-pwrite64.c): Likewise.
18574 (CFLAGS-wait.c): Likewise.
18575 (CFLAGS-waitpid.c): Likewise.
18576 (CFLAGS-sigwait.c): Likewise.
18577 (CFLAGS-msgrcv.c): Likewise.
18578 (CFLAGS-msgsnd.c): Likewise.
18579 (CFLAGS-tcdrain.c): Likewise.
18580 (CFLAGS-open.c): Likewise.
18581 (CFLAGS-open64.c): Likewise.
18582 (CFLAGS-pause.c): Likewise.
18583 (CFLAGS-recv.c): Likewise.
18584 (CFLAGS-send.c): Likewise.
18585 (CFLAGS-accept.c): Likewise.
18586 (CFLAGS-sendto.c): Likewise.
18587 (CFLAGS-connect.c): Likewise.
18588 (CFLAGS-recvfrom.c): Likewise.
18589 (CFLAGS-recvmsg.c): Likewise.
18590 (CFLAGS-sendmsg.c): Likewise.
18591 (CFLAGS-close.c): Likewise.
18592 (CFLAGS-read.c): Likewise.
18593 (CFLAGS-write.c): Likewise.
18594 (CFLAGS-nanosleep.c): Likewise.
18595 (CFLAGS-sigsuspend.c): Likewise.
18596 (CFLAGS-msync.c): Likewise.
18597 (CFLAGS-fdatasync.c): Likewise.
18598 (CFLAGS-fsync.c): Likewise.
18599 (CFLAGS-pt-system.c): Likewise.
18600 (CFLAGS-tst-cleanup2.c): Likewise.
18601 (CFLAGS-tst-cleanupx2.c): Likewise.
18602 (CFLAGS-flockfile.c): Likewise.
18603 (CFLAGS-ftrylockfile.c): Likewise.
18604 (CFLAGS-funlockfile.c): Likewise.
18605 (CFLAGS-tst-initializers1.c): Likewise.
18606 (CFLAGS-tst-initializers1-c89.c): Likewise.
18607 (CFLAGS-tst-initializers1-c99.c): Likewise.
18608 (CFLAGS-tst-initializers1-c11.c): Likewise.
18609 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
18610 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
18611 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
18612 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
18613 (CFLAGS-nscd_getgr_r.c): Likewise.
18614 (CFLAGS-nscd_gethst_r.c): Likewise.
18615 (CFLAGS-nscd_getai.c): Likewise.
18616 (CFLAGS-nscd_initgroups.c): Likewise.
18617 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
18618 (CFLAGS-pause.c): Likewise.
18619 (CFLAGS-pread.c): Likewise.
18620 (CFLAGS-pread64.c): Likewise.
18621 (CFLAGS-pwrite.c): Likewise.
18622 (CFLAGS-pwrite64.c): Likewise.
18623 (CFLAGS-sleep.c): Likewise.
18624 (CFLAGS-wait.c): Likewise.
18625 (CFLAGS-waitid.c): Likewise.
18626 (CFLAGS-waitpid.c): Likewise.
18627 (CFLAGS-getopt.c): Likewise.
18628 (CFLAGS-wordexp.c): Likewise.
18629 (CFLAGS-sysconf.c): Likewise.
18630 (CFLAGS-pathconf.c): Likewise.
18631 (CFLAGS-fpathconf.c): Likewise.
18632 (CFLAGS-spawn.c): Likewise.
18633 (CFLAGS-spawnp.c): Likewise.
18634 (CFLAGS-spawni.c): Likewise.
18635 (CFLAGS-glob.c): Likewise.
18636 (CFLAGS-glob64.c): Likewise.
18637 (CFLAGS-getconf.c): Likewise.
18638 (CFLAGS-nanosleep.c): Likewise.
18639 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
18640 (CFLAGS-getpwent.c): Likewise.
18641 (CFLAGS-getpw.c): Likewise.
18642 (CFLAGS-fgetpwent_r.c): Likewise.
18643 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
18644 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
18645 (CFLAGS-mq_timedreceive.c): Likewise.
18646 (CFLAGS-mq_timedsend.c): Likewise.
18647 (CFLAGS-clock_nanosleep.c): Likewise.
18648 (CFLAGS-librt-cancellation.c): Likewise.
18649 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
18650 (CFLAGS-getspent.c): Likewise.
18651 (CFLAGS-fgetspent.c): Likewise.
18652 (CFLAGS-fgetspent_r.c): Likewise.
18653 (CFLAGS-putspent.c): Likewise.
18654 (CFLAGS-getspnam.c): Likewise.
18655 (CFLAGS-getspnam_r.c): Likewise.
18656 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
18657 (CFLAGS-sigsuspend.c): Likewise.
18658 (CFLAGS-sigtimedwait.c): Likewise.
18659 (CFLAGS-sigwait.c): Likewise.
18660 (CFLAGS-sigwaitinfo.c): Likewise.
18661 (CFLAGS-sigreturn.c): Likewise.
18662 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
18663 (CFLAGS-vfwprintf.c): Likewise.
18664 (CFLAGS-tmpfile.c): Likewise.
18665 (CFLAGS-tmpfile64.c): Likewise.
18666 (CFLAGS-tempname.c): Likewise.
18667 (CFLAGS-psignal.c): Likewise.
18668 (CFLAGS-vprintf.c): Likewise.
18669 (CFLAGS-cuserid.c): Likewise.
18670 (CFLAGS-errlist.c): Likewise.
18671 (CFLAGS-siglist.c): Likewise.
18672 (CFLAGS-scanf15.c): Likewise.
18673 (CFLAGS-scanf17.c): Likewise.
18674 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
18675 (CFLAGS-msort.c): Likewise.
18676 (CFLAGS-qsort.c): Likewise.
18677 (CFLAGS-system.c): Likewise.
18678 (CFLAGS-fmtmsg.c): Likewise.
18679 (CFLAGS-strfmon.c): Likewise.
18680 (CFLAGS-strfmon_l.c): Likewise.
18681 (CFLAGS-strfromd.c): Likewise.
18682 (CFLAGS-strfromf.c): Likewise.
18683 (CFLAGS-strfroml.c): Likewise.
18684 (CFLAGS-tst-bsearch.c): Likewise.
18685 (CFLAGS-tst-qsort.c): Likewise.
18686 (CFLAGS-tst-makecontext2.c): Likewise.
18687 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
18688 (CFLAGS-xnlm_prot.c): Likewise.
18689 (CFLAGS-xrstat.c): Likewise.
18690 (CFLAGS-xyppasswd.c): Likewise.
18691 (CFLAGS-xklm_prot.c): Likewise.
18692 (CFLAGS-xrex.c): Likewise.
18693 (CFLAGS-xsm_inter.c): Likewise.
18694 (CFLAGS-xmount.c): Likewise.
18695 (CFLAGS-xrusers.c): Likewise.
18696 (CFLAGS-xspray.c): Likewise.
18697 (CFLAGS-xnfs_prot.c): Likewise.
18698 (CFLAGS-xrquota.c): Likewise.
18699 (CFLAGS-xkey_prot.c): Likewise.
18700 (CFLAGS-auth_unix.c): Likewise.
18701 (CFLAGS-key_call.c): Likewise.
18702 (CFLAGS-pmap_rmt.c): Likewise.
18703 (CFLAGS-clnt_perr.c): Likewise.
18704 (CFLAGS-openchild.c): Likewise.
18705 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
18706 (CFLAGS-msgsnd.c): Likewise.
18707 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
18708 * time/Makefile (CFLAGS-tzfile.c): Likewise.
18709 (CFLAGS-tzset.c): Likewise.
18710 (CFLAGS-getdate.c): Likewise.
18711 (CFLAGS-test_time.c): Likewise.
18712 (CPPFLAGS-tst-tzname.c): Likewise.
18713 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
18714 (CFLAGS-zic.c): Likewise.
18715 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
18716 (CFLAGS-wcswidth.c): Likewise.
18717 (CFLAGS-wcstol.c): Likewise.
18718 (CFLAGS-wcstoul.c): Likewise.
18719 (CFLAGS-wcstoll.c): Likewise.
18720 (CFLAGS-wcstoull.c): Likewise.
18721 (CFLAGS-wcstod.c): Likewise.
18722 (CFLAGS-wcstold.c): Likewise.
18723 (CFLAGS-wcstof128.c): Likewise.
18724 (CFLAGS-wcstof.c): Likewise.
18725 (CFLAGS-wcstol_l.c): Likewise.
18726 (CFLAGS-wcstoul_l.c): Likewise.
18727 (CFLAGS-wcstoll_l.c): Likewise.
18728 (CFLAGS-wcstoull_l.c): Likewise.
18729 (CFLAGS-wcstod_l.c): Likewise.
18730 (CFLAGS-wcstold_l.c): Likewise.
18731 (CFLAGS-wcstof128_l.c): Likewise.
18732 (CFLAGS-wcstof_l.c): Likewise.
18733 (CPPFLAGS-tst-wchar-h.c): Likewise.
18734 (CPPFLAGS-wcstold_l.c): Likewise.
18735
18736 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
18737
18738 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
18739
18740 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18741 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18742
18743 * manual/tunables.texi (Hardware Capability Tunables): Document
18744 glibc.tune.cached_memopt.
18745 * sysdeps/powerpc/cpu-features.c: New file.
18746 * sysdeps/powerpc/cpu-features.h: New file.
18747 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
18748 _dl_powerpc_cpu_features.
18749 * sysdeps/powerpc/dl-tunables.list: New file.
18750 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
18751 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
18752 (INIT_ARCH): Initialize use_aligned_memopt.
18753 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
18754 IS_IN(rtld))]: Restrict dl_platform_init availability and
18755 initialize CPU features used by tunables.
18756 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
18757 Add memcpy-power8-cached.
18758 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
18759 __memcpy_power8_cached.
18760 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
18761 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
18762 New file.
18763
18764 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18765
18766 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
18767 (CFLAGS-noinl-tester.c): Likewise.
18768 (CFLAGS-tst-strlen.c): Likewise.
18769 (CFLAGS-stratcliff.c): Likewise.
18770 (CFLAGS-test-ffs.c): Likewise.
18771 (CFLAGS-tst-inlcall.c): Likewise.
18772 (CFLAGS-tst-xbzero-opt.c): Likewise.
18773 (CFLAGS-memcpy.c): Likewise.
18774 (CFLAGS-wordcopy.c): Likewise.
18775
18776 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
18777
18778 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
18779 Store r15 on stack and add cfi rule.
18780 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
18781 Likewise.
18782
18783 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
18784
18785 [BZ #22577]
18786 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
18787 call.
18788
18789 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18790
18791 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18792 Add s_sinf-sse2 and s_sinf-fma.
18793 (CFLAGS-s_sinf-fma.c): New.
18794 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
18795 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
18796 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
18797
18798 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
18799
18800 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
18801
18802 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18803
18804 [BZ #22568]
18805 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
18806 part of result to imaginary part of argument if it is zero and the
18807 real part of the argument is not finite.
18808 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
18809 of result to real part of argument if it is zero and the imaginary
18810 part of the argument is not finite.
18811
18812 2017-12-07 Mike FABIAN <mfabian@redhat.com>
18813
18814 [BZ #22524]
18815 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
18816 and to the list of locales to be built for testing.
18817 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
18818 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
18819 and build the collation rules upon that.
18820
18821 2017-12-07 Joseph Myers <joseph@codesourcery.com>
18822
18823 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
18824 * manual/math.texi (Mathematics): Document support for _Float32.
18825 * math/Makefile (test-types): Add float32.
18826 * math/Versions (GLIBC_2.27): Add _Float32 functions.
18827 * stdlib/Versions (GLIBC_2.27): Likewise.
18828 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18829 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18830 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18831 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18832 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18833 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18834 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18835 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18836 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18837 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18838 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18839 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18840 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18841 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18842 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18843 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18844 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18845 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18846 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18847 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18848 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18849 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
18850 Likewise.
18851 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18852 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18853 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18854 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18855 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
18857 Likewise.
18858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
18859 Likewise.
18860 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18861 Likewise.
18862 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18863 Likewise.
18864
18865 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18866 Likewise.
18867 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
18868 Likewise.
18869 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18870 Likewise.
18871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
18872 Likewise.
18873 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18874 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18875 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18876 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18877 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18878 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18879 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18880 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18881 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18882 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18883 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
18884 Likewise.
18885 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
18886 Likewise.
18887 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
18888 Likewise.
18889 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
18890 Likewise.
18891 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18892 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18893 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18894 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18895 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18896 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18897 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18898 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18899
18900 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18901
18902 * stdlib/strtof.c: Include <bits/floatn.h>
18903 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
18904 and later undefine as macro. Define as weak alias if
18905 [!USE_WIDE_CHAR].
18906 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
18907 and later undefine as macro. Define as weak alias if
18908 [USE_WIDE_CHAR].
18909 * stdlib/strtof_l.c: Include <bits/floatn.h>
18910 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
18911 and later undefine as macro. Define as weak alias if
18912 [!USE_WIDE_CHAR].
18913 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
18914 and later undefine as macro. Define as weak alias if
18915 [USE_WIDE_CHAR].
18916
18917 * stdlib/strfromf.c: Include <bits/floatn.h>.
18918 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
18919 and later undefine as macro and define as weak alias.
18920
18921 * math/test-float32.h: New file.
18922
18923 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
18924 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
18925 (libm_alias_float_other_r): Create f32 alias.
18926 (libm_alias_float_r): Use semicolon before call to
18927 libm_alias_float_other_r.
18928
18929 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
18930 second argument to libm_alias_float_other.
18931 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
18932 second argument to libm_alias_float_other.
18933 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
18934 argument to libm_alias_float_other.
18935
18936 [BZ #22561]
18937 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
18938 real part of result for argument 0 + i * NaN.
18939 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
18940 results for tests of 0 + i * NaN.
18941
18942 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18943
18944 * sysdeps/alpha/fpu/libm-test-ulps: Update.
18945
18946 2017-12-06 David S. Miller <davem@davemloft.net>
18947
18948 * sysdeps/sparc/fpu/libm-test-ulps: Update
18949 exp_{downward,towardzero,upward} ulps.
18950
18951 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18952
18953 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
18954 variables static.
18955
18956 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
18957 (Y0_2D): Likewise.
18958 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
18959 (Y0_2D): Likewise.
18960 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
18961 (Y0_2D): Likewise.
18962 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
18963 (Y0_2D): Likewise.
18964
18965 2017-12-06 Mike FABIAN <mfabian@redhat.com>
18966
18967 [BZ #22515]
18968 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
18969 and to the list of locales to be built for testing.
18970 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
18971 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
18972 and build the collation rules upon that.
18973
18974 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18975
18976 * NEWS: Add sinf to list of optimized functions.
18977
18978 2017-12-06 Joseph Myers <joseph@codesourcery.com>
18979
18980 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
18981 (__HAVE_FLOAT32X): Likewise.
18982 * manual/math.texi (Mathematics): Document support for _Float64
18983 and _Float32x.
18984 * math/Makefile (test-types): Add float64 and float32x.
18985 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
18986 functions.
18987 * stdlib/Versions (GLIBC_2.27): Likewise.
18988 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18989 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18990 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18991 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18992 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18993 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18994 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18995 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18996 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18997 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18998 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18999 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19000 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19001 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19002 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19003 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19004 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19005 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19006 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19007 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19008 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19009 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19010 Likewise.
19011 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19012 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19013 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19014 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19015 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19016 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19017 Likewise.
19018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19019 Likewise.
19020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19021 Likewise.
19022 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19023 Likewise.
19024 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19025 Likewise.
19026 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19027 Likewise.
19028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19029 Likewise.
19030 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19031 Likewise.
19032 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19034 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19035 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19036 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19037 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19038 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19039 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19040 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19041 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19042 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19043 Likewise.
19044 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19045 Likewise.
19046 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19047 Likewise.
19048 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19049 Likewise.
19050 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19051 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19052 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19053 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19054 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19055 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19056 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19057 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19058
19059 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19060
19061 * bits/floatn-common.h: Include <bits/long-double.h>.
19062 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19063 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19064 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19065 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19066 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19067 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19068 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19069 (__builtin_huge_valf64): Use __builtin_huge_vall.
19070 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19071 (__builtin_inff64): Use __builtin_infl.
19072 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19073 (__builtin_nanf64): Use __builtin_nanl.
19074 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19075 (__builtin_nansf64): Use __builtin_nansl.
19076
19077 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19078 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19079 Carlos O'Donnell <carlos@redhat.com>
19080
19081 * elf/dl-tunables.list: Add elision parameters.
19082 * manual/tunables.texi: Add entries about elision tunable.
19083 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19084 Add callback functions to dynamically enable/disable elision.
19085 Add multiple callbacks functions to set elision parameters.
19086 Deleted __libc_enable_secure check.
19087 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19088 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19089 * configure: Regenerated.
19090 * configure.ac: Option enable_lock_elision was deleted.
19091 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19092 * config.make.in: Remove references to enable_lock_elision.
19093 * manual/install.texi: Elision configure option was removed.
19094 * INSTALL: Regenerated to remove enable_lock_elision.
19095 * nptl/Makefile:
19096 Disable elision so it can verify error case for destroying a mutex.
19097 * sysdeps/powerpc/nptl/elide.h:
19098 Cleanup ENABLE_LOCK_ELISION check.
19099 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19100 * sysdeps/s390/configure: Regenerated.
19101 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19102 * nptl/tst-mutex8.c:
19103 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19104 * sysdeps/powerpc/powerpc32/sysdep.h:
19105 Deleted all ENABLE_LOCK_ELISION checks.
19106 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19107 * sysdeps/powerpc/sysdep.h: Likewise.
19108 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19109 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19110 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19111 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19112 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19113 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19114 enable-lock-elision.
19115
19116 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19117
19118 * stdlib/strtod.c: Include <bits/floatn.h>.
19119 (BUILD_DOUBLE): New macro.
19120 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19121 (strtof64): Define and later undefine as macro. Define as weak
19122 alias if [!USE_WIDE_CHAR].
19123 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19124 (wcstof64): Define and later undefine as macro. Define as weak
19125 alias if [USE_WIDE_CHAR].
19126 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19127 (strtof32x): Define and later undefine as macro. Define as weak
19128 alias if [!USE_WIDE_CHAR].
19129 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19130 (wcstof32x): Define and later undefine as macro. Define as weak
19131 alias if [USE_WIDE_CHAR].
19132 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19133 (BUILD_DOUBLE): New macro.
19134 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19135 (strtof64_l): Define and later undefine as macro. Define as weak
19136 alias if [!USE_WIDE_CHAR].
19137 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19138 (wcstof64_l): Define and later undefine as macro. Define as weak
19139 alias if [USE_WIDE_CHAR].
19140 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19141 (strtof32x_l): Define and later undefine as macro. Define as weak
19142 alias if [!USE_WIDE_CHAR].
19143 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19144 (wcstof32x_l): Define and later undefine as macro. Define as weak
19145 alias if [USE_WIDE_CHAR].
19146
19147 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19148
19149 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19150 (reduced): Use ones as double instead of integer.
19151
19152 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19153
19154 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19155
19156 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19157
19158 * stdlib/strfromd.c: Include <bits/floatn.h>.
19159 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19160 and later undefine as macro and define as weak alias.
19161 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19162 Likewise.
19163
19164 * math/test-float32x.h: New file.
19165 * math/test-float64.h: Likewise.
19166
19167 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19168 (libm_alias_double_other_r_f64): New macro.
19169 (libm_alias_double_other_r_f32x): Likewise.
19170 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19171 libm_alias_double_other_r_f32x.
19172 (libm_alias_double_r): Use semicolon before call to
19173 libm_alias_double_other_r.
19174 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19175 <bits/floatn.h>.
19176 (libm_alias_double_other_r_f64): New macro.
19177 (libm_alias_double_other_r_f32x): Likewise.
19178 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19179 libm_alias_double_other_r_f32x.
19180
19181 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19182
19183 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19184 int.
19185 (SINF_FUNC): Likewise. Replace floor with simple casts.
19186
19187 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19188
19189 [BZ #22517]
19190 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19191 and to the list of locales to be built for testing.
19192 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19193 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19194 and build the collation rules upon that.
19195
19196 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19197
19198 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19199 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19200 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19201 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19202 instead of __insn__xxx.
19203 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19204 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19205 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19206 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19207 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19208 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19209
19210 2017-12-05 Florian Weimer <fweimer@redhat.com>
19211
19212 Linux: Implement interfaces for memory protection keys
19213 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19214 xsignal, xsysconf.
19215 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19216 * support/xunistd.h (xsysconf): Declare.
19217 * support/xraise.c: New file.
19218 * support/xsigaction.c: Likewise.
19219 * support/xsignal.c: Likewise.
19220 * support/xsysconf.c: Likewise.
19221 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19222 pkey_set, pkey_get, pkey_mprotect.
19223 [misc] (tests): Add tst-pkey.
19224 (tst-pkey): Link with -lpthread.
19225 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19226 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19227 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19228 (PKEY_DISABLE_WRITE): Define.
19229 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19230 Declare.
19231 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19232 (SEGV_PKUERR): Add.
19233 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19234 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19235 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19236 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19237 Add.
19238 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19239 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19240 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19241 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19242 * sysdeps/unix/sysv/linux/**.abilist: Update.
19243
19244 2017-12-05 Florian Weimer <fweimer@redhat.com>
19245
19246 * support/tst-test_compare.c (subprocess): Use long long instead
19247 of long argument for consistent type width across 32-bit and
19248 64-bit architectures.
19249 (do_test): Adjust expected output.
19250
19251 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19252
19253 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19254 (cosf): Define using libm_alias_float.
19255 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19256 (fabsf): Define using libm_alias_float.
19257 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19258 (fmaf): Define using libm_alias_float.
19259 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19260 (rintf): Define using libm_alias_float.
19261 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19262 (sinf): Define using libm_alias_float.
19263 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19264 <libm-alias-float.h>.
19265 (modff): Define using libm_alias_float.
19266 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19267 <libm-alias-float.h>.
19268 (logbf): Define using libm_alias_float.
19269 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19270 <libm-alias-float.h>.
19271 (ceilf): Define using libm_alias_float.
19272 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19273 <libm-alias-float.h>.
19274 (copysignf): Define using libm_alias_float.
19275 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19276 <libm-alias-float.h>.
19277 (floorf): Define using libm_alias_float.
19278 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19279 <libm-alias-float.h>.
19280 (llrintf): Define using libm_alias_float.
19281 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19282 <libm-alias-float.h>.
19283 (llroundf): Define using libm_alias_float.
19284 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19285 <libm-alias-float.h>.
19286 (lrintf): Define using libm_alias_float.
19287 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19288 <libm-alias-float.h>.
19289 (lroundf): Define using libm_alias_float.
19290 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19291 <libm-alias-float.h>.
19292 (nearbyintf): Define using libm_alias_float.
19293 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19294 <libm-alias-float.h>.
19295 (rintf): Define using libm_alias_float.
19296 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19297 <libm-alias-float.h>.
19298 (roundf): Define using libm_alias_float.
19299 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19300 <libm-alias-float.h>.
19301 (truncf): Define using libm_alias_float.
19302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19303 Include <libm-alias-float.h>.
19304 (ceilf): Define using libm_alias_float.
19305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19306 Include <libm-alias-float.h>.
19307 (copysignf): Define using libm_alias_float.
19308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19309 Include <libm-alias-float.h>.
19310 (floorf): Define using libm_alias_float.
19311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19312 Include <libm-alias-float.h>.
19313 (llrintf): Define using libm_alias_float.
19314 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19315 Include <libm-alias-float.h>.
19316 (llroundf): Define using libm_alias_float.
19317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19318 Include <libm-alias-float.h>.
19319 (logbf): Define using libm_alias_float.
19320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19321 Include <libm-alias-float.h>.
19322 (lrintf): Define using libm_alias_float.
19323 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19324 Include <libm-alias-float.h>.
19325 (lroundf): Define using libm_alias_float.
19326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19327 Include <libm-alias-float.h>.
19328 (modff): Define using libm_alias_float.
19329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19330 Include <libm-alias-float.h>.
19331 (roundf): Define using libm_alias_float.
19332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19333 Include <libm-alias-float.h>.
19334 (truncf): Define using libm_alias_float.
19335 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19336 <libm-alias-float.h>.
19337 (llrintf): Define using libm_alias_float.
19338 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19339 <libm-alias-float.h>.
19340 (llroundf): Define using libm_alias_float.
19341 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19342 <libm-alias-float.h>.
19343 (ceilf): Define using libm_alias_float.
19344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19345 <libm-alias-float.h>.
19346 (floorf): Define using libm_alias_float.
19347 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19348 <libm-alias-float.h>.
19349 (llroundf): Define using libm_alias_float.
19350 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19351 <libm-alias-float.h>.
19352 (lroundf): Define using libm_alias_float.
19353 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19354 <libm-alias-float.h>.
19355 (roundf): Define using libm_alias_float.
19356 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19357 <libm-alias-float.h>.
19358 (truncf): Define using libm_alias_float.
19359 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19360 <libm-alias-float.h>.
19361 (copysignf): Define using libm_alias_float.
19362 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19363 <libm-alias-float.h>.
19364 (llrintf): Define using libm_alias_float.
19365 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19366 <libm-alias-float.h>.
19367 (llroundf): Define using libm_alias_float.
19368 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19369 <libm-alias-float.h>.
19370 (lrintf): Define using libm_alias_float.
19371 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19372 <libm-alias-float.h>.
19373 (lroundf): Define using libm_alias_float.
19374 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19375 <libm-alias-float.h>.
19376 (ceilf): Define using libm_alias_float.
19377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19378 <libm-alias-float.h>.
19379 (copysignf): Define using libm_alias_float.
19380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19381 <libm-alias-float.h>.
19382 (cosf): Define using libm_alias_float.
19383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19384 <libm-alias-float.h>.
19385 (floorf): Define using libm_alias_float.
19386 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19387 <libm-alias-float.h>.
19388 (llrintf): Define using libm_alias_float.
19389 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19390 <libm-alias-float.h>.
19391 (llroundf): Define using libm_alias_float.
19392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19393 <libm-alias-float.h>.
19394 (logbf): Define using libm_alias_float.
19395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19396 <libm-alias-float.h>.
19397 (modff): Define using libm_alias_float.
19398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19399 <libm-alias-float.h>.
19400 (roundf): Define using libm_alias_float.
19401 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19402 <libm-alias-float.h>.
19403 (sinf): Define using libm_alias_float.
19404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19405 <libm-alias-float.h>.
19406 (truncf): Define using libm_alias_float.
19407 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
19408 <libm-alias-float.h>.
19409 (ceilf): Define using libm_alias_float.
19410 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19411 <libm-alias-float.h>.
19412 (copysignf): Define using libm_alias_float.
19413 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
19414 <libm-alias-float.h>.
19415 (floorf): Define using libm_alias_float.
19416 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19417 <libm-alias-float.h>.
19418 (llrintf): Define using libm_alias_float.
19419 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
19420 <libm-alias-float.h>.
19421 (llroundf): Define using libm_alias_float.
19422 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
19423 <libm-alias-float.h>.
19424 (nearbyintf): Define using libm_alias_float.
19425 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
19426 <libm-alias-float.h>.
19427 (rintf): Define using libm_alias_float.
19428 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
19429 <libm-alias-float.h>.
19430 (roundf): Define using libm_alias_float.
19431 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
19432 <libm-alias-float.h>.
19433 (truncf): Define using libm_alias_float.
19434 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
19435 <libm-alias-float.h>.
19436 (ceilf): Define using libm_alias_float.
19437 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
19438 <libm-alias-float.h>.
19439 (floorf): Define using libm_alias_float.
19440 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19441 <libm-alias-float.h>.
19442 (llroundf): Define using libm_alias_float.
19443 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
19444 <libm-alias-float.h>.
19445 (roundf): Define using libm_alias_float.
19446 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
19447 <libm-alias-float.h>.
19448 (truncf): Define using libm_alias_float.
19449 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19450 <libm-alias-float.h>.
19451 (copysignf): Define using libm_alias_float.
19452 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19453 <libm-alias-float.h>.
19454 (llrintf): Define using libm_alias_float.
19455 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19456 <libm-alias-float.h>.
19457 (llroundf): Define using libm_alias_float.
19458 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
19459 <libm-alias-float.h>.
19460 (cosf): Define using libm_alias_float.
19461 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19462 <libm-alias-float.h>.
19463 (llrintf): Define using libm_alias_float.
19464 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19465 <libm-alias-float.h>.
19466 (llroundf): Define using libm_alias_float.
19467 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
19468 <libm-alias-float.h>.
19469 (sinf): Define using libm_alias_float.
19470
19471 2017-12-04 Florian Weimer <fweimer@redhat.com>
19472
19473 * support/check.h (TEST_COMPARE): Define.
19474 (support_test_compare_failure): Declare.
19475 * support/Makefile (libsupport-routines): Add
19476 support_test_compare_failure.
19477 (tests): Add tst-test_compare.
19478 * support /support_test_compare_failure.c: New file.
19479 * support/tst-test_compare.c: Likewise.
19480
19481 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19482
19483 [BZ #22527]
19484 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
19485 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
19486 available, this rewrite of the collation rules does reproduce
19487 the test file in the same order.
19488
19489 2017-12-04 Mike FABIAN <mfabian@redhat.com>
19490
19491 [BZ #10580]
19492 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
19493 digraphs in the month and day names. Using single code points for
19494 digraphs is deprecated. While there are dedicated Unicode
19495 codepoints, for the digraphs, these are included for backwards
19496 compatibility and modern texts use a sequence of Basic Latin
19497 characters. See: https://www.unicode.org/faq/ligature_digraph.html
19498 This makes the month and day names agree exactly with CLDR now,
19499 CLDR does not use the single code points for the digraphs either.
19500
19501 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
19502
19503 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
19504
19505 2017-12-04 Joseph Myers <joseph@codesourcery.com>
19506
19507 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
19508 of floor.
19509
19510 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
19511
19512 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
19513 Define only for libc.so.
19514
19515 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
19516
19517 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19518 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
19519 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
19520 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
19521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
19522
19523 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19524
19525 [BZ #5997]
19526 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
19527
19528 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
19529
19530 [BZ libc/19170]
19531 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
19532 PREINIT_FUNCTION_WEAK is nonzero.
19533 (gmon_initializer): New function. Put procedure label for it in
19534 .init_array section.
19535 (_init): Don't call PREINIT_FUNCTION.
19536 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
19537 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
19538 value when map argument is null.
19539
19540 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
19541 depi instruction from PIC pc-relative sequence.
19542 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
19543 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
19544 (elf_machine_load_address): Likewise.
19545 (elf_machine_runtime_setup): Likewise.
19546
19547 2017-12-02 Joseph Myers <joseph@codesourcery.com>
19548
19549 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
19550 <libm-alias-double.h>.
19551 (logb): Define using libm_alias_double.
19552 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19553 <libm-alias-double.h>.
19554 (copysign): Define using libm_alias_double.
19555 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
19556 <libm-alias-double.h>.
19557 (llrint): Define using libm_alias_double.
19558 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
19559 <libm-alias-double.h>.
19560 (llround): Define using libm_alias_double.
19561 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19562 <libm-alias-double.h>.
19563 (lrint): Define using libm_alias_double.
19564 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19565 <libm-alias-double.h>.
19566 (lround): Define using libm_alias_double.
19567 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
19568 Include <libm-alias-double.h>.
19569 (copysign): Define using libm_alias_double.
19570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
19571 Include <libm-alias-double.h>.
19572 (llrint): Define using libm_alias_double.
19573 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
19574 Include <libm-alias-double.h>.
19575 (llround): Define using libm_alias_double.
19576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
19577 <libm-alias-double.h>.
19578 (logb): Define using libm_alias_double.
19579 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
19580 Include <libm-alias-double.h>.
19581 (lrint): Define using libm_alias_double.
19582 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
19583 Include <libm-alias-double.h>.
19584 (lround): Define using libm_alias_double.
19585 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
19586 <libm-alias-double.h>.
19587 (llrint): Define using libm_alias_double.
19588 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19589 <libm-alias-double.h>.
19590 (llround): Define using libm_alias_double.
19591 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19592 <libm-alias-double.h>.
19593 (llround): Define using libm_alias_double.
19594 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19595 <libm-alias-double.h>.
19596 (lround): Define using libm_alias_double.
19597 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19598 <libm-alias-double.h>.
19599 (copysign): Define using libm_alias_double.
19600 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
19601 <libm-alias-double.h>.
19602 (llrint): Define using libm_alias_double.
19603 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19604 <libm-alias-double.h>.
19605 (llround): Define using libm_alias_double.
19606 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19607 <libm-alias-double.h>.
19608 (lrint): Define using libm_alias_double.
19609 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19610 <libm-alias-double.h>.
19611 (lround): Define using libm_alias_double.
19612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
19613 <libm-alias-double.h>.
19614 (copysign): Define using libm_alias_double.
19615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
19616 <libm-alias-double.h>.
19617 (llrint): Define using libm_alias_double.
19618 (lrint): Likewise.
19619 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
19620 <libm-alias-double.h>.
19621 (llround): Define using libm_alias_double.
19622 (lround): Likewise.
19623 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
19624 <libm-alias-double.h>.
19625 (logb): Define using libm_alias_double.
19626 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
19627 <libm-alias-double.h>.
19628 (copysign): Define using libm_alias_double.
19629 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
19630 <libm-alias-double.h>.
19631 (llrint): Define using libm_alias_double.
19632 (lrint): Likewise.
19633 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
19634 <libm-alias-double.h>.
19635 (llround): Define using libm_alias_double.
19636 (lround): Likewise.
19637 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
19638 <libm-alias-double.h>.
19639 (llround): Define using libm_alias_double.
19640 (lround): Likewise.
19641 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
19642 <libm-alias-double.h>.
19643 (copysign): Define using libm_alias_double.
19644 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
19645 <libm-alias-double.h>.
19646 (llrint): Define using libm_alias_double.
19647 (lrint): Likewise.
19648 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
19649 <libm-alias-double.h>.
19650 (llround): Define using libm_alias_double.
19651 (lround): Likewise.
19652 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
19653 <libm-alias-double.h>.
19654 (llrint): Define using libm_alias_double.
19655 (lrint): Likewise.
19656 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
19657 <libm-alias-double.h>.
19658 (llround): Define using libm_alias_double.
19659 (lround): Likewise.
19660
19661 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19662
19663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
19664 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
19665 compat symbol based on llround.
19666
19667 * sysdeps/powerpc/power7/fpu/s_logb.c
19668 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
19669 symbol based on __logb, not on logb.
19670 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
19671 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
19673 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
19674
19675 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
19676 (rint): Define using libm_alias_double.
19677 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
19678 <libm-alias-double.h>.
19679 (modf): Define using libm_alias_double.
19680 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
19681 <libm-alias-double.h>.
19682 (ceil): Define using libm_alias_double.
19683 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
19684 <libm-alias-double.h>.
19685 (floor): Define using libm_alias_double.
19686 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
19687 <libm-alias-double.h>.
19688 (nearbyint): Define using libm_alias_double.
19689 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
19690 <libm-alias-double.h>.
19691 (rint): Define using libm_alias_double.
19692 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
19693 <libm-alias-double.h>.
19694 (round): Define using libm_alias_double.
19695 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
19696 <libm-alias-double.h>.
19697 (trunc): Define using libm_alias_double.
19698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
19699 <libm-alias-double.h>.
19700 (ceil): Define using libm_alias_double.
19701 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
19702 Include <libm-alias-double.h>.
19703 (floor): Define using libm_alias_double.
19704 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
19705 <libm-alias-double.h>.
19706 (modf): Define using libm_alias_double.
19707 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
19708 Include <libm-alias-double.h>.
19709 (round): Define using libm_alias_double.
19710 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
19711 Include <libm-alias-double.h>.
19712 (trunc): Define using libm_alias_double.
19713 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
19714 <libm-alias-double.h>.
19715 (ceil): Define using libm_alias_double.
19716 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
19717 <libm-alias-double.h>.
19718 (floor): Define using libm_alias_double.
19719 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
19720 <libm-alias-double.h>.
19721 (round): Define using libm_alias_double.
19722 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
19723 <libm-alias-double.h>.
19724 (trunc): Define using libm_alias_double.
19725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
19726 <libm-alias-double.h>.
19727 (ceil): Define using libm_alias_double.
19728 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
19729 <libm-alias-double.h>.
19730 (floor): Define using libm_alias_double.
19731 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
19732 <libm-alias-double.h>.
19733 (modf): Define using libm_alias_double.
19734 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
19735 <libm-alias-double.h>.
19736 (round): Define using libm_alias_double.
19737 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
19738 <libm-alias-double.h>.
19739 (trunc): Define using libm_alias_double.
19740 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
19741 <libm-alias-double.h>.
19742 (ceil): Define using libm_alias_double.
19743 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
19744 <libm-alias-double.h>.
19745 (floor): Define using libm_alias_double.
19746 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
19747 <libm-alias-double.h>.
19748 (nearbyint): Define using libm_alias_double.
19749 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
19750 <libm-alias-double.h>.
19751 (rint): Define using libm_alias_double.
19752 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
19753 <libm-alias-double.h>.
19754 (round): Define using libm_alias_double.
19755 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
19756 <libm-alias-double.h>.
19757 (trunc): Define using libm_alias_double.
19758 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
19759 <libm-alias-double.h>.
19760 (ceil): Define using libm_alias_double.
19761 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
19762 <libm-alias-double.h>.
19763 (floor): Define using libm_alias_double.
19764 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
19765 <libm-alias-double.h>.
19766 (round): Define using libm_alias_double.
19767 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
19768 <libm-alias-double.h>.
19769 (trunc): Define using libm_alias_double.
19770
19771 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
19772 (fabs): Define using libm_alias_double.
19773 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
19774 (fma): Define using libm_alias_double.
19775 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
19776 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
19777 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
19778 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
19779
19780 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19781
19782 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
19783
19784 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
19785 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
19786 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
19787
19788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
19789 due redirect macro.
19790
19791 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
19792
19793 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
19794
19795 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19796
19797 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
19798 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
19799 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
19800 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
19801
19802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19803 (libm-sysdep_routines): Add s_nearbyintf-generic and
19804 s_nearbyint-generic.
19805 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
19806 New file.
19807 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
19808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
19809 Likewise.
19810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
19811 Likewise.
19812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
19813 file.
19814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
19815 Likewise.
19816
19817 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19818 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
19819 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
19820 file.
19821 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
19822 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
19823 Likewise.
19824 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
19825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
19826 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
19827
19828 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19829 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
19830 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
19831 file.
19832 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
19833 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
19834 Likewise.
19835 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
19836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
19837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
19838
19839 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19840 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
19841 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
19842 file.
19843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
19844 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
19845 Likewise.
19846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
19847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
19848 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
19849
19850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
19851 (sysdep_calls): New rule.
19852 (sysdep_routines): Use sysdep_calls as base.
19853 (libm-sysdep_routines): Add generic rule for symbols shared with
19854 libc. Add s_copysign-generic and s_copysign-generic objects.
19855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
19856 New file.
19857 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
19858 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
19859 Likewise.
19860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
19861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
19862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
19863
19864 2017-12-01 Mike FABIAN <mfabian@redhat.com>
19865
19866 [BZ #22519]
19867 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
19868 the list of locales to be built for testing.
19869 * localedata/is_IS.UTF-8.in: New file.
19870 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
19871 on iso14651_t1.
19872
19873 2017-12-01 Joseph Myers <joseph@codesourcery.com>
19874
19875 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
19876 <libm-alias-float.h>.
19877 (fabsf): Define using libm_alias_float.
19878
19879 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
19880
19881 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
19882
19883 2017-11-30 Joseph Myers <joseph@codesourcery.com>
19884
19885 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
19886 <libm-alias-float.h>.
19887 (fabsf): Define using libm_alias_float.
19888 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
19889 <libm-alias-float.h>.
19890 (lrintf): Define using libm_alias_float.
19891 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
19892 <libm-alias-float.h>.
19893 (rintf): Define using libm_alias_float.
19894
19895 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
19896 <libm-alias-double.h>.
19897 (fabs): Define using libm_alias_double.
19898 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
19899 <libm-alias-double.h>.
19900 (lrint): Define using libm_alias_double.
19901 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
19902 <libm-alias-double.h>.
19903 (rint): Define using libm_alias_double.
19904
19905 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
19906 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
19907 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
19908 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
19909 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
19910 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
19911 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
19912 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
19913 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
19914 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
19915 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
19916 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
19917 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
19918 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
19919 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
19920 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
19921 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
19922 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
19923 s_atan_template.c.
19924 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
19925 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
19926 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
19927 s_ceil_template.c.
19928 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
19929 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
19930 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
19931 s_cos_template.c.
19932 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
19933 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
19934 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
19935 s_expm1_template.c.
19936 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
19937 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
19938 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
19939 s_fabs_template.c.
19940 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
19941 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
19942 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
19943 s_floor_template.c.
19944 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
19945 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
19946 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
19947 s_frexp_template.c.
19948 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
19949 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
19950 s_lrint_template.c.
19951 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
19952 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
19953 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
19954 s_modf_template.c.
19955 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
19956 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
19957 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
19958 s_nearbyint_template.c.
19959 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
19960 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
19961 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
19962 s_remquo_template.c.
19963 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
19964 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
19965 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
19966 s_rint_template.c.
19967 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
19968 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
19969 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
19970 s_sin_template.c.
19971 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
19972 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
19973 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
19974 s_sincos_template.c.
19975 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
19976 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
19977 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
19978 s_tan_template.c.
19979 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
19980 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
19981 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
19982 s_tanh_template.c.
19983 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
19984 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
19985 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
19986 s_trunc_template.c.
19987 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
19988 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
19989 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
19990 s_atan.c instead of including s_atan.c.
19991 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
19992 s_atanf.c instead of including s_atanf.c.
19993 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
19994 s_atanl.c instead of including s_atanl.c.
19995 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
19996 instead of s_atan.c.
19997 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
19998 instead of s_atanf.c.
19999 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20000 instead of s_atanl.c.
20001
20002 * scripts/update-copyrights: Do not handle intl/plural.c
20003 specially.
20004
20005 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20006
20007 [BZ #22432]
20008 * configure.ac (BISON): Require to be present.
20009 * configure: Regenerated.
20010 * intl/Makefile (generated): Add plural.c.
20011 [$(BISON) != no]: Make code unconditional.
20012 (plural.c): Change rule to $(objpfx)plural.c.
20013 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20014 * intl/plural.c: Remove.
20015 * manual/install.texi (Tools for Compilation): Document bison as
20016 required.
20017 * INSTALL: Regenerated.
20018
20019 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20020
20021 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20022 <libm-alias-double.h>.
20023 (llrint): Define using libm_alias_double.
20024 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20025 <libm-alias-float.h>.
20026 (llrintf): Define using libm_alias_float.
20027 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20028 <libm-alias-ldouble.h>.
20029 (llrintl): Define using libm_alias_ldouble.
20030
20031 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20032 declare_mgen_alias instead of weak_alias.
20033 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20034 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20035 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20036
20037 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20038
20039 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20040 Add add_n-generic.
20041 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20042 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20043 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20044
20045 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20046 Add submul_1-generic.
20047 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20048 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20049 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20050
20051 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20052 Add addmul_1-generic.
20053 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20054 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20055 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20056
20057 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20058 Add sub_n-generic.
20059 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20060 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20061 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20062
20063 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20064 Add mul_1-generic.
20065 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20066 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20067 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20068
20069 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20070
20071 According to CLDR, collation rules for Serbian and Bosnian
20072 should be the same as for Croatian.
20073
20074 [BZ #22534]
20075 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20076 and to the list of locales to be built for testing.
20077 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20078 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20079 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20080 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20081
20082 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20083
20084 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20085 to make test case pass.
20086 * localedata/hr_HR.UTF-8.in: Add more test strings.
20087
20088 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20089
20090 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20091
20092 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20093
20094 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20095 the list of locales to built for testing.
20096 * localedata/hr_HR.UTF-8.in: New file.
20097
20098 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20099
20100 [BZ #10580]
20101 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20102 iso14651_t1.
20103 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20104 CLDR (except use ligatures for the digraphs, CLDR does not use
20105 the ligatures), add first_workday, some fixes in the date and time
20106 formats.
20107 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20108 for Đ and đ.
20109 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20110 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20111 Add int_p_cs_precedes and int_n_cs_precedes.
20112 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20113 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20114 LC_MONETARY now).
20115 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20116 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20117 name_miss.
20118 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20119 and lang_lib. Change postal_fmt.
20120
20121 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20122
20123 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20124 <setjmp.h>.
20125 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20126 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20127 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20128 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20129 * sysdeps/generic/setjmpP.h: New file.
20130 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20131 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20132 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20133 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20134 Add jmp_buf-ssp.sym.
20135 (tests): Add tst-saved_mask-1.
20136
20137 2017-11-30 Arjun Shankar <arjun@redhat.com>
20138
20139 [BZ #22375]
20140 CVE-2017-17426
20141 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20142 instead of request2size.
20143
20144 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20145
20146 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20147 (__lllrint): Remove alias.
20148 (lllrint): Likewise.
20149 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20150 (__lllrintf): Likewise.
20151 (lllrintf): Likewise.
20152
20153 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20154 <libm-alias-float.h>.
20155 (copysignf): Define using libm_alias_float.
20156 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20157 <libm-alias-float.h>.
20158 (fabsf): Define using libm_alias_float.
20159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20160 Include <libm-alias-float.h>.
20161 (copysignf): Define using libm_alias_float.
20162 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20163 <libm-alias-float.h>.
20164 (fabsf): Define using libm_alias_float.
20165 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20166 <libm-alias-float.h>.
20167 (fdimf): Define using libm_alias_float.
20168 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20169 <libm-alias-float.h>.
20170 (fmaf): Define using libm_alias_float.
20171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20172 <libm-alias-float.h>.
20173 (llrintf): Define using libm_alias_float.
20174 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20175 Include <libm-alias-float.h>.
20176 (nearbyintf): Define using libm_alias_float.
20177 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20178 <libm-alias-float.h>.
20179 (rintf): Define using libm_alias_float.
20180 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20181 <libm-alias-float.h>.
20182 (llrintf): Define using libm_alias_float.
20183 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20184 <libm-alias-float.h>.
20185 (lrintf): Define using libm_alias_float.
20186 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20187 <libm-alias-float.h>.
20188 (nearbyintf): Define using libm_alias_float.
20189 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20190 <libm-alias-float.h>.
20191 (rintf): Define using libm_alias_float.
20192 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20193 <libm-alias-float.h>.
20194 (ceilf): Define using libm_alias_float.
20195 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20196 <libm-alias-float.h>.
20197 (floorf): Define using libm_alias_float.
20198 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20199 <libm-alias-float.h>.
20200 (fmaf): Define using libm_alias_float.
20201 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20202 <libm-alias-float.h>.
20203 (lrintf): Define using libm_alias_float.
20204 (llrintf): Likewise.
20205 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20206 <libm-alias-float.h>.
20207 (nearbyintf): Define using libm_alias_float.
20208 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20209 <libm-alias-float.h>.
20210 (rintf): Define using libm_alias_float.
20211 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20212 <libm-alias-float.h>.
20213 (truncf): Define using libm_alias_float.
20214 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20215 <libm-alias-float.h>.
20216 (copysignf): Define using libm_alias_float.
20217 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20218 <libm-alias-float.h>.
20219 (fabsf): Define using libm_alias_float.
20220 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20221 <libm-alias-float.h>.
20222 (lrintf): Define using libm_alias_float.
20223 (llrintf): Likewise.
20224 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20225 <libm-alias-float.h>.
20226 (nearbyintf): Define using libm_alias_float.
20227 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20228 <libm-alias-float.h>.
20229 (rintf): Define using libm_alias_float.
20230
20231 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20232
20233 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20234 <libm-alias-double.h>.
20235 (copysign): Define using libm_alias_double.
20236 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20237 <libm-alias-double.h>.
20238 (fabs): Define using libm_alias_double.
20239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20240 Include <libm-alias-double.h>.
20241 (copysign): Define using libm_alias_double.
20242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20243 <libm-alias-double.h>.
20244 (fabs): Define using libm_alias_double.
20245 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20246 <libm-alias-double.h>.
20247 (fdim): Define using libm_alias_double.
20248 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20249 <libm-alias-double.h>.
20250 (fma): Define using libm_alias_double.
20251 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20252 <libm-alias-double.h>.
20253 (llrint): Define using libm_alias_double.
20254 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20255 Include <libm-alias-double.h>.
20256 (nearbyint): Define using libm_alias_double.
20257 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20258 <libm-alias-double.h>.
20259 (rint): Define using libm_alias_double.
20260 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20261 <libm-alias-double.h>.
20262 (fabs): Define using libm_alias_double.
20263 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20264 <libm-alias-double.h>.
20265 (llrint): Define using libm_alias_double.
20266 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20267 <libm-alias-double.h>.
20268 (nearbyint): Define using libm_alias_double.
20269 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20270 <libm-alias-double.h>.
20271 (rint): Define using libm_alias_double.
20272 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20273 <libm-alias-double.h>.
20274 (ceil): Define using libm_alias_double.
20275 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20276 <libm-alias-double.h>.
20277 (floor): Define using libm_alias_double.
20278 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20279 <libm-alias-double.h>.
20280 (fma): Define using libm_alias_double.
20281 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20282 <libm-alias-double.h>.
20283 (lrint): Define using libm_alias_double.
20284 (llrint): Likewise.
20285 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20286 <libm-alias-double.h>.
20287 (nearbyint): Define using libm_alias_double.
20288 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20289 <libm-alias-double.h>.
20290 (rint): Define using libm_alias_double.
20291 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20292 <libm-alias-double.h>.
20293 (trunc): Define using libm_alias_double.
20294 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20295 <libm-alias-double.h>.
20296 (copysign): Define using libm_alias_double.
20297 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20298 <libm-alias-double.h>.
20299 (fabs): Define using libm_alias_double.
20300 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20301 <libm-alias-double.h>.
20302 (lrint): Define using libm_alias_double.
20303 (llrint): Likewise.
20304 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20305 <libm-alias-double.h>.
20306 (nearbyint): Define using libm_alias_double.
20307 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20308 <libm-alias-double.h>.
20309 (rint): Define using libm_alias_double.
20310
20311 [BZ #22229]
20312 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20313 <math_ldbl_opt.h>.
20314 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20315
20316 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20317 SPARC --disable-multi-arch glibc variants.
20318
20319 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20320 <libm-alias-float.h>.
20321 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20322 if [SHARED].
20323 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20324 <libm-alias-float.h>.
20325 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20326 if [SHARED].
20327 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20328 <libm-alias-float.h>.
20329 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20330 if [SHARED].
20331 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20332 <libm-alias-float.h>.
20333 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20334 if [SHARED].
20335 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20336 <libm-alias-float.h>.
20337 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20338 if [SHARED].
20339 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20340 <libm-alias-float.h>.
20341 (ceilf): Define using libm_alias_float.
20342 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20343 <libm-alias-float.h>.
20344 (floorf): Define using libm_alias_float.
20345 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20346 <libm-alias-float.h>.
20347 (fmaf): Define using libm_alias_float.
20348 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20349 <libm-alias-float.h>.
20350 (nearbyintf): Define using libm_alias_float.
20351 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20352 <libm-alias-float.h>.
20353 (rintf): Define using libm_alias_float.
20354 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20355 <libm-alias-float.h>.
20356 (truncf): Define using libm_alias_float.
20357 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20358 (copysignf): Define using libm_alias_float.
20359 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20360 (cosf): Define using libm_alias_float.
20361 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20362 (fabsf): Define using libm_alias_float.
20363 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20364 (fmaxf): Define using libm_alias_float.
20365 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20366 (fminf): Define using libm_alias_float.
20367 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20368 (llrintf): Define using libm_alias_float.
20369 [!__ILP32__] (lrintf): Likewise.
20370 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20371 (sincosf): Define using libm_alias_float.
20372 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20373 (sinf): Define using libm_alias_float.
20374 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20375 (lrintf): Define using libm_alias_float.
20376
20377 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20378 <libm-alias-double.h>.
20379 (atan): Define using libm_alias_double.
20380 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20381 <libm-alias-double.h>.
20382 (ceil): Define using libm_alias_double.
20383 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20384 <libm-alias-double.h>.
20385 (floor): Define using libm_alias_double.
20386 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20387 <libm-alias-double.h>.
20388 (fma): Define using libm_alias_double.
20389 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20390 <libm-alias-double.h>.
20391 (nearbyint): Define using libm_alias_double.
20392 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20393 <libm-alias-double.h>.
20394 (rint): Define using libm_alias_double.
20395 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20396 <libm-alias-double.h>.
20397 (sin): Define using libm_alias_double.
20398 (cos): Likewise.
20399 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20400 <libm-alias-double.h>.
20401 (tan): Define using libm_alias_double.
20402 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20403 <libm-alias-double.h>.
20404 (trunc): Define using libm_alias_double.
20405 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20406 (copysign): Define using libm_alias_double.
20407 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
20408 (fabs): Define using libm_alias_double.
20409 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
20410 (fmax): Define using libm_alias_double.
20411 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
20412 (fmin): Define using libm_alias_double.
20413 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
20414 (llrint): Define using libm_alias_double.
20415 [!__ILP32__] (lrint): Likewise.
20416 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
20417 (lrint): Define using libm_alias_double.
20418
20419 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20420
20421 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20422 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
20423 objects.
20424 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
20425 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
20426 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
20427 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
20428 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
20429 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
20430
20431 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20432 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
20433 objects.
20434 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
20435 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
20436 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
20437 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
20438 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
20439 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
20440
20441 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
20442 (libm-sysdep_routines): Add s_nearbyint-generic and
20443 s_nearbyintf-generic objects.
20444 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
20445 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
20446 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
20447 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
20448 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
20449 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
20450
20451 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20452 Add s_finitef-generic and s_finite-generic objects.
20453 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
20454 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
20455 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
20456 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
20457 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
20458 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
20459
20460 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20461 Add s_isinff-generic and s_isinf-generic objects.
20462 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
20463 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
20464 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
20465 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
20466 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
20467 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
20468
20469 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
20470 Add s_isnanf-generic and s_isnan-generic objects.
20471 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
20472 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
20473 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
20474 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
20475 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
20476 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
20477
20478 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
20479 macro.
20480 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
20481 rule.
20482 (sysdep_routines): Use sysdep_calls as base.
20483 (libm-sysdep_routines): Add generic rule for symbols shared with
20484 libc. Add s_signbit-generic and s_signbitf-generic objects.
20485 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
20486 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
20487 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
20488 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
20489 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
20490 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
20491
20492 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20493
20494 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
20495 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
20496 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
20497 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
20498 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
20499 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
20500 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
20501 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
20502 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
20503 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
20504 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
20505 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
20506 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
20507 libm_alias_float_r.
20508 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
20509 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
20510 (logf): Likewise.
20511 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
20512 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
20513 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
20514 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
20515 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
20516 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
20517 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
20518 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
20519 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
20520 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
20521 libm_alias_float.
20522 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
20523 (cosf): Likewise.
20524 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
20525 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
20526 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
20527 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
20528 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
20529 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
20530 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
20531 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
20532 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
20533 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
20534 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
20535 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
20536 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
20537 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
20538 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
20539 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
20540 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
20541 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
20542 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
20543 libm_alias_float.
20544 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
20545 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
20546 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
20547 * sysdeps/ia64/fpu/w_lgammaf_main.c
20548 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
20549 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
20550
20551 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20552 Alexandre Oliva <aoliva@redhat.com>
20553
20554 [BZ #17750]
20555 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
20556 * localedata/fr_CA.UTF-8.in: New file with test data for backward
20557 accents sorting.
20558 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
20559 sorting.
20560 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
20561 * localedata/locales/de_DE (LC_COLLATE): Likewise.
20562 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
20563 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
20564 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
20565 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
20566 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
20567 instead of “ifdef DIACRIT_BACKWARD”.
20568
20569 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20570
20571 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
20572 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
20573 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
20574 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
20575 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
20576 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
20577 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
20578 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
20579 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
20580 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
20581 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
20582 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
20583 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
20584 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
20585 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
20586 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20587 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
20588 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
20589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20590 ($(have-as-vis3) == yes): Remove conditional.
20591 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
20592 Likewise.
20593 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
20594 file.
20595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
20596 file.
20597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
20598 file.
20599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
20600 file.
20601 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
20602 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
20603 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
20604 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
20605 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
20606 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
20607 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
20608 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
20609
20610 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20611
20612 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
20613 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
20614 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
20615 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
20616 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
20617 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
20618 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
20619 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
20620 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
20621 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
20622 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
20623 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
20624 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
20625 libm_alias_double_r.
20626 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
20627 (log): Likewise.
20628 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
20629 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
20630 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
20631 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
20632 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
20633 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
20634 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
20635 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
20636 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
20637 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
20638 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
20639 libm_alias_double.
20640 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
20641 (cos): Likewise.
20642 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
20643 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
20644 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
20645 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
20646 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
20647 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
20648 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
20649 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
20650 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
20651 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
20652 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
20653 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
20654 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
20655 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
20656 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
20657 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
20658 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
20659 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
20660 libm_alias_double.
20661 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
20662 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
20663 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
20664 * sysdeps/ia64/fpu/w_lgamma_main.c
20665 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
20666 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
20667
20668 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
20669
20670 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
20671 address of $global$ into %dp register earlier. Use pc-relative
20672 instruction sequence for PIC case.
20673
20674 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20675
20676 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
20677 (asinhf): Define using libm_alias_float.
20678 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
20679 (atanf): Define using libm_alias_float.
20680 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
20681 (cbrtf): Define using libm_alias_float.
20682 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
20683 (ceilf): Define using libm_alias_float.
20684 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20685 (copysignf): Define using libm_alias_float.
20686 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
20687 (expm1f): Define using libm_alias_float.
20688 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
20689 (fabsf): Define using libm_alias_float.
20690 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
20691 (floorf): Define using libm_alias_float.
20692 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20693 (fmaxf): Define using libm_alias_float.
20694 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
20695 (fminf): Define using libm_alias_float.
20696 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
20697 (frexpf): Define using libm_alias_float.
20698 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20699 (llrintf): Define using libm_alias_float.
20700 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
20701 (logbf): Define using libm_alias_float.
20702 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20703 (lrintf): Define using libm_alias_float.
20704 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
20705 (nearbyintf): Define using libm_alias_float.
20706 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
20707 (remquof): Define using libm_alias_float.
20708 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
20709 (rintf): Define using libm_alias_float.
20710 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
20711 (truncf): Define using libm_alias_float.
20712 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
20713 <libm-alias-float.h>.
20714 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20715 if [SHARED].
20716 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
20717 <libm-alias-float.h>.
20718 (expf): Define using libm_alias_float, or libm_alias_float_other
20719 if [SHARED].
20720 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
20721 <libm-alias-float.h>.
20722 (log2f): Define using libm_alias_float, or libm_alias_float_other
20723 if [SHARED].
20724 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
20725 <libm-alias-float.h>.
20726 (logf): Define using libm_alias_float, or libm_alias_float_other
20727 if [SHARED].
20728 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
20729 <libm-alias-float.h>.
20730 (powf): Define using libm_alias_float, or libm_alias_float_other
20731 if [SHARED].
20732 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
20733 <libm-alias-float.h>.
20734 (cosf): Define using libm_alias_float.
20735 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
20736 <libm-alias-float.h>.
20737 (sincosf): Define using libm_alias_float.
20738 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
20739 <libm-alias-float.h>.
20740 (sinf): Define using libm_alias_float.
20741 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20742 (fmaxf): Define using libm_alias_float.
20743 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
20744 (fminf): Define using libm_alias_float.
20745 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20746 <libm-alias-float.h>.
20747 (fmaf): Define using libm_alias_float.
20748
20749 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
20750 (asinh): Define using libm_alias_double.
20751 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
20752 (atan): Define using libm_alias_double.
20753 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
20754 (cbrt): Define using libm_alias_double.
20755 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
20756 (ceil): Define using libm_alias_double.
20757 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
20758 (copysign): Define using libm_alias_double.
20759 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
20760 (expm1): Define using libm_alias_double.
20761 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
20762 (fabs): Define using libm_alias_double.
20763 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
20764 (fdim): Define using libm_alias_double.
20765 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
20766 (floor): Define using libm_alias_double.
20767 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
20768 (fmax): Define using libm_alias_double.
20769 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
20770 (fmin): Define using libm_alias_double.
20771 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
20772 (frexp): Define using libm_alias_double.
20773 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
20774 (llrint): Define using libm_alias_double.
20775 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
20776 (logb): Define using libm_alias_double.
20777 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
20778 (lrint): Define using libm_alias_double.
20779 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
20780 (nearbyint): Define using libm_alias_double.
20781 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
20782 (remquo): Define using libm_alias_double.
20783 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
20784 (rint): Define using libm_alias_double.
20785 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
20786 (trunc): Define using libm_alias_double.
20787 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
20788 (fmax): Define using libm_alias_double.
20789 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
20790 (fmin): Define using libm_alias_double.
20791 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
20792 (fma): Define using libm_alias_double.
20793
20794 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
20795
20796 [BZ #22370]
20797 * elf/dl-hwcaps.c (ROUND): Removed.
20798 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
20799 and ELF_NOTE_NEXT_OFFSET.
20800 * elf/dl-load.c (ROUND): Removed.
20801 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20802 * elf/readelflib.c (ROUND): Removed.
20803 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
20804 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
20805 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
20806 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
20807
20808 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20809
20810 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20811 [!__fmaf] (fmaf): Define using libm_alias_float.
20812
20813 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
20814 [!__fma] (fma): Define using libm_alias_double.
20815 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
20816
20817 2017-11-28 Mike FABIAN <mfabian@redhat.com>
20818
20819 [BZ #22336]
20820 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
20821 and implement the collation rules for cs from CLDR on top of that.
20822 * Makefile: Add cs_CZ.UTF-8 to test-input.
20823 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
20824
20825 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
20826
20827 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
20828
20829 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20830 Icarus Sparry <icarus.w.sparry@intel.com>
20831
20832 * benchtests/Makefile:Add BENCHSET to allow subsets of
20833 benchmarks to be run.
20834 * benchtests/README: Add documentation for: Running subsets of
20835 benchmarks.
20836
20837 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
20838
20839 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
20840 range of tests names.
20841
20842 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
20843 result from property and remove "max", min" and "mean" from
20844 required properties based on benchtests/bench-skeleton.c.
20845
20846 2017-11-28 Florian Weimer <fweimer@redhat.com>
20847
20848 [BZ #20826]
20849 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
20850 due to Internet requirement.
20851 * posix/Makefile (tests): Remove tst-getaddrinfo4,
20852 tst-getaddrinfo5.
20853 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
20854
20855 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20856
20857 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20858 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
20859 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20860 (sysdep_routines): Add memset-ultra1.
20861 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
20862 file.
20863 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
20864 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
20865 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
20866 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
20867 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
20868 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
20869 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
20870 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
20871
20872 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
20873 file.
20874 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
20875 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
20876 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
20877 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
20878 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
20879 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
20880 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
20881 macro.
20882 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20883 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
20884 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
20885 (sysdep_routines): Add memcpy-ultra1.
20886 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
20887 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
20888
20889 2017-11-28 Joseph Myers <joseph@codesourcery.com>
20890
20891 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
20892 (cfloat_versions): Take function argument without trailing 'f'.
20893 Call libm_alias_float_other.
20894 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
20895 * sysdeps/alpha/fpu/cargf.c: Likewise.
20896 * sysdeps/alpha/fpu/cimagf.c: Likewise.
20897 * sysdeps/alpha/fpu/conjf.c: Likewise.
20898 * sysdeps/alpha/fpu/crealf.c: Likewise.
20899 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
20900 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
20901 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
20902 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
20903 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
20904 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
20905 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
20906 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
20907 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
20908 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
20909 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
20910 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
20911 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
20912 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
20913 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
20914 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
20915 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
20916 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
20917 (clog10f): Use libm_alias_float_other.
20918 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20919 (ceilf): Define using libm_alias_float.
20920 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
20921 (copysignf): Define using libm_alias_float.
20922 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20923 (fabsf): Define using libm_alias_float.
20924 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
20925 (floorf): Define using libm_alias_float.
20926 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
20927 (fmaxf): Define using libm_alias_float.
20928 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
20929 (fminf): Define using libm_alias_float.
20930 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20931 (lrintf): Define using libm_alias_float.
20932 (llrintf): Likewise.
20933 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20934 (lroundf): Define using libm_alias_float.
20935 (llroundf): Likewise.
20936 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
20937 (rintf): Define using libm_alias_float.
20938 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
20939 (truncf): Define using libm_alias_float.
20940
20941 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
20942 (ceilf): Define using libm_alias_float.
20943 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
20944 (floorf): Define using libm_alias_float.
20945 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
20946 (fmaf): Define using libm_alias_float.
20947 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
20948 (fmaxf): Define using libm_alias_float.
20949 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
20950 (fminf): Define using libm_alias_float.
20951 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
20952 (llrintf): Define using libm_alias_float.
20953 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
20954 (llroundf): Define using libm_alias_float.
20955 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
20956 (lrintf): Define using libm_alias_float.
20957 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
20958 (lroundf): Define using libm_alias_float.
20959 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
20960 <libm-alias-float.h>.
20961 (nearbyintf): Define using libm_alias_float.
20962 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
20963 (rintf): Define using libm_alias_float.
20964 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
20965 (roundf): Define using libm_alias_float.
20966 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
20967 (truncf): Define using libm_alias_float.
20968
20969 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
20970 (ceil): Define using libm_alias_double.
20971 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
20972 (copysign): Define using libm_alias_double.
20973 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
20974 (fabs): Define using libm_alias_double.
20975 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
20976 (floor): Define using libm_alias_double.
20977 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
20978 (fmax): Define using libm_alias_double.
20979 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
20980 (fmin): Define using libm_alias_double.
20981 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
20982 (lrint): Define using libm_alias_double.
20983 (llrint): Likewise.
20984 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
20985 (lround): Define using libm_alias_double.
20986 (llround): Likewise.
20987 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
20988 (rint): Define using libm_alias_double.
20989 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
20990 (trunc): Define using libm_alias_double.
20991
20992 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
20993 (libm_alias_double_r): Add semicolon after weak_alias call.
20994
20995 2017-11-27 Joseph Myers <joseph@codesourcery.com>
20996
20997 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
20998 (ceil): Define using libm_alias_double.
20999 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21000 (floor): Define using libm_alias_double.
21001 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21002 (fma): Define using libm_alias_double.
21003 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21004 (fmax): Define using libm_alias_double.
21005 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21006 (fmin): Define using libm_alias_double.
21007 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21008 (llrint): Define using libm_alias_double.
21009 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21010 (llround): Define using libm_alias_double.
21011 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21012 (lrint): Define using libm_alias_double.
21013 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21014 (lround): Define using libm_alias_double.
21015 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21016 (nearbyint): Define using libm_alias_double.
21017 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21018 (rint): Define using libm_alias_double.
21019 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21020 (round): Define using libm_alias_double.
21021 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21022 (trunc): Define using libm_alias_double.
21023
21024 2017-11-27 Florian Weimer <fweimer@redhat.com>
21025
21026 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21027 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21028 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21029 (tests): Add tst-mlock2.
21030 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21031 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21032 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21033 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21034 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21035 for mlock. Document mlock2.
21036
21037 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21038
21039 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21040 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21041 Likewise.
21042 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21043 Likewise.
21044 * sysdeps/x86/Makeconfig: New file.
21045 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21046 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21047 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21048 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21049 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21050 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21051 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21052 Likewise.
21053 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21054 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21055 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21056 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21057 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21058 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21059 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21060 * manual/math.texi (Mathematics): Document support for _Float64x.
21061 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21062 * stdlib/Versions (GLIBC_2.27): Likewise.
21063 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21064 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21065 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21066 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21067 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21068 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21069 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21070 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21071 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21072 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21073 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21074 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21076 Likewise.
21077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21078 Likewise.
21079 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21080 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21081 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21082 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21083 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21084 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21085 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21086 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21087 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21088 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21089 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21090 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21091 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21092 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21093
21094 2017-11-27 Andreas Schwab <schwab@suse.de>
21095
21096 * elf/Makefile (dl-routines): Add dl-sort-maps.
21097 * elf/dl-sort-maps.c: New file.
21098 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21099 (_dl_sort_maps): Declare.
21100 * elf/dl-fini.c (_dl_sort_fini): Remove.
21101 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21102 * elf/dl-close.c (_dl_close_worker): Likewise.
21103 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21104 open-coding it.
21105 * elf/dl-open.c (dl_open_worker): Likewise.
21106
21107 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21108
21109 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21110 using libm_alias_float128.
21111 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21112 Likewise.
21113 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21114 Likewise.
21115 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21116 (setpayloadsigf128): Likewise.
21117 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21118 Likewise.
21119 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21120 Likewise.
21121
21122 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21123 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21124 -mfloat128 to CFLAGS.
21125 ($(foreach
21126 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21127 Likewise.
21128 (CFLAGS-libm-test-support-float64x.c): New variable.
21129 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21130 $(f128-loader-link) to gnulib-tests.
21131
21132 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21133 (libm_alias_float128_other_r): If
21134 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21135 alias.
21136 (libm_alias_float128_r): Add semicolon after weak_alias call.
21137 * sysdeps/generic/libm-alias-ldouble.h
21138 (libm_alias_ldouble_other_r_f128): New macro.
21139 (libm_alias_ldouble_other_r_f64x): Likewise.
21140 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21141 and libm_alias_ldouble_other_r_f64x.
21142 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21143 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21144 (libm_alias_ldouble_other_r_f128): New macro.
21145 (libm_alias_ldouble_other_r_f64x): Likewise.
21146 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21147 and libm_alias_ldouble_other_r_f64x.
21148
21149 * stdlib/strfroml.c: Always include <stdlib.h>.
21150 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21151 undefine as macro and define as weak alias.
21152 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21153 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21154 <stdlib.h>.
21155 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21156 Define and later undefine as macro and define as weak alias.
21157
21158 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21159 Define and later undefine as macro. Define as weak alias if
21160 [!USE_WIDE_CHAR].
21161 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21162 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21163 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21164 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21165 Define and later undefine as macro. Define as weak alias if
21166 [!USE_WIDE_CHAR].
21167 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21168 Define and later undefine as macro. Define as weak alias if
21169 [USE_WIDE_CHAR].
21170 * sysdeps/ieee754/float128/strtof128_l.c
21171 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21172 Define and later undefine as macro. Define as weak alias if
21173 [!USE_WIDE_CHAR].
21174 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21175 Define and later undefine as macro. Define as weak alias if
21176 [USE_WIDE_CHAR].
21177 * sysdeps/ieee754/ldbl-128/strtold_l.c
21178 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21179 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21180 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21181 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21182 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21183 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21184 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21185 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21186 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21187 * sysdeps/ieee754/ldbl-96/strtold_l.c
21188 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21189 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21190 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21191 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21192
21193 * math/test-float64x.h: New file.
21194 * math/Makefile (type-float64x-yes): New variable.
21195 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21196
21197 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21198 function-like macro.
21199 (min_of_type_): Likewise.
21200 (min_of_type_l): Likewise.
21201 (min_of_type_f128): Likewise.
21202 (min_of_type): Pass () as last argument of __MATH_TG.
21203
21204 * stdlib/tst-strtod-round-skeleton.c
21205 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21206 headers.
21207
21208 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21209 for combinations of long double with _Float64 and _Float64x.
21210
21211 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21212 (__DECL_SIMD_cosf32): Likewise.
21213 (__DECL_SIMD_cosf64): Likewise.
21214 (__DECL_SIMD_cosf32x): Likewise.
21215 (__DECL_SIMD_cosf64x): Likewise.
21216 (__DECL_SIMD_cosf128x): Likewise.
21217 (__DECL_SIMD_sinf16): Likewise.
21218 (__DECL_SIMD_sinf32): Likewise.
21219 (__DECL_SIMD_sinf64): Likewise.
21220 (__DECL_SIMD_sinf32x): Likewise.
21221 (__DECL_SIMD_sinf64x): Likewise.
21222 (__DECL_SIMD_sinf128x): Likewise.
21223 (__DECL_SIMD_sincosf16): Likewise.
21224 (__DECL_SIMD_sincosf32): Likewise.
21225 (__DECL_SIMD_sincosf64): Likewise.
21226 (__DECL_SIMD_sincosf32x): Likewise.
21227 (__DECL_SIMD_sincosf64x): Likewise.
21228 (__DECL_SIMD_sincosf128x): Likewise.
21229 (__DECL_SIMD_logf16): Likewise.
21230 (__DECL_SIMD_logf32): Likewise.
21231 (__DECL_SIMD_logf64): Likewise.
21232 (__DECL_SIMD_logf32x): Likewise.
21233 (__DECL_SIMD_logf64x): Likewise.
21234 (__DECL_SIMD_logf128x): Likewise.
21235 (__DECL_SIMD_expf16): Likewise.
21236 (__DECL_SIMD_expf32): Likewise.
21237 (__DECL_SIMD_expf64): Likewise.
21238 (__DECL_SIMD_expf32x): Likewise.
21239 (__DECL_SIMD_expf64x): Likewise.
21240 (__DECL_SIMD_expf128x): Likewise.
21241 (__DECL_SIMD_powf16): Likewise.
21242 (__DECL_SIMD_powf32): Likewise.
21243 (__DECL_SIMD_powf64): Likewise.
21244 (__DECL_SIMD_powf32x): Likewise.
21245 (__DECL_SIMD_powf64x): Likewise.
21246 (__DECL_SIMD_powf128x): Likewise.
21247
21248 * stdlib/Versions (libc): Move entries for wcstof128 and
21249 wcstof128_l to ....
21250 * wcsmbs/Versions (libc): ... here.
21251 Include <float128-abi.h>.
21252
21253 2017-11-24 Florian Weimer <fweimer@redhat.com>
21254
21255 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21256 bits/mman-shared.h.
21257 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21258 <bits/mman-shared.h>.
21259 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21260 to ...
21261 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21262 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21263 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21264 <bits/mman-shared.h>.
21265
21266 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21267
21268 [BZ #22457]
21269 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21270 posix_memalign/free.
21271 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21272
21273 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21274
21275 [BZ #22469]
21276 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21277 and implement the collation rules for pl from CLDR on top of that.
21278 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21279 of locales to be built for testing.
21280 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21281
21282 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21283
21284 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21285 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21286 libm_alias_ldouble_other.
21287 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21288 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21289 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21290 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21291 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21292 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21293 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21294 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21295 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21296 libm_alias_ldouble_r.
21297 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21298 libm_alias_ldouble_other.
21299 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21300 (log10l): Likewise.
21301 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21302 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21303 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21304 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21305 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21306 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21307 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21308 (atan2l): Likewise.
21309 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21310 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21311 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21312 libm_alias_ldouble.
21313 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21314 (cosl): Likewise.
21315 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21316 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21317 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21318 (expl): Likewise.
21319 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21320 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21321 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21322 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21323 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21324 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21325 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21326 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21327 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21328 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21329 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21330 libm_alias_ldouble.
21331 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21332 libm_alias_ldouble_other.
21333 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21334 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21335 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21336 libm_alias_ldouble.
21337 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21338 libm_alias_ldouble_other.
21339 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21340 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21341 * sysdeps/ia64/fpu/w_lgammal_main.c
21342 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21343 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21344
21345 2017-11-23 Florian Weimer <fweimer@redhat.com>
21346
21347 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21348 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21349 alike. Remove freeres marker.
21350 * malloc/arena.c (arena_thread_freeres): Call
21351 tcache_thread_shutdown.
21352
21353 2017-11-23 Florian Weimer <fweimer@redhat.com>
21354
21355 [BZ #22459]
21356 Export nscd hash function as __nss_hash.
21357 * include/nss.h (__nss_hash): Declare.
21358 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21359 symbol.
21360 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21361 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21362 of __nscd_hash.
21363 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21364 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21365 * nss/Makefiles (routines): Add nss_hash.
21366 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21367 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21368 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21369 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21370
21371 2017-11-23 Florian Weimer <fweimer@redhat.com>
21372
21373 [BZ #22478]
21374 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21375 Return error code, not -1.
21376 * signal/tst-sigwait-eintr.c: New file.
21377 * signal/Makefile (tests): Add tst-sigwait-eintr.
21378
21379 2017-11-23 Florian Weimer <fweimer@redhat.com>
21380
21381 Linux: Add memfd_create system call wrapper
21382 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21383 tst-memfd_create.
21384 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21385 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21386 [__USE_GNU] (memfd_create): Declare.
21387 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21388 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21389 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21390 * sysdeps/unix/sysv/linux/**.abilist: Update.
21391 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21392
21393 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21394
21395 * localedata/gen-locale.sh: Fix typo in variable name.
21396
21397 * resolv/res_debug.c (p_secstodate): Condition definition on
21398 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21399 directly as __p_secstodate, and as a compat symbol. Do not use
21400 libresolv_hidden_def.
21401 * resolv/resolv.h (p_secstodate): Remove macro and function
21402 declaration.
21403 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21404 using p_secstodate.
21405 * include/resolv.h (__p_secstodate): Do not use
21406 libresolv_hidden_proto.
21407 * resolv/Makefile (tests): Move tst-p_secstodate to ....
21408 (tests-internal): ... here.
21409 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
21410 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
21411 and declare and use __p_secstodate and use compat_symbol_reference
21412 in that case.
21413 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
21414 implementation returning 77.
21415
21416 [BZ #22463]
21417 * resolv/res_debug.c: Include <libc-diag.h>.
21418 (p_secstodate): Assert time_t at least as wide as u_long. On
21419 overflow, use integer seconds since the epoch as output, or use
21420 "<overflow>" as output and set errno to EOVERFLOW if integer
21421 seconds since the epoch would be 14 or more characters.
21422 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
21423 for sprintf call.
21424 * resolv/tst-p_secstodate.c: New file.
21425 * resolv/Makefile (tests): Add tst-p_secstodate.
21426 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
21427
21428 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
21429 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
21430 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
21431
21432 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
21433
21434 * posix/regcomp.c (init_word_char): Add comments.
21435
21436 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21437
21438 [BZ #22447]
21439 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
21440 strlen to compute length of ut_user and set trailing NUL byte of
21441 result explicitly.
21442
21443 2017-11-21 Mike FABIAN <mfabian@redhat.com>
21444
21445 [BZ #15537]
21446 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
21447 using “copy "iso14651_t1"” and then implementing the
21448 collation rules for lv from CLDR on top of that.
21449 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
21450 of locales to be built for testing.
21451 * lv_LV.UTF-8.in: New file with test data to test the Latvian
21452 sorting.
21453
21454 2017-11-21 Joseph Myers <joseph@codesourcery.com>
21455
21456 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21457 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
21458 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
21459 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
21460 [__USE_MISC] (MADV_HWPOISON): New macro.
21461 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
21462
21463 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21464
21465 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
21466 -Wmissing-braces on GCC 4.9.
21467
21468 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21469
21470 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
21471 * sysdeps/s390/s390-32/start.S (_start): Likewise
21472 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
21473 (thread_start): Likewise.
21474 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
21475 (thread_start): Likewise.
21476 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
21477 (__makecontext_ret): Likewise.
21478 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
21479 (__makecontext_ret): Likewise.
21480
21481 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
21482
21483 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
21484 __wcschrnul): Remove attribute_hidden.
21485
21486 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
21487
21488 regex: don't assume uint64_t or uint32_t
21489 This avoids -Werror=overflow errors for 32-bit systems in
21490 the 64-bit case. Problem reported by Joseph Myers in:
21491 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
21492 Also, when this code is used in Gnulib it ports to platforms
21493 that lack uint64_t and uint32_t. The C standard doesn't guarantee
21494 them, and on some 32-bit compilers there is no uint64_t.
21495 Problem reported by Gianluigi Tiesi in:
21496 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
21497 * posix/regcomp.c (init_word_char): Don't assume that the types
21498 uint64_t and uint32_t exist. Adapted from Gnulib patch
21499 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
21500 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
21501
21502 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
21503
21504 * sysdeps/aarch64/memset-reg.h: New file.
21505 * sysdeps/aarch64/memset.S: Use it.
21506 (__memset): Rename to MEMSET macro.
21507 [ZVA_MACRO]: Use zva_macro.
21508 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21509 Add memset_generic and memset_falkor.
21510 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
21511 (__libc_ifunc_impl_list): Add memset ifuncs.
21512 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
21513 local variable zva_size.
21514 * sysdeps/aarch64/multiarch/memset.c: New file.
21515 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
21516 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
21517 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
21518 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
21519 (DCZID_DZP_MASK): New macro.
21520 (DCZID_BS_MASK): Likewise.
21521 (init_cpu_features): Read and set zva_size.
21522 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
21523 (struct cpu_features): New member zva_size.
21524
21525 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
21526 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
21527 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
21528
21529 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
21530 backwards. Fix timing computation.
21531 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
21532 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
21533 on memset by N at a time. Fix timing computation.
21534
21535 2017-11-20 Florian Weimer <fweimer@redhat.com>
21536
21537 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
21538 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
21539
21540 2017-11-19 Florian Weimer <fweimer@redhat.com>
21541
21542 manual: Document mprotect
21543 * manual/memory.texi (Memory Protection): New section.
21544 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
21545 documentation of PROT_* flags and reference the Memory Protection
21546 section instead.
21547
21548 2017-11-19 Florian Weimer <fweimer@redhat.com>
21549
21550 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
21551 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
21552 (Scatter-Gather): ... to here. Remove misleading comment.
21553
21554 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
21555
21556 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
21557 style.
21558
21559 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
21560 when /proc/<pid>/setgroups does not exist.
21561
21562 2017-11-18 Florian Weimer <fweimer@redhat.com>
21563
21564 * sysdeps/unix/sysv/linux/tst-ttyname.c
21565 (become_root_in_mount_ns): Remove.
21566 (do_in_chroot_1): Call support_enter_mount_namespace.
21567 (do_in_chroot_2): Likewise.
21568 (do_test): Call support_become_root early.
21569
21570 2017-11-18 Florian Weimer <fweimer@redhat.com>
21571
21572 * support/namespace.h (support_enter_mount_namespace): Declare.
21573 * support/support_enter_mount_namespace.c: New file.
21574 * support/Makefile (libsupport-routines): Add
21575 support_enter_mount_namespace.
21576
21577 2017-11-18 Florian Weimer <fweimer@redhat.com>
21578
21579 * support/temp_file.c (support_create_temp_directory): Use
21580 test_dir and do not rely on the presence of the XXXXXX suffix.
21581 * support/temp_file.h (support_create_temp_directory): Update
21582 comment.
21583 * support/tst-xreadlink.c (do_test): Adjust.
21584 * support/support_chroot.c (support_chroot_create): Likewise.
21585
21586 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21587
21588 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
21589 macro.
21590 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
21591 htm-no-suspend.
21592
21593 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21594
21595 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21596 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21597 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21598 (ceill): Define using libm_alias_ldouble.
21599 * sysdeps/x86_64/fpu/s_copysignl.S: Include
21600 <libm-alias-ldouble.h>.
21601 (copysignl): Define using libm_alias_ldouble.
21602 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21603 (fabsl): Define using libm_alias_ldouble.
21604 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21605 (floorl): Define using libm_alias_ldouble.
21606 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21607 (fmaxl): Define using libm_alias_ldouble.
21608 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21609 (fminl): Define using libm_alias_ldouble.
21610 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21611 (llrintl): Define using libm_alias_ldouble.
21612 (lrintl): Likewise.
21613 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
21614 <libm-alias-ldouble.h>.
21615 (nearbyintl): Define using libm_alias_ldouble.
21616 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21617 (truncl): Define using libm_alias_ldouble.
21618 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
21619 <libm-alias-ldouble.h>.
21620 (lrintl): Define using libm_alias_ldouble.
21621
21622 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
21623 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
21624 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
21625 (asinhl): Define using libm_alias_ldouble.
21626 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
21627 (atanl): Define using libm_alias_ldouble.
21628 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
21629 (cbrtl): Define using libm_alias_ldouble.
21630 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
21631 (ceill): Define using libm_alias_ldouble.
21632 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
21633 (copysignl): Define using libm_alias_ldouble.
21634 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
21635 (fabsl): Define using libm_alias_ldouble.
21636 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
21637 (floorl): Define using libm_alias_ldouble.
21638 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21639 (fmaxl): Define using libm_alias_ldouble.
21640 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21641 (fminl): Define using libm_alias_ldouble.
21642 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
21643 (frexpl): Define using libm_alias_ldouble.
21644 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
21645 (llrintl): Define using libm_alias_ldouble.
21646 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
21647 (logbl): Define using libm_alias_ldouble.
21648 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
21649 (lrintl): Define using libm_alias_ldouble.
21650 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
21651 (nearbyintl): Define using libm_alias_ldouble.
21652 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
21653 (nextafterl): Define using libm_alias_ldouble.
21654 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
21655 (remquol): Define using libm_alias_ldouble.
21656 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
21657 (rintl): Define using libm_alias_ldouble.
21658 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
21659 (truncl): Define using libm_alias_ldouble.
21660 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
21661 (fmaxl): Define using libm_alias_ldouble.
21662 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
21663 (fminl): Define using libm_alias_ldouble.
21664
21665 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
21666 to C syntax instead of availability and properties of types.
21667 * bits/floatn.h [!__ASSEMBLER]: Likewise.
21668 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
21669 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
21670 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
21671 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
21672 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
21673
21674 2017-11-17 Florian Weimer <fweimer@redhat.com>
21675
21676 support_become_root: Enable file creation in namespaces.
21677 * support/support_become_root.c (setup_mapping): New function.
21678 (support_become_root): Call it.
21679
21680 2017-11-17 Joseph Myers <joseph@codesourcery.com>
21681
21682 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
21683 macro.
21684
21685 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21686
21687 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
21688 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
21689
21690 2017-11-16 Joseph Myers <joseph@codesourcery.com>
21691
21692 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
21693
21694 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
21695 version to 4.14.
21696
21697 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
21698
21699 * INSTALL: Fix botched up regeneration.
21700
21701 * NEWS: Update sourceare link to https.
21702 * configure.ac: Likewise.
21703 * crypt/md5test-giant.c: Likewise.
21704 * dlfcn/bug-atexit1.c: Likewise.
21705 * dlfcn/bug-atexit2.c: Likewise.
21706 * localedata/README: Likewise.
21707 * malloc/tst-mallocfork.c: Likewise.
21708 * manual/install.texi: Likewise.
21709 * nptl/tst-pthread-getattr.c: Likewise.
21710 * stdio-common/tst-fgets.c: Likewise.
21711 * stdio-common/tst-fwrite.c: Likewise.
21712 * sunrpc/Makefile: Likewise.
21713 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
21714 * wcsmbs/tst-mbrtowc2.c: Likewise.
21715 * configure: Regenerate.
21716 * INSTALL: Regenerate.
21717
21718 2017-11-15 Martin Sebor <msebor@redhat.com>
21719
21720 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
21721 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
21722 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
21723
21724 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21725
21726 [BZ #22145]
21727 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
21728 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
21729
21730 [BZ #22145]
21731 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
21732 Defer is_pty check until end of the function.
21733 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21734
21735 [BZ #22145]
21736 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
21737 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
21738 (ttyname): Likewise.
21739 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
21740 (__ttyname_r): Likewise.
21741
21742 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
21743 int to bool.
21744
21745 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
21746
21747 * manual/terminal.texi (Is It a Terminal):
21748 Mention ENODEV for ttyname and ttyname_r.
21749
21750 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21751
21752 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
21753 constant and macro.
21754
21755 * sysdeps/unix/sysv/linux/bits/mman-linux.h
21756 [__USE_MISC] (MADV_WIPEONFORK): New macro.
21757 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21758 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
21759 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
21760 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
21761
21762 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21763
21764 * signal/sigrelse.c (sigrelse): Optimize implementation.
21765
21766 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
21767 (__sigpause): Rely on __sigsuspend to implement single thread
21768 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
21769
21770 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21771
21772 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
21773 kernel version to 4.14.
21774
21775 2017-11-15 Steve Ellcey <sellcey@cavium.com>
21776
21777 [BZ #22442]
21778 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
21779 Check if ifname is too long.
21780
21781 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
21782
21783 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
21784
21785 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21786
21787 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
21788 was accidentally lost.
21789
21790 2017-11-15 Mike FABIAN <mfabian@redhat.com>
21791
21792 * localedata/locales/az_IR: Add standard copyright header.
21793
21794 2017-11-15 Florian Weimer <fweimer@redhat.com>
21795
21796 [BZ #22439]
21797 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
21798 not just the top one. Output a new "subheaps" statistic.
21799
21800 2017-11-15 Florian Weimer <fweimer@redhat.com>
21801
21802 [BZ #22408]
21803 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
21804 under the per-arena lock.
21805 * malloc/Makefile (tests): Add tst-malloc_info.
21806 (tst-malloc_info): Link with libpthread.
21807 * malloc/tst-malloc_info.c: New file.
21808
21809 2017-11-15 Joseph Myers <joseph@codesourcery.com>
21810
21811 [BZ #21660]
21812 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
21813 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
21814 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
21815 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
21816 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
21817 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
21818 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
21819 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
21820 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
21821 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
21822 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
21823 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
21824 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
21825 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
21826 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
21827 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
21828 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
21829 (__floating_type): Likewise.
21830 (__real_integer_type): Likewise.
21831 (__complex_integer_type): Likewise.
21832 (__expr_is_real): Likewise.
21833 (__tgmath_real_type_sub): Likewise.
21834 (__tgmath_real_type): Likewise.
21835 (__tgmath_complex_type_sub): Likewise.
21836 (__tgmath_complex_type): Likewise.
21837 (__TGMATH_F128): Likewise.
21838 (__TGMATH_CF128): Likewise.
21839 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
21840 new macros.
21841 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
21842 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
21843 Likewise.
21844 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
21845 Likewise.
21846 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
21847 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
21848 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
21849 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
21850 Likewise.
21851 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
21852 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
21853 Likewise.
21854 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
21855 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
21856 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
21857 Likewise.
21858 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
21859 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
21860 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
21861 (cimag): Likewise.
21862 (creal): Likewise.
21863
21864 2017-11-14 Joseph Myers <joseph@codesourcery.com>
21865
21866 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
21867 for stpncpy calls for GCC 8.
21868 (test_strncat): Disable -Wstringop-truncation warning for strncat
21869 calls for GCC 8. Disable -Wstringop-overflow= warning for one
21870 strncat call for GCC 7.
21871 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
21872 calls for GCC 8.
21873 (test_memcmp): Use memcpy instead of strncpy for calls not copying
21874 trailing NUL.
21875
21876 * string/bug-strncat1.c: Include <libc-diag.h>.
21877 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
21878
21879 2017-11-13 Claude Paroz <claude@2xlibre.net>
21880
21881 [BZ #22387]
21882 * localedata/locales/aa_DJ: Improved readibility by replacing
21883 <Uxxxx> sequences in the ASCII printable range by their ASCII
21884 character equivalents.
21885 * localedata/locales/aa_ER: Likewise.
21886 * localedata/locales/aa_ER@saaho: Likewise.
21887 * localedata/locales/aa_ET: Likewise.
21888 * localedata/locales/af_ZA: Likewise.
21889 * localedata/locales/agr_PE: Likewise.
21890 * localedata/locales/ak_GH: Likewise.
21891 * localedata/locales/am_ET: Likewise.
21892 * localedata/locales/anp_IN: Likewise.
21893 * localedata/locales/ar_AE: Likewise.
21894 * localedata/locales/ar_BH: Likewise.
21895 * localedata/locales/ar_DZ: Likewise.
21896 * localedata/locales/ar_EG: Likewise.
21897 * localedata/locales/ar_IN: Likewise.
21898 * localedata/locales/ar_IQ: Likewise.
21899 * localedata/locales/ar_JO: Likewise.
21900 * localedata/locales/ar_KW: Likewise.
21901 * localedata/locales/ar_LB: Likewise.
21902 * localedata/locales/ar_LY: Likewise.
21903 * localedata/locales/ar_MA: Likewise.
21904 * localedata/locales/ar_OM: Likewise.
21905 * localedata/locales/ar_QA: Likewise.
21906 * localedata/locales/ar_SA: Likewise.
21907 * localedata/locales/ar_SD: Likewise.
21908 * localedata/locales/ar_SS: Likewise.
21909 * localedata/locales/ar_SY: Likewise.
21910 * localedata/locales/ar_TN: Likewise.
21911 * localedata/locales/ar_YE: Likewise.
21912 * localedata/locales/as_IN: Likewise.
21913 * localedata/locales/ast_ES: Likewise.
21914 * localedata/locales/ayc_PE: Likewise.
21915 * localedata/locales/az_AZ: Likewise.
21916 * localedata/locales/az_IR: Likewise.
21917 * localedata/locales/be_BY: Likewise.
21918 * localedata/locales/be_BY@latin: Likewise.
21919 * localedata/locales/bem_ZM: Likewise.
21920 * localedata/locales/ber_DZ: Likewise.
21921 * localedata/locales/ber_MA: Likewise.
21922 * localedata/locales/bg_BG: Likewise.
21923 * localedata/locales/bhb_IN: Likewise.
21924 * localedata/locales/bho_IN: Likewise.
21925 * localedata/locales/bi_VU: Likewise.
21926 * localedata/locales/bn_BD: Likewise.
21927 * localedata/locales/bn_IN: Likewise.
21928 * localedata/locales/bo_CN: Likewise.
21929 * localedata/locales/bo_IN: Likewise.
21930 * localedata/locales/br_FR: Likewise.
21931 * localedata/locales/brx_IN: Likewise.
21932 * localedata/locales/bs_BA: Likewise.
21933 * localedata/locales/byn_ER: Likewise.
21934 * localedata/locales/ca_AD: Likewise.
21935 * localedata/locales/ca_ES: Likewise.
21936 * localedata/locales/ca_FR: Likewise.
21937 * localedata/locales/ca_IT: Likewise.
21938 * localedata/locales/ce_RU: Likewise.
21939 * localedata/locales/chr_US: Likewise.
21940 * localedata/locales/cmn_TW: Likewise.
21941 * localedata/locales/crh_UA: Likewise.
21942 * localedata/locales/cs_CZ: Likewise.
21943 * localedata/locales/csb_PL: Likewise.
21944 * localedata/locales/cv_RU: Likewise.
21945 * localedata/locales/cy_GB: Likewise.
21946 * localedata/locales/da_DK: Likewise.
21947 * localedata/locales/de_AT: Likewise.
21948 * localedata/locales/de_BE: Likewise.
21949 * localedata/locales/de_CH: Likewise.
21950 * localedata/locales/de_DE: Likewise.
21951 * localedata/locales/de_IT: Likewise.
21952 * localedata/locales/de_LI: Likewise.
21953 * localedata/locales/de_LU: Likewise.
21954 * localedata/locales/doi_IN: Likewise.
21955 * localedata/locales/dv_MV: Likewise.
21956 * localedata/locales/dz_BT: Likewise.
21957 * localedata/locales/el_CY: Likewise.
21958 * localedata/locales/el_GR: Likewise.
21959 * localedata/locales/en_AG: Likewise.
21960 * localedata/locales/en_AU: Likewise.
21961 * localedata/locales/en_BW: Likewise.
21962 * localedata/locales/en_CA: Likewise.
21963 * localedata/locales/en_DK: Likewise.
21964 * localedata/locales/en_GB: Likewise.
21965 * localedata/locales/en_HK: Likewise.
21966 * localedata/locales/en_IE: Likewise.
21967 * localedata/locales/en_IL: Likewise.
21968 * localedata/locales/en_IN: Likewise.
21969 * localedata/locales/en_NG: Likewise.
21970 * localedata/locales/en_NZ: Likewise.
21971 * localedata/locales/en_PH: Likewise.
21972 * localedata/locales/en_SG: Likewise.
21973 * localedata/locales/en_US: Likewise.
21974 * localedata/locales/en_ZA: Likewise.
21975 * localedata/locales/en_ZM: Likewise.
21976 * localedata/locales/en_ZW: Likewise.
21977 * localedata/locales/eo: Likewise.
21978 * localedata/locales/es_AR: Likewise.
21979 * localedata/locales/es_BO: Likewise.
21980 * localedata/locales/es_CL: Likewise.
21981 * localedata/locales/es_CO: Likewise.
21982 * localedata/locales/es_CR: Likewise.
21983 * localedata/locales/es_CU: Likewise.
21984 * localedata/locales/es_DO: Likewise.
21985 * localedata/locales/es_EC: Likewise.
21986 * localedata/locales/es_ES: Likewise.
21987 * localedata/locales/es_GT: Likewise.
21988 * localedata/locales/es_HN: Likewise.
21989 * localedata/locales/es_MX: Likewise.
21990 * localedata/locales/es_NI: Likewise.
21991 * localedata/locales/es_PA: Likewise.
21992 * localedata/locales/es_PE: Likewise.
21993 * localedata/locales/es_PR: Likewise.
21994 * localedata/locales/es_PY: Likewise.
21995 * localedata/locales/es_SV: Likewise.
21996 * localedata/locales/es_US: Likewise.
21997 * localedata/locales/es_UY: Likewise.
21998 * localedata/locales/es_VE: Likewise.
21999 * localedata/locales/et_EE: Likewise.
22000 * localedata/locales/eu_ES: Likewise.
22001 * localedata/locales/eu_ES@euro: Likewise.
22002 * localedata/locales/fa_IR: Likewise.
22003 * localedata/locales/ff_SN: Likewise.
22004 * localedata/locales/fi_FI: Likewise.
22005 * localedata/locales/fil_PH: Likewise.
22006 * localedata/locales/fo_FO: Likewise.
22007 * localedata/locales/fr_BE: Likewise.
22008 * localedata/locales/fr_CA: Likewise.
22009 * localedata/locales/fr_CH: Likewise.
22010 * localedata/locales/fr_FR: Likewise.
22011 * localedata/locales/fr_LU: Likewise.
22012 * localedata/locales/fur_IT: Likewise.
22013 * localedata/locales/fy_DE: Likewise.
22014 * localedata/locales/fy_NL: Likewise.
22015 * localedata/locales/ga_IE: Likewise.
22016 * localedata/locales/gd_GB: Likewise.
22017 * localedata/locales/gez_ER: Likewise.
22018 * localedata/locales/gez_ET: Likewise.
22019 * localedata/locales/gl_ES: Likewise.
22020 * localedata/locales/gu_IN: Likewise.
22021 * localedata/locales/gv_GB: Likewise.
22022 * localedata/locales/ha_NG: Likewise.
22023 * localedata/locales/hak_TW: Likewise.
22024 * localedata/locales/he_IL: Likewise.
22025 * localedata/locales/hi_IN: Likewise.
22026 * localedata/locales/hif_FJ: Likewise.
22027 * localedata/locales/hne_IN: Likewise.
22028 * localedata/locales/hr_HR: Likewise.
22029 * localedata/locales/hsb_DE: Likewise.
22030 * localedata/locales/ht_HT: Likewise.
22031 * localedata/locales/hu_HU: Likewise.
22032 * localedata/locales/hy_AM: Likewise.
22033 * localedata/locales/i18n: Likewise.
22034 * localedata/locales/ia_FR: Likewise.
22035 * localedata/locales/id_ID: Likewise.
22036 * localedata/locales/ig_NG: Likewise.
22037 * localedata/locales/ik_CA: Likewise.
22038 * localedata/locales/is_IS: Likewise.
22039 * localedata/locales/it_CH: Likewise.
22040 * localedata/locales/it_IT: Likewise.
22041 * localedata/locales/iu_CA: Likewise.
22042 * localedata/locales/ja_JP: Likewise.
22043 * localedata/locales/ka_GE: Likewise.
22044 * localedata/locales/kk_KZ: Likewise.
22045 * localedata/locales/kl_GL: Likewise.
22046 * localedata/locales/kn_IN: Likewise.
22047 * localedata/locales/ko_KR: Likewise.
22048 * localedata/locales/kok_IN: Likewise.
22049 * localedata/locales/ks_IN: Likewise.
22050 * localedata/locales/ks_IN@devanagari: Likewise.
22051 * localedata/locales/ku_TR: Likewise.
22052 * localedata/locales/kw_GB: Likewise.
22053 * localedata/locales/ky_KG: Likewise.
22054 * localedata/locales/lb_LU: Likewise.
22055 * localedata/locales/lg_UG: Likewise.
22056 * localedata/locales/li_BE: Likewise.
22057 * localedata/locales/li_NL: Likewise.
22058 * localedata/locales/lij_IT: Likewise.
22059 * localedata/locales/ln_CD: Likewise.
22060 * localedata/locales/lo_LA: Likewise.
22061 * localedata/locales/lt_LT: Likewise.
22062 * localedata/locales/lv_LV: Likewise.
22063 * localedata/locales/lzh_TW: Likewise.
22064 * localedata/locales/mag_IN: Likewise.
22065 * localedata/locales/mai_IN: Likewise.
22066 * localedata/locales/mg_MG: Likewise.
22067 * localedata/locales/mhr_RU: Likewise.
22068 * localedata/locales/mi_NZ: Likewise.
22069 * localedata/locales/mk_MK: Likewise.
22070 * localedata/locales/ml_IN: Likewise.
22071 * localedata/locales/mn_MN: Likewise.
22072 * localedata/locales/mni_IN: Likewise.
22073 * localedata/locales/mr_IN: Likewise.
22074 * localedata/locales/ms_MY: Likewise.
22075 * localedata/locales/mt_MT: Likewise.
22076 * localedata/locales/my_MM: Likewise.
22077 * localedata/locales/nan_TW: Likewise.
22078 * localedata/locales/nan_TW@latin: Likewise.
22079 * localedata/locales/nb_NO: Likewise.
22080 * localedata/locales/nds_DE: Likewise.
22081 * localedata/locales/nds_NL: Likewise.
22082 * localedata/locales/ne_NP: Likewise.
22083 * localedata/locales/nhn_MX: Likewise.
22084 * localedata/locales/niu_NU: Likewise.
22085 * localedata/locales/niu_NZ: Likewise.
22086 * localedata/locales/nl_AW: Likewise.
22087 * localedata/locales/nl_BE: Likewise.
22088 * localedata/locales/nl_NL: Likewise.
22089 * localedata/locales/nn_NO: Likewise.
22090 * localedata/locales/nr_ZA: Likewise.
22091 * localedata/locales/nso_ZA: Likewise.
22092 * localedata/locales/oc_FR: Likewise.
22093 * localedata/locales/om_ET: Likewise.
22094 * localedata/locales/om_KE: Likewise.
22095 * localedata/locales/or_IN: Likewise.
22096 * localedata/locales/os_RU: Likewise.
22097 * localedata/locales/pa_IN: Likewise.
22098 * localedata/locales/pa_PK: Likewise.
22099 * localedata/locales/pap_AW: Likewise.
22100 * localedata/locales/pap_CW: Likewise.
22101 * localedata/locales/pl_PL: Likewise.
22102 * localedata/locales/ps_AF: Likewise.
22103 * localedata/locales/pt_BR: Likewise.
22104 * localedata/locales/pt_PT: Likewise.
22105 * localedata/locales/quz_PE: Likewise.
22106 * localedata/locales/raj_IN: Likewise.
22107 * localedata/locales/ro_RO: Likewise.
22108 * localedata/locales/ru_RU: Likewise.
22109 * localedata/locales/ru_UA: Likewise.
22110 * localedata/locales/rw_RW: Likewise.
22111 * localedata/locales/sa_IN: Likewise.
22112 * localedata/locales/sat_IN: Likewise.
22113 * localedata/locales/sc_IT: Likewise.
22114 * localedata/locales/sd_IN: Likewise.
22115 * localedata/locales/sd_IN@devanagari: Likewise.
22116 * localedata/locales/se_NO: Likewise.
22117 * localedata/locales/sgs_LT: Likewise.
22118 * localedata/locales/shs_CA: Likewise.
22119 * localedata/locales/si_LK: Likewise.
22120 * localedata/locales/sid_ET: Likewise.
22121 * localedata/locales/sk_SK: Likewise.
22122 * localedata/locales/sl_SI: Likewise.
22123 * localedata/locales/sm_WS: Likewise.
22124 * localedata/locales/so_DJ: Likewise.
22125 * localedata/locales/so_ET: Likewise.
22126 * localedata/locales/so_KE: Likewise.
22127 * localedata/locales/so_SO: Likewise.
22128 * localedata/locales/sq_AL: Likewise.
22129 * localedata/locales/sq_MK: Likewise.
22130 * localedata/locales/sr_ME: Likewise.
22131 * localedata/locales/sr_RS: Likewise.
22132 * localedata/locales/sr_RS@latin: Likewise.
22133 * localedata/locales/ss_ZA: Likewise.
22134 * localedata/locales/st_ZA: Likewise.
22135 * localedata/locales/sv_FI: Likewise.
22136 * localedata/locales/sv_SE: Likewise.
22137 * localedata/locales/sw_KE: Likewise.
22138 * localedata/locales/sw_TZ: Likewise.
22139 * localedata/locales/szl_PL: Likewise.
22140 * localedata/locales/ta_IN: Likewise.
22141 * localedata/locales/ta_LK: Likewise.
22142 * localedata/locales/tcy_IN: Likewise.
22143 * localedata/locales/te_IN: Likewise.
22144 * localedata/locales/tg_TJ: Likewise.
22145 * localedata/locales/th_TH: Likewise.
22146 * localedata/locales/the_NP: Likewise.
22147 * localedata/locales/ti_ER: Likewise.
22148 * localedata/locales/ti_ET: Likewise.
22149 * localedata/locales/tig_ER: Likewise.
22150 * localedata/locales/tk_TM: Likewise.
22151 * localedata/locales/tl_PH: Likewise.
22152 * localedata/locales/tn_ZA: Likewise.
22153 * localedata/locales/to_TO: Likewise.
22154 * localedata/locales/tpi_PG: Likewise.
22155 * localedata/locales/tr_CY: Likewise.
22156 * localedata/locales/tr_TR: Likewise.
22157 * localedata/locales/ts_ZA: Likewise.
22158 * localedata/locales/tt_RU: Likewise.
22159 * localedata/locales/tt_RU@iqtelif: Likewise.
22160 * localedata/locales/ug_CN: Likewise.
22161 * localedata/locales/uk_UA: Likewise.
22162 * localedata/locales/unm_US: Likewise.
22163 * localedata/locales/ur_IN: Likewise.
22164 * localedata/locales/ur_PK: Likewise.
22165 * localedata/locales/uz_UZ: Likewise.
22166 * localedata/locales/uz_UZ@cyrillic: Likewise.
22167 * localedata/locales/ve_ZA: Likewise.
22168 * localedata/locales/vi_VN: Likewise.
22169 * localedata/locales/wa_BE: Likewise.
22170 * localedata/locales/wae_CH: Likewise.
22171 * localedata/locales/wal_ET: Likewise.
22172 * localedata/locales/wo_SN: Likewise.
22173 * localedata/locales/xh_ZA: Likewise.
22174 * localedata/locales/yi_US: Likewise.
22175 * localedata/locales/yo_NG: Likewise.
22176 * localedata/locales/yue_HK: Likewise.
22177 * localedata/locales/yuw_PG: Likewise.
22178 * localedata/locales/zh_CN: Likewise.
22179 * localedata/locales/zh_HK: Likewise.
22180 * localedata/locales/zh_SG: Likewise.
22181 * localedata/locales/zh_TW: Likewise.
22182 * localedata/locales/zu_ZA: Likewise.
22183
22184 2017-11-13 Florian Weimer <fweimer@redhat.com>
22185
22186 * support/next_to_fault.h, support/next_to_fault.c: New files.
22187 * support/Makefile (libsupport-routines): Add next_to_fault.
22188 * resolv/tst-inet_pton.c (struct next_to_fault)
22189 (next_to_fault_allocate, next_to_fault_free): Remove.
22190 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22191
22192 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22193
22194 * elf/dl-support.c: Include <dl-procruntime.c>.
22195 * include/link.h: Include <link_map.h>.
22196 * sysdeps/generic/dl-procruntime.c: New file.
22197 * sysdeps/generic/link_map.h: Likewise.
22198 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22199 the writable ld.so namespace.
22200
22201 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22202
22203 timezone: pacify GCC -Wstringop-truncation
22204 Problem reported by Martin Sebor in:
22205 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22206 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22207
22208 2017-11-12 Florian Weimer <fweimer@redhat.com>
22209
22210 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22211 tst-xreadlink.
22212 (tests): Add tst-xreadlink.
22213 * support/support.h (xstrndup): Declare.
22214 * support/xunistd.h (xunlink, xreadlink): Declare.
22215 * support/temp_file.h (support_create_temp_directory): Declare.
22216 * support/temp_file.c (support_create_temp_directory): New function.
22217 * support/support_chroot.c (support_chroot_create): Use it.
22218 * support/xreadlink.c: New file.
22219 * support/xstrndup.c: Likewise.
22220 * support/xunlink.c: Likewise.
22221 * support/tst-xreadlink.c: Likewise.
22222
22223 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22224
22225 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22226
22227 2017-11-11 Florian Weimer <fweimer@redhat.com>
22228
22229 [BZ #22409]
22230 [BZ #22412]
22231 * resolv/res_comp.c (printable_string, binary_hnok)
22232 (binary_leading_dash): New functions.
22233 (res_hnok): Reimplement using these functions and ns_name_pton.
22234 (res_ownok): Likewise.
22235 (res_mailok): Reimplement using printable_string, ns_name_pton and
22236 binary_hnok.
22237 (res_dnok): Reimplement using printable_string and ns_name_pton.
22238 * resolv/tst-res_hnok.c (tests): Add additional tests.
22239 (LETTERDIGITS, PRINTABLE): Define.
22240 (do_test): Adjust one_char results.
22241
22242 2017-11-11 Florian Weimer <fweimer@redhat.com>
22243
22244 [BZ #22413]
22245 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22246 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22247
22248 2017-11-11 Florian Weimer <fweimer@redhat.com>
22249
22250 * resolv/tst-ns_name_pton.c: New file.
22251 * resolv/Makefile (tests): Add tst-ns_name_pton.
22252 (tst-ns_name_pton): Link against libresolv.
22253
22254 2017-11-11 Florian Weimer <fweimer@redhat.com>
22255
22256 * resolv/tst-res_hnok.c: New file.
22257 * resolv/Makefile (tests): Add tst-res_hnok.
22258 (tst-res_hnok): Link against libresolv.
22259
22260 2017-11-11 Florian Weimer <fweimer@redhat.com>
22261
22262 * resolv/tst-resolv-network.c: Use test framework instead explicit
22263 main function.
22264
22265 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22266
22267 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22268 <jmp_buf-macros.h>.
22269 [!_ISOMAC] (STR_HELPER): New.
22270 [!_ISOMAC] (STR): Likewise.
22271 [!_ISOMAC] (TEST_SIZE): Likewise.
22272 [!_ISOMAC] (TEST_ALIGN): Likewise.
22273 [!_ISOMAC] (TEST_OFFSET): Likewise.
22274 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22275 field offsets of jmp_buf as well as sigjmp_buf.
22276 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22277 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22278 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22279 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22280 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22281 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22282 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22283 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22284 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22285 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22286 Likewise.
22287 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22288 Likewise.
22289 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22291 Likewise.
22292 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22293 Likewise.
22294 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22295 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22296 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22297 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22298 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22299 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22300 Likewise.
22301 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22302 Likewise.
22303 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22304 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22305 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22306
22307 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22308
22309 * include/float.h
22310 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22311 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22312 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22313 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22314 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22315 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22316 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22317 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22318 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22319 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22320 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22321 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22322 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22323 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22324 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22325 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22326 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22327 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22328 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22329 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22330 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22331 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22332 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22333 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22334 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22335 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22336 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22337 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22338 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22339 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22340 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22341 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22342 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22343 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22344 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22345 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22346 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22347 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22348 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22349 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22350 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22351 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22352 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22353 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22354 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22355 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22356 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22357 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22358 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22359 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22360 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22361 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22362 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22363 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22365 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22367 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22369 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22371 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22373 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22375 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22377 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22379 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22381 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22383 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22385 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22387 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22389 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22391 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22393 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22395 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22397 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22398
22399 * stdlib/tst-strtod.h (F16): New macro.
22400 (F32): Likewise.
22401 (F64): Likewise.
22402 (F32X): Likewise.
22403 (F64X): Likewise.
22404 (F128X): Likewise.
22405 (IF_FLOAT16): Likewise.
22406 (IF_FLOAT32): Likewise.
22407 (IF_FLOAT64): Likewise.
22408 (IF_FLOAT32X): Likewise.
22409 (IF_FLOAT64X): Likewise.
22410 (IF_FLOAT128X): Likewise.
22411 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
22412 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
22413 (STRTOD_TEST_FOREACH): Likewise.
22414 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
22415 (CHOOSE_f64): Likewise.
22416 (CHOOSE_f32x): Likewise.
22417 (CHOOSE_f64x): Likewise.
22418
22419 2017-11-07 Andreas Schwab <schwab@suse.de>
22420
22421 * nptl/Makefile (tests-internal): Remove tst-typesizes.
22422
22423 2017-11-07 Mike FABIAN <mfabian@redhat.com>
22424
22425 [BZ #22403]
22426 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
22427 to be escaped.
22428 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
22429 to be escaped.
22430
22431 2017-11-07 Claude Paroz <claude@2xlibre.net>
22432
22433 [BZ #22403]
22434 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
22435 to be escaped.
22436 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
22437 to be escaped.
22438 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
22439 to be escaped.
22440
22441 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22442
22443 [BZ #22298]
22444 * nptl/allocatestack.c (allocate_stack): Check if
22445 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
22446 __PTHREAD_MUTEX_HAVE_PREV is defined.
22447 * nptl/descr.h (pthread): Likewise.
22448 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
22449 Likewise.
22450 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
22451 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
22452 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
22453 * sysdeps/nptl/bits/thread-shared-types.h
22454 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22455 defines.
22456 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
22457 of __WORDSIZE for internal layout.
22458 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
22459 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
22460 instead of __WORDSIZE whether to use an union for __spins and __list
22461 fields.
22462 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
22463 case.
22464 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
22465 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
22466 defines.
22467 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
22468 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22469 Likewise.
22470 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
22471 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22472 Likewise.
22473 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
22474 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22475 Likewise.
22476 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
22477 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22478 Likewise.
22479 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
22480 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22481 Likewise.
22482 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
22483 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22484 Likewise.
22485 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
22486 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22487 Likewise.
22488 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
22489 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22490 Likewise.
22491 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
22492 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22493 Likewise.
22494 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
22495 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22496 Likewise.
22497 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
22498 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22499 Likewise.
22500 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
22501 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22502 Likewise.
22503 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
22504 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22505 Likewise.
22506 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
22507 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
22508 Likewise.
22509
22510 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
22511 New macros.
22512 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
22513 checks for expected input type size.
22514 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
22515 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
22516 Likewise.
22517 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
22518 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
22519 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
22520 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
22521 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
22522 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
22523 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
22524 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
22525 superflous runtime assert check.
22526 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
22527 Likewise.
22528 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
22529 Likewise.
22530 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
22531 Likewise.
22532 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
22533 Likewise.
22534 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
22535 Likewise.
22536 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
22537 Likewise.
22538 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
22539 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
22540 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
22541 Likewise.
22542 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
22543 Likewise.
22544 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
22545 Likewise.
22546 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
22547 Likewise.
22548 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
22549 Likewise.
22550 * nptl/pthread_attr_setinheritsched.c
22551 (__pthread_attr_setinheritsched): Likewise.
22552 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
22553 Likewise.
22554 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
22555 Likewise.
22556 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
22557 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
22558 __old_pthread_attr_setstack): Likewise.
22559 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
22560 Likewise.
22561 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
22562 Likewise.
22563 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
22564 Likewise.
22565 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
22566 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
22567 Likewise.
22568 * nptl/tst-typesizes.c: Remove file.
22569
22570 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
22571 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
22572 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
22573 checks for internal pthread_mutex_t offsets.
22574 * sysdeps/aarch64/nptl/pthread-offsets.h
22575 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
22576 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
22577 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
22578 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
22579 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
22580 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
22581 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
22582 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
22583 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
22584 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
22585 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
22586 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
22587 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
22588 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
22589 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
22590 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
22591 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
22592 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
22593
22594 2017-11-07 Florian Weimer <fweimer@redhat.com>
22595
22596 * bits/mman-linux.h: Move ...
22597 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
22598 comment.
22599 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
22600 outdated comment.
22601
22602 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22603
22604 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
22605 Redefine STRNLEN as __strnlen_power8.
22606
22607 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22608
22609 * signal/sighold.c (sighold): Optimize implementation.
22610
22611 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
22612 __NR_rt_sigqueueinfo.
22613
22614 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
22615 __sigtimedwait.
22616 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
22617 assume __NR_rt_sigtimedwait.
22618 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
22619 and add LIBC_CANCEL_HANDLED for cancellation marking.
22620 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22621
22622 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22623 (sysdeps_routines): Add memchr_noneon.
22624 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
22625 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
22626 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
22627 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
22628 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
22629 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
22630 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
22631
22632 * sysdeps/arm/arm-ifunc.h: New file.
22633 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
22634 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
22635 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
22636 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
22637 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
22638 (__memcpy_neon): Avoid create hidden alias.
22639 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
22640 (__memcpy_vfp): Likewise.
22641 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
22642 (sysdep_routines): Add memcpy_arm.
22643 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
22644
22645 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
22646
22647 [BZ #22362]
22648 * Makerules (make-link-multidir): New.
22649 * config.make.in (multidir): New.
22650 * configure.ac (libc_cv_multidir): New. AC_SUBST.
22651 * configure: Regenerated.
22652 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
22653 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
22654 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
22655 New target.
22656
22657 2017-11-06 Joseph Myers <joseph@codesourcery.com>
22658
22659 [BZ #22402]
22660 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
22661 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
22662
22663 2017-11-04 Mike FABIAN <mfabian@redhat.com>
22664
22665 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
22666 to be escaped.
22667
22668 2017-11-04 Florian Weimer <fweimer@redhat.com>
22669
22670 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
22671
22672 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22673
22674 * math/math.h [__HAVE_DISTINCT_FLOAT16
22675 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22676 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22677 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22678 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
22679 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
22680 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
22681 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22682 (__MATH_TG_F32): New macro.
22683 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22684 (__MATH_TG_F64X): Likewise.
22685 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
22686 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
22687
22688 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
22689
22690 * po/de.po: Update translations.
22691 * po/ru.po: Likewise.
22692
22693 2017-11-03 Florian Weimer <fweimer@redhat.com>
22694
22695 * manual/filesys.texi (Hard Links): Document linkat.
22696
22697 2017-11-03 Joseph Myers <joseph@codesourcery.com>
22698
22699 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
22700 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
22701 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
22702 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
22703 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22704 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22705 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
22706 the same as _Float128.
22707 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
22708 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
22709 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
22710
22711 * stdlib/stdlib.h
22712 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
22713 Declare.
22714 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
22715 Likewise.
22716 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
22717 Likewise.
22718 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22719 (strtof32x): Likewise.
22720 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22721 (strtof64x): Likewise.
22722 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22723 (strtof128x): Likewise.
22724 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22725 (strfromf16): Likewise.
22726 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22727 (strfromf32): Likewise.
22728 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22729 (strfromf64): Likewise.
22730 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22731 (strfromf32x): Likewise.
22732 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22733 (strfromf64x): Likewise.
22734 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22735 (strfromf128x): Likewise.
22736 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
22737 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
22738 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
22739 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
22740 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
22741 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
22742
22743 2017-11-03 Richard Henderson <rth@twiddle.net>
22744
22745 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
22746
22747 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22748
22749 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
22750
22751 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22752
22753 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
22754 DT_TLSDESC_GOT initialization.
22755 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
22756 (_dl_tlsdesc_resolve_hold): Likewise.
22757 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
22758 (_dl_tlsdesc_resolve_hold): Likewise.
22759 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
22760 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22761
22762 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22763
22764 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
22765
22766 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22767
22768 [BZ #18572]
22769 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
22770 non-lazily for R_ARM_TLS_DESC.
22771
22772 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22773
22774 [BZ #17078]
22775 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
22776 R_ARM_TLS_DESC case.
22777 (elf_machine_lazy_rel): Remove the prelink check.
22778
22779 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22780
22781 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
22782 DT_TLSDESC_GOT initialization.
22783 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
22784 (_dl_tlsdesc_resolve_rela): Likewise.
22785 (_dl_tlsdesc_resolve_hold): Likewise.
22786 (_dl_tlsdesc_undefweak): Remove ldar.
22787 (_dl_tlsdesc_dynamic): Likewise.
22788 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
22789 (_dl_tlsdesc_resolve_rela): Likewise.
22790 (_dl_tlsdesc_resolve_hold): Likewise.
22791 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
22792 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
22793 (_dl_tlsdesc_resolve_rela): Likewise.
22794 (_dl_tlsdesc_resolve_hold): Likewise.
22795
22796 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22797
22798 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
22799 binding and initialization non-lazily for R_AARCH64_TLSDESC.
22800
22801 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22802
22803 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
22804 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
22805
22806 2017-11-02 Joseph Myers <joseph@codesourcery.com>
22807
22808 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
22809 Declare.
22810 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
22811 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
22812 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
22813 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
22814 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
22815 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
22816 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
22817 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
22818 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
22819 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
22820 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
22821
22822 2017-11-02 Mike FABIAN <mfabian@redhat.com>
22823
22824 [BZ #22382]
22825 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
22826 * localedata/locales/tpi_PG: Add standard header.
22827
22828 2017-11-02 Florian Weimer <fweimer@redhat.com>
22829
22830 test-errno-linux: quotactl can fail with EPERM in containers.
22831 * sysdeps/unix/sysv/linux/test-errno-linux.c
22832 (LIST, LIST_FORWARD): New macros.
22833 (check_error_in_list): New function.
22834 (test_wrp_rv): Accept list of permitted error codes.
22835 (test_wrp_rv2): Remove.
22836 (test_wrp): Call test_wrp_rv with list of error codes.
22837 (test_wrp2): Accept list of error codes.
22838 (do_test): Adjust. Allow EPERM for quotactl.
22839
22840 2017-11-02 Florian Weimer <fweimer@redhat.com>
22841
22842 * stdio-common/bug16.c (do_test): Use array_length.
22843 * stdio-common/errlist.c (_sys_nerr): Likewise.
22844 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
22845 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
22846 * stdio-common/psiginfo.c (psiginfo): Use array_length.
22847 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
22848 (do_test): Use array_length.
22849 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
22850 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
22851 * stdio-common/tst-printf-round.c (do_test): Likewise.
22852 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
22853 (CHECK): Use array_length.
22854 * stdio-common/tstdiomisc.c (t3, F): Likewise.
22855 * stdio-common/tstscanf.c (main): Likewise.
22856 * stdio-common/vfprintf.c (process_string_arg): Likewise.
22857
22858 2017-11-02 Florian Weimer <fweimer@redhat.com>
22859
22860 Add array_length and array_end macros.
22861 * include/array_length.h: New file.
22862
22863 2017-11-02 Florian Weimer <fweimer@redhat.com>
22864
22865 [BZ #22332]
22866 * posix/tst-glob-tilde.c (do_noescape): New variable.
22867 (one_test): Process it.
22868 (do_test): Set do_noescape. Add unescaping test case.
22869
22870 2017-11-01 Joseph Myers <joseph@codesourcery.com>
22871
22872 * math/complex.h
22873 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
22874 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
22875 with appropriate macros defined and undefined.
22876 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
22877 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22878 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
22879 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22880 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
22881 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22882 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
22883 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22884 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
22885 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
22886
22887 * math/complex.h
22888 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
22889 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
22890 that for long double. Do not condition define and undefine of
22891 _Mdouble_complex_ on [__CFLOAT128].
22892
22893 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
22894
22895 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22896 of <sysdeps/generic/sysdep.h>.
22897 (ALIGNARG): Removed.
22898 (ASM_SIZE_DIRECTIVE): Likewise.
22899 (ENTRY): Likewise.
22900 (END): Likewise.
22901 (ENTRY_CHK): Likewise.
22902 (END_CHK): Likewise.
22903 (syscall_error): Likewise.
22904 (mcount): Likewise.
22905 (PSEUDO_END): Likewise.
22906 (L): Likewise.
22907 (atom_text_section): Likewise.
22908 * sysdeps/x86/sysdep.h: New file.
22909 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
22910 of <sysdeps/generic/sysdep.h>.
22911 (ALIGNARG): Removed.
22912 (ASM_SIZE_DIRECTIVE): Likewise.
22913 (ENTRY): Likewise.
22914 (END): Likewise.
22915 (ENTRY_CHK): Likewise.
22916 (END_CHK): Likewise.
22917 (syscall_error): Likewise.
22918 (mcount): Likewise.
22919 (PSEUDO_END): Likewise.
22920 (L): Likewise.
22921 (atom_text_section): Likewise.
22922
22923 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
22924
22925 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
22926 category of LC_CTYPE set to "i18n:2012".
22927 * localedata/locales/i18n_ctype: Regenerate.
22928
22929 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
22930
22931 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
22932 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
22933 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
22934 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
22935
22936 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
22937 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
22938 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
22939 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
22940
22941 2017-10-31 Joseph Myers <joseph@codesourcery.com>
22942
22943 * math/complex.h
22944 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
22945 New macro.
22946 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
22947 Likewise.
22948 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
22949 Likewise.
22950 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22951 (CMPLXF32X): Likewise.
22952 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22953 (CMPLXF64X): Likewise.
22954 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
22955 (CMPLXF128X): Likewise.
22956
22957 * math/math.h
22958 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
22959 (__MATH_EVAL_FMT2): Define to add 0.0f.
22960
22961 2017-10-31 Alan Modra <amodra@gmail.com>
22962
22963 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
22964 include sysdep.h.
22965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
22966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
22967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
22968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
22969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
22970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
22971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
22972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
22973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
22974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
22975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
22976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
22977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
22978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
22979 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
22980 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
22981 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
22982 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
22983 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
22984 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
22985 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
22986 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
22987 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
22988 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
22989 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
22990 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
22991 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
22992 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
22993 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
22994 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
22995 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
22996 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
22997 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
22998 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
22999 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23000 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23001 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23002 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23003 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23004 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23005 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23006 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23007 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23008 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23009 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23010 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23011 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23012 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23013 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23014 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23015 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23016 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23017 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23018 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23019 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23020 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23021 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23022 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23023 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23024 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23025 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23026 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23027 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23028 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23029 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23030 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23031 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23032 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23033 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23034
23035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23036 include sysdep.h and math_ldbl_opt.h.
23037
23038 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23039 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23040 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23041 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23044 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23045 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23046 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23047 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23050 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23051 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23052 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23053 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23054 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23056 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23057 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23058 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23059 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23064
23065 2017-10-31 Alan Modra <amodra@gmail.com>
23066
23067 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23068 string/strncase_l.c, not string/strncase.c.
23069 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23070 (libc_hidden_def): Redefine.
23071
23072 2017-10-31 Alan Modra <amodra@gmail.com>
23073
23074 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23075 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23076 (__strcasecmp): Don't define.
23077
23078 2017-10-31 Alan Modra <amodra@gmail.com>
23079
23080 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23081 IS_IN (libc).
23082 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23083 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23084 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23085
23086 2017-10-31 Alan Modra <amodra@gmail.com>
23087
23088 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23089 USE_AS_STPNCPY.
23090
23091 2017-10-31 Alan Modra <amodra@gmail.com>
23092
23093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23094 Redefine only when SHARED.
23095
23096 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23097
23098 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23099 Include <bits/math-finite.h> with appropriate macros defined and
23100 undefined.
23101 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23102 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23103 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23104 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23105 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23106
23107 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23108 [!_Mlong_double_] (_Mlong_double_): Likewise.
23109 [!_Mfloat16_] (_Mfloat16_): Likewise.
23110 [!_Mfloat32_] (_Mfloat32_): Likewise.
23111 [!_Mfloat64_] (_Mfloat64_): Likewise.
23112 [!_Mfloat128_] (_Mfloat128_): Likewise.
23113 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23114 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23115 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23116 (_Mdouble_): Define without indirection through those macros.
23117 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23118 [!_Mfloat128_] (_Mfloat128_): Likewise.
23119 [_Mlong_double_] (_Mlong_double_): Likewise.
23120 (_Mdouble_): Define without indirection through those macros.
23121 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23122 not add -D_Mlong_double_=double.
23123 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23124 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23125
23126 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23127
23128 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23129
23130 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23131
23132 * sysdeps/x86/libc-start.c: Reformat.
23133
23134 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23135
23136 [BZ #22353]
23137 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23138 (1): Renamed to ...
23139 (L(Src0)): This.
23140 (L(Src1)): New.
23141 (L(Src2)): Likewise.
23142 (L(1)): Renamed to ...
23143 (L(Src3)): This.
23144
23145 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23146
23147 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23148 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23149 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23150 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23151 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23152 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23153 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23154 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23155 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23156 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23157 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23158 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23159 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23160 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23161 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23162 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23163 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23164 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23165 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23166 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23167 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23168 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23169 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23170 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23171 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23172 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23173 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23174 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23175 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23176 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23177 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23178 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23179 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23180 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23181 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23182 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23183 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23184 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23185 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23186 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23187 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23188 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23189 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23190 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23191 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23192 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23193 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23194 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23195 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23196 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23197 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23198 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23199 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23200 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23201 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23202 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23203 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23204 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23205 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23206 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23207 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23208 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23209 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23210 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23211 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23212 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23213
23214 2017-10-30 Florian Weimer <fweimer@redhat.com>
23215
23216 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23217 always defined.
23218 * io/tst-mkdirat.c (do_test): Likewise.
23219 * io/tst-mkfifoat.c (do_test): Likewise.
23220 * io/tst-mknodat.c (do_test): Likewise.
23221 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23222 * locale/programs/locale.c (select_dirs): Likewise.
23223 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23224 * posix/bug-glob2.c (my_readdir): Likewise.
23225 * posix/tst-dir.c (main): Likewise.
23226 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23227 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23228
23229 2017-10-30 Florian Weimer <fweimer@redhat.com>
23230
23231 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23232 just __USE_GNU.
23233
23234 2017-10-30 Florian Weimer <fweimer@redhat.com>
23235
23236 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23237 Convert to support/test-driver.c.
23238 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23239 New macro parameters.
23240 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23241 * posix/tst-gnuglob.c: New file.
23242 * posix/tst-gnuglob64.c: Likewise.
23243 * posix/Makefile (tests): Add tst-gnuglob64.
23244
23245 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23246
23247 [BZ #19485]
23248 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23249 and use a better translation for March in “mon”.
23250 * localedata/locales/csb_PL: Use more ASCII to improve the
23251 readability of the source.
23252
23253 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23254
23255 [BZ #13953]
23256 * localedata/locales/km_KH: Use ASCII as much
23257 as possible for better readability of the source and
23258 remove useless comments.
23259 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23260 was commented out and apparently wrong anyway because it was
23261 using Lao characters. If Buddhist era should be used
23262 for km_KH, a native speaker should write the correct formaat
23263 for Khmer.
23264 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23265 (According to CLDR, the first weekday for Cambodia is Sunday).
23266 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23267 (These were using Lao characters which must be wrong. If we get
23268 the correct data from a native speaker, we could add it back, until
23269 then it is better not to have name_mr and name_mrs at all than
23270 having it wrong).
23271
23272 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23273
23274 * locale/loadlocale.c: Correct size of
23275 _nl_value_type_LC_<category> arrays.
23276
23277 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23278
23279 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23280 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23281 with appropriate macros defined and undefined.
23282 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23283 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23284 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23285 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23286 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23287
23288 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23289
23290 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23291 "-O2 -march=i586".
23292
23293 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23294
23295 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23296 with lowercase letters to make it agree with CLDR.
23297
23298 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23299
23300 [BZ #15260]
23301 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23302 first letters of yesstr and nostr in yesexpr and noexpr,
23303 not for the full words.
23304 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23305 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23306 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23307 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23308 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23309 first letters of yesstr and nostr in yesexpr and noexpr,
23310 until now only English was matched in yesexpr and noexpr.
23311 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23312 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23313 fil but not for tl. As tl and fil are very similar, using fil
23314 is probably better than using English.
23315
23316 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23317
23318 [BZ #21706]
23319 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23320 in yesstr and nostr.
23321
23322 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23323
23324 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23325 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23326 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23327 Likewise.
23328 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23329 Likewise.
23330 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23331 Likewise.
23332 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23333 Likewise.
23334 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23335 (SNANF128X): Likewise.
23336
23337 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23338 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23339 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23340 (HUGE_VAL_F32): Likewise.
23341 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23342 (HUGE_VAL_F64): Likewise.
23343 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23344 (HUGE_VAL_F32X): Likewise.
23345 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23346 (HUGE_VAL_F64X): Likewise.
23347 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23348 (HUGE_VAL_F128X): Likewise.
23349
23350 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23351
23352 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23353 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23354 for the br_FR locale.
23355
23356 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23357
23358 [BZ #21706]
23359 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23360
23361 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23362
23363 * locale/programs/record-status.h: Define globals, and function
23364 prototypes. Move function bodies...
23365 * locale/programs/record-status.c: ... to here. New file.
23366 * iconv/Makefile (iconv_prog-modules): Add record-status.
23367 * locale/Makefile (lib-modules): Likewise.
23368 * iconv/iconv_prog.c: Remove verbose.
23369 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23370 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23371 record a warning about ASCII compatibility.
23372 * locale/programs/ld-monetary.c (monetary_finish): If
23373 warn_int_curr_symbol is true then record a warning about the symbol
23374 not being in our ISO 4217 list.
23375 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23376 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23377 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23378 (OPT_NO_WARN): Define.
23379 (OPT_WARN): Define.
23380 (options): Add entry for --no-warnings, and --warnings.
23381 (set_warnings): New function to enable/disable warnings.
23382 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23383 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23384 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23385 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23386 Pass flags to generate_locale.
23387 (generate_locale): Accept new flag argument and pass it to localedef
23388 invocation.
23389 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23390 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23391
23392 * localedata/Makefile (test-input-data): Use full file name.
23393 * localedata/da_DK.in: Rename to...
23394 * localedata/da_DK.ISO-8859-1.in: ...this.
23395 * localedata/de_DE.in: Rename to...
23396 * localedata/de_DE.ISO-8859-1.in: ...this.
23397 * localedata/en_US.in: Rename to...
23398 * localedata/en_US.ISO-8859-1.in: ...this.
23399 * localedata/fr_FR.in: Rename to...
23400 * localedata/fr_FR.UTF-8.in: ... this.
23401 * localedata/hr_HR.in: Rename to...
23402 * localedata/hr_HR.ISO-8859-2.in: ...this.
23403 * localedata/hu_HU.in: Rename to...
23404 * localedata/hu_HU.UTF-8.in: ...this.
23405 * localedata/si_LK.in: Rename to...
23406 * localedata/si_LK.UTF-8.in: ...this.
23407 * localedata/sv_SE.in: Rename to...
23408 * localedata/sv_SE.ISO-8859-1.in: ...this.
23409 * localedata/tr_TR.in: Rename to...
23410 * localedata/tr_TR.UTF-8.in: ...this.
23411 * localedata/uk_UA.in: Rename to...
23412 * localedata/uk_UA.UTF-8.in: ...this.
23413 * localedata/sort-test.sh: Test file is locale name with the
23414 suffix.
23415
23416 * localedata/unicode-gen/Makefile (check_i18n): Rename to
23417 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
23418 file.
23419 * localedata/locales/i18n_ctype: Regenerate.
23420 * localedata/locales/tr_TR: Likewise.
23421 * localedata/locales/translit_circle: Likewise.
23422 * localedata/locales/translit_cjk_compat: Likewise.
23423 * localedata/locales/translit_combining: Likewise.
23424 * localedata/locales/translit_compat: Likewise.
23425 * localedata/locales/translit_font: Likewise.
23426 * localedata/locales/translit_fraction: Likewise.
23427
23428 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23429
23430 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
23431 lxvd2x/stxvd2x with lvx/stvx.
23432 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
23433
23434 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
23435
23436 * include/alloc_buffer.h: Replace "if if " with "if " in
23437 comments.
23438 * sysdeps/mips/memcpy.S: Likkewise.
23439 * sysdeps/mips/memset.S: Likewise.
23440 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
23441 Likewise.
23442 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
23443 Likewise.
23444 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
23445 Likewise.
23446
23447 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23448
23449 [BZ #15261]
23450 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
23451 yesexpr and noexpr.
23452 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23453 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23454 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23455 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23456 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23457 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23458 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23459
23460 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23461
23462 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
23463 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23464 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23465 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23466 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23467 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
23468 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23469 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23470 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23471 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23472 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23473 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23474
23475 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23476
23477 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
23478 as possible for better readability of the source.
23479 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
23480 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
23481 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
23482 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
23483 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
23484 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
23485 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
23486 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
23487 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
23488 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
23489 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
23490 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
23491 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
23492 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
23493 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
23494 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
23495 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
23496 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
23497 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
23498 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
23499 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
23500 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
23501 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
23502 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
23503 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
23504 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
23505 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
23506 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
23507 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
23508 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
23509 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
23510 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
23511 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
23512 * localedata/locales/en_US (LC_MESSAGES): Likewise.
23513 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
23514 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
23515 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
23516 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
23517 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
23518 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
23519 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
23520 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
23521 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
23522 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
23523 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
23524 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
23525 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
23526 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
23527 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
23528 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
23529 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
23530 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
23531 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
23532 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
23533 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
23534 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
23535 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
23536 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23537 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
23538 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
23539 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
23540 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
23541 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
23542 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
23543 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
23544 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
23545 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
23546 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
23547 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
23548 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
23549 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
23550 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
23551 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
23552 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
23553 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
23554 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
23555 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
23556 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
23557 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
23558 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
23559 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
23560 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
23561 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
23562 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
23563 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
23564 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
23565 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
23566 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
23567 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
23568 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
23569 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
23570 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
23571 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
23572 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
23573 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
23574 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
23575 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
23576 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
23577 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
23578 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
23579 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
23580 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
23581 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
23582 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
23583 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
23584 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
23585 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
23586 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
23587 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
23588 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
23589 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
23590 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
23591 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
23592 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
23593 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
23594 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
23595 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
23596 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
23597 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
23598 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
23599 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
23600 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
23601 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
23602 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
23603 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
23604 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
23605 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
23606 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
23607 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
23608 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
23609 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
23610 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
23611 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
23612 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
23613 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
23614 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
23615 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
23616 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
23617 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
23618 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
23619 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
23620 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
23621 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
23622 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
23623 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
23624 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
23625 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
23626 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
23627 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
23628 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
23629 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
23630 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
23631 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
23632 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
23633 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
23634 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
23635 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
23636 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
23637 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
23638 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
23639 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
23640 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
23641 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
23642 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
23643 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
23644 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
23645 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
23646 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
23647 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
23648 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
23649 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
23650 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
23651 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
23652 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
23653
23654 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23655
23656 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
23657 (Use first letters of yesstr and nostr correctly instead of using
23658 full words).
23659
23660 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23661
23662 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
23663 (Use first letters of yesstr and nostr correctly).
23664
23665 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23666
23667 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
23668 also check for the first characters of yesstr and nostr.
23669 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
23670 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
23671
23672 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23673
23674 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
23675 also check for Chinese characters.
23676
23677 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23678
23679 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
23680 match also for the contents of yesstr and nostr. As the first letter
23681 of yesstr and nostr is equal, checking only for the first letter
23682 is not enough.
23683
23684 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23685
23686 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
23687 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
23688
23689 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23690
23691 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
23692 of main contributor.
23693
23694 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23695
23696 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
23697 instead of using English.
23698
23699 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23700
23701 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
23702 by including the first letters of nostr and yesexpr in the regexp.
23703 Also make it more readable by using ASCII where possible.
23704
23705 2017-10-25 Mike FABIAN <mfabian@redhat.com>
23706
23707 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
23708 the first letter of nostr in the regexp. It agrees with CLDR now.
23709 Also make it more readable by using ASCII where possible.
23710
23711 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23712
23713 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
23714 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
23715 these strings contain a U+17D6 (which somewhat looks like a colon)
23716 instead of a real colon to separate the full words for “yes”
23717 and “no” from the single letter responses.
23718
23719 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23720
23721 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
23722 it agree with CLDR (include the first letter of yesstr).
23723 Also make it more readable by using ASCII where possible.
23724
23725 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23726
23727 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
23728 and improve yesexpr and noexpr. The yesstr and nostr apparently
23729 came from CLDR. And CLDR has a bug there: these strings contain
23730 a U+0903 (which looks like a colon) instead of a real colon
23731 to separate the full words for “yes” and “no” from the single
23732 letter responses.
23733
23734 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23735
23736 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
23737 letters of the full yesstr and nostr in yesexpr and noexpr.
23738
23739 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23740
23741 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
23742 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
23743 * localedata/locales/an_ES: Make source more readable by using ASCII
23744 where possible.
23745
23746 2017-10-24 Mike FABIAN <mfabian@redhat.com>
23747
23748 [BZ #20952]
23749 * localedata/locales/yuw_PG: New file.
23750 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
23751 * locale/iso-639.def: Add Yau (Uruwa).
23752
23753 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23754
23755 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
23756
23757 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
23758
23759 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
23760 (__libc_realloc): Likewise.
23761 (_mid_memalign): Likewise.
23762 (__libc_calloc): Likewise.
23763
23764 2017-10-23 Mike FABIAN <mfabian@redhat.com>
23765
23766 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
23767 by adding the generic +1 and -0 as in all other locales.
23768 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
23769 day names and make it more readable by using ASCII where possible.
23770
23771 2017-10-24 Joseph Myers <joseph@codesourcery.com>
23772
23773 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
23774 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
23775
23776 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23777
23778 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
23779 WNOHANG in waitpid call.
23780
23781 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
23782
23783 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
23784 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
23785
23786 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
23787 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
23788 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
23789 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
23790 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
23791 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
23792 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
23793 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
23794 variables.
23795
23796 2017-10-23 Michael Collison <michael.collison@arm.com>
23797
23798 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
23799 with __builtin_sqrt.
23800 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
23801 with __builtin_sqrtf.
23802 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
23803 with __builtin_ceil.
23804 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
23805 with __builtin_ceilf.
23806 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
23807 with __builtin_floor.
23808 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
23809 with __builtin_floorf.
23810 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
23811 with __builtin_fma.
23812 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
23813 with __builtin_fmaf.
23814 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
23815 with __builtin_fmax.
23816 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
23817 with __builtin_fmaxf.
23818 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
23819 with __builtin_fmin.
23820 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
23821 with __builtin_fminf.
23822 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
23823 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
23824 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
23825 with builtin_rint and conversion to int.
23826 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
23827 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
23828 with builtin_llround.
23829 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
23830 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
23831 with builtin_rint and conversion to long int.
23832 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
23833 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
23834 with builtin_lround.
23835 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
23836 with builtin_lroundf.
23837 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
23838 statements with __builtin_nearbyint.
23839 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
23840 statements with __builtin_nearbyintf.
23841 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
23842 with __builtin_rint.
23843 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
23844 with __builtin_rintf.
23845 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
23846 with __builtin_round.
23847 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
23848 with __builtin_roundf.
23849 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
23850 with __builtin_trunc.
23851 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
23852 with __builtin_truncf.
23853 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
23854 and s_l[l]round[f].c too.
23855
23856 2017-10-23 Alan Modra <amodra@gmail.com>
23857
23858 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
23859 Adjust stack after restoring regs. Add missing LR cfi_restore.
23860
23861 2017-10-23 Alan Modra <amodra@gmail.com>
23862
23863 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
23864 Move LR save and frame setup/teardown and LR restore to
23865 immediately around memset call. Provide cfi.
23866
23867 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23868
23869 * sysdeps/i386/fpu/e_powf.S: Removed.
23870 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
23871 * sysdeps/i386/fpu/w_powf.c: Likewise.
23872 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
23873 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23874 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23875 Add e_powf-sse2.
23876 (CFLAGS-e_powf-sse2.c): New.
23877 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
23878 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
23879
23880 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23881
23882 * sysdeps/i386/fpu/e_log2f.S: Removed.
23883 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
23884 * sysdeps/i386/fpu/w_log2f.c: Likewise.
23885 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
23886 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23887 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23888 Add e_log2f-sse2.
23889 (CFLAGS-e_log2f-sse2.c): New.
23890 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
23891 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
23892
23893 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23894
23895 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23896 Add e_powf-fma.
23897 (CFLAGS-e_powf-fma.c): New.
23898 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
23899 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
23900
23901 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23902
23903 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23904 Add e_log2f-fma.
23905 (CFLAGS-e_log2f-fma.c): New.
23906 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
23907 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
23908
23909 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23910
23911 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23912 Add e_logf-fma.
23913 (CFLAGS-e_logf-fma.c): New.
23914 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
23915 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
23916
23917 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23918
23919 * sysdeps/i386/fpu/e_logf.S: Removed.
23920 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
23921 * sysdeps/i386/fpu/w_logf.c: Likewise.
23922 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
23923 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
23924 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23925 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23926 Add e_logf-sse2.
23927 (CFLAGS-e_logf-sse2.c): New.
23928 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
23929 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
23930
23931 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23932
23933 * sysdeps/i386/fpu/e_exp2f.S: Removed.
23934 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
23935 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
23936 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23937 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23938 Add e_exp2f-sse2.
23939 (CFLAGS-e_exp2f-sse2.c): New.
23940 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
23941 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
23942
23943 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23944
23945 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23946 Add e_exp2f-fma.
23947 (CFLAGS-e_exp2f-fma.c): New.
23948 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
23949 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
23950
23951 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23952
23953 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
23954 * sysdeps/i386/fpu/e_expf.S: Likewise.
23955 * sysdeps/i386/fpu/math_errf.c: Likewise.
23956 * sysdeps/i386/fpu/w_expf.c: Likewise.
23957 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
23958 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
23959 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
23960 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
23961 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23962 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
23963 Remove e_expf-ia32.
23964 (CFLAGS-e_expf-sse2.c): New.
23965 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
23966 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
23967
23968 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
23969
23970 * sysdeps/x86_64/fpu/e_expf.S: Removed.
23971 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
23972 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
23973 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
23974 e_expf.c.
23975 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
23976 New.
23977 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
23978 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
23979 Renamed to ...
23980 (__redirect_expf): This.
23981 (SYMBOL_NAME): Changed to expf.
23982 (__ieee754_expf): Renamed to ...
23983 (__expf): This.
23984 (__GI___expf): This.
23985 (__ieee754_expf): Add strong_alias.
23986 (__expf_finite): Likewise.
23987 (__expf): New.
23988 Include <sysdeps/ieee754/flt-32/e_expf.c>.
23989
23990 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
23991
23992 [BZ #22332]
23993 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
23994 unescaping.
23995
23996 2017-10-21 Florian Weimer <fweimer@redhat.com>
23997
23998 * posix/Makefile (tests): Add tst-glob-tilde.
23999 (tests-special): Add tst-glob-tilde-mem.out
24000 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24001 (tst-glob-tilde-mem.out): Add mtrace check.
24002 * posix/tst-glob-tilde.c: New file.
24003
24004 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24005
24006 * bits/floatn-common.h: New file.
24007 * math/Makefile (headers): Add bits/floatn-common.h.
24008 * bits/floatn.h: Include <bits/floatn-common.h>.
24009 * sysdeps/ia64/bits/floatn.h: Likewise.
24010 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24011 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24012 * sysdeps/powerpc/bits/floatn.h: Likewise.
24013 * sysdeps/x86/bits/floatn.h: Likewise.
24014
24015 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24016
24017 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24018 indicates whether compiler emits an warning for alias for
24019 functions with incompatible types.
24020
24021 [BZ #22273]
24022 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24023 the auxiliary process is terminated by a signal before calling _exit
24024 or execve.
24025
24026 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24027
24028 [BZ #21265]
24029 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24030 New.
24031 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24032 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24033 and bit_arch_XSAVEC_Usable if needed.
24034 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24035 and bit_arch_Use_dl_runtime_resolve_opt.
24036 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24037 Removed.
24038 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24039 (bit_arch_Prefer_No_AVX512): Updated.
24040 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24041 (bit_arch_XSAVEC_Usable): New.
24042 (STATE_SAVE_OFFSET): Likewise.
24043 (STATE_SAVE_MASK): Likewise.
24044 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24045 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24046 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24047 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24048 (index_arch_XSAVEC_Usable): New.
24049 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24050 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24051 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24052 is enabled.
24053 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24054 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24055 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24056 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24057 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24058 _dl_runtime_resolve_xsavec.
24059 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24060 Removed.
24061 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24062 instead of VEC_SIZE.
24063 (REGISTER_SAVE_BND0): Removed.
24064 (REGISTER_SAVE_BND1): Likewise.
24065 (REGISTER_SAVE_BND3): Likewise.
24066 (REGISTER_SAVE_RAX): Always defined to 0.
24067 (VMOV): Removed.
24068 (_dl_runtime_resolve_avx): Likewise.
24069 (_dl_runtime_resolve_avx_slow): Likewise.
24070 (_dl_runtime_resolve_avx_opt): Likewise.
24071 (_dl_runtime_resolve_avx512): Likewise.
24072 (_dl_runtime_resolve_avx512_opt): Likewise.
24073 (_dl_runtime_resolve_sse): Likewise.
24074 (_dl_runtime_resolve_sse_vex): Likewise.
24075 (USE_FXSAVE): New.
24076 (_dl_runtime_resolve_fxsave): Likewise.
24077 (USE_XSAVE): Likewise.
24078 (_dl_runtime_resolve_xsave): Likewise.
24079 (USE_XSAVEC): Likewise.
24080 (_dl_runtime_resolve_xsavec): Likewise.
24081 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24082 Removed.
24083 (_dl_runtime_resolve_avx512_opt): Likewise.
24084 (_dl_runtime_resolve_avx): Likewise.
24085 (_dl_runtime_resolve_avx_opt): Likewise.
24086 (_dl_runtime_resolve_sse): Likewise.
24087 (_dl_runtime_resolve_sse_vex): Likewise.
24088 (_dl_runtime_resolve_fxsave): New.
24089 (_dl_runtime_resolve_xsave): Likewise.
24090 (_dl_runtime_resolve_xsavec): Likewise.
24091
24092 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24093
24094 [BZ #22320]
24095 CVE-2017-15670
24096 * posix/glob.c (__glob): Fix one-byte overflow.
24097
24098 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24099
24100 * malloc/malloc.c (sysdep-cancel.h): Add include.
24101
24102 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24103
24104 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24105
24106 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24107
24108 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24109 (tests): Remove $(objpfx)ga_test depdendency.
24110 * resolv/ga_test.c: Remove file.
24111
24112 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24113
24114 [BZ #18812]
24115 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24116 * localedata/locales/kab_DZ: New file.
24117
24118 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24119
24120 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24121 _dl_relocate_static_pie instead of _dl_start to compute load
24122 address in static PIE.
24123
24124 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24125
24126 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24127
24128 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24129
24130 [BZ #13605]
24131 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24132 * localedata/locales/shn_MM: New file.
24133
24134 2017-10-20 Florian Weimer <fweimer@redhat.com>
24135
24136 [BZ #22321]
24137 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24138 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24139 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24140 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24141 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24142 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24143
24144 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24145
24146 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24147
24148 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24149
24150 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24151
24152 [BZ #22322]
24153 * sysdeps/mips/bits/long-double.h: Move to ....
24154 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24155
24156 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24157
24158 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24159
24160 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24161 H.J. Lu <hongjiu.lu@intel.com>
24162
24163 [BZ #22299]
24164 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24165 GLRO(dl_platform) to NULL.
24166 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24167 (modules-names): Add tst-platformmod-1 and
24168 x86_64/tst-platformmod-2.
24169 (CFLAGS-tst-platform-1.c): New.
24170 (CFLAGS-tst-platformmod-1.c): Likewise.
24171 (CFLAGS-tst-platformmod-2.c): Likewise.
24172 (LDFLAGS-tst-platformmod-2.so): Likewise.
24173 ($(objpfx)tst-platform-1): Likewise.
24174 ($(objpfx)tst-platform-1.out): Likewise.
24175 (tst-platform-1-ENV): Likewise.
24176 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24177 * sysdeps/x86_64/tst-platform-1.c: New file.
24178 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24179 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24180
24181 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24182
24183 [BZ #13994]
24184 * locale/iso-639.def: Add Karbi.
24185 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24186 * localedata/locales/mjw_IN: New file.
24187
24188 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24189
24190 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24191 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24192 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24193 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24194 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24195 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24196 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24197 <bits/floatn.h>.
24198 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24199 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24200 * manual/math.texi (Mathematics): Document additional architecture
24201 support for _Float128.
24202 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24203 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24204 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24205 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24206 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24207 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24208 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24209 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24210 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24211 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24212 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24213 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24214 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24215 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24216 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24217
24218 2017-10-18 Renlin Li <renlin.li@arm.com>
24219
24220 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24221 _DYNAMIC symbol to calculate load address.
24222
24223 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24224
24225 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24226 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24227 summary bits.
24228 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24229 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24230
24231 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24232
24233 [BZ #16777]
24234 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24235 and improve readability by using more ASCII.
24236 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24237 and improve readability by using more ASCII.
24238
24239 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24240
24241 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24242 not all targets support atomics on bool.
24243
24244 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24245
24246 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24247 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24248 __f128.
24249 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24250 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24251 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24252 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24253 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24254 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24255
24256 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24257
24258 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24259 defines.
24260
24261 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24262
24263 [BZ #22159]
24264 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24265 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24266 (do_check_remalloced_chunk): Fix build bug.
24267 (do_check_malloc_state): Add assert that checks arena->top.
24268 (malloc_consolidate): Remove initialization.
24269 (int_mallinfo): Remove call to malloc_consolidate.
24270 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24271
24272 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24273
24274 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24275 (have_fastchunks): Remove.
24276 (clear_fastchunks): Remove.
24277 (set_fastchunks): Remove.
24278 (malloc_state): Add have_fastchunks.
24279 (malloc_init_state): Use have_fastchunks.
24280 (do_check_malloc_state): Remove incorrect invariant checks.
24281 (_int_malloc): Use have_fastchunks.
24282 (_int_free): Likewise.
24283 (malloc_consolidate): Likewise.
24284
24285 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24286
24287 * malloc/malloc.c (tcache_put): Inline.
24288 (tcache_get): Inline.
24289
24290 2017-10-17 Jordi Mallach <jordi@gnu.org>
24291
24292 Aurelien Jarno <aurelien@aurel32.net>
24293 [BZ #2522]
24294 * localedata/locales/ca_ES@valencia: New file.
24295 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24296
24297 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24298
24299 [BZ #22296]
24300 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24301 < 6.x
24302
24303 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24304
24305 * scripts/build-many-glibcs.py (Context.add_all_configs):
24306 Add arm-linux-gnueabihf multiarch extra_glibcs.
24307
24308 * sysdeps/generic/ifunc-init.h: New file.
24309 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24310
24311 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24312
24313 [BZ #22019]
24314 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24315 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24316 * stdlib/tst-strfmon_l.c: adapt test case.
24317
24318 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24319
24320 * sysdeps/generic/float128-abi.h: New file.
24321 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24322 non-__prefixed symbols to ....
24323 * math/Versions: ... here. Include <float128-abi.h>.
24324 * stdlib/Versions ... and here. Include <float128-abi.h>
24325
24326 2017-10-16 Florian Weimer <fweimer@redhat.com>
24327
24328 * version.h (VERSION): Switch to ".9000" as the development
24329 version suffix.
24330
24331 2017-10-16 Florian Weimer <fweimer@redhat.com>
24332
24333 [BZ #22050]
24334 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24335 compat_symbol_reference to access non-default version.
24336
24337 2017-10-16 Florian Weimer <fweimer@redhat.com>
24338
24339 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24340
24341 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24342
24343 * include/shlib-compat.h (compat_symbol_reference): Update
24344 comment.
24345
24346 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24347
24348 * math/Makefile (test-types): Add
24349 $(type-float128-$(float128-alias-fcts)).
24350 * math/test-float128.h (TYPE_STR): Define conditional on
24351 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24352 (ULP_IDX): Likewise.
24353 (ULP_I_IDX): Likewise.
24354
24355 * stdlib/strtold.c: Include <bits/floatn.h>
24356 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24357 and later undefine as macro. Define as weak alias if
24358 [!USE_WIDE_CHAR].
24359 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24360 and later undefine as macro. Define as weak alias if
24361 [USE_WIDE_CHAR].
24362 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24363 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24364 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24365 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24366 Define and later undefine as macro. Define as weak alias if
24367 [USE_WIDE_CHAR].
24368 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24369 <bits/floatn.h>.
24370 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24371 Define and later undefine as macro. Define as weak alias if
24372 [!USE_WIDE_CHAR].
24373 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24374 Define and later undefine as macro. Define as weak alias if
24375 [USE_WIDE_CHAR].
24376
24377 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24378
24379 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24380 record_verbose messages.
24381
24382 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24383
24384 [BZ #22052]
24385 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24386 to silence -O3 -Wall warning with GCC 7.
24387
24388 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24389
24390 * Makeconfig (+link-static-before-libc): Use the first of
24391 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24392 * gmon/Makefile (tests): Add tst-gmon-static.
24393 (tests-static): Likewise.
24394 (CFLAGS-tst-gmon-static.c): New.
24395 (CRT-tst-gmon-static): Likewise.
24396 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24397 (tst-gmon-static-ENV): Likewise.
24398 (tests-special): Likewise.
24399 ($(objpfx)tst-gmon-static.out): Likewise.
24400 (clean-tst-gmon-static-data): Likewise.
24401 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24402 * gmon/tst-gmon-static-gprof.sh: New file.
24403 * gmon/tst-gmon-static.c: Likewise.
24404
24405 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24406
24407 [BZ #22295]
24408 * locale/programs/linereader.c (get_string): Don't warn on
24409 non-symbolic character.
24410
24411 [BZ #22294]
24412 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
24413 int_curr_symbol.
24414
24415 [BZ #22292]
24416 * locale/programs/record-status.h: New file
24417 * locale/programs/locale.c: Add comment.
24418 * locale/programs/charmap-dir.c: Don't include error.h.
24419 (charmap_opendir): Use record_error.
24420 * locale/programs/charmap.c: Don't include error.h.
24421 (charmap_read): Use record_error, and record_warning.
24422 (parse_charmap): Likewise.
24423 * locale/programs/ld-address.c: Don't include error.h.
24424 (address_finish): Use record_error, and record_warning.
24425 * locale/programs/ld-collate.c: Don't include error.h.
24426 (collate_finish): Use record_error, and record_error_at_line.
24427 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
24428 (ctype_class_new): Likewise.
24429 (ctype_map_new): Likewise.
24430 (set_one_default): Likewise.
24431 (set_class_defaults): Likewise.
24432 (translit_flatten): Likewise.
24433 (allocate_arrays): Use record_error, and record_verbose.
24434 * locale/programs/ld-identification.c: Don't include error.h.
24435 (indentation_finish): Use record_error and record_warning.
24436 * locale/programs/ld-measurement.c: Don't include error.h.
24437 (measurement_finish): Use record_error.
24438 * locale/programs/ld-messages.c
24439 (message_finish): Likewise.
24440 * locale/programs/ld-monetary.c
24441 (monetary_finish): Likewise.
24442 * locale/programs/ld-name.c (name_finish): Use record_error
24443 and record_warning.
24444 * locale/programs/ld-numeric.c
24445 (numeric_finish): Use record_error.
24446 * locale/programs/ld-paper.c: Don't include error.h.
24447 (paper_finish): Use record_error.
24448 * locale/programs/ld-telephone.c: Don't include error.h.
24449 (telephone_finish): Use record_error.
24450 * locale/programs/ld-time.c (time_finish): Likewise.
24451 * locale/programs/linereader.h (lr_error): Make inline func.
24452 * locale/programs/localedef.c: Define recorded_warning_count,
24453 and recorded_error_count.
24454 (main): Use record_error. Use recorded_error_count and
24455 recorded_warning_count to issue correct error returns.
24456 (add_to_readlist): Use record_error.
24457 (find_locale): Likewise.
24458 (load_locale): Likewise.
24459 * locale/programs/localedef.h: Remove be_quiet
24460 and WITH_CUR_LOCALE.
24461 * locale/programs/locarchive.c (compare_from_file): Use
24462 record_error.
24463 * locale/programs/locfile.c (write_locale_data): Use
24464 record_error.
24465 * locale/programs/repertoire.c: Dont include error.h.
24466 (repertoire_complain): Use record_error.
24467 * localedata/tst-fmon.sh: Expect failures from localedef.
24468 * localedata/tst-locale.sh: Likewise.
24469 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
24470
24471 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
24472 (REPORTS): Likewise.
24473 (check): Likewise.
24474 (i18n): Rename to...
24475 (i18n_ctype): ...this.
24476 (i18n-report): Rename to...
24477 (i18n_ctype-report): ...this.
24478 * localedata/locales/i18n_ctype: Regenerate.
24479 * localedata/locales/i18n: copy i18n_ctype.
24480
24481 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24482
24483 * stdlib/strfroml.c: Include <bits/floatn.h>.
24484 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
24485 Define before include of <stdlib.h> and undefine afterwards, then
24486 define as weak alias.
24487
24488 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
24489 Undefine and restore default definition. Use
24490 libm_alias_ldouble_other.
24491
24492 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
24493
24494 [BZ #22153]
24495 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
24496 in coredumps.
24497
24498 2017-10-13 James Clarke <jrtc27@jrtc27.com>
24499
24500 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
24501 Assign sym_map to be map for local symbols, as TLS relocations
24502 use sym_map to determine whether the symbol is defined and to
24503 extract the TLS information.
24504 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
24505 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
24506
24507 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24508
24509 [BZ #22189]
24510 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
24511 (math_force_eval): Add powerpc version.
24512
24513 [BZ #22142]
24514 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
24515 -DBL_MAX.
24516 (do_test): Likewise.
24517 * stdio-common/tst-printf.sh: Likewise.
24518 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
24519 ifdef clause in order to set the carry bit right. Replace r0 by
24520 0 without changing the behavior.
24521
24522 2017-10-13 Joseph Myers <joseph@codesourcery.com>
24523
24524 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
24525 <libm-alias-ldouble.h>.
24526 (fabsl): Define using libm_alias_ldouble.
24527 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
24528 <libm-alias-ldouble.h>.
24529 (fabsl): Define using libm_alias_ldouble.
24530
24531 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
24532 Remove conditional code.
24533
24534 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
24535 Rename to __clog10_internal_l.
24536 (__clog10_internal_l): Define aliases using
24537 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
24538 with __clog10.
24539
24540 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24541
24542 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
24543 * benchtests/sincosf-inputs: New file.
24544 * benchtests/cosf-inputs: New file.
24545 * benchtests/sinf-inputs: New file.
24546
24547 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24548
24549 * posix/tst-spawn.c (do_test): Wait for both children.
24550
24551 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
24552
24553 [BZ #22284]
24554 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
24555 tests-pie): Add tst-gmon-pie.
24556 (CFLAGS-tst-gmon-pie.c): New.
24557 (CRT-tst-gmon-pie): Likewise.
24558 (tst-gmon-pie-ENV): Likewise.
24559 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
24560 ($(objpfx)tst-gmon-pie.out): Likewise.
24561 (clean-tst-gmon-pie-data): Likewise.
24562 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
24563 * gmon/gmon.c [PIC]: Include <link.h>.
24564 [PIC] (callback): New function.
24565 (write_hist): Add an argument for load address. Subtract load
24566 address from PCs.
24567 (write_call_graph): Likewise.
24568 (write_gmon): Call __dl_iterate_phdr to get load address, pass
24569 it to write_hist and write_call_graph.
24570 * gmon/tst-gmon-pie.c: New file.
24571
24572 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24573
24574 * math/Makefile (test-types-basic): New variable.
24575 (test-types): Likewise.
24576 (libm-test-support): Use $(test-types) instead of $(types).
24577 (libm-tests-base-normal): Likewise.
24578 (libm-tests-base-finite): Likewise.
24579 (libm-tests-base-inline): Likewise.
24580 (generated): Likewise.
24581 ($(objpfx)libm-test-support-$(t).c): Likewise.
24582 (libm-tests-for-type iterator): Likewise.
24583 (libm-test-support iterator): Likewise.
24584 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
24585 (ulp_idx): Use ULP_IDX.
24586 * math/test-ldouble.h: Include <float.h>.
24587 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
24588 (ULP_IDX): New macro.
24589 (ULP_I_IDX): Likewise.
24590 * math/test-double.h (ULP_IDX): Likewise.
24591 (ULP_I_IDX): Likewise.
24592 * math/test-float.h (ULP_IDX): Likewise.
24593 (ULP_I_IDX): Likewise.
24594 * math/test-float128.h (ULP_IDX): Likewise.
24595 (ULP_I_IDX): Likewise.
24596
24597 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24598
24599 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
24600 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24601 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24602 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
24603 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24604 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
24605 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
24606 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24607 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24608 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24609 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
24610 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24611 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24612 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
24613 (SINGLE_THREAD_BY_GLOBAL): Define.
24614 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24615 Likewise.
24616 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24617 Likewise.
24618 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24619 Likewise.
24620 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24621 Likewise.
24622 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
24623 (SINGLE_THREAD_BY_GLOBAL): Likewise.
24624 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
24625 Likewise.
24626
24627 2017-10-11 Andreas Schwab <schwab@suse.de>
24628
24629 * nis/Makefile (aux): Remove.
24630 * nscd/Makefile (aux): Add nscd_hash.
24631 (nscd-modules): Likewise.
24632 ($(objpfx)nscd): Don't depend on libnsl.
24633 * nscd/nscd_hash.c: New file.
24634 * nscd/nscd_hash.h: Likewise.
24635 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
24636 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
24637 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
24638 instead of <nis/rpcsvc/nis.h>.
24639 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
24640
24641 2017-10-11 Florian Weimer <fweimer@redhat.com>
24642
24643 [BZ #22078]
24644 Avoid large NSS buffers with many addresses, aliases.
24645 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
24646 using dynarrays and struct alloc_buffer.
24647 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
24648 (tst-nss-files-hosts-multi): Link with -ldl.
24649 * nss/tst-nss-files-hosts-multi.c: New file.
24650
24651 2017-10-11 Florian Weimer <fweimer@redhat.com>
24652
24653 [BZ #18023]
24654 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
24655 scratch_buffer. Eliminate gotos.
24656
24657 2017-10-11 Joseph Myers <joseph@codesourcery.com>
24658
24659 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
24660 libm_alias_ldouble_other.
24661 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
24662 undefine and redefine.
24663 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24664 (exp10l): Do not define here.
24665 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
24666 (weak_alias): Undefine and redefine.
24667 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
24668 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24669 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
24670 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
24671
24672 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
24673 [!__fma] (fma): Define using libm_alias_double.
24674 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
24675 [!__fmaf] (fmaf): Define using libm_alias_float.
24676 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
24677 (fmal): Define using libm_alias_ldouble.
24678
24679 2017-10-10 Joseph Myers <joseph@codesourcery.com>
24680
24681 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
24682 New macro.
24683 (libm_alias_double_other): Likewise.
24684 (libm_alias_double_r): Use libm_alias_double_other_r.
24685 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
24686 New macro.
24687 (libm_alias_float_other): Likewise.
24688 (libm_alias_float_r): Use libm_alias_float_other_r.
24689 * sysdeps/generic/libm-alias-float128.h
24690 (libm_alias_float128_other_r): New macro.
24691 (libm_alias_float128_other): Likewise.
24692 (libm_alias_float128_r): Use libm_alias_float128_other_r.
24693 * sysdeps/generic/libm-alias-ldouble.h
24694 (libm_alias_ldouble_other_r): New macro.
24695 (libm_alias_ldouble_other): Likewise.
24696 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24697 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24698 (libm_alias_double_other_r): New macro.
24699 (libm_alias_double_other): Likewise.
24700 (libm_alias_double_r): Use libm_alias_double_other_r.
24701 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24702 (libm_alias_ldouble_other_r): New macro.
24703 (libm_alias_ldouble_other): Likewise.
24704 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
24705 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
24706 [!USE_AS_COMPAT]: Use libm_alias_double_other.
24707 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
24708 [!USE_AS_COMPAT]: Use libm_alias_float_other.
24709 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
24710 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
24711 * math/w_exp2f.c: Use libm_alias_float_other.
24712 * math/w_expf.c: Likewise.
24713 * math/w_log2f.c: Likewise.
24714 * math/w_logf.c: Likewise.
24715 * math/w_powf.c: Likewise.
24716 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
24717 [!__exp2f]: Use libm_alias_float_other.
24718 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
24719 [!__expf]: Use libm_alias_float_other.
24720 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
24721 [!__log2f]: Use libm_alias_float_other.
24722 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
24723 [!__logf]: Use libm_alias_float_other.
24724 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
24725 [!__powf]: Use libm_alias_float_other.
24726
24727 2017-10-10 Florian Weimer <fweimer@redhat.com>
24728
24729 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
24730 function.
24731 (_nss_files_gethostbyname3_r): Call it.
24732
24733 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24734
24735 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
24736 error. Remove default definition of declare_mgen_alias.
24737 [!declare_mgen_alias_r]: Likewise.
24738 * sysdeps/generic/math-type-macros-double.h
24739 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
24740 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
24741 (declare_mgen_alias_r): Likewise.
24742 * sysdeps/generic/math-type-macros-float128.h
24743 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24744 * sysdeps/generic/math-type-macros-ldouble.h
24745 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
24746 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
24747 macro.
24748 (declare_mgen_alias_r_s): Likewise.
24749 (declare_mgen_alias_r): Likewise.
24750 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
24751 (lgamma_r): Define using libm_alias_double_r.
24752 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
24753 (lgammaf_r): Define using libm_alias_float_r.
24754 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
24755 (lgammal_r): Define using libm_alias_ldouble_r.
24756 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
24757 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
24758
24759 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24760
24761 * lib/glob.c (__glob_pattern_type): Remove now-spurious
24762 extern declaration.
24763
24764 2017-10-09 Joseph Myers <joseph@codesourcery.com>
24765
24766 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
24767
24768 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
24769
24770 [BZ #21326]
24771 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
24772 [__cplusplus >= 201103] (__USE_ISOC99): Define.
24773 * math/Makefile (test-math-cxx11): New test.
24774 * math/test-math-cxx11.cc: New file.
24775
24776 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
24777
24778 * login/openpty.c (openpty): Close slave pty file descriptor on error.
24779
24780 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
24781 call to allocate the slave pty file descriptor.
24782
24783 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24784
24785 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
24786 [!__fma] (fma): Define using libm_alias_double.
24787 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
24788 [!__fma] (fma): Define using libm_alias_double.
24789
24790 * sysdeps/ieee754/float128/float128_private.h: Include
24791 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
24792 (libm_alias_ldouble_r): Undefine and redefine.
24793 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
24794 <libm-alias-ldouble.h>.
24795 (asinhl): Define using libm_alias_ldouble.
24796 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
24797 <libm-alias-ldouble.h>.
24798 (atanl): Define using libm_alias_ldouble.
24799 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
24800 <libm-alias-ldouble.h>.
24801 (cbrtl): Define using libm_alias_ldouble.
24802 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
24803 <libm-alias-ldouble.h>.
24804 (ceill): Define using libm_alias_ldouble.
24805 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
24806 <libm-alias-ldouble.h>.
24807 (copysignl): Define using libm_alias_ldouble.
24808 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
24809 <libm-alias-ldouble.h>.
24810 (cosl): Define using libm_alias_ldouble.
24811 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
24812 <libm-alias-ldouble.h>.
24813 (erfl): Define using libm_alias_ldouble.
24814 (erfcl): Likewise.
24815 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
24816 <libm-alias-ldouble.h>.
24817 (expm1l): Define using libm_alias_ldouble.
24818 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
24819 <libm-alias-ldouble.h>.
24820 (fabsl): Define using libm_alias_ldouble.
24821 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
24822 <libm-alias-ldouble.h>.
24823 (floorl): Define using libm_alias_ldouble.
24824 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
24825 <libm-alias-ldouble.h>.
24826 (fmal): Define using libm_alias_ldouble.
24827 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
24828 <libm-alias-ldouble.h>.
24829 (frexpl): Define using libm_alias_ldouble.
24830 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
24831 libm_alias_ldouble.
24832 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
24833 <libm-alias-ldouble.h>.
24834 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
24835 libm_alias_ldouble.
24836 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
24837 <libm-alias-ldouble.h>.
24838 (getpayloadl): Define using libm_alias_ldouble.
24839 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
24840 <libm-alias-ldouble.h>.
24841 (llrintl): Define using libm_alias_ldouble.
24842 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
24843 <libm-alias-ldouble.h>.
24844 (llroundl): Define using libm_alias_ldouble.
24845 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
24846 <libm-alias-ldouble.h>.
24847 (logbl): Define using libm_alias_ldouble.
24848 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
24849 <libm-alias-ldouble.h>.
24850 (lrintl): Define using libm_alias_ldouble.
24851 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
24852 <libm-alias-ldouble.h>.
24853 (lroundl): Define using libm_alias_ldouble.
24854 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
24855 <libm-alias-ldouble.h>.
24856 (modfl): Define using libm_alias_ldouble.
24857 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
24858 <libm-alias-ldouble.h>.
24859 (nearbyintl): Define using libm_alias_ldouble.
24860 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
24861 <libm-alias-ldouble.h>.
24862 (nextafterl): Define using libm_alias_ldouble.
24863 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
24864 <libm-alias-ldouble.h>.
24865 (nextupl): Define using libm_alias_ldouble.
24866 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
24867 <libm-alias-ldouble.h>.
24868 (remquol): Define using libm_alias_ldouble.
24869 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
24870 <libm-alias-ldouble.h>.
24871 (rintl): Define using libm_alias_ldouble.
24872 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
24873 <libm-alias-ldouble.h>.
24874 (roundevenl): Define using libm_alias_ldouble.
24875 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
24876 <libm-alias-ldouble.h>.
24877 (roundl): Define using libm_alias_ldouble.
24878 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
24879 using libm_alias_ldouble.
24880 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
24881 <libm-alias-ldouble.h>.
24882 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
24883 Define using libm_alias_ldouble.
24884 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
24885 <libm-alias-ldouble.h>.
24886 (sincosl): Define using libm_alias_ldouble.
24887 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
24888 <libm-alias-ldouble.h>.
24889 (sinl): Define using libm_alias_ldouble.
24890 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
24891 <libm-alias-ldouble.h>.
24892 (tanhl): Define using libm_alias_ldouble.
24893 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
24894 <libm-alias-ldouble.h>.
24895 (tanl): Define using libm_alias_ldouble.
24896 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
24897 <libm-alias-ldouble.h>.
24898 (totalorderl): Define using libm_alias_ldouble.
24899 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
24900 <libm-alias-ldouble.h>.
24901 (totalordermagl): Define using libm_alias_ldouble.
24902 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
24903 <libm-alias-ldouble.h>.
24904 (truncl): Define using libm_alias_ldouble.
24905 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
24906 libm_alias_ldouble.
24907 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
24908 libm_alias_ldouble.
24909 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
24910 <libm-alias-ldouble.h>.
24911 (weak_alias): Do not undefine and redefine.
24912 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24913 (copysignl): Define with long_double_symbol only if [IS_IN
24914 (libc)].
24915 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
24916 <libm-alias-ldouble.h>.
24917 (weak_alias): Do not undefine and redefine.
24918 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24919 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
24920 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
24921 <libm-alias-ldouble.h>.
24922 (weak_alias): Do not undefine and redefine.
24923 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
24924 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
24925 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
24926 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
24927 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
24928 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
24929 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
24930 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
24931 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
24932 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
24933 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
24934 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
24935 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
24936 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
24937 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
24938 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
24939 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
24940 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
24941 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
24942 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
24943 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
24944 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
24945 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
24946 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
24947 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
24948 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
24949
24950 2017-10-06 Carlos O'Donell <carlos@redhat.com>
24951
24952 [BZ #22111]
24953 * malloc/malloc.c (tcache_shutting_down): Use bool type.
24954 (tcache_thread_freeres): Set tcache_shutting_down before
24955 freeing the tcache.
24956 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
24957 * malloc/tst-malloc-tcache-leak.c: New file.
24958
24959 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24960
24961 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
24962 back to powerpc32 file.
24963 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
24964 (memrchr): Add __memrchr_power8 to ifunc list.
24965 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
24966 extra bytes for unaligned inputs.
24967
24968 2017-10-06 Joseph Myers <joseph@codesourcery.com>
24969
24970 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
24971 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
24972 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
24973 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24974 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24975
24976 2017-10-05 Joseph Myers <joseph@codesourcery.com>
24977
24978 * sysdeps/arm/libm-test-ulps: Update.
24979
24980 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
24981 <libm-alias-ldouble.h>.
24982 (asinhl): Define using libm_alias_ldouble.
24983 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
24984 <libm-alias-ldouble.h>.
24985 (cbrtl): Define using libm_alias_ldouble.
24986 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
24987 <libm-alias-ldouble.h>.
24988 (copysignl): Define using libm_alias_ldouble.
24989 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
24990 <libm-alias-ldouble.h>.
24991 (cosl): Define using libm_alias_ldouble.
24992 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
24993 <libm-alias-ldouble.h>.
24994 (erfl): Define using libm_alias_ldouble.
24995 (erfcl): Likewise.
24996 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
24997 <libm-alias-ldouble.h>.
24998 (fmal): Define using libm_alias_ldouble.
24999 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25000 <libm-alias-ldouble.h>.
25001 (frexpl): Define using libm_alias_ldouble.
25002 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25003 libm_alias_ldouble.
25004 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25005 <libm-alias-ldouble.h>.
25006 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25007 libm_alias_ldouble.
25008 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25009 <libm-alias-ldouble.h>.
25010 (getpayloadl): Define using libm_alias_ldouble.
25011 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25012 <libm-alias-ldouble.h>.
25013 (llrintl): Define using libm_alias_ldouble.
25014 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25015 <libm-alias-ldouble.h>.
25016 (llroundl): Define using libm_alias_ldouble.
25017 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25018 <libm-alias-ldouble.h>.
25019 (lrintl): Define using libm_alias_ldouble.
25020 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25021 <libm-alias-ldouble.h>.
25022 (lroundl): Define using libm_alias_ldouble.
25023 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25024 <libm-alias-ldouble.h>.
25025 (modfl): Define using libm_alias_ldouble.
25026 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25027 <libm-alias-ldouble.h>.
25028 (nextupl): Define using libm_alias_ldouble.
25029 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25030 <libm-alias-ldouble.h>.
25031 (remquol): Define using libm_alias_ldouble.
25032 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25033 <libm-alias-ldouble.h>.
25034 (roundevenl): Define using libm_alias_ldouble.
25035 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25036 <libm-alias-ldouble.h>.
25037 (roundl): Define using libm_alias_ldouble.
25038 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25039 using libm_alias_ldouble.
25040 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25041 <libm-alias-ldouble.h>.
25042 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25043 <libm-alias-ldouble.h>.
25044 (setpayloadsigl): Define using libm_alias_ldouble.
25045 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25046 <libm-alias-ldouble.h>.
25047 (sincosl): Define using libm_alias_ldouble.
25048 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25049 <libm-alias-ldouble.h>.
25050 (sinl): Define using libm_alias_ldouble.
25051 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25052 <libm-alias-ldouble.h>.
25053 (tanhl): Define using libm_alias_ldouble.
25054 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25055 <libm-alias-ldouble.h>.
25056 (tanl): Define using libm_alias_ldouble.
25057 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25058 <libm-alias-ldouble.h>.
25059 (totalorderl): Define using libm_alias_ldouble.
25060 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25061 <libm-alias-ldouble.h>.
25062 (totalordermagl): Define using libm_alias_ldouble.
25063 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25064 libm_alias_ldouble.
25065 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25066 libm_alias_ldouble.
25067
25068 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25069
25070 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25071 memmove_falkor.
25072 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25073 (__libc_ifunc_impl_list): Likewise.
25074 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25075 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25076
25077 * benchtests/bench-memmove-walk.c: New file.
25078 * benchtests/Makefile (string-benchset): Add it.
25079
25080 * benchtests/bench-memset-walk.c: New file.
25081 * benchtests/Makefile (string-benchset): Add it.
25082
25083 * benchtests/bench-memcpy-walk.c: New file.
25084 * benchtests/Makefile (string-benchset): Add it.
25085
25086 2017-10-05 Florian Weimer <fweimer@redhat.com>
25087
25088 nscd: Eliminate compilation time dependency in the build output.
25089 * nscd/nscd_stat.c (STATDATA_VERSION)
25090 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25091 (STATDATA_VERSION_FULL): New macro definitions.
25092 (compilation): Remove.
25093 (struct statdata): Adjust version member.
25094 (send_stats): Set version from STATDATA_VERSION_FULL.
25095 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25096
25097 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25098
25099 * configure.ac (--enable-add-ons): Remove option.
25100 (machine): Do not mention add-ons in comment.
25101 (LIBC_PRECONFIGURE): Likewise.
25102 (add_ons): Remove variable and sanity checks and logic to locate
25103 add-ons.
25104 (add_ons_automatic): Remove variable.
25105 (configured_add_ons): Likewise.
25106 (add_ons_sfx): Likewise.
25107 (add_ons_pfx): Likewise.
25108 (add_on_subdirs): Likewise.
25109 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25110 consideration of add-ons in Implies handling.
25111 (sysdeps_add_ons): Likewise.
25112 * configure: Regenerated.
25113 * libidn/configure.ac: Remove.
25114 * libidn/configure: Likewise.
25115 * sysdeps/unix/inet/configure.ac: New file.
25116 * sysdeps/unix/inet/configure: New generated file.
25117 * sysdeps/unix/inet/Subdirs: Add libidn.
25118 * Makeconfig (sysdeps-srcdirs): Remove variable.
25119 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25120 ($(common-objpfx)config.status): Do not depend on add-on files.
25121 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25122 comment.
25123 (all-subdirs): Do not include $(add-on-subdirs).
25124 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25125 * config.make.in (add-ons): Remove variable.
25126 (add-on-subdirs): Likewise.
25127 (sysdeps-add-ons): Likewise.
25128 * manual/Makefile (add-chapters): Remove.
25129 ($(objpfx)texis): Do not depend on $(add-chapters).
25130 (nonexamples): Do not handle $(add-chapters).
25131 (examples): Do not handle $(add-ons).
25132 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25133 libc-texinfo.sh.
25134 * manual/install.texi (Installation): Do not mention add-ons.
25135 (--enable-add-ons): Do not document configure option.
25136 * INSTALL: Regenerated.
25137 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25138 * manual/maint.texi (Hierarchy Conventions): Do not mention
25139 add-ons.
25140 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25141 --enable-add-ons.
25142 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25143 add-ons.
25144 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25145 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25146
25147 2017-10-05 Andreas Schwab <schwab@suse.de>
25148
25149 [BZ #15142]
25150 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25151 (_IO_flush_all_lockp): Always lock list_all_lock.
25152 (_IO_flush_all_linebuffered): Likewise.
25153 (_IO_unbuffer_all): Likewise.
25154
25155 2017-10-05 Florian Weimer <fweimer@redhat.com>
25156
25157 [BZ #15436]
25158 Do not flush stdio streams on abort.
25159 * stdlib/abort.c (fflush): Remove macro definition.
25160 (abort): Remove stages related to stdio flushing.
25161
25162 2017-10-05 Florian Weimer <fweimer@redhat.com>
25163
25164 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25165
25166 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25167
25168 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25169
25170 2017-10-05 Florian Weimer <fweimer@redhat.com>
25171
25172 * support/support_format_hostent.c (support_format_hostent): Add
25173 more error information for NETDB_INTERNAL.
25174
25175 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25176
25177 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25178 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25179 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25180 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25181 AC_DEFINE if multi-arch is enabled.
25182 * sysdeps/i386/configure: Regenerated.
25183
25184 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25185
25186 * Makeconfig (+link-static-before-libc): Use
25187 $(DEFAULT-LDFLAGS-$(@F)).
25188 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25189 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25190 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25191
25192 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25193
25194 * elf/Makefile (tests): Add tst-main1.
25195 (modules-names): Add tst-main1mod.
25196 ($(objpfx)tst-main1): New.
25197 (CRT-tst-main1): Likewise.
25198 (LDFLAGS-tst-main1): Likewise.
25199 (LDLIBS-tst-main1): Likewise.
25200 (tst-main1mod.so-no-z-defs): Likewise.
25201 * elf/tst-main1.c: New file.
25202 * elf/tst-main1mod.c: Likewise.
25203
25204 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25205
25206 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25207
25208 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25209
25210 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25211 (fma): Define using libm_alias_double.
25212 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25213 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25214 <math_ldbl_opt.h>.
25215 (fmal): Do not define as compat symbol here.
25216 * sysdeps/alpha/fpu/s_fma.c: New file.
25217
25218 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25219
25220 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25221
25222 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25223
25224 [BZ #22229]
25225 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25226 <math_ldbl_opt.h>
25227 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25228 and libc.
25229 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25230 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25231 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25232 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25233 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25234 Include <math_ldbl_opt.h>
25235 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25236 and libc.
25237 (compat_symbol): Undefine and redefine.
25238 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25239 <math_ldbl_opt.h>
25240 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25241 (compat_symbol): Undefine and redefine.
25242 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25243 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25244 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25245 GLIBC_2_1 for libm.
25246 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25247 GLIBC_2.0 copysignl symbol.
25248 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25249 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25250
25251 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25252
25253 2017-10-04 Florian Weimer <fweimer@redhat.com>
25254
25255 * scripts/check-local-headers.sh: Ignore nspr4 header file
25256 directory in addition to nspr.
25257
25258 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25259
25260 [BZ #17956]
25261 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25262 * configure: Regenerate.
25263 * crypt/Makefile (nss-cpp-flags): New variable.
25264 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25265 (CPPFLAGS-md5-crypt.c): Use it.
25266 * scripts/check-local-headers.sh: Ignore nspr header file
25267 directory.
25268
25269 2017-10-04 Andreas Schwab <schwab@suse.de>
25270
25271 * nis/Makefile (services): Remove compat.
25272 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25273 ($(objpfx)libnss_compat.so): Remove rule.
25274 * nis/Versions (libnss_compat): Remove.
25275 * nss/Makefile (services): Add compat.
25276 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25277 * nss/Versions (libnss_compat): Define.
25278 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25279 Don't include <rpc/types.h>. Replace bool_t by bool.
25280 * nss/nss_compat/compat-initgroups.c: Likewise.
25281 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25282 instead of <rpcsrv/ypclnt.h>.
25283 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25284 yp_get_default_domain.
25285 * nss/nss_compat/compat-pwd.c: Likewise.
25286 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25287 yp_get_default_domain.
25288 * nss/nss_compat/nisdomain.c: New file.
25289 * nss/nss_compat/nisdomain.h: Likewise.
25290
25291 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25292
25293 [BZ #22244]
25294 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25295 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25296
25297 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25298
25299 [BZ #22243]
25300 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25301 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25302
25303 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25304
25305 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25306 "movl main@GOTOFF(%ebx), %eax".
25307
25308 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25309
25310 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25311 allow undefined _DYNAMIC in PIE libc.a.
25312 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25313 Likewse.
25314
25315 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25316
25317 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25318 check _DYNAMIC.
25319
25320 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25321
25322 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25323 check _DYNAMIC.
25324
25325 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25326
25327 * math/test-math-iscanonical.cc (error): Replace bool with int.
25328
25329 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25330
25331 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25332 (modf): Define using libm_alias_double, only if [!__modf].
25333 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25334 <libm-alias-double.h>.
25335 (modf): Define using libm_alias_double, only if [!__modf].
25336 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25337 compat symbol here.
25338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25339 (weak_alias): Do not undefine and redefine.
25340 (strong_alias): Likewise.
25341 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25342 (weak_alias): Likewise.
25343 (strong_alias): Likewise.
25344
25345 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25346 (logb): Define using libm_alias_double, only if [!__logb].
25347 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25348 <libm-alias-double.h>.
25349 (logb): Define using libm_alias_double, only if [!__logb].
25350 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25352 (weak_alias): Do not undefine and redefine.
25353 (strong_alias): Likewise.
25354 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25355 (weak_alias): Likewise.
25356 (strong_alias): Likewise.
25357
25358 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25359
25360 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25361 Check SHARED instead PIC.
25362
25363 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25364
25365 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25366 [!__fmaf] (fmaf): Define using libm_alias_float.
25367
25368 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25369 (frexp): Define using libm_alias_double.
25370 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25371 <libm-alias-double.h>.
25372 (frexp): Define using libm_alias_double.
25373 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25374 compat symbol here.
25375
25376 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25377
25378 [BZ #22235]
25379 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25380 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25381 (CFLAGS-test-math-iscanonical.cc): New variable.
25382 * math/test-math-iscanonical.cc: New file.
25383 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25384 Provide a C++ implementation based on function overloading,
25385 rather than using __MATH_TG, which uses C-only builtins.
25386 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25387 Likewise.
25388 * sysdeps/powerpc/powerpc64le/Makefile
25389 (CFLAGS-test-math-iscanonical.cc): New variable.
25390
25391 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25392
25393 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25394 (ceil): Define using libm_alias_double.
25395 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25396 (floor): Define using libm_alias_double.
25397 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25398 <libm-alias-double.h>.
25399 (llround): Define using libm_alias_double.
25400 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25401 <libm-alias-double.h>.
25402 (lround): Define using libm_alias_double.
25403 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25404 <libm-alias-double.h>.
25405 (nearbyint): Define using libm_alias_double.
25406 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25407 <libm-alias-double.h>.
25408 (remquo): Define using libm_alias_double.
25409 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
25410 (rint): Define using libm_alias_double.
25411 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
25412 (round): Define using libm_alias_double.
25413 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
25414 (trunc): Define using libm_alias_double.
25415 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
25416 <libm-alias-double.h>.
25417 (ceil): Define using libm_alias_double.
25418 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
25419 <libm-alias-double.h>.
25420 (floor): Define using libm_alias_double.
25421 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
25422 <libm-alias-double.h>.
25423 (llround): Define using libm_alias_double.
25424 [_LP64] (lround): Likewise.
25425 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
25426 <libm-alias-double.h>.
25427 [!_LP64] (lround): Define using libm_alias_double.
25428 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
25429 <libm-alias-double.h>.
25430 (nearbyint): Define using libm_alias_double.
25431 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
25432 <libm-alias-double.h>.
25433 (remquo): Define using libm_alias_double.
25434 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
25435 <libm-alias-double.h>.
25436 (rint): Define using libm_alias_double.
25437 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
25438 <libm-alias-double.h>.
25439 (round): Define using libm_alias_double.
25440 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
25441 <libm-alias-double.h>.
25442 (trunc): Define using libm_alias_double.
25443 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
25444 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
25445 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
25446 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
25447 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
25448 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
25449 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
25450 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
25451 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
25452
25453 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25454
25455 * math/w_remainder.c: New file.
25456 * math/w_remainderf.c: New file.
25457 * math/w_remainderl.c: New file.
25458
25459 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25460
25461 * elf/rtld.c (BOOTSTRAP_MAP): New.
25462 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
25463 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25464 Likewise.
25465 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25466 Likewise.
25467 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
25468 Likewise.
25469
25470 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25471
25472 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
25473 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
25474 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
25475 rtld_hidden_data_ver): Define to empty.
25476 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
25477 __assert_perror_fail): Likewise.
25478 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25479 (__rewinddir): Likewise.
25480 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25481 (__profile_frequency): Likewise.
25482 * include/setjmp.h (__sigsetjmp): Likewise.
25483 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
25484 __libc_sigaction): Likewise.
25485 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
25486 not set hidden attribute.
25487 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
25488 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
25489 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
25490 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
25491 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
25492 __fxstatat64): Likewise.
25493 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25494 (__uname): Likewise.
25495 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
25496 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
25497 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
25498 (NO_RTLD_HIDDEN): Set.
25499 * sysdeps/mach/hurd/configure: Refresh.
25500 * config.h.in: Refresh.
25501
25502 2017-10-02 Joseph Myers <joseph@codesourcery.com>
25503
25504 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
25505 (atan): Define using libm_alias_double.
25506 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
25507 (tan): Define using libm_alias_double.
25508 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
25509 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
25510
25511 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
25512 define as weak alias of __atan. Do not define any aliases if
25513 [__atan].
25514 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
25515 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
25516 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
25517 as weak alias of __tan. Do not define any aliases if [__tan].
25518 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
25519 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
25520 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
25521 __atan.
25522 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
25523 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
25524 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
25525 and define as weak alias of __atan.
25526 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
25527 __atan.
25528 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
25529 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
25530 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
25531 define as weak alias of __tan.
25532
25533 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25534
25535 * math/w_lgamma.c: New file.
25536 * math/w_lgammaf.c: New file.
25537 * math/w_lgammal.c: New file.
25538
25539 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25540
25541 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
25542 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
25543 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
25544 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
25545 * sysdeps/ieee754/flt-32/w_logf.c: New file.
25546 * sysdeps/ieee754/flt-32/w_powf.c: New file.
25547 * sysdeps/i386/fpu/w_log2f.c: New file.
25548 * sysdeps/i386/fpu/w_logf.c: New file.
25549 * sysdeps/i386/fpu/w_powf.c: New file.
25550 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
25551 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
25552 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
25553
25554 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25555 H.J. Lu <hongjiu.lu@intel.com>
25556
25557 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
25558 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
25559 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
25560 * sysdeps/ieee754/flt-32/w_expf.c: New file.
25561 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
25562 the new expf code.
25563 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
25564 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
25565 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
25566 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
25567 * sysdeps/i386/fpu/w_exp2f.c: New file.
25568 * sysdeps/i386/fpu/w_expf.c: New file.
25569 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
25570 * sysdeps/x86_64/fpu/w_expf.c: New file.
25571
25572 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
25573
25574 * math/Versions (logf): New libm symbol at GLIBC_2.27.
25575 (log2f): Likewise.
25576 (powf): Likewise.
25577 * math/w_log2f.c: New file.
25578 * math/w_logf.c: New file.
25579 * math/w_powf.c: New file.
25580 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
25581 * math/w_logf_compat.c (__logf_compat): Likewise.
25582 * math/w_powf_compat.c (__powf_compat): Likewise.
25583 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
25584 * sysdeps/ia64/fpu/e_logf.S: Likewise.
25585 * sysdeps/ia64/fpu/e_powf.S: Likewise.
25586 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
25587 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25588 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25589 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25590 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25591 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25592 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25593 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25594 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25595 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25596 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25597 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25599 Likewise.
25600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25601 Likewise.
25602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25603 Likewise.
25604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25605 Likewise.
25606 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25607 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25608 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25609 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25610 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25611 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25612 Likewise.
25613 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25614 Likewise.
25615 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25616 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25617 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25618
25619 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25620
25621 * sysdeps/powerpc/powerpc64/multiarch/Makefile
25622 (sysdep_routines): Add memrchr_power8.
25623 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
25624 (memrchr): Add __memrchr_power8 to list of memrchr functions.
25625 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
25626 New file.
25627 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25628 (memrchr): Add __memrchr_power8 to ifunc list.
25629 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
25630
25631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25632
25633 [BZ #18822]
25634 * sysdeps/unix/sysv/linux/posix_fadvise64.c
25635 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
25636 libc_hidden_def.
25637 * sysdeps/unix/sysv/linux/posix_fallocate64.c
25638 (__posix_fallocate64_l64): Likewise.
25639
25640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25641
25642 [BZ #18822]
25643 * sysdeps/unix/sysv/linux/sched_setaffinity.c
25644 (__sched_setaffinity_new): Add libc_hidden_proto and
25645 libc_hidden_def.
25646
25647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25648
25649 [BZ #18822]
25650 * include/glob.h (__glob64): Add libc_hidden_proto.
25651 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
25652 libc_hidden_def.
25653
25654 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25655
25656 [BZ #18822]
25657 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
25658 attribute_hidden.
25659
25660 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25661
25662 [BZ #18822]
25663 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
25664
25665 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25666
25667 [BZ #18822]
25668 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
25669 libc_hidden_def.
25670
25671 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25672
25673 [BZ #18822]
25674 * csu/version.c (__libc_print_version): Add attribute_hidden.
25675
25676 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25677
25678 [BZ #18822]
25679 * include/libc-internal.h (__init_misc): Add attribute_hidden.
25680
25681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25682
25683 [BZ #18822]
25684 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
25685
25686 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25687
25688 [BZ #18822]
25689 * nscd/nscd_helper.c (__nis_hash): New prototype.
25690
25691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25692
25693 [BZ #18822]
25694 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
25695 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
25696 libc_hidden_def.
25697 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
25698 * termios/tcgetattr.c (__tcgetattr): Likewise.
25699
25700 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25701
25702 [BZ #18822]
25703 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
25704 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
25705 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
25706 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
25707 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
25708
25709 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25710
25711 [BZ #18822]
25712 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
25713
25714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25715
25716 [BZ #18822]
25717 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
25718 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
25719
25720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25721
25722 [BZ #18822]
25723 * intl/hash-string.h (__hash_string): Add attribute_hidden.
25724
25725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25726
25727 [BZ #18822]
25728 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
25729 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
25730
25731 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25732
25733 [BZ #18822]
25734 * include/ifreq.h: New file.
25735 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
25736 (__ifreq): Likewise.
25737 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
25738 (__ifreq): Likewise.
25739
25740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25741
25742 [BZ #18822]
25743 * include/idna.h: New file.
25744 * inet/getnameinfo.c: Include <idna.h> instead of
25745 <libidn/idna.h>.
25746 (__idna_to_unicode_lzlz): Removed.
25747 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
25748 <libidn/idna.h>.
25749 (__idna_to_ascii_lz): Removed.
25750 (__idna_to_unicode_lzlz): Likewise.
25751
25752 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25753
25754 [BZ #18822]
25755 * include/plural-exp.h: New file.
25756 * intl/plural-exp.c: Include <plural-exp.h> instead of
25757 "plural-exp.h".
25758
25759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25760
25761 [BZ #18822]
25762 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
25763 "getsourcefilter.h".
25764 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
25765 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
25766 "getsourcefilter.h".
25767 (__get_sol): Removed.
25768
25769 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25770
25771 [BZ #18822]
25772 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
25773 to ...
25774 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
25775
25776 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 [BZ #18822]
25779 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
25780 attribute_hidden.
25781
25782 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25783
25784 [BZ #18822]
25785 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
25786
25787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25788
25789 [BZ #18822]
25790 * include/search.h (__tdestroy): Add libc_hidden_proto.
25791 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
25792
25793 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25794
25795 [BZ #18822]
25796 * include/assert.h (__assert_fail_base): Add attribute_hidden.
25797
25798 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25799
25800 [BZ #18822]
25801 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
25802 attribute_hidden.
25803
25804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25805
25806 [BZ #18822]
25807 * include/signal.h (__kill): Add libc_hidden_proto.
25808 (__sigblock): Likewise.
25809 (__sigprocmask): Likewise.
25810 (__sigaltstack): Likewise.
25811 * signal/kill.c (__kill): Add libc_hidden_def.
25812 * signal/sigblock.c (__sigblock): Likewise.
25813 * signal/sigprocmask.c (__sigprocmask): Likewise.
25814 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
25815 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
25816 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
25817 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
25818 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
25819 Likewise.
25820 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
25821 Likewise.
25822 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
25823 (__sigprocmask): Likewise.
25824 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
25825 Likewise.
25826 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
25827 (__sigprocmask): Likewise.
25828 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
25829 Likewise.
25830
25831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25832
25833 [BZ #18822]
25834 * include/string.h (__strsep): Add libc_hidden_proto.
25835 * string/strsep.c (__strsep): Add libc_hidden_def.
25836
25837 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25838
25839 [BZ #18822]
25840 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
25841 attribute_hidden.
25842 (__spawni): Likewise.
25843
25844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25845
25846 [BZ #18822]
25847 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
25848 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
25849 libc_hidden_def.
25850
25851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25852
25853 [BZ #18822]
25854 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
25855
25856 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25857
25858 [BZ #18822]
25859 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
25860 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
25861 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
25862 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
25863 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
25864 Likewise.
25865 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
25866 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
25867
25868 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25869
25870 [BZ #18822]
25871 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
25872 (__dcigettext): Likewise.
25873
25874 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25875
25876 [BZ #18822]
25877 * include/sys/sysinfo.h (__get_nprocs_conf): Add
25878 libc_hidden_proto.
25879 (__get_nprocs): Likewise.
25880 (__get_phys_pages): Likewise.
25881 (__get_avphys_pages): Likewise.
25882 (__get_child_max): Add attribute_hidden.
25883 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
25884 (__get_nprocs): Likewise.
25885 (__get_phys_pages): Likewise.
25886 (__get_avphys_pages): Likewise.
25887 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
25888 libc_hidden_def.
25889 (__get_nprocs): Likewise.
25890 (__get_phys_pages): Likewise.
25891 (__get_avphys_pages): Likewise.
25892 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
25893 libc_hidden_def.
25894 (__get_nprocs_conf): Likewise.
25895 (__get_phys_pages): Likewise.
25896 (__get_avphys_pages): Likewise.
25897
25898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25899
25900 [BZ #18822]
25901 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
25902 attribute_hidden.
25903 (__netlink_close): Likewise.
25904 (__netlink_free_handle): Likewise.
25905 (__netlink_request): Likewise.
25906
25907 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25908
25909 [BZ #18822]
25910 * include/rpc/rpc.h (__rpc_thread_variables): Add
25911 attribute_hidden.
25912 (__rpc_thread_svc_cleanup): Likewise.
25913 (__rpc_thread_clnt_cleanup): Likewise.
25914 (__rpc_thread_key_cleanup): Likewise.
25915
25916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25917
25918 [BZ #18822]
25919 * include/sys/uio.h (__readv): Add libc_hidden_proto.
25920 (__writev): Likewise.
25921 * misc/readv.c (__readv): Add libc_hidden_def.
25922 * misc/writev.c (__writev): Likewise.
25923 * sysdeps/posix/readv.c (__readv): Likewise.
25924 * sysdeps/posix/writev.c (__writev): Likewise.
25925 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
25926 (__readv): Likewise.
25927 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
25928 (__writev): Likewise.
25929
25930 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25931
25932 [BZ #18822]
25933 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
25934 (__regcomp): Add libc_hidden_proto.
25935 (__regexec): Likewise.
25936 (__regfree): Likewise.
25937 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
25938 (__regfree): Likewise.
25939 * posix/regexec.c (__regexec): Likewise.
25940
25941 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25942
25943 [BZ #18822]
25944 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
25945 (__getutent): Likewise.
25946 (__getutid): Likewise.
25947 (__getutline): Likewise.
25948 (__pututline): Likewise.
25949 (__getutent_r): Likewise.
25950 (__getutid_r): Likewise.
25951 (__getutline_r): Likewise.
25952 (__utmpname): Add attribute_hidden.
25953 (__setutent): Likewise.
25954 (__endutent): Likewise.
25955 * login/getutent.c (__getutent): Add libc_hidden_def.
25956 * login/getutent_r.c (__getutent_r): Likewise.
25957 (__pututline): Likewise.
25958 * login/getutid.c (__getutid): Likewise.
25959 * login/getutid_r.c (__getutid_r): Likewise.
25960 * login/getutline.c (__getutline): Likewise.
25961 * login/getutline_r.c (__getutline_r): Likewise.
25962 * login/updwtmp.c (__updwtmp): Likewise.
25963
25964 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25965
25966 [BZ #18822]
25967 * include/dirent.h (__opendir): Always add attribute_hidden.
25968 (__fdopendir): Likewise.
25969 (__closedir): Likewise.
25970 (__readdir): Likewise.
25971 (__readdir64): Add libc_hidden_proto.
25972 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
25973 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
25974 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
25975 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
25976 New alias.
25977
25978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25979
25980 [BZ #18822]
25981 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
25982 * include/netdb.h (__gethostbyaddr_r): Likewise.
25983 (__gethostbyname_r): Likewise.
25984 (__gethostbyname2_r): Likewise.
25985 (__getnetbyaddr_r): Likewise.
25986 (__getnetbyname_r): Likewise.
25987 (__getservbyname_r): Likewise.
25988 (__getservbyport_r): Likewise.
25989 (__getprotobyname_r): Likewise.
25990 (__getprotobynumber_r): Likewise.
25991 (__getnetgrent_r): Likewise.
25992 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
25993 (__getrpcbynumber_r): Likewise.
25994 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
25995
25996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
25997
25998 [BZ #18822]
25999 * include/stdio.h (__fcloseall): Add attribute_hidden.
26000 (__getline): Likewise.
26001 (__path_search): Likewise.
26002 (__gen_tempname): Likewise.
26003 (__libc_message): Likewise.
26004 (__flockfile): Likewise.
26005 (__funlockfile): Likewise.
26006 (__fxprintf): Likewise.
26007 (__fxprintf_nocancel): Likewise.
26008
26009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26010
26011 [BZ #18822]
26012 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26013 (__sgetsgent_r): Likewise.
26014
26015 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26016
26017 [BZ #18822]
26018 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26019 (__statfs64): Likewise.
26020 (__fstatfs64): Likewise.
26021 * include/sys/statvfs.h (__statvfs64): Likewise.
26022 (__fstatvfs64): Likewise.
26023 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26024 (__statfs_filesize_max): Likewise.
26025 (__statfs_symlinks): Likewise.
26026 (__statfs_chown_restricted): Likewise.
26027
26028 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26029
26030 [BZ #18822]
26031 * include/time.h (__tzstring): Add attribute_hidden.
26032 (__tzfile_read): Likewise.
26033 (__tzfile_compute): Likewise.
26034 (__tzfile_default): Likewise.
26035 (__tzset_parse_tz): Likewise.
26036 (__offtime): Likewise.
26037 (__asctime_r): Likewise.
26038 (__tzset): Likewise.
26039 (__tz_convert): Likewise.
26040 (__getdate_r): Likewise.
26041 (__getclktck): Likewise.
26042
26043 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26044
26045 [BZ #18822]
26046 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26047 (__nscd_unmap): Likewise.
26048 (__nscd_cache_search): Likewise.
26049 (__nscd_get_nl_timestamp): Likewise.
26050 (__nscd_getpwnam_r): Likewise.
26051 (__nscd_getpwuid_r): Likewise.
26052 (__nscd_getgrnam_r): Likewise.
26053 (__nscd_getgrgid_r): Likewise.
26054 (__nscd_gethostbyname_r): Likewise.
26055 (__nscd_gethostbyname2_r): Likewise.
26056 (__nscd_gethostbyaddr_r): Likewise.
26057 (__nscd_getai): Likewise.
26058 (__nscd_getgrouplist): Likewise.
26059 (__nscd_getservbyname_r): Likewise.
26060 (__nscd_getservbyport_r): Likewise.
26061 (__nscd_innetgr): Likewise.
26062 (__nscd_setnetgrent): Likewise.
26063
26064 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26065
26066 [BZ #18822]
26067 * include/gmp.h: Declare internal functions only if _ISOMAC is
26068 undefined.
26069 (__mpn_extract_double): Add attribute_hidden.
26070 (__mpn_extract_long_double): Likewise.
26071 (__mpn_extract_float128): Likewise.
26072 (__mpn_construct_float): Likewise.
26073 (__mpn_construct_double): Likewise.
26074 (__mpn_construct_long_double): Likewise.
26075 (__mpn_construct_float128): Likewise.
26076 (mpn_add_1): Likewise.
26077 (mpn_addmul_1): Likewise.
26078 (mpn_add_n): Likewise.
26079 (mpn_cmp): Likewise.
26080 (mpn_divrem): Likewise.
26081 (mpn_lshift): Likewise.
26082 (mpn_mul): Likewise.
26083 (mpn_mul_1): Likewise.
26084 (mpn_rshift): Likewise.
26085 (mpn_sub_1): Likewise.
26086 (mpn_submul_1): Likewise.
26087 (mpn_sub_n): Likewise.
26088
26089 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26090
26091 [BZ #18822]
26092 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26093 (__wcscat): Likewise.
26094 (__btowc): Likewise.
26095 (__wcrtomb): Likewise.
26096 (__mbsrtowcs): Likewise.
26097 (__wcsrtombs): Likewise.
26098 (__mbsnrtowcs): Likewise.
26099 (__wcsnrtombs): Likewise.
26100 (__wcsncpy): Likewise.
26101 (__wcpncpy): Likewise.
26102 (__wmemcpy): Likewise.
26103 (__wmempcpy): Likewise.
26104 (__wmemmove): Likewise.
26105 (__wcschrnul): Likewise.
26106 (__vfwscanf): Likewise.
26107 (__vswprintf): Likewise.
26108 (__fwprintf): Likewise.
26109 (__vfwprintf): Likewise.
26110
26111 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26112
26113 [BZ #18822]
26114 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26115 (__getgrgid_r): Likewise.
26116 (__getgrnam_r): Likewise.
26117 * include/pwd.h (__getpwuid_r): Likewise.
26118 (__getpwnam_r): Likewise.
26119 (__fgetpwent_r): Likewise.
26120 * include/shadow.h (__getspnam_r): Likewise.
26121 (__sgetspent_r): Likewise.
26122 (__fgetspent_r): Likewise.
26123
26124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26125
26126 [BZ #18822]
26127 * include/unistd.h (__access): Add attribute_hidden.
26128 (__lseek64): Likewise.
26129 (__libc_pread64): Likewise.
26130 (__pipe2): Likewise.
26131 (__sleep): Likewise.
26132 (__chdir): Likewise.
26133 (__fchdir): Likewise.
26134 (__getcwd): Likewise.
26135 (__rmdir): Likewise.
26136 (__execvpe): Likewise.
26137 (__execve): Likewise.
26138 (__setsid): Likewise.
26139 (__getuid): Likewise.
26140 (__geteuid): Likewise.
26141 (__getgid): Likewise.
26142 (__getegid): Likewise.
26143 (__getgroups): Likewise.
26144 (__group_member): Likewise.
26145 (__ttyname_r): Likewise.
26146 (__isatty): Likewise.
26147 (__readlink): Likewise.
26148 (__unlink): Likewise.
26149 (__gethostname): Likewise.
26150 (__profil): Likewise.
26151 (__getdtablesize): Likewise.
26152 (__brk): Likewise.
26153 (__ftruncate): Likewise.
26154 (__ftruncate64): Likewise.
26155
26156 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26157
26158 [BZ #18822]
26159 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26160 * argp/argp-fs-xinl.c: Likewise.
26161 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26162 * argp/argp-parse.c: Include <argp.h>.
26163 * argp/argp-xinl.c: Likewise.
26164 * include/argp-fmtstream.h: New file.
26165 * include/argp.h (__argp_error): Add attribute_hidden.
26166 (__argp_failure): Likewise.
26167 (__argp_input): Likewise.
26168 (__argp_state_help): Likewise.
26169
26170 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26171
26172 [BZ #18822]
26173 * include/wchar.h (____wcstof_l_internal): New prototype.
26174 (____wcstod_l_internal): Likewise.
26175 (____wcstold_l_internal): Likewise.
26176 (____wcstol_l_internal): Likewise.
26177 (____wcstoul_l_internal): Likewise.
26178 (____wcstoll_l_internal): Likewise.
26179 (____wcstoull_l_internal): Likewise.
26180 (____wcstof128_l_internal): Likewise.
26181 * sysdeps/ieee754/float128/wcstof128.c
26182 (____wcstof128_l_internal): Removed.
26183 * sysdeps/ieee754/float128/wcstof128_l.c
26184 (____wcstof128_l_internal): Likewise.
26185 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26186 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26187 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26188 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26189 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26190 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26191 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26192 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26193 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26194 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26195
26196 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26197
26198 [BZ #18822]
26199 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26200 instead of <sys/statvfs.h>.
26201 (__internal_statvfs): Removed.
26202 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26203 instead of <sys/statvfs.h>.
26204 (__internal_statvfs64): Removed.
26205 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26206 "internal_statvfs.h" instead of <sys/statvfs.h>.
26207 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26208 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26209 instead of <sys/statvfs.h>.
26210 (__internal_statvfs): Removed.
26211 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26212 instead of <sys/statvfs.h>.
26213 (__internal_statvfs64): Removed.
26214
26215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 [BZ #18822]
26218 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26219 (__gconv_close): Likewise.
26220 (__gconv): Likewise.
26221 (__gconv_find_transform): Likewise.
26222 (__gconv_lookup_cache): Likewise.
26223 (__gconv_compare_alias_cache): Likewise.
26224 (__gconv_load_cache): Likewise.
26225 (__gconv_get_path): Likewise.
26226 (__gconv_close_transform): Likewise.
26227 (__gconv_release_cache): Likewise.
26228 (__gconv_find_shlib): Likewise.
26229 (__gconv_release_shlib): Likewise.
26230 (__gconv_get_builtin_trans): Likewise.
26231 (__gconv_compare_alias): Likewise.
26232 * include/dlfcn.h (_dlerror_run): Likewise.
26233 * include/stdio.h (__fortify_fail_abort): Likewise.
26234 * include/time.h (__tz_compute): Likewise.
26235 (__strptime_internal): Likewise.
26236 * intl/gettextP.h (_nl_find_domain): Likewise.
26237 (_nl_load_domain): Likewise.
26238 (_nl_find_msg): Likewise.
26239 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26240 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26241 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26242 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26243 (__gai_find_request): Likewise.
26244 (__gai_remove_request): Likewise.
26245 (__gai_notify): Likewise.
26246 (__gai_notify_only): Likewise.
26247 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26248 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26249 (_dl_non_dynamic_init): Likewise.
26250 (_dl_aux_init): Likewise.
26251 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26252 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26253 Likewise.
26254 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26255 (__wcsmbs_clone_conv): Likewise.
26256 (__wcsmbs_named_conv): Likewise.
26257
26258 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26259
26260 [BZ #18822]
26261 * include/stdlib.h (__random): Add attribute_hidden.
26262 (__random_r): Likewise.
26263 (__srandom_r): Likewise.
26264 (__initstate_r): Likewise.
26265 (__setstate_r): Likewise.
26266 (__erand48_r): Likewise.
26267 (__nrand48_r): Likewise.
26268 (__jrand48_r): Likewise.
26269 (__srand48_r): Likewise.
26270 (__seed48_r): Likewise.
26271 (__lcong48_r): Likewise.
26272 (__drand48_iterate): Likewise.
26273 (__setenv): Likewise.
26274 (__unsetenv): Likewise.
26275 (__clearenv): Likewise.
26276 (__ptsname_r): Likewise.
26277 (__posix_openpt): Likewise.
26278 (__add_to_environ): Likewise.
26279 (__realpath): Add libc_hidden_proto.
26280 (__ecvt_r): Likewise.
26281 (__fcvt_r): Likewise.
26282 (__qecvt_r): Likewise.
26283 (__qfcvt_r): Likewise.
26284 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26285 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26286
26287 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26288
26289 [BZ #18822]
26290 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26291 * include/time.h (__mktime_internal): Likewise.
26292 * libio/iolibio.h (__fopen_internal): Likewise.
26293
26294 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26295
26296 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26297 pointer in frame.
26298 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26299 Correct offset used to restore PIC register.
26300
26301 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26302
26303 [BZ libc/22165]
26304 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26305 code to load address of __getcontext_ret when generating PIC code.
26306
26307 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26308
26309 * elf/Makefile (tests-static-internal): Add
26310 tst-tls1-static-non-pie.
26311 (LDFLAGS-tst-tls1-static-non-pie): New.
26312 * elf/tst-tls1-static-non-pie.c: New file.
26313
26314 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26315
26316 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26317 (asinh): Define using libm_alias_double.
26318 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26319 (cbrt): Define using libm_alias_double.
26320 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26321 <libm-alias-double.h>.
26322 (copysign): Define using libm_alias_double.
26323 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26324 (erf): Define using libm_alias_double.
26325 (erfc): Likewise.
26326 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26327 (expm1): Define using libm_alias_double.
26328 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26329 (fabs): Define using libm_alias_double.
26330 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26331 libm_alias_double.
26332 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26333 <libm-alias-double.h>.
26334 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26335 libm_alias_double.
26336 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26337 <libm-alias-double.h>.
26338 (getpayload): Define using libm_alias_double.
26339 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26340 <libm-alias-double.h>.
26341 (llrint): Define using libm_alias_double.
26342 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26343 (lrint): Define using libm_alias_double.
26344 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26345 <libm-alias-double.h>.
26346 (nextup): Define using libm_alias_double.
26347 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26348 <libm-alias-double.h>.
26349 (roundeven): Define using libm_alias_double.
26350 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26351 libm_alias_double.
26352 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26353 <libm-alias-double.h>.
26354 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26355 using libm_alias_double.
26356 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26357 (cos): Define using libm_alias_double.
26358 (sin): Likewise.
26359 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26360 <libm-alias-double.h>.
26361 (sincos): Define using libm_alias_double.
26362 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26363 (tanh): Define using libm_alias_double.
26364 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26365 <libm-alias-double.h>.
26366 (totalorder): Define using libm_alias_double.
26367 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26368 <libm-alias-double.h>.
26369 (totalordermag): Define using libm_alias_double.
26370 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26371 libm_alias_double.
26372 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26373 libm_alias_double.
26374 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26375 <libm-alias-double.h>.
26376 (getpayload): Define using libm_alias_double.
26377 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26378 <libm-alias-double.h>.
26379 (roundeven): Define using libm_alias_double.
26380 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26381 <libm-alias-double.h>.
26382 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26383 <libm-alias-double.h>.
26384 (totalorder): Define using libm_alias_double.
26385 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26386 <libm-alias-double.h>.
26387 (totalordermag): Define using libm_alias_double.
26388 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26389 libc compat symbol here.
26390 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26391 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26392 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26393 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26394 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26395 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26396 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26397 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26398 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26399 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26400
26401 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26402
26403 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26404 _dl_relocate_static_pie instead of _dl_start to compute load
26405 address in static PIE. Return 0 if _DYNAMIC is undefined for
26406 static executable.
26407
26408 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26409
26410 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
26411 _DYNAMIC is undefined for static executable.
26412
26413 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26414
26415 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
26416
26417 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26418
26419 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26420
26421 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26422
26423 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
26424 (__ieee754_lgamma_r): Use fabs rather than __fabs.
26425 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
26426 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
26427 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
26428 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
26429 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
26430 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
26431 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
26432 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26433 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
26434 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
26435 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26436 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
26437 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
26438 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
26439 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
26440
26441 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
26442
26443 * math/bits/cmathcalls.h (cimag): Remove inline.
26444 (creal): Remove inline.
26445 (conj): Remove inline.
26446
26447 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26448
26449 * math/Makefile (type-float-routines): Add e_powf_log2_data.
26450 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
26451 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
26452 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
26453 (issignalingf_inline): Likewise.
26454 (POWF_LOG2_TABLE_BITS): Likewise.
26455 (POWF_LOG2_POLY_ORDER): Likewise.
26456 (POWF_SCALE_BITS): Likewise.
26457 (POWF_SCALE): Likewise.
26458 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
26459 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
26460 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
26461
26462 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26463
26464 * math/Makefile (type-float-routines): Add e_log2f_data.
26465 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
26466 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
26467 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
26468 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
26469 * sysdeps/i386/fpu/e_log2f_data.c: New file.
26470 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
26471 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
26472
26473 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26474
26475 * math/Makefile (type-float-routines): Add e_logf_data.
26476 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
26477 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
26478 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
26479 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
26480 * sysdeps/i386/fpu/e_logf_data.c: New file.
26481 * sysdeps/ia64/fpu/e_logf_data.c: New file.
26482 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
26483
26484 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
26485
26486 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
26487 undefined _DYNAMIC in PIE libc.a.
26488 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26489 Likewse.
26490
26491 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26492
26493 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
26494 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
26495 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
26496 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
26497 (__signbit): Remove.
26498 (__signbitl): Remove.
26499 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
26500 (__signbit): Remove.
26501 (__signbitl): Remove.
26502 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
26503 (__signbit): Remove.
26504 (__signbitl): Remove.
26505 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
26506 (__signbit): Remove.
26507 (__signbitl): Remove.
26508 * sysdeps/tile/bits/mathinline.h: Delete file.
26509 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
26510 (__signbit): Remove.
26511 (__signbitl): Remove.
26512
26513 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
26514
26515 * math/math.h: Improve handling of C99 isgreater macros.
26516 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
26517 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
26518 * sysdeps/powerpc/bits/mathinline.h: Likewise.
26519 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26520 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
26521
26522 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
26523
26524 * sysdeps/aarch64/libm-test-ulps: Update.
26525
26526 2017-09-28 Joseph Myers <joseph@codesourcery.com>
26527
26528 [BZ #22225]
26529 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
26530 math_opt_barrier on argument when doing arithmetic on it.
26531 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
26532 Likewise. Use math_force_eval not math_opt_barrier after
26533 arithmetic.
26534 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
26535 math_opt_barrier on argument when doing arithmetic on it.
26536 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
26537 Likewise.
26538
26539 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
26540
26541 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
26542 libc_hidden_def.
26543 (__freeifaddrs): Likewise.
26544
26545 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
26546
26547 * include/dirent.h (__dirfd): New declaration.
26548 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
26549 alias.
26550 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
26551 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
26552 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
26553 * include/unistd.h (__revoke): New declaration.
26554 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
26555 alias.
26556 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
26557 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
26558 revoke.
26559 * include/dirent.h (__seekdir): New declaration.
26560 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
26561 redefine as weak alias.
26562 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
26563 of seekdir.
26564 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
26565 and use libc_hidden_def on them.
26566 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
26567 them.
26568 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
26569 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
26570 instead of getifaddrs and freeifaddrs.
26571
26572 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26573
26574 [BZ #18822]
26575 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
26576 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
26577 (__dso_handle): Remove declaration.
26578 * dlfcn/tstatexit.c (__dso_handle): Removed.
26579 (main): Don't check __dso_handle.
26580 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
26581 (main): Don't check __dso_handle.
26582 * include/dso_handle.h: New file.
26583 * malloc/mtrace.c: Include <dso_handle.h>.
26584 (mtrace): Pass __dso_handle directly.
26585 * nptl/pthread_atfork.c: Include <dso_handle.h>.
26586 (__dso_handle): Remove declaration.
26587 (__pthread_atfork): Pass __dso_handle directly.
26588 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
26589 (__dso_handle): Removed.
26590 * posix/wordexp-test.c: Include <dso_handle.h>.
26591 (__dso_handle): Remove declaration.
26592 (__app_register_atfork): Pass __dso_handle directly.
26593 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
26594 (__dso_handle): Remove declaration.
26595 (at_quick_exit): Pass __dso_handle directly.
26596 * stdlib/atexit.c: Include <dso_handle.h>.
26597 (__dso_handle): Remove declaration.
26598 (atexit): Pass __dso_handle directly.
26599 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
26600 (__dso_handle): Removed.
26601
26602 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26603
26604 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
26605 using VDSO.
26606
26607 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
26608
26609 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
26610 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
26611 values to correct default value for given type.
26612
26613 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
26614
26615 [BZ #22101]
26616 * elf/Makefile (tests): Add tst-debug1.
26617 ($(objpfx)tst-debug1): New.
26618 ($(objpfx)tst-debug1.out): Likewise.
26619 ($(objpfx)tst-debug1mod1.so): Likewise.
26620 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
26621 with p_filesz == 0.
26622 * elf/tst-debug1.c: New file.
26623
26624 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26625
26626 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
26627 Define using __ifunc.
26628
26629 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
26630
26631 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
26632 exp2f() values.
26633
26634 2017-09-26 Joseph Myers <joseph@codesourcery.com>
26635
26636 [BZ #22156]
26637 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
26638
26639 2017-09-26 Florian Weimer <fweimer@redhat.com>
26640
26641 * resolv/Makefile (tests-internal): Fix typo in comment.
26642
26643 2017-09-26 Florian Weimer <fweimer@redhat.com>
26644
26645 * resolv/nss_dns/dns-host.c: Fix typo in comment.
26646
26647 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26648
26649 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
26650 Use an union instead of a max_align_t array for __space,
26651 so that __space is the same size on all platforms.
26652 * malloc/scratch_buffer_grow_preserve.c
26653 (__libc_scratch_buffer_grow_preserve): Likewise.
26654
26655 [BZ #22183]
26656 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
26657 version to 2.
26658 * posix/Makefile (routines): Add glob-lstat-compat and
26659 glob64-lstat-compat.
26660 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
26661 * posix/glob-lstat-compat.c: New file.
26662 * posix/glob64-lstat-compat.c: Likewise.
26663 * posix/tst-glob_lstat_compat.c: Likewise.
26664 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
26665 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
26666 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
26667 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
26668 Likewise.
26669 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
26670 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
26671 * posix/glob.c (glob_lstat): New function.
26672 (glob): Rename to __glob and add versioned symbol to 2.27.
26673 (glob_in_dir): Use glob_lstat.
26674 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
26675 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
26676 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
26677 2.27.
26678 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
26679 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
26680 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
26681 gl_lstat on glob call.
26682 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
26683 and glob64 symbols.
26684 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26685 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
26686 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
26687 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
26688 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
26689 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
26690 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
26691 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
26692 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
26693 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26694 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26695 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
26696 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
26697 Likewise.
26698 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
26699 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
26700 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26701 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26702 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
26703 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26704 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26705 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
26706 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
26707 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
26708 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
26709 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
26710
26711 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
26712
26713 * configure.ac (AS): Require binutils 2.25 or later.
26714 * configure: Regenerated.
26715
26716 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
26717
26718 [BZ #22207]
26719 * stdlib/test-atexit-race-common.c (do_test): Minimize required
26720 VM size.
26721
26722 2017-09-25 DJ Delorie <dj@redhat.com>
26723
26724 [BZ #22161]
26725 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
26726 resetting timeout.
26727
26728 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
26729
26730 * sysdeps/ieee754/dbl-64/sincos32.h
26731 [SINCCOS32_H]: Remove define.
26732 [SINCOS32_H]: Define.
26733
26734 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26735
26736 * math/Versions (expf): New libm symbol at GLIBC_2.27.
26737 (exp2f): Likewise.
26738 * math/w_exp2f.c: New file.
26739 * math/w_expf.c: New file.
26740 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
26741 * math/w_expf_compat.c (__expf_compat): Likewise.
26742 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
26743 * sysdeps/ia64/fpu/e_expf.S: Likewise.
26744 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26745 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26746 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26747 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26748 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26749 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26750 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26751 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26752 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26753 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26754 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26757 Likewise.
26758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26759 Likewise.
26760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26761 Likewise.
26762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26763 Likewise.
26764 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26765 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26766 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26767 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26768 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26769 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26770 Likewise.
26771 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26772 Likewise.
26773 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26774 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26775 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26776
26777 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
26778
26779 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
26780 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
26781 (roundtoint, converttoint): Likewise.
26782 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
26783 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
26784 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
26785 * sysdeps/ieee754/flt-32/math_config.h: New file.
26786 * sysdeps/ieee754/flt-32/math_errf.c: New file.
26787 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
26788 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
26789 * sysdeps/i386/fpu/math_errf.c: New file.
26790 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
26791 * sysdeps/ia64/fpu/math_errf.c: New file.
26792 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
26793 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
26794
26795 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26796
26797 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
26798 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
26799 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
26800 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
26801 to make sure that these symbols are defined.
26802 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
26803 of <limits.h>
26804 (__need_NULL): Do not define.
26805 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
26806 alignment.
26807 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
26808 CMGROUP_MAX, cmsgcred): Do not define.
26809 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
26810 NULL.
26811 * bits/socket.h: Likewise.
26812 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
26813 __gettimeofday instead of gettimeofday.
26814 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
26815 instead of settimeofday.
26816
26817 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26818
26819 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
26820 (asinhf): Define using libm_alias_float.
26821 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
26822 (atanf): Define using libm_alias_float.
26823 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
26824 (cbrtf): Define using libm_alias_float.
26825 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
26826 (ceilf): Define using libm_alias_float.
26827 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
26828 <libm-alias-float.h>.
26829 (copysignf): Define using libm_alias_float.
26830 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
26831 (cosf): Define using libm_alias_float.
26832 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
26833 (erff): Define using libm_alias_float.
26834 (erfcf): Likewise.
26835 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
26836 (expm1f): Define using libm_alias_float.
26837 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
26838 (fabsf): Define using libm_alias_float.
26839 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
26840 (floorf): Define using libm_alias_float.
26841 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
26842 (frexpf): Define using libm_alias_float.
26843 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
26844 libm_alias_float.
26845 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
26846 <libm-alias-float.h>.
26847 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
26848 libm_alias_float.
26849 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
26850 <libm-alias-float.h>.
26851 (getpayloadf): Define using libm_alias_float.
26852 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
26853 <libm-alias-float.h>.
26854 (llrintf): Define using libm_alias_float.
26855 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
26856 <libm-alias-float.h>.
26857 (llroundf): Define using libm_alias_float.
26858 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
26859 (logbf): Define using libm_alias_float.
26860 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
26861 (lrintf): Define using libm_alias_float.
26862 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
26863 (lroundf): Define using libm_alias_float.
26864 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
26865 (modff): Define using libm_alias_float.
26866 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
26867 <libm-alias-float.h>.
26868 (nearbyintf): Define using libm_alias_float.
26869 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
26870 <libm-alias-float.h>.
26871 (nextafterf): Define using libm_alias_float.
26872 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
26873 <libm-alias-float.h>.
26874 (nextupf): Define using libm_alias_float.
26875 * sysdeps/ieee754/flt-32/s_remquof.c: Include
26876 <libm-alias-float.h>.
26877 (remquof): Define using libm_alias_float.
26878 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
26879 (rintf): Define using libm_alias_float.
26880 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
26881 <libm-alias-float.h>.
26882 (roundevenf): Define using libm_alias_float.
26883 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
26884 (roundf): Define using libm_alias_float.
26885 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
26886 using libm_alias_float.
26887 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
26888 <libm-alias-float.h>.
26889 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
26890 Define using libm_alias_float.
26891 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
26892 <libm-alias-float.h>.
26893 (sincosf): Define using libm_alias_float.
26894 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
26895 (sinf): Define using libm_alias_float.
26896 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
26897 (tanf): Define using libm_alias_float.
26898 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
26899 (tanhf): Define using libm_alias_float.
26900 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
26901 <libm-alias-float.h>.
26902 (totalorderf): Define using libm_alias_float.
26903 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
26904 <libm-alias-float.h>.
26905 (totalordermagf): Define using libm_alias_float.
26906 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
26907 (truncf): Define using libm_alias_float.
26908 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
26909 libm_alias_float.
26910 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
26911 libm_alias_float.
26912
26913 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26914
26915 [BZ #22146]
26916 math/math.h: Let fpclassify use the builtin in C++ mode, even
26917 when optimazing for size.
26918
26919 2017-09-22 Joseph Myers <joseph@codesourcery.com>
26920
26921 * csu/Makefile (generated): Do not add version-info.h.
26922 (before-compile): Likewise.
26923 (all-Banner-files): Remove variable.
26924 ($(objpfx)version-info.h): Remove rule.
26925 * csu/version.c (banner): Do not include "version-info.h".
26926 * libidn/Banner: Remove.
26927 * manual/contrib.texi (Simon Josefsson): New entry.
26928
26929 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26930
26931 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
26932 Remove conditionals on LDBL_MANT_DIG.
26933 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
26934 (__ieee754_lgammal_r): Likewise.
26935
26936 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26937
26938 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
26939 _Float128 and L().
26940 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
26941 _Float128 and L(). Replace _Float128 with long double and L(x)
26942 with xL, throughout the file.
26943 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26944 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26945 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26946 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26947
26948 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26949
26950 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
26951 sysdeps/ieee754/ldbl-128ibm.
26952 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
26953 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
26954 of including it. Keep _Float128 and L() intact. These will be
26955 reviewed by a separate patch.
26956 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
26957 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
26958 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
26959 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
26960
26961 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26962
26963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
26964 (__finitef128): Define to __redirect___finitef128.
26965 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
26966 (__isinff128): Define to __redirect___isinff128.
26967 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
26968 (__isnanf128): Define to __redirect___isnanf128.
26969
26970 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26971
26972 * sysdeps/powerpc/powerpc64le/Makefile
26973 (CFLAGS-tst-strtod-nan-locale.c): New variable.
26974 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
26975
26976 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
26977 Carlos O'Donell <carlos@redhat.com>
26978
26979 [BZ #22180]
26980 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
26981 * stdlib/test-dlclose-exit-race.c: New file.
26982 * stdlib/test-dlclose-exit-race-helper.c: New file.
26983 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
26984
26985 2017-09-21 Joseph Myers <joseph@codesourcery.com>
26986
26987 * crypt/Banner: Remove file.
26988 * nptl/Banner: Likewise.
26989 * resolv/Banner: Likewise.
26990 * soft-fp/Banner: Likewise.
26991 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
26992 ($(objpfx)version.d): Remove dependency on banner.h.
26993 ($(objpfx)version.os): Likewise.
26994 * nptl/version.c (banner): Do not include banner.h.
26995 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
26996 Jelinek and BIND code.
26997
26998 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
26999 Carlos O'Donell <carlos@redhat.com>
27000
27001 * support/xdlfcn.h: New file.
27002 * support/xdlfcn.c: New file.
27003 * support/Makefile (libsupport-routines): Add xdlfcn.
27004 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27005
27006 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27007
27008 [BZ #20142]
27009 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27010 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27011 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27012 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27013 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27014 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27015 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27016 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27017
27018 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27019 Ricky Zhou <rickyz@google.com>
27020 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27021
27022 [BZ #14333]
27023 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27024 Remove atomics.
27025 (__new_exitfn): Fail registration when we finished at_exit processing.
27026 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27027 * stdlib/on_exit.c (__on_exit): Likewise.
27028 * stdlib/exit.c (__exit_funcs_done): New variable.
27029 (__run_exit_handlers): Use __exit_funcs_lock.
27030 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27031 declarations.
27032 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27033 (test-cxa_atexit-race, test-on_exit-race): New tests.
27034 * stdlib/test-atexit-race-common.c: New file.
27035 * stdlib/test-atexit-race.c: New file.
27036 * stdlib/test-at_quick_exit-race.c: New file.
27037 * stdlib/test-cxa_atexit-race.c: New file.
27038 * stdlib/test-on_exit-race.c: New file.
27039
27040 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27041
27042 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27043 * benchtests/exp2f-inputs: Copy of expf-inputs.
27044 * benchtests/log2f-inputs: Copy of logf-inputs.
27045
27046 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27047
27048 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27049 Explicitly take address of first element of array arguments in
27050 call to INLINE_SYSCALL.
27051
27052 2017-09-19 Andreas Schwab <schwab@suse.de>
27053
27054 [BZ #22134]
27055 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27056 execveat first.
27057 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27058 unimplemented.
27059 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27060 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27061 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27062 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27063 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27064 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27065 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27066 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27067 * posix/Makefile (tests): Add tst-fexecve.
27068 * posix/tst-fexecve.c: New file.
27069
27070 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27071
27072 * benchtests/Makefile: Add logf benchmark.
27073 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27074
27075 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27076
27077 * benchtests/Makefile: Add expf benchmark.
27078 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27079
27080 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27081
27082 * csu/Makefile: Add -funwind-tables to libc-start.c.
27083 * debug/Makefile: Add -funwind-tables to backtrace.c.
27084 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27085 * sysdeps/arm/Makefile: Likewise.
27086 * sysdeps/i386/Makefile: Likewise.
27087 * sysdeps/m68k/Makefile: Likewise.
27088 * sysdeps/mips/Makefile: Likewise.
27089 * sysdeps/nios2/Makefile: Likewise.
27090 * sysdeps/sh/Makefile: Likewise.
27091 * sysdeps/sparc/Makefile: Likewise.
27092
27093 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27094
27095 * benchtests/Makefile (bench-math): Add trunc and truncf.
27096 (CFLAGS-bench-trunc.c): New variable.
27097 (CFLAGS-bench-truncf.c): Likewise.
27098 * benchtests/trunc-inputs: New file.
27099 * benchtests/truncf-inputs: Likewise.
27100
27101 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27102
27103 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27104
27105 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27106
27107 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27108 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27109 redefine.
27110 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27111 (exp10l): Define as weak alias.
27112 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27113 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27114 and redefine.
27115 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27116 (remainderl): Define as weak alias.
27117
27118 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27119 (fmal): Define using libm_alias_ldouble.
27120 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27121 (acoshl): Define using libm_alias_ldouble.
27122 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27123 (acosl): Define using libm_alias_ldouble.
27124 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27125 (asinl): Define using libm_alias_ldouble.
27126 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27127 (atan2l): Define using libm_alias_ldouble.
27128 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27129 (atanhl): Define using libm_alias_ldouble.
27130 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27131 (coshl): Define using libm_alias_ldouble.
27132 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27133 (exp10l): Define using libm_alias_ldouble.
27134 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27135 (exp2l): Define using libm_alias_ldouble.
27136 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27137 (expl): Define using libm_alias_ldouble.
27138 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27139 (fmodl): Define using libm_alias_ldouble.
27140 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27141 (hypotl): Define using libm_alias_ldouble.
27142 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27143 (j0l): Define using libm_alias_ldouble.
27144 (y0l): Likewise.
27145 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27146 (j1l): Define using libm_alias_ldouble.
27147 (y1l): Likewise.
27148 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27149 (jnl): Define using libm_alias_ldouble.
27150 (ynl): Likewise.
27151 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27152 (log10l): Define using libm_alias_ldouble.
27153 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27154 (log2l): Define using libm_alias_ldouble.
27155 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27156 (logl): Define using libm_alias_ldouble.
27157 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27158 (powl): Define using libm_alias_ldouble.
27159 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27160 (remainderl): Define using libm_alias_ldouble.
27161 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27162 (sinhl): Define using libm_alias_ldouble.
27163 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27164 (sqrtl): Define using libm_alias_ldouble.
27165 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27166 (tgammal): Define using libm_alias_ldouble.
27167 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27168 (exp10l): Do not use long_double_symbol here.
27169 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27170 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27171 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27172 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27173 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27174 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27175 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27176 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27177 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27178 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27179 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27180 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27181 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27182 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27183 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27184 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27185 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27186 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27187 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27188 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27189 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27190 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27191
27192 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27193
27194 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27195 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27196
27197 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27198
27199 * io/read.c (read): Add libc_hidden_weak.
27200 * sysdeps/mach/hurd/read.c (read): Likewise.
27201 * io/write.c (write): Likewise.
27202 * sysdeps/mach/hurd/write.c (write): Likewise.
27203 * io/pread64.c (__pread64): Likewise.
27204 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27205 * posix/pread64.c (__pread64): Add libc_hidden_def.
27206
27207 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27208
27209 * benchtests/scripts/compare_strings.py: New option -g.
27210 (draw_graph): Print a message that a graph is being generated.
27211 (process_results): Generate graph only if -g is passed.
27212 (main): Process option -g.
27213
27214 * benchtests/scripts/compare_strings.py (process_results):
27215 Better spacing for output.
27216
27217 * benchtests/scripts/compare_strings.py: Use argparse.
27218 * benchtests/README: Document existence of compare_strings.py.
27219
27220 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27221
27222 * math/s_fma.c: Include <libm-alias-double.h>.
27223 (fma): Define using libm_alias_double.
27224 * math/s_nextafter.c: Include <libm-alias-double.h>.
27225 (nextafter): Define using libm_alias_double.
27226 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27227 (acos): Define using libm_alias_double.
27228 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27229 (aocsh): Define using libm_alias_double.
27230 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27231 (asin): Define using libm_alias_double.
27232 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27233 (atan2): Define using libm_alias_double.
27234 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27235 (atanh): Define using libm_alias_double.
27236 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27237 (cosh): Define using libm_alias_double.
27238 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27239 (exp10): Define using libm_alias_double.
27240 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27241 (exp2): Define using libm_alias_double.
27242 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27243 (exp): Define using libm_alias_double.
27244 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27245 (fmod): Define using libm_alias_double.
27246 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27247 (hypot): Define using libm_alias_double.
27248 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27249 (j0): Define using libm_alias_double.
27250 (y0): Likewise.
27251 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27252 (j1): Define using libm_alias_double.
27253 (y1): Likewise.
27254 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27255 (jn): Define using libm_alias_double.
27256 (yn): Likewise.
27257 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27258 (log10): Define using libm_alias_double.
27259 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27260 (log2): Define using libm_alias_double.
27261 * math/w_log_compat.c: Include <libm-alias-double.h>.
27262 (log): Define using libm_alias_double.
27263 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27264 (pow): Define using libm_alias_double.
27265 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27266 (remainder): Define using libm_alias_double.
27267 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27268 (sinh): Define using libm_alias_double.
27269 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27270 (sqrt): Define using libm_alias_double.
27271 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27272 (tgamma): Define using libm_alias_double.
27273 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27274 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27275 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27276 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27277 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27278 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27279 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27280 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27281 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27282 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27283 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27284 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27285 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27286 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27287 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27288 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27289 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27290 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27291 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27292 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27293 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27294 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27295 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27296 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27297 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27298
27299 * math/e_acoshl.c: Remove.
27300 * math/e_acosl.c: Likewise.
27301 * math/e_asinl.c: Likewise.
27302 * math/e_atan2l.c: Likewise.
27303 * math/e_atanhl.c: Likewise.
27304 * math/e_coshl.c: Likewise.
27305 * math/e_expl.c: Likewise.
27306 * math/e_fmodl.c: Likewise.
27307 * math/e_gammal_r.c: Likewise.
27308 * math/e_hypotl.c: Likewise.
27309 * math/e_j0l.c: Likewise.
27310 * math/e_j1l.c: Likewise.
27311 * math/e_jnl.c: Likewise.
27312 * math/e_lgammal_r.c: Likewise.
27313 * math/e_log10l.c: Likewise.
27314 * math/e_log2l.c: Likewise.
27315 * math/e_logl.c: Likewise.
27316 * math/e_powl.c: Likewise.
27317 * math/e_rem_pio2l.c: Likewise.
27318 * math/e_sinhl.c: Likewise.
27319 * math/e_sqrtf128.c: Likewise.
27320 * math/e_sqrtl.c: Likewise.
27321 * math/k_cosl.c: Likewise.
27322 * math/k_sinl.c: Likewise.
27323 * math/k_tanl.c: Likewise.
27324 * math/s_asinhl.c: Likewise.
27325 * math/s_atanl.c: Likewise.
27326 * math/s_cbrtl.c: Likewise.
27327 * math/s_erfl.c: Likewise.
27328 * math/s_expm1l.c: Likewise.
27329 * math/s_log1pl.c: Likewise.
27330 * math/s_tanhl.c: Likewise.
27331
27332 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27333
27334 [BZ #21745]
27335 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27336 [$(subdir) = math] (sysdep_calls): New variable. Has the
27337 previous contents of sysdep_routines, but re-sorted..
27338 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27339 sysdep_calls.
27340 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27341 defined in sysdep_calls and replace by the respective m_* names.
27342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27343 (compat_symbol): Undefine to avoid duplicated compat symbols in
27344 libc.
27345
27346 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27347
27348 * math/s_fmaf.c: Include <libm-alias-float.h>.
27349 (fmaf): Define using libm_alias_float.
27350 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27351 (acosf): Define using libm_alias_float.
27352 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27353 (acoshf): Define using libm_alias_float.
27354 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27355 (asinf): Define using libm_alias_float.
27356 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27357 (atan2f): Define using libm_alias_float.
27358 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27359 (atanhf): Define using libm_alias_float.
27360 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27361 (coshf): Define using libm_alias_float.
27362 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27363 (exp10f): Define using libm_alias_float.
27364 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27365 (fmodf): Define using libm_alias_float.
27366 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27367 (hypotf): Define using libm_alias_float.
27368 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27369 (j0f): Define using libm_alias_float.
27370 (y0f): Likewise.
27371 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27372 (j1f): Define using libm_alias_float.
27373 (y1f): Likewise.
27374 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27375 (jnf): Define using libm_alias_float.
27376 (ynf): Likewise.
27377 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27378 (log10f): Define using libm_alias_float.
27379 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27380 (log2f): Define using libm_alias_float.
27381 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27382 (logf): Define using libm_alias_float.
27383 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27384 (powf): Define using libm_alias_float.
27385 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27386 (remainderf): Define using libm_alias_float.
27387 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27388 (sinhf): Define using libm_alias_float.
27389 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27390 (sqrtf): Define using libm_alias_float.
27391 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27392 (tgammaf): Define using libm_alias_float.
27393
27394 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27395
27396 * include/math.h (roundeven): Change hidden_proto call to
27397 __roundeven.
27398 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27399 alias.
27400 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27401 (y0): Rename to __y0 and define as weak alias.
27402 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27403 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27404 alias.
27405 (y0f): Rename to __y0f and define as weak alias.
27406 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27407 alias.
27408 [NO_LONG_DOUBLE] (__j1l): New strong alias.
27409 (y1): Rename to __y1 and define as weak alias.
27410 [NO_LONG_DOUBLE] (__y1l): New strong alias.
27411 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
27412 alias.
27413 (y1f): Rename to __y1f and define as weak alias.
27414 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
27415 alias.
27416 [NO_LONG_DOUBLE] (__jnl): New strong alias.
27417 (yn): Rename to __yn and define as weak alias.
27418 [NO_LONG_DOUBLE] (__ynl): New strong alias.
27419 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
27420 alias.
27421 (ynf): Rename to __ynf and define as weak alias.
27422 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
27423 (fromfp): Define as weak alias.
27424 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
27425 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
27426 (fromfpx): Define as weak alias.
27427 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
27428 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
27429 __getpayload and define as weak alias.
27430 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27431 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
27432 __roundeven and define as weak alias.
27433 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27434 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
27435 __setpayload.
27436 (setpayload): Define as weak alias.
27437 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
27438 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
27439 __setpayloadsig.
27440 (setpayloadsig): Define as weak alias.
27441 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
27442 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
27443 __totalorder and define as weak alias.
27444 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27445 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
27446 to __totalordermag and define as weak alias.
27447 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27448 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
27449 (ufromfp): Define as weak alias.
27450 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
27451 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
27452 __ufromfpx.
27453 (ufromfpx): Define as weak alias.
27454 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
27455 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
27456 Rename to __getpayload and define as weak alias.
27457 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
27458 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
27459 Rename to __roundeven and define as weak alias.
27460 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
27461 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
27462 Rename to __totalorder and define as weak alias.
27463 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
27464 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
27465 (totalordermag): Rename to __totalordermag and define as weak
27466 alias.
27467 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
27468 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
27469 macro.
27470 (__roundevenl): Likewise.
27471 (__totalorderl): Likewise.
27472 (__totalordermagl): Likewise
27473 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
27474 __fromfpf128.
27475 (fromfpf128): Define as weak alias.
27476 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
27477 __fromfpxf128.
27478 (fromfpxf128): Define as weak alias.
27479 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
27480 __setpayloadf128.
27481 (setpayloadf128): Define as weak alias.
27482 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
27483 __setpayloadsigf128.
27484 (setpayloadsigf128): Define as weak alias.
27485 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
27486 __ufromfpf128.
27487 (ufromfpf128): Define as weak alias.
27488 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
27489 __ufromfpxf128.
27490 (ufromfpxf128): Define as weak alias.
27491 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
27492 (fromfpf): Define as weak alias.
27493 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
27494 __fromfpxf.
27495 (fromfpxf): Define as weak alias.
27496 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
27497 __getpayloadf and define as weak alias.
27498 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
27499 __roundevenf and define as weak alias.
27500 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
27501 __setpayloadf.
27502 (setpayloadf): Define as weak alias.
27503 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
27504 __setpayloadsigf.
27505 (setpayloadsigf): Define as weak alias.
27506 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
27507 __totalorderf and define as weak alias.
27508 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
27509 Rename to __totalordermagf and define as weak alias.
27510 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
27511 __ufromfpf.
27512 (ufromfpf): Define as weak alias.
27513 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
27514 __ufromfpxf.
27515 (ufromfpxf): Define as weak alias.
27516 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
27517 __fromfpl.
27518 (fromfpl): Define as weak alias.
27519 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
27520 __fromfpxl.
27521 (fromfpxl): Define as weak alias.
27522 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
27523 to __getpayloadl and define as weak alias.
27524 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
27525 __roundevenl and define as weak alias.
27526 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
27527 __setpayloadl.
27528 (setpayloadl): Define as weak alias.
27529 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
27530 __setpayloadsigl.
27531 (setpayloadsigl): Define as weak alias.
27532 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
27533 to __totalorderl and define as weak alias.
27534 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
27535 Rename to __totalordermagl and define as weak alias.
27536 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
27537 __ufromfpl.
27538 (ufromfpl): Define as weak alias.
27539 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
27540 __ufromfpxl.
27541 (ufromfpxl): Define as weak alias.
27542 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
27543 __fromfpl.
27544 (fromfpl): Define as weak alias.
27545 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
27546 __fromfpxl.
27547 (fromfpxl): Define as weak alias.
27548 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
27549 Rename to __getpayloadl and define as weak alias.
27550 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
27551 to __roundevenl and define as weak alias. Call __roundeven
27552 instead of roundeven.
27553 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
27554 __setpayloadl.
27555 (setpayloadl): Define as weak alias.
27556 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
27557 __setpayloadsigl.
27558 (setpayloadsigl): Define as weak alias.
27559 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
27560 Rename to __totalorderl and define as weak alias.
27561 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
27562 Rename to __totalordermagl and define as weak alias.
27563 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
27564 __ufromfpl.
27565 (ufromfpl): Define as weak alias.
27566 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
27567 __ufromfpxl.
27568 (ufromfpxl): Define as weak alias.
27569 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
27570 __fromfpl.
27571 (fromfpl): Define as weak alias.
27572 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
27573 __fromfpxl.
27574 (fromfpxl): Define as weak alias.
27575 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
27576 __getpayloadl and define as weak alias.
27577 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
27578 __roundevenl and define as weak alias.
27579 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
27580 __setpayloadl.
27581 (setpayloadl): Define as weak alias.
27582 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
27583 __setpayloadsigl.
27584 (setpayloadsigl): Define as weak alias.
27585 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
27586 __totalorderl and define as weak alias.
27587 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
27588 Rename to __totalordermagl and define as weak alias.
27589 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
27590 __ufromfpl.
27591 (ufromfpl): Define as weak alias.
27592 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
27593 __ufromfpxl.
27594 (ufromfpxl): Define as weak alias.
27595
27596 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
27597
27598 * benchtests/bench-string.h (realloc_bufs): New function.
27599 (test_init): Call it.
27600 * benchtests/bench-memset-large.c (do_test): Likewise.
27601 * benchtests/bench-memset.c (do_test): Likewise.
27602
27603 * benchtests/bench-memset-large.c: Print output in JSON
27604 format.
27605 * benchtests/bench-memset.c: Likewise.
27606
27607 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27608
27609 [BZ #21084]
27610 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
27611 * iconvdata/Makefile: Add IBM858.
27612 * iconvdata/gconv-modules: Likewise.
27613 * iconvdata/tst-tables.sh: Likewise.
27614 * iconvdata/ibm858.c: New file.
27615 * localedata/charmaps/IBM858: Likewise.
27616
27617 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
27618
27619 [BZ #22023]
27620 * locales/niu_NZ (LC_TIME): copy "niu_NU".
27621 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
27622
27623 2017-09-14 Mike FABIAN <mfabian@redhat.com>
27624
27625 [BZ #22112]
27626 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
27627 and add tel_int_fmt.
27628
27629 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27630
27631 * sysdeps/generic/libm-alias-float128.h: New file.
27632 * sysdeps/generic/math-type-macros-float128.h: Include
27633 <libm-alias-float128.h>.
27634 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27635
27636 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27637
27638 * sysdeps/generic/libm-alias-ldouble.h: New file.
27639 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
27640 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
27641 * sysdeps/generic/math-type-macros-ldouble.h: Include
27642 <libm-alias-ldouble.h>.
27643 [!declare_mgen_alias] (declare_mgen_alias): Define to use
27644 libm_alias_ldouble.
27645
27646 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
27647
27648 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
27649 * math/w_exp_compat.c: ... here.
27650 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
27651 * math/w_expf_compat.c: ... here.
27652 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
27653 * math/w_expl_compat.c: ... here.
27654 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
27655 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
27656 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
27657 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27658
27659 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27660
27661 * math/w_scalbln_template.c (strong_alias): Do not undefine and
27662 redefine.
27663 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
27664 macro.
27665 (ldexpl): Only define as compat symbol for libc, not libm.
27666 (scalbnl): Define as compat symbol for libc here.
27667 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
27668 define for [IS_IN (libc)].
27669 (__ldexpl_2): Remove alias.
27670 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
27671 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
27672 name in long_double_symbol call.
27673 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
27674 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
27675 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
27676 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
27677 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
27678 Remove macro.
27679 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
27680 Define as compat symbol.
27681
27682 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27683
27684 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
27685 * sysdeps/unix/sysv/linux/alpha/Makefile
27686 [$(subdir) = csu] (sysdep_routines): Remove rule.
27687
27688 2017-09-13 Joseph Myers <joseph@codesourcery.com>
27689
27690 * sysdeps/generic/libm-alias-double.h: New file.
27691 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
27692 * sysdeps/generic/math-type-macros-double.h: Include
27693 <libm-alias-double.h>.
27694 [declare_mgen_alias] (declare_mgen_alias): Define to use
27695 libm_alias_double.
27696 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
27697 (M_LIBM_NEED_COMPAT): Remove macro.
27698 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
27699 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
27700 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
27701 code.
27702 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27703 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27704 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27705 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27706 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27707 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27708 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27709 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27710 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27711 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27712 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27713 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27714 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27715 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27716 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27717 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27718 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27719 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27720 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27721 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27722 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27723 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27724 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27725 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27726 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27727 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27728 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
27729 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
27730 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
27731 macro.
27732 (declare_mgen_alias): New macro.
27733 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
27734 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
27735 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
27736 (M_LIBM_NEED_COMPAT): Remove macro.
27737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
27738 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
27739 <first-versions.h>.
27740 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
27741 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
27742
27743 2017-09-12 Joseph Myers <joseph@codesourcery.com>
27744
27745 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
27746 (declare_mgen_alias_2): Remove.
27747 * sysdeps/generic/math-type-macros-double.h
27748 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
27749 Likewise.
27750 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
27751 alias.
27752 (ldexp): Define with declare_mgen_alias.
27753 (scalbn): Likewise.
27754
27755 2017-09-12 Steve Ellcey <sellcey@cavium.com>
27756
27757 * grp/initgroups.c: Include config.h.
27758 (DEFAULT_CONFIG): New macro.
27759 (internal_getgrouplist): Use DEFAULT_CONFIG.
27760 * nscd/initgrcache.c (addinitgroupsX): Likewise.
27761 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
27762 (DEFAULT_DEFCONFIG): New macro.
27763 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
27764 * nss/grp-lookup.c: Include config.h
27765 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
27766 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
27767 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
27768 * manual/nss.texi: Update default values section.
27769
27770 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
27771
27772 [BZ #21967]
27773 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
27774 New.
27775 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
27776 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27777 Handle MathVec_Prefer_No_AVX512.
27778 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
27779 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
27780 is set.
27781
27782 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
27783
27784 * posix/sched_primax.c (__sched_get_priority_max): Add
27785 libc_hidden_def.
27786 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
27787 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
27788 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
27789 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
27790 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
27791 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
27792 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
27793 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
27794 Add aliases.
27795
27796 2017-09-11 Joseph Myers <joseph@codesourcery.com>
27797
27798 * sysdeps/generic/libm-alias-float.h: New file.
27799 * sysdeps/generic/math-type-macros-float.h: Include
27800 <libm-alias-float.h>.
27801 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
27802
27803 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
27804
27805 [BZ #22093]
27806 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
27807 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
27808 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
27809 (HWCAP_IMPORTANT): Likewise.
27810 (HWCAP_X86_64): New enum.
27811 (HWCAP_X86_AVX512_1): Updated.
27812 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
27813 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
27814 (modules-names): Add x86_64/tst-x86_64mod-1.
27815 (LDFLAGS-tst-x86_64mod-1.so): New.
27816 ($(objpfx)tst-x86_64-1): Likewise.
27817 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
27818 (tst-x86_64-1-clean): Likewise.
27819 * sysdeps/x86_64/tst-x86_64-1.c: New file.
27820 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
27821
27822 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
27823
27824 * po/sv.po: Update translations.
27825 * po/fr.po: Likewise.
27826
27827 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
27828
27829 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
27830 seconds.
27831 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
27832 seconds.
27833 * elf/rtld-Rules: Fix $(error) use.
27834
27835 2017-09-09 Mike FABIAN <mfabian@redhat.com>
27836
27837 [BZ #14925]
27838 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
27839 * locale/iso-639.def: Change “Bengali” to “Bangla”.
27840 * localedata/locales/bn_BD: “Bengali” was still used in some
27841 comments. Change it to “Bangla”.
27842
27843 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
27844
27845 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
27846
27847 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27848
27849 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
27850 thunderx2t99p1 to list of cpu names.
27851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
27852 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
27853
27854 2017-09-08 Steve Ellcey <sellcey@cavium.com>
27855
27856 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
27857 Use strcmp instead of tunable_is_name.
27858
27859 2017-09-08 Joseph Myers <joseph@codesourcery.com>
27860
27861 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27862 (F_GET_RW_HINT): New macro.
27863 [__USE_GNU] (F_SET_RW_HINT): Likewise.
27864 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
27865 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
27866 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
27867 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
27868 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
27869 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
27870 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
27871 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
27872
27873 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
27874 (F_ADD_SEALS): New macro.
27875 [__USE_GNU] (F_GET_SEALS): Likewise.
27876 [__USE_GNU] (F_SEAL_SEAL): Likewise.
27877 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
27878 [__USE_GNU] (F_SEAL_GROW): Likewise.
27879 [__USE_GNU] (F_SEAL_WRITE): Likewise.
27880
27881 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27882
27883 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
27884 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
27885 * posix/glob_internal.h (__glob_pattern_type):
27886 * posix/glob.c (glob):
27887 * posix/glob_pattern_p.c (__glob_pattern_p):
27888 Use them.
27889
27890 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
27891 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27892 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
27893 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
27894 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27895 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
27896 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
27897 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
27898 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27899 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
27900 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27901 * sysdeps/wordsize-64/glob.c: Likewise.
27902 * sysdeps/wordsize-64/glob64.c: Likewise.
27903 * sysdeps/wordsize-64/globfree.c: Likewise.
27904 * sysdeps/wordsize-64/globfree64.c: Likewise.
27905 * sysdeps/unix/sysv/linux/glob.c: New file.
27906 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
27907 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
27908 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
27909 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27910 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
27911 adds !GLOB_NO_OLD_VERSION as an extra condition.
27912 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
27913 using relative path instead of absolute one.
27914 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
27915 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
27916 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
27917 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
27918 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
27919 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
27920
27921 [BZ #1062]
27922 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
27923 (glob): Use the same scratch buffer for both getlogin_r and
27924 getpwnam_r. Don’t require preallocation of the login name. This
27925 simplifies storage allocation, and corrects the handling of
27926 long login names.
27927
27928 [BZ #1062]
27929 * posix/glob.c (glob): Port recent patches to platforms
27930 lacking getpwnam_r.
27931 (glob): Fix longstanding misuse of errno after getpwnam_r, which
27932 returns an error number rather than setting errno.
27933
27934 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
27935 instead of GCC extension.
27936 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
27937 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
27938 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
27939
27940 [BZ #866]
27941 [BZ #1062]
27942 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
27943 * posix/bug-glob1.c: Remove file.
27944 * posix/tst-glob_symlinks.c: New file.
27945 * posix/glob.c (__lstat64): New macro.
27946 (is_dir): New function.
27947 (glob, glob_in_dir): Match symlinks even if they are dangling.
27948 (link_stat, link_exists_p): Remove. All uses removed.
27949
27950 [BZ #1062]
27951 [BZ #19971]
27952 * posix/glob.c (struct readdir_result): Remove skip_entry member.
27953 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
27954 All uses removed.
27955
27956 [BZ #1062]
27957 CVE-2017-15671
27958 * posix/Makefile (routines): Add globfree, globfree64, and
27959 glob_pattern_p.
27960 * posix/flexmember.h: New file.
27961 * posix/glob_internal.h: Likewise.
27962 * posix/glob_pattern_p.c: Likewise.
27963 * posix/globfree.c: Likewise.
27964 * posix/globfree64.c: Likewise.
27965 * sysdeps/gnu/globfree64.c: Likewise.
27966 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
27967 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
27968 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
27969 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
27970 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
27971 * sysdeps/wordsize-64/globfree.c: Likewise.
27972 * sysdeps/wordsize-64/globfree64.c: Likewise.
27973 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
27974 [NDEBUG): Remove comments.
27975 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
27976 (dirent_type): New type. Use uint_fast8_t not
27977 uint8_t, as C99 does not require uint8_t.
27978 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
27979 (struct readdir_result): Use dirent_type. Do not define skip_entry
27980 unless it is needed; this saves a byte on platforms lacking d_ino.
27981 (readdir_result_type, readdir_result_skip_entry):
27982 New functions, replacing ...
27983 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
27984 these functions, which were removed. This makes the callers
27985 easier to read. All callers changed.
27986 (D_INO_TO_RESULT): Now empty if there is no d_ino.
27987 (size_add_wrapv, glob_use_alloca): New static functions.
27988 (glob, glob_in_dir): Check for size_t overflow in several places,
27989 and fix some size_t checks that were not quite right.
27990 Remove old code using SHELL since Bash no longer
27991 uses this.
27992 (glob, prefix_array): Separate MS code better.
27993 (glob_in_dir): Remove old Amiga and VMS code.
27994 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
27995 separate files.
27996 (glob_in_dir): Do not rely on undefined behavior in accessing
27997 struct members beyond their bounds. Use a flexible array member
27998 instead
27999 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28000 0/1. Caller changed.
28001 (glob): Fix memory leaks.
28002 * posix/glob64 (globfree64): Move to separate file.
28003 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28004 (globfree64): Remove hidden alias.
28005 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28006 oldglob.
28007 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28008 separate file.
28009 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28010 define.
28011 Move compat code to separate file.
28012 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28013 separate file.
28014
28015 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28016
28017 * resolv/tst-resolv-qtypes.c (domain): Changed to
28018 "const char domain[] =".
28019
28020 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28021
28022 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28023 version to 3.1.6.
28024
28025 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28026 (TCP_MD5SIG_EXT): Likewise.
28027 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28028 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28029 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28030
28031 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28032
28033 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28034
28035 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28036
28037 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28038
28039 [BZ #22100]
28040 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28041
28042 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28043
28044 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28045 before assuming that the file is empty. Avoid testing buffer content
28046 when nread == 0.
28047
28048 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28049
28050 [BZ #18858]
28051 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28052 Remove define.
28053 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28054 Likewise.
28055 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28056 Likewise.
28057 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28058 Likewise.
28059 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28060 Likewise.
28061 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28062 Likewise.
28063 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28064 Likewise.
28065
28066 2017-09-06 Florian Weimer <fweimer@redhat.com>
28067
28068 * malloc/dynarray_emplace_enlarge.c
28069 (__libc_dynarray_emplace_enlarge): Add missing else.
28070
28071 2017-09-06 Florian Weimer <fweimer@redhat.com>
28072
28073 [BZ #22096]
28074 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28075 case of failure to obtain the global conf object.
28076
28077 2017-09-06 Florian Weimer <fweimer@redhat.com>
28078
28079 [BZ #22095]
28080 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28081 dynarray allocation failure.
28082
28083 2017-09-06 Florian Weimer <fweimer@redhat.com>
28084
28085 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28086 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28087 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28088 New functions.
28089 (response): Call them. Add 'p', '6' flag processing.
28090 (test_reverse): New function.
28091 (test_get2_any): Call it.
28092 (test_no_inet6): Add 'p' test.
28093 (test_inet6): Likewise.
28094
28095 2017-09-06 Florian Weimer <fweimer@redhat.com>
28096
28097 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28098 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28099 the QNAME.
28100 (test_gai): Adjust query names. Add additional tests.
28101 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28102 test_get2. Adjust query names. Add additional tests.
28103 (test_no_inet6): New function, extracted from threadfunc.
28104 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28105 Add additional tests.
28106
28107 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28108
28109 [BZ #22070]
28110 * localedata/unicode-gen/utf8_gen.py: Set the width for
28111 characters with Prepended_Concatenation_Mark property to 1
28112 * localedata/charmaps/UTF-8: Updated using the improved script.
28113
28114 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28115
28116 [BZ #21750]
28117 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28118 use the range notation for all ranges of neighbouring characters
28119 with the same width.
28120
28121 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28122
28123 * sysdeps/generic/math-type-macros-double.h: Include
28124 <math-svid-compat.h>.
28125 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28126 * sysdeps/generic/math-type-macros-float.h: Include
28127 <math-svid-compat.h>.
28128 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28129 * sysdeps/generic/math-type-macros-ldouble.h: Include
28130 <math-svid-compat.h>.
28131 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28132 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28133 condition.
28134 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28135 * math/w_acosf_compat.c: Likewise.
28136 * math/w_acosh_compat.c: Likewise.
28137 * math/w_acoshf_compat.c: Likewise.
28138 * math/w_acoshl_compat.c: Likewise.
28139 * math/w_acosl_compat.c: Likewise.
28140 * math/w_asin_compat.c: Likewise.
28141 * math/w_asinf_compat.c: Likewise.
28142 * math/w_asinl_compat.c: Likewise.
28143 * math/w_atan2_compat.c: Likewise.
28144 * math/w_atan2f_compat.c: Likewise.
28145 * math/w_atan2l_compat.c: Likewise.
28146 * math/w_atanh_compat.c: Likewise.
28147 * math/w_atanhf_compat.c: Likewise.
28148 * math/w_atanhl_compat.c: Likewise.
28149 * math/w_cosh_compat.c: Likewise.
28150 * math/w_coshf_compat.c: Likewise.
28151 * math/w_coshl_compat.c: Likewise.
28152 * math/w_exp10_compat.c: Likewise.
28153 * math/w_exp10f_compat.c: Likewise.
28154 * math/w_exp10l_compat.c: Likewise.
28155 * math/w_exp2_compat.c: Likewise.
28156 * math/w_exp2f_compat.c: Likewise.
28157 * math/w_exp2l_compat.c: Likewise.
28158 * math/w_fmod_compat.c: Likewise.
28159 * math/w_fmodf_compat.c: Likewise.
28160 * math/w_fmodl_compat.c: Likewise.
28161 * math/w_hypot_compat.c: Likewise.
28162 * math/w_hypotf_compat.c: Likewise.
28163 * math/w_hypotl_compat.c: Likewise.
28164 * math/w_j0_compat.c: Likewise.
28165 * math/w_j0f_compat.c: Likewise.
28166 * math/w_j0l_compat.c: Likewise.
28167 * math/w_j1_compat.c: Likewise.
28168 * math/w_j1f_compat.c: Likewise.
28169 * math/w_j1l_compat.c: Likewise.
28170 * math/w_jn_compat.c: Likewise.
28171 * math/w_jnf_compat.c: Likewise.
28172 * math/w_jnl_compat.c: Likewise.
28173 * math/w_lgamma_r_compat.c: Likewise.
28174 * math/w_lgammaf_r_compat.c: Likewise.
28175 * math/w_lgammal_r_compat.c: Likewise.
28176 * math/w_log10_compat.c: Likewise.
28177 * math/w_log10f_compat.c: Likewise.
28178 * math/w_log10l_compat.c: Likewise.
28179 * math/w_log2_compat.c: Likewise.
28180 * math/w_log2f_compat.c: Likewise.
28181 * math/w_log2l_compat.c: Likewise.
28182 * math/w_log_compat.c: Likewise.
28183 * math/w_logf_compat.c: Likewise.
28184 * math/w_logl_compat.c: Likewise.
28185 * math/w_pow_compat.c: Likewise.
28186 * math/w_powf_compat.c: Likewise.
28187 * math/w_powl_compat.c: Likewise.
28188 * math/w_remainder_compat.c: Likewise.
28189 * math/w_remainderf_compat.c: Likewise.
28190 * math/w_remainderl_compat.c: Likewise.
28191 * math/w_sinh_compat.c: Likewise.
28192 * math/w_sinhf_compat.c: Likewise.
28193 * math/w_sinhl_compat.c: Likewise.
28194 * math/w_sqrt_compat.c: Likewise.
28195 * math/w_sqrtf_compat.c: Likewise.
28196 * math/w_sqrtl_compat.c: Likewise.
28197 * math/w_tgamma_compat.c: Likewise.
28198 * math/w_tgammaf_compat.c: Likewise.
28199 * math/w_tgammal_compat.c: Likewise.
28200 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28201 [LIBM_SVID_COMPAT].
28202 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28203 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28204 [LIBM_SVID_COMPAT].
28205 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28206 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28207 [LIBM_SVID_COMPAT].
28208 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28209 * sysdeps/i386/fpu/w_sqrt.c: New file.
28210 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28211 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28212 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28213 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28214 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28215 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28216 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28217 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28218 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28219 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28220 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28221 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28222 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28223 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28224 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28225 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28226 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28227 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28228 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28229 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28230 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28231 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28232 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28233 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28234 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28235 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28236 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28237 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28238 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28239 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28240 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28241 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28242 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28243 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28244 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28245 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28246 * sysdeps/ia64/fpu/w_log.c: Likewise.
28247 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28248 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28249 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28250 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28251 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28252 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28253 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28254 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28255 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28256 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28257 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28258 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28259 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28260 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28261 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28262 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28263 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28264 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28265 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28266 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28267 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28268 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28269 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28270 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28271 [LIBM_SVID_COMPAT].
28272 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28273 * sysdeps/ieee754/k_standard.c: Likewise.
28274 * sysdeps/ieee754/k_standardf.c: Likewise.
28275 * sysdeps/ieee754/k_standardl.c: Likewise.
28276 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28277 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28278 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28279 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28280 long_double_symbol call on [LIBM_SVID_COMPAT].
28281 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28282 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28283 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28284 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28285 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28286 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28287 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28288 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28289 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28290 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28291 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28292 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28293 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28294 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28295 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28296 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28297 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28298 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28299 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28300 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28301 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28302 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28303
28304 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28305
28306 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28307 * malloc/tst-mallocstate.c: Convert from test-skeleton
28308 to test-driver. Ifdef code using TEST_COMPAT macro.
28309 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28310 * math/test-matherr.c: Likewise.
28311
28312 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28313
28314 [BZ #22086]
28315 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28316 comparing word with byte-swapped constant.
28317
28318 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28319
28320 [BZ #20498]
28321 * locale/iso-639.def: add Miskito.
28322 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28323 * localedata/locales/miq_NI: New file.
28324
28325 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28326
28327 [BZ #18822]
28328 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28329 (__mkdir): Likewise.
28330 * io/chmod.c (__chmod): Add libc_hidden_def.
28331 * io/mkdir.c (__mkdir): Likewise.
28332 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28333 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28334 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28335 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28336
28337 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28338
28339 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28340 version to 4.13.
28341
28342 [BZ #22082]
28343 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28344 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28345
28346 2017-09-04 Florian Weimer <fweimer@redhat.com>
28347
28348 * math/math.h: Issue warning if log is defined.
28349
28350 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28351
28352 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28353 kernel version to 4.13.
28354
28355 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28356
28357 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28358 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28359 parameter.
28360 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28361 just <bits/types.h>.
28362 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28363 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28364 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28365 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28366 * misc/preadv2.c: Include <errno.h>.
28367 * misc/preadv64v2.c: Include <errno.h>.
28368 * misc/pwritev2.c: Include <errno.h>.
28369 * misc/pwritev64v2.c: Include <errno.h>.
28370 * sysdeps/posix/preadv2.c: Include <errno.h>.
28371 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28372 Fix <unistd.h> inclusion.
28373 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28374 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28375 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28376 __strtoul_internal): New functions.
28377 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28378 * sysdeps/posix/system.c: Include <sigsetops.h>.
28379 * sysdeps/mach/hurd/i386/Makefile
28380 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28381 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28382 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28383 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28384 __feraiseexcept_renamed to feraiseexcept instead of
28385 __GI_feraiseexcept.
28386 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28387 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28388 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28389 RWF_NOWAIT): Define to 0 if undefined already.
28390 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28391 boils down to 0.
28392 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28393 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28394
28395 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28396
28397 * manual/math.texi (pow10): Do not document.
28398 (pow10f): Likewise.
28399 (pow10l): Likewise.
28400 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28401 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28402 * math/libm-test-exp10.inc (pow10_test): Remove.
28403 (do_test): Do not call pow10.
28404 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28405 [NO_LONG_DOUBLE] (pow10l): Likewise.
28406 * math/w_exp10f_compat.c (pow10f): Likewise.
28407 * math/w_exp10l_compat.c (pow10l): Likewise.
28408 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
28409 (pow10): Make into compat symbol.
28410 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
28411 (pow10f): Make into compat symbol.
28412 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
28413 (pow10l): Make into compat symbol.
28414 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
28415 pow10.
28416 (CFLAGS-nldbl-pow10.c): Remove variable..
28417 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
28418 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
28419 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
28420 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
28421 Undefine and redefine.
28422 (pow10l): Make into compat symbol.
28423 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
28424 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
28425 * sysdeps/arm/libm-test-ulps: Likewise.
28426 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
28427 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
28428 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
28429 * sysdeps/microblaze/libm-test-ulps: Likewise.
28430 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
28431 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28432 * sysdeps/nios2/libm-test-ulps: Likewise.
28433 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
28434 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
28435 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
28436 * sysdeps/sh/libm-test-ulps: Likewise.
28437 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
28438 * sysdeps/tile/libm-test-ulps: Likewise.
28439 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28440
28441 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28442
28443 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
28444
28445 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28446
28447 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
28448 "../ChangeLog.old/ChangeLog.8".
28449 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
28450 "../ChangeLog.old/ChangeLog.14".
28451
28452 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28453
28454 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
28455 Threads Library.
28456
28457 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28458
28459 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
28460
28461 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
28462
28463 * csu/version.c (banner): Remove "by Roland McGrath et al.".
28464 * nptl/Banner: Remove "by Ulrich Drepper et al.".
28465
28466 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
28467
28468 * stdlib/tst-atexit-common.c (do_test): Test support for at least
28469 32 atexit handlers.
28470
28471 2017-09-01 Zack Weinberg <zackw@panix.com>
28472
28473 * math/math.h (HUGE_VAL): Improve commentary.
28474
28475 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28476 Andreas Schwab <schwab@suse.de>
28477
28478 [BZ #21530]
28479 * include/stdio.h (__gen_tempfd): New function.
28480 * stdio-common/Makefile (routines): Add gentempfd.
28481 * stdio-common/gentempfd.c: New file.
28482 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
28483 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
28484 unnamed file first.
28485
28486 2017-09-01 Florian Weimer <fweimer@redhat.com>
28487
28488 [BZ #21915]
28489 [BZ #21922]
28490 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
28491 result to determine success or failure, not the errno value.
28492 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
28493 (tst-nss-files-hosts-erange): Link with -ldl.
28494 * nss/tst-nss-files-hosts-erange.c: New file.
28495 * nss/tst-resolv-basic.c (response): Handle nodata.example.
28496 (do_test): Add NO_DATA tests.
28497 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
28498 (do_test): Call it.
28499
28500 2017-09-01 Florian Weimer <fweimer@redhat.com>
28501
28502 [BZ #21922]
28503 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
28504 coming from gethostbyname2_r.
28505
28506 2017-09-01 Florian Weimer <fweimer@redhat.com>
28507
28508 * support/namespace.h (struct support_chroot_configuration): Add
28509 hosts, host_conf.
28510 (struct support_chroot): Add path_hosts, path_host_conf.
28511 * support/support_chroot.c (write_file): New function.
28512 (support_chroot_create): Call it to process /etc/resolv.conf,
28513 /etc/hosts, /etc/host.conf.
28514 (support_chroot_free): Update.
28515
28516 2017-09-01 Florian Weimer <fweimer@redhat.com>
28517
28518 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
28519 status indicates it is set.
28520
28521 2017-09-01 Florian Weimer <fweimer@redhat.com>
28522
28523 [BZ #20532]
28524 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
28525 function lookup failures more reliable.
28526
28527 2017-09-01 Florian Weimer <fweimer@redhat.com>
28528
28529 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
28530 (getcanonname): Likewise.
28531 (gaih_inet): Likewise.
28532
28533 2017-09-01 Florian Weimer <fweimer@redhat.com>
28534
28535 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
28536 (getcanonname): Likewise.
28537 (gaih_inet): Likewise.
28538
28539 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28540 Richard Henderson <rth@twiddle.net>
28541
28542 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
28543 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
28544 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
28545 (IREG_SIZE, OREG_SIZE): New macros.
28546 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
28547 (IREG_SIZE, OREG_SIZE): New macros.
28548 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
28549 (IREG_SIZE): New macro.
28550 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
28551 (IREG_SIZE): New macro.
28552 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
28553 New includes.
28554 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
28555 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28556 (__CONCATX): Handle exceptions correctly on large values that may
28557 set FE_INVALID.
28558 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
28559 Initialize if not already set.
28560 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
28561
28562 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28563
28564 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
28565 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
28566 Likewise.
28567 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
28568 Likewise.
28569 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
28570 Likewise.
28571 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
28572 Likewise.
28573 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
28574 Likewise.
28575 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
28576 Likewise.
28577 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
28578 Likewise.
28579 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
28580 (NO_CANCELLATION): Likewise.
28581 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
28582 Likewise.
28583 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
28584 Likewise.
28585 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
28586 Likewise.
28587 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
28588 (NO_CANCELLATION): Likewise.
28589 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
28590 (NO_CANCELLATION): Likewise.
28591 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
28592 Likewise
28593 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
28594 Likewise.
28595 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
28596 Likewise.
28597 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
28598 Likewise.
28599 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
28600 hidden prototype.
28601 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
28602 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
28603
28604 2017-08-31 Steve Ellcey <sellcey@cavium.com>
28605
28606 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
28607 in resolver call.
28608
28609 2017-08-31 Florian Weimer <fweimer@redhat.com>
28610
28611 * include/libc-symbols.h (internal_function): Remove.
28612
28613 2017-08-31 Florian Weimer <fweimer@redhat.com>
28614
28615 * stdlib/fmtmsg.c (internal_addseverity): Remove
28616 internal_function.
28617
28618 2017-08-31 Florian Weimer <fweimer@redhat.com>
28619
28620 * stdio-common/printf_fp.c (group_number): Remove
28621 internal_function.
28622 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
28623
28624 2017-08-31 Florian Weimer <fweimer@redhat.com>
28625
28626 * posix/fnmatch.c (internal_function): Remove definition.
28627 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
28628 * posix/regcomp.c (peek_token, init_word_char)
28629 (duplicate_node_closure, fetch_token, peek_token)
28630 (peek_token_bracket, build_range_exp, build_collating_symbol):
28631 Likewise.
28632 * posix/regex_internal.c (re_string_construct_common)
28633 (create_ci_newstate, create_cd_newstate, re_string_allocate)
28634 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
28635 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
28636 (re_string_translate_buffer, re_string_reconstruct)
28637 (re_string_peek_byte_case, re_string_fetch_byte_case)
28638 (re_string_destruct, re_string_context_at, re_node_set_alloc)
28639 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
28640 (re_node_set_add_intersect, re_node_set_init_union)
28641 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
28642 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
28643 (re_dfa_add_node, calc_state_hash, re_acquire_state)
28644 (re_acquire_state_context): Likewise.
28645 * posix/regex_internal.h (internal_function): Remove definition.
28646 (re_string_realloc_buffers, build_wcs_buffer)
28647 (build_wcs_upper_buffer, build_upper_buffer)
28648 (re_string_translate_buffer, re_string_context_at)
28649 (re_string_char_size_at, re_string_wchar_at)
28650 (re_string_elem_size_at): Likewise.
28651 * posix/regexec.c (match_ctx_init, match_ctx_clean)
28652 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
28653 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
28654 (re_search_internal, re_search_2_stub, re_search_stub)
28655 (re_copy_regs, prune_impossible_nodes, check_matching)
28656 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
28657 (free_fail_stack_return, sift_states_iter_mb)
28658 (sift_states_backward, build_sifted_states)
28659 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
28660 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
28661 (check_subexp_limits, sift_states_bkref, merge_state_array)
28662 (find_recover_state, transit_state, merge_state_with_log)
28663 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
28664 (transit_state_mb, transit_state_bkref, get_subexp)
28665 (get_subexp_sub, find_subexp_node, check_arrival)
28666 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
28667 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
28668 (check_node_accept_bytes, find_collation_sequence_value)
28669 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
28670 (acquire_init_state_context, check_halt_node_context)
28671 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
28672 (sub_epsilon_src_nodes): Likewise.
28673 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
28674 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
28675 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
28676 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
28677 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
28678 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
28679 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
28680 * sysdeps/posix/ttyname.c (getttyname): Likewise.
28681 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
28682 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
28683 (PREADV): Likewise.
28684 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
28685 (PREADV): Likewise.
28686 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
28687 (PWRITEV): Likewise.
28688 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
28689 (PWRITEV): Likewise.
28690 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
28691 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28692
28693 2017-08-31 Florian Weimer <fweimer@redhat.com>
28694
28695 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
28696 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
28697 Remove internal_function.
28698 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
28699 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
28700 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
28701 (__deallocate_stack, __libc_pthread_init)
28702 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
28703 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
28704 (__libc_disable_asynccancel, __librt_disable_asynccancel):
28705 Likewise.
28706 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
28707 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
28708 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
28709 Likewise.
28710 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
28711 (__pthread_mutex_unlock_usercnt): Likewise.
28712
28713 2017-08-31 Florian Weimer <fweimer@redhat.com>
28714
28715 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
28716 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
28717 (fts_safe_changedir): Remove internal_function.
28718 * io/ftw.c (internal_function): Remove definition.
28719 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
28720
28721 2017-08-31 Florian Weimer <fweimer@redhat.com>
28722
28723 * inet/deadline.c (__deadline_current_time)
28724 (__deadline_from_timeval, __deadline_to_ms): Remove
28725 internal_function.
28726 * inet/getnameinfo.c (nrl_domainname): Likewise.
28727 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
28728 * inet/inet6_option.c (add_pad): Likewise.
28729 * inet/net-internal.h (__deadline_current_time)
28730 (__deadline_from_timeval, __deadline_to_ms): Likewise.
28731 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
28732 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
28733 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
28734
28735 2017-08-31 Joseph Myers <joseph@codesourcery.com>
28736
28737 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
28738 include <bits/nan.h>.
28739 * math/Makefile (headers): Remove bits/nan.h.
28740 * bits/nan.h: Remove.
28741 * sysdeps/ieee754/bits/nan.h: Likewise.
28742 * sysdeps/mips/bits/nan.h: Likewise.
28743
28744 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
28745 not include <bits/inf.h>.
28746 * math/Makefile (headers): Remove bits/inf.h.
28747 * bits/inf.h: Remove.
28748 * sysdeps/ieee754/bits/inf.h: Likewise.
28749
28750 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
28751 bits/huge_vall.h or bits/huge_val_flt128.h.
28752 (HUGE_VAL): Define directly here.
28753 [__USE_ISOC99] (HUGE_VALF): Likewise.
28754 [__USE_ISOC99] (HUGE_VALL): Likewise.
28755 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
28756 (HUGE_VAL_F128): Likewise.
28757 * math/Makefile (headers): Remove bits/huge_val.h,
28758 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
28759 * bits/huge_val.h: Remove.
28760 * bits/huge_val_flt128.h: Likewise.
28761 * bits/huge_valf.h: Likewise.
28762 * bits/huge_vall.h: Likewise.
28763 * sysdeps/ia64/bits/huge_vall.h: Likewise.
28764 * sysdeps/ieee754/bits/huge_val.h: Likewise.
28765 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
28766 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
28767 * sysdeps/sh/bits/huge_val.h: Likewise.
28768 * sysdeps/sparc/bits/huge_vall.h: Likewise.
28769 * sysdeps/x86/bits/huge_vall.h: Likewise.
28770
28771 2017-08-31 Florian Weimer <fweimer@redhat.com>
28772
28773 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
28774 internal_function.
28775 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
28776 Likewise.
28777 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
28778 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
28779 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
28780 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
28781 * elf/dl-fini.c (_dl_sort_fini): Likewise.
28782 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
28783 * elf/dl-libc.c (dlerror_run): Likewise.
28784 * elf/dl-load.c (add_name_to_object, decompose_rpath)
28785 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
28786 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
28787 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
28788 Likewise.
28789 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
28790 (_dl_higher_prime_number, _dl_strtoul): Likewise.
28791 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
28792 * elf/dl-profile.c (_dl_start_profile): Likewise.
28793 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
28794 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
28795 Likewise.
28796 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
28797 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
28798 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
28799 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
28800 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
28801 (_dl_allocate_tls_storage): Likewise.
28802 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
28803 (_dl_check_all_versions): Likewise.
28804 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
28805 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
28806 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
28807 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28808 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
28809 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
28810 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
28811 internal_function from __dl_start.
28812 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
28813 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
28814 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
28815 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
28816 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
28817 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
28818 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
28819 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
28820 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
28821 (_dl_next_ld_env_entry, _dl_important_hwcaps)
28822 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
28823 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
28824 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
28825 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
28826 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
28827 Likewise.
28828 (struct rtld_global_ro): Remove internal_function from the
28829 _dl_lookup_symbol_x member.
28830 (_dl_symbol_value): Remove. No longer defined anywhere.
28831 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
28832 internal_function.
28833 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28834 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28835 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
28836 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
28837 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
28838 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
28839 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
28840 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
28841 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
28842 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
28843 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
28844 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28845
28846 2017-08-31 Florian Weimer <fweimer@redhat.com>
28847
28848 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
28849 Remove internal_function.
28850 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28851 Likewise.
28852 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
28853 Likewise.
28854
28855 2017-08-31 Florian Weimer <fweimer@redhat.com>
28856
28857 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
28858 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
28859 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
28860
28861 2017-08-31 Florian Weimer <fweimer@redhat.com>
28862
28863 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
28864 (__gai_enqueue_request): Remove internal_function.
28865 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
28866 (__gai_remove_request, __gai_notify, __gai_notify_only)
28867 (__gai_sigqueue): Likewise.
28868 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
28869 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
28870 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
28871 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28872 Likewise.
28873
28874 2017-08-31 Florian Weimer <fweimer@redhat.com>
28875
28876 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
28877 * include/dirent.h (__opendirat, __getdents, __getdents64)
28878 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
28879 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
28880 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28881 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28882 Likewise.
28883 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
28884
28885 2017-08-31 Florian Weimer <fweimer@redhat.com>
28886
28887 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
28888 internal_function.
28889 (GETCWD_RETURN_TYPE): Likewise.
28890
28891 2017-08-31 Florian Weimer <fweimer@redhat.com>
28892
28893 * include/time.h (__tz_compute, __strptime_internal): Remove
28894 internal_function.
28895 * time/strptime_l.c (__strptime_internal): Likewise.
28896 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
28897
28898 2017-08-31 Florian Weimer <fweimer@redhat.com>
28899
28900 * iconv/gconv.c (__gconv): Remove internal_function.
28901 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
28902 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
28903 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
28904 (__gconv_release_cache): Likewise.
28905 * iconv/gconv_close.c (__gconv_close): Likewise.
28906 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
28907 (read_conf_file, __gconv_get_path): Likewise.
28908 * iconv/gconv_db.c (derivation_lookup, add_derivation)
28909 (__gconv_release_step, gen_steps, increment_counter)
28910 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
28911 (__gconv_close_transform, free_modules_db): Likewise.
28912 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
28913 Likewise.
28914 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
28915 (__gconv_find_transform, __gconv_lookup_cache)
28916 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
28917 (__gconv_close_transform, __gconv_release_cache)
28918 (__gconv_loaded_object, __gconv_release_shlib)
28919 (__gconv_compare_alias): Likewise.
28920 * iconv/gconv_open.c (__gconv_open): Likewise.
28921 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
28922 * iconv/iconvconfig.c (add_module): Likewise.
28923 * intl/dcigettext.c (plural_lookup, guess_category_value)
28924 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
28925 * intl/eval-plural.h (plural_eval): Likewise.
28926 * intl/finddomain.c (_nl_find_domain): Likewise.
28927 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
28928 (_nl_load_domain, _nl_find_msg): Likewise.
28929 (internal_function): Remove definition.
28930 * intl/loadinfo.h (internal_function): Likewise.
28931 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
28932 internal_function.
28933 * intl/localealias.c (internal_function): Remove definition.
28934 (read_alias_file): Remove internal_function.
28935 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
28936 * intl/plural-exp.h (internal_function): Remove definition.
28937 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
28938 internal_function.
28939 * intl/plural.c: Regenerate.
28940 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
28941 * locale/coll-lookup.c (__collidx_table_lookup)
28942 (__collseq_table_lookup): Likewise.
28943 * locale/coll-lookup.h (__collidx_table_lookup)
28944 (__collseq_table_lookup): Likewise.
28945 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
28946 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28947 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
28948 (_nl_unload_locale): Likewise.
28949 * locale/localeinfo.h (struct __locale_data): Remove
28950 internal_function from cleanup member.
28951 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
28952 (_nl_remove_locale, _nl_load_locale_from_archive)
28953 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
28954 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
28955 (_nl_cleanup_time): Remove internal_function.
28956 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
28957 (_nl_parse_alt_digit): Likewise.
28958 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
28959 (_nl_select_era_entry): Likewise.
28960 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
28961 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28962 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28963 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
28964 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
28965
28966 2017-08-31 Florian Weimer <fweimer@redhat.com>
28967
28968 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
28969 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28970 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
28971 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
28972 Likewise.
28973 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
28974 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
28975 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
28976 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28977 Likewise.
28978 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
28979
28980 2017-08-31 Florian Weimer <fweimer@redhat.com>
28981
28982 * misc/getttyent.c (skip, value): Remove internal_function.
28983 * misc/syslog.c (openlog_internal): Likewise.
28984 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
28985
28986 2017-08-31 Florian Weimer <fweimer@redhat.com>
28987
28988 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
28989 (__nss_rewrite_field): Remove internal_function.
28990 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
28991 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
28992 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
28993 * nss/nsswitch.c (nss_parse_file, nss_getline)
28994 (nss_parse_service_list, nss_new_service): Likewise.
28995 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
28996 * nss/valid_field.c (__nss_valid_field): Likewise.
28997 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
28998
28999 2017-08-31 Florian Weimer <fweimer@redhat.com>
29000
29001 * malloc/arena.c (__malloc_fork_lock_parent)
29002 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29003 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29004 internal_function from defintions.
29005 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29006 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29007 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29008 internal_function from declarations.
29009 * malloc/malloc.c (internal_function): Do not define.
29010 (mem2mem_check): Remove internal_function from declaration.
29011 (munmap_chunk, mremap_chunk): Remove internal_function.
29012 * malloc/mtrace.c (tr_where): Likewise.
29013
29014 2017-08-31 Florian Weimer <fweimer@redhat.com>
29015
29016 * include/rpc/pmap_clnt.h (__get_socket): Remove
29017 internal_function.
29018 * sunrpc/auth_des.c (synchronize): Likewise.
29019 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29020 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29021 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29022 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29023 (key_call): Likewise.
29024 * sunrpc/pm_getport.c (__get_socket): Likewise.
29025 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29026 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29027 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29028 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29029 (invalidate): Likewise.
29030 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29031 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29032 (set_input_fragment, get_input_bytes): Likewise.
29033
29034 2017-08-31 Florian Weimer <fweimer@redhat.com>
29035
29036 * malloc/malloc.c (_int_free): Remove locked variable and related
29037 asserts.
29038
29039 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29040
29041 [BZ #22051]
29042 * Makerules (build-module-helper-objlist): Filter out
29043 $(elf-objpfx)sofini.os.
29044 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29045 needed.
29046
29047 2017-08-31 Florian Weimer <fweimer@redhat.com>
29048
29049 * libio/fcloseall.c: Assume weak_alias is defined.
29050 * libio/feof.c: Likewise.
29051 * libio/fileno.c: Likewise.
29052 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29053 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29054 definitions.
29055 (_IO_file_open): Call __open directly.
29056 (_IO_new_file_sync): Assume ESPIPE is defined.
29057 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29058 (_IO_new_file_write): Call __write directly.
29059 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29060 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29061 * libio/genops.c: Assume _LIBC is defined.
29062 (save_for_backup): Remove internal_function.
29063 * libio/getc.c: Assume weak_alias is defined.
29064 * libio/getwc.c: Likewise.
29065 * libio/iofclose.c: Assume _LIBC is defined.
29066 * libio/iofdopen.c: Likewise.
29067 (_IO_fcntl): Remove macro definition.
29068 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29069 Call __fcntl directly.
29070 * libio/iofflush.c: Assume weak_alias is defined.
29071 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29072 defined.
29073 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29074 * libio/iofgets.c: Likewise.
29075 * libio/iofopen.c: Assume _LIBC is defined.
29076 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29077 * libio/iofputs.c: Assume weak_alias is defined.
29078 * libio/iofread.c: Likewise.
29079 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29080 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29081 * libio/ioftell.c: Assume weak_alias is defined.
29082 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29083 * libio/iofwide.c: Assume _LIBC is defined.
29084 (_IO_fwide): Drop SHARED conditional because it is implied by
29085 SHLIB_COMPAT.
29086 * libio/iofwrite.c: Assume weak_alias is defined.
29087 * libio/iogetdelim.c: Likewise.
29088 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29089 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29090 (_IO_getwline): Call __wmemcpy directly.
29091 * libio/iopopen.c: Assume _LIBC is defined.
29092 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29093 (_IO_close): Remove macro definitions.
29094 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29095 _exit directly.
29096 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29097 directly.
29098 * libio/ioputs.c: Assume weak_alias is defined.
29099 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29100 * libio/iosetbuffer.c: Assume weak_alias is defined.
29101 * libio/iosetvbuf.c: Likewise.
29102 * libio/ioungetc.c: Likewise.
29103 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29104 libc_hidden_def, libc_hidden_weak, NULL are defined.
29105 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29106 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29107 defined.
29108 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29109 definitions.
29110 (_IO_old_file_init_internal): Drop SHARED conditional because it
29111 is implied by SHLIB_COMPAT.
29112 (_IO_old_file_fopen): Call __open directly.
29113 (_IO_old_file_sync): Assume ESPIPE is defined.
29114 (_IO_old_file_write): Call __write directly.
29115 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29116 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29117 Call __fcntl directly.
29118 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29119 (_IO_old_fgetpos): Assume EIO is defined.
29120 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29121 (_IO_old_fgetpos64): Assume EIO is defined.
29122 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29123 (_IO_old_fsetpos): Assume EIO is defined.
29124 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29125 (_IO_old_fsetpos64): Assume EIO is defined.
29126 * libio/oldiopopen.c: Assume _LIBC is defined.
29127 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29128 (_IO_close): Remove macro definitions.
29129 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29130 directly.
29131 (_IO_old_proc_close): Call __close, __waitpid directly.
29132 * libio/put.c: Assume weak_alias is defined.
29133 * libio/stdfiles.c: Assume _LIBC is defined.
29134 * libio/stdio.c: Likewise.
29135 * libio/wfileops.c: Likewise.
29136 (_IO_wfile_sync): Assume ESPIPE is defined.
29137 * libio/wgenops.c: Assume _LIBC is defined.
29138 (save_for_wbackup): Remove internal_function.
29139
29140 2017-08-31 Florian Weimer <fweimer@redhat.com>
29141
29142 * malloc/malloc.c (top_check): Change return type to void. Remove
29143 internal_function.
29144 * malloc/hooks.c (top_check): Likewise.
29145 (malloc_check, realloc_check, memalign_check): Adjust.
29146
29147 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29148
29149 [BZ #21457]
29150 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29151 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29152 sigcontext and namespace requirements.
29153 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29154 * sysdeps/m68k/sys/ucontext.h: Likewise.
29155 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29156 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29157 <bits/sigcontext.h>.
29158 (__ctx): Define earlier.
29159 (mcontext_t): Define structure contents rather than using struct
29160 sigcontext.
29161 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29162 __glibc_reserved1 instead of __reserved.
29163 * sysdeps/unix/sysv/linux/alpha/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/alpha/ucontext-offsets.sym: Use
29169 mcontext_t instead of struct sigcontext.
29170 * sysdeps/unix/sysv/linux/arm/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/hppa/sys/ucontext.h: Do not include
29176 <bits/sigcontext.h>.
29177 (__ctx): Define earlier.
29178 (mcontext_t): Define structure contents rather than using struct
29179 sigcontext.
29180 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29181 mcontext_t instead of struct sigcontext.
29182 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29183 mcontext_t instead of struct sigcontext.
29184 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29185 <bits/sigcontext.h>.
29186 (__ctx): New macro.
29187 (struct __ia64_fpreg_mcontext): New type.
29188 (mcontext_t): Define structure contents rather than using struct
29189 sigcontext.
29190 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29191 (uc_sigmask): Define using __ctx.
29192 (uc_stack): Likewise.
29193 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29194 <bits/sigcontext.h>.
29195 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29196 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29197 <bits/sigcontext.h>.
29198 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29199 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29200 <bits/sigcontext.h>.
29201 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29202 <bits/sigcontext.h>.
29203 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29204 <bits/sigcontext.h>.
29205 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29206 <bits/sigcontext.h>.
29207 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29208 <bits/sigcontext.h>.
29209 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29210 <bits/sigcontext.h>.
29211 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29212 <bits/sigcontext.h>.
29213 (__ctx): Define earlier.
29214 (mcontext_t): Define structure contents rather than using struct
29215 sigcontext.
29216 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29217 <bits/sigcontext.h>. Include <bits/types.h>.
29218 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29219 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29220 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29221 (test-xfail-UNIX98/signal.h/conform): Likewise.
29222 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29223 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29224 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29225 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29226 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29227 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29228 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29229 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29230 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29231
29232 2017-08-30 Florian Weimer <fweimer@redhat.com>
29233
29234 * malloc/dynarray_emplace_enlarge.c
29235 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29236 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29237 * malloc/tst-dynarray.c (test_long_overflow): New function.
29238 (do_test): Call it.
29239
29240 2017-08-30 Florian Weimer <fweimer@redhat.com>
29241
29242 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29243 (set_arena_corrupt): Remove definitions.
29244 (mtrim): Do not check for corrupt arena.
29245 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29246 Likewise.
29247
29248 2017-08-30 Florian Weimer <fweimer@redhat.com>
29249
29250 [BZ #21754]
29251 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29252 check_action.
29253 (ptmalloc_init): Do not set or use check_action.
29254 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29255 call to malloc_printerr. Remove return statement.
29256 (free_check): Likewise. Remove arena unlock.
29257 (top_check): Update comment. Adjust call to malloc_printerr.
29258 Remove heap repair code.
29259 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29260 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29261 (sysmalloc): Adjust call to malloc_printerr.
29262 (munmap_chunk, __libc_realloc): Likewise. Remove return
29263 statement.
29264 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29265 Remove errout label and corresponding gotos.
29266 (_int_free): Likewise. Remove arena unlock.
29267 (do_set_mallopt_check): Do not set check_action.
29268 (malloc_printerr): Adjust parameter list. Do not mark arena as
29269 corrupt.
29270 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29271 comment.
29272 * manual/probes.texi (Memory Allocation Probes): Remove
29273 memory_mallopt_check_action.
29274
29275 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29276
29277 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29278 Use pointer to uint64_t instead of long int for sp.
29279
29280 2017-08-30 Florian Weimer <fweimer@redhat.com>
29281
29282 [BZ #21754]
29283 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29284 without printing a backtrace. Do not leak any information in the
29285 error message.
29286 * manual/memory.texi (Heap Consistency Checking): Update.
29287 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29288
29289 2017-08-30 Florian Weimer <fweimer@redhat.com>
29290
29291 Do not scale NPTL tests with available number of CPUs.
29292 * nptl/tst-cond16.c (count): Set to constant value of 8.
29293 * nptl/tst-cond18.c (count): Likewise.
29294
29295 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29296
29297 [BZ #22035]
29298 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29299 Define to take a second argument that is a macro that
29300 concatentates a suffix, not the suffix itself.
29301 (__CONCAT_d): New macro.
29302 (__CONCAT_f): Likewise.
29303 (__CONCAT_l): Likewise.
29304
29305 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29306
29307 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29308 by child.
29309
29310 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29311 Aurelien Jarno <aurelien@aurel32.net>
29312 Maciej W. Rozycki <macro@imgtec.com>
29313
29314 [BZ #21956]
29315 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29316 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29317 `mips16-syscall6' and `mips16-syscall7'.
29318 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29319 (CFLAGS-mips16-syscall7.c): Remove.
29320 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29321 Remove `__mips16_syscall5', `__mips16_syscall6' and
29322 `__mips16_syscall7'.
29323 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29324 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29325 `__mips_syscall_return'.
29326 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29327 (__mips16_syscall1): Likewise.
29328 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29329 (__mips16_syscall2): Likewise.
29330 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29331 (__mips16_syscall3): Likewise.
29332 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29333 (__mips16_syscall4): Likewise.
29334 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29335 Remove.
29336 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29337 Remove.
29338 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29339 Remove.
29340 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29341 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29342 `__mips16_syscall5'. Remove prototype.
29343 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29344 `__mips16_syscall6'. Remove prototype.
29345 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29346 `__mips16_syscall7'. Remove prototype.
29347 (__nomips16, __mips16_syscall_return): Move to...
29348 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29349 (__nomips16, __mips_syscall_return): ... here.
29350 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29351 `__mips16_syscall_return' to `__mips_syscall_return'.
29352 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29353 `internal_syscall##nr'.
29354 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29355 `internal_syscall##nr'.
29356 (FORCE_FRAME_POINTER): Remove.
29357 (__mips_syscall5): New prototype.
29358 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29359 (__mips_syscall6): New prototype.
29360 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29361 (__mips_syscall7): New prototype.
29362 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29363 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29364 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29365 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29366 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29367 (sysdep_routines): Add libc-do-syscall.
29368 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29369 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29370
29371 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29372
29373 [BZ #21672]
29374 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29375 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29376 (advise_stack_range): New function.
29377 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29378 stack non required to advise_stack_range at allocatestack.c
29379
29380 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29381
29382 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29383
29384 2017-08-29 Florian Weimer <fweimer@redhat.com>
29385
29386 [BZ #22026]
29387 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29388 __end_fct. Mangle __end_fct after setting it to NULL.
29389 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29390 (modules-names, modules-names-tests): Add
29391 tst-gconv-init-failure-mod.
29392 (gconv-modules): New target.
29393 (tst-gconv-init-failure-mod.so): Link against libsupport.
29394 (tst-gconv-init-failure): Depend on gconv-modules,
29395 tst-gconv-init-failure-mod.so.
29396 * iconv/tst-gconv-init-failure-mod.c: New file.
29397 * iconv/tst-gconv-init-failure.c: Likewise.
29398 * iconv/test-gconv-modules: Likewise.
29399
29400 2017-08-29 Florian Weimer <fweimer@redhat.com>
29401
29402 [BZ #22025]
29403 * iconv/gconv_db.c (free_derivation): Remove redundant
29404 parentheses.
29405 (gen_steps): Unconditionally mangle __btowc_fct after
29406 initialization.
29407 (increment_counter): Likewise. Do not call init_fct for internal
29408 modules.
29409
29410 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29411
29412 [BZ #22028]
29413 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29414 (_MSUF_): Remove macro.
29415 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
29416 Likewise.
29417 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
29418 (__REDIRFROM_X): New macro.
29419 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
29420 Likewise.
29421 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
29422 (__REDIRTO_X): Likewise.
29423 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
29424 arguments.
29425 (__MATH_REDIRCALL_2): Likewise.
29426 (__MATH_REDIRCALL_INTERNAL): Likewise.
29427 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29428 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
29429 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
29430 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29431 * math/test-finite-macros.c: New file.
29432 * math/Makefile (tests): Add test-finite-macros.
29433 (CFLAGS-test-finite-macros.c): New variable.
29434
29435 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
29436 Jeff Law <law@redhat.com>
29437
29438 [BZ #22025]
29439 Mangle NULL pointers in iconv/gconv.
29440 * iconv/gconv_cache.c (find_module): Demangle init_fct before
29441 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
29442 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
29443 is non-NULL before demangling the end_fct. Check for NULL
29444 end_fct after demangling.
29445 (__gconv_release_step): Demangle the end_fct before checking
29446 it for NULL. Remove assert on __shlibc_handle != NULL.
29447 (gen_steps): Don't check btowc_fct for NULL before mangling.
29448 Demangle init_fct before checking for NULL.
29449 (increment_counter): Likewise.
29450 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
29451 end_fct for NULL before mangling.
29452 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
29453 for NULL.
29454
29455 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
29456
29457 [BZ #21971]
29458 * locale/iso-639.def: add Morisyen.
29459
29460 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29461
29462 [BZ #21930]
29463 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
29464 (iszero): New C++ implementation that does not use
29465 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
29466 signaling nans are enabled, since __builtin_types_compatible_p
29467 is a C-only feature.
29468 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
29469 defined, include ieee754_float128.h for access to the union and
29470 member ieee854_float128.ieee.
29471 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
29472 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
29473 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29474 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
29475 options of test-math-zero on powerpc64le.
29476
29477 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
29478
29479 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
29480 Change double to float.
29481
29482 2017-08-28 Joseph Myers <joseph@codesourcery.com>
29483
29484 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
29485 unconditional.
29486 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
29487 conditional code; define contents only for [LIBM_SVID_COMPAT].
29488
29489 2017-08-28 Florian Weimer <fweimer@redhat.com>
29490
29491 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
29492 (abi-lp64_be-options): Remove.
29493 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
29494 (abi-hard-options): Likewise.
29495 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
29496 (abi-o32_hard-options, abi-o32_soft_2008-options)
29497 (abi-o32_hard_2008-options, abi-n32_soft-options)
29498 (abi-n32_hard-options, abi-n32_soft_2008-options)
29499 (abi-n32_hard_2008-options, abi-n64_soft-options)
29500 (abi-n64_hard-options, abi-n64_soft_2008-options)
29501 (abi-n64_hard_2008-options): Likewise.
29502 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
29503 (abi-64-v1-options, abi-64-v2-options): Likewise.
29504 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
29505 (abi-64-options): Likewise.
29506 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
29507 (abi-64-options): Likewise.
29508 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
29509 (abi-64-options): Likewise.
29510 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
29511 (abi-64-options, abi-x32-options): Likewise.
29512
29513 2017-08-28 Florian Weimer <fweimer@redhat.com>
29514
29515 Store supported list of SYS_* system calls in the source tree.
29516 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
29517 (bits/syscall.h): Generate from list file.
29518 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
29519 [$(subdir) = misc] (tests): Add tst-syscall-list.
29520 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
29521 [$(subdir) = misc] (tst-syscall-list-macros.list)
29522 [$(subdir) = misc] (tst-syscall-list-nr.list)
29523 (tst-syscall-list-sys.list): Helper targets for new
29524 tst-syscall-list test.
29525 [$(subdir) = misc] (tst-syscall-list.out): Run test script
29526 tst-syscall-list.sh.
29527 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
29528 target. Do not include bits/syscall.d.
29529 [$(subdir) = misc] (generated): Do not update.
29530 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
29531 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
29532 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
29533 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
29534
29535 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
29536
29537 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
29538 (tst-cxa_atexit, tst-on_exit): Likewise.
29539 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
29540 tst-cxa_atexit, and tst-on_exit.
29541 * stdlib/tst-atexit-common.c: New file.
29542 * stdlib/tst-atexit.c: New file.
29543 * stdlib/tst-at_quick_exit.c: New file.
29544 * stdlib/tst-cxa_atexit.c: New file.
29545 * stdlib/tst-on_exit.c: New file.
29546
29547 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29548
29549 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
29550 * mach/stack_chk_fail_local.c: New file.
29551 * hurd/stack_chk_fail_local.c: New file.
29552 * mach/Machrules ($(interface-library)-routines): Add
29553 stack_chk_fail_local.
29554 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
29555 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
29556 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
29557 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
29558 * hurd/Makefile (CFLAGS-hurdstartup.o,
29559 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
29560
29561 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
29562
29563 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29564 (index_cpu_*, index_arch_*): Removed.
29565
29566 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29567
29568 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
29569 Use uint64_t instead of unsigned long.
29570
29571 2017-08-25 Joseph Myers <joseph@codesourcery.com>
29572
29573 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
29574 [__HAVE_DISTINCT_FLOAT128].
29575
29576 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
29577 of <bits/math-finite.h>.
29578 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
29579 inclusion of <bits/math-finite.h>.
29580 * math/bits/math-finite.h (__REDIRTO_X): Do not define
29581 conditionally on [__MATH_DECLARING_LDOUBLE && defined
29582 __NO_LONG_DOUBLE_MATH].
29583 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
29584 (__MATH_REDIRCALL_2): Likewise.
29585 (__MATH_REDIRCALL_INTERNAL): Likewise.
29586 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
29587 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
29588 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
29589
29590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
29591 Remove file.
29592 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
29593 Likewise.
29594 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
29595 Likewise.
29596 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
29597 Likewise.
29598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
29599 Likewise.
29600 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
29601 Likewise.
29602 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
29603 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
29604 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
29605 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
29606 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
29607 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
29608 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
29609 w_sqrtf_compat-ppc32.
29610
29611 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29612
29613 * math/math.h [defined __cplusplus] (issignaling): In the long
29614 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
29615 is not defined. Call __issignaling, otherwise.
29616
29617 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29618
29619 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
29620 syscall definitions and replace __builtin_expect with __glibc_likely.
29621 * sysdeps/unix/syscall-template.S: Update comment about cancellable
29622 syscall.
29623 (SYSCALL_CANCELLABLE): Removedefinition
29624 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
29625 definition.
29626 (PSEUDO_END): Likewise.
29627 [IS_IN (libpthread)] (CENABLE): Likewise.
29628 [IS_IN (libpthread)] (CDISABLE): Likewise.
29629 [IS_IN (libc)] (CENABLE): Likewise.
29630 [IS_IN (libc)] (CENABLE): Likewise.
29631 [IS_IN (librt)] (CDISABLE): Likewise.
29632 [IS_IN (librt)] (CDISABLE): Likewise.
29633 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29634 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
29635 definition.
29636 (PSEUDO_END): Likewise.
29637 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
29638 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
29639 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29640 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
29641 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29642 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
29643 (CENABLE): Likewise.
29644 (CDISABLE): Likewise.
29645 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29646 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
29647 defintion.
29648 (PSEUDO_END): Likewise.
29649 [IS_IN (libpthread)] (CENABLE): Likewise.
29650 [IS_IN (libpthread)] (CDISABLE): Likewise.
29651 [IS_IN (libc)] (CENABLE): Likewise.
29652 [IS_IN (libc)] (CENABLE): Likewise.
29653 [IS_IN (librt)] (CDISABLE): Likewise.
29654 [IS_IN (librt)] (CDISABLE): Likewise.
29655 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29656 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
29657 definition.
29658 (PSEUDO_END): Likewise.
29659 [IS_IN (libpthread)] (CENABLE): Likewise.
29660 [IS_IN (libpthread)] (CDISABLE): Likewise.
29661 [IS_IN (libc)] (CENABLE): Likewise.
29662 [IS_IN (libc)] (CENABLE): Likewise.
29663 [IS_IN (librt)] (CDISABLE): Likewise.
29664 [IS_IN (librt)] (CDISABLE): Likewise.
29665 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29666 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
29667 definition.
29668 (PSEUDO_END): Likewise.
29669 [IS_IN (libpthread)] (CENABLE): Likewise.
29670 [IS_IN (libpthread)] (CDISABLE): Likewise.
29671 [IS_IN (libc)] (CENABLE): Likewise.
29672 [IS_IN (libc)] (CENABLE): Likewise.
29673 [IS_IN (librt)] (CDISABLE): Likewise.
29674 [IS_IN (librt)] (CDISABLE): Likewise.
29675 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29676 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
29677 definition.
29678 (PSEUDO_END): Likewise.
29679 [IS_IN (libpthread)] (CENABLE): Likewise.
29680 [IS_IN (libpthread)] (CDISABLE): Likewise.
29681 [IS_IN (libc)] (CENABLE): Likewise.
29682 [IS_IN (libc)] (CENABLE): Likewise.
29683 [IS_IN (librt)] (CDISABLE): Likewise.
29684 [IS_IN (librt)] (CDISABLE): Likewise.
29685 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29686 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
29687 definition.
29688 (PSEUDO_END): Likewise.
29689 [IS_IN (libpthread)] (CENABLE): Likewise.
29690 [IS_IN (libpthread)] (CDISABLE): Likewise.
29691 [IS_IN (libc)] (CENABLE): Likewise.
29692 [IS_IN (libc)] (CENABLE): Likewise.
29693 [IS_IN (librt)] (CDISABLE): Likewise.
29694 [IS_IN (librt)] (CDISABLE): Likewise.
29695 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29696 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
29697 definition.
29698 (PSEUDO_END): Likewise.
29699 [IS_IN (libpthread)] (CENABLE): Likewise.
29700 [IS_IN (libpthread)] (CDISABLE): Likewise.
29701 [IS_IN (libc)] (CENABLE): Likewise.
29702 [IS_IN (libc)] (CENABLE): Likewise.
29703 [IS_IN (librt)] (CDISABLE): Likewise.
29704 [IS_IN (librt)] (CDISABLE): Likewise.
29705 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29706 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
29707 Remove definition.
29708 (PSEUDO_END): Likewise.
29709 [IS_IN (libpthread)] (CENABLE): Likewise.
29710 [IS_IN (libpthread)] (CDISABLE): Likewise.
29711 [IS_IN (libc)] (CENABLE): Likewise.
29712 [IS_IN (libc)] (CENABLE): Likewise.
29713 [IS_IN (librt)] (CDISABLE): Likewise.
29714 [IS_IN (librt)] (CDISABLE): Likewise.
29715 (SINGLE_THREAD_P): Likewise.
29716 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
29717 definition.
29718 (PSEUDO_END): Likewise.
29719 [IS_IN (libpthread)] (CENABLE): Likewise.
29720 [IS_IN (libpthread)] (CDISABLE): Likewise.
29721 [IS_IN (libc)] (CENABLE): Likewise.
29722 [IS_IN (libc)] (CENABLE): Likewise.
29723 [IS_IN (librt)] (CDISABLE): Likewise.
29724 [IS_IN (librt)] (CDISABLE): Likewise.
29725 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29726 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
29727 definition.
29728 (PSEUDO_END): Likewise.
29729 [IS_IN (libpthread)] (CENABLE): Likewise.
29730 [IS_IN (libpthread)] (CDISABLE): Likewise.
29731 [IS_IN (libc)] (CENABLE): Likewise.
29732 [IS_IN (libc)] (CENABLE): Likewise.
29733 [IS_IN (librt)] (CDISABLE): Likewise.
29734 [IS_IN (librt)] (CDISABLE): Likewise.
29735 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29736 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
29737 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
29738 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
29739 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
29740 definition.
29741 (PSEUDO_END): Likewise.
29742 [IS_IN (libpthread)] (CENABLE): Likewise.
29743 [IS_IN (libpthread)] (CDISABLE): Likewise.
29744 [IS_IN (libc)] (CENABLE): Likewise.
29745 [IS_IN (libc)] (CENABLE): Likewise.
29746 [IS_IN (librt)] (CDISABLE): Likewise.
29747 [IS_IN (librt)] (CDISABLE): Likewise.
29748 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29749 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
29750 definition.
29751 (PSEUDO_END): Likewise.
29752 [IS_IN (libpthread)] (CENABLE): Likewise.
29753 [IS_IN (libpthread)] (CDISABLE): Likewise.
29754 [IS_IN (libc)] (CENABLE): Likewise.
29755 [IS_IN (libc)] (CENABLE): Likewise.
29756 [IS_IN (librt)] (CDISABLE): Likewise.
29757 [IS_IN (librt)] (CDISABLE): Likewise.
29758 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29759 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
29760 definition.
29761 (PSEUDO_END): Likewise.
29762 [IS_IN (libpthread)] (CENABLE): Likewise.
29763 [IS_IN (libpthread)] (CDISABLE): Likewise.
29764 [IS_IN (libc)] (CENABLE): Likewise.
29765 [IS_IN (libc)] (CENABLE): Likewise.
29766 [IS_IN (librt)] (CDISABLE): Likewise.
29767 [IS_IN (librt)] (CDISABLE): Likewise.
29768 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29769 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
29770 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
29771 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
29772 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
29773 definition.
29774 (PSEUDO_END): Likewise.
29775 [IS_IN (libpthread)] (CENABLE): Likewise.
29776 [IS_IN (libpthread)] (CDISABLE): Likewise.
29777 [IS_IN (libc)] (CENABLE): Likewise.
29778 [IS_IN (libc)] (CENABLE): Likewise.
29779 [IS_IN (librt)] (CDISABLE): Likewise.
29780 [IS_IN (librt)] (CDISABLE): Likewise.
29781 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29782 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
29783 definition.
29784 (PSEUDO_END): Likewise.
29785 [IS_IN (libpthread)] (CENABLE): Likewise.
29786 [IS_IN (libpthread)] (CDISABLE): Likewise.
29787 [IS_IN (libc)] (CENABLE): Likewise.
29788 [IS_IN (libc)] (CENABLE): Likewise.
29789 [IS_IN (librt)] (CDISABLE): Likewise.
29790 [IS_IN (librt)] (CDISABLE): Likewise.
29791 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
29792
29793 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
29794
29795 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
29796
29797 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29798
29799 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
29800
29801 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29802
29803 [BZ #21982]
29804 * string/stratcliff.c (do_test): Declare size, nchars, inner,
29805 middle and outer with size_t instead of int. Repleace %d and
29806 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
29807 "MAX (outer, nchars - 64)" to support unsigned outer and
29808 nchars. Also exit loop when outer == 0.
29809
29810 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29811
29812 * include/fcntl.h (__fcntl_nocancel): Remove definition.
29813 * include/signal.h (__sigsuspend_nocancel): Likewise.
29814 * include/time.h (__nanosleep_nocancel): Likewise.
29815 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
29816 * login/utmp_file.c: Include non cancellable syscall header.
29817 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
29818 prototype.
29819
29820 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
29821
29822 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
29823 .byte sequences with AVX512F instructions.
29824 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
29825 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
29826 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
29827 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
29828 Likewise.
29829 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29830 Likewise.
29831
29832 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
29833 Steve Ellcey <sellcey@cavium.com>
29834
29835 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
29836 Use PTR_REG macro in cmp instruction.
29837
29838 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29839
29840 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
29841 Change the return type of the ifunc resolver to match the return
29842 type of the target function.
29843
29844 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29845
29846 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
29847 (preadv64): Likewise.
29848 (pwrite64(: Likewise.
29849 (pwritev64): Likewise.
29850
29851 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
29852 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
29853 (LOAD_ARGS_0): Likewise.
29854 (LOAD_ARGS_1): Likewise.
29855 (LOAD_ARGS_2): Likewise.
29856 (LOAD_ARGS_3): Likewise.
29857 (LOAD_ARGS_4): Likewise.
29858 (LOAD_ARGS_5): Likewise.
29859 (LOAD_ARGS_6): Likewise.
29860 (LOAD_REGS_0): Likewise.
29861 (LOAD_REGS_1): Likewise.
29862 (LOAD_REGS_2): Likewise.
29863 (LOAD_REGS_3): Likewise.
29864 (LOAD_REGS_4): Likewise.
29865 (LOAD_REGS_5): Likewise.
29866 (LOAD_REGS_6): Likewise.
29867 (ASM_ARGS_0): Likewise.
29868 (ASM_ARGS_1): Likewise.
29869 (ASM_ARGS_2): Likewise.
29870 (ASM_ARGS_3): Likewise.
29871 (ASM_ARGS_4): Likewise.
29872 (ASM_ARGS_5): Likewise.
29873 (ASM_ARGS_6): Likewise.
29874 (LOAD_ARGS_TYPES_1): Likewise.
29875 (LOAD_ARGS_TYPES_2): Likewise.
29876 (LOAD_ARGS_TYPES_3): Likewise.
29877 (LOAD_ARGS_TYPES_4): Likewise.
29878 (LOAD_ARGS_TYPES_5): Likewise.
29879 (LOAD_ARGS_TYPES_6): Likewise.
29880 (LOAD_REGS_TYPES_1): Likewise.
29881 (LOAD_REGS_TYPES_2): Likewise.
29882 (LOAD_REGS_TYPES_3): Likewise.
29883 (LOAD_REGS_TYPES_4): Likewise.
29884 (LOAD_REGS_TYPES_5): Likewise.
29885 (LOAD_REGS_TYPES_6): Likewise.
29886 (TYPEFY): New define.
29887 (ARGIFY): Likewise.
29888 (internal_syscall0): Likewise.
29889 (internal_syscall1): Likewise.
29890 (internal_syscall2): Likewise.
29891 (internal_syscall3): Likewise.
29892 (internal_syscall4): Likewise.
29893 (internal_syscall5): Likewise.
29894 (internal_syscall6): Likewise.
29895 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
29896 (INTERNAL_SYSCALL_NCS): Remove define.
29897 (internal_syscall1): Add define.
29898
29899 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29900
29901 * math/w_remainder_compat.c: Remove duplicate inclusion of
29902 math-svid-compat.h.
29903 * math/w_remainderf_compat.c: Likewise.
29904 * math/w_remainderl_compat.c: Likewise.
29905
29906 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29907
29908 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29909
29910 2017-08-22 Joseph Myers <joseph@codesourcery.com>
29911
29912 [BZ #21684]
29913 * math/tgmath.h (__floating_type): Simplify definitions.
29914 (__real_integer_type): New macro.
29915 (__complex_integer_type): Likewise.
29916 (__expr_is_real): Likewise.
29917 (__tgmath_real_type_sub): Update comment to describe handling of
29918 complex types.
29919 (__tgmath_complex_type_sub): New macro.
29920 (__tgmath_complex_type): Likewise.
29921 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29922 (__TGMATH_CF128): Use __expr_is_real.
29923 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
29924 __expr_is_real.
29925 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29926 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
29927 * math/gen-tgmath-tests.py (Type.create_type): Create complex
29928 integer types.
29929
29930 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29931
29932 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
29933 macro.
29934 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
29935 alias.
29936 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
29937 Likewise.
29938
29939 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
29940 nanosleep_not_cancel with __nanosleep_nocancel.
29941 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
29942 (__nanosleep_nocancel): New macro.
29943 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
29944 function.
29945 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
29946 macro.
29947 (__nanosleep_nocancel): New prototype.
29948
29949 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
29950 pause_not_cancel with __pause_nocancel.
29951 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
29952 (__pause_nocancel): New macro.
29953 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
29954 macro.
29955 (__pause_nocancel): New prototype.
29956 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
29957
29958 2017-08-22 Martin Sebor <msebor@redhat.com>
29959
29960 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
29961 to return a pointer to the same type as the target function.
29962
29963 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29964
29965 [BZ #18822]
29966 [BZ #21986]
29967 * include/printf.h (__printf_fphex): Add attribute_hidden.
29968 (__guess_grouping): New prototype.
29969 * stdio-common/printf_fp.c (__guess_grouping): Removed.
29970 * stdio-common/reg-printf.c (__register_printf_specifier): Add
29971 libc_hidden_proto and libc_hidden_def.
29972 * stdlib/strfmon_l.c (__guess_grouping): Removed.
29973 (__vstrfmon_l): Remove the third argument passed to
29974 __guess_grouping.
29975
29976 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
29977
29978 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
29979 definition for issignaling that does not rely on __MATH_TG,
29980 since __MATH_TG uses __builtin_types_compatible_p, which is only
29981 available in C mode.
29982 (CFLAGS-test-math-issignaling.cc): New variable.
29983 * math/Makefile [CXX] (tests): Add test-math-issignaling.
29984 * math/test-math-issignaling.cc: New test for C++ implementation
29985 of type-generic issignaling.
29986 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
29987 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
29988 options of test-math-issignaling on powerpc64le.
29989
29990 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
29991
29992 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
29993 building libc.a.
29994 (hidden_proto): Likewise.
29995 (hidden_tls_proto): Likewise.
29996 (__hidden_proto): Likewise.
29997
29998 2017-08-22 Florian Weimer <fweimer@redhat.com>
29999
30000 math: Statically link tests of internal functionality.
30001 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30002 atest-exp2.
30003 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30004 (gmp-objs): Remove assignment.
30005 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30006
30007 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30008
30009 [BZ #21987]
30010 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30011 and copy to ...
30012 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30013 ... here.
30014 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30015 ... and here.
30016
30017 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30018 variable definitions above inclusion of ../Rules.
30019
30020 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30021
30022 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30023 case calling __builtin_unreachable.
30024
30025 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30026
30027 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30028 __waitpid_nocancel.
30029 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30030 (__waitpid_nocancel): New macro.
30031 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30032 macro.
30033 (__waitpid_nocancel): Replace macro with a function.
30034 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30035 function.
30036
30037 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30038 __fcntl_nocancel.
30039 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30040 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30041
30042 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30043 __writev_nocancel_nostatus.
30044 (write_call_graph): Likewise.
30045 (write_bb_counts): Likewise.
30046 * resolv/herror.c (herror): Likewise.
30047 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30048 macro.
30049 (__writev_nocancel_nostatus): New macro.
30050 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30051 Remove macro.
30052 (__writev_nocancel_nostatus): New function.
30053
30054 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30055
30056 Revert:
30057 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30058
30059 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30060 building libc.a.
30061 (hidden_proto): Likewise.
30062 (hidden_tls_proto): Likewise.
30063 (__hidden_proto): Likewise.
30064
30065 [BZ #21973]
30066 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30067 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30068 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30069 Likewise.
30070 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30071 Likewise.
30072 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30073 Likewise.
30074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30075 Likewise.
30076 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30077 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30078 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30079 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30080 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30081 GLIBC_2.0 sqrtl symbol.
30082
30083 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30084 [__USE_MISC] (_LIB_VERSION): Likewise.
30085 [__USE_MISC] (struct exception): Likewise.
30086 [__USE_MISC] (matherr): Likewise.
30087 [__USE_MISC] (DOMAIN): Likewise.
30088 [__USE_MISC] (SING): Likewise.
30089 [__USE_MISC] (OVERFLOW): Likewise.
30090 [__USE_MISC] (UNDERFLOW): Likewise.
30091 [__USE_MISC] (TLOSS): Likewise.
30092 [__USE_MISC] (PLOSS): Likewise.
30093 [__USE_MISC] (HUGE): Likewise.
30094 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30095 * math/math-svid-compat.h: New file.
30096 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30097 and matherrl.
30098 * include/math.h [!_ISOMAC] (__matherr): Remove.
30099 * manual/arith.texi (FP Exceptions): Do not document matherr.
30100 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30101 (tests-internal): New variable.
30102 (install-lib): Do not add libieee.a.
30103 (non-lib.a): Likewise.
30104 (extra-objs): Do not add libieee.a and ieee-math.o.
30105 (CPPFLAGS-s_lib_version.c): Remove variable.
30106 ($(objpfx)libieee.a): Remove rule.
30107 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30108 * math/ieee-math.c: Remove.
30109 * math/libm-test-support.c (matherr): Remove.
30110 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30111 and license notices. Include <math-svid-compat.h> and
30112 <shlib-compat.h>.
30113 (matherr): Undefine as macro. Use compat_symbol_reference.
30114 (_LIB_VERSION): Likewise.
30115 * math/test-matherr-2.c: New file.
30116 * math/test-matherr-3.c: Likewise.
30117 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30118 declaration.
30119 (__kernel_standard_f): Likewise.
30120 (__kernel_standard_l): Likewise.
30121 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30122 <math_private.h>. Include <math-svid-compat.h>.
30123 (_LIB_VERSION): Undefine as macro.
30124 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30125 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30126 [LIBM_SVID_COMPAT], use compat_symbol.
30127 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30128 <math_private.h>. Include <math-svid-compat.h>.
30129 (matherr): Undefine as macro.
30130 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30131 compat_symbol.
30132 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30133 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30134 compat_symbol_reference.
30135 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30136 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30137 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30138 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30139 (MATHERR_D): Remove declaration.
30140 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30141 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30142 [LIBM_BUILD] (pmatherrf): Likewise.
30143 [LIBM_BUILD] (pmatherr): Likewise.
30144 [LIBM_BUILD] (pmatherrl): Likewise.
30145 (DOMAIN): Likewise.
30146 (SING): Likewise.
30147 (OVERFLOW): Likewise.
30148 (UNDERFLOW): Likewise.
30149 (TLOSS): Likewise.
30150 (PLOSS): Likewise.
30151 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30152 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30153 compat_symbol.
30154 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30155 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30156 compat_symbol.
30157 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30158 * math/w_acos_compat.c: Likewise.
30159 * math/w_acosf_compat.c: Likewise.
30160 * math/w_acosh_compat.c: Likewise.
30161 * math/w_acoshf_compat.c: Likewise.
30162 * math/w_acoshl_compat.c: Likewise.
30163 * math/w_acosl_compat.c: Likewise.
30164 * math/w_asin_compat.c: Likewise.
30165 * math/w_asinf_compat.c: Likewise.
30166 * math/w_asinl_compat.c: Likewise.
30167 * math/w_atan2_compat.c: Likewise.
30168 * math/w_atan2f_compat.c: Likewise.
30169 * math/w_atan2l_compat.c: Likewise.
30170 * math/w_atanh_compat.c: Likewise.
30171 * math/w_atanhf_compat.c: Likewise.
30172 * math/w_atanhl_compat.c: Likewise.
30173 * math/w_cosh_compat.c: Likewise.
30174 * math/w_coshf_compat.c: Likewise.
30175 * math/w_coshl_compat.c: Likewise.
30176 * math/w_exp10_compat.c: Likewise.
30177 * math/w_exp10f_compat.c: Likewise.
30178 * math/w_exp10l_compat.c: Likewise.
30179 * math/w_exp2_compat.c: Likewise.
30180 * math/w_exp2f_compat.c: Likewise.
30181 * math/w_exp2l_compat.c: Likewise.
30182 * math/w_fmod_compat.c: Likewise.
30183 * math/w_fmodf_compat.c: Likewise.
30184 * math/w_fmodl_compat.c: Likewise.
30185 * math/w_hypot_compat.c: Likewise.
30186 * math/w_hypotf_compat.c: Likewise.
30187 * math/w_hypotl_compat.c: Likewise.
30188 * math/w_j0_compat.c: Likewise.
30189 * math/w_j0f_compat.c: Likewise.
30190 * math/w_j0l_compat.c: Likewise.
30191 * math/w_j1_compat.c: Likewise.
30192 * math/w_j1f_compat.c: Likewise.
30193 * math/w_j1l_compat.c: Likewise.
30194 * math/w_jn_compat.c: Likewise.
30195 * math/w_jnf_compat.c: Likewise.
30196 * math/w_jnl_compat.c: Likewise.
30197 * math/w_lgamma_main.c: Likewise.
30198 * math/w_lgamma_r_compat.c: Likewise.
30199 * math/w_lgammaf_main.c: Likewise.
30200 * math/w_lgammaf_r_compat.c: Likewise.
30201 * math/w_lgammal_main.c: Likewise.
30202 * math/w_lgammal_r_compat.c: Likewise.
30203 * math/w_log10_compat.c: Likewise.
30204 * math/w_log10f_compat.c: Likewise.
30205 * math/w_log10l_compat.c: Likewise.
30206 * math/w_log2_compat.c: Likewise.
30207 * math/w_log2f_compat.c: Likewise.
30208 * math/w_log2l_compat.c: Likewise.
30209 * math/w_log_compat.c: Likewise.
30210 * math/w_logf_compat.c: Likewise.
30211 * math/w_logl_compat.c: Likewise.
30212 * math/w_pow_compat.c: Likewise.
30213 * math/w_powf_compat.c: Likewise.
30214 * math/w_powl_compat.c: Likewise.
30215 * math/w_remainder_compat.c: Likewise.
30216 * math/w_remainderf_compat.c: Likewise.
30217 * math/w_remainderl_compat.c: Likewise.
30218 * math/w_scalb_compat.c: Likewise.
30219 * math/w_scalbf_compat.c: Likewise.
30220 * math/w_scalbl_compat.c: Likewise.
30221 * math/w_sinh_compat.c: Likewise.
30222 * math/w_sinhf_compat.c: Likewise.
30223 * math/w_sinhl_compat.c: Likewise.
30224 * math/w_sqrt_compat.c: Likewise.
30225 * math/w_sqrtf_compat.c: Likewise.
30226 * math/w_sqrtl_compat.c: Likewise.
30227 * math/w_tgamma_compat.c: Likewise.
30228 * math/w_tgammaf_compat.c: Likewise.
30229 * math/w_tgammal_compat.c: Likewise.
30230 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30231 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30232 * sysdeps/ieee754/k_standard.c: Likewise.
30233 * sysdeps/ieee754/k_standardf.c: Likewise.
30234 * sysdeps/ieee754/k_standardl.c: Likewise.
30235 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30236 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30237 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30238 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30239 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30240 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30241 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30242 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30243 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30244 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30245 Likewise.
30246 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30247 Likewise.
30248 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30249 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30250 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30251 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30252
30253 2017-08-21 Florian Weimer <fweimer@redhat.com>
30254
30255 [BZ #21864]
30256 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30257 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30258 Move before inclusion of ../Rules.
30259
30260 2017-08-21 Florian Weimer <fweimer@redhat.com>
30261
30262 [BZ #21972]
30263 * assert/assert.h (assert): Use static_cast (bool) for C++.
30264 Use the ternary operator in the warning branch for GNU C.
30265 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30266 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30267 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30268 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30269 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30270
30271 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30272
30273 [BZ #18822]
30274 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30275 (__syscall_clock_gettime): Add attribute_hidden.
30276 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30277 (__start_context): Likewise.
30278
30279 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30280
30281 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30282 building libc.a.
30283 (hidden_proto): Likewise.
30284 (hidden_tls_proto): Likewise.
30285 (__hidden_proto): Likewise.
30286
30287 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30288
30289 * include/libc-symbols.h (attribute_hidden): Enable hidden
30290 visibility in libc.a compiled with PIE.
30291
30292 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30293
30294 [BZ #18822]
30295 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30296 Add attribute_hidden.
30297
30298 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30299
30300 [BZ #21864]
30301 * Makerules (all-nonlib): Add $(others-extras).
30302 * catgets/Makefile (others-extras): New.
30303 * elf/Makefile (others-extras): Likewise.
30304 * nss/Makefile (others-extras): Likewise.
30305
30306 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30307
30308 [BZ #18822]
30309 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30310 * elf/dl-open.c: Include <libc-internal.h>.
30311 (__libc_multiple_libcs): Removed.
30312 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30313 <hp-timing.h>.
30314 * include/libc-internal.h (__libc_multiple_libcs): New.
30315 * misc/sbrk.c: Include <libc-internal.h>.
30316 (__libc_multiple_libcs): Removed.
30317
30318 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30319
30320 [BZ #18822]
30321 * grp/initgroups.c (__nss_group_database): Removed.
30322 (__nss_initgroups_database): Likewise.
30323 * nscd/gai.c (__nss_hosts_database): Likewise.
30324 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30325 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30326 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30327 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30328 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30329 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30330 attribute_hidden.
30331 * nss/nsswitch.c (__nss_database_custom): Define only if
30332 USE_NSCD is defined.
30333 (__nss_configure_lookup): Use __nss_database_custom only if
30334 USE_NSCD is defined.
30335 * nss/nsswitch.h (__nss_database_custom): Declare only if
30336 USE_NSCD is defined. Add attribute_hidden.
30337 (__nss_setent): Add attribute_hidden.
30338 (__nss_endent): Likewise.
30339 (__nss_getent_r): Likewise.
30340 (__nss_getent): Likewise.
30341 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30342
30343 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30344
30345 [BZ #18822]
30346 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30347 libc_hidden_proto and libc_hidden_def.
30348
30349 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30350
30351 [BZ #18822]
30352 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30353 Add libc_hidden_proto.
30354 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30355 Add libc_hidden_def.
30356
30357 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30358
30359 [BZ #21974]
30360 * gmon/Makefile (routines): Remove bb_init_func and
30361 bb_exit_func.
30362 (elide-routines.os): Removed.
30363 * gmon/bb_exit_func.c: Likewise.
30364 * gmon/bb_init_func.c: Likewise.
30365 * include/sys/gmon.h (__bb): Likewise.
30366 (__bb_init_func): Likewise.
30367 (__bb_exit_func): Likewise.
30368 * sysdeps/alpha/bb_init_func.S: Likewise.
30369
30370 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30371
30372 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30373 * include/setjmp.h (____longjmp_chk): Here. Add
30374 attribute_hidden.
30375
30376 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30377
30378 [BZ #18822]
30379 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30380 attribute_hidden.
30381 (__strspn_sse2): Likewise.
30382
30383 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30384
30385 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30386 (close_not_cancel_no_status): Likewise.
30387 (__close_nocancel): New macro.
30388 (__close_nocancel_nostatus): Likewise.
30389 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30390 macro.
30391 (close_not_cancel): Likewise.
30392 (close_not_cancel_no_status): Likewise.
30393 (__close_nocancel): New prototype.
30394 (__close_nocancel_nostatus): New function.
30395 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30396 * catgets/open_catalog.c (__open_catalog): Replace
30397 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30398 * gmon/gmon.c (write_gmon): Likewise.
30399 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30400 * intl/loadmsgcat.c (close): Likewise.
30401 * io/ftw.c (open_dir_stream): Likewise.
30402 (ftw_startup): Likewise.
30403 * libio/fileops.c (_IO_file_open): Likewise.
30404 (_IO_file_close_mmap): Likewise.
30405 (_IO_file_close): Likewise.
30406 * libio/iopopen.c (_IO_dup2): Likewise.
30407 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30408 * locale/loadlocale.c (_nl_load_locale): Likewise.
30409 * login/utmp_file.c (pututline_file): Likewise.
30410 (endutent_file): Likewise.
30411 * misc/daemon.c (daemon): Likewise.
30412 * nscd/nscd_getai.c (__nscd_getai): Likewise.
30413 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
30414 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
30415 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
30416 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30417 * nscd/nscd_helper.c (open_socket): Likewise.
30418 (__nscd_open_socket): Likewise.
30419 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
30420 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
30421 (__nscd_innetgr): Likewise.
30422 * nss/nss_db/db-open.c (internal_setent): Likewise.
30423 * resolv/res-close.c (__res_iclose): Likewise.
30424 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
30425 * sysdeps/posix/closedir.c (__closedir): Likewise.
30426 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
30427 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30428 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30429 (opendir_tail): Likewise.
30430 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30431 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
30432 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
30433 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
30434 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30435 (gethostid): Likewise.
30436 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30437 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30438 Likewise.
30439 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30440 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
30441 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30442 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30443 Likewise.
30444 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
30445 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
30446 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30447 Likewise.
30448 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
30449 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30450 Likewise.
30451 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30452 Likewise.
30453 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30454 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30455 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30456 __close_nocancel.
30457
30458 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
30459 (openat_not_cancel_3): Likewise.
30460 (openat64_not_cancel_3): Likewise).
30461 (openat_not_cancel_3): Likewise).
30462 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
30463 macro.
30464 (openat_not_cancel_3): Likewise.
30465 (openat64_not_cancel): Likewise.
30466 (openat64_not_cancel_3): Likewise.
30467 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
30468 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
30469 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
30470 __open{64}_nocancel.
30471 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30472 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
30473 * sysdeps/posix/opendir.c (__opendirat): Likewise.
30474
30475 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30476
30477 [BZ #18822]
30478 * include/argz.h (__argz_create_sep): New function prototype.
30479 (__argz_append): Likewise.
30480 (__argz_add): Likewise.
30481 (__argz_add_sep): Likewise.
30482 (__argz_delete): Likewise.
30483 (__argz_insert): Likewise.
30484 (__argz_replace): Likewise.
30485 * string/argz.h (__argz_create_sep): Removed.
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
30493 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30494
30495 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
30496 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
30497 (GNU_PROPERTY_STACK_SIZE): Likewie.
30498 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
30499 (GNU_PROPERTY_LOPROC): Likewise.
30500 (GNU_PROPERTY_HIPROC): Likewise.
30501 (GNU_PROPERTY_LOUSER): Likewise.
30502 (GNU_PROPERTY_HIUSER): Likewise.
30503 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
30504 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
30505 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
30506 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
30507 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
30508 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
30509 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
30510 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
30511 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
30512 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
30513 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
30514 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
30515 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
30516 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
30517 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
30518 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
30519 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
30520 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
30521 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
30522 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
30523 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
30524 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
30525 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
30526
30527 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30528
30529 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
30530 in C++ mode.
30531
30532 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30533
30534 [BZ #21930]
30535 * math/math.h (isinf): Check if in C or C++ mode before using
30536 __builtin_types_compatible_p, since this is a C mode feature.
30537
30538 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30539
30540 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
30541 (__write_nocancel): New macro.
30542 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
30543 Rewrite as a function prototype.
30544 (write_not_cancel): Remove macro.
30545 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
30546 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
30547 (write_gmon): Likewise.
30548 * libio/fileops.c (_IO_new_file_write): Likewise.
30549 * login/utmp_file.c (pututline_file): Likewise.
30550 (updwtmp_file): Likewise.
30551 * stdio-common/psiginfo.c (psiginfo): Likewise.
30552 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30553 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30554 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30555 Likewise.
30556 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30557 Likewise.
30558
30559 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
30560 (__read_nocancel): New macro.
30561 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30562 __read_nocancel.
30563 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
30564 macro.
30565 (__read_nocancel): New prototype.
30566 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
30567 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
30568 with __read_nocancel.
30569 * intl/loadmsgcat.c (read): Likewise.
30570 * libio/fileops.c (_IO_file_read): Likewise.
30571 * locale/loadlocale.c (_nl_load_locale): Likewise.
30572 * login/utmp_file.c (getutent_r_file): Likewise.
30573 (internal_getut_r): Likewise.
30574 (getutline_r_file): Likewise.
30575 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30576 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
30577 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30578 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30579 Likewise.
30580 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
30581 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30582 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30583 Likewise.
30584 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30585 Likewise.
30586 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30587 Likewise.
30588 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30589 Likewise.
30590 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30591
30592 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
30593
30594 [BZ #21966]
30595 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
30596 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
30597 usable.
30598
30599 2017-08-17 DJ Delorie <dj@redhat.com>
30600
30601 * bug17079.c: Update to new test harness.
30602 * test-digits-dots.c: Likewise.
30603 * test-netdb.c: Likewise.
30604 * tst-field.c: Likewise.
30605 * tst-nss-getpwent.c: Likewise.
30606 * tst-nss-static.c: Likewise.
30607 * tst-nss-test1.c: Likewise.
30608 * tst-nss-test2.c: Likewise.
30609 * tst-nss-test3.c: Likewise.
30610 * tst-nss-test4.c: Likewise.
30611 * tst-nss-test5.c: Likewise.
30612
30613 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30614
30615 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
30616 (open_not_cancel_2): Likewise.
30617 (open_nocancel): New macro.
30618 (open64_nocancel): Likewise.
30619 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
30620 (open_not_cancel_2): Likewise.
30621 (__open_nocancel): New prototype.
30622 (__open64_nocancel): Likewise.
30623 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
30624 __open_nocancel.
30625 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
30626 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
30627 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
30628 with __open_nocancel.
30629 * csu/check_fds.c (check_one_fd): Likewise.
30630 * gmon/gmon.c (write_gmon): Likewise.
30631 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
30632 * intl/loadmsgcat.c (open): Likewise.
30633 * libio/fileops.c (_IO_file_open): Likewise.
30634 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
30635 * locale/loadlocale.c (_nl_load_locale): Likewise.
30636 * login/utmp_file.c (setutent_file): Likewise.
30637 * misc/daemon.c (daemon): Likewise.
30638 * nss/nss_db/db-open.c (internal_setent): Likewise.
30639 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
30640 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
30641 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
30642 (__opendir): Likewise.
30643 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
30644 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
30645 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
30646 (gethostid): Likewise.
30647 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
30648 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
30649 Likewise.
30650 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
30651 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
30652 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
30653 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
30654 Likewise.
30655 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
30656 Likewise.
30657 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
30658 Likewise.
30659 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
30660 Likewise.
30661 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
30662 Likewise.
30663 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
30664 Likewise.
30665 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
30666 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
30667
30668 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
30669
30670 * benchtests/bench-skeleton.c (main): Add support for
30671 latency benchmarking.
30672 * benchtests/scripts/bench.py: Add support for latency benchmarking.
30673
30674 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
30675
30676 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
30677 the startup object.
30678
30679 2017-08-17 Florian Weimer <fweimer@redhat.com>
30680
30681 * include/sys/socket.h (__opensock): Remove internal_function.
30682 * socket/opensock.c (__opensock): Likewise.
30683 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
30684
30685 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30686
30687 [BZ #21944]
30688 * signal/bits/types/__sigval_t.h: New file.
30689 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
30690 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
30691 and define sigval_t using __sigval_t.
30692 * include/bits/types/__sigval_t.h: New file.
30693 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
30694 instead of <bits/types/__sigval_t.h>.
30695 (struct sigevent): Use __sigval_t instead of sigval_t.
30696 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
30697 instead of <bits/types/__sigval_t.h>.
30698 (siginfo_t): Use __sigval_t instead of sigval_t.
30699 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
30700 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30701 (struct sigevent): Use __sigval_t instead of sigval_t.
30702 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
30703 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
30704 (siginfo_t): Use __sigval_t instead of sigval_t.
30705 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
30706
30707 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30708
30709 * NEWS: Remove "[Add new features here]" for 2.27.
30710
30711 2017-08-16 Joseph Myers <joseph@codesourcery.com>
30712
30713 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
30714 libc.so.
30715
30716 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30717
30718 * NEWS: Mention x86-64 FMA optimization.
30719
30720 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
30721
30722 [BZ #21912]
30723 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30724 Add e_expf-fma.
30725 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
30726 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
30727 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
30728
30729 2017-08-16 Andreas Schwab <schwab@suse.de>
30730
30731 [BZ #16750]
30732 CVE-2009-5064
30733 * elf/ldd.bash.in: Never run file directly.
30734
30735 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
30736
30737 [BZ #21955]
30738 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
30739 (L(SP_INF_0)): Likewise.
30740
30741 2017-08-15 Florian Weimer <fweimer@redhat.com>
30742
30743 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
30744 run-built-tests.
30745
30746 2017-08-15 Florian Weimer <fweimer@redhat.com>
30747
30748 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
30749 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
30750 BROKEN_THREAD_SIGNALS code.
30751 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
30752 request_list): Remove caller_pid member used for
30753 BROKEN_THREAD_SIGNALS.
30754 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
30755 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
30756 Remove BROKEN_THREAD_SIGNALS support.
30757 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
30758 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
30759
30760 2017-08-15 Florian Weimer <fweimer@redhat.com>
30761
30762 * gmon/Makefile (tests): Add tst-gmon.
30763 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
30764 Set.
30765 (tests-special): Add tst-gmon-prof.out.
30766 (tst-gmon.out): Depend on clean-tst-gmon-data.
30767 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
30768 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
30769 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
30770 startup object.
30771 * aclocal.m4 (GPROF): Set and substitute.
30772 * config.amke.in (GPROF): Set.
30773 * configure: Regenerate.
30774
30775 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
30776
30777 * elf/elf.h A (NT_PPC_TAR): New macro.
30778 (NT_PPC_PPR): Likewise.
30779 (NT_PPC_DSCR): Likewise.
30780 (NT_PPC_EBB): Likewise.
30781 (NT_PPC_PMU): Likewise.
30782 (NT_PPC_TM_CGPR): Likewise.
30783 (NT_PPC_TM_CFPR): Likewise.
30784 (NT_PPC_TM_CVMX): Likewise.
30785 (NT_PPC_TM_CVSX): Likewise.
30786 (NT_PPC_TM_SPR): Likewise.
30787 (NT_PPC_TM_CTAR): Likewise.
30788 (NT_PPC_TM_CPPR): Likewise.
30789 (NT_PPC_TM_CDSCR): Likewise.
30790
30791 2017-08-15 Florian Weimer <fweimer@redhat.com>
30792
30793 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
30794 regparm (2) instead of internal_function.
30795 (_MCOUNT_DECL): Adjust.
30796
30797 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
30798
30799 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
30800 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
30801
30802 2017-08-14 Joseph Myers <joseph@codesourcery.com>
30803
30804 * conform/data/sys/wait.h-data (si_value): Do not expect for
30805 XPG42.
30806
30807 2017-08-14 Florian Weimer <fweimer@redhat.com>
30808
30809 [BZ #21962]
30810 NSS: Create stubs for accidentally exported lookup functions.
30811 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
30812 Remove declaration.
30813 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
30814 (ether_hostton): Call __nss_ethers_lookup2 instead.
30815 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
30816 (ether_ntohost): Call __nss_ethers_lookup2 instead.
30817 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
30818 (setup): Call __nss_netgroup_lookup2 instead.
30819 * nss/Makefile (routines): Add compat-lookup.
30820 * nss/Versions (GLIBC_2.27): Add symbol version.
30821 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
30822 (DB_COMPAT_FCT): Remove.
30823 * nss/compat-lookup.c: New file.
30824 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
30825 from databases.def.
30826 * nss/service-lookup.c (NO_COMPAT): Remove definition.
30827 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
30828 (netname2user): Call __nss_publickey_lookup2 instead.
30829 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
30830 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
30831 instead.
30832
30833 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30834 Sergei Trofimovich <slyfox@inbox.ru>
30835
30836 [BZ #21908]
30837 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
30838 Rename to MMAP2_PAGE_UNIT.
30839 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
30840 __OFF_T_MATCHES_OFF64_T is not defined.
30841 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
30842 uint64_t.
30843 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
30844 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
30845
30846 2017-08-14 Florian Weimer <fweimer@redhat.com>
30847
30848 i386: Do not set internal_function.
30849 * config.h.in (USE_REGPARMS, internal_function): Remove.
30850 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
30851 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
30852
30853 2017-08-14 Florian Weimer <fweimer@redhat.com>
30854
30855 * elf/dl-init.c (_dl_init): Remove internal_function.
30856 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
30857 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
30858
30859 2017-08-14 Florian Weimer <fweimer@redhat.com>
30860
30861 * elf/rtld.c (_dl_start): Remove internal_function.
30862 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
30863 _dl_start.
30864
30865 2017-08-14 Florian Weimer <fweimer@redhat.com>
30866
30867 * elf/dl-fini.c (_dl_fini): Remove internal_function
30868 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
30869
30870 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
30871
30872 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
30873 (bit_cpu_SHSTK): Likewise.
30874 (index_cpu_IBT): Likewise.
30875 (index_cpu_SHSTK): Likewise.
30876 (reg_IBT): Likewise.
30877 (reg_SHSTK): Likewise.
30878 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30879 Handle index_cpu_IBT and index_cpu_SHSTK.
30880
30881 2017-08-14 Mike FABIAN <mfabian@redhat.com>
30882
30883 [BZ #19982]
30884 * po/fr.po: Fix spelling mistake.
30885
30886 2017-08-13 Florian Weimer <fweimer@redhat.com>
30887
30888 * elf/dl-addr.c (_dl_addr): Remove internal_function.
30889 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
30890 (_dl_catch_error, _dl_receive_error): Likewise.
30891 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
30892 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
30893 (_dl_deallocate_tls): Likewise.
30894 * include/dlfcn.h (_dl_addr): Likewise.
30895 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
30896 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
30897 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
30898 Likewise.
30899
30900 2017-08-13 Florian Weimer <fweimer@redhat.com>
30901
30902 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
30903 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
30904 internal_function.
30905 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
30906
30907 2017-08-13 Florian Weimer <fweimer@redhat.com>
30908
30909 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
30910 internal_function.
30911 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
30912 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
30913 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
30914 internal_function from _dl_make_stack_executable_hook member.
30915 (_dl_make_stack_executable): Remove internal_function.
30916 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
30917 Likewise.
30918 * sysdeps/unix/sysv/linux/dl-execstack.c
30919 (_dl_make_stack_executable): Likewise.
30920
30921 2017-08-13 Florian Weimer <fweimer@redhat.com>
30922
30923 * sysdeps/unix/sysv/linux/netlinkaccess.h
30924 (__netlink_assert_response): Remove internal_function.
30925 * sysdeps/unix/sysv/linux/netlink_assert_response.c
30926 (__netlink_assert_response): Likewise.
30927
30928 2017-08-13 Florian Weimer <fweimer@redhat.com>
30929
30930 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
30931 internal_function.
30932 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
30933
30934 2017-08-13 Florian Weimer <fweimer@redhat.com>
30935
30936 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
30937 internal_function.
30938 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
30939 * inet/netgroup.h (__internal_setnetgrent)
30940 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30941 * inet/getnetgrent_r.c (__internal_setnetgrent)
30942 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
30943 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
30944 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
30945 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
30946 * nss/nsswitch.h (db_lookup_function): Likewise.
30947
30948 2017-08-13 Florian Weimer <fweimer@redhat.com>
30949
30950 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
30951 Remove internal_function.
30952 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
30953 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
30954 message argument on the stack.
30955 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
30956 Likeweise.
30957
30958 2017-08-12 Mike FABIAN <mfabian@redhat.com>
30959
30960 Adapt test case data to the changes in the thousands
30961 separators.
30962
30963 [BZ #20756]
30964 * localedata/tst-langinfo.sh: Adapt test case data.
30965 * stdlib/tst-strfmon_l.c: Likewise.
30966 * stdlib/tst-strtod4.c: Likewise.
30967 * stdlib/tst-strtod5i.c: Likewise.
30968
30969 2017-08-11 Florian Weimer <fweimer@redhat.com>
30970
30971 [BZ #21242]
30972 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
30973 Suppress pedantic warning resulting from statement expression.
30974 (__ASSERT_FUNCTION): Add missing __extension__.
30975
30976 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30977
30978 * benchtests/bench-memmove-large.c: Print output in JSON
30979 format.
30980 * benchtests/bench-memmove.c: Likewise.
30981
30982 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
30983 * benchtests/bench-memchr.c (do_one_test): Likewise.
30984 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
30985 * benchtests/bench-memcpy.c (do_one_test): Likewise.
30986 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
30987 * benchtests/bench-memmove.c (do_one_test): Likewise.
30988 * benchtests/bench-memset-large.c (do_one_test): Likewise.
30989 * benchtests/bench-memset.c (do_one_test): Likewise.
30990 * benchtests/bench-string.h (test_init): Remove memsets.
30991
30992 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
30993
30994 * manual/lang.texi
30995 (Computing the Width of an Integer Data Type): Rename section to
30996 "Width of an Integer Type". Remove inaccurate statement regarding
30997 lack of C language facilities for determining width of integer
30998 types, and reorder content to improve flow and context of
30999 discussion.
31000
31001 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31002
31003 * lang.texi (va_copy): Change standard from ISO to C99.
31004 (__va_copy): Add standard and header annotation.
31005 Update description for clarity of origins and current use.
31006
31007 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31008
31009 [BZ #21941]
31010 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31011 xssqrtqp requires operands to be in Vector Registers
31012 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31013 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31014 (__ieee754_sqrtf128): Likewise.
31015
31016 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31017
31018 * sysdeps/aarch64/memcmp.S (memcmp):
31019 Rewrite of optimized memcmp.
31020
31021 2017-08-10 Florian Weimer <fweimer@redhat.com>
31022
31023 Introduce ld.so exceptions.
31024 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31025 (_dl_exception_create, _dl_exception_create_format)
31026 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31027 (_dl_catch_exception): Declare.
31028 (_dl_catch_error): Update comment.
31029 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31030 errstring, malloced members with exception member.
31031 (_dl_out_of_memory): Remove.
31032 (fatal_error): New function, extracted from _dl_signal_error.
31033 (_dl_signal_exception, _dl_signal_cexception): New functions.
31034 (_dl_signal_error): Call _dl_exception_create to allocate an
31035 exception object.
31036 (_dl_catch_exception): New function, based on _dl_catch_error.
31037 (_dl_catch_error): Implement using _dl_catch_exception.
31038 * elf/dl-exception.c: New file.
31039 * elf/Makefile (dl-routines): Add dl-exception.
31040 (elide-routines.os): Likewise.
31041 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31042 _dl_exception_create_format, _dl_exception_free.
31043 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31044 _dl_signal_exception.
31045 * elf/dl-lookup.c (make_string): Remove.
31046 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31047 _dl_signal_cexception, _dl_exception_free.
31048 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31049 _dl_signal_exception.
31050 * elf/dl-sym.c (do_sym): Likewise.
31051 * elf/dl-version.c (make_string): Remove.
31052 (match_symbol): Use _dl_exception_create_format,
31053 _dl_signal_cexception, _dl_exception_free.
31054 (_dl_check_map_versions): Likewise.
31055 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31056 _dl_catch_exception.
31057 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31058 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31059 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31060 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31061 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31062 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31063 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31064 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31065 Likewise.
31066 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31067 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31068 (ld.so): Likewise.
31069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31070 (ld.so): Likewise.
31071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31072 Likewise.
31073 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31074 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31075 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31076 Likewise.
31077 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31078 Likewise.
31079 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31080
31081 2017-08-10 Florian Weimer <fweimer@redhat.com>
31082
31083 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31084 attribute_hidden, internal_function.
31085 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31086 internal_function.
31087
31088 2017-08-10 Florian Weimer <fweimer@redhat.com>
31089
31090 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31091 function which calls __builtin_unreachable.
31092
31093 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31094
31095 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31096 Indian monetary formatting
31097 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31098 test cases.
31099
31100 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31101
31102 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31103 Fix typo in comment.
31104
31105 [BZ #21928]
31106 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31107 PTRACE_SEIZE_DEVEL): Remove.
31108 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31109 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31110 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31111 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31112 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31113
31114 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31115
31116 * posix/bits/types.h (__qaddr_t): Remove.
31117
31118 [BZ #21457]
31119 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31120 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31121 __glibc_reserved1.
31122 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31123 (ucontext_t): Use __ctx with uc_flags.
31124 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31125 (__ctxt): Likewise.
31126 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31127 __glibc_reserved1.
31128 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31129 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31130 __glibc_reserved1.
31131 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31132 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31133 __glibc_reserved1.
31134 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31135 macro.
31136 (ucontext_t): Use __ctx with uc_flags.
31137 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31138 (ucontext_t): Use __ctx with uc_flags.
31139 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31140 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31141 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31142 (ucontext_t): Use __ctx with uc_flags.
31143 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31144 undefine further down.
31145 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31146 __glibc_reserved1.
31147 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31148 undefine further down.
31149 (ucontext_t): Use __ctx with uc_flags.
31150 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31151 undefine further down.
31152 (ucontext_t): Use __ctx with uc_flags.
31153 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31154 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31155 Rename uc_pad to __glibc_reserved1.
31156 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31157 undefine further down.
31158 (ucontext_t): Use __ctx with uc_flags.
31159 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31160 further down.
31161 (ucontext_t): Use __ctx with uc_flags.
31162 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31163 __ctx with uc_flags.
31164 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31165 (ucontext_t): Use __ctx with uc_flags.
31166 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31167 __ctx with uc_flags.
31168
31169 2017-08-09 Florian Weimer <fweimer@redhat.com>
31170
31171 [BZ #21932]
31172 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31173 before early return.
31174
31175 2017-08-09 Andreas Schwab <schwab@suse.de>
31176
31177 [BZ #21041]
31178 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31179 renamed alias.
31180
31181 [BZ #21041]
31182 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31183 tst-compat-forwarder.
31184 (modules-names): Add tst-compat-forwarder-mod.
31185 ($(objpfx)tst-compat-forwarder): Depend on
31186 $(objpfx)tst-compat-forwarder-mod.so.
31187 * nptl/tst-compat-forwarder.c: New file.
31188 * nptl/tst-compat-forwarder-mod.c: New file.
31189
31190 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31191
31192 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31193 comments.
31194
31195 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31196 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31197 memcpy_falkor.
31198 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31199 Bump.
31200 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31201 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31202 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31203 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31204 Add falkor.
31205 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31206 New macro.
31207
31208 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31209
31210 [BZ #759]
31211 * manual/setjmp.texi (getcontex): Document uc_stack value
31212 compatibility differences.
31213
31214 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31215
31216 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31217 (old_malloc_hook): Likewise.
31218 (old_memalign_hook): Likewise.
31219 (old_realloc_hook): Likewise.
31220 (struct hdr): Likewise.
31221 (flood): Likewise.
31222 (freehook): Likewise.
31223 (mallochook): Likewise.
31224 (memalignhook): Likewise.
31225 (reallochook): Likewise.
31226 (mprobe): Likewise.
31227 * malloc/mtrace.c (mallwatch): Likewise.
31228 (tr_old_free_hook): Likewise.
31229 (tr_old_malloc_hook): Likewise.
31230 (tr_old_realloc_hook): Likewise.
31231 (tr_old_memalign_hook): Likewise.
31232 (tr_where): Likewise.
31233 (lock_and_info): Likewise.
31234 (tr_freehook): Likewise.
31235 (tr_mallochook): Likewise.
31236 (tr_reallochook): Likewise.
31237 (tr_memalignhook): Likewise.
31238 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31239 * misc/mmap.c (__mmap): Likewise.
31240 * misc/mmap64.c (__mmap64): Likewise.
31241 * misc/mprotect.c (__mprotect): Likewise.
31242 * misc/msync.c (msync): Likewise.
31243 * misc/munmap.c (__munmap): Likewise.
31244 * posix/posix_madvise.c (posix_madvise): Likewise.
31245 * socket/send.c (__send): Likewise.
31246 * socket/sendto.c (__sendto): Likewise.
31247 * socket/setsockopt.c (__setsockopt): Likewise.
31248 * string/memcmp.c (__ptr_t): Remove macro.
31249 (MEMCMP): Use void * instead of ptr_t.
31250 * string/memrchr.c (__ptr_t): Remove macro.
31251 (__memrchr): Use void * instead of ptr_t.
31252 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31253 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31254 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31255 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31256 * sysdeps/mach/msync.c (msync): Likewise.
31257 * sysdeps/mach/munmap.c (__munmap): Likewise.
31258 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31259 Likewise.
31260 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31261 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31262 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31263 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31264 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31265 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31266 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31267 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31268 Likewise.
31269 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31270 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31271 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31272 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31273 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31274 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31275 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31276 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31277 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31278 Likewise.
31279 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31280 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31281 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31282 (MEMCMP): Use void * instead of ptr_t.
31283 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31284 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31285
31286 2017-08-08 Florian Weimer <fweimer@redhat.com>
31287
31288 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31289 return statement.
31290
31291 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31292
31293 [BZ #21913]
31294 * csu/libc-tls.c: Include <startup.h> first.
31295 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31296 * elf/dl-tunables.c: Include <startup.h> first.
31297 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31298 * sysdeps/generic/startup.h: New file.
31299 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31300 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31301 (I386_USE_SYSENTER): New. Defined to 0.
31302
31303 2017-08-08 Andreas Schwab <schwab@suse.de>
31304
31305 [BZ #21041]
31306 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31307 * nptl/pt-system.c (system): Likewise.
31308
31309 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31310
31311 [BZ #21780]
31312 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31313 EOPNOTSUPP.
31314 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31315 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31316 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31317 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31318 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31319 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31320 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31321
31322 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31323
31324 [BZ #21899]
31325 * bits/sigaction.h (struct sigaction): Define sa_handler and
31326 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31327 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31328 [__USE_XOPEN_EXTENDED].
31329 (SA_RESTART): Likewise.
31330 (SA_NODEFER): Likewise.
31331 (SA_RESETHAND): Likewise.
31332 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31333 (struct sigaction): Define sa_handler and sa_sigaction using union
31334 also for [__USE_XOPEN_EXTENDED].
31335 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31336 [__USE_XOPEN_EXTENDED].
31337 (SA_RESTART): Likewise.
31338 (SA_NODEFER): Likewise.
31339 (SA_RESETHAND): Likewise.
31340 * sysdeps/unix/sysv/linux/bits/sigaction.h
31341 (struct sigaction): Define sa_handler and sa_sigaction using union
31342 also for [__USE_XOPEN_EXTENDED].
31343 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31344 [__USE_XOPEN_EXTENDED].
31345 (SA_RESTART): Likewise.
31346 (SA_NODEFER): Likewise.
31347 (SA_RESETHAND): Likewise.
31348 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31349 (struct sigaction): Define sa_handler and sa_sigaction using union
31350 also for [__USE_XOPEN_EXTENDED].
31351 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31352 [__USE_XOPEN_EXTENDED].
31353 (SA_RESTART): Likewise.
31354 (SA_NODEFER): Likewise.
31355 (SA_RESETHAND): Likewise.
31356 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31357 (struct sigaction): Define sa_handler and sa_sigaction using union
31358 also for [__USE_XOPEN_EXTENDED].
31359 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31360 [__USE_XOPEN_EXTENDED].
31361 (SA_RESTART): Likewise.
31362 (SA_NODEFER): Likewise.
31363 (SA_RESETHAND): Likewise.
31364 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31365 (struct sigaction): Define sa_handler and sa_sigaction using union
31366 also for [__USE_XOPEN_EXTENDED].
31367 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31368 [__USE_XOPEN_EXTENDED].
31369 (SA_RESTART): Likewise.
31370 (SA_NODEFER): Likewise.
31371 (SA_RESETHAND): Likewise.
31372 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31373 (struct sigaction): Define sa_handler and sa_sigaction using union
31374 also for [__USE_XOPEN_EXTENDED].
31375 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31376 [__USE_XOPEN_EXTENDED].
31377 (SA_RESTART): Likewise.
31378 (SA_NODEFER): Likewise.
31379 (SA_RESETHAND): Likewise.
31380 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31381 (struct sigaction): Define sa_handler and sa_sigaction using union
31382 also for [__USE_XOPEN_EXTENDED].
31383 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31384 [__USE_XOPEN_EXTENDED].
31385 (SA_RESTART): Likewise.
31386 (SA_NODEFER): Likewise. Define directly rather than as alias.
31387 (SA_RESETHAND): Likewise.
31388 (SA_INTERRUPT): Define only for [__USE_MISC].
31389 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31390 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31391 [__USE_MISC].
31392 (SA_STACK): Define only for [__USE_MISC].
31393 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31394 (struct sigaction): Define sa_handler and sa_sigaction using union
31395 also for [__USE_XOPEN_EXTENDED].
31396 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31397 [__USE_XOPEN_EXTENDED].
31398 (SA_RESTART): Likewise.
31399 (SA_NODEFER): Likewise.
31400 (SA_RESETHAND): Likewise.
31401 (SA_NOPTRACE): Define only for [__USE_MISC].
31402
31403 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31404 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31405 (struct catalog_info): Likewise.
31406 * inet/htontest.c (lo): Likewise.
31407 (foo): Likewise.
31408 * inet/inet_lnaof.c (inet_lnaof): Likewise.
31409 * inet/inet_net.c (inet_network): Likewise.
31410 * inet/inet_netof.c (inet_netof): Likewise.
31411 * inet/rcmd.c (__ivaliduser): Likewise.
31412 (iruserok): Likewise.
31413 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
31414 * locale/programs/locale-spec.c (locale_special): Likewise.
31415 * nis/nis_findserv.c (struct findserv_req): Likewise.
31416 (__nis_findfastest_with_timeout): Likewise.
31417 * nss/test-netdb.c (test_network): Likewise.
31418 * resolv/inet_neta.c (inet_neta): Likewise.
31419 * resolv/ns_date.c (ns_datetosecs): Likewise.
31420 (SECS_PER_DAY): Likewise.
31421 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
31422 Likewise.
31423 * resolv/res_comp.c (__putlong): Likewise.
31424 (__putshort): Likewise.
31425 (_getlong): Likewise.
31426 (_getshort): Likewise.
31427 * resolv/res_debug.c (p_time): Likewise.
31428 (precsize_ntoa): Likewise.
31429 (precsize_aton): Likewise.
31430 (latlon2ul): Likewise.
31431 (loc_aton): Likewise.
31432 (loc_ntoa): Likewise.
31433 * resolv/res_hconf.c (struct netaddr): Likewise.
31434 (_res_hconf_reorder_addrs): Likewise.
31435 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
31436 (clnttcp_control): Likewise.
31437 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
31438 (clntudp_control): Likewise.
31439 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
31440 (clntunix_control): Likewise.
31441 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
31442 * sunrpc/rpc/auth.h (union des_block): Likewise.
31443 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
31444 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
31445 (xdrrec_create): Likewise.
31446 (xdrrec_endofrecord): Likewise.
31447 (flush_out): Likewise.
31448 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
31449 (xdrstdio_putlong): Likewise.
31450 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
31451 Likewise.
31452
31453 * misc/sys/cdefs.h (__long_double_t): Remove.
31454 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
31455 instead of __long_double_t,
31456 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
31457
31458 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
31459
31460 * benchtests/scripts/compare_strings.py: Avoid display error when
31461 running on a text terminal.
31462
31463 * benchtests/scripts/compare_strings.py (main): Add an
31464 optional -base option.
31465 (process_results): New argument base_func.
31466
31467 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
31468 hardcoding memcpy.
31469 * benchtests/bench-memcpy-large.c (test_name): Likewise.
31470 * benchtests/bench-memcpy-random.c (test_name): Likewise.
31471
31472 2017-08-07 Andreas Schwab <schwab@suse.de>
31473
31474 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
31475 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
31476 * intl/Makefile ($(objpfx)tst-gettext.out)
31477 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
31478 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
31479 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
31480 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
31481 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
31482 * posix/Makefile ($(objpfx)globtest.out)
31483 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
31484 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
31485 ($(objpfx)tst-printf.out): Likewise.
31486 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
31487 ($(objpfx)tst-setcontext3.out): Likewise.
31488
31489 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
31490
31491 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31492 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
31493 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
31494 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
31495 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
31496 and mptan-fma.
31497 (CFLAGS-doasin-fma.c): New.
31498 (CFLAGS-dosincos-fma.c): Likewise.
31499 (CFLAGS-e_asin-fma.c): Likewise.
31500 (CFLAGS-e_atan2-fma.c): Likewise.
31501 (CFLAGS-e_exp-fma.c): Likewise.
31502 (CFLAGS-e_log-fma.c): Likewise.
31503 (CFLAGS-e_pow-fma.c): Likewise.
31504 (CFLAGS-halfulp-fma.c): Likewise.
31505 (CFLAGS-mpa-fma.c): Likewise.
31506 (CFLAGS-mpatan-fma.c): Likewise.
31507 (CFLAGS-mpatan2-fma.c): Likewise.
31508 (CFLAGS-mpexp-fma.c): Likewise.
31509 (CFLAGS-mplog-fma.c): Likewise.
31510 (CFLAGS-mpsqrt-fma.c): Likewise.
31511 (CFLAGS-mptan-fma.c): Likewise.
31512 (CFLAGS-s_atan-fma.c): Likewise.
31513 (CFLAGS-sincos32-fma.c): Likewise.
31514 (CFLAGS-slowexp-fma.c): Likewise.
31515 (CFLAGS-slowpow-fma.c): Likewise.
31516 (CFLAGS-s_sin-fma.c): Likewise.
31517 (CFLAGS-s_tan-fma.c): Likewise.
31518 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
31519 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
31520 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
31521 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
31522 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
31523 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
31524 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
31525 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
31526 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
31527 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
31528 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
31529 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
31530 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
31531 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
31532 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
31533 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
31534 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
31535 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
31536 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
31537 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
31538 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
31539 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
31540 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
31541 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
31542 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
31543 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
31544 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
31545 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
31546 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
31547 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
31548 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
31549
31550 2017-08-04 Joseph Myers <joseph@codesourcery.com>
31551
31552 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
31553 (min_of_type_f): New macro.
31554 (min_of_type_): Likewise.
31555 (min_of_type_l): Likewise.
31556 (min_of_type_f128): Likewise.
31557 (min_of_type): Define using __MATH_TG and taking an expression
31558 argument.
31559 (math_check_force_underflow): Pass expression instead of type to
31560 min_of_type.
31561 (math_check_force_underflow_nonneg): Likewise.
31562
31563 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31564
31565 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
31566 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
31567 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
31568
31569 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31570
31571 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31572 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
31573 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
31574 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
31575 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
31576 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
31577 memcpy_chk-nonshared, mempcpy_chk-nonshared,
31578 memmove_chk-nonshared and memset_chk-nonshared
31579 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
31580 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
31581 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
31582 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
31583 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
31584 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
31585 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
31586 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
31587 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
31588 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
31589 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
31590 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
31591 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
31592 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
31593 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
31594 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
31595 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
31596 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
31597 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
31598 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
31599 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
31600 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
31601 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
31602 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
31603 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
31604 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
31605 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
31606 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
31607 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
31608 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
31609 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
31610 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
31611 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
31612 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31613 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
31614 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
31615 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
31616 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
31617 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
31618 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
31619 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
31620 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
31621 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
31622 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
31623 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
31624 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
31625 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
31626 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
31627 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
31628 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
31629 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
31630 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
31631 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
31632 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
31633 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
31634 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
31635 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
31636 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
31637 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
31638 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
31639 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
31640 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
31641 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
31642 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
31643 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
31644 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
31645 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
31646 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
31647 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
31648 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
31649 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
31650 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
31651 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
31652 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
31653 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
31654 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
31655 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
31656 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
31657 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
31658 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
31659 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
31660 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
31661 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
31662 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
31663 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
31664 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
31665 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
31666 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
31667 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
31668 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
31669 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
31670 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
31671 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
31672 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
31673 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
31674 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
31675 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
31676 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
31677 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
31678 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
31679 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
31680 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
31681 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
31682 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
31683 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
31684 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
31685 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
31686 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
31687
31688 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31689
31690 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
31691 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
31692 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
31693 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
31694 svml_d_log2_core-sse2, svml_d_log4_core-sse,
31695 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
31696 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
31697 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
31698 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
31699 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
31700 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
31701 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
31702 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
31703 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
31704 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
31705 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
31706 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
31707 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
31708 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
31709 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
31710 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
31711 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
31712 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
31713 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
31714 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
31715 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
31716 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
31717 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
31718 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
31719 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
31720 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
31721 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
31722 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
31723 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
31724 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
31725 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
31726 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
31727 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
31728 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
31729 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
31730 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
31731 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
31732 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
31733 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
31734 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
31735 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
31736 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
31737 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
31738 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
31739 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
31740 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
31741 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
31742 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
31743 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
31744 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
31745 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
31746 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
31747 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
31748 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
31749 ...
31750 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
31751 Don't include <sysdep.h> nor <init-arch.h>.
31752 (_ZGVbN2v_cos): Removed.
31753 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
31754 ...
31755 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
31756 Don't include <sysdep.h> nor <init-arch.h>.
31757 (_ZGVdN4v_cos): Removed.
31758 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
31759 ...
31760 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
31761 Don't include <sysdep.h> nor <init-arch.h>.
31762 (_ZGVeN8v_cos): Removed.
31763 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
31764 ...
31765 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
31766 Don't include <sysdep.h> nor <init-arch.h>.
31767 (_ZGVbN2v_exp): Removed.
31768 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
31769 ...
31770 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
31771 Don't include <sysdep.h> nor <init-arch.h>.
31772 (_ZGVdN4v_exp): Removed.
31773 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
31774 ...
31775 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
31776 Don't include <sysdep.h> nor <init-arch.h>.
31777 (_ZGVeN8v_exp): Removed.
31778 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
31779 ...
31780 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
31781 Don't include <sysdep.h> nor <init-arch.h>.
31782 (_ZGVbN2v_log): Removed.
31783 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
31784 ...
31785 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
31786 Don't include <sysdep.h> nor <init-arch.h>.
31787 (_ZGVdN4v_log): Removed.
31788 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
31789 ...
31790 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
31791 Don't include <sysdep.h> nor <init-arch.h>.
31792 (_ZGVeN8v_log): Removed.
31793 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
31794 ...
31795 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
31796 Don't include <sysdep.h> nor <init-arch.h>.
31797 (_ZGVbN2vv_pow): Removed.
31798 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
31799 ...
31800 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
31801 Don't include <sysdep.h> nor <init-arch.h>.
31802 (_ZGVdN4vv_pow): Removed.
31803 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
31804 ...
31805 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
31806 Don't include <sysdep.h> nor <init-arch.h>.
31807 (_ZGVeN8vv_pow): Removed.
31808 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
31809 ...
31810 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
31811 Don't include <sysdep.h> nor <init-arch.h>.
31812 (_ZGVbN2v_sin): Removed.
31813 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
31814 ...
31815 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
31816 Don't include <sysdep.h> nor <init-arch.h>.
31817 (_ZGVbN4v_sin): Removed.
31818 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
31819 ...
31820 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
31821 Don't include <sysdep.h> nor <init-arch.h>.
31822 (_ZGVbN8v_sin): Removed.
31823 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
31824 ...
31825 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
31826 Don't include <sysdep.h> nor <init-arch.h>.
31827 (_ZGVbN2vvv_sincos): Removed.
31828 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
31829 ...
31830 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
31831 Don't include <sysdep.h> nor <init-arch.h>.
31832 (_ZGVdN4vvv_sincos): Removed.
31833 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
31834 ...
31835 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
31836 Don't include <sysdep.h> nor <init-arch.h>.
31837 (_ZGVeN8vvv_sincos): Removed.
31838 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
31839 ...
31840 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
31841 Don't include <sysdep.h> nor <init-arch.h>.
31842 (_ZGVeN16v_cosf): Removed.
31843 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
31844 ...
31845 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
31846 Don't include <sysdep.h> nor <init-arch.h>.
31847 (_ZGVbN4v_cosf): Removed.
31848 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
31849 ...
31850 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
31851 Don't include <sysdep.h> nor <init-arch.h>.
31852 (_ZGVdN8v_cosf): Removed.
31853 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
31854 ...
31855 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
31856 Don't include <sysdep.h> nor <init-arch.h>.
31857 (_ZGVeN16v_expf): Removed.
31858 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
31859 ...
31860 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
31861 Don't include <sysdep.h> nor <init-arch.h>.
31862 (_ZGVbN4v_expf): Removed.
31863 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
31864 ...
31865 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
31866 Don't include <sysdep.h> nor <init-arch.h>.
31867 (_ZGVdN8v_expf): Removed.
31868 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
31869 ...
31870 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
31871 Don't include <sysdep.h> nor <init-arch.h>.
31872 (_ZGVeN16v_logf): Removed.
31873 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
31874 ...
31875 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
31876 Don't include <sysdep.h> nor <init-arch.h>.
31877 (_ZGVbN4v_logf): Removed.
31878 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
31879 ...
31880 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
31881 Don't include <sysdep.h> nor <init-arch.h>.
31882 (_ZGVdN8v_logf): Removed.
31883 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
31884 ...
31885 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
31886 Don't include <sysdep.h> nor <init-arch.h>.
31887 (_ZGVeN16vv_powf): Removed.
31888 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
31889 ...
31890 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
31891 Don't include <sysdep.h> nor <init-arch.h>.
31892 (_ZGVbN4vv_powf): Removed.
31893 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
31894 ...
31895 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
31896 Don't include <sysdep.h> nor <init-arch.h>.
31897 (_ZGVdN8vv_powf): Removed.
31898 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
31899 ...
31900 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
31901 Don't include <sysdep.h> nor <init-arch.h>.
31902 (_ZGVeN16vvv_sincosf): Removed.
31903 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
31904 ...
31905 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
31906 Don't include <sysdep.h> nor <init-arch.h>.
31907 (_ZGVbN4vvv_sincosf): Removed.
31908 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
31909 ...
31910 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
31911 Don't include <sysdep.h> nor <init-arch.h>.
31912 (_ZGVdN8vvv_sincosf): Removed.
31913 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
31914 ...
31915 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
31916 Don't include <sysdep.h> nor <init-arch.h>.
31917 (_ZGVeN16v_sinf): Removed.
31918 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
31919 ...
31920 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
31921 Don't include <sysdep.h> nor <init-arch.h>.
31922 (_ZGVbN4v_sinf): Removed.
31923 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
31924 ...
31925 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
31926 Don't include <sysdep.h> nor <init-arch.h>.
31927 (_ZGVdN8v_sinf): Removed.
31928
31929 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31930
31931 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31932 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
31933 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
31934 s_rint-sse4_1 and s_rintf-sse4_1.
31935 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
31936 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
31937 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
31938 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
31939 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
31940 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
31941 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
31942 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
31943 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
31944 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
31945 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
31946 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31947 (__ceil): Removed.
31948 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
31949 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
31950 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31951 (__ceilf): Removed.
31952 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
31953 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
31954 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31955 (__floor): Removed.
31956 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
31957 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
31958 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31959 (__floorf): Removed.
31960 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
31961 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
31962 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31963 (__nearbyint): Removed.
31964 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
31965 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
31966 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31967 (__nearbyintf): Removed.
31968 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
31969 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
31970 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31971 (__rint): Removed.
31972 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
31973 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
31974 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
31975 (__rintf): Removed.
31976
31977 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31978
31979 * sysdeps/i386/start.S (_start): Check Check PIC instead of
31980 SHARED. Avoid dynamic relocation against main in static PIE.
31981
31982 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31983
31984 [BZ #21815]
31985 * elf/Makefile (CFLAGS-tst-prelink.c): New.
31986 (LDFLAGS-tst-prelink): Likewise.
31987
31988 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
31989
31990 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
31991 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
31992 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
31993 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
31994 (INTERNAL_SYSCALL_NCS): Likewise.
31995 (LOADARGS_1): Likewise.
31996 (LOADARGS_5): Likewise.
31997 (RESTOREARGS_1): Likewise.
31998 (RESTOREARGS_5): Likewise.
31999
32000 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32001
32002 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32003 (MEMPCPY_SYMBOL): Likewise.
32004 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32005 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32006 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32007 in libc.a.
32008 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32009 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32010 Likewise.
32011 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32012 (__hidden_ver1): Don't use in libc.a.
32013 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32014 (__mempcpy): Don't create a weak alias in libc.a.
32015 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32016 libc.a.
32017 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32018 (__hidden_ver1): Don't use in libc.a.
32019
32020 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32021
32022 * config.make.in (have-insert): New.
32023 * configure.ac (libc_cv_insert): New. Set to yes if linker
32024 supports INSERT in linker script.
32025 (AC_SUBST(libc_cv_insert): New.
32026 * configure: Regenerated.
32027 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32028 if $(have-insert) == yes.
32029
32030 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32031
32032 * elf/Makefile (tests): Add vismain only if
32033 $(have-protected-data) == yes.
32034 (tests-pie): Likewise.
32035
32036 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32037
32038 [BZ #21871]
32039 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32040 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32041
32042 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32043
32044 [BZ #21790]
32045 * sysdeps/i386/i586/memset.S
32046 (__memset_zero_constant_len_parameter): Removed.
32047 * sysdeps/i386/i686/memset.S
32048 (__memset_zero_constant_len_parameter): Likewise.
32049 * sysdeps/i386/i686/multiarch/memset_chk.S
32050 (__memset_zero_constant_len_parameter): Likewise.
32051 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32052 Likewise.
32053
32054 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32055
32056 * stdlib/getentropy.c (getentropy): Change return type to int.
32057
32058 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32059
32060 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32061
32062 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32063
32064 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32065 u_intN_t.
32066 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32067 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32068 Likewise.
32069 (ieee_float_shape_type): Likewise.
32070 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32071 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32072 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32073 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32074 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32075 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32076 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32077 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32078 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32079 Likewise.
32080 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32081 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32082 (__ieee754_yn): Likewise.
32083 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32084 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32085 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32086 Likewise.
32087 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32088 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32089 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32090 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32091 (__erfc): Likewise.
32092 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32093 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32094 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32095 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32096 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32097 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32098 Likewise.
32099 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32100 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32101 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32102 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32103 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32104 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32105 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32106 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32107 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32108 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32109 (__issignaling): Likewise.
32110 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32111 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32112 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32113 Likewise.
32114 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32115 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32116 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32117 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32118 Likewise.
32119 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32120 Likewise.
32121 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32122 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32123 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32124 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32125 (__erfcf): Likewise.
32126 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32127 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32128 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32129 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32130 Likewise.
32131 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32132 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32133 Likewise.
32134 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32135 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32136 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32137 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32138 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32139 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32140 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32141 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32142 Likewise.
32143 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32144 Likewise.
32145 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32146 Likewise.
32147 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32148 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32149 Likewise.
32150 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32151 Likewise.
32152 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32153 (__ieee754_ynl): Likewise.
32154 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32155 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32156 Likewise.
32157 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32158 Likewise.
32159 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32160 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32161 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32162 Likewise.
32163 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32164 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32165 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32166 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32167 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32168 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32169 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32170 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32171 Likewise.
32172 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32173 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32174 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32175 Likewise.
32176 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32177 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32178 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32179 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32180 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32181 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32182 Likewise.
32183 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32184 Likewise.
32185 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32186 Likewise.
32187 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32188 Likewise.
32189 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32190 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32191 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32192 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32193 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32194 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32195 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32196 Likewise.
32197 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32198 Likewise.
32199 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32200 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32201 Likewise.
32202 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32203 (__ieee754_remainderl): Likewise.
32204 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32205 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32206 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32207 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32208 Likewise.
32209 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32210 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32211 Likewise.
32212 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32213 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32214 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32215 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32216 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32217 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32218 Likewise.
32219 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32220 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32221 (__ieee754_y0l): Likewise.
32222 (pzero): Likewise.
32223 (qzero): Likewise.
32224 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32225 (__ieee754_y1l): Likewise.
32226 (pone): Likewise.
32227 (qone): Likewise.
32228 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32229 (__ieee754_ynl): Likewise.
32230 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32231 (__ieee754_lgammal_r): Likewise.
32232 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32233 Likewise.
32234 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32235 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32236 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32237 (__erfcl): Likewise.
32238 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32239 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32240 Likewise.
32241 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32242 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32243 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32244 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32245 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32246 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32247 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32248 Likewise.
32249 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32250 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32251 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32252 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32253 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32254 Likewise.
32255 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32256 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32257 Likewise.
32258 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32259 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32260 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32261 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32262 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32263
32264 2017-08-03 Florian Weimer <fweimer@redhat.com>
32265
32266 [BZ #21885]
32267 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32268 on memory allocation failure.
32269
32270 2017-08-03 Alan Modra <amodra@gmail.com>
32271
32272 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32273 tst-tlsopt-powerpc.c with function name change and no test harness.
32274 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32275 Call tls_get_addr_opt_test.
32276 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32277 (modules-names): Add mod-tlsopt-powerpc.
32278 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32279 (tst-tlsopt-powerpc): Depend on .so.
32280 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32281 define. Expand use in TLS_GD and TLS_LD.
32282
32283 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32284
32285 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32286 function.
32287 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32288
32289 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32290
32291 [BZ #21686]
32292 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32293 comparing size with that of double.
32294 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32295 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32296 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32297 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32298 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32299 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32300 unsigned __int128 types.
32301
32302 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32303
32304 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32305 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32306 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32307 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32308 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32309
32310 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32311
32312 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32313
32314 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32315
32316 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32317 of SHARED.
32318 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32319 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32320 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32321 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32322 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32323 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32324 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32325
32326 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32327
32328 [BZ #21685]
32329 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32330 bit-field expressions passed to sizeof or typeof.
32331 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32332 (__TGMATH_F128): Likewise.
32333 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32334 (__TGMATH_CF128): Likewise.
32335 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32336 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32337 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32338 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32339 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32340 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32341 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32342 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32343 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32344 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32345 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32346 (__TGMATH_UNARY_IMAG): Likewise.
32347 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32348 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32349 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32350 type.
32351 (define_vars_for_type): Handle bit_field type specially.
32352 (Tests.__init__): Declare structure with bit-field element.
32353
32354 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32355
32356 [BZ #21791]
32357 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32358 (MEMCPY_CHK): Define only if SHARED is defined.
32359 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32360 Likewise.
32361 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32362 Likewise.
32363
32364 See ChangeLog.18 for earlier changes.